lnuxe
2e84835e13
fix(runtime): allow adding a page when the DSL has no pages
...
The add handler required selectedId to be set for every kind of node. A DSL
with an empty items array leaves selectedId undefined, because updateRoot
only fills it from items[0], so clicking add-page in that state threw a bare
Error and no page was created.
Only require selectedId for regular nodes. Pages and page fragments are
attached to the root and need no anchor node.
fix #653
2026-11-11 17:20:22 +08:00
roymondchen
72664955bf
chore(runtime): runtime-help 版本转正式版并同步依赖引用
2026-11-05 17:50:14 +08:00
roymondchen
c45b6706b6
chore: release v1.8.4
2026-11-05 17:45:57 +08:00
roymondchen
5cc5ab872f
chore(deps): 升级依赖版本并优化 clean:modules 脚本
2026-11-05 17:14:20 +08:00
roymondchen
c50c245fbb
chore(release): @tmagic/react-runtime-help 升级至 0.2.3-beta.1
2026-11-02 15:45:00 +08:00
roymondchen
9c740fb2be
chore(release): @tmagic/vue-runtime-help 升级至 2.0.6-beta.1
2026-11-02 15:22:22 +08:00
roymondchen
225850bce0
chore: release v1.8.4-beta.1
2026-11-02 15:14:21 +08:00
roymondchen
dfc4f55390
feat(core): 新增 setPageFragment/deletePageFragment 同步页面片实例
...
App 新增 setPageFragment / deletePageFragment 方法,用于同步页面片实例。
容器关联、切换、取消关联页面片时同步 pageFragments,并触发 page-fragments-change。
- Page 重建时强制同步页面片内容(force)
- useDsl 改用动态获取页面片实例,避免 setup 快照过期
- useEditorDsl 在关联变更、删除容器时同步页面片实例
- 补充 core 与 vue-runtime-help 单测,更新 runtime-api 文档
2026-11-02 14:39:56 +08:00
roymondchen
0c1d103cd0
fix(runtime): 修复 useDsl 换页后更新失效与重复替换
...
- 事件处理改为读取最新页面配置(ref),换页后不再更新到旧页面
- react 版事件监听移入 useEffect 并依赖 app,避免监听泄漏
- 按节点对象去重并批量 replaceChildNodes,同一次批量更新的多份相同节点只替换一次
- 忽略非当前页面的 update-data
2026-10-30 16:49:34 +08:00
roymondchen
c6deac8524
chore: release v1.8.3
2026-10-13 19:24:00 +08:00
roymondchen
d9b096c91c
chore: release v1.8.2
2026-09-23 16:38:14 +08:00
roymondchen
80197be543
chore: release v1.8.1
2026-09-23 12:53:08 +08:00
roymondchen
86fcd5d593
chore: release v1.8.0
2026-09-21 16:26:48 +08:00
roymondchen
ecff8ceb76
chore: release v1.8.0-beta.29
2026-09-20 17:16:20 +08:00
roymondchen
77e9f86efb
chore: 升级依赖并适配 Vitest 5
2026-09-20 17:12:09 +08:00
roymondchen
39ef49db7d
fix(tmagic-form): 合并宿主 $MAGIC_FORM 与 formOptions,避免二次安装清空 request
2026-09-14 21:19:52 +08:00
roymondchen
911cecfb1d
chore: release v1.8.0-beta.28
2026-09-09 11:25:18 +08:00
roymondchen
5fa9b37856
chore: release v1.8.0-beta.27
2026-09-04 11:34:03 +08:00
roymondchen
092bc2914d
feat(data-source): 新增数据源 mounted 生命周期
...
页面渲染完成后由 runtime 触发 mounted 事件,统一管理数据源 mounted 及 timing=mounted 的方法执行;支持异步注册数据源在 init 后补充 mounted。
2026-09-03 20:27:18 +08:00
roymondchen
260582f141
chore: release v1.8.0-beta.26
2026-09-01 19:35:44 +08:00
roymondchen
8ca03b59a0
chore: release v1.8.0-beta.25
2026-08-13 15:09:11 +08:00
roymondchen
01915634e4
chore(vue-runtime-help): release v2.0.5
2026-08-10 20:56:23 +08:00
roymondchen
a7ccbe73af
chore: release v1.8.0-beta.24
2026-08-10 20:49:19 +08:00
roymondchen
a7198e2731
fix(editor): 修复连续 add 与批量插入时节点顺序错乱
...
通过 lastAdded 记忆插入锚点、批量 add 改为串行,并向 runtime 传递 index 以保证编辑器与画布 DSL 顺序一致。
2026-08-07 11:59:06 +08:00
roymondchen
65db14cb98
chore: release v1.8.0-beta.23
2026-08-06 13:54:43 +08:00
roymondchen
192c16a7be
chore: upgrade dependencies and build tooling
2026-08-05 18:13:43 +08:00
roymondchen
1bf0bb9cce
chore: release v1.8.0-beta.22
2026-08-04 20:02:33 +08:00
roymondchen
a6e542d668
chore: release v1.8.0-beta.21
2026-08-04 13:08:49 +08:00
roymondchen
0ea5568fec
chore: release v1.8.0-beta.20
2026-07-30 17:10:43 +08:00
roymondchen
aa42144738
fix(editor): 修复删除页面/页面片时画布被误清空的问题
...
删除当前页时先切换画布再通知 runtime 销毁;runtime 侧仅在删除当前渲染页时才调用 deletePage。
2026-07-30 15:38:27 +08:00
roymondchen
4923a34835
chore: release v1.8.0-beta.19
2026-07-28 16:52:20 +08:00
roymondchen
a342a78313
chore: release v1.8.0-beta.18
2026-07-28 16:16:20 +08:00
roymondchen
a0b5702330
chore: release v1.8.0-beta.17
2026-07-27 17:39:05 +08:00
roymondchen
329cd947e1
chore: release v1.8.0-beta.16
2026-07-23 22:11:18 +08:00
roymondchen
bf9078a458
chore: release v1.8.0-beta.15
2026-07-23 20:24:47 +08:00
roymondchen
3fbce585a4
chore: release v1.8.0-beta.14
2026-07-23 12:12:18 +08:00
roymondchen
3e7980c0f5
chore: release v1.8.0-beta.13
2026-07-22 11:34:14 +08:00
roymondchen
58b151af64
chore: release v1.8.0-beta.12
2026-07-20 20:11:33 +08:00
roymondchen
7459224009
chore(deps): 升级开发依赖版本并同步 workspace catalog 与 lockfile
2026-07-16 19:48:07 +08:00
roymondchen
1ef3ea9eb9
chore: release v1.8.0-beta.11
2026-06-29 21:26:37 +08:00
roymondchen
55135fc063
chore: release v1.8.0-beta.10
2026-06-26 19:52:59 +08:00
roymondchen
af197363cf
fix(vue-runtime-help): handle remove when root is not initialized
...
When root is empty but RemoveData carries app config, update root instead of throwing.
2026-06-26 19:51:44 +08:00
roymondchen
4c81f22485
chore: release v1.8.0-beta.9
2026-06-25 18:13:58 +08:00
roymondchen
7e789aa83a
chore: release v1.8.0-beta.8
2026-06-23 20:20:01 +08:00
roymondchen
d5c1fab016
chore: release v1.8.0-beta.7
2026-06-17 17:19:49 +08:00
roymondchen
0774aa8e59
chore: release v1.8.0-beta.6
2026-06-15 20:46:05 +08:00
roymondchen
771880b994
chore: release v1.8.0-beta.5
2026-06-11 17:05:03 +08:00
roymondchen
b7d1cea7c1
chore: release v1.8.0-beta.4
2026-06-04 17:13:59 +08:00
roymondchen
6253d7ed23
chore: release v1.8.0-beta.3
2026-06-04 14:12:13 +08:00
roymondchen
9b34124805
chore: release v1.8.0-beta.2
2026-05-29 18:55:38 +08:00