mirror of
https://github.com/Powerful-517/yys-editor.git
synced 2026-03-05 15:05:27 +00:00
feat: 简化 TextNode 实现,完全依赖 LogicFlow 原生文本节点能力
- 移除自定义文本编辑逻辑,交由 LogicFlow 和 TextNodeModel 处理 - TextNode.vue 简化为空容器,LogicFlow 自动渲染文本内容 - 保留 TextNodeModel.ts 用于配置文本样式和编辑行为 - 采用模型-视图分离架构,符合 LogicFlow 设计模式
This commit is contained in:
@@ -45,9 +45,9 @@ const componentGroups = [
|
||||
id: 'text',
|
||||
name: '文字编辑框',
|
||||
type: 'textNode',
|
||||
description: '可编辑富文本的节点',
|
||||
description: '可编辑文本的节点',
|
||||
data: {
|
||||
html: '<div>双击右侧可编辑文字</div>',
|
||||
text: '双击编辑文字',
|
||||
width: 200,
|
||||
height: 120
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user