gg-editor
Version:
A visual graph editor based on G6 and React
20 lines (14 loc) • 376 B
Markdown
# Toolbar
工具栏,负责命令按钮绑定与可用禁用状态控制。
## 使用说明
必需配合 [`<Command />`](./command.zh-CN.md) 组件使用
```jsx
import GGEditor, { Flow, Command, Toolbar } from 'gg-editor';
<GGEditor>
<Flow />
<Toolbar>
<Command name="undo">撤销</Command>
<Command name="redo">重做</Command>
</Toolbar>
</GGEditor>
```