2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-08 11:32:25 +03:00

feat: convert to ts (wip)

This commit is contained in:
pimlie
2020-06-01 01:05:59 +02:00
parent 303eae1603
commit 28d3fc1923
106 changed files with 4478 additions and 5037 deletions
+7 -7
View File
@@ -8,17 +8,17 @@ Vue.component('child', {
props: {
page: {
type: String,
default: ''
}
default: '',
},
},
render (h) {
render(h) {
return h('h3', null, this.page)
},
metaInfo () {
metaInfo() {
return {
title: this.page
title: this.page,
}
}
},
})
new Vue({
@@ -28,5 +28,5 @@ new Vue({
<p>Inspect Element to see the meta info</p>
<child page="This is a prop"></child>
</div>
`
`,
}).$mount('#app')