From 23c6e146e260f269850bb66068d099fd8d7fb52a Mon Sep 17 00:00:00 2001
From: katherinehhh <shunai.tang@hand-china.com>
Date: Mon, 18 Mar 2024 19:55:03 +0800
Subject: [PATCH] fix: configure openSize for table action is only immediately 
 valid for one row (#3752)

* fix: opensize for table action is only immediately  valid for that row

* fix: opensize for table action is only immediately  valid for that row
---
 .../core/client/src/schema-component/antd/action/Action.tsx  | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/packages/core/client/src/schema-component/antd/action/Action.tsx b/packages/core/client/src/schema-component/antd/action/Action.tsx
index ed84c9d13..61979bdbc 100644
--- a/packages/core/client/src/schema-component/antd/action/Action.tsx
+++ b/packages/core/client/src/schema-component/antd/action/Action.tsx
@@ -41,7 +41,7 @@ export const Action: ComposedAction = observer(
       title,
       onClick,
       style,
-      openSize,
+      openSize: os,
       disabled: propsDisabled,
       actionCallback,
       /** 如果为 true 则说明该按钮是树表格的 Add child 按钮 */
@@ -62,6 +62,8 @@ export const Action: ComposedAction = observer(
     const record = useRecord();
     const designerProps = fieldSchema['x-designer-props'];
     const openMode = fieldSchema?.['x-component-props']?.['openMode'];
+    const openSize = fieldSchema?.['x-component-props']?.['openSize'];
+
     const disabled = form.disabled || field.disabled || field.data?.disabled || propsDisabled;
     const linkageRules = fieldSchema?.['x-linkage-rules'] || [];
     const { designable } = useDesignable();
@@ -150,7 +152,6 @@ export const Action: ComposedAction = observer(
         </SortableItem>
       );
     };
-
     const result = (
       <ActionContextProvider
         button={renderButton()}