refactor: gridCard:configureItemActions

This commit is contained in:
Zeke Zhang 2024-03-07 19:19:11 +08:00
parent 80746f0bfa
commit fe9fbd6f6c
3 changed files with 3 additions and 3 deletions

View File

@ -104,7 +104,7 @@ export const gridCardItemActionInitializers_deprecated = new CompatibleSchemaIni
export const gridCardItemActionInitializers = new CompatibleSchemaInitializer( export const gridCardItemActionInitializers = new CompatibleSchemaInitializer(
{ {
name: 'actionInitializers:gridCardItem', name: 'gridCard:configureItemActions',
title: '{{t("Configure actions")}}', title: '{{t("Configure actions")}}',
icon: 'SettingOutlined', icon: 'SettingOutlined',
items: [ items: [

View File

@ -1023,7 +1023,7 @@ export const createGridCardBlockSchema = (options) => {
const { const {
formItemInitializers = 'details:configureFields', formItemInitializers = 'details:configureFields',
actionInitializers = 'gridCard:configureActions', actionInitializers = 'gridCard:configureActions',
itemActionInitializers = 'actionInitializers:gridCardItem', itemActionInitializers = 'gridCard:configureItemActions',
collection, collection,
association, association,
resource, resource,

View File

@ -938,7 +938,7 @@ export const oneEmptyGridCardBlock: PageConfig = {
version: '2.0', version: '2.0',
type: 'void', type: 'void',
'x-align': 'left', 'x-align': 'left',
'x-initializer': 'actionInitializers:gridCardItem', 'x-initializer': 'gridCard:configureItemActions',
'x-component': 'ActionBar', 'x-component': 'ActionBar',
'x-component-props': { 'x-component-props': {
useProps: '{{ useGridCardActionBarProps }}', useProps: '{{ useGridCardActionBarProps }}',