@bigin/bigin-ui-button
Advanced tools
Comparing version 0.0.66 to 0.1.0
@@ -78,14 +78,17 @@ 'use strict';var BaseButton = { | ||
computed: { | ||
variantClass() { | ||
variantName() { | ||
return ( | ||
(this.ghost && this.primary && `${this.baseClass}--ghost-primary`) || | ||
(this.ghost && this.danger && `${this.baseClass}--ghost-danger`) || | ||
(this.ghost && `${this.baseClass}--ghost`) || | ||
(this.primary && `${this.baseClass}--primary`) || | ||
(this.secondary && `${this.baseClass}--secondary`) || | ||
(this.danger && `${this.baseClass}--danger`) || | ||
(this.semiDanger && `${this.baseClass}--semi-danger`) || | ||
`${this.baseClass}--default` | ||
(this.ghost && this.primary && `ghost-primary`) || | ||
(this.ghost && this.danger && `ghost-danger`) || | ||
(this.ghost && `ghost`) || | ||
(this.primary && `primary`) || | ||
(this.secondary && `secondary`) || | ||
(this.danger && `danger`) || | ||
(this.semiDanger && `semi-danger`) || | ||
`default` | ||
) | ||
}, | ||
variantClass() { | ||
return `${this.baseClass}--${this.variantName}` | ||
}, | ||
sizingClass() { | ||
@@ -211,3 +214,8 @@ return ( | ||
], | ||
attrs: { disabled: _vm.disabled || _vm.loading } | ||
attrs: { | ||
disabled: _vm.disabled || _vm.loading, | ||
"data-test-name": "button", | ||
"data-test-variant": _vm.variantName, | ||
"data-test-state": _vm.disabled || _vm.loading ? "disabled" : "" | ||
} | ||
}, | ||
@@ -214,0 +222,0 @@ "component", |
{ | ||
"name": "@bigin/bigin-ui-button", | ||
"version": "0.0.66", | ||
"version": "0.1.0", | ||
"description": "Bigin Design System Button component", | ||
@@ -30,3 +30,3 @@ "author": "Tam Mai <tam.mai@bigin.vn>", | ||
}, | ||
"gitHead": "fc3e478ff7f448f0d2b5eb16c84775a4d220ae05" | ||
"gitHead": "ce31d3bd684e4c1dfddcd77dffe420f800d94acb" | ||
} |
9850
295