Skip to content

[Bug Report] tabs's el-tab-pane contains V-IF instructions which can cause location disorder. #12243

@vasttian

Description

@vasttian

Element UI version

2.4.5

OS/Browsers version

Hight Sierra 10.13.6 / Chrome 67.0.3396.99

Vue version

2.5.17

Reproduction Link

https://jsfiddle.net/vasttian/8kpc2m1n/9/

Steps to reproduce

run

找到了之前关于此问题的修复,#6066
在 element/packages/tabs/src/tabs.vue 的 addPanes 方法里
使用之前修复的代码测试顺序正常,
但是最新的版本直接使用 indexOf 去寻找 index,导致找出的 index 错误。
最终导致顺序错乱。

What is Expected?

tab pane 顺序正常。

What is actually happening?

tab pane 顺序错乱。

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions