将工具栏动作处理逻辑从 useEditor 组合式函数移至 LivePreviewEditor 组件内部,通过事件直接触发动作执行,简化组件间通信并提高代码内聚性。移除 EditorToolbar 组件中对 useEditor 的依赖,改为直接发射 'action' 事件。 |
||
|---|---|---|
| .. | ||
| preload | ||
| logo.png | ||
| plugin.json | ||
将工具栏动作处理逻辑从 useEditor 组合式函数移至 LivePreviewEditor 组件内部,通过事件直接触发动作执行,简化组件间通信并提高代码内聚性。移除 EditorToolbar 组件中对 useEditor 的依赖,改为直接发射 'action' 事件。 |
||
|---|---|---|
| .. | ||
| preload | ||
| logo.png | ||
| plugin.json | ||