From ccbec865568b1c9b3c3321d7071c164fdc350a0f Mon Sep 17 00:00:00 2001 From: kailong321200875 <321200875@qq.com> Date: Wed, 31 May 2023 16:34:50 +0800 Subject: [PATCH] =?UTF-8?q?types:=20=E8=BF=81=E7=A7=BBtypes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Form/src/types.ts | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) 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