Browse Source

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

push to develop branch
geeyan 10 years ago
parent
commit
203f306a92
1 changed files with 2 additions and 1 deletions
  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.
                     // Hide empty data on Card view when smartDisplay is set to true.
                     if (that.options.cardView && that.options.smartDisplay && value === '') {
                     if (that.options.cardView && that.options.smartDisplay && value === '') {
-                        text = '';
+                        // Should set a placeholder for event binding correct fieldIndex
++                       text = '<div class="card-view"></div>';
                     }
                     }
                 }
                 }