-
-
Notifications
You must be signed in to change notification settings - Fork 590
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
feat: support scrollTo
#1030
feat: support scrollTo
#1030
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Codecov Report
@@ Coverage Diff @@
## master #1030 +/- ##
==========================================
+ Coverage 99.41% 99.50% +0.09%
==========================================
Files 47 47
Lines 4448 4486 +38
Branches 561 570 +9
==========================================
+ Hits 4422 4464 +42
+ Misses 26 22 -4
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
||
// Scroll key | ||
ref.current.scrollTo({ | ||
key: 'bamboo', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个支持 ['a', 'b']
吗
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个是 dataIndex
吧?key
就是标准的 React.Key
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
用的是 rowKey 的值是吗
dataIndex: 'key', | ||
}, | ||
]} | ||
reference={ref} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个不用 ref,是因为 ref 已经被占用了吗
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
嗯,都是历史债:ant-design/ant-design#45242
No description provided.