@aliretail/drag-drop
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

MbcDragDrop

@aliretail/drag-drop

拖拽组件

API

参数名 说明 必填 类型 默认值 备注
key 拖拽的唯一Key N string 'list' -
list 渲染的数据 Y Array - -
callback 拖拽后的回调 Y callback: (dragIndex: number, dropIndex: number) => void - -
renderItem 子项渲染的逻辑 Y (IRenderItemProps<T>) => JSX.Element - -

IRenderItemProps

interface IRenderItemProps<T = any> { record: T, key: number, list: Array, [propName: string]: any, }

Readme

Keywords

Package Sidebar

Install

npm i @aliretail/drag-drop

Weekly Downloads

1

Version

0.1.1

License

MIT

Unpacked Size

491 kB

Total Files

22

Last publish

Collaborators

  • aliretail