@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, }

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.1.1-alpha.10alpha
0.1.11latest

Version History

VersionDownloads (Last 7 Days)Published
0.1.11
0.1.1-alpha.10
0.1.0-alpha.30
0.1.0-alpha.20

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