Skip to content

Commit 11db0ad

Browse files
authored
fix(AppBtnToggle): specify v-model property (#1627)
Signed-off-by: Pedro Lamas <[email protected]>
1 parent 93fea97 commit 11db0ad

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/components/ui/AppBtnToggle.vue

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<template>
22
<v-btn-toggle
3+
v-model="inputValue"
34
v-bind="$attrs"
45
:class="{
56
'elevation-2': !disabled
@@ -11,12 +12,15 @@
1112
</template>
1213

1314
<script lang="ts">
14-
import { Component, Prop, Vue } from 'vue-property-decorator'
15+
import { Component, Prop, VModel, Vue } from 'vue-property-decorator'
1516
1617
@Component({
1718
inheritAttrs: false
1819
})
19-
export default class AppBtn extends Vue {
20+
export default class AppBtnToggle extends Vue {
21+
@VModel()
22+
inputValue?: unknown
23+
2024
@Prop({ type: Boolean })
2125
disabled?: boolean
2226
}

0 commit comments

Comments
 (0)