[Poi] Build a Vue App with Poi

Poi uses the Vue babel presets by default, so there is no additional install required to get up-and-running. You can even use the .vue file format without having to configure anything.

index.js:

import Vue from 'vue'
import App from './App.vue'

new Vue({
  el: "#app",
  render: h =>  h(App) 
})



// App.vue
<template>
   <h1> {{message}}</h1>
</template>
<script>
export default {
  data() {
     return {
         message: 'Hello Poi'
     }
  }
}
</script>   
原文地址:https://www.cnblogs.com/Answer1215/p/8181466.html