feat: base 添加了valTypeEnum/boolEnum
This commit is contained in:
parent
b0ada60169
commit
fcc4ac5aa4
|
@ -85,4 +85,16 @@ export const eqTypeEnum = new EnumFactory({
|
||||||
30: { text: '治理设备', type: 'warning' },
|
30: { text: '治理设备', type: 'warning' },
|
||||||
40: { text: '监测设备', type: 'danger' },
|
40: { text: '监测设备', type: 'danger' },
|
||||||
50: { text: '监控设备', type: 'info' },
|
50: { text: '监控设备', type: 'info' },
|
||||||
}, parseInt)
|
}, parseInt)
|
||||||
|
|
||||||
|
export const valTypeEnum = new EnumFactory({
|
||||||
|
'int': '整型',
|
||||||
|
'float': '浮点型',
|
||||||
|
'str': '字符串型',
|
||||||
|
'bool': '布尔型',
|
||||||
|
})
|
||||||
|
|
||||||
|
export const boolEnum = new EnumFactory({
|
||||||
|
true: '是',
|
||||||
|
false: '否',
|
||||||
|
})
|
Loading…
Reference in New Issue