react-virtual-drag-list
Advanced tools
Comparing version 2.0.0 to 2.1.0
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
1
123
0
45435
15
9
925
+ Addedjs-draggable-list@0.0.7(transitive)
- Removedreact@^17.0.2
- Removedreact-dom@^17.0.2
- Removedjs-draggable-list@0.0.2(transitive)
- Removedjs-tokens@4.0.0(transitive)
- Removedloose-envify@1.4.0(transitive)
- Removedobject-assign@4.1.1(transitive)
- Removedreact@17.0.2(transitive)
- Removedreact-dom@17.0.2(transitive)
- Removedscheduler@0.20.2(transitive)
Updatedjs-draggable-list@^0.0.7