Procházet zdrojové kódy

feat:图片拖拽大小

ananzhusen před 1 týdnem
rodič
revize
b17962ce87
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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,