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

0.1.2 • Public • Published

vuepress-plugin-sakura-next

vuepress plugin sakura for vuepress v2.x

install

yarn add @anyfork/vuepress-plugin-sakura-next
or
npm install @anyfork/vuepress-plugin-sakura-next

usage

1、Import dependent packages into the configuration file config ts

import { sakura } from '@anyfork/vuepress-plugin-sakura-next'

2、Refer to vuepress 2 X Official Website configuration plug-in

plugins: [
    sakura({
      sakura_img:'/blog-docs/snowflake/blue.png''
    })
  ]

3、Configuration parameter type declaration

export interface sakuraOption {
  // 默认数量,默认:20
  sakura_num?: number
  // 图片地址,亦可为外部连接,默认:插件内置桃花图片
  sakura_img?: string
  //是否显示,默认:true
  sakura_show?: boolean
  //层叠z-index值,默认:100
  sakura_zindex?: number
}

Package Sidebar

Install

npm i @anyfork/vuepress-plugin-sakura-next

Weekly Downloads

2

Version

0.1.2

License

MIT

Unpacked Size

24 kB

Total Files

14

Last publish

Collaborators

  • anyfork