From 9d2a4834a527d682bc5a6c0c15b587b415150115 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A2=AB=E9=9B=A8=E6=B0=B4=E8=BF=87=E6=BB=A4=E7=9A=84?= =?UTF-8?q?=E7=A9=BA=E6=B0=94-Rairn?= <958414905@qq.com> Date: Mon, 3 Jul 2023 16:02:26 +0800 Subject: [PATCH] test: add data-testid attr (#2167) --- .../schema-settings/GeneralSchemaDesigner.tsx | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/packages/core/client/src/schema-settings/GeneralSchemaDesigner.tsx b/packages/core/client/src/schema-settings/GeneralSchemaDesigner.tsx index 5fafc6fe2..ca87fe0aa 100644 --- a/packages/core/client/src/schema-settings/GeneralSchemaDesigner.tsx +++ b/packages/core/client/src/schema-settings/GeneralSchemaDesigner.tsx @@ -58,7 +58,9 @@ export const GeneralSchemaDesigner = (props: any) => { return { insertPosition: 'afterEnd', wrap: rowCtx?.cols?.length > 1 ? undefined : gridRowColWrap, - component: , + component: ( + + ), }; }, [rowCtx?.cols?.length]); @@ -84,7 +86,7 @@ export const GeneralSchemaDesigner = (props: any) => { {draggable && ( - + )} {!disableInitializer && @@ -93,7 +95,15 @@ export const GeneralSchemaDesigner = (props: any) => { ) : ( ctx?.renderSchemaInitializer?.(initializerProps) ))} - } {...schemaSettingsProps}> + + } + {...schemaSettingsProps} + > {props.children}