I read on the docs : https://vuetifyjs.com/en/components/file-inputs#selection-slot
My code like this :
<v-file-input
v-model="files"
placeholder="Upload your documents"
label="File input"
multiple
prepend-icon="mdi-paperclip"
>
<template v-slot:selection="{ text }">
<v-chip
small
label
color="primary"
>
{{ text }}
</v-chip>
</template>
</v-file-input>
My codepen : https://codepen.io/positivethinking639/pen/vYONqKa?editable=true&editors=101
When upload 3 images and delete, it will delete all images. I want the user to be able to delete 1 image according to his choice. So the user can delete 1 picture
How can I do it?
Configure the chips to delete with a handler method.
Add 'close' attribute to
v-chipto get a close button on each fileAdd a handler to the chip, passing index (and text if you want to prompt)
(optional) remove the clear-all button on VFileInput to prevent user confusion
Template
Component