Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Fix]:修复表格开启虚拟滚动和loading 后,分页和表格内容顺序错乱的问题 #3319

Merged
merged 10 commits into from
Sep 14, 2024
3 changes: 3 additions & 0 deletions src/table/base-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,7 @@ export default defineComponent({
const tableContent = (
<div
ref="tableContentRef"
key="table-content"
class={this.tableBaseClass.content}
style={this.tableContentStyles}
on={{ scroll: this.onInnerVirtualScroll }}
Expand Down Expand Up @@ -622,6 +623,7 @@ export default defineComponent({
const getCustomLoadingText = isFunction(this.loading) ? this.loading : this.$scopedSlots.loading;
const loadingContent = this.loading !== undefined && (
<Loading
key="loading"
loading={!!this.loading}
text={getCustomLoadingText}
attach={this.tableRef ? () => this.tableRef : undefined}
Expand Down Expand Up @@ -664,6 +666,7 @@ export default defineComponent({
{/* 右侧滚动条分隔线 */}
{this.showRightDivider && (
<div
key="right-divider"
class={this.tableBaseClass.scrollbarDivider}
style={{
right: `${this.scrollbarWidth}px`,
Expand Down
Loading