perf: 类型抽离

This commit is contained in:
2023-08-14 15:46:09 +08:00
parent 02dc0e6089
commit 51a5d581a9
2 changed files with 13 additions and 10 deletions

11
types/page.d.ts vendored
View File

@ -6,4 +6,15 @@ declare interface Page<T = any[]> {
/** 总页数 */
total: number
message: string
}
/** 表单项 */
declare interface FormItem {
label: string
prop: string
placeholder?: string
selectOptions?: {
label: string
value: string
}[]
}