請(qǐng)教一下開(kāi)源V5.4.0版,商品詳情頁(yè),選擇商品規(guī)格,規(guī)格列表中,如何判斷當(dāng)前規(guī)格庫(kù)存為0?
想加個(gè)判斷,讓此規(guī)格顯示灰色或者不可點(diǎn)擊呢?
<view class="itemn" :class="item.index === itemn.attr ? 'on' : ''"
v-for="(itemn, indexn) in item.attr_value" @click="tapAttr(indexw, indexn)"
:key="indexn">
{{ $t(itemn.attr) }}
</view>
相關(guān)文件:template\uni-app\components\productWindow\index.vue