I'm having trouble opening a Modal with Vue, I'm using Vuetify, I can open it, as they show in the documentation, but I can not open it, just by clicking on a button (for example).
<v-dialog v-model="dialog" width="600px">
<v-card>
<v-card-title>
<span class="headline"></span>
</v-card-title>
<v-card-text></v-card-text>
<v-card-actions>
<v-btn class="green--text darken-1" flat="flat" @click.native="dialog = false">Fechar</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
In this case, I tried to open it this way:
<v-btn primary flat @click.native="dialog = true" slot="activator">
Detalhes
</v-btn>
But it quickly opens and closes alone. Also, there is the Picker also, which I saw in the documentation that I have the% prop% of which receives a function, but it does not give an example of how to open, can anyone help me?
<v-date-picker v-model="e4" autosave="true" scrollable locale="pt-br" format="DD/MM/YYYY" :date-format="date => new Date(date).toLocaleDateString()" :formatted-value.sync="formatted">
</v-date-picker>