This commit is contained in:
dute7liang
2023-12-19 22:16:38 +08:00
commit 7b450eac94
297 changed files with 25985 additions and 0 deletions

8
src/constant/global.js Normal file
View File

@@ -0,0 +1,8 @@
export const listClass = {
danger: 'danger',
primary: 'primary',
default: 'default',
success: 'success',
info: 'info',
warning: 'warning',
}

20
src/constant/statusMap.js Normal file
View File

@@ -0,0 +1,20 @@
import { listClass } from '@/constant/global'
const arrToMap = arr =>
arr.reduce((res, cur) => {
res[cur.value] = cur.label
return res
}, {})
export const genderList = [
{ value: 0, label: '未知', listClass: listClass.warning },
{ value: 1, label: '女', listClass: listClass.danger },
{ value: 2, label: '男', listClass: listClass.primary }
]
export const authList = [
{ value: 0, label: '未认证', listClass: listClass.danger },
{ value: 1, label: '已认证', listClass: listClass.primary }
]