浏览代码

fix (editable extension): fix #1819, #2072, editable formatter bug

zhixin 7 年之前
父节点
当前提交
e572662bd0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/extensions/editable/bootstrap-table-editable.js

+ 1 - 1
src/extensions/editable/bootstrap-table-editable.js

@@ -69,7 +69,7 @@
             };
             column._formatter = column._formatter ? column._formatter : column.formatter;
             column.formatter = function(value, row, index) {
-                var result = column._formatter ? column._formatter(value, row, index) : value;
+                var result = $.fn.bootstrapTable.utils.calculateObjectValue(column, column._formatter, [value, row, index], value);
 
                 $.each(column, processDataOptions);