Skip to content

Commit

Permalink
fix: remove unused interface, fix DragResizeProps typization
Browse files Browse the repository at this point in the history
  • Loading branch information
kr4chinin authored Mar 5, 2024
1 parent 8249c2f commit 6417148
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/drag-resize/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<HTMLDivElement> {
interface DragResizeProps extends Omit<HTMLProps<HTMLDivElement>, 'onResize'> {
onResize: ({ width, x }: { width: number; x: number }) => void;
/* 拖拽前的size */
onResizeEnd?: ({ width, x }: { width: number; x: number }) => void;
Expand Down

0 comments on commit 6417148

Please sign in to comment.