<tap-link>
用于创建支持激活状态的导航链接,在 <gem-link> 的基础上增加了路径模式匹配和激活状态样式。
参考 <gem-link>
Example
Loading...
<style> tap-active-link:state(active){color: red}) </style> <tap-active-link .path=${"/test/test"} .pattern=${"/test/*"}> This link not match current route </tap-active-link> <tap-active-link .path=${"/"} .pattern=${"/*"}> This link match current route </tap-active-link>
