5.11 新增加的table ref 怎么使用的,有没有demo,一升级搞的我之前加的所有的useref的值都不能用了,页面直接报错 #45984
Answered
by
zombieJ
guanshining
asked this question in
Q&A
-
5.11 新增加的table ref 怎么使用的,有没有demo,一升级搞的我之前加的所有的useref的值都不能用了,页面直接报错,快来个demo |
Beta Was this translation helpful? Give feedback.
Answered by
zombieJ
Nov 21, 2023
Replies: 1 comment 1 reply
-
报错信息是什么能看看不? tableRef 说明在这里:https://ant-design.antgroup.com/components/table-cn#table-ref 用法就是: const tableRef = React.useRef<TableRef>();
<Table ref={tableRef} />
tableRef.current.nativeElement // Table DOM
tableRef.current.scrollTo(...) // 滚动到目标位置 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
guanshining
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
报错信息是什么能看看不?
tableRef 说明在这里:https://ant-design.antgroup.com/components/table-cn#table-ref
用法就是: