diff --git a/yudao-ui-admin-vue3/src/components/Table/src/Table.vue b/yudao-ui-admin-vue3/src/components/Table/src/Table.vue index f196a5866..a34157857 100644 --- a/yudao-ui-admin-vue3/src/components/Table/src/Table.vue +++ b/yudao-ui-admin-vue3/src/components/Table/src/Table.vue @@ -6,6 +6,7 @@ import { setIndex } from './helper' import { getSlot } from '@/utils/tsxHelper' import type { TableProps } from './types' import { set } from 'lodash-es' +import { Pagination, TableColumn, TableSetPropsType, TableSlotDefault } from '@/types/table' export default defineComponent({ name: 'Table', diff --git a/yudao-ui-admin-vue3/src/hooks/web/useCrudSchemas.ts b/yudao-ui-admin-vue3/src/hooks/web/useCrudSchemas.ts index 5417dc7ab..57d0f8131 100644 --- a/yudao-ui-admin-vue3/src/hooks/web/useCrudSchemas.ts +++ b/yudao-ui-admin-vue3/src/hooks/web/useCrudSchemas.ts @@ -4,6 +4,7 @@ import { getIntDictOptions } from '@/utils/dict' import { FormSchema } from '@/types/form' import { TableColumn } from '@/types/table' import { DescriptionsSchema } from '@/types/descriptions' +import { ComponentOptions } from '@/types/components' export type CrudSchema = Omit & { search?: CrudSearchParams diff --git a/yudao-ui-admin-vue3/src/utils/dict.ts b/yudao-ui-admin-vue3/src/utils/dict.ts index 7b122cba4..5050d2e7b 100644 --- a/yudao-ui-admin-vue3/src/utils/dict.ts +++ b/yudao-ui-admin-vue3/src/utils/dict.ts @@ -2,6 +2,7 @@ * 数据字典工具类 */ import { useDictStoreWithOut } from '@/store/modules/dict' +import { ElementPlusInfoType } from '@/types/elementPlus' const dictStore = useDictStoreWithOut() diff --git a/yudao-ui-admin-vue3/src/views/Login/components/RegisterForm.vue b/yudao-ui-admin-vue3/src/views/Login/components/RegisterForm.vue index 1424a9c9d..2e6cd64af 100644 --- a/yudao-ui-admin-vue3/src/views/Login/components/RegisterForm.vue +++ b/yudao-ui-admin-vue3/src/views/Login/components/RegisterForm.vue @@ -7,6 +7,7 @@ import { ElInput, FormRules } from 'element-plus' import { useValidator } from '@/hooks/web/useValidator' import { useLoginState, LoginStateEnum } from './useLogin' import LoginFormTitle from './LoginFormTitle.vue' +import { FormSchema } from '@/types/form' const { register, elFormRef } = useForm() const { handleBackLogin, getLoginState } = useLoginState() diff --git a/yudao-ui-admin-vue3/src/views/infra/codegen/components/BasicInfoForm.vue b/yudao-ui-admin-vue3/src/views/infra/codegen/components/BasicInfoForm.vue index ad8beadf6..a61bf0f81 100644 --- a/yudao-ui-admin-vue3/src/views/infra/codegen/components/BasicInfoForm.vue +++ b/yudao-ui-admin-vue3/src/views/infra/codegen/components/BasicInfoForm.vue @@ -4,6 +4,8 @@ import { required } from '@/utils/formRules' import { CodegenTableVO } from '@/api/infra/codegen/types' import { Form } from '@/components/Form' import { useForm } from '@/hooks/web/useForm' +import { FormSchema } from '@/types/form' + const props = defineProps({ basicInfo: { type: Object as PropType>, diff --git a/yudao-ui-admin-vue3/src/views/infra/codegen/components/GenInfoForm.vue b/yudao-ui-admin-vue3/src/views/infra/codegen/components/GenInfoForm.vue index abfa91d3d..373e8d200 100644 --- a/yudao-ui-admin-vue3/src/views/infra/codegen/components/GenInfoForm.vue +++ b/yudao-ui-admin-vue3/src/views/infra/codegen/components/GenInfoForm.vue @@ -8,6 +8,7 @@ import { useForm } from '@/hooks/web/useForm' import { DICT_TYPE, getIntDictOptions } from '@/utils/dict' import { listSimpleMenusApi } from '@/api/system/menu' import { CodegenTableVO } from '@/api/infra/codegen/types' +import { FormSchema } from '@/types/form' const props = defineProps({ genInfo: { type: Object as PropType>, diff --git a/yudao-ui-admin-vue3/src/views/system/dept/dept.data.ts b/yudao-ui-admin-vue3/src/views/system/dept/dept.data.ts index 5bb7178c3..ae3b5a8b5 100644 --- a/yudao-ui-admin-vue3/src/views/system/dept/dept.data.ts +++ b/yudao-ui-admin-vue3/src/views/system/dept/dept.data.ts @@ -1,5 +1,7 @@ import { required } from '@/utils/formRules' import { reactive } from 'vue' +import { FormSchema } from '@/types/form' + // 表单校验 export const rules = reactive({ name: [required], diff --git a/yudao-ui-admin-vue3/types/global.d.ts b/yudao-ui-admin-vue3/types/global.d.ts index 7314557c5..67338cd71 100644 --- a/yudao-ui-admin-vue3/types/global.d.ts +++ b/yudao-ui-admin-vue3/types/global.d.ts @@ -19,7 +19,7 @@ declare global { | 'application/x-www-form-urlencoded' | 'multipart/form-data' - declare type AxiosMethod = 'get' | 'post' | 'delete' | 'put' + declare type AxiosMethod = 'get' | 'post' | 'delete' | 'put' | 'GET' | 'POST' | 'DELETE' | 'PUT' declare type AxiosResponseType = 'arraybuffer' | 'blob' | 'document' | 'json' | 'text' | 'stream'