From e1f22fc73444aa25873a679df1ae71f18f6b1579 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8D=A3=E5=BD=AC?= Date: Mon, 3 Aug 2020 13:50:46 +0800 Subject: [PATCH] =?UTF-8?q?feat:=F0=9F=98=88=20history=20undo-redo?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/demo/src/editor/components.ts | 4 ++-- packages/demo/src/editor/config.js | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) 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',