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