Update example to Vue 3. (#7314)

This commit is contained in:
Lee Robinson
2022-01-17 19:06:51 -06:00
committed by GitHub
parent 5bd0e0f6ca
commit ec6a645d3f
9 changed files with 2363 additions and 2114 deletions

View File

@@ -1,15 +1,13 @@
<template>
<div id="app">
<img alt="Vue logo" src="./assets/logo.png">
<HelloWorld msg="Welcome to Your Vue.js App"/>
</div>
<img alt="Vue logo" src="./assets/logo.png">
<HelloWorld msg="Welcome to Your Vue.js App"/>
</template>
<script>
import HelloWorld from './components/HelloWorld.vue'
export default {
name: 'app',
name: 'App',
components: {
HelloWorld
}
@@ -18,7 +16,7 @@ export default {
<style>
#app {
font-family: 'Avenir', Helvetica, Arial, sans-serif;
font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;

View File

@@ -1,8 +1,4 @@
import Vue from 'vue'
import { createApp } from 'vue'
import App from './App.vue'
Vue.config.productionTip = false
new Vue({
render: h => h(App),
}).$mount('#app')
createApp(App).mount('#app')