mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 06:05:11 +00:00
16 lines
299 B
TypeScript
16 lines
299 B
TypeScript
export default defineNuxtComponent({
|
|
props: ['template', 'name'],
|
|
|
|
/**
|
|
* most of the time, vue compiler need at least a VNode, use h() to render the component
|
|
*/
|
|
render () {
|
|
return h({
|
|
props: ['name'],
|
|
template: this.template
|
|
}, {
|
|
name: this.name
|
|
})
|
|
}
|
|
})
|