Skip to content

Latest commit

 

History

History
48 lines (32 loc) · 1.22 KB

README.md

File metadata and controls

48 lines (32 loc) · 1.22 KB

@[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.