|
|
03533eaf5e
|
fix(amis): scriptCommands 哑火动词改显式跳过+告警(§10.2 有界安全修)
amis setValue 动作(CmptAction)只读 args.value、丢弃 required/filter/options/label/style 等语义 args→6 个动词(setLabel/setRequired/setFilter/setOptions/setNullSelection/setStyle)运行时静默哑火,且 args.value=undefined 经 onChange 路径可能清值。amis 全量 registerAction 核实无这些动词的内置 action。改为显式跳过(返回 null,translateCommands 自动过滤)+ 一次性 console.warn,消除清值风险、不再伪装已处理。真正支持需转换器侧数据绑定(requiredOn/source 绑数据变量)属 L 跨切面,留 §10.2 follow-up。scriptCommands.test 22(含 6 动词跳过/整体过滤/告警去重),registerReplay 7,full vitest 83/83+tsc -b 干净。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
2026-06-25 13:38:28 +08:00 |
|
|
|
d03c2ba156
|
fix(web): support approval history drawer
|
2026-06-18 02:12:49 +08:00 |
|
|
|
16393c183c
|
fix(web): standardize user picker and message detail
|
2026-06-18 00:30:01 +08:00 |
|
|
|
b0537f87ae
|
fix(web): normalize legacy user pickers to amis picker
|
2026-06-17 23:48:39 +08:00 |
|
|
|
78d859df92
|
fix(web): normalize user transfer picker layout
|
2026-06-17 23:15:35 +08:00 |
|
|
|
f96d3a2ea4
|
fix(web): keep user picker label inline
|
2026-06-17 22:57:49 +08:00 |
|
|
|
9e5ece3640
|
fix(web): preserve user transfer form labels
|
2026-06-17 22:46:43 +08:00 |
|
|
|
ba41a76a70
|
feat(web): add legacy user transfer picker
|
2026-06-17 22:36:33 +08:00 |
|
|
|
f7ac4cd49e
|
fix(approval): wire workflow task drawer actions
|
2026-06-17 20:44:52 +08:00 |
|
|
|
7b5d9d2640
|
F2-3:前端嵌套指令重放(addButton onClick + confirmDialog onOk)
scriptCommands.ts:addButton 保留 onClick 子指令数组透传,confirmDialog
新增翻译(onOk 子指令数组透传)。registerReplayAction.ts:addButton/
confirmDialog 嵌套时翻译子指令挂 onClickActions/onOkActions 再派发给 amis。
补单测 7 个(scriptCommands 4 + registerReplayAction 3),共 23/23 全绿。
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
2026-06-11 22:24:22 +08:00 |
|
|
|
82e01f893a
|
P4-5: 前端改写后脚本指令 onEvent 重放胶水
AmisRenderer embed 前注册自定义 amis 动作 replayScriptCommands:
scriptCommands.translateCommands 把后端 facade 返回的 29 UI 动词指令
翻译成 amis 动作(show/hidden/static/setValue/setOptions/addOption/
toast/reload/...),逐条经 amis-core runActions 重放;带 componentId
者走组件级路由,componentId=大写列名与字段 name 天然对齐。
e2e(playwright,后端 8086 + dev):2 真实 FULL_AUTO facade-only 模板
- 福利保险结算单 inited → setFieldVisible 隐藏 BEGINDATE(截图留档)
- 办公用品领用申请 change → bindField(getFieldValue) 回填 OLD_STORE_ID
(服务端 getFieldValue 从 item 求值闭环,截图留档),2 passed。
测试:vitest scriptCommands 12 + registerReplayAction 4;tsc+build 全绿。
工具链:devDeps 加 vitest/jsdom/testing-library/playwright + test script。
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
2026-06-11 16:56:04 +08:00 |
|