diff --git a/packages/select-table-modal/index.vue b/packages/select-table-modal/index.vue index 3280d5a..4ec3983 100644 --- a/packages/select-table-modal/index.vue +++ b/packages/select-table-modal/index.vue @@ -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()) diff --git a/types/page.d.ts b/types/page.d.ts index 5e6f47d..b1598f6 100644 --- a/types/page.d.ts +++ b/types/page.d.ts @@ -6,4 +6,15 @@ declare interface Page { /** 总页数 */ total: number message: string +} + +/** 表单项 */ +declare interface FormItem { + label: string + prop: string + placeholder?: string + selectOptions?: { + label: string + value: string + }[] } \ No newline at end of file