UNPKG

@nutui/nutui-react-taro

Version:

京东风格的轻量级移动端 React 组件库,支持一套代码生成 H5 和小程序

18 lines (17 loc) 593 B
import React, { FunctionComponent } from 'react'; import { BasicComponent } from "../../utils/typings"; import { DragState } from './drag'; export interface DragProps extends BasicComponent { attract: boolean; direction: 'x' | 'y' | 'lock' | undefined; boundary: { top: number; left: number; right: number; bottom: number; }; onDragStart: () => void; onDragEnd: (state: DragState) => void; onDrag: (state: DragState) => void; } export declare const Drag: FunctionComponent<Partial<DragProps> & React.HTMLAttributes<HTMLDivElement>>;