Roo/bootstrap/Card.js
authorAlan Knowles <alan@roojs.com>
Wed, 18 Nov 2020 03:45:49 +0000 (11:45 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 18 Nov 2020 03:45:49 +0000 (11:45 +0800)
Roo/bootstrap/Card.js

index 42fd640..da1115b 100644 (file)
@@ -248,7 +248,7 @@ Roo.extend(Roo.bootstrap.Card, Roo.bootstrap.Component,  {
             
         var body = {
             tag : 'div',
-            cls : 'card-body',
+            cls : 'card-body' + (this.body === false  ? ' d-none' : ''),
             cn : []
         };
         var obody = body;
@@ -268,7 +268,7 @@ Roo.extend(Roo.bootstrap.Card, Roo.bootstrap.Component,  {
                 cls : 'card-title',
                 src: this.title // escape?
             });
-        }
+        }  
         
         if (this.subtitle.length) {
             body.cn.push({