From a71da7b49fbf236d2199469abece3a5ead2bc195 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 29 Nov 2018 10:14:29 +0800 Subject: [PATCH] Roo/bootstrap/Button.js --- Roo/bootstrap/Button.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Roo/bootstrap/Button.js b/Roo/bootstrap/Button.js index a1722583b2..a578c6ef11 100644 --- a/Roo/bootstrap/Button.js +++ b/Roo/bootstrap/Button.js @@ -149,7 +149,8 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component, { //} if (['default', 'primary', 'success', 'info', 'warning', 'danger', 'link'].indexOf(this.weight) > -1) { - cfg.cls += ' btn-' + this.weight; + var outline = this.outline || this.weight == 'default' ? 'outline-' : ''; + cfg.cls += ' btn-' + outline + this.weight; } } else if (this.theme==='glow') { -- 2.39.2