Commit e8b42d8a authored by zhangwenshuai's avatar zhangwenshuai

fix 拖拽不跟新bug

parent e9dc8a33
......@@ -128,10 +128,18 @@ const DragSorted = (props: any) => {
{ columnName: dropColumn, orderNo: Number(dropColumnOrder) },
);
}
}, []);
}, [onDropFinish]);
// 监听鼠标按下
const onMouseDown = useCallback(
(e) => {
// 没有拖拽回调,默认不支持拖拽事件
if (!onDropFinish) {
return;
}
// 不是左键点击不作处理
if (e.button !== 0) {
return;
}
// 表格初始位置x点
const originLeft = container.getBoundingClientRect().x || 0;
// 拖动列矩形
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment