Files
dooring/packages/dooringx-example/src/plugin/commands/undo.ts

20 lines
368 B
TypeScript
Raw Normal View History

2021-07-10 19:35:06 +08:00
/*
* @Author: yehuozhili
* @Date: 2021-07-07 14:28:00
* @LastEditors: yehuozhili
* @LastEditTime: 2021-07-07 14:28:08
* @FilePath: \visual-editor\src\plugin\commands\undo.ts
*/
import { CommanderItemFactory } from 'dooringx-lib';
const undo = new CommanderItemFactory(
'undo',
'Control+z',
(store) => {
store.undo();
},
'撤销'
);
export default undo;