mirror of
https://github.com/wahyd4/vuepress.git
synced 2026-08-09 05:16:23 +10:00
686 B
686 B
title, metaTitle
| title | metaTitle |
|---|---|
| active-header-links | 页面滚动时自动激活侧边栏链接的插件 | VuePress |
@vuepress/plugin-active-header-links
页面滚动时自动激活侧边栏链接的插件
安装
yarn add -D @vuepress/plugin-active-header-links
# OR npm install -D @vuepress/plugin-active-header-links
使用
module.exports = {
plugins: ['@vuepress/active-header-links']
}
选项
sidebarLinkSelector
- 类型:
string - 默认值:
.sidebar-link
headerAnchorSelector
- 类型:
string - 默认值:
.header-anchor