Skip to content

Commit de5f24c

Browse files
Reggie CushingReggie Cushing
authored andcommitted
bind width to a model to get around vue warning
1 parent 5467587 commit de5f24c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/components/LayoutStepper.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
overlay
1212
side="right"
1313
v-model="isPreviewDrawerEnabled"
14-
width="600"
14+
v-model:width="width"
1515
>
1616
<div id="preview-button-close">
1717
<q-btn
@@ -90,12 +90,14 @@ export default defineComponent({
9090
StepperActions
9191
},
9292
setup () {
93+
const width = ref(600)
9394
const isPreviewDrawerEnabled = ref(false)
9495
return {
9596
isNotFinish: computed(() => {
9697
const currentPath = useRoute().path
9798
return currentPath !== '/finish-minimum' && currentPath !== '/finish-advanced'
9899
}),
100+
width,
99101
isPreviewDrawerEnabled,
100102
onTogglePreview: () => { isPreviewDrawerEnabled.value = !isPreviewDrawerEnabled.value }
101103
}

0 commit comments

Comments
 (0)