feat: 新增前进后退按钮,修改粘贴的位置问题

This commit is contained in:
mtrun
2022-03-28 11:38:44 +08:00
parent 7d5f607b92
commit 4b21f3a753
5 changed files with 95 additions and 25 deletions
@@ -351,8 +351,8 @@ export const useChartEditStore = defineStore({
// 生成新 id
e.id = getUUID()
// 偏移位置
e.attr.x = e.attr.x + 30
e.attr.y = e.attr.y + 30
e.attr.x = this.getMousePosition.x + 30
e.attr.y = this.getMousePosition.y + 30
return e
}
const isCut = recordCharts.type === HistoryActionTypeEnum.CUT