feat: base 添加了valTypeEnum/boolEnum

This commit is contained in:
caoqianming 2024-04-10 10:22:36 +08:00
parent b0ada60169
commit fcc4ac5aa4
1 changed files with 13 additions and 1 deletions

View File

@ -85,4 +85,16 @@ export const eqTypeEnum = new EnumFactory({
30: { text: '治理设备', type: 'warning' },
40: { text: '监测设备', type: 'danger' },
50: { text: '监控设备', type: 'info' },
}, parseInt)
}, parseInt)
export const valTypeEnum = new EnumFactory({
'int': '整型',
'float': '浮点型',
'str': '字符串型',
'bool': '布尔型',
})
export const boolEnum = new EnumFactory({
true: '是',
false: '否',
})