Coder Social home page Coder Social logo

Comments (4)

950620 avatar 950620 commented on June 3, 2024 1

具体是什么偏移 给个截图或者视频看看?

https://github.com/Tencent/tdesign-react/assets/81455406/a45c0c23-c48d-4a4f-a6fc-ced75902ffef
如视频及上述评论内容。会在表格内容从少切换到多时,滚动出现不固定偏移

from tdesign-react.

github-actions avatar github-actions commented on June 3, 2024

👋 @950620,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

from tdesign-react.

uyarn avatar uyarn commented on June 3, 2024

具体是什么偏移 给个截图或者视频看看?

from tdesign-react.

950620 avatar 950620 commented on June 3, 2024

以下是具体代码
`

` ` const scrollToDomainValue = () => { if (!data.length) return; if (!beScrollToDomainValueId) return; // 查询待跳转元素的下标 const index = data.findIndex(value => value.valueId === beScrollToDomainValueId); console.log('匹配到的数据', index); if (index === -1) return; tableRef.current.scrollToElement({ // 跳转元素下标 index, // 滚动元素距离顶部的距离(如表头高度) top: [47,](url) // 高度动态变化场景下,即 isFixedRowHeight = false。延迟设置元素位置,一般用于依赖不同高度异步渲染等场景,单位:毫秒。(固定高度不需要这个) time: 300, // 滚动行为方式 behavior: 'smooth', }); }; ` 如图所示,点击左侧的单元格,右侧表格滚动到对应的行,但是存在偏移。数据较多的表格,偏移越明显 image

from tdesign-react.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.