Closed huyaxiong closed 4 years ago
$navigator.path
will contain the active path. You could apply a class to the current item
<Label @tap="goTo('/profile')"
text.decode=""
:class="{ active: $navigator.path === '/profile' }"
class="iconfont"/>
$navigator.path
will contain the active path. You could apply a class to the current item<Label @tap="goTo('/profile')" text.decode="" :class="{ active: $navigator.path === '/profile' }" class="iconfont"/>
thank u, it works as expected
Lets say I have some tabs at the bottom of the page, each tab relates to a corresponding route, When I click a tab, I want to give some highlight to this tab so the user knows that he clicked this tab, so how could I detect it?
Codes above are the structure I have.