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(
{
name: 'actionInitializers:gridCardItem',
name: 'gridCard:configureItemActions',
title: '{{t("Configure actions")}}',
icon: 'SettingOutlined',
items: [

View File

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

View File

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