fix: missing RefreshActionInitializer

(cherry picked from commit e6340fc23344ea8ff0e3402e686ea1d6f3e79cba)
This commit is contained in:
chenos 2022-10-08 22:42:56 +08:00
parent 2277e40290
commit 5129fc8f46
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,16 @@
import React from "react";
import { ActionInitializer } from "./ActionInitializer";
export const RefreshActionInitializer = (props) => {
const schema = {
title: '{{ t("Refresh") }}',
'x-action': 'refresh',
'x-component': 'Action',
'x-designer': 'Action.Designer',
'x-component-props': {
icon: 'ReloadOutlined',
useProps: '{{ useRefreshActionProps }}',
},
};
return <ActionInitializer {...props} schema={schema} />;
};

View File

@ -24,6 +24,7 @@ export * from './RecordAssociationFormBlockInitializer';
export * from './RecordFormBlockInitializer';
export * from './RecordReadPrettyAssociationFormBlockInitializer';
export * from './RecordReadPrettyFormBlockInitializer';
export * from './RefreshActionInitializer';
export * from './SubmitActionInitializer';
export * from './TableActionColumnInitializer';
export * from './TableBlockInitializer';
@ -32,3 +33,4 @@ export * from './TableSelectorInitializer';
export * from './UpdateActionInitializer';
export * from './UpdateSubmitActionInitializer';
export * from './ViewActionInitializer';