types: 迁移types

This commit is contained in:
kailong321200875 2023-05-31 16:34:50 +08:00
parent 46b35e48b3
commit ccbec86556
1 changed files with 10 additions and 12 deletions

View File

@ -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?: <T = any>() => AxiosPromise<T>
}
export type FormProps = {
schema?: FormSchema[]
isCol?: boolean
model?: Recordable
autoSetPlaceholder?: boolean
isCustom?: boolean
labelWidth?: string | number
} & Recordable