feat: 完成创建角色功能
This commit is contained in:
8 files changed
+185
-16
No files matched your search
@@ -12,3 +12,10 @@ export interface AntTreeSelectOption<T> {
|
||||
selectable?: boolean
|
||||
checkable?: boolean
|
||||
}
|
||||
|
||||
export interface AntSelectOptionItem {
|
||||
label: string
|
||||
value: string
|
||||
}
|
||||
|
||||
export type AntSelectOption = AntSelectOptionItem[]
|
||||
@@ -1,6 +1,18 @@
|
||||
import type { AntSelectOption } from "@/types/antd"
|
||||
|
||||
/**
|
||||
* Status
|
||||
*/
|
||||
export type Status = "ACTIVE" | "INACTIVE"
|
||||
|
||||
export type UserStatus = Status | "LOCKED"
|
||||
|
||||
export const StatusOptions: AntSelectOption = [
|
||||
{ label: "已启用", value: "ACTIVE" },
|
||||
{ label: "已停用", value: "INACTIVE" },
|
||||
]
|
||||
|
||||
export const UserStatusOptions: AntSelectOption = [
|
||||
...StatusOptions,
|
||||
{ label: "已禁用", value: "LOCKED" },
|
||||
]
|
||||
Reference in new issue
Block a user