mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 09:17:23 +00:00
fix: initializer select close (#4865)
This commit is contained in:
parent
b161599749
commit
bb9ebe9852
@ -45,7 +45,7 @@ export const SchemaInitializerSelect: FC<SchemaInitializerSelectItemProps> = (pr
|
|||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<SchemaInitializerItem {...others}>
|
<SchemaInitializerItem closeInitializerMenuWhenClick={false} {...others}>
|
||||||
<div style={{ alignItems: 'center', display: 'flex', justifyContent: 'space-between' }}>
|
<div style={{ alignItems: 'center', display: 'flex', justifyContent: 'space-between' }}>
|
||||||
{title}
|
{title}
|
||||||
<Select
|
<Select
|
||||||
|
@ -31,6 +31,7 @@ export const SchemaInitializerOpenModeSchemaItems: React.FC<Options> = (options)
|
|||||||
<>
|
<>
|
||||||
{openMode ? (
|
{openMode ? (
|
||||||
<SchemaInitializerSelect
|
<SchemaInitializerSelect
|
||||||
|
closeInitializerMenuWhenClick={false}
|
||||||
title={t('Open mode')}
|
title={t('Open mode')}
|
||||||
options={[
|
options={[
|
||||||
{ label: t('Drawer'), value: 'drawer' },
|
{ label: t('Drawer'), value: 'drawer' },
|
||||||
@ -55,7 +56,7 @@ export const SchemaInitializerOpenModeSchemaItems: React.FC<Options> = (options)
|
|||||||
/>
|
/>
|
||||||
) : null}
|
) : null}
|
||||||
{openSize && ['modal', 'drawer'].includes(openModeValue) ? (
|
{openSize && ['modal', 'drawer'].includes(openModeValue) ? (
|
||||||
<SchemaInitializerItem>
|
<SchemaInitializerItem closeInitializerMenuWhenClick={false}>
|
||||||
<div style={{ alignItems: 'center', display: 'flex', justifyContent: 'space-between' }}>
|
<div style={{ alignItems: 'center', display: 'flex', justifyContent: 'space-between' }}>
|
||||||
{t('Popup size')}
|
{t('Popup size')}
|
||||||
<Select
|
<Select
|
||||||
|
Loading…
Reference in New Issue
Block a user