Skip to content

Commit ed37400

Browse files
committed
feat: form add noStyle
1 parent ca2ad60 commit ed37400

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

components/form/FormItem.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ export const formItemProps = {
9494
validateTrigger: { type: [String, Array] as PropType<string | string[]> },
9595
messageVariables: { type: Object as PropType<Record<string, string>> },
9696
hidden: Boolean,
97+
noStyle: Boolean,
9798
};
9899

99100
export type FormItemProps = Partial<ExtractPropTypes<typeof formItemProps>>;
@@ -364,6 +365,7 @@ export default defineComponent({
364365
[`${prefixCls.value}-item-hidden`]: props.hidden,
365366
}));
366367
return () => {
368+
if (props.noStyle) return slots.default?.();
367369
const help = props.help ?? (slots.help ? filterEmpty(slots.help()) : null);
368370
return (
369371
<Row

0 commit comments

Comments
 (0)