Ver código fonte

feat:图片拖拽大小

ananzhusen 1 semana atrás
pai
commit
b17962ce87
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      src/views/components/Graphics.vue

+ 2 - 2
src/views/components/Graphics.vue

@@ -1372,8 +1372,8 @@ const dragStart = async (event: DragEvent | MouseEvent|TouchEvent, item: any) =>
 
     data = {
       name,
-      width,
-      height,
+      width: 100,
+      height: 100 * (height / width),
       isBottom:true,
       image: item.image,
       imageRatio: true,