Skip to content

Commit 090d29d

Browse files
fix: table's column width resizable
1 parent 284e57b commit 090d29d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

client/packages/lowcoder/src/comps/comps/tableComp/tableCompView.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ import { useResizeDetector } from "react-resize-detector";
3434
import { SlotConfigContext } from "comps/controls/slotControl";
3535
import { EmptyContent } from "pages/common/styledComponent";
3636
import { messageInstance } from "lowcoder-design";
37+
import { ReactRef, ResizeHandleAxis } from "layout/gridLayoutPropTypes";
3738

3839
const TitleResizeHandle = styled.span`
3940
position: absolute;
@@ -345,8 +346,9 @@ const ResizeableTitle = (props: any) => {
345346
}}
346347
onResizeStop={onResizeStop}
347348
draggableOpts={{ enableUserSelectHack: false }}
348-
handle={() => (
349+
handle={(axis: ResizeHandleAxis, ref: ReactRef<HTMLDivElement>) => (
349350
<TitleResizeHandle
351+
ref={ref}
350352
onClick={(e) => {
351353
e.preventDefault();
352354
e.stopPropagation();

0 commit comments

Comments
 (0)