Merge pull request #494 from RickCole21/master

修复crud数据未初始化时,dialog无法弹出问题
This commit is contained in:
liaoxuezhi 2020-03-17 11:18:05 +08:00 committed by GitHub
commit b0b623d1ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -317,7 +317,7 @@ export default class CRUD extends React.Component<CRUDProps, any> {
if (action.actionType === 'dialog') {
store.setCurrentAction(action);
const idx: number = (ctx as any).index;
const length = store.data.items.length;
const length = store.items.length;
stopAutoRefreshWhenModalIsOpen && clearTimeout(this.timer);
store.openDialog(ctx, {
hasNext: idx < length - 1,