فهرست منبع

添加样式保存

zhangyu 4 سال پیش
والد
کامیت
45ecc6372e
1فایلهای تغییر یافته به همراه4 افزوده شده و 3 حذف شده
  1. 4 3
      src/components/editview/rightPropertyBar/BaseZone.vue

+ 4 - 3
src/components/editview/rightPropertyBar/BaseZone.vue

@@ -73,7 +73,7 @@
                     <div class="base-property">
                         <div class="base-property-item">
                             <div class="cololorSelect">
-                                <el-color-picker show-alpha class="fix-box-1" v-model="fillColor"></el-color-picker>
+                                <el-color-picker show-alpha class="fix-box-1" @change="setStyle" v-model="fillColor"></el-color-picker>
                             </div>
                             <span class="text">填充色</span>
                         </div>
@@ -84,17 +84,18 @@
                     <div class="base-property">
                         <div class="base-property-item">
                             <div class="cololorSelect">
-                                <el-color-picker show-alpha class="fix-box-1" v-model="strokeColor"></el-color-picker>
+                                <el-color-picker show-alpha class="fix-box-1" @change="setStyle" v-model="strokeColor"></el-color-picker>
                             </div>
                             <span class="text">颜色</span>
                         </div>
                         <div class="base-property-item" style="flex: 1;">
-                            <el-input style="width: 100%" v-model="lineWidth" type="number" size="mini" placeholder="输入线宽" />
+                            <el-input style="width: 100%" @change="setStyle" v-model="lineWidth" type="number" size="mini" placeholder="输入线宽" />
                             <span class="text">线宽</span>
                         </div>
                         <div class="base-property-item" style="flex: 1; padding: 0">
                             <el-select
                                 v-model="lineStyle"
+                                @change="setStyle"
                                 popper-class="line-select"
                                 :default-value="borderLineOption[0].id"
                                 size="mini"