0๐
A v-model on the v-file-input is enough
<template>
<v-container class="px-0" fluid>
<v-file-input placeholder="Upload Document" required v-model="file" @emptied="file = null">
<template v-slot:selection="{ text }">
<v-chip small label color="primary">{{ text }}</v-chip>
</template>
</v-file-input>
Selected filename: {{file? file.name : ''}}
</v-container>
</template>
<script>
export default {
props: ["car"],
data() {
return {
file: null,
}
},
methods: {
},
};
</script>
Good luck.
- [Vuejs]-VueJS โ Get child width using $refs
- [Vuejs]-Does Next.js have equivalent auto-register feature like Nuxt.js?
Source:stackexchange.com