vue绑定disabled属性让其不能被点击

简单直接上代码:
<button type="button" class="btn" v-for="(item,index) in info.coupon_list" :id="item.id" @click="choise(item.id)" :class="item.selected==0?'filter':''" :disabled="item.selected==0">{{item.coupon_name}}</button>
请求回来的数据可以直接绑定disabled的实现。

posted @ 2020-07-23 14:32  烂笔头~  Views(7203)  Comments(0)    收藏  举报