From eeab93244f22a8aecfe50d7fa5478eb998e2d933 Mon Sep 17 00:00:00 2001 From: "bai.zixv" Date: Wed, 8 May 2024 19:17:05 +0800 Subject: [PATCH] fix: mobile-scroll (#928) Reviewed-on: https://git.daoyoucloud.com/daoyoucloud/tachybase/pulls/928 Co-authored-by: bai.zixv Co-committed-by: bai.zixv --- .../plugin-mobile-client/src/client/core/index.tsx | 4 ++++ .../components/field-item/TabSearchCollapsibleInputMItem.tsx | 4 ++-- .../@tachybase/plugin-mobile-client/src/client/index.tsx | 5 ++++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/index.tsx b/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/index.tsx index aadb68c09..0ec75ad29 100644 --- a/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/index.tsx +++ b/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/index.tsx @@ -33,6 +33,8 @@ import { useSwiperBlockProps, usePropsOptionalImageSearchItemField, usePropsRelatedImageSearchItemField, + useTabSearchFieldItemProps, + useTabSearchFieldItemRelatedProps, } from './schema'; import './bridge'; import './assets/svg'; @@ -75,6 +77,8 @@ export const MobileCore: React.FC = (props) => { useSwiperBlockProps, usePropsOptionalImageSearchItemField: usePropsOptionalImageSearchItemField, usePropsRelatedImageSearchItemField: usePropsRelatedImageSearchItemField, + useTabSearchFieldItemProps, + useTabSearchFieldItemRelatedProps, }} > {props.children} diff --git a/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/tab-search/components/field-item/TabSearchCollapsibleInputMItem.tsx b/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/tab-search/components/field-item/TabSearchCollapsibleInputMItem.tsx index 7f784b758..f50a063d6 100644 --- a/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/tab-search/components/field-item/TabSearchCollapsibleInputMItem.tsx +++ b/packages/plugins/@tachybase/plugin-mobile-client/src/client/core/schema/components/tab-search/components/field-item/TabSearchCollapsibleInputMItem.tsx @@ -60,7 +60,7 @@ export const TabSearchCollapsibleInputMItem = withDynamicSchemaProps( )} - {t('sort')} - + */} ); diff --git a/packages/plugins/@tachybase/plugin-mobile-client/src/client/index.tsx b/packages/plugins/@tachybase/plugin-mobile-client/src/client/index.tsx index dfbdcb6f2..aec750465 100644 --- a/packages/plugins/@tachybase/plugin-mobile-client/src/client/index.tsx +++ b/packages/plugins/@tachybase/plugin-mobile-client/src/client/index.tsx @@ -9,6 +9,7 @@ import { mBlockInitializers, mBlockInitializers_deprecated, TabSearchFieldSchemaInitializer, + TabSearchItemFieldSettings, } from './core/schema'; import { AppConfiguration, InterfaceConfiguration } from './configuration'; import { NAMESPACE } from './locale'; @@ -23,8 +24,10 @@ export class MobileClientPlugin extends Plugin { this.app.schemaInitializerManager.add(mBlockInitializers_deprecated); this.app.schemaInitializerManager.add(mBlockInitializers); this.app.schemaInitializerManager.add(ImageSearchConfigureFields); - this.app.schemaSettingsManager.add(ImageSearchItemFieldSettings); this.app.schemaInitializerManager.add(TabSearchFieldSchemaInitializer); + + this.app.schemaSettingsManager.add(ImageSearchItemFieldSettings); + this.schemaSettingsManager.add(TabSearchItemFieldSettings); } addSettings() {