All Projects → dream2023 → vuepress-plugin-run

dream2023 / vuepress-plugin-run

Licence: other
vuepress 在线运行 Vue 单文件

Programming Languages

javascript
184084 projects - #8 most used programming language
Vue
7211 projects
CSS
56736 projects

Projects that are alternatives of or similar to vuepress-plugin-run

vuepress-plugin-svg-icons
🔥 SVG sprite plugin for VuePress
Stars: ✭ 17 (-39.29%)
Mutual labels:  vuepress, vuepress-plugin
vuepress-creator
A lightweight creator for VuePress project.
Stars: ✭ 23 (-17.86%)
Mutual labels:  vuepress, vuepress-plugin
vuepress-plugin-autometa
Auto meta tags plugin for VuePress 1.x
Stars: ✭ 40 (+42.86%)
Mutual labels:  vuepress, vuepress-plugin
vuepress-pass
VuePress authentication plugin
Stars: ✭ 13 (-53.57%)
Mutual labels:  vuepress, vuepress-plugin
vuepress-plugin-feed
RSS, Atom, and JSON feeds generator plugin for VuePress 1.x
Stars: ✭ 46 (+64.29%)
Mutual labels:  vuepress, vuepress-plugin
vuepress-plugin-demo-code
📝 Demo and code plugin for vuepress
Stars: ✭ 119 (+325%)
Mutual labels:  vuepress, vuepress-plugin
docs
the document of monibuca
Stars: ✭ 57 (+103.57%)
Mutual labels:  vuepress
vuepress-theme-default-prefers-color-scheme
add prefers-color-scheme for vuepress default theme
Stars: ✭ 51 (+82.14%)
Mutual labels:  vuepress
jimdeng92.github.io
林河前端之路
Stars: ✭ 0 (-100%)
Mutual labels:  vuepress
phpdoc-vuepress
🎨 Template for generating your PHP API documentation in a pretty VuePress format
Stars: ✭ 19 (-32.14%)
Mutual labels:  vuepress
vuepress-theme-ououe
A blog theme for VuePress
Stars: ✭ 77 (+175%)
Mutual labels:  vuepress
mtgjson-website
MTGJSON Documentation Front-End Application built with Vuepress 1
Stars: ✭ 29 (+3.57%)
Mutual labels:  vuepress
vue-custom-tooltip
A reusable tooltip component for Vue (and VuePress) projects.
Stars: ✭ 62 (+121.43%)
Mutual labels:  vuepress
Vuepress
📝 Minimalistic Vue-powered static site generator
Stars: ✭ 19,730 (+70364.29%)
Mutual labels:  vuepress
vuepress-theme-thindark
A dark theme for VuePress.
Stars: ✭ 26 (-7.14%)
Mutual labels:  vuepress
playbook
The almighty Voorhoede playbook, synced from Dropbox Paper.
Stars: ✭ 31 (+10.71%)
Mutual labels:  vuepress
vuepress-theme-blog-vuetify
💥The world's most simple, beautiful and customizable 2 columns VuePress blog theme built with Vuetify
Stars: ✭ 37 (+32.14%)
Mutual labels:  vuepress
misskey-hub
Website for Misskey
Stars: ✭ 21 (-25%)
Mutual labels:  vuepress
myblog
基于vuepress-theme-reco搭建的个人博客,集成了彩带特效,看板娘,公告,评论,悬浮气泡,鼠标特效,音乐播放器等
Stars: ✭ 21 (-25%)
Mutual labels:  vuepress
element-ui-s
🖖element-ui-s is a interesting component library 🦄https://shuangda1018.github.io/element-ui-s
Stars: ✭ 33 (+17.86%)
Mutual labels:  vuepress

vuepress-plugin-run | vuepress 在线运行 Vue 单文件

vuepress-plugin-run 通过对 vue-run-sfc 的封装, 实现了 vuepress 在线运行 Vue 单文件的能力, 简直是写 DEMO 福音, 再也不用担心 JSFiddleCodepen 无法访问了.

::: run
```html
<template>
  <h2 class="title">{{name}} DEMO利器!</h2>
</template>
<script>
  export default {
    data () {
      return {
        name: 'vuepress-plugin-run'
      }
    }
  }
</script>
<style>
  .title {
    color: #3eaf7c;
  }
</style>
` ` `  <=== 删除这里的空格
:::

🍋 DEMO & DOC

https://vuepress-plugin-run.netlify.com/

🍎 安装

yarn add vuepress-plugin-run # npm install vuepress-plugin-run

🍐 使用

配置 config.js 文件

module.exports = {
    plugins: ['run'],
}

🍊 全局配置

全局配置可以通过修改 config.js 实现 element-ui demo 演示

module.exports = {
    plugins: {
      run: {
        jsLabs: ['https://unpkg.com/element-ui/lib/index.js'],
        cssLabs: ['https://unpkg.com/element-ui/lib/theme-chalk/index.css'],
      }
    },
}
::: run
```html
<template>
  <el-tabs type="border-card">
    <el-tab-pane label="用户管理">用户管理</el-tab-pane>
    <el-tab-pane label="配置管理">配置管理</el-tab-pane>
    <el-tab-pane label="角色管理">角色管理</el-tab-pane>
    <el-tab-pane label="定时任务补偿">定时任务补偿</el-tab-pane>
  </el-tabs>
</template>
` ` ` <== 记得删除空格
:::

🍋 局部配置

::: run {title: '局部配置', 'height': '200px', row: true}
```html
<template>
  <div>通过局部配置实现<b>高度自定义</b><b>左右布局</b></div>
</template>
<style>
b {
  color: #3eaf7c;
}
</style>
` ` ` <== 记得删除空格
:::

🍇 配置属性列表

具体属性请参考: vue-run-sfc

{
  /**
   * js 库
   * @example: ['https://unpkg.com/element-ui/lib/index.js']
   */
  jsLabs: Array,

  /**
   * css 库
   * @example: ['https://unpkg.com/element-ui/lib/theme-chalk/index.css']
   */
  cssLabs: Array,

  /**
   * js 字符串
   * @example: 'alert(1)'
   */
  js: [Array, String],

  /**
   * css 字符串
   * @example: 'body { color: red }'
   */
  css: [Array, String],

  /**
   * 代码编辑器和效果预览排列方式
   * 当为 false 时, 上下排列
   * 当为 true 时, 左右排列
   */
  row: {
    type: Boolean,
    default: undefined
  },

  /**
   * 当 `row` 为 true 时, 编辑区和展示区上下位置
   * 当为 false 时, 编辑器在下, 展示区在上
   * 当为 true 时, 编辑器在上, 展示区在下
   */
  reverse: Boolean,

  /**
   * 高度
   * @example: '400px'
   */
  height: String,

  /**
   * 初始加载是否打开编辑区
   * 当为 false 时, 默认是关闭编辑区
   * 当为 true 时, 默认是打开编辑区
   */
  open: Boolean,
  /**
   * 是否隐藏头部
   */
  isHideHeader: Boolean
}

相关链接

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].