From 3ba828558646a7fa233ebbbda27f71c3121dd7c7 Mon Sep 17 00:00:00 2001 From: vben Date: Sat, 6 Feb 2021 22:54:52 +0800 Subject: [PATCH] fix: suppoer build sourcemap --- .vscode/extensions.json | 3 +- CHANGELOG.zh_CN.md | 6 ++ package.json | 20 ++--- .../src/search/AppSearchFooter.vue | 11 +-- .../Application/src/search/AppSearchModal.vue | 13 +-- .../Application/src/search/useMenuSearch.ts | 2 +- .../Container/src/LazyContainer.vue | 2 +- .../src/collapse/CollapseContainer.vue | 15 +++- .../Container/src/collapse/CollapseHeader.vue | 14 ++- src/logics/mitt/tabChange.ts | 2 +- tsconfig.json | 1 + vite.config.ts | 3 +- yarn.lock | 90 +++++++++---------- 13 files changed, 105 insertions(+), 77 deletions(-) diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 97b5cf2e..f8e1e7e7 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -12,6 +12,7 @@ "antfu.iconify", "mikestead.dotenv", "bradlc.vscode-tailwindcss", - "heybourn.headwind" + "heybourn.headwind", + "znck.vue-language-features" ] } diff --git a/CHANGELOG.zh_CN.md b/CHANGELOG.zh_CN.md index 0cbe5a71..3f121aaa 100644 --- a/CHANGELOG.zh_CN.md +++ b/CHANGELOG.zh_CN.md @@ -4,6 +4,12 @@ - 修复菜单在 hmr 时数据被置空 - 修复 Upload 组件 maxNumber 失效问题 +- 修复打包 sourcemap 报错 + +### 🎫 Chores + +- 文档更新 +- 升级 ant-design-vue 到 2.0.0 ## 2.0.0-rc.18 (2021-02-05) diff --git a/package.json b/package.json index a0a1c48e..dc4e7892 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "dependencies": { "@iconify/iconify": "^2.0.0-rc.6", "@vueuse/core": "^4.0.12", - "ant-design-vue": "2.0.0-rc.9", + "ant-design-vue": "2.0.0", "apexcharts": "^3.24.0", "axios": "^0.21.1", "crypto-es": "^1.2.6", @@ -46,7 +46,7 @@ "devDependencies": { "@commitlint/cli": "^11.0.0", "@commitlint/config-conventional": "^11.0.0", - "@iconify/json": "^1.1.297", + "@iconify/json": "^1.1.298", "@ls-lint/ls-lint": "^1.9.2", "@purge-icons/generated": "^0.6.0", "@types/echarts": "^4.9.3", @@ -56,7 +56,7 @@ "@types/lodash-es": "^4.17.4", "@types/mockjs": "^1.0.3", "@types/nprogress": "^0.2.0", - "@types/qrcode": "^1.3.5", + "@types/qrcode": "^1.4.0", "@types/rollup-plugin-visualizer": "^2.6.0", "@types/sortablejs": "^1.10.6", "@types/yargs": "^16.0.0", @@ -82,7 +82,7 @@ "fs-extra": "^9.1.0", "husky": "^4.3.8", "less": "^4.1.1", - "lint-staged": "^10.5.3", + "lint-staged": "^10.5.4", "prettier": "^2.2.1", "rimraf": "^3.0.2", "rollup-plugin-gzip": "^2.5.0", @@ -93,14 +93,14 @@ "stylelint-order": "^4.1.0", "ts-node": "^9.1.1", "typescript": "^4.1.3", - "vite": "2.0.0-beta.64", + "vite": "2.0.0-beta.65", "vite-plugin-html": "^2.0.0", "vite-plugin-imagemin": "^0.2.2", - "vite-plugin-mock": "2.0.5", + "vite-plugin-mock": "^2.1.0", "vite-plugin-purge-icons": "^0.6.0", - "vite-plugin-pwa": "^0.4.3", - "vite-plugin-style-import": "^0.6.6", - "vite-plugin-theme": "0.3.8", + "vite-plugin-pwa": "^0.4.4", + "vite-plugin-style-import": "^0.7.0", + "vite-plugin-theme": "^0.4.0", "vue-eslint-parser": "^7.4.1", "yargs": "^16.2.0" }, @@ -124,6 +124,6 @@ } }, "engines": { - "node": "^12 || ^14" + "node": "^12 || ^14 || ^15 || ^16" } } diff --git a/src/components/Application/src/search/AppSearchFooter.vue b/src/components/Application/src/search/AppSearchFooter.vue index b88984f7..a6eb3479 100644 --- a/src/components/Application/src/search/AppSearchFooter.vue +++ b/src/components/Application/src/search/AppSearchFooter.vue @@ -1,19 +1,19 @@ - {{ - t('common.cancelText') - }} + + {{ t('common.cancelText') }} +
@@ -38,13 +38,13 @@ ]" >
- +
{{ item.name }}
- +
@@ -66,10 +66,11 @@ import { useAppInject } from '/@/hooks/web/useAppInject'; import clickOutside from '/@/directives/clickOutside'; import { Input } from 'ant-design-vue'; + import Icon from '/@/components/Icon'; export default defineComponent({ name: 'AppSearchModal', - components: { SearchOutlined, AppSearchFooter, [Input.name]: Input }, + components: { Icon, SearchOutlined, AppSearchFooter, [Input.name]: Input }, directives: { clickOutside, }, diff --git a/src/components/Application/src/search/useMenuSearch.ts b/src/components/Application/src/search/useMenuSearch.ts index baa54530..1c382d67 100644 --- a/src/components/Application/src/search/useMenuSearch.ts +++ b/src/components/Application/src/search/useMenuSearch.ts @@ -88,7 +88,7 @@ export function useMenuSearch(refs: Ref, scrollWrap: Ref, return ret; } - function handleMouseenter(e: ChangeEvent) { + function handleMouseenter(e: any) { const index = e.target.dataset.index; activeIndex.value = Number(index); } diff --git a/src/components/Container/src/LazyContainer.vue b/src/components/Container/src/LazyContainer.vue index 96a50263..9c438ceb 100644 --- a/src/components/Container/src/LazyContainer.vue +++ b/src/components/Container/src/LazyContainer.vue @@ -10,7 +10,7 @@
-
+
diff --git a/src/components/Container/src/collapse/CollapseContainer.vue b/src/components/Container/src/collapse/CollapseContainer.vue index 70666106..e4ad88b5 100644 --- a/src/components/Container/src/collapse/CollapseContainer.vue +++ b/src/components/Container/src/collapse/CollapseContainer.vue @@ -1,6 +1,11 @@