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 default: fieldSchema?.['x-component-props']?.danger
? 'danger' ? 'danger'
: fieldSchema?.['x-component-props']?.type === 'primary' : fieldSchema?.['x-component-props']?.type === 'primary'
? 'primary' ? 'primary'
: 'default', : 'default',
enum: [ enum: [
{ value: 'default', label: '{{t("Default")}}' }, { value: 'default', label: '{{t("Default")}}' },
{ value: 'primary', label: '{{t("Highlight")}}' }, { value: 'primary', label: '{{t("Highlight")}}' },

View File

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