types: 迁移types
This commit is contained in:
parent
46b35e48b3
commit
ccbec86556
|
@ -1,4 +1,3 @@
|
||||||
import { FormSchema } from '@/types/form'
|
|
||||||
import { CSSProperties, VNodeProps, VNode } from 'vue'
|
import { CSSProperties, VNodeProps, VNode } from 'vue'
|
||||||
import {
|
import {
|
||||||
InputProps,
|
InputProps,
|
||||||
|
@ -8,6 +7,7 @@ import {
|
||||||
CascaderNode,
|
CascaderNode,
|
||||||
CascaderValue
|
CascaderValue
|
||||||
} from 'element-plus'
|
} from 'element-plus'
|
||||||
|
import type { AxiosPromise } from 'axios'
|
||||||
|
|
||||||
export interface PlaceholderMoel {
|
export interface PlaceholderMoel {
|
||||||
placeholder?: string
|
placeholder?: string
|
||||||
|
@ -16,15 +16,6 @@ export interface PlaceholderMoel {
|
||||||
rangeSeparator?: string
|
rangeSeparator?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type FormProps = {
|
|
||||||
schema?: FormSchema[]
|
|
||||||
isCol?: boolean
|
|
||||||
model?: Recordable
|
|
||||||
autoSetPlaceholder?: boolean
|
|
||||||
isCustom?: boolean
|
|
||||||
labelWidth?: string | number
|
|
||||||
} & Recordable
|
|
||||||
|
|
||||||
export enum ComponentNameEnum {
|
export enum ComponentNameEnum {
|
||||||
RADIO_GROUP = 'RadioGroup',
|
RADIO_GROUP = 'RadioGroup',
|
||||||
RADIO_BUTTON = 'RadioButton',
|
RADIO_BUTTON = 'RadioButton',
|
||||||
|
@ -750,8 +741,6 @@ export interface ColProps {
|
||||||
tag?: string
|
tag?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
import type { AxiosPromise } from 'axios'
|
|
||||||
|
|
||||||
export type FormSetPropsType = {
|
export type FormSetPropsType = {
|
||||||
field: string
|
field: string
|
||||||
path: string
|
path: string
|
||||||
|
@ -837,3 +826,12 @@ export interface FormSchema {
|
||||||
*/
|
*/
|
||||||
api?: <T = any>() => AxiosPromise<T>
|
api?: <T = any>() => AxiosPromise<T>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type FormProps = {
|
||||||
|
schema?: FormSchema[]
|
||||||
|
isCol?: boolean
|
||||||
|
model?: Recordable
|
||||||
|
autoSetPlaceholder?: boolean
|
||||||
|
isCustom?: boolean
|
||||||
|
labelWidth?: string | number
|
||||||
|
} & Recordable
|
||||||
|
|
Loading…
Reference in New Issue