Răsfoiți Sursa

Table: fix data is an array of numbers, fixed #2108 (#2576)

cinwell.li 8 ani în urmă
părinte
comite
c07609b840
1 a modificat fișierele cu 8 adăugiri și 8 ștergeri
  1. 8 8
      packages/table/src/table-store.js

+ 8 - 8
packages/table/src/table-store.js

@@ -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();