浏览代码

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