django-vue3-admin-web/node_modules/@interactjs/actions/drop/DropEvent.d.ts
2025-10-20 21:21:14 +08:00

30 lines
1.1 KiB
TypeScript

import { BaseEvent } from '@interactjs/core/BaseEvent';
import type { Interactable } from '@interactjs/core/Interactable';
import type { InteractEvent } from '@interactjs/core/InteractEvent';
import type { Element } from '@interactjs/core/types';
import type { DropState } from './plugin';
export declare class DropEvent extends BaseEvent<'drag'> {
target: Element;
dropzone: Interactable;
dragEvent: InteractEvent<'drag'>;
relatedTarget: Element;
draggable: Interactable;
propagationStopped: boolean;
immediatePropagationStopped: boolean;
/**
* Class of events fired on dropzones during drags with acceptable targets.
*/
constructor(dropState: DropState, dragEvent: InteractEvent<'drag'>, type: string);
/**
* If this is a `dropactivate` event, the dropzone element will be
* deactivated.
*
* If this is a `dragmove` or `dragenter`, a `dragleave` will be fired on the
* dropzone element and more.
*/
reject(): void;
preventDefault(): void;
stopPropagation(): void;
stopImmediatePropagation(): void;
}