[Bug Report] el-button组件disabled属性处理异常
Open
- Dominant language
- Vue
- Stars
- 54k
- Forks
- 14.4k
- PR merge metrics
- No merged PRs in 30d
Description
### Element UI version
2.15.10
### OS/Browsers version
105.0.5195.127
### Vue version
2.7.13
### Reproduction Link
https://codepen.io/LIDINGYUAN/pen/zYaqLwb
### Steps to reproduce
点击click me 按钮 should be disabled按钮应是disabled状态
### What is Expected?
正常disabled
### What is actually happening?
el-button组件复用时由于
buttonDisabled() {
return this.$options.propsData.hasOwnProperty('disabled') ? this.disabled : (this.elForm || {}).disabled;
}
此计算属性在首次依赖收集时未收集到this.disabled依赖,导致buttonDisabled对this.disabled不再响应
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.