From b65a8672a4eb36a57342399eeeb066a9c333f94b Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Mon, 7 Jun 2021 22:54:58 +0800 Subject: [PATCH] fix: form class style not work --- components/form/Form.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/form/Form.tsx b/components/form/Form.tsx index a8e99a851..9ec2f69e5 100755 --- a/components/form/Form.tsx +++ b/components/form/Form.tsx @@ -96,7 +96,7 @@ const Form = defineComponent({ }), Item: FormItem, emits: ['finishFailed', 'submit', 'finish'], - setup(props, { emit, slots, expose }) { + setup(props, { emit, slots, expose, attrs }) { const size = useInjectSize(props); const { prefixCls, direction, form: contextForm } = useConfigInject('form', props); const requiredMark = computed(() => props.requiredMark === '' || props.requiredMark); @@ -339,7 +339,7 @@ const Form = defineComponent({ return () => { return ( -
);