@anyfork/vuepress-plugin-dynamic-title-next
v0.1.4
Published
vuepress plugin dynamic-title for vuepress v2.x
Downloads
22
Maintainers
Readme
vuepress-plugin-dynamic-title-next
vuepress plugin dynamic-title for vuepress v2.x
install
yarn add @anyfork/vuepress-plugin-dynamic-title-next
or
npm install @anyfork/vuepress-plugin-dynamic-title-next
usage
1、Import dependent packages into the configuration file config ts
import { dynamicTitle } from '@anyfork/vuepress-plugin-dynamic-title-next'
2、Refer to vuepress 2 X Official Website configuration plug-in
plugins: [
dynamicTitle()
]
3、Configuration parameter type declaration
export interface dynamicOption {
/*
* 显示时图标,默认:/favicon.ico
*/
showIcon?: string
/*
* 显示时文本,默认:'(/≧▽≦/)咦!又好了!'
*/
showText?: string
/*
* 隐藏时图标,默认:/favicon.ico
*/
hideIcon?: string
/*
* 隐藏时文本,默认:'(●—●)喔哟,崩溃啦!'
*/
hideText?: string
/*
* 恢复时间(毫秒),默认:2000
*/
recoverTime?: number
}