fix: 更新 features 测试断言以匹配新增的 testDataGenerator
fix: 修复测试数据生成器多项代码问题 - useCallback 闭包问题:改用函数式 setFields 更新,避免依赖过时引用 - Worker 复用:复用已有 Worker 而非每次 generate 都销毁重建 - 导出复制反馈:复制操作完成后添加 toast 成功/失败提示 - 字段名校验:添加空值、非法字符、重复名称校验 - i18n 硬编码:GeneratorConfig 和 ruleStorage 统一使用 t() 函数
This commit is contained in:
@@ -1260,5 +1260,45 @@
|
||||
"testDataGenerator_saveAs": {
|
||||
"message": "另存为",
|
||||
"description": "Translation key: testDataGenerator_saveAs"
|
||||
},
|
||||
"testDataGenerator_noGeneratorParams": {
|
||||
"message": "此生成器无可配置参数",
|
||||
"description": "Translation key: testDataGenerator_noGeneratorParams"
|
||||
},
|
||||
"testDataGenerator_enabled": {
|
||||
"message": "启用",
|
||||
"description": "Translation key: testDataGenerator_enabled"
|
||||
},
|
||||
"testDataGenerator_disabled": {
|
||||
"message": "禁用",
|
||||
"description": "Translation key: testDataGenerator_disabled"
|
||||
},
|
||||
"testDataGenerator_commaSeparated": {
|
||||
"message": "用逗号分隔多个值",
|
||||
"description": "Translation key: testDataGenerator_commaSeparated"
|
||||
},
|
||||
"testDataGenerator_copySuccess": {
|
||||
"message": "已复制到剪贴板",
|
||||
"description": "Translation key: testDataGenerator_copySuccess"
|
||||
},
|
||||
"testDataGenerator_copyFailed": {
|
||||
"message": "复制失败",
|
||||
"description": "Translation key: testDataGenerator_copyFailed"
|
||||
},
|
||||
"testDataGenerator_fieldNameEmpty": {
|
||||
"message": "字段名称不能为空",
|
||||
"description": "Translation key: testDataGenerator_fieldNameEmpty"
|
||||
},
|
||||
"testDataGenerator_fieldNameDuplicate": {
|
||||
"message": "字段名称已存在",
|
||||
"description": "Translation key: testDataGenerator_fieldNameDuplicate"
|
||||
},
|
||||
"testDataGenerator_fieldNameInvalid": {
|
||||
"message": "字段名称只能包含字母、数字和下划线",
|
||||
"description": "Translation key: testDataGenerator_fieldNameInvalid"
|
||||
},
|
||||
"testDataGenerator_ruleCopySuffix": {
|
||||
"message": "(副本)",
|
||||
"description": "Translation key: testDataGenerator_ruleCopySuffix"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user