Commit Graph

3 Commits

Author SHA1 Message Date
“chenhuachun”
b0b5cd6b66 fix(composer): 修复 dataSources 解析时的符号转换问题
- parseDataSources 函数新增 symbols 参数以支持表达式转换
- 在 mockTemplate 和 transform 中根据 symbols 调用 transformExpression
- composition/index.ts 中调用 parseDataSources 时传入 symbols 参数
- 添加 parseDataSources 相关单元测试,验证表达式转换行为
- lifeCycles.vue 中修复条件判断结果,避免多余的 'setup' 添加
2026-06-15 22:32:55 +08:00
“chenhuachun”
d266472d2d refactor(composition): 将 state 重命名为 __state 以避免命名冲突
- 在全局 API 映射中新增 __state 配置
- 将 reactive 声明中的 state 重命名为 __state
- 更新符号表中的 reactives 集合,替换 state 为 __state
- 变换器中将 name 为 state 的标识转换为 __state
- 单元测试中替换所有 state 为 __state
- scriptSetup 解析中区分 __state 并正确处理
- 反向转换中将 __state 映射回 this.state
- 修正相关测试用例,确保 __state 正确替代 state
2026-06-12 14:31:54 +08:00
“chenhuachun”
2d36513e0e test: add unit tests for Collecter and code generation utilities 2026-06-10 16:38:52 +08:00