<template>
<b-row>
<b-col md="3" v-for="item in defaultData" :key="item.key">
<b-form-group>
<b-form-file
accept="image/*"
placeholder="Choose popup invalid image..."
drop-placeholder="Drop file here..."
:name=item.keyName
/>
</b-form-group>
</b-col>
<b-col md="2">
<a-button type="button" class="mr-2" html-type="submit" @click="addimg" ><i class="fa fa-plus" aria-hidden="true"></i></a-button>
</b-col>
</b-row>
</template>
<script>
const defaultData = [
{
keyName: product-a2,
key: 1
}
]
export default {
methods: {
addimg() {
//
}
}
}
</script>
I am doing image upload in vuejs.But now I am facing some unresolved problems. I want when I press @click="addimg" it will add 1 more photo upload box. Please give me your opinion. Thank you

v-forfor every image. The "+" button will add 1 more element on the array you are using withv-for.