浏览代码

Merge pull request #6888 from wenzhixin/fix/6865

Fixed searchAccentNeutralise option not work in filter-control
飞鱼 2 年之前
父节点
当前提交
8b753c31e1
共有 2 个文件被更改,包括 10 次插入0 次删除
  1. 6 0
      CHANGELOG.md
  2. 4 0
      src/extensions/filter-control/bootstrap-table-filter-control.js

+ 6 - 0
CHANGELOG.md

@@ -1,6 +1,12 @@
 ChangeLog
 ---------
 
+### 1.22.2
+
+#### Extensions
+
+- **Update(filter-control):** Fixed `searchAccentNeutralise` option not work.
+
 ### 1.22.1
 
 #### Core

+ 4 - 0
src/extensions/filter-control/bootstrap-table-filter-control.js

@@ -298,6 +298,10 @@ $.BootstrapTable = class extends $.BootstrapTable {
       value = Utils.removeHTML(value.toString().toLowerCase())
     }
 
+    if (this.options.searchAccentNeutralise) {
+      value = Utils.normalizeAccent(value)
+    }
+
     if (
       column.filterStrictSearch ||
       column.filterControl === 'select' && column.passed.filterStrictSearch !== false