[Bug Report] el-cascader has a certain probability of failing to set default values in lazy mode
Open
- Dominant language
- Vue
- Stars
- 54k
- Forks
- 14.4k
- PR merge metrics
- No merged PRs in 30d
Description
### Element UI version
2.11.0
### OS/Browsers version
chrome 75.0.3770.142
### Vue version
2.6.10
### Reproduction Link
https://codepen.io/anon/pen/zgKzGd
### Steps to reproduce
比如这样一段代码
```html
```
直接设置可以成功,但如果给个延迟,比如延迟1000ms就不行了,也不报错(我把延迟改成100ms,也可以设置成功)
```js
// 这样可以设置默认值
this.departmentAndJob = [11, 13]
// 这样不行
setTimeout(() => {
this.departmentAndJob = [11, 13]
}, 1000)
```
这样就会出现一种情况,比如编辑页要复原表单,需要先获取表单数据,再复原 el-cascader 组件,前一步获取表单数据需要时间,导致复原 el-cascader 组件有一点几率会失败。
### What is Expected?
默认值能正常回显
### What is actually happening?
默认值有几率不能回显
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.