diff --git a/packages/demo/src/editor/components.ts b/packages/demo/src/editor/components.ts index 4a9a9382b..bf00bd149 100644 --- a/packages/demo/src/editor/components.ts +++ b/packages/demo/src/editor/components.ts @@ -1,6 +1,6 @@ import logo from '@ali/lowcode-plugin-sample-logo'; import samplePreview from '@ali/lowcode-plugin-sample-preview'; -//import undoRedo from '@ali/lowcode-plugin-undo-redo'; +import undoRedo from '@ali/lowcode-plugin-undo-redo'; import componentsPane from '@ali/lowcode-plugin-components-pane'; import outline, { OutlinePane } from '@ali/lowcode-plugin-outline-pane'; import zhEn from '@ali/lowcode-plugin-zh-en'; @@ -14,7 +14,7 @@ import saveload from './plugins/saveload'; export default { logo, samplePreview, - //undoRedo, + undoRedo, componentsPane, outline, zhEn, diff --git a/packages/demo/src/editor/config.js b/packages/demo/src/editor/config.js index f950c31ae..a1c6ef94b 100644 --- a/packages/demo/src/editor/config.js +++ b/packages/demo/src/editor/config.js @@ -13,7 +13,7 @@ export default { href: '/', }, }, - /* + { pluginKey: 'undoRedo', type: 'Custom', @@ -22,6 +22,7 @@ export default { width: 88, }, }, + /* { pluginKey: 'divider', type: 'Divider',