mirror of
https://gitee.com/dromara/go-view.git
synced 2025-02-24 16:22:57 +08:00
fix: 修改右键类型操作
This commit is contained in:
parent
4460a3269b
commit
498743e965
@ -9,7 +9,7 @@ export enum DragKeyEnum {
|
|||||||
DROG_KEY = 'ChartData'
|
DROG_KEY = 'ChartData'
|
||||||
}
|
}
|
||||||
|
|
||||||
// 右键枚举
|
// 操作枚举
|
||||||
export enum MenuEnum {
|
export enum MenuEnum {
|
||||||
ARROW_UP = 'up',
|
ARROW_UP = 'up',
|
||||||
ARROW_RIGHT = 'right',
|
ARROW_RIGHT = 'right',
|
||||||
|
@ -16,7 +16,7 @@ import { useDesignStore } from '@/store/modules/designStore/designStore'
|
|||||||
import { useChartEditStore } from '@/store/modules/chartEditStore/chartEditStore'
|
import { useChartEditStore } from '@/store/modules/chartEditStore/chartEditStore'
|
||||||
import { EditCanvasTypeEnum } from '@/store/modules/chartEditStore/chartEditStore.d'
|
import { EditCanvasTypeEnum } from '@/store/modules/chartEditStore/chartEditStore.d'
|
||||||
import { useSettingStore } from '@/store/modules/settingStore/settingStore'
|
import { useSettingStore } from '@/store/modules/settingStore/settingStore'
|
||||||
import { CreateComponentType } from '@/packages/index.d'
|
import { CreateComponentType, CreateComponentGroupType } from '@/packages/index.d'
|
||||||
import throttle from 'lodash/throttle'
|
import throttle from 'lodash/throttle'
|
||||||
import cloneDeep from 'lodash/cloneDeep'
|
import cloneDeep from 'lodash/cloneDeep'
|
||||||
// 全局颜色
|
// 全局颜色
|
||||||
@ -111,7 +111,7 @@ watch(
|
|||||||
line.select.clear()
|
line.select.clear()
|
||||||
line.sorptioned.y = false
|
line.sorptioned.y = false
|
||||||
// 循环查询所有组件数据
|
// 循环查询所有组件数据
|
||||||
const componentList = chartEditStore.getComponentList.map((e: CreateComponentType) => {
|
const componentList = chartEditStore.getComponentList.map((e: CreateComponentType | CreateComponentGroupType) => {
|
||||||
return {
|
return {
|
||||||
id: e.id,
|
id: e.id,
|
||||||
attr: e.attr
|
attr: e.attr
|
||||||
|
15
src/views/chart/hooks/useContextMenu.hook.d.ts
vendored
15
src/views/chart/hooks/useContextMenu.hook.d.ts
vendored
@ -1,17 +1,4 @@
|
|||||||
// 右键枚举
|
import { MenuEnum } from '@/enums/editPageEnum'
|
||||||
export enum MenuEnum {
|
|
||||||
DELETE = 'delete',
|
|
||||||
COPY = 'copy',
|
|
||||||
CUT = 'cut',
|
|
||||||
PARSE = 'parse',
|
|
||||||
TOP = 'top',
|
|
||||||
BOTTOM = 'bottom',
|
|
||||||
UP = 'up',
|
|
||||||
DOWN = 'down',
|
|
||||||
CLEAR = 'clear',
|
|
||||||
GROUP = 'group',
|
|
||||||
UN_GROUP = 'unGroup'
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface MenuOptionsItemType {
|
export interface MenuOptionsItemType {
|
||||||
type?: string
|
type?: string
|
||||||
|
Loading…
Reference in New Issue
Block a user