From 2eac3bcae68469002cd1e1d10fc586e9c5959b35 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 17 Sep 2020 14:09:15 +0800 Subject: [PATCH] Roo/bootstrap/Card.js --- Roo/bootstrap/Card.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Roo/bootstrap/Card.js b/Roo/bootstrap/Card.js index 08f1a95261..ba847e3001 100644 --- a/Roo/bootstrap/Card.js +++ b/Roo/bootstrap/Card.js @@ -91,7 +91,7 @@ Roo.extend(Roo.bootstrap.Card, Roo.bootstrap.Component, { title : '', subtitle : '', html : '', - + footer: '', childContainer : false, @@ -186,7 +186,7 @@ Roo.extend(Roo.bootstrap.Card, Roo.bootstrap.Component, { cls : 'card-body', cn : [] }; - cfg.push(body); + cfg.cn.push(body); if (this.title.length) { body.cn.push({ @@ -209,6 +209,12 @@ Roo.extend(Roo.bootstrap.Card, Roo.bootstrap.Component, { cls : 'roo-card-body-ctr' }); + if (this.html.length) { + body.cn.push({ + tag: 'div', + html : this.html + }); + } // fixme ? handle objects? if (this.footer.length) { body.cn.push({ -- 2.39.2