Selaa lähdekoodia

feat:图片拖拽大小

ananzhusen 1 viikko sitten
vanhempi
sitoutus
b17962ce87
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  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 = {
     data = {
       name,
       name,
-      width,
-      height,
+      width: 100,
+      height: 100 * (height / width),
       isBottom:true,
       isBottom:true,
       image: item.image,
       image: item.image,
       imageRatio: true,
       imageRatio: true,