ソースを参照

perf: 优化页面交互操作

奔跑的面条 3 年 前
コミット
b9783b168f

+ 1 - 1
src/packages/components/Charts/Mores/Funnel/config.ts

@@ -27,7 +27,7 @@ export const option = {
     {
       name: 'Funnel',
       type: 'funnel',
-      top: '70',
+      top: 70,
       left: '10%',
       width: '80%',
       min: 0,

+ 2 - 1
src/views/chart/ContentEdit/index.vue

@@ -7,6 +7,7 @@
     :showBottom="true"
     :depth="1"
     :xScroll="true"
+    @mousedown="mousedownHandleUnStop"
     @drop="dragHandle"
     @dragover="dragoverHandle"
     @dragenter="dragoverHandle"
@@ -87,7 +88,7 @@ import { useChartEditStore } from '@/store/modules/chartEditStore/chartEditStore
 
 import { useLayout } from './hooks/useLayout.hook'
 import { useAddKeyboard } from '../hooks/useKeyboard.hook'
-import { dragHandle, dragoverHandle, useMouseHandle } from './hooks/useDrag.hook'
+import { dragHandle, dragoverHandle, mousedownHandleUnStop, useMouseHandle } from './hooks/useDrag.hook'
 import { useComponentStyle, useSizeStyle } from './hooks/useStyle.hook'
 
 import { ContentBox } from '../ContentBox/index'