fix(menu): fix menu loading issue (#5388)

* fix(menu): fix menu loading issue

* fix(otherRecords): should display search box
This commit is contained in:
Zeke Zhang 2024-10-11 08:41:34 +08:00 committed by GitHub
parent e6a95b3b91
commit 155c337d5f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -23,7 +23,7 @@ import { useCompile } from '../../schema-component';
import { useSchemaTemplateManager } from '../../schema-templates';
import { useCollectionDataSourceItems } from '../utils';
const MENU_ITEM_HEIGHT = 40;
const MENU_ITEM_HEIGHT = 32;
const STEP = 15;
export const SearchCollections = ({ value: outValue, onChange }) => {

View File

@ -1022,6 +1022,7 @@ export const useCollectionDataSourceItems = ({
onClick() {},
componentProps: {
...dataBlockInitializerProps,
hideSearch: false,
icon: null,
title: otherText || t('Other records'),
name: 'otherRecords',