Browse Source

'文本背景色盘颜色调整'

zhangyu 4 năm trước cách đây
mục cha
commit
23057dc4f6
2 tập tin đã thay đổi với 6 bổ sung2 xóa
  1. 3 2
      src/components/edit/attr_select.vue
  2. 3 0
      src/lib/items/SImageLegendItem.ts

+ 3 - 2
src/components/edit/attr_select.vue

@@ -377,7 +377,7 @@ export default {
       },
       swatchess: ["#69C5FC", "#656EDF", "#58AF6F", "#2D8FAA"],
       swatches: [
-        "#00000000",
+        "#F7F9Fa",
         "#1FBC9C",
         "#1CA085",
         "#2ECC70",
@@ -387,7 +387,8 @@ export default {
         "#A463BF",
         "#8E43AD",
         "#3D556E",
-        "#222F3D"
+        "#222F3D",
+        "#00000000",
       ],
       lengedName: "", // 图例名称
       imageNum: 1, //设备数量

+ 3 - 0
src/lib/items/SImageLegendItem.ts

@@ -78,6 +78,9 @@ export class SImageLegendItem extends SIconTextItem {
         if (data.Properties && data.Properties.IsActive) {
             this.isActive = data.Properties.IsActive;
         }
+        if (data.AttachObjectIds && data.AttachObjectIds.length) {
+            this.isActive = true;
+        }
         if (data.Properties && data.Properties.FrameColor) {
             this.activeColor = new SColor(data.Properties.FrameColor);
         }