|
|
@@ -22,6 +22,11 @@ export default {
|
|
|
disabled: {
|
|
|
type: Boolean,
|
|
|
default: false
|
|
|
+ },
|
|
|
+ label:
|
|
|
+ {
|
|
|
+ type: String,
|
|
|
+ default: ""
|
|
|
}
|
|
|
},
|
|
|
data() {
|
|
|
@@ -47,7 +52,7 @@ export default {
|
|
|
}
|
|
|
this.isAnimating = true;
|
|
|
setTimeout(() => {
|
|
|
- this.$emit("change", this.isActive);
|
|
|
+ this.$emit("change", this.isActive, this.label);
|
|
|
this.$emit("update:active", this.isActive);
|
|
|
this.isAnimating = false;
|
|
|
}, 300);
|