浏览代码

Fixed flat not polyfilled error in vue cli3 (#4694)

文翼 6 年之前
父节点
当前提交
d749945ecf
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1 0
      CHANGELOG.md
  2. 1 1
      src/utils/index.js

+ 1 - 0
CHANGELOG.md

@@ -23,6 +23,7 @@ ChangeLog
 - **Update:** Fixed `virtualScroll` option bug with treegrid extension.
 - **Update:** Fixed `virtualScroll` option bug with treegrid extension.
 - **Update:** Fixed input keyboard bug for mobile extension.
 - **Update:** Fixed input keyboard bug for mobile extension.
 - **Update:** Fixed detail view column reorder bug for reorder-columns extension.
 - **Update:** Fixed detail view column reorder bug for reorder-columns extension.
+- **Update:** Fixed `flat` not polyfilled error in vue cli3.
 - **Update:** Removed `resetWidth` method and use `resetView` instead.
 - **Update:** Removed `resetWidth` method and use `resetView` instead.
 
 
 ### 1.15.5
 ### 1.15.5

+ 1 - 1
src/utils/index.js

@@ -77,7 +77,7 @@ export default {
   },
   },
 
 
   updateFieldGroup (columns) {
   updateFieldGroup (columns) {
-    const allColumns = columns.flat()
+    const allColumns = [].concat(...columns)
 
 
     for (const c of columns) {
     for (const c of columns) {
       for (const r of c) {
       for (const r of c) {