From cf77654834a13ad9d0a787aeb768fa4ef81a72c6 Mon Sep 17 00:00:00 2001 From: sealday Date: Tue, 12 Mar 2024 23:11:04 +0800 Subject: [PATCH] Revert "fix: linkage should set undefined" This reverts commit c0de2384df472ca39b8867fa23c90adeb8380590. --- packages/core/client/src/schema-component/antd/form-v2/Form.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/client/src/schema-component/antd/form-v2/Form.tsx b/packages/core/client/src/schema-component/antd/form-v2/Form.tsx index 2358b4894..30bff23d2 100644 --- a/packages/core/client/src/schema-component/antd/form-v2/Form.tsx +++ b/packages/core/client/src/schema-component/antd/form-v2/Form.tsx @@ -270,7 +270,7 @@ function getSubscriber( field[fieldName] = lastState?.value; //字段隐藏时清空数据 if (fieldName === 'display' && lastState?.value === 'none') { - field.value = undefined; + field.value = null; } }