From fa828fd972efeea87f364be76a1139ae53ec20d8 Mon Sep 17 00:00:00 2001 From: Vben Date: Fri, 11 Jun 2021 23:09:03 +0800 Subject: [PATCH] fix(flow-chart): fix drag and drop menu loss --- CHANGELOG.zh_CN.md | 1 + package.json | 8 ++-- src/components/Drawer/src/BasicDrawer.vue | 2 +- src/components/FlowChart/src/FlowChart.vue | 20 +++++---- src/components/FlowChart/src/config.ts | 41 +++++++++++++++++++ src/components/Loading/src/Loading.vue | 2 - src/components/Loading/src/createLoading.ts | 4 +- .../Loading/src/{types.ts => typing.ts} | 0 src/components/Loading/src/useLoading.ts | 2 +- src/components/Modal/src/BasicModal.vue | 2 +- src/components/Page/index.ts | 9 +++- src/components/Page/src/PageFooter.vue | 1 - src/views/demo/comp/desc/index.vue | 2 +- yarn.lock | 32 +++++++-------- 14 files changed, 86 insertions(+), 40 deletions(-) rename src/components/Loading/src/{types.ts => typing.ts} (100%) diff --git a/CHANGELOG.zh_CN.md b/CHANGELOG.zh_CN.md index 48e42d89..425220c9 100644 --- a/CHANGELOG.zh_CN.md +++ b/CHANGELOG.zh_CN.md @@ -14,6 +14,7 @@ - **Modal** 修复全屏高度计算错误 - **PageWrapper** 修复高度计算问题 +- **FlowChart** 修复拖放菜单丢失 - 修复后台模式下,Iframe 路由错误 ## 2.4.2(2021-06-10) diff --git a/package.json b/package.json index 9b32301e..9df4545b 100644 --- a/package.json +++ b/package.json @@ -63,7 +63,7 @@ "devDependencies": { "@commitlint/cli": "^12.1.4", "@commitlint/config-conventional": "^12.1.4", - "@iconify/json": "^1.1.354", + "@iconify/json": "^1.1.355", "@purge-icons/generated": "^0.7.0", "@types/codemirror": "^5.60.0", "@types/crypto-js": "^4.0.1", @@ -91,7 +91,7 @@ "eslint-config-prettier": "^8.3.0", "eslint-define-config": "^1.0.8", "eslint-plugin-prettier": "^3.4.0", - "eslint-plugin-vue": "^7.10.0", + "eslint-plugin-vue": "^7.11.0", "esno": "^0.7.1", "fs-extra": "^10.0.0", "http-server": "^0.12.3", @@ -100,7 +100,7 @@ "is-ci": "^3.0.0", "less": "^4.1.1", "lint-staged": "^11.0.0", - "postcss": "^8.3.1", + "postcss": "^8.3.2", "prettier": "^2.3.1", "pretty-quick": "^3.1.0", "rimraf": "^3.0.2", @@ -128,7 +128,7 @@ "resolutions": { "//": "Used to install imagemin dependencies, because imagemin may not be installed in China. If it is abroad, you can delete it", "bin-wrapper": "npm:bin-wrapper-china", - "rollup": "^2.51.1" + "rollup": "^2.51.2" }, "repository": { "type": "git", diff --git a/src/components/Drawer/src/BasicDrawer.vue b/src/components/Drawer/src/BasicDrawer.vue index cf68d291..fe658ef4 100644 --- a/src/components/Drawer/src/BasicDrawer.vue +++ b/src/components/Drawer/src/BasicDrawer.vue @@ -163,7 +163,7 @@ function setDrawerProps(props: Partial): void { // Keep the last setDrawerProps - propsRef.value = deepMerge(unref(propsRef), props); + propsRef.value = deepMerge(unref(propsRef) || ({} as any), props); if (Reflect.has(props, 'visible')) { visibleRef.value = !!props.visible; diff --git a/src/components/FlowChart/src/FlowChart.vue b/src/components/FlowChart/src/FlowChart.vue index 5739cf9b..8629b260 100644 --- a/src/components/FlowChart/src/FlowChart.vue +++ b/src/components/FlowChart/src/FlowChart.vue @@ -9,23 +9,20 @@