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',
|
||||
'Set the data scope',
|
||||
'Set default sorting rules',
|
||||
'Save as block template',
|
||||
'Save as template',
|
||||
'Delete',
|
||||
],
|
||||
});
|
||||
|
@ -14,6 +14,7 @@ import {
|
||||
SchemaSettingsFormItemTemplate,
|
||||
SchemaSettingsDataScope,
|
||||
SchemaSettingsBlockTitleItem,
|
||||
SchemaSettingsTemplate,
|
||||
} from '../../../schema-settings';
|
||||
|
||||
export const formSettings = new SchemaSettings({
|
||||
@ -277,8 +278,8 @@ export const formDetailsSettings = new SchemaSettings({
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'formItemTemplate',
|
||||
Component: SchemaSettingsFormItemTemplate,
|
||||
name: 'template',
|
||||
Component: SchemaSettingsTemplate,
|
||||
useComponentProps() {
|
||||
const { name } = useCollection();
|
||||
const fieldSchema = useFieldSchema();
|
||||
|
Loading…
Reference in New Issue
Block a user