Merge pull request #10555 from hsm-lv/feat-crud2-action

feat:动作配置面板reload动作支持选择crud2
This commit is contained in:
hsm-lv 2024-07-01 16:19:31 +08:00 committed by GitHub
commit 54aa915c96
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View File

@ -153,6 +153,11 @@ export class BaseCRUDPlugin extends BasePlugin {
actionLabel: '停止自动刷新', actionLabel: '停止自动刷新',
description: '停止自动刷新' description: '停止自动刷新'
}, },
{
actionType: 'reload',
actionLabel: '重新加载',
description: '触发组件数据刷新并重新渲染'
},
...(actions || []) ...(actions || [])
], ],
'actionType' 'actionType'

View File

@ -73,7 +73,8 @@ export const DATA_CONTAINER = [
'crud', 'crud',
'page', 'page',
'app', 'app',
'chart' 'chart',
'crud2'
]; ];
const MSG_TYPES: {[key: string]: string} = { const MSG_TYPES: {[key: string]: string} = {