Feature: Add Web App Features > Render Vue app (#142)

* feat(content): add render app > vue2

* feat(content): add render app > vue3

Co-authored-by: yuelin.ye <yuelin.ye@xbongbong.com>
This commit is contained in:
yyl2020
2023-01-11 08:48:06 +08:00
committed by GitHub
parent 38b114cf21
commit bd10612085
6 changed files with 38 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
<template>
<h1>Hello world</h1>
</template>
<script>
export default {
name: 'App'
}
</script>

View File

@@ -0,0 +1,7 @@
<!DOCTYPE html>
<html>
<body>
<div id="app"></div>
<script type="module" src="./main.js"></script>
</body>
</html>

View File

@@ -0,0 +1,8 @@
import Vue from 'vue'
import App from './App.vue'
new Vue({
el: '#app',
components: { App },
template: '<App/>'
})

View File

@@ -0,0 +1,3 @@
<template>
<h1>Hello world</h1>
</template>

View File

@@ -0,0 +1,7 @@
<!DOCTYPE html>
<html>
<body>
<div id="app"></div>
<script type="module" src="./main.js"></script>
</body>
</html>

View File

@@ -0,0 +1,4 @@
import { createApp } from 'vue'
import App from './App.vue'
createApp(App).mount('#app')