diff --git a/packages/amis-editor/src/plugin/CRUD2/BaseCRUD.tsx b/packages/amis-editor/src/plugin/CRUD2/BaseCRUD.tsx index bccd44aff..d73d2ce44 100644 --- a/packages/amis-editor/src/plugin/CRUD2/BaseCRUD.tsx +++ b/packages/amis-editor/src/plugin/CRUD2/BaseCRUD.tsx @@ -153,6 +153,11 @@ export class BaseCRUDPlugin extends BasePlugin { actionLabel: '停止自动刷新', description: '停止自动刷新' }, + { + actionType: 'reload', + actionLabel: '重新加载', + description: '触发组件数据刷新并重新渲染' + }, ...(actions || []) ], 'actionType' diff --git a/packages/amis-editor/src/renderer/event-control/helper.tsx b/packages/amis-editor/src/renderer/event-control/helper.tsx index e26b74468..cefe1d81c 100644 --- a/packages/amis-editor/src/renderer/event-control/helper.tsx +++ b/packages/amis-editor/src/renderer/event-control/helper.tsx @@ -73,7 +73,8 @@ export const DATA_CONTAINER = [ 'crud', 'page', 'app', - 'chart' + 'chart', + 'crud2' ]; const MSG_TYPES: {[key: string]: string} = {