mirror of https://github.com/ElemeFE/element
parent
c672727673
commit
c07609b840
|
@ -87,14 +87,14 @@ TableStore.prototype.mutations = {
|
|||
states._data = data;
|
||||
states.data = sortData((data || []), states);
|
||||
|
||||
states.data.forEach((item) => {
|
||||
if (!item.$extra) {
|
||||
Object.defineProperty(item, '$extra', {
|
||||
value: {},
|
||||
enumerable: false
|
||||
});
|
||||
}
|
||||
});
|
||||
// states.data.forEach((item) => {
|
||||
// if (!item.$extra) {
|
||||
// Object.defineProperty(item, '$extra', {
|
||||
// value: {},
|
||||
// enumerable: false
|
||||
// });
|
||||
// }
|
||||
// });
|
||||
|
||||
this.updateCurrentRow();
|
||||
|
||||
|
|
Loading…
Reference in New Issue