소스 검색

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

zhangyu 4 년 전
부모
커밋
23057dc4f6
2개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  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);
         }