Is it possible to use a Vue directive as a shortcut for :class=“$style[…]”?

后端 未结 0 1181
春和景丽
春和景丽 2020-12-04 07:04

we are using Vue and CSS Modules, and it is a little time consuming to write

:class="$style[\'some-random-class\']"

not to mention

相关标签:
回答
  • 消灭零回复
提交回复
热议问题