src/views/home/components/protectorBox.vue
@@ -1,6 +1,7 @@ <template> <g ref="g" class="pointer" :transform="'translate(' + offset.join(',') + ')'" @click="handlerClick" > @@ -14,7 +15,7 @@ <path :d="createRoundRectPath(92, 80, 10)" stroke="none" fill="url(#color)" :fill="alarm ? '#FF3801' : 'url(#color)'" /> <!-- 绘制标题 --> @@ -38,6 +39,10 @@ default() { return [0, 0]; }, }, alarm: { type: Boolean, default: false, }, }, computed: {}, @@ -83,4 +88,7 @@ </script> <style scoped> .pointer { cursor: pointer; } </style>