feat: 新增组件多选和右键成组按钮

This commit is contained in:
奔跑的面条
2022-06-28 21:57:29 +08:00
parent 1d1dd07c2f
commit 8a10a9cf82
9 changed files with 109 additions and 63 deletions
@@ -172,7 +172,7 @@ export const useChartEditStore = defineStore({
this.targetChart.selectId = []
return
}
// 新增
// 多选
if(push) {
// 字符串
if(isString(selectId)) {
+2 -1
View File
@@ -51,7 +51,8 @@ export enum HistoryStackItemEnum {
// 历史记录项类型
export interface HistoryItemType {
[HistoryStackItemEnum.ID]: string
// 会有同时操作多个组件场景
[HistoryStackItemEnum.ID]: string | string[]
[HistoryStackItemEnum.TARGET_TYPE]: HistoryTargetTypeEnum
[HistoryStackItemEnum.ACTION_TYPE]: HistoryActionTypeEnum
[HistoryStackItemEnum.HISTORY_DATA]: CreateComponentType | EditCanvasType