CustomComponent 嵌套 <component :is="component"> 子组件编译不通过问题 #10692
Unanswered
sunvictor
asked this question in
Help/Questions
Replies: 4 comments 3 replies
-
<template>
<slot name="header-extra">
</slot>
<slot v-if="$slots.default">
default content
</slot>
</template> https://cn.vuejs.org/guide/components/slots.html#fallback-content |
Beta Was this translation helpful? Give feedback.
3 replies
-
help |
Beta Was this translation helpful? Give feedback.
0 replies
-
help |
Beta Was this translation helpful? Give feedback.
0 replies
-
help |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
需求:想实现一个切换 Child1、Child2 组件且共用 Parent.vue 模板的功能,但是 Child1.vue 和 Child2.vue 编译不通过,以下是具体代码
./Parent.vue
./Child1.vue
./Child2.vue
./Cell.vue
Beta Was this translation helpful? Give feedback.
All reactions