plain-design 1.0.0-beta.15 → 1.0.0-beta.17

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.15",
3
+ "version": "1.0.0-beta.17",
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.167",
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.167",
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];
@@ -254,6 +254,7 @@ export function createTreeMethods(
254
254
  * @date 2022/9/22 19:56
255
255
  */
256
256
  refreshCheckStatus: async (keyOrNode: iTreeKeyOrNode, emitChange = true) => {
257
+ if (!props.multiple) {return;}
257
258
  const checkKeys: string[] = [];
258
259
  const unCheckKeys: string[] = [];
259
260
  await nextTick();