For example when i use the scope i write the template with the scope rules, and the code will be
<div
class="item ripple"
v-show="tabList.length > 0"
:class="{'item-on':currentTabActive==index}"
v-for="(item,index) in tabList"
:key="index"
@click="checkTab(index)"
>
</div>
but when i use the css modules, i try the code style like
<div :class="[{'$style.red': true},'$style.bold']">hhhhhh</div>
or that
<div :class="{'$style.red': true},'$style.bold'">hhhhhh</div>
or like that
<div :class="{'$style.red': true, '$style.bold'}">hhhhhh</div>
I wonder what's the right way to do?