mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-08 06:59:26 +08:00
fix(menu): fix menu loading issue (#5388)
* fix(menu): fix menu loading issue * fix(otherRecords): should display search box
This commit is contained in:
parent
e6a95b3b91
commit
155c337d5f
@ -23,7 +23,7 @@ import { useCompile } from '../../schema-component';
|
|||||||
import { useSchemaTemplateManager } from '../../schema-templates';
|
import { useSchemaTemplateManager } from '../../schema-templates';
|
||||||
import { useCollectionDataSourceItems } from '../utils';
|
import { useCollectionDataSourceItems } from '../utils';
|
||||||
|
|
||||||
const MENU_ITEM_HEIGHT = 40;
|
const MENU_ITEM_HEIGHT = 32;
|
||||||
const STEP = 15;
|
const STEP = 15;
|
||||||
|
|
||||||
export const SearchCollections = ({ value: outValue, onChange }) => {
|
export const SearchCollections = ({ value: outValue, onChange }) => {
|
||||||
|
@ -1022,6 +1022,7 @@ export const useCollectionDataSourceItems = ({
|
|||||||
onClick() {},
|
onClick() {},
|
||||||
componentProps: {
|
componentProps: {
|
||||||
...dataBlockInitializerProps,
|
...dataBlockInitializerProps,
|
||||||
|
hideSearch: false,
|
||||||
icon: null,
|
icon: null,
|
||||||
title: otherText || t('Other records'),
|
title: otherText || t('Other records'),
|
||||||
name: 'otherRecords',
|
name: 'otherRecords',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user