mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 18:16:31 +00:00
refactor: gridCard:configureItemActions
This commit is contained in:
parent
80746f0bfa
commit
fe9fbd6f6c
@ -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: [
|
||||||
|
@ -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,
|
||||||
|
@ -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 }}',
|
||||||
|
Loading…
Reference in New Issue
Block a user