feat: 完成创建角色功能

This commit is contained in:
siujamo committed 2025-12-26 16:00:40 +08:00
1 parent 9139d0c451
commit 8aaad677b6
8 files changed
+185 -16

No files matched your search

+7
View File
@@ -12,3 +12,10 @@ export interface AntTreeSelectOption<T> {
selectable?: boolean
checkable?: boolean
}
export interface AntSelectOptionItem {
label: string
value: string
}
export type AntSelectOption = AntSelectOptionItem[]
+12
View File
@@ -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" },
]