浏览代码

Merge pull request #7184 from veselin-kutsarov/patch-1

When searching do not split header field by '.' if there is such property in the item.
文翼 1 年之前
父节点
当前提交
e0df7a4fdb
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/bootstrap-table.js

+ 1 - 1
src/bootstrap-table.js

@@ -1069,7 +1069,7 @@ class BootstrapTable {
           const column = this.columns[this.fieldsColumnsIndex[key]]
           let value
 
-          if (typeof key === 'string') {
+          if (typeof key === 'string' && !item.hasOwnProperty(key)) {
             value = item
             const props = key.split('.')