vue 标签元素绑定固定一个带条件的 class 加一个固有class

<div :class="['car_icon', { noting: !allNub }]" ref="carIcon" @click="shoppingCarShow = !shoppingCarShow;alertBoxShow = false;"></div>
 
car_icon为固定的class
noting为动态绑定的class
posted @ 2020-10-22 09:15  氧化成风  阅读(483)  评论(0编辑  收藏  举报