mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-03-17 11:13:50 +00:00
fix: remove vision dependency from plugin-undo-redo
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
This commit is contained in:
parent
1f45b05028
commit
08b93f9c0a
@ -24,7 +24,6 @@
|
|||||||
"@ali/lowcode-editor-skeleton": "^1.0.5-0",
|
"@ali/lowcode-editor-skeleton": "^1.0.5-0",
|
||||||
"@ali/lowcode-types": "^1.0.5-0",
|
"@ali/lowcode-types": "^1.0.5-0",
|
||||||
"@ali/lowcode-utils": "^1.0.5-0",
|
"@ali/lowcode-utils": "^1.0.5-0",
|
||||||
"@ali/ve-icons": "^4.1.14",
|
|
||||||
"react": "^16.8.1",
|
"react": "^16.8.1",
|
||||||
"react-dom": "^16.8.1"
|
"react-dom": "^16.8.1"
|
||||||
},
|
},
|
||||||
|
|||||||
@ -1,7 +1,6 @@
|
|||||||
import React, { PureComponent } from 'react';
|
import React, { PureComponent } from 'react';
|
||||||
import { Editor } from '@ali/lowcode-editor-core';
|
import { Editor } from '@ali/lowcode-editor-core';
|
||||||
import Icon from '@ali/ve-icons';
|
import { Button, Icon } from '@alifd/next';
|
||||||
import { Button } from '@alifd/next';
|
|
||||||
import { Designer } from '@ali/lowcode-designer';
|
import { Designer } from '@ali/lowcode-designer';
|
||||||
import { PluginProps } from '@ali/lowcode-types';
|
import { PluginProps } from '@ali/lowcode-types';
|
||||||
|
|
||||||
@ -84,23 +83,21 @@ export default class UndoRedo extends PureComponent<IProps, IState> {
|
|||||||
size="medium"
|
size="medium"
|
||||||
data-tip="撤销"
|
data-tip="撤销"
|
||||||
data-dir="bottom"
|
data-dir="bottom"
|
||||||
className="ve-local-history-item"
|
|
||||||
onClick={this.handleUndoClick}
|
onClick={this.handleUndoClick}
|
||||||
ghost
|
ghost
|
||||||
disabled={!undoEnable}
|
disabled={!undoEnable}
|
||||||
>
|
>
|
||||||
<Icon name="amindUndo" size="18px" />
|
<Icon type="houtui" />
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
size="medium"
|
size="medium"
|
||||||
data-tip="恢复"
|
data-tip="恢复"
|
||||||
data-dir="bottom"
|
data-dir="bottom"
|
||||||
className="ve-local-history-item"
|
|
||||||
onClick={this.handleRedoClick}
|
onClick={this.handleRedoClick}
|
||||||
ghost
|
ghost
|
||||||
disabled={!redoEnable}
|
disabled={!redoEnable}
|
||||||
>
|
>
|
||||||
<Icon name="forward" size="18px" />
|
<Icon type="qianjin" />
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user