parent
ee3188a782
commit
0a404e88b7
|
@ -84,8 +84,8 @@ export const formItemProps = {
|
|||
hasFeedback: PropTypes.looseBool.def(false),
|
||||
colon: PropTypes.looseBool,
|
||||
labelAlign: PropTypes.oneOf(tuple('left', 'right')),
|
||||
prop: { type: [String, Number, Array] as PropType<string | number | string[] | number[]> },
|
||||
name: { type: [String, Number, Array] as PropType<string | number | string[] | number[]> },
|
||||
prop: { type: [String, Number, Array] as PropType<string | number | Array<string | number>> },
|
||||
name: { type: [String, Number, Array] as PropType<string | number | Array<string | number>> },
|
||||
rules: PropTypes.oneOfType([Array, Object]),
|
||||
autoLink: PropTypes.looseBool.def(true),
|
||||
required: PropTypes.looseBool,
|
||||
|
|
|
@ -20,7 +20,7 @@ export interface FormContextProps {
|
|||
validateTrigger?: ComputedRef<string | string[]>;
|
||||
rules?: ComputedRef<{ [k: string]: ValidationRule[] | ValidationRule }>;
|
||||
onValidate: (
|
||||
name: string | number | string[] | number[],
|
||||
name: string | number | Array<string | number>,
|
||||
status: boolean,
|
||||
errors: string[] | null,
|
||||
) => void;
|
||||
|
|
Loading…
Reference in New Issue