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] 滚动条显示错误 #1232

Closed
jickchen34 opened this issue Mar 8, 2024 · 0 comments · Fixed by #1427
Closed

[Bug] 滚动条显示错误 #1232

jickchen34 opened this issue Mar 8, 2024 · 0 comments · Fixed by #1427
Assignees
Labels
bug Something isn't working

Comments

@jickchen34
Copy link

Version

0.20.0

Link to Minimal Reproduction

https://visactor.io/vtable/demo/table-type/list-table

Steps to Reproduce

https://visactor.io/vtable/demo/table-type/list-table

let tableInstance;
fetch('https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/VTable/North_American_Superstore_data.json')
.then((res) => res.json())
.then((data) => {

const columns =[
{
"field": "Order ID",
"title": "Order ID",
"width": "auto"
},
{
"field": "Customer ID",
"title": "Customer ID",
"width": "auto"
},
{
"field": "Product Name",
"title": "Product Name",
"width": "auto"
},
{
"field": "Category",
"title": "Category",
"width": "auto"
},
{
"field": "Sub-Category",
"title": "Sub-Category",
"width": "auto"
},
{
"field": "Region",
"title": "Region",
"width": "auto"
},
{
"field": "City",
"title": "City",
"width": "auto"
},
{
"field": "Order Date",
"title": "Order Date",
"width": "auto"
},
{
"field": "Quantity",
"title": "Quantity",
"width": "auto"
},
{
"field": "Sales",
"title": "Sales",
"width": "auto"
},
{
"field": "Profit",
"title": "Profit",
"width": "auto"
}
];

const option = {
records:data,
columns,
widthMode:'standard'
};
tableInstance = new VTable.ListTable(document.getElementById(CONTAINER_ID),option);
setTimeout(()=>{
tableInstance.setRecords([])
},3000)
setTimeout(()=>{
tableInstance.setRecords(data)
},5000)
window['tableInstance'] = tableInstance;
})

Current Behavior

在清空数据前快速滑动滚动条,恢复数据后滚动条显示不出来了

Expected Behavior

在清空数据前快速滑动滚动条,恢复数据后滚动条正常显示

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

@jickchen34 jickchen34 added the bug Something isn't working label Mar 8, 2024
@Rui-Sun Rui-Sun self-assigned this Mar 8, 2024
Rui-Sun added a commit that referenced this issue Apr 1, 2024
@Rui-Sun Rui-Sun linked a pull request Apr 1, 2024 that will close this issue
21 tasks
Rui-Sun added a commit that referenced this issue Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants