From 3cf5d4fa437636fac1379c308a0ad7a181d711e7 Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Fri, 18 Feb 2022 21:37:44 +0800 Subject: [PATCH] feat: labelCol & wrapperCol types, close #5265 --- components/form/FormItem.tsx | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/components/form/FormItem.tsx b/components/form/FormItem.tsx index 49d544dee..9a6ab25c5 100644 --- a/components/form/FormItem.tsx +++ b/components/form/FormItem.tsx @@ -1,4 +1,11 @@ -import type { PropType, ExtractPropTypes, ComputedRef, Ref, ComponentPublicInstance } from 'vue'; +import type { + PropType, + ExtractPropTypes, + ComputedRef, + Ref, + ComponentPublicInstance, + HTMLAttributes, +} from 'vue'; import { watch, defineComponent, @@ -79,8 +86,8 @@ export const formItemProps = { label: PropTypes.any, help: PropTypes.any, extra: PropTypes.any, - labelCol: { type: Object as PropType }, - wrapperCol: { type: Object as PropType }, + labelCol: { type: Object as PropType }, + wrapperCol: { type: Object as PropType }, hasFeedback: PropTypes.looseBool.def(false), colon: PropTypes.looseBool, labelAlign: PropTypes.oneOf(tuple('left', 'right')),