Fork me on GitHub

vue循环时设置多选框禁用状态,v-for

<div v-for="user in users" >
           <el-radio v-bind:disabled="user.id=='${userInfo.id}'" :label="user.id">{{user.name}}</el-radio>
</div>

<div v-for="user in users" >
     <el-radio v-bind:disabled="user.id=='${userInfo.id}'" :label="user.id">{{user.name}}</el-radio>
</div>

 

posted @ 2018-12-07 16:53  youxiu326  阅读(1766)  评论(0编辑  收藏  举报