mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 11:58:10 +08:00
fix:crud mergedData类型问题 (#4909)
* fix:crud mergedData类型问题 * fix:crud mergedData类型问题
This commit is contained in:
parent
fcbbbf52b4
commit
3890a174d4
@ -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
|
||||
});
|
||||
},
|
||||
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user