add example

This commit is contained in:
hufeixiong
2021-07-10 19:35:06 +08:00
parent b1133c8773
commit c27b4eb8e0
50 changed files with 5786 additions and 212 deletions

View File

@@ -0,0 +1,19 @@
/*
* @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;