Skip to content

Commit

Permalink
fix(Table): wrong row height in ExpandTable with Lock, close alibaba-…
Browse files Browse the repository at this point in the history
  • Loading branch information
youluna committed Apr 27, 2021
1 parent 35c62b5 commit e140373
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/table/lock.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,9 @@ export default function lock(BaseComponent) {
if (this.isLock()) {
this.tableInc.props.dataSource.forEach((item, index) => {
// record may be a string
const rowIndex = typeof item === 'object' && '__rowIndex' in item ? item.__rowIndex : index;
const rowIndex = `${typeof item === 'object' && '__rowIndex' in item ? item.__rowIndex : index}${
item.__expanded ? '_expanded' : ''
}`;

// 同步左侧的锁列
this.setRowHeight(rowIndex, 'left');
Expand Down

0 comments on commit e140373

Please sign in to comment.