My website has an image upload form where users can select multiple images. Once the images are selected, they are previewed and users can provide meta info such as Category and Type for each image.
This functionality is implemented in the upload.vue file:
<template>
<div>
<div>
//Universal category select. this selection will apply to all comp.
<v-select placeholder="Select Category"
class="mt-2 md:w-1/2"
...
In addition, users can choose a single category that will be applied to all components on the page using the fileUpload.vue component:
<template>
<div>
<div class="m-4">
<form
@submit.prevent="uploadImage"
...
However, there are some issues that need to be addressed:
1. When a user removes a component from the page, the selected Category/Type remains in the same position, causing inconsistency.
2. If a universal Category is chosen before selecting images, it applies to all components. However, after selecting images, the universal select option stops working.
3. The transition effects do not work on any of the components.