From 08b93f9c0a946a659bcf6a8c58a8084394d57b0c Mon Sep 17 00:00:00 2001 From: "mark.ck" Date: Tue, 1 Sep 2020 14:08:37 +0800 Subject: [PATCH] fix: remove vision dependency from plugin-undo-redo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit undo-redo 插件移除 vison 相关依赖 Link: https://code.aone.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/codereview/3629531 * fix: remove vision dependency from plugin-undo-redo --- packages/plugin-undo-redo/package.json | 1 - packages/plugin-undo-redo/src/index.tsx | 9 +++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/packages/plugin-undo-redo/package.json b/packages/plugin-undo-redo/package.json index 1a8a2cc51..5bfc4191b 100644 --- a/packages/plugin-undo-redo/package.json +++ b/packages/plugin-undo-redo/package.json @@ -24,7 +24,6 @@ "@ali/lowcode-editor-skeleton": "^1.0.5-0", "@ali/lowcode-types": "^1.0.5-0", "@ali/lowcode-utils": "^1.0.5-0", - "@ali/ve-icons": "^4.1.14", "react": "^16.8.1", "react-dom": "^16.8.1" }, diff --git a/packages/plugin-undo-redo/src/index.tsx b/packages/plugin-undo-redo/src/index.tsx index 98bec6274..8357bf4e2 100644 --- a/packages/plugin-undo-redo/src/index.tsx +++ b/packages/plugin-undo-redo/src/index.tsx @@ -1,7 +1,6 @@ import React, { PureComponent } from 'react'; import { Editor } from '@ali/lowcode-editor-core'; -import Icon from '@ali/ve-icons'; -import { Button } from '@alifd/next'; +import { Button, Icon } from '@alifd/next'; import { Designer } from '@ali/lowcode-designer'; import { PluginProps } from '@ali/lowcode-types'; @@ -84,23 +83,21 @@ export default class UndoRedo extends PureComponent { size="medium" data-tip="撤销" data-dir="bottom" - className="ve-local-history-item" onClick={this.handleUndoClick} ghost disabled={!undoEnable} > - + );