ソースを参照

Do not split field by '.' if there is such property in the item.

Do not split field by '.' if there is such property in the item.
Veselin Kutsarov 1 年間 前
コミット
142e675f10
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/bootstrap-table.js

+ 1 - 1
src/bootstrap-table.js

@@ -1072,7 +1072,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('.')