review:【INFRA】标准的代码生成

This commit is contained in:
YunaiV
2025-04-25 23:29:46 +08:00
parent e4267573e9
commit 7a9df83d71
7 changed files with 133 additions and 41 deletions

View File

@@ -59,8 +59,10 @@ function getDictObj(dictType: string, value: any) {
* 获取字典数组 用于select radio 等
*
* @param dictType 字典类型
* @param valueType 字典值类型,默认 string 类型
* @returns 字典数组
*/
// TODO @puhui999貌似可以定义一个类型不使用 any[]
function getDictOptions(
dictType: string,
valueType: 'boolean' | 'number' | 'string' = 'string',