undo()
描述
撤销看板中的最后一次操作
信息
undo()
方法仅在启用 history: true
配置时生效!
用法
undo(): void;
示例
// 创建看板
const board = new kanban.Kanban("#root", {
columns,
cards
});
// 撤销看板历史中的上一步操作
board.undo();
更新日志: 此方法在 v1.3 版本中新增
撤销看板中的最后一次操作
undo()
方法仅在启用 history: true
配置时生效!
undo(): void;
// 创建看板
const board = new kanban.Kanban("#root", {
columns,
cards
});
// 撤销看板历史中的上一步操作
board.undo();
更新日志: 此方法在 v1.3 版本中新增