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:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user