element-ui 循环遍历 el-select 时,如何正确绑定 v-model
element
A Vue.js 2.0 UI Toolkit for Web
项目地址:https://gitcode.com/gh_mirrors/eleme/element

·
通过 ind 唯一性,来判断是哪个select
<div
v-for="(el,ind) in uploadMusiceInfo.tag"
:key="ind"
style="display: inline-block"
>
<el-select
v-model="uploadMusiceInfo.innerTagVal[ind]"
:value="el.id"
multiple
clearable
:placeholder="el.name"
class="do-mr10 do-mt25"
@focus="handlezBgmTag(el)"
@change="handleChangeTag(el)"
>
<el-option
v-for="e in uploadMusiceInfo.tagChild"
:key="e.id"
:label="e.name"
:value="e.name"
/>
</el-select>
</div>




A Vue.js 2.0 UI Toolkit for Web
最近提交(Master分支:29 天前 )
c345bb45
1 年前
a07f3a59
* Update transition.md
* Update table.md
* Update transition.md
* Update table.md
* Update transition.md
* Update table.md
* Update table.md
* Update transition.md
* Update popover.md 1 年前
更多推荐
所有评论(0)