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
在slot中使用template标签不显示
const slots = { default: () => { <template> <NavMenuItem /> <NavMenuItem /> </template> } }
The text was updated successfully, but these errors were encountered:
使用模板的时候会把 <template> 渲染成 <Fragment>。在 jsx 中,你需要通过 import {Fragment} from 'vue'这种形式引入,并将其当作标签使用即可。 const slots = { default: () => { <Fragment> <NavMenuItem /> <NavMenuItem /> </Fragment> } }
<template>
<Fragment>
import {Fragment} from 'vue'
const slots = { default: () => { <Fragment> <NavMenuItem /> <NavMenuItem /> </Fragment> } }
Sorry, something went wrong.
v-slots 只能在根节点下才起做用,而且<></>这怎么放呢? < v-slots={slots}></>这样吗?
No branches or pull requests
在slot中使用template标签不显示
const slots = { default: () => { <template> <NavMenuItem /> <NavMenuItem /> </template> } }
The text was updated successfully, but these errors were encountered: