@anyfork/vuepress-plugin-sakura-next
v0.1.2
Published
vuepress plugin sakura for vuepress v2.x
Downloads
9
Maintainers
Readme
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
}