Browse Source

Add ButtonLabelSwitch.vue component

pull/1395/head
Hironsan 3 years ago
parent
commit
2b0fee83ab
1 changed files with 33 additions and 0 deletions
  1. 33
      frontend/components/tasks/toolbar/buttons/ButtonLabelSwitch.vue

33
frontend/components/tasks/toolbar/buttons/ButtonLabelSwitch.vue

@ -0,0 +1,33 @@
<template>
<v-btn-toggle
v-model="option"
mandatory
>
<v-btn icon>
<v-icon>mdi-format-list-bulleted</v-icon>
</v-btn>
<v-btn icon>
<v-icon>mdi-text</v-icon>
</v-btn>
</v-btn-toggle>
</template>
<script>
export default {
data() {
return {
option: 0
}
},
watch: {
option(val) {
if (val === 0) {
this.$emit('change', 'label-group')
} else {
this.$emit('change', 'label-select')
}
}
}
}
</script>
Loading…
Cancel
Save