Procházet zdrojové kódy

'区域颜色显示'

zhangyu před 4 roky
rodič
revize
57cd8ee0d1
1 změnil soubory, kde provedl 12 přidání a 10 odebrání
  1. 12 10
      src/components/edit/attr_select.vue

+ 12 - 10
src/components/edit/attr_select.vue

@@ -576,16 +576,6 @@ export default {
           newval.itemType == "Line" ||
           newval.itemType == "Image"
         ) {
-          this.lengedName = Item.name;
-          this.borderColor = Item.strokeColor ? Item.strokeColor.value : "";
-          this.fillColor = Item.fillColor ? Item.fillColor.value : "";
-          this.itemExplain = "";
-          if (Item.data.Properties.ItemExplain) {
-            this.itemExplain = Item.data.Properties.ItemExplain
-              ? Item.data.Properties.ItemExplain
-              : "";
-          }
-
           if (newval.itemType == "Image") {
             this.imageNum = Item.num;
             this.color = Item.color.value;
@@ -595,6 +585,18 @@ export default {
             this.fillColor = Item.fillColor.value;
             this.borderColor = Item.strokeColor.value;
             this.lineWidth = Item.lineWidth;
+          } else if (newval.itemType == "Zone") {
+            this.lengedName = Item.name;
+            this.fontSize = Item.font.size;
+            this.fontColor = Item.color.value;
+            this.borderColor = Item.strokeColor ? Item.strokeColor.value : "";
+            this.fillColor = Item.fillColor ? Item.fillColor.value : "";
+            this.itemExplain = "";
+            if (Item.data.Properties.ItemExplain) {
+              this.itemExplain = Item.data.Properties.ItemExplain
+                ? Item.data.Properties.ItemExplain
+                : "";
+            }
           }
         }
       }