工具栏,负责命令按钮绑定与可用禁用状态控制。
必需配合 <Command /> 组件使用
import GGEditor, { Flow, Command, Toolbar } from 'gg-editor';
<GGEditor>
<Flow />
<Toolbar>
<Command name="undo">撤销</Command>
<Command name="redo">重做</Command>
</Toolbar>
</GGEditor>工具栏,负责命令按钮绑定与可用禁用状态控制。
必需配合 <Command /> 组件使用
import GGEditor, { Flow, Command, Toolbar } from 'gg-editor';
<GGEditor>
<Flow />
<Toolbar>
<Command name="undo">撤销</Command>
<Command name="redo">重做</Command>
</Toolbar>
</GGEditor>