diff --git a/components/form/FormItem.tsx b/components/form/FormItem.tsx index cc2ac9388..5c3abbff1 100644 --- a/components/form/FormItem.tsx +++ b/components/form/FormItem.tsx @@ -94,6 +94,7 @@ export const formItemProps = { validateTrigger: { type: [String, Array] as PropType }, messageVariables: { type: Object as PropType> }, hidden: Boolean, + noStyle: Boolean, }; export type FormItemProps = Partial>; @@ -364,6 +365,7 @@ export default defineComponent({ [`${prefixCls.value}-item-hidden`]: props.hidden, })); return () => { + if (props.noStyle) return slots.default?.(); const help = props.help ?? (slots.help ? filterEmpty(slots.help()) : null); return (