[bug report] Table summary calculation value problem
- Dominant language
- Vue
- Stars
- 54k
- Forks
- 14.4k
- PR merge metrics
- No merged PRs in 30d
Description
### Element UI version
2.13.1
### OS/Browsers version
macOS 10.15.4 / Chrome 81
### Vue version
2.6.11
### Reproduction Link
https://github.com/ElemeFE/element/blob/d578b018b9f64e5a324444b594de2f810577ac20/packages/table/src/config.js#L92
### Steps to reproduce
Table summary 计算取值时,直接使用column.prop做属性名读取data属性。
https://github.com/ElemeFE/element/blob/d578b018b9f64e5a324444b594de2f810577ac20/packages/table/src/table-footer.js#L19
而column自身render会通过getPropByPath方法(src/utils/util.js)将prop作为属性路径获取值。
https://github.com/ElemeFE/element/blob/d578b018b9f64e5a324444b594de2f810577ac20/packages/table/src/config.js#L92
导致在上使用属性路径而非简单属性名作为prop值时,summary无法正确计算合计值。
### What is Expected?
在上使用属性路径而非简单属性名作为prop值时,summary行能正确计算合计值。
### What is actually happening?
在上使用属性路径而非简单属性名作为prop值时,summary行不能正确计算合计值。
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.