roymondchen
|
4a893d35df
|
fix(editor): 为 FloatingBox 拖拽遮罩添加失焦等兜底清理,避免残留导致编辑器无法点击
|
2026-07-06 11:34:41 +08:00 |
|
roymondchen
|
9aa251ce57
|
fix(editor): 延迟 FloatingBox 拖拽遮罩到实际位移时显示,修复关闭按钮点击失效
|
2026-07-02 20:52:17 +08:00 |
|
roymondchen
|
3b9fb714e5
|
refactor(editor): 解耦 FloatingBox 的 uiService 依赖并改为 props 传入
- FloatingBox 不再强制依赖 uiService
- frameworkWidth 默认回退到视窗宽度
- 新增 initialStyle prop 支持外部设置初始样式
- 各调用方显式传入 frameworkWidth 以保留右边界收敛行为
|
2026-07-02 20:22:24 +08:00 |
|
roymondchen
|
284be0d276
|
fix(editor): 修复 FloatingBox 拖动时鼠标进入 iframe 区域事件丢失
- 拖拽/缩放开始时插入全屏透明遮罩盖住 iframe,结束时移除,避免事件被 iframe 吞掉
- 修正拖拽标题时 z-index 竞态导致遮罩被浮窗盖住的问题
- 将 body 内边距从 scss 抽取为 bodyStyle 透传,复用方按需自定义
|
2026-07-02 20:01:45 +08:00 |
|
roymondchen
|
5e661d0958
|
refactor(editor): 历史对比 services 改为显式传入并可选
CompareForm / HistoryDiffDialog / useHistoryRevert 不再通过 useServices()
默认 inject 获取 services,改为由调用方显式传入并设为可选,避免在
createApp 动态挂载游离弹窗场景下 inject 链不可靠。同步更新调用点、
测试与文档示例签名。
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-06-26 15:00:08 +08:00 |
|
roymondchen
|
ce65b18dbb
|
feat(editor): 优化历史记录对比与回滚流程
|
2026-06-25 16:30:01 +08:00 |
|
roymondchen
|
0f42989ca3
|
refactor(editor): 统一历史栈结构,支持扩展历史类型
将 pageSteps/codeBlockState/dataSourceState 三套独立历史栈收敛为统一的 steps 结构
(按 stepType 分桶),并新增 registerStepType/setStepName/getStepName 支持自定义
扩展历史类型。同步重构 history 相关服务、组件、工具方法、测试与文档。
|
2026-06-23 20:14:41 +08:00 |
|
roymondchen
|
9f2fa1a9c8
|
refactor(editor): 抽离历史记录回滚交互并开放复用入口
|
2026-06-18 17:04:16 +08:00 |
|
roymondchen
|
113af7dd51
|
feat(editor): 页面删除前增加确认弹窗并支持危险样式按钮
|
2026-06-11 17:00:10 +08:00 |
|
roymondchen
|
be3a900e6a
|
fix(editor): 修复历史对比属性配置上下文缺失
|
2026-06-05 17:27:20 +08:00 |
|
roymondchen
|
cd19dec790
|
fix(editor): 修复历史对比样式配置显示
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-06-04 16:59:08 +08:00 |
|
roymondchen
|
1cd69b33fe
|
feat(editor): 对比表单支持自定义 loadConfig 加载逻辑
将 CompareCategory 等类型抽取到 type.ts,
新增 CompareFormLoadConfig 支持外部接管表单配置加载,
HistoryDiffDialog 透传 loadConfig 并支持 width 配置及对外导出。
|
2026-06-02 17:03:27 +08:00 |
|
roymondchen
|
7a61a35664
|
fix(editor): 显式标注 CompareForm 的 defineExpose 类型以修复 DTS 构建报错
defineExpose 同时暴露 MForm 实例 ref 与递归的 FormConfig ref,导致
vue-tsc 生成声明文件时推断类型过大无法序列化(TS7056)。改为显式标注
暴露类型,使其引用具名别名而非展开完整结构。
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-05-29 18:53:08 +08:00 |
|
roymondchen
|
cbc4b25072
|
feat(editor): 字段对比模式逐项展示差异并补充历史记录面板文档
- CodeSelect/CodeSelectCol/EventSelect/DataSource 等复合字段在对比模式下
按索引对齐前后值,逐项展示新增/删除/修改高亮,并隐藏写操作按钮
- form 容器/列表/表格支持对比模式只读展示
- 新增「历史记录面板」指南文档,完善表单对比文档及 menu props 说明
- 补充相关单元测试
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-05-29 15:51:47 +08:00 |
|
roymondchen
|
b02aa75ddc
|
feat(editor): 历史记录面板支持单步回滚(类 git revert)
将目标历史步骤的修改作为一次新操作反向应用,不破坏原有栈结构,
page/dataSource/codeBlock 三类 service 均提供 revert 能力;
面板新增关闭按钮、步骤编号展示与合并组卡片样式优化。
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-05-29 14:19:44 +08:00 |
|
roymondchen
|
f0c66427b8
|
feat: form 新增 showDiff prop 支持自定义对比判断
- form: MForm/Container 新增 showDiff prop,允许调用方自定义
'是否展示对比内容' 的判断逻辑,并在嵌套 Container 中自动透传;
不传时沿用默认的 isEqual 行为
- editor: CompareForm 利用该能力处理 code-select 字段中 '' 与
{ hookType: 'code', hookData: [] } 两种语义为空形态被 isEqual 误判为差异的问题
- docs: 补充 form-props.md 中 showDiff 的说明与示例
- test: 补充 Code 字段相关单测
|
2026-05-28 20:30:05 +08:00 |
|
roymondchen
|
59f4e0edac
|
feat(editor): 历史记录面板支持差异对比
- 新增 HistoryDiffDialog 历史差异对比弹窗
- 新增 CompareForm 表单对比组件
- 抽取 code-block 工具函数到 utils/code-block.ts
- 历史列表面板支持选择两个版本进行对比
|
2026-05-28 19:49:03 +08:00 |
|
roymondchen
|
df8790042f
|
feat(editor): 导航菜单支持菜单项溢出收纳,新增 NavMenuColumn 组件
- 抽离每列渲染逻辑为 NavMenuColumn 组件,监听容器宽度
- 容器空间不足时自动隐藏溢出项,并通过更多按钮 Popover 展开
- ToolButton 暴露根元素引用,便于父级测量宽度
- design ButtonProps 新增 bg 属性,用于更多按钮的激活态样式
- 补充 NavMenuColumn / NavMenu / ToolButton 的单元测试
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-05-15 19:33:53 +08:00 |
|
roymondchen
|
2475a4f901
|
feat(editor): 新增"已选组件"面板节点双击事件 layer-node-dblclick 与 beforeLayerNodeDblclick 钩子
- TreeNode/Tree 增加 node-dblclick 事件透传
- LayerPanel 默认双击切换可展开节点的展开/收起状态,并向上抛出 node-dblclick
- Sidebar/Editor 暴露 layer-node-dblclick 事件与 beforeLayerNodeDblclick 拦截钩子
- 补充 props/events 文档
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-05-09 16:52:15 +08:00 |
|
roymondchen
|
7ce640627d
|
feat(editor): 新增 stage-top 插槽用于在画布上方插入自定义元素
ScrollViewer 增加 before 具名插槽,Stage 据此暴露 stage-top 插槽,
经 Workspace、Editor 逐层透传,并补充对应类型定义与文档说明。
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-05-07 20:31:25 +08:00 |
|
roymondchen
|
3cde69f6f9
|
feat(editor): 支持自定义组件树节点是否可展开的判断函数
新增 layerNodeIsExpandable 配置项,业务方可自定义"已选组件"面板中
节点是否显示为可展开形态。同时导出默认实现 defaultIsExpandable 与
类型 IsExpandableFunction 供第三方复用。
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-05-07 13:53:51 +08:00 |
|
roymondchen
|
b2888962df
|
style(schema,editor,data-source): 代码块类型定义中content去掉string类型
|
2026-04-09 15:28:03 +08:00 |
|
roymondchen
|
f583c7daec
|
feat(editor,data-source): 数据源支持内置"设置数据"方法
支持通过事件调用数据源的 setData 方法,可以选择数据源字段并根据字段类型动态设置数据;
重构 CodeParams 参数配置支持动态类型; DataSourceFieldSelect 支持指定数据源ID;
常量抽取到 utils/const.ts
Made-with: Cursor
|
2026-04-07 18:25:35 +08:00 |
|
roymondchen
|
e8714c96c9
|
feat(form-schema,form,editor,table): 完善表单配置类型
|
2026-03-20 17:38:11 +08:00 |
|
roymondchen
|
55eb546ad6
|
feat(form-schema,form,editor): 完善表单配置类型
|
2026-03-20 12:31:55 +08:00 |
|
roymondchen
|
03b6180a02
|
fix(editor): 数据源方法编辑后content变成字符串
|
2025-12-29 19:22:28 +08:00 |
|
roymondchen
|
8d55d0cd8d
|
feat(editor): 代码编辑器支持配置自动高度
|
2025-12-03 17:50:48 +08:00 |
|
roymondchen
|
8f0d99a4a6
|
style(design, editor, tdesign-vue-next-adapter): 编辑器顶部导航按钮tdesign下样式优化
|
2025-11-12 19:52:30 +08:00 |
|
roymondchen
|
3097e8eddb
|
feat(editor): 支持配置自定义创建Monaco editor函数
|
2025-06-06 16:03:56 +08:00 |
|
roymondchen
|
e7e9197ae3
|
style: 更新eslint版本,更新eslint配置
|
2025-04-21 20:35:54 +08:00 |
|
roymondchen
|
54e00f2852
|
feat(editor): 编辑代码块/数据源时高亮列表中对应的项
|
2025-04-10 20:36:38 +08:00 |
|
roymondchen
|
9b546645f3
|
chore: update deps
|
2025-03-31 20:31:29 +08:00 |
|
roymondchen
|
900b701c80
|
refactor(editor): 新增useServices hook,减少使用可选链
|
2025-02-11 16:24:24 +08:00 |
|
roymondchen
|
877a4eaa49
|
feat(editor): 优化浏览器变小时各列大小变化
|
2025-02-10 19:59:11 +08:00 |
|
roymondchen
|
1baec3f1d4
|
refactor(editor): useTemplateRef参数不能与变量名一样,不然会有一个warn
|
2025-01-09 20:48:35 +08:00 |
|
roymondchen
|
e8bbdf613b
|
feat(editor): 样式配置面板支持拖动大小
|
2024-12-30 20:44:27 +08:00 |
|
roymondchen
|
74f76d0ba3
|
feat(editor): 数据源/代码编辑列表新增右键菜单
|
2024-12-16 20:20:02 +08:00 |
|
roymondchen
|
7109df9deb
|
refactor(editor): 模板改成使用useTemplateRef
|
2024-12-13 16:19:44 +08:00 |
|
roymondchen
|
9f7d67b17b
|
feat(form,editor): 表单新增修改数据记录
|
2024-12-09 20:21:34 +08:00 |
|
roymondchen
|
47a21d6544
|
feat(editor): 新增已选组件、代码编辑、数据源及其子节点增量缩进配置
|
2024-12-09 20:21:34 +08:00 |
|
roymondchen
|
34fc0a15b9
|
refactor: 将data-source,dep,schema,utils收敛到core,将form,table,stage,design,util收敛到editor
|
2024-12-09 20:21:34 +08:00 |
|
roymondchen
|
ee469dfd65
|
refactor: 及时释放没用变量
|
2024-12-09 20:21:34 +08:00 |
|
roymondchen
|
8d54bcafc1
|
style(editor): 代码参数配置label width设置长些
|
2024-08-06 14:35:19 +08:00 |
|
roymondchen
|
72a7c151e9
|
fix(editor): 组件树右键菜单在组件树面板拖出时被面板遮挡
fix #624
|
2024-07-25 19:30:50 +08:00 |
|
roymondchen
|
16d4eff385
|
fix(editor): 组件树中将容器拖入自身中会导致容器丢失
fix #622
|
2024-07-25 17:20:36 +08:00 |
|
roymondchen
|
6cdeaa0c1b
|
feat(editor): 方法参数支持选择数据源字段
|
2024-07-02 16:16:15 +08:00 |
|
roymondchen
|
7fb4d96cb0
|
fix(editor): 已选组件树中如果出现items不是数组会导致节点渲染失败
|
2024-05-30 17:23:41 +08:00 |
|
roymondchen
|
7049b1ff45
|
fix(editor): 初始化时如果浏览器切到后台编辑器列宽度计算出问题
|
2024-03-26 15:20:41 +08:00 |
|
roymondchen
|
b3cf919273
|
chore(editor): 解决warning
|
2024-03-19 19:18:03 +08:00 |
|
moonszhang
|
96149bd2ae
|
feat(editor): 数据源抽屉切floatbox
|
2024-03-19 11:07:43 +00:00 |
|