fix(grid-card, list): display title only work on current block (#1942)
This commit is contained in:
parent
c0f9c8116a
commit
6d326f424a
@ -72,7 +72,7 @@ export const FormItem: any = observer((props: any) => {
|
||||
}
|
||||
}
|
||||
}, []);
|
||||
const { showTitle = true } = props;
|
||||
const showTitle = schema['x-decorator-props']?.showTitle ?? true;
|
||||
return (
|
||||
<ACLCollectionFieldProvider>
|
||||
<BlockItem className={'nb-form-item'}>
|
||||
|
@ -55,7 +55,7 @@ export const GeneralSchemaItems: React.FC<{
|
||||
/>
|
||||
)}
|
||||
<SchemaSettings.SwitchItem
|
||||
checked={field.decoratorProps.showTitle ?? true}
|
||||
checked={fieldSchema['x-decorator-props'] ?? true}
|
||||
title={t('Display title')}
|
||||
onChange={(checked) => {
|
||||
fieldSchema['x-decorator-props'] = fieldSchema['x-decorator-props'] || {};
|
||||
|
Loading…
Reference in New Issue
Block a user