perf: 类型抽离
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
* @Author: zhaojinfeng 121016171@qq.com
|
||||
* @Date: 2023-07-18 12:30:07
|
||||
* @LastEditors: zhaojinfeng 121016171@qq.com
|
||||
* @LastEditTime: 2023-07-23 13:36:40
|
||||
* @LastEditTime: 2023-08-14 12:25:07
|
||||
* @FilePath: \vue3\packages\select-table-modal\index.vue
|
||||
* @Description: 模态框选择表格
|
||||
*
|
||||
@ -138,15 +138,7 @@ const emit = defineEmits<{
|
||||
(event: 'update:value', show: any): void
|
||||
(event: 'confirm', row: any): void
|
||||
}>()
|
||||
interface FormItem {
|
||||
label: string
|
||||
prop: string
|
||||
placeholder?: string
|
||||
selectOptions?: {
|
||||
label: string
|
||||
value: string
|
||||
}[]
|
||||
}
|
||||
|
||||
const showDialog = ref(false)
|
||||
|
||||
const slots = Object.keys(useSlots())
|
||||
|
11
types/page.d.ts
vendored
11
types/page.d.ts
vendored
@ -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
|
||||
}[]
|
||||
}
|
Reference in New Issue
Block a user