Skip to content

在线运行.vue文件,支持Element-ui,iview。

Notifications You must be signed in to change notification settings

531431988/vue-running

 
 

Repository files navigation

@[toc]

vue-running

在线运行 .vue文件,支持element-uiiview

参考iview-run

用到了iview split面板分割组件vue-codemirror插件

实现方法

使用了vue的构造器extend与手动挂载$mount

  • 将代码进行切割(html,js,css)
  • extend 构造的实例通过 $mount 渲染后,挂载到了组件唯一的一个节点上。(new Function,extend, $mount
  • 组件销毁时,手动销毁 extend 构造的实例及style(为便于销毁,添加随机 id 用于标识)。

github地址

在线地址1

在线地址2

Project setup

yarn install

Compiles and hot-reloads for development

yarn serve

Compiles and minifies for production

yarn build

Lints and fixes files

yarn lint

Customize configuration

See Configuration Reference.

About

在线运行.vue文件,支持Element-ui,iview。

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vue 60.0%
  • JavaScript 33.4%
  • HTML 5.2%
  • CSS 1.4%