diff --git a/src/components/drag-resize/index.tsx b/src/components/drag-resize/index.tsx index 3d37b56..eabdea3 100644 --- a/src/components/drag-resize/index.tsx +++ b/src/components/drag-resize/index.tsx @@ -4,8 +4,7 @@ import { usePersistFn } from 'ahooks'; import { observer } from 'mobx-react-lite'; import AutoScroller from './AutoScroller'; -interface Size {} -interface DragResizeProps extends React.HTMLProps { +interface DragResizeProps extends Omit, 'onResize'> { onResize: ({ width, x }: { width: number; x: number }) => void; /* 拖拽前的size */ onResizeEnd?: ({ width, x }: { width: number; x: number }) => void;