You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
611 B

  1. <template>
  2. <v-btn-toggle
  3. v-model="option"
  4. mandatory
  5. >
  6. <v-btn icon>
  7. <v-icon>{{ mdiFormatListBulleted }}</v-icon>
  8. </v-btn>
  9. <v-btn icon>
  10. <v-icon>{{ mdiText }}</v-icon>
  11. </v-btn>
  12. </v-btn-toggle>
  13. </template>
  14. <script>
  15. import { mdiFormatListBulleted, mdiText } from '@mdi/js'
  16. export default {
  17. data() {
  18. return {
  19. option: 0,
  20. mdiFormatListBulleted,
  21. mdiText
  22. }
  23. },
  24. watch: {
  25. option(val) {
  26. if (val === 0) {
  27. this.$emit('change', 'label-group')
  28. } else {
  29. this.$emit('change', 'label-select')
  30. }
  31. }
  32. }
  33. }
  34. </script>