plain-design 1.0.0-beta.15 → 1.0.0-beta.16
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "plain-design",
|
3
|
-
"version": "1.0.0-beta.
|
3
|
+
"version": "1.0.0-beta.16",
|
4
4
|
"description": "",
|
5
5
|
"main": "dist/plain-design.min.js",
|
6
6
|
"module": "dist/plain-design.commonjs.min.js",
|
@@ -19,7 +19,7 @@
|
|
19
19
|
"peerDependencies": {
|
20
20
|
"exceljs": "^4.2.1",
|
21
21
|
"file-saver": "^2.0.5",
|
22
|
-
"plain-design-composition": "^0.0.
|
22
|
+
"plain-design-composition": "^0.0.169",
|
23
23
|
"react": "^18.0.1",
|
24
24
|
"react-dom": "^18.0.1"
|
25
25
|
},
|
@@ -68,7 +68,7 @@
|
|
68
68
|
"fork-ts-checker-webpack-plugin": "^6.2.4",
|
69
69
|
"mini-css-extract-plugin": "^1.4.1",
|
70
70
|
"mockjs": "^1.1.0",
|
71
|
-
"plain-design-composition": "^0.0.
|
71
|
+
"plain-design-composition": "^0.0.169",
|
72
72
|
"postcss": "^8.2.13",
|
73
73
|
"postcss-loader": "^4.2.0",
|
74
74
|
"qs": "^6.10.1",
|
@@ -250,7 +250,7 @@ export function createTreeDraggier(
|
|
250
250
|
if (!droppable || isHideDraggier) {
|
251
251
|
return;
|
252
252
|
}
|
253
|
-
const newParentNode = moveNode.parent;
|
253
|
+
const newParentNode = dropType === eTreeDropType.inner ? moveNode : moveNode.parent;
|
254
254
|
const oldParentNode = startNode.parent;
|
255
255
|
const newSiblings = dropType === eTreeDropType.inner ? methods.getReactiveChildrenData(moveNode) : methods.getParentChildrenData(moveNode);
|
256
256
|
const newSiblingsBak = [...newSiblings];
|