vue 使用 :class 根據不一樣狀態值設置狀態文字顏色不一樣

1. 效果圖 2. 主要代碼 <li v-for="(item,index) in ticketList" :key="index" @click="changTicket(item)"> <header> <span :class="[item.status== '0' ? 'orange': '', item.status=='1'? 'blue': '',item.status=
相關文章
相關標籤/搜索