GithubHelp home page GithubHelp logo

Comments (8)

stackblitz avatar stackblitz commented on May 3, 2024

Fix this issue in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.

from ant-design.

yoyo837 avatar yoyo837 commented on May 3, 2024

虚拟列表是通过 components.body 实现的,占用了这个属性,不支持用户自己的 components.body 了,感觉客户端是不是可以再加个警告?

from ant-design.

yoyo837 avatar yoyo837 commented on May 3, 2024

不对,好像已经支持了 components.body #47098

from ant-design.

yaowq avatar yaowq commented on May 3, 2024

不对,好像已经支持了 components.body #47098

我也是看到支持了才开始用的,但似乎还有问题

from ant-design.

linxianxi avatar linxianxi commented on May 3, 2024

https://stackblitz.com/edit/react-2ze7sa-woksuw?file=demo.tsx 先按这里的,官方的 demo 也会改成 Context 方式,现在 React 官方不推荐用 React.cloneElement 了。并且 virtual 下 Row 写法不同,要用 forwardRef 包一下,将 ref 和 setNodeRef 一起传递给 dom

from ant-design.

yaowq avatar yaowq commented on May 3, 2024

首先,非常感谢,新写法下拖动按钮可以正常显示了,但似乎由于虚拟滚动的原因,行往下拖动一行直到超出屏幕外(假设有20条,可视区域只能显示10条,现在要拖动第一条到第15条下面),竖向滚动条不会随着移动,这样就只能在显示出来的元素进行拖动排序,超出屏幕外就不行了

from ant-design.

linxianxi avatar linxianxi commented on May 3, 2024

首先,非常感谢,新写法下拖动按钮可以正常显示了,但似乎由于虚拟滚动的原因,行往下拖动一行直到超出屏幕外(假设有20条,可视区域只能显示10条,现在要拖动第一条到第15条下面),竖向滚动条不会随着移动,这样就只能在显示出来的元素进行拖动排序,超出屏幕外就不行了

这应该需要自己配合 Table ref scrollTo 来自己实现了,你自己先试试,后面有时间我也会尝试下

from ant-design.

yaowq avatar yaowq commented on May 3, 2024

好的,再次感谢

from ant-design.

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.