fix: mobile-scroll (#928)

Reviewed-on: daoyoucloud/tachybase#928
Co-authored-by: bai.zixv <bai.zixv@foxmail.com>
Co-committed-by: bai.zixv <bai.zixv@foxmail.com>
This commit is contained in:
bai.zixv 2024-05-08 19:17:05 +08:00 committed by sealday
parent 9f62bee481
commit eeab93244f
3 changed files with 10 additions and 3 deletions

View File

@ -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}

View File

@ -60,7 +60,7 @@ export const TabSearchCollapsibleInputMItem = withDynamicSchemaProps(
</>
)}
</Grid>
<Checkbox
{/* <Checkbox
className={css`
margin-right: 10px;
`}
@ -68,7 +68,7 @@ export const TabSearchCollapsibleInputMItem = withDynamicSchemaProps(
onChange={setNeedSort}
>
{t('sort')}
</Checkbox>
</Checkbox> */}
</div>
</SortableItem>
);

View File

@ -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() {