Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-virtual-drag-list

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-virtual-drag-list - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

dist/draglist.js

12

package.json
{
"name": "react-virtual-drag-list",
"version": "2.0.0",
"version": "2.1.0",
"description": "支持拖拽排序的虚拟列表组件",
"main": "dist/index.js",
"main": "dist/draglist.js",
"files": [

@@ -36,5 +36,3 @@ "src",

"dependencies": {
"js-draggable-list": "0.0.2",
"react": "^17.0.2",
"react-dom": "^17.0.2"
"js-draggable-list": "^0.0.7"
},

@@ -47,2 +45,4 @@ "devDependencies": {

"@babel/preset-typescript": "^7.16.7",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"rollup": "^2.64.0",

@@ -52,3 +52,3 @@ "rollup-plugin-babel": "^4.4.0",

"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-typescript2": "^0.31.2",
"rollup-plugin-typescript": "^1.0.1",
"ts-loader": "^9.2.6",

@@ -55,0 +55,0 @@ "tslib": "^2.3.1",

@@ -78,2 +78,3 @@ <p>

| `draggable` | Boolean | | whether to support drag and drop. You need to specify a draggable element and set the `draggable` attribute for it | `true` |
| `draggableOnly` | Boolean | | Whether to drag and drop only elements with the draggable attribute set. When true, selecting the parent element will not produce a dragging effect |
| `dragElement` | Function | | The function that selects the dragged element, **must have a return value with a dom node**, has two parameters: e(the currently selected element), parent(the parent node of the list) | - |

@@ -80,0 +81,0 @@ | `header` | JSX.Element| | top of list | - |

@@ -11,5 +11,5 @@ import * as React from 'react'

export interface baseProps {
export interface BaseProps {
onSizeChange?: Function;
children?: React.ReactNode | ((ref: React.RefObject<any>) => React.ReactElement);
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc