the bind-v: class = "index == NUM activeClass:? ''"
index is an index loop array, num is the index click acquired.
vue Click to switch class
Guess you like
Origin www.cnblogs.com/shamszhang/p/11120814.html
Recommended
Ranking