react-drag-listview
react-drag-listview copied to clipboard
A simple draggable list component for React
使用antd table + handle的形式拖拽,当点击handle时,tr会增加draggable=true的属性,如果此时不拖动直接松开鼠标,draggable=true不会消失。主要目的就是想在tr有draggable的时候,加个透明度上去。 另:希望能有.d.ts支持以及快速设置拖动中被copy出来的元素的透明度样式。 好用,省心 :)
We have a ReactDragListview component inside another component. When we go to test that component in jest, the render method fails with the error: Element type is invalid: expected a...
业务需要支持拖到 table 外隐藏该列, 因此会有两个 drop 容器,处理两种逻辑 目前,因为onDrapend是绑定在 drag 元素,所以只支持一个容器, 2. 另外希望 onDragStart 时希望可以抛出该事件,以便我用 useState 来记录拖动的列, ```jsx // 现在是使用这种 dom 的方式, 感觉不是很靠谱 table?.querySelector('th[draggable=true]') ``` 目前这种用法效果还行, 但是会报错 ```jsx { e.preventDefault() }} onDrop={(event)...
For some reason auto scroll on column drag works only when the cursor is on the table data left or right edge, but not when it is on the header...
我要两个需求: 比如把列分成pinned 列和非pinned列 1. 让pinned列不可以拖拽 2. 非pinned列可以拖,但是不可以放到pinned列中间 当然pinned 不一定是固定列,这是一个分类 I want two needs: For example, dividing columns into pinned columns and non-pinned columns 1. Make the pinned column not dragged...
After dragging one column onPointerDown event is not triggered on another tries. Safari: 16.1 react-drag-listview: 2.0.0 (on 0.2.2 works fine) Codepen: https://codepen.io/dreadsimon/pen/mdjaPNW
I got issue in production from user that using older safari version cannot render the component
Hi, We've recently run into an issue where users on Windows machines were unable to use the dragging functionality at all. We've pinned it down to version 0.2.0 introducing the...
Hello, if can I suggest, you should not use `handleSelector` as just `'a'`. I think it can generate a bug on query selector for multiple component calls. Instead using `'a'`...