ソースを参照

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('.')