修复crud 中弹出出现两次的问题

This commit is contained in:
2betop 2020-01-06 14:54:23 +08:00
parent 5d8ff08db1
commit 842ecd8387
3 changed files with 331 additions and 322 deletions

View File

@ -117,7 +117,8 @@ export default class CRUD extends React.Component<CRUDProps, any> {
'loadDataOnce',
'loadDataOnceFetchOnFilter',
'source',
'header'
'header',
'onAction'
];
static defaultProps = {
toolbarInline: true,
@ -1571,6 +1572,7 @@ export default class CRUD extends React.Component<CRUDProps, any> {
itemActions,
classnames: cx,
keepItemSelectionOnPageChange,
onAction,
...rest
} = this.props;

View File

@ -78,7 +78,10 @@ export default class Page extends React.Component<PageProps> {
'body',
'aside',
'messages',
'style'
'style',
'onAction',
'onConfirm',
'onClose'
];
componentWillMount() {

File diff suppressed because it is too large Load Diff