mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
feat: 新增多选的历史记录处理
This commit is contained in:
@@ -96,7 +96,7 @@ const labelHandle = (e: HistoryItemType) => {
|
||||
} else if (e.actionType === HistoryActionTypeEnum.GROUP) {
|
||||
return `${historyActionTypeName[e.actionType]}`
|
||||
} else {
|
||||
return `${historyActionTypeName[e.actionType]} - ${(e.historyData as CreateComponentType).chartConfig.title}`
|
||||
return `${historyActionTypeName[e.actionType]} - ${(e.historyData[0] as CreateComponentType).chartConfig.title}`
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -136,6 +136,8 @@ export const useMouseHandle = () => {
|
||||
let offsetY = (moveEvent.screenY - startY) / scale
|
||||
|
||||
chartEditStore.getTargetChart.selectId.forEach(id => {
|
||||
if(!targetMap.has(id)) return
|
||||
|
||||
const index = chartEditStore.fetchTargetIndex(id)
|
||||
// 拿到初始位置数据
|
||||
const { x, y, w, h } = targetMap.get(id)
|
||||
|
||||
Reference in New Issue
Block a user