he wei
2024-04-15 c94f1afa786f297be86b01b49a641b2c0ad98b6e
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>