Skip to content

Commit d818db6

Browse files
youlunalakerswgq
authored andcommitted
fix(Table): hidden to __hidden
1 parent b48359c commit d818db6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/table/tree.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ export default function tree(BaseComponent) {
9797
item.__level = level;
9898

9999
if (level === 0 || openRowKeys.indexOf(parentId) > -1) {
100-
item.hidden = false;
100+
item.__hidden = false;
101101
} else {
102-
item.hidden = true;
102+
item.__hidden = true;
103103
}
104104
ret.push(item);
105105

src/table/virtual.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export default function virtual(BaseComponent) {
131131
}
132132
let count = 0;
133133
dataSource.forEach(item => {
134-
if (!item.hidden) {
134+
if (!item.__hidden) {
135135
count += 1;
136136
}
137137
});
@@ -274,7 +274,7 @@ export default function virtual(BaseComponent) {
274274
const { start, end } = this.getVisibleRange(this.state.scrollToRow);
275275
let count = -1;
276276
dataSource.forEach((current, index, record) => {
277-
if (!current.hidden) {
277+
if (!current.__hidden) {
278278
count += 1;
279279
if (count >= Math.max(start - THRESHOLD, 0) && count < end) {
280280
newDataSource.push(current);

0 commit comments

Comments
 (0)