浏览代码

Fix toolbar bug

zhixin 7 年之前
父节点
当前提交
0eba00fb29
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/extensions/toolbar/bootstrap-table-toolbar.js

+ 1 - 1
src/extensions/toolbar/bootstrap-table-toolbar.js

@@ -181,7 +181,7 @@
 
       const fp = $.isEmptyObject(this.filterColumnsPartial) ? null : this.filterColumnsPartial
 
-      this.data = fp ? $.grep(this.data, function (item, i) {
+      this.data = fp ? $.grep(this.data, (item, i) => {
         for (const key in fp) {
           const fval = fp[key].toLowerCase()
           let value = item[key]