i have useForm like this
const form = useForm({
tech: []
preview_image: {},
imageUrl: null,
});
then i have image upload with preview before upload
<InputInlineMultiGroub>
<div class="py-4 md:w-1/2" v-if="form.imageUrl">
<img class="max-h-40 max-w-full transition-all duration-300 rounded-lg cursor-pointer filter grayscale hover:grayscale-0 mx-auto" :src="form.imageUrl"/>
</div>
<div v-bind:class="form.imageUrl ? 'py-4 md-w-1/2' : 'p-4
β¦
Latest comments (0)