@anyfork/vuepress-plugin-dynamic-title-next
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

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
}

Package Sidebar

Install

npm i @anyfork/vuepress-plugin-dynamic-title-next

Weekly Downloads

4

Version

0.1.4

License

MIT

Unpacked Size

9.17 kB

Total Files

13

Last publish

Collaborators

  • anyfork