浏览代码

Delete splice

djhvscf 6 年之前
父节点
当前提交
d5780d6853
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/extensions/reorder-columns/bootstrap-table-reorder-columns.js

+ 1 - 1
src/extensions/reorder-columns/bootstrap-table-reorder-columns.js

@@ -140,7 +140,7 @@ BootstrapTable.prototype.makeRowsReorderable = function () {
         if (columnIndex !== -1) {
           that.columns[columnIndex].fieldIndex = i
           columns.push(that.columns[columnIndex])
-          that.columns.splice(columnIndex, 1)
+          // that.columns.splice(columnIndex, 1)
         }
       }