ソースを参照

Fix #1391: data-formatter is not working with data-checkbox.

zhixin 10 年 前
コミット
569a565b97
1 ファイル変更1 行追加0 行削除
  1. 1 0
      src/bootstrap-table.js

+ 1 - 0
src/bootstrap-table.js

@@ -1499,6 +1499,7 @@
                         sprintf(' disabled="%s"', !column.checkboxEnabled ||
                         sprintf(' disabled="%s"', !column.checkboxEnabled ||
                         (value && value.disabled) ? 'disabled' : undefined) +
                         (value && value.disabled) ? 'disabled' : undefined) +
                         ' />',
                         ' />',
+                        column.formatter ? value : '',
                         that.options.cardView ? '</div>' : '</td>'
                         that.options.cardView ? '</div>' : '</td>'
                     ].join('');
                     ].join('');