npm i vuepress-plugin-demo-container-v2 -D Usage Open the.vuepress/config.jsfile, and then reference the plugin in the appropriate location: module.exports={plugins:['demo-container-v2']} Write the following code in the Markdown file: ...
Demo Container is a Vuepress-based plug-in, which can help you add Vue examples when writing documents. Its original intention is to reduce the difficulty of adding some related examples when writing component documents. Using Vuepress to write component examples has the following embarrassment: Comp...
Open the.vuepress/config.jsfile, and then reference the plugin in the appropriate location: module.exports={plugins:['demo-container-v2']} Write the following code in the Markdown file: ::: demo ```vue<template>{{ message }}</template>import{ref}from'vue-demi'exportdefault{setup(){const...
Vuepress plugin for demo block. Contribute to waycowei/vuepress-plugin-demo-container-v2 development by creating an account on GitHub.
Using Vuepress to write component examples has the following embarrassment: Component examples and sample code are essentially the same, but need to be written twice; Vuepress cannot render theexport default {}code block in Markdown; The Demo Container refers to Element UI's document rendering and...