@@ -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, //设备数量
@@ -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);