瀏覽代碼

fix:宽高设置

ananzhusen 7 月之前
父節點
當前提交
5fe0c36855
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/views/components/PenProps.vue

+ 3 - 1
src/views/components/PenProps.vue

@@ -1530,7 +1530,9 @@ const changeID = (value: any) => {
 };
 
 const changeRectValue = (prop: string) => {
-  data.rect[prop] = data.rect[prop]||1;
+  if(['width','height'].includes(prop)){
+    data.rect[prop] = data.rect[prop]||1;
+  }
   if(data.pen.parentId){
     if(['x','y','width','height'].includes(prop)){
       const scale = meta2d.store.data.scale;