mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 11:36:42 +00:00
fix(client): detail block should support save as block template (#3303)
* fix: detail block should support save as block template * test: detail block setting test
This commit is contained in:
parent
64e0659f7b
commit
4dbac496be
@ -21,7 +21,7 @@ test.describe('multi data details block schema settings', () => {
|
|||||||
'Edit block title',
|
'Edit block title',
|
||||||
'Set the data scope',
|
'Set the data scope',
|
||||||
'Set default sorting rules',
|
'Set default sorting rules',
|
||||||
'Save as block template',
|
'Save as template',
|
||||||
'Delete',
|
'Delete',
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
@ -14,6 +14,7 @@ import {
|
|||||||
SchemaSettingsFormItemTemplate,
|
SchemaSettingsFormItemTemplate,
|
||||||
SchemaSettingsDataScope,
|
SchemaSettingsDataScope,
|
||||||
SchemaSettingsBlockTitleItem,
|
SchemaSettingsBlockTitleItem,
|
||||||
|
SchemaSettingsTemplate,
|
||||||
} from '../../../schema-settings';
|
} from '../../../schema-settings';
|
||||||
|
|
||||||
export const formSettings = new SchemaSettings({
|
export const formSettings = new SchemaSettings({
|
||||||
@ -277,8 +278,8 @@ export const formDetailsSettings = new SchemaSettings({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'formItemTemplate',
|
name: 'template',
|
||||||
Component: SchemaSettingsFormItemTemplate,
|
Component: SchemaSettingsTemplate,
|
||||||
useComponentProps() {
|
useComponentProps() {
|
||||||
const { name } = useCollection();
|
const { name } = useCollection();
|
||||||
const fieldSchema = useFieldSchema();
|
const fieldSchema = useFieldSchema();
|
||||||
|
Loading…
Reference in New Issue
Block a user