roymondchen
|
89cef4e9a9
|
feat(editor): 数据源与代码块历史记录不再合并相邻操作
每条操作独立展示,与页面历史的合并策略区分开。
|
2026-06-11 17:25:54 +08:00 |
|
roymondchen
|
113af7dd51
|
feat(editor): 页面删除前增加确认弹窗并支持危险样式按钮
|
2026-06-11 17:00:10 +08:00 |
|
roymondchen
|
846f05e04d
|
feat(design): popover 支持点击外部关闭
新增 closeOnClickOutside 与 clickOutsideIgnore 配置,
兼容 element-plus / tdesign 衍生浮层。
历史列表面板改用 v-model:visible 配合自动收起。
|
2026-06-11 16:49:54 +08:00 |
|
roymondchen
|
fd652b0d13
|
feat(editor): 页面历史记录点击选中对应画布节点
支持在页面历史 tab 点击记录行选中 diff 中的节点,并联动画布与 overlay;清空页面历史改用 clear-page 事件,避免 restore 时重复触发 change。
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-06-11 16:22:25 +08:00 |
|
roymondchen
|
7d45aa5eec
|
style(editor): 优化历史列表操作区悬停展示与列对齐
将回滚/回到/查看差异收敛为悬停显示的操作区,固定序号列右对齐,并调整「回到」按钮配色。
|
2026-06-11 15:51:44 +08:00 |
|
roymondchen
|
6ba59c0d14
|
feat(editor): 将侧边栏激活面板状态同步至 uiService
|
2026-06-11 15:12:56 +08:00 |
|
roymondchen
|
4f284e8d9c
|
feat(editor): 支持页面初始基线与 root 变更历史记录
设置 root 时为各页建立 initial 基线并展示在历史列表底部;编辑期间再次 set root 按页面粒度写入历史,并抽取历史工具函数以支持撤销下限与持久化恢复。
|
2026-06-11 15:00:11 +08:00 |
|
roymondchen
|
48519b0155
|
fix(editor): 优化历史回滚确认流程
|
2026-06-09 11:05:26 +08:00 |
|
roymondchen
|
a965dfb06e
|
refactor(editor): 优化历史记录列表复用
|
2026-06-08 20:09:10 +08:00 |
|
roymondchen
|
614f12adf3
|
feat(editor): 支持历史记录持久化
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-06-08 17:04:39 +08:00 |
|
roymondchen
|
3bd0eecb42
|
fix(editor): 修复合并历史记录信息展示
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-06-04 17:10:54 +08:00 |
|
roymondchen
|
10b70c36bb
|
fix(editor): 禁止缺少变更记录的历史回滚
|
2026-06-04 16:48:24 +08:00 |
|
roymondchen
|
27b2c2c685
|
feat(editor): 历史记录支持操作来源
|
2026-06-04 16:08:52 +08:00 |
|
roymondchen
|
a9e9e65f9c
|
feat(editor): 历史记录列表展示时间并优化回滚差异弹窗
为历史步骤自动写入 timestamp 并按当天/跨天格式化展示;回滚确认弹窗区分标题与说明,关闭时清理确认回调。
|
2026-06-03 18:09:21 +08:00 |
|
roymondchen
|
42162f2e4a
|
feat(editor): 历史记录差异对比弹窗关闭时派发 close 事件
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-06-02 19:56:34 +08:00 |
|
roymondchen
|
7a161cab00
|
refactor(editor): 历史记录数据源/代码块 tab 复用通用 BucketTab
|
2026-06-02 19:07:38 +08:00 |
|
roymondchen
|
1cd69b33fe
|
feat(editor): 对比表单支持自定义 loadConfig 加载逻辑
将 CompareCategory 等类型抽取到 type.ts,
新增 CompareFormLoadConfig 支持外部接管表单配置加载,
HistoryDiffDialog 透传 loadConfig 并支持 width 配置及对外导出。
|
2026-06-02 17:03:27 +08:00 |
|
roymondchen
|
1b66ab1b88
|
refactor(editor): 抽取 serializeConfig 工具统一序列化配置
将分散在 CodeLink、CodeEditor 及 playground 中重复的 serialize-javascript
序列化逻辑收敛为 @editor/utils/editor 的 serializeConfig 并对外导出复用。
|
2026-06-02 16:34:23 +08:00 |
|
roymondchen
|
8612311db1
|
feat(editor): 历史记录面板支持自定义扩展 tab 并开放 Bucket/goto 配置
新增 historyListExtraTabs 配置,可在内置页面/数据源/代码块 tab 后追加业务自定义历史 tab。
导出 HistoryListBucket 供复用,GroupRow 支持配置是否允许跳转,Bucket 支持配置是否展示初始项。
|
2026-06-01 19:21:36 +08:00 |
|
roymondchen
|
a3333e2b4e
|
feat(editor): 新增 hideSidebar 配置支持隐藏左侧面板
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-05-29 16:49:10 +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
|
c854dfa8bf
|
feat(editor): vs-code 字段对比模式改用 monaco diff 编辑器
- Container.vue 新增「自接管对比」字段类型白名单(当前含 vs-code),命中时只渲染一次组件并透传 model/lastValues/isCompare,由字段内部展示差异
- Code.vue 在 isCompare 模式下切换到 type='diff',使用 monaco 内置 diff 视图替代两个独立编辑器实例
- CodeEditor.vue 补充对 modifiedValues 的 watch,避免 diff 模式下右侧值停留在初始快照
|
2026-05-28 20:12:46 +08:00 |
|
roymondchen
|
59f4e0edac
|
feat(editor): 历史记录面板支持差异对比
- 新增 HistoryDiffDialog 历史差异对比弹窗
- 新增 CompareForm 表单对比组件
- 抽取 code-block 工具函数到 utils/code-block.ts
- 历史列表面板支持选择两个版本进行对比
|
2026-05-28 19:49:03 +08:00 |
|
roymondchen
|
62a2ee6693
|
feat(editor): 历史记录面板支持点击跳转与回到初始状态
- 单步组头部点击跳转到该步骤;合并组头部点击展开/收起,子步行点击跳转到具体步骤
- 列表底部新增「初始」记录项,可一键回到所有修改之前的状态
- editorService/dataSourceService/codeBlockService 新增 goto API;historyService 暴露 cursor 读取器
|
2026-05-28 18:52:11 +08:00 |
|
roymondchen
|
0446202ba6
|
feat(editor): 新增历史记录列表面板
- 新增 history-list 模块(面板、Tab、Bucket、GroupRow 与 composables)
- NavMenu 接入历史记录面板入口
- history/editor/codeBlock/dataSource service 配合面板能力调整
- utils/undo-redo 适配新面板
- 扩展 type.ts 相关类型定义
- 新增 history-list-panel.scss 并在 theme.scss 引入
- 补充 history-list 模块完整单元测试
- playground 同步小幅调整
|
2026-05-28 17:51:52 +08:00 |
|
roymondchen
|
4c855ba50b
|
feat(editor): 写操作支持 doNotPushHistory 选项以跳过历史记录
- editor/codeBlock/dataSource 的 add/update/delete 等接口新增 doNotPushHistory 选项
- 移除不再使用的 editor-history 工具及其单测
- 修复 layer 节点状态在重建时丢失已有 status 的问题
- 同步更新 service 方法文档,新增 dragto 复现用例
|
2026-05-28 16:03:29 +08:00 |
|
roymondchen
|
b9a6dd5b84
|
fix(editor): 修复 root 整体替换时图层面板节点状态残留与组件树闪烁问题
|
2026-05-26 17:06:45 +08:00 |
|
roymondchen
|
eb1c5a3ec1
|
fix(editor): 属性面板 padding 仅作用于最外层表单
为 PropsPanel 顶层 MForm 增加 .m-editor-props-form-panel-form 专属类名,
将原本挂在通用 .tmagic-design-form 上的 padding 与 tab 样式迁移到该类,
避免子组件中嵌套的 .tmagic-design-form 被错误命中。
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-05-22 15:57:13 +08:00 |
|
roymondchen
|
f1aedc4ce7
|
fix(editor): 修复 CodeEditor setValue 时滚动位置与折叠等视图状态丢失
使用 saveViewState/restoreViewState 替代 getPosition/setPosition,并放到
nextTick 中执行,避免被 setAutoHeight 的 setScrollTop(0) 覆盖,导致光标
位置变化时编辑器滚动跳回顶部。
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-05-18 12:09:45 +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
|
aab73249d1
|
feat(editor): 新增 alwaysMultiSelect 配置开启常驻多选模式
新增编辑器配置项 alwaysMultiSelect(默认 false),开启后无需按住 Ctrl/Meta
键,组件树与画布点击即多选;当 disabledMultiSelect=true 时本配置失效。同步
在 stage 层 ActionManager 暴露 setAlwaysMultiSelect 方法用于运行时切换,并
补充组件树/服务/画布的状态联动、文档与单元测试。
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-05-11 16:50:40 +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
|
5af9f6e27a
|
feat(editor): 新增 canDropIn 配置统一控制 layer/stage 拖拽放入行为
支持通过 scene 区分图层树、画布拖动、组件库新增三种场景;
返回 false 阻止放入,返回 Id 可重定向放入目标节点。
layer 场景下若禁用某节点的 inner,其子节点的 before/after 也会被同步禁用以避免被绕过。
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-05-09 16:38:10 +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
|
7b870e5908
|
feat(editor): 面包屑超出父容器 80% 时折叠中间项并对单项打点
- 路径过长时仅保留首项 + ... + 末两项,避免横向溢出工作区
- 单项设置 max-width 并通过内部 span 显示省略号,悬浮 tooltip 展示完整名称
- 通过 ResizeObserver 监听父容器宽度变化实时重测
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-05-07 19:20:46 +08:00 |
|
roymondchen
|
a520626ef6
|
feat(editor): getPropsConfig 支持传入 node 参数并修正 CondOpSelectConfig 类型
- props service 的 getPropsConfig 增加可选 data 参数以传递当前节点信息
- 修正 CondOpSelectConfig 的 type 字段为 'cond-op-select'
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-05-07 16:24:17 +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
|
b46b571214
|
feat(editor): 没有参考线时不显示参考线切换按钮
Made-with: Cursor
|
2026-04-23 15:42:10 +08:00 |
|
roymondchen
|
334569e2d7
|
feat(editor): 添加 stage beforeDblclick 钩子,支持拦截默认双击行为
在 StageOptions 和 EditorProps 中新增 beforeDblclick 配置项,
该函数返回 false 或 Promise<false> 时将阻止 stage 默认的双击处理逻辑。
Made-with: Cursor
|
2026-04-07 19:19:00 +08:00 |
|
roymondchen
|
172a7a1c92
|
feat(editor,stage): 支持双击穿透选中鼠标下方的下一个可选中元素
将 dblclick 处理统一到 Stage.vue,新增 ActionManager.getNextElementFromPoint
方法跳过最上层元素返回下方第二个可选中元素,双击时若无特殊处理则穿透选中下方组件。
Made-with: Cursor
|
2026-04-07 18:25:35 +08:00 |
|
roymondchen
|
df2d635682
|
fix(editor): 优化 StageOverlay 双击行为,仅在元素被滚动容器裁剪时打开 overlay
双击页面片容器时直接选中对应页面片;新增 isClippedByScrollContainer
判断元素是否被非页面级滚动容器裁剪,避免不必要的 overlay 弹出。
Made-with: Cursor
|
2026-04-07 18:25:35 +08:00 |
|
roymondchen
|
71d6dd9e38
|
feat(editor): monaco-editor改成异步加载
|
2026-03-12 17:27:07 +08:00 |
|
roymondchen
|
67d93ec35f
|
fix(editor): 显示源码后再显示回编辑器画布空了
|
2026-03-12 16:35:33 +08:00 |
|
roymondchen
|
cfaaaad66e
|
feat(editor): customCreateMonacoEditor options中新增editorCustomType,可以用于创建不同的editor
|
2026-01-07 17:38:37 +08:00 |
|
roymondchen
|
70d730ca82
|
refactor(editor): 新增数据源按钮封装成组件
|
2025-12-04 17:31:38 +08:00 |
|
roymondchen
|
a2a9556ab8
|
style(editor): 调整已选组件节点右侧按钮样式
|
2025-12-04 16:36:34 +08:00 |
|
roymondchen
|
8d55d0cd8d
|
feat(editor): 代码编辑器支持配置自动高度
|
2025-12-03 17:50:48 +08:00 |
|
roymondchen
|
82df2a8f5c
|
chore: update deps
|
2025-11-21 16:50:46 +08:00 |
|
roymondchen
|
08b476e04f
|
feat(design,editor,element-plus-adapter,form,table,tdesign-vue-next-adapter): 重构table组件,适配tdesign
|
2025-11-12 19:52:30 +08:00 |
|