roymondchen
|
05e512b1fe
|
feat(editor): 新增 DSL 修改方法的 doNotSelect 选项
- add/remove/sort/alignCenter/moveToContainer/paste 新增 doNotSelect 选项,控制操作后是否自动触发选中变化
- doUpdate/doRemove 改为始终同步当前选中列表中的节点引用,避免 state 持有已被替换/已删除的过期节点
- 顺手修复 doUpdate 在 splice(-1) 时误改最后一个选中项的 bug
- 移除 update/doUpdate 的 selectedAfterUpdate 参数(语义已内化),move 不再暴露无意义的 doNotSelect
- 新增 safeOptions / safeParent 辅助函数,兜底插件机制将 dispatch 注入到形参位置的场景
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-05-19 17:20:04 +08:00 |
|
roymondchen
|
1e69bc221d
|
refactor(utils): 放宽 isPop/isPage/isPageFragment 入参为仅需 type 字段
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-05-19 16:25:42 +08:00 |
|
roymondchen
|
12ce19fb02
|
fix(form): 修复table-group-list中model属性可能为undefined导致的报错
|
2026-05-18 20:07:49 +08:00 |
|
roymondchen
|
aa2ee9fd4b
|
fix(form): select 在 model 值变化时补拉 init 选项
配置 config.option 时监听 model 字段变化,若当前 options 缺少对应项则重新 getInitOption,并补充单测覆盖。
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-05-18 17:49:21 +08:00 |
|
roymondchen
|
f00e84793d
|
chore: update lockfile v1.7.14-beta.2
v1.7.14-beta.2
|
2026-05-18 13:36:06 +08:00 |
|
roymondchen
|
297e5cebb0
|
chore: release v1.7.14-beta.2
|
2026-05-18 13:35:04 +08:00 |
|
roymondchen
|
5ba2019d0b
|
chore: 更新pnpm
|
2026-05-18 13:17:57 +08:00 |
|
roymondchen
|
c45df6f6ec
|
build: 优化test性能
|
2026-05-18 12:49:04 +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
|
873a51fc87
|
docs: 升级 VitePress 至 v2 alpha,类型引用改为源码片段同步
- 升级 vitepress 到 ^2.0.0-alpha.17
- vite.optimizeDeps.rolldownOptions.transform.define 迁移至 vite.define 以适配 v2 API
- 同步升级 vitest/rolldown/vue/vite 等周边依赖
- 文档中类型链接统一改为 <<< 片段引用源码 region,避免 commit hash 链接失效
- packages/{core,editor,form-schema,schema,stage} 相关类型加 // #region 锚点
- 移除已废弃的 docs/guide/advanced/tmagic-ui.md 及侧栏入口
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-05-18 11:47:03 +08:00 |
|
roymondchen
|
d16ab9a805
|
docs: 重写快速开始与 runtime 指南,与 playground/runtime 源码对齐
快速开始:
- 补充 admin-client / runtime 项目结构说明
- 完善 UI adapter(element-plus / tdesign-vue-next)说明
- 增加 Monaco worker 注入与常见报错处理
- 重写 m-editor 完整示例,对齐 playground 源码
runtime 指南:
- 完善 tmagic.config.ts 与 .tmagic 入口产物说明
- 拆分 playground / page 双入口实现细节
- 新增 vite 多入口构建、跨域方案
- 补充 @tmagic/vue-runtime-help 常用 Hook 表格
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-05-15 19:40:49 +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
|
e64d86660d
|
fix(form): 修复 Select 在 value 为空时仍发起 initUrl 请求的问题
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-05-15 19:32:04 +08:00 |
|
roymondchen
|
0efd23d6ab
|
chore: update lockfile v1.7.14-beta.1
v1.7.14-beta.1
|
2026-05-14 19:38:24 +08:00 |
|
roymondchen
|
f13f94ca2d
|
chore: release v1.7.14-beta.1
|
2026-05-14 19:37:22 +08:00 |
|
roymondchen
|
54a5570419
|
feat(form): 支持 TextConfig handler 返回 Promise,buttonClickHandler 改为 async await
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-05-14 19:32:19 +08:00 |
|
roymondchen
|
2ad5101471
|
fix(editor): 修复 StyleSetter 嵌套场景下 propPath 丢失上下文路径的问题
当 prop 与 name 不一致(如 data.items.0.style)时,原实现固定使用 name 会丢失上下文路径,
改为优先使用 prop,回退到 name,确保 changeRecords 携带完整路径。
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-05-14 19:17:48 +08:00 |
|
roymondchen
|
ab6918f43d
|
test: 完善测试用例
|
2026-05-14 15:26:22 +08:00 |
|
roymondchen
|
258617536d
|
chore: update lockfile v1.7.14-beta.0
v1.7.14-beta.0
|
2026-05-11 17:06:57 +08:00 |
|
roymondchen
|
fd770f76f1
|
chore: release v1.7.14-beta.0
|
2026-05-11 17:05:46 +08:00 |
|
roymondchen
|
49428c57bc
|
chore: update deps
|
2026-05-11 17:01:42 +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
|
d8133629b4
|
feat(editor): props 服务新增配置/值的批量获取与存在性判断方法
新增 getPropsConfigs、hasPropsConfig、getPropsValues、hasPropsValue 方法,便于外部按类型查询表单配置与初始值。
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-05-08 19:57:06 +08:00 |
|
roymondchen
|
a1f71f02d1
|
chore: update lockfile v1.7.13-beta.0
|
2026-05-08 17:48:31 +08:00 |
|
roymondchen
|
29026be6a0
|
chore: release v1.7.13-beta.0
|
2026-05-08 17:47:16 +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
|
0724c76689
|
test: 补齐 schema/form-schema/table 包测试并扩充 utils/stage/core 用例
- schema/form-schema/table 三个此前无测试的包补齐基础用例
- utils 扩充 dom helpers、compiledCond、getDefaultValueFromFields 等边界场景
- stage 补充常量/枚举与 selected class、getTargetElStyle 等工具用例
- core 新增 utils(style2Obj/transformStyle/getTransform)、Env、Store、FlowState、Page 用例
测试文件总数 43 -> 51, 用例数 419 -> 559。
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-05-07 18:54:48 +08:00 |
|
roymondchen
|
c9cef3e20c
|
fix(form): form-dialog save 时浅拷贝 changeRecords 避免引用被污染
直接传递 form.changeRecords 引用会导致 emit('submit') 后表单内部继续修改时影响外部使用方,改为浅拷贝。
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-05-07 17:34:52 +08:00 |
|
roymondchen
|
3eb8cc0614
|
docs: 完善 editor/form/runtime/stage 等 API 文档参数与说明
补全方法的参数类型、返回值类型与详情说明,规范字段编辑器/字段配置/运行时 API 等文档。
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-05-07 17:33:58 +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
|
cce8b63fc3
|
chore: update lockfile v1.7.13
v1.7.13
|
2026-04-29 15:53:10 +08:00 |
|
roymondchen
|
bd0c5a7514
|
chore: release v1.7.13
|
2026-04-29 15:52:06 +08:00 |
|
roymondchen
|
96801e2ccb
|
fix(core): getTransform 支持 string 类型并适配 hippy
Made-with: Cursor
|
2026-04-29 15:38:17 +08:00 |
|
roymondchen
|
26efa75ff2
|
feat(editor): update 支持 selectedAfterUpdate 参数控制是否更新 nodes
Made-with: Cursor
|
2026-04-28 15:50:03 +08:00 |
|
roymondchen
|
59716e909b
|
chore(vue-runtime-help): release v2.0.3
useEditorDsl 返回 root 以便外部访问根节点
Made-with: Cursor
|
2026-04-24 16:23:11 +08:00 |
|
roymondchen
|
4a102c1277
|
chore: update lockfile v1.7.12
v1.7.12
|
2026-04-24 15:50:13 +08:00 |
|
roymondchen
|
94e58342e5
|
chore: release v1.7.12
|
2026-04-24 15:48:55 +08:00 |
|
roymondchen
|
3c41091f96
|
refactor(form): 重构 table/group-list 目录结构与新增行逻辑
- 将 table 相关文件迁移至 containers/table 与 containers/table-group-list 目录
- 将新增行处理统一上移至 TableGroupList,通过 add 事件触发
- 抽取 TableGroupListCommonConfig 公共配置类型
- useFullscreen 内聚管理 zIndex
- TableColumnConfig 支持 text 作为 label 别名
Made-with: Cursor
|
2026-04-24 15:45:15 +08:00 |
|
roymondchen
|
b5af91f86c
|
chore: update lock
|
2026-04-23 20:52:39 +08:00 |
|
roymondchen
|
540d9cd5bb
|
chore(vue-runtime-help): release v2.0.2
|
2026-04-23 20:50:21 +08:00 |
|
roymondchen
|
407572ee3a
|
chore: release v1.7.11
v1.7.11
|
2026-04-23 20:41:21 +08:00 |
|
roymondchen
|
d7ad63d3a2
|
refactor(form): 调整 table-group-list 属性透传与切换按钮控制方式
- TableGroupList 新增 showIndex、sortKey、sort 属性透传至 Table
- 切换按钮显示改由 config.enableToggleMode 或组件 prop 控制,Table 不再内置 enableToggleMode
- GroupList 新增 showIndex 属性
- DisplayConds 关闭切换模式
- GroupListConfig.beforeAddRow 返回值去掉 Promise 支持
Made-with: Cursor
|
2026-04-23 20:38:56 +08:00 |
|
roymondchen
|
4cd54d1397
|
feat(table): 支持列排序配置
- design: TableColumnOptions.sortable 支持 boolean | string
- table: 将 sortable 传递到表格列配置
Made-with: Cursor
|
2026-04-23 20:04:44 +08:00 |
|
roymondchen
|
7249b5106e
|
fix(form): group-list lastValues 为空时兼容取值报错
Made-with: Cursor
|
2026-04-23 19:45:43 +08:00 |
|
roymondchen
|
9ba12e97af
|
fix(form): table 全屏每次进入重新获取 z-index
close #672
Made-with: Cursor
|
2026-04-23 17:19:52 +08:00 |
|
roymondchen
|
e106c081c8
|
feat(editor): 样式面板布局分组新增透明度配置
closes #675
Made-with: Cursor
|
2026-04-23 17:08:51 +08:00 |
|