Explorar el Código

fix:宽高设置

ananzhusen hace 7 meses
padre
commit
5fe0c36855
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  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;