fix: customize add record cusomeizeCreateFormBlockInitializers (#3230)

This commit is contained in:
katherinehhh 2023-12-19 12:02:18 +08:00 committed by GitHub
parent f60c7626e0
commit 4be8812912
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -100,8 +100,8 @@ function ButtonEditor(props) {
default: fieldSchema?.['x-component-props']?.danger
? 'danger'
: fieldSchema?.['x-component-props']?.type === 'primary'
? 'primary'
: 'default',
? 'primary'
: 'default',
enum: [
{ value: 'default', label: '{{t("Default")}}' },
{ value: 'primary', label: '{{t("Highlight")}}' },

View File

@ -27,6 +27,9 @@ export const CustomizeAddRecordActionInitializer = () => {
'x-component': 'Tabs',
'x-component-props': {},
'x-initializer': 'TabPaneInitializersForCreateFormBlock',
'x-initializer-props': {
gridInitializer: 'CusomeizeCreateFormBlockInitializers',
},
properties: {
tab1: {
type: 'void',