Could you please have a example on how to use this with all layout coming from CMS? even the component name? #45
Unanswered
patrickyue
asked this question in
Q&A
Replies: 1 comment 9 replies
-
Hi 👋 that's a bit strange since this component looks good to me. I could'nt reproduce the issue. Do you have a small reproduction ? Like a stackblitz or a repo ? <script lang="ts">
import { JustSomeComponent } from "#components"
export default defineComponent({
props: ['pageTemplate'],
/**
* most of the time, vue compiler need at least a VNode, use h() to render the component
*/
render () {
return h({
props: ['pageTemplate'],
template: this.pageTemplate,
components: {
JustSomeComponent
}
})
}
})
</script> and this the <template>
<!-- Edit this file to play around with Nuxt but never commit changes! -->
<div >
<PageTemplate page-template="<div><JustSomeComponent /></div>" />
</div>
</template>
`````` |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, thanks for the module. it really helps
But I still have a small qq here
I am using this code :
I can see the page without style, but I get this...

and some other components are not HTML code, just as inside HTML
I tried add components like this, but no luck
so may I know if I miss something?
thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions