Roo/bootstrap/Button.js
authorAlan Knowles <alan@roojs.com>
Thu, 29 Nov 2018 02:14:29 +0000 (10:14 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 29 Nov 2018 02:14:29 +0000 (10:14 +0800)
Roo/bootstrap/Button.js

index a172258..a578c6e 100644 (file)
@@ -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') {