Skip to content

Instantly share code, notes, and snippets.

@Yang03
Created February 7, 2018 09:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Yang03/2943166d743a057b38ab5b65e4cb778e to your computer and use it in GitHub Desktop.
Save Yang03/2943166d743a057b38ab5b65e4cb778e to your computer and use it in GitHub Desktop.
vue
import Vue from 'vue'
import App from './app'
new Vue({
el: '#app',
render: h => h(App, {
props: {
message: '小程序2'
}
})
})
<template>
<p>{{message}}</p>
</template>
<script>
export default {
props: ['message'],
computed: {}
}
</script>
<style>
p {
color: red;
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment