From e0c7d09cab5bf9460f18c992f645f0dc81a55332 Mon Sep 17 00:00:00 2001 From: Junyi Date: Wed, 22 Nov 2023 10:42:05 +0800 Subject: [PATCH] fix(client): fix variable input style when disabled (#3071) --- .../schema-component/antd/variable/Input.tsx | 37 +++++++++---------- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/packages/core/client/src/schema-component/antd/variable/Input.tsx b/packages/core/client/src/schema-component/antd/variable/Input.tsx index 834a65fb5..818290add 100644 --- a/packages/core/client/src/schema-component/antd/variable/Input.tsx +++ b/packages/core/client/src/schema-component/antd/variable/Input.tsx @@ -332,25 +332,24 @@ export function Input(props) { )} )} - {options.length > 1 && !disabled ? ( - - {button ?? ( - - )} - - ) : null} + + {button ?? ( + + )} + , ); }