Files
eip4-web/src/amis
zhengwr 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
..