feat: 简化 TextNode 实现,完全依赖 LogicFlow 原生文本节点能力

- 移除自定义文本编辑逻辑,交由 LogicFlow 和 TextNodeModel 处理
- TextNode.vue 简化为空容器,LogicFlow 自动渲染文本内容
- 保留 TextNodeModel.ts 用于配置文本样式和编辑行为
- 采用模型-视图分离架构,符合 LogicFlow 设计模式
This commit is contained in:
2026-02-14 23:47:31 +08:00
parent 4a4a55110b
commit eb26deff72
5 changed files with 95 additions and 54 deletions

View File

@@ -45,9 +45,9 @@ const componentGroups = [
id: 'text',
name: '文字编辑框',
type: 'textNode',
description: '可编辑文本的节点',
description: '可编辑文本的节点',
data: {
html: '<div>双击右侧可编辑文字</div>',
text: '双击编辑文字',
width: 200,
height: 120
}