feat:add editor mode

This commit is contained in:
黄云飞
2022-03-04 17:09:26 +08:00
parent 6be3adb16a
commit ab99cd0975
4 changed files with 45 additions and 7 deletions
+3 -2
View File
@@ -1,4 +1,5 @@
import { IElement } from "../.."
import { EditorMode } from "../../dataset/enum/Editor"
import { RowFlex } from "../../dataset/enum/Row"
import { IDrawImagePayload } from "../../interface/Draw"
import { IWatermark } from "../../interface/Watermark"
@@ -103,8 +104,8 @@ export class Command {
}
// 全局命令
public executeMode() {
return Command.mode()
public executeMode(payload: EditorMode) {
return Command.mode(payload)
}
public executeCut() {