Blame view

天文台pc/tianwentai-ui/node_modules/react-dnd/dist/hooks/useDrag/DragSourceImpl.d.ts 674 Bytes
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
10
11
12
13
14
  import type { DragDropMonitor, DragSource, Identifier } from 'dnd-core';
  import type { Connector } from '../../internals/index.js';
  import type { DragSourceMonitor } from '../../types/index.js';
  import type { DragSourceHookSpec } from '../types.js';
  export declare class DragSourceImpl<O, R, P> implements DragSource {
      spec: DragSourceHookSpec<O, R, P>;
      private monitor;
      private connector;
      constructor(spec: DragSourceHookSpec<O, R, P>, monitor: DragSourceMonitor<O, R>, connector: Connector);
      beginDrag(): NonNullable<O> | null;
      canDrag(): boolean;
      isDragging(globalMonitor: DragDropMonitor, target: Identifier): boolean;
      endDrag(): void;
  }