We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
比如 Child:
<template> <header> <slot name="header"></slot> </header> <main> <slot></slot> </main> <footer> <slot name="footer"></slot> </footer> <template> <script>
如何在 render 函数中渲染该组件?使用render函数定义该组件呢?
The text was updated successfully, but these errors were encountered:
@jackchoumine
// 父组件中使用Child render(h) { return h( Child ) }
// 使用render函数定义该组件 render(h) { return ( h( 'div', [ h( 'header', [ this.$slots['header'] ] ), h( 'main', [ this.$slots.default ] ), h( 'footer', [ this.$slots['footer'] ] ), ] ) ) }
Sorry, something went wrong.
No branches or pull requests
比如 Child:
如何在 render 函数中渲染该组件?使用render函数定义该组件呢?
The text was updated successfully, but these errors were encountered: