This project fork from vuejs/repl.
English | 简体中文
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.
npm i vue-running
<script setup>
import vueRunning from 'vue-running'
</script>
-
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';