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的實現。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM