Skip to content

Commit 3cf5d4f

Browse files
committed
feat: labelCol & wrapperCol types, close #5265
1 parent 6056b75 commit 3cf5d4f

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

components/form/FormItem.tsx

+10-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
import type { PropType, ExtractPropTypes, ComputedRef, Ref, ComponentPublicInstance } from 'vue';
1+
import type {
2+
PropType,
3+
ExtractPropTypes,
4+
ComputedRef,
5+
Ref,
6+
ComponentPublicInstance,
7+
HTMLAttributes,
8+
} from 'vue';
29
import {
310
watch,
411
defineComponent,
@@ -79,8 +86,8 @@ export const formItemProps = {
7986
label: PropTypes.any,
8087
help: PropTypes.any,
8188
extra: PropTypes.any,
82-
labelCol: { type: Object as PropType<ColProps> },
83-
wrapperCol: { type: Object as PropType<ColProps> },
89+
labelCol: { type: Object as PropType<ColProps & HTMLAttributes> },
90+
wrapperCol: { type: Object as PropType<ColProps & HTMLAttributes> },
8491
hasFeedback: PropTypes.looseBool.def(false),
8592
colon: PropTypes.looseBool,
8693
labelAlign: PropTypes.oneOf(tuple('left', 'right')),

0 commit comments

Comments
 (0)