fix: 新增图表居中拖拽

This commit is contained in:
MTrun
2022-01-27 23:16:51 +08:00
parent f57fa702d9
commit 5e07c2ca6d
9 changed files with 83 additions and 34 deletions
@@ -1,5 +1,7 @@
import { reactive, ref, nextTick } from 'vue'
import { getChartEditStore } from './useStore.hook'
import { loadingError } from '@/utils'
const chartEditStore = getChartEditStore()
enum MenuEnum {
@@ -46,6 +48,7 @@ export const useContextMenu = () => {
case MenuEnum.DELETE:
chartEditStore.removeComponentList(targetIndex.value)
break
default: loadingError()
}
}