ElemeFE / ElemeFE/element

[feature request] expects the El table tree to support custom expansion and lazy loading

Open
#19,929 4 comments 1 reaction 0 assignees View on GitHub
Dominant language
Vue
Stars
54k
Forks
14.4k
PR merge metrics
No merged PRs in 30d

Description

### Existing Component

### Component Name
el-table

### Description
目前el-table支持自定义调用toggleRowExpansion方法自定义展开expand或者表格树,但是不支持懒加载形式,期望能优化支持

/store/watcher.js
```
toggleRowExpansionAdapter(row, expanded) {
const hasExpandColumn = this.states.columns.some(({ type }=> type === 'expand'));
if(hasExpandColumn) {
this.toggleRowExpansion(row, expanded);
} else {
this.toggleTreeExpansion(row,expanded); // 此处最好能支持调用到 this.loadOrToggle(row)
}
}
```

谢谢!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.