[Bug Report] el-tabs components default-value will be modified to '0'
- Dominant language
- Vue
- Stars
- 54k
- Forks
- 14.4k
- PR merge metrics
- No merged PRs in 30d
Description
### Element UI version
2.15.5
### OS/Browsers version
win10/chrome95
### Vue version
2.6.11
### Reproduction Link
https://codepen.io/blzbanme/pen/JjyZqPR?editors=1111
### Steps to reproduce
enter "https://codepen.io/blzbanme/pen/JjyZqPR?editors=1111"
click "send" within 10 seconds
### What is Expected?
The window will call "this.$message("there is no open window, don't send to server")",
The pop-up window on the webpage shows "there is no open window, don't send to server"

### What is actually happening?
Because the default value has been modified to "0", the program behavior is wrong.

I found the code that caused the error,this code is located“element-ui\packages\tabs\src\tabs.vue”,line 176-178.

For what considerations, when el-tab-pane is empty, the default value of el-tabs will be initialized to 0. Should this be stated in the document?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.