From f4e75348d7e16925ad4d1f18c6fa05ff72c54604 Mon Sep 17 00:00:00 2001 From: sealday Date: Thu, 21 Mar 2024 22:14:32 +0800 Subject: [PATCH] Revert "fix: modal app not found" This reverts commit f5a83d48dacbbd9ae4184c140714c6fcfc05d721. --- .../src/schema-settings/SchemaSettings.tsx | 93 +++++++++---------- 1 file changed, 44 insertions(+), 49 deletions(-) diff --git a/packages/core/client/src/schema-settings/SchemaSettings.tsx b/packages/core/client/src/schema-settings/SchemaSettings.tsx index 457237373..cbea0aee2 100644 --- a/packages/core/client/src/schema-settings/SchemaSettings.tsx +++ b/packages/core/client/src/schema-settings/SchemaSettings.tsx @@ -67,8 +67,6 @@ import { useRecord, useSchemaSettingsItem, useSortFields, - useApp, - ApplicationContext, } from '..'; import { BlockRequestContext_deprecated, @@ -972,7 +970,6 @@ export const SchemaSettingsModalItem: FC = (props) const record = useCollectionRecord(); const { association } = useDataBlockProps() || {}; const formCtx = useFormBlockContext(); - const app = useApp(); // 解决变量`当前对象`值在弹窗中丢失的问题 const { formValue: subFormValue, collection: subFormCollection } = useSubFormValue(); @@ -991,53 +988,51 @@ export const SchemaSettingsModalItem: FC = (props) { title: schema.title || title, width }, () => { return ( - - - - - - - - - - - 576px - @media (min-width: 576px) { - min-width: 520px; - } + + + + + + + + + + 576px + @media (min-width: 576px) { + min-width: 520px; + } - // screen <= 576px - @media (max-width: 576px) { - min-width: 320px; - } - `} - > - - - - - - - - - - - - - - - - + // screen <= 576px + @media (max-width: 576px) { + min-width: 320px; + } + `} + > + + + + + + + + + + + + + + + ); }, theme,