🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

vuepress-demo-plugin

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vuepress-demo-plugin

```sh npm i ```

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

vuepress-demo-plugin

安装

npm i vuepress-demo-plugin

基础用法

// config.js
const demoPlugin = require('vuepress-demo-plugin')
..
module.exports = {
//   ...
  plugins: [
    [demoPlugin, {
        demoCodeMark = 'demo',
        jsExtraStr = '',
        htmlExtraStr = '',
        pkg: {
            dependencies: {
            "vue": "2.5.17"
            }
        }
    }]
    // ...
  ],
}
// *.md
::: demo collapse descriptiion
<<< @/docs/.vuepress/components/collapse.vue
:::

效果

::: demo collapse descriptiion <<< @/docs/.vuepress/components/collapse.vue :::

API

参数说明类型可选值默认值
demoCodeMark自定义demo容器字段string'demo'
jsExtraStr添加在codesanbox中main.js 的字符串string-
htmlExtraStr添加在codesanbox中index.html 的字符串string-
pkg添加在codesanbox中依赖包string-

reference

demo

collapse-index 和@/docs/.vuepress/demoComponents/collapse/index.vue的格式保存一致

description 与下图的效果中的 description 一致,可以使用md的语法

效果 example

Keywords

vuepress

FAQs

Package last updated on 08 Mar 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts