From b3ada9f9e95b6c5a072106aff870272895920723 Mon Sep 17 00:00:00 2001 From: "zhili.wzl" Date: Fri, 26 Nov 2021 17:40:23 +0800 Subject: [PATCH] fix: fix createVoidSchema --- formily/antd/src/components/Field/shared.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/formily/antd/src/components/Field/shared.ts b/formily/antd/src/components/Field/shared.ts index 0cde8d077..ad224c5de 100644 --- a/formily/antd/src/components/Field/shared.ts +++ b/formily/antd/src/components/Field/shared.ts @@ -169,7 +169,7 @@ export const createVoidFieldSchema = ( 'x-reactions': { fulfill: { state: { - hidden: '{{$form.values["x-decorator"] === "FormItem"}}', + hidden: '{{$form.values["x-decorator"] !== "FormItem"}}', }, }, }, @@ -181,7 +181,7 @@ export const createVoidFieldSchema = ( 'x-reactions': { fulfill: { state: { - hidden: '{{$form.values["x-decorator"] === "FormItem"}}', + hidden: '{{$form.values["x-decorator"] !== "FormItem"}}', }, }, },