Browse Source

fix(table): fix the layout/table moves when dragging elements to the right (#41139)

* fix: 稳定格式错乱啦

* Update drag-sorting-handler.tsx

* Update drag-sorting-handler.tsx

---------

Co-authored-by: zhanghaoqiang <zhanghq7458@joyowo.com>
pull/41225/head
hoho2017 2 years ago
committed by GitHub
parent
commit
cf8a0b0a48
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      components/table/demo/drag-sorting-handler.tsx

5
components/table/demo/drag-sorting-handler.tsx

@ -56,7 +56,10 @@ const Row = ({ children, ...props }: RowProps) => {
const style: React.CSSProperties = {
...props.style,
transform: CSS.Transform.toString(transform && { ...transform, scaleY: 1 }),
transform: CSS.Transform.toString(transform && { ...transform, scaleY: 1 })?.replace(
/translate3d\(([^,]+),/,
'translate3d(0,',
),
transition,
...(isDragging ? { position: 'relative', zIndex: 9999 } : {}),
};

Loading…
Cancel
Save