waynecz/vue-img-inputer

关于v-model动态绑定的问题

Closed this issue · 0 comments

您好,我根据后台返回的图片数量来生成VueImgInputer组件,比如后台返回的数据
images{ 1 : "/images/2017/11/06/1509948936565.png" 2 : "/images/2017/11/06/1509948936610.PNG" 3 : "/images/2017/11/06/1509948936651.PNG" 4 : "/images/2017/11/06/1509948936728.PNG"来渲染

<div class="pic" v-for="(img,key) in imagesData"> <VueImgInputer theme="light" size="small" placeholder="" accept="image/*" icon="true" noMask :capture="false" :imgSrc="img"> </VueImgInputer> </div>
,在页面上生成了4个VueImgInputer组件,每个都可以修改,预览。请问v-model怎么动态的绑定到组件中去呢?