@@ -27,7 +27,14 @@ import { toArray } from './utils/typeUtil';
27
27
import { warning } from '../vc-util/warning' ;
28
28
import find from 'lodash-es/find' ;
29
29
import { tuple } from '../_util/type' ;
30
- import type { InternalNamePath , Rule , RuleError , RuleObject , ValidateOptions } from './interface' ;
30
+ import type {
31
+ FormLabelAlign ,
32
+ InternalNamePath ,
33
+ Rule ,
34
+ RuleError ,
35
+ RuleObject ,
36
+ ValidateOptions ,
37
+ } from './interface' ;
31
38
import useConfigInject from '../_util/hooks/useConfigInject' ;
32
39
import { useInjectForm } from './context' ;
33
40
import FormItemLabel from './FormItemLabel' ;
@@ -90,7 +97,7 @@ export const formItemProps = () => ({
90
97
wrapperCol : { type : Object as PropType < ColProps & HTMLAttributes > } ,
91
98
hasFeedback : { type : Boolean , default : false } ,
92
99
colon : { type : Boolean , default : undefined } ,
93
- labelAlign : PropTypes . oneOf ( tuple ( 'left' , 'right' ) ) ,
100
+ labelAlign : String as PropType < FormLabelAlign > ,
94
101
prop : { type : [ String , Number , Array ] as PropType < string | number | Array < string | number > > } ,
95
102
name : { type : [ String , Number , Array ] as PropType < string | number | Array < string | number > > } ,
96
103
rules : [ Array , Object ] as PropType < Rule [ ] | Rule > ,
0 commit comments