소스 검색

feat:图片拖拽大小

ananzhusen 1 주 전
부모
커밋
b17962ce87
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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,