diff --git a/src/components/Form/src/types.ts b/src/components/Form/src/types.ts index 4ed0c3d..08f9fbe 100644 --- a/src/components/Form/src/types.ts +++ b/src/components/Form/src/types.ts @@ -1,4 +1,3 @@ -import { FormSchema } from '@/types/form' import { CSSProperties, VNodeProps, VNode } from 'vue' import { InputProps, @@ -8,6 +7,7 @@ import { CascaderNode, CascaderValue } from 'element-plus' +import type { AxiosPromise } from 'axios' export interface PlaceholderMoel { placeholder?: string @@ -16,15 +16,6 @@ export interface PlaceholderMoel { rangeSeparator?: string } -export type FormProps = { - schema?: FormSchema[] - isCol?: boolean - model?: Recordable - autoSetPlaceholder?: boolean - isCustom?: boolean - labelWidth?: string | number -} & Recordable - export enum ComponentNameEnum { RADIO_GROUP = 'RadioGroup', RADIO_BUTTON = 'RadioButton', @@ -750,8 +741,6 @@ export interface ColProps { tag?: string } -import type { AxiosPromise } from 'axios' - export type FormSetPropsType = { field: string path: string @@ -837,3 +826,12 @@ export interface FormSchema { */ api?: () => AxiosPromise } + +export type FormProps = { + schema?: FormSchema[] + isCol?: boolean + model?: Recordable + autoSetPlaceholder?: boolean + isCustom?: boolean + labelWidth?: string | number +} & Recordable