From fcc4ac5aa4d34a150f3fe9fe3510362ba24350fc Mon Sep 17 00:00:00 2001 From: caoqianming Date: Wed, 10 Apr 2024 10:22:36 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20base=20=E6=B7=BB=E5=8A=A0=E4=BA=86valTy?= =?UTF-8?q?peEnum/boolEnum?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/enum.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/utils/enum.js b/src/utils/enum.js index ebb6dc50..e3f3cc79 100644 --- a/src/utils/enum.js +++ b/src/utils/enum.js @@ -85,4 +85,16 @@ export const eqTypeEnum = new EnumFactory({ 30: { text: '治理设备', type: 'warning' }, 40: { text: '监测设备', type: 'danger' }, 50: { text: '监控设备', type: 'info' }, -}, parseInt) \ No newline at end of file +}, parseInt) + +export const valTypeEnum = new EnumFactory({ + 'int': '整型', + 'float': '浮点型', + 'str': '字符串型', + 'bool': '布尔型', +}) + +export const boolEnum = new EnumFactory({ + true: '是', + false: '否', +}) \ No newline at end of file