ソースを参照

保留card-view的占位以兼容正确的事件绑定fieldIndex

push to develop branch
geeyan 10 年 前
コミット
203f306a92
1 ファイル変更2 行追加1 行削除
  1. 2 1
      src/bootstrap-table.js

+ 2 - 1
src/bootstrap-table.js

@@ -1523,7 +1523,8 @@
 
                     // Hide empty data on Card view when smartDisplay is set to true.
                     if (that.options.cardView && that.options.smartDisplay && value === '') {
-                        text = '';
+                        // Should set a placeholder for event binding correct fieldIndex
++                       text = '<div class="card-view"></div>';
                     }
                 }