I'm using Vuetify 1.0.14 to create my application. While I load a page though, I received this error message:
vuetify.js?dc48:19429 [Vuetify] v-model has been deprecated
found in
---> <VExpansionPanelContent>
Those are the lines of code this warning message refers to:
<v-expansion-panel>
<v-expansion-panel-content key="annotations" :value="sideFocusItem.default === 'annotations'">
<div slot="header">Annotations:</div>
<annotations v-if="loadAnnotationBuilder"></annotations>
</v-expansion-panel-content>
</v-expansion-panel>
I have some trouble figuring out where v-model
is used and how it's possible that it has been deprecated. It's only a warning but how can I fix that?
This is a confusing warning, as Vue itself has not deprecated
v-model
. Looking at the Vuetify source, it looks likev-expansion-panel-content
throws this warning when you pass it avalue
prop.The documentation mentions you are supposed to use
v-model
and/orexpand
on the parent Expansion panel (instead of the panel content).Here's a video that seems to solve the same problem you're running into.