ananzhusen 7 сар өмнө
parent
commit
5fe0c36855

+ 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;