fix:crud mergedData类型问题 (#4909)

* fix:crud mergedData类型问题

* fix:crud mergedData类型问题
This commit is contained in:
hsm-lv 2022-07-18 21:57:15 +08:00 committed by GitHub
parent fcbbbf52b4
commit 3890a174d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View File

@ -58,8 +58,8 @@ export const CRUDStore = ServiceStore.named('CRUDStore')
return extendObject(self.data, {
...self.query,
...self.data,
selectedItems: self.selectedItems.concat(),
unSelectedItems: self.unSelectedItems.concat()
selectedItems: self.selectedItems,
unSelectedItems: self.unSelectedItems
});
},

View File

@ -1575,7 +1575,10 @@ export default class CRUD extends React.Component<CRUDProps, any> {
let bulkBtns: Array<ActionSchema> = [];
let itemBtns: Array<ActionSchema> = [];
const ctx = store.mergedData;
const ctx = createObject(store.mergedData, {
selectedItems: selectedItems.concat(),
unSelectedItems: unSelectedItems.concat()
});
// const ctx = createObject(store.data, {
// ...store.query,