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, useSwiperBlockProps,
usePropsOptionalImageSearchItemField, usePropsOptionalImageSearchItemField,
usePropsRelatedImageSearchItemField, usePropsRelatedImageSearchItemField,
useTabSearchFieldItemProps,
useTabSearchFieldItemRelatedProps,
} from './schema'; } from './schema';
import './bridge'; import './bridge';
import './assets/svg'; import './assets/svg';
@ -75,6 +77,8 @@ export const MobileCore: React.FC = (props) => {
useSwiperBlockProps, useSwiperBlockProps,
usePropsOptionalImageSearchItemField: usePropsOptionalImageSearchItemField, usePropsOptionalImageSearchItemField: usePropsOptionalImageSearchItemField,
usePropsRelatedImageSearchItemField: usePropsRelatedImageSearchItemField, usePropsRelatedImageSearchItemField: usePropsRelatedImageSearchItemField,
useTabSearchFieldItemProps,
useTabSearchFieldItemRelatedProps,
}} }}
> >
{props.children} {props.children}

View File

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

View File

@ -9,6 +9,7 @@ import {
mBlockInitializers, mBlockInitializers,
mBlockInitializers_deprecated, mBlockInitializers_deprecated,
TabSearchFieldSchemaInitializer, TabSearchFieldSchemaInitializer,
TabSearchItemFieldSettings,
} from './core/schema'; } from './core/schema';
import { AppConfiguration, InterfaceConfiguration } from './configuration'; import { AppConfiguration, InterfaceConfiguration } from './configuration';
import { NAMESPACE } from './locale'; import { NAMESPACE } from './locale';
@ -23,8 +24,10 @@ export class MobileClientPlugin extends Plugin {
this.app.schemaInitializerManager.add(mBlockInitializers_deprecated); this.app.schemaInitializerManager.add(mBlockInitializers_deprecated);
this.app.schemaInitializerManager.add(mBlockInitializers); this.app.schemaInitializerManager.add(mBlockInitializers);
this.app.schemaInitializerManager.add(ImageSearchConfigureFields); this.app.schemaInitializerManager.add(ImageSearchConfigureFields);
this.app.schemaSettingsManager.add(ImageSearchItemFieldSettings);
this.app.schemaInitializerManager.add(TabSearchFieldSchemaInitializer); this.app.schemaInitializerManager.add(TabSearchFieldSchemaInitializer);
this.app.schemaSettingsManager.add(ImageSearchItemFieldSettings);
this.schemaSettingsManager.add(TabSearchItemFieldSettings);
} }
addSettings() { addSettings() {