-
Notifications
You must be signed in to change notification settings - Fork 575
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
[Table]table组件scrollToRow功能滚动位置不准确 #4484
Comments
这是您为 Fusion/Next 提的第一个 issue,感谢您对 Fusion 的信任和支持,我们会尽快进行处理。 |
your e-mail is recieved,have a nice day!
|
@deepdeepstudy 你的重现代码复制出来不可用,可以直接给个riddle链接吗 |
riddle链接: #4484 (comment) 代码 const dataSource = (j) => { class App extends React.Component {
} ReactDOM.render(, mountNode); |
|
你这个链接里,好像不能复现你的问题 |
明白了,是滚动的位置有一些误差,我们排查一下,计划在下个迭代修复 |
请问这个什么时候能修复好呀? |
这个问题已经规划在日常迭代的项目中了,近1-2周就会完成修复哈,请保持关注issue状态~ |
Component
Table
Reproduction link
[import { Table,Button } from '@alifd/next'; const dataSource = (j) => { const result = []; for (let i = 0; i < j; i ) { result.push({ title: {name:
Quotation for 1PCS Nano ${3 i}.0 controller compatible
}, id:100306660940${i}
, time: 2000 i, index: i }); } return result; }; const render = (value, index, record) => { return Remove({record.id}); }; class App extends React.Component { state = { scrollToRow: 0 } onBodyScroll = (start) => { this.setState({ scrollToRow: start }); }; onClick100 = ()=>{ this.setState({ scrollToRow: 100 });}; onClick150 = ()=>{ this.setState({ scrollToRow: 150 }); }; render() { return (Quotation for 1PCS Nano ${3 i}.0 controller compatible
}, id:100306660940${i}
, time: 2000 i, index: i }); } return result; }; const render = (value, index, record) => { return Remove({record.id}); }; class App extends React.Component { state = { scrollToRow: 0 } onBodyScroll = (start) => { this.setState({ scrollToRow: start }); }; onClick100 = ()=>{ this.setState({ scrollToRow: 100 });}; onClick150 = ()=>{ this.setState({ scrollToRow: 150 }); }; render() { return (Steps to reproduce
重现代码在Riddle中可以直接使用,
T点击按钮,able组件滚动到某100行之后,再往下拉到180行左右,再点击按钮滚到100行,位置不正确了,会偏移,甚至在页面上看不到滚动到的位置。
The text was updated successfully, but these errors were encountered: