vue-running
v0.3.5
Published
Running Vue online
Downloads
6
Readme
running Vue3 file online
This project fork from vuejs/repl.
Why?
When you need to demonstrate vue components/effects, need the ability to preview online. Unlike sfc, it can be embedded into components and supports ui library introduction.
Install
npm i vue-running
Usage
<script setup>
import vueRunning from 'vue-running'
</script>
Options
codeMirrorOption:
codeMirror options, please see CodeMirror
depLibs:
dependencies
interface depLibsType { name: string; // ui library name url?: string; // url to library code?: string; // code to import type: 'js' | 'css'; // js or css. }
layout:
layout 'horizontal' | 'vertical';