Skip to content
New issue

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

[Component] [tabs, tab-pane] el-tabs在el-tab-pane上面嵌套组件后不显示了~! #10350

Closed
imtns opened this issue Nov 1, 2022 · 2 comments

Comments

@imtns
Copy link

imtns commented Nov 1, 2022

Bug Type: Component

Environment

  • Vue Version: 3.2.41
  • Element Plus Version: 2.2.19
  • Browser / OS: macOS
  • Build Tool: Vite

Reproduction

Related Component

  • el-tabs
  • el-tab-pane

Reproduction Link

Element Plus Playground

Steps to reproduce

<template>
  <el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick">
    <el-card>  //这里嵌套了一个组件后,tab-pane不显示了,在2.1.18之前都是好使的,求助~~
          <el-tab-pane label="User" name="first">User</el-tab-pane>
    </el-card>

    <el-tab-pane label="Config" name="second">Config</el-tab-pane>
    <el-tab-pane label="Role" name="third">Role</el-tab-pane>
    <el-tab-pane label="Task" name="fourth">Task</el-tab-pane>
  </el-tabs>
</template>

What is Expected?

可以显示

What is actually happening?

不显示了

Additional comments

在el-tabs下面嵌套组件后,el-tab-pane不显示了,在2.1.18之前的版本都是好使的,更新了2.1.18后就不显示了,求助,否则项目Element版本只能定格在2.1.17了。。。。

@imtns imtns changed the title [Component] [tabs, tab-pane] el-tabs不能嵌套组件了~! [Component] [tabs, tab-pane] el-tabs在el-tab-pane上面嵌套组件后不显示了~! Nov 1, 2022
@init-qy
Copy link
Contributor

init-qy commented Nov 1, 2022

Maybe fix in #10298

@btea btea closed this as completed Nov 2, 2022
@github-actions
Copy link

github-actions bot commented Dec 2, 2022

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

此 issue 已被自动锁定,因为关闭后没有任何近期活动。如果有相关 bug,请重新创建一个新 issue。

@github-actions github-actions bot locked and limited conversation to collaborators Dec 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants