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
4.2.1
windows chrome
当我们循环 a-tab-pane 的时候,因为里面的内容不一致,使用了 v-if 判断,并用 template 包裹,然后 a-tab-pane 又想使用 tab slot,所以也使用了 template #tab
a-tab-pane
v-if
template
tab slot
template #tab
<template> <a-tabs v-model:activeKey="activeKey"> <a-tab-pane v-for="pane in paneList" :key="pane.key"> <template v-if="pane.tabTitle === 'Tool Chain'"> <template #tab>{{ pane.tabTitle }}</template> Content of Tab Pane 11 </template> <template v-else> <template #tab> <!-- icon --> {{ pane.tabTitle }} </template> Content of Tab Pane 22 </template> </a-tab-pane> </a-tabs> </template>
tab slot 插槽能正常使用
报错,如标题 Error Codegen node is missing for element/if/for node. Apply appropriate transforms first.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Version
4.2.1
Environment
windows chrome
Reproduction link
Steps to reproduce
当我们循环
a-tab-pane
的时候,因为里面的内容不一致,使用了v-if
判断,并用template
包裹,然后a-tab-pane
又想使用tab slot
,所以也使用了template #tab
What is expected?
tab slot 插槽能正常使用
What is actually happening?
报错,如标题
Error Codegen node is missing for element/if/for node. Apply appropriate transforms first.
The text was updated successfully, but these errors were encountered: