From 970d4049fd75f9722ee3760fbee5a154fbcf26d2 Mon Sep 17 00:00:00 2001 From: Vben Date: Tue, 9 Mar 2021 23:01:32 +0800 Subject: [PATCH] chore: update deps --- .vscode/settings.json | 1 + package.json | 6 +- .../Application/src/AppLocalePicker.vue | 25 +---- src/components/Application/src/AppLogo.vue | 2 - .../Application/src/AppProvider.vue | 8 +- .../Application/src/search/AppSearch.vue | 24 ++--- .../src/search/AppSearchFooter.vue | 20 ++-- .../src/search/AppSearchKeyItem.vue | 17 ++++ .../Application/src/search/AppSearchModal.vue | 10 +- src/components/Authority/src/index.vue | 2 +- src/utils/http/axios/Axios.ts | 5 +- yarn.lock | 95 ++++++++++--------- 12 files changed, 100 insertions(+), 115 deletions(-) create mode 100644 src/components/Application/src/search/AppSearchKeyItem.vue diff --git a/.vscode/settings.json b/.vscode/settings.json index 87a96104..7e2edd62 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -13,6 +13,7 @@ "editor.cursorBlinking": "phase", "editor.cursorSmoothCaretAnimation": true, "editor.detectIndentation": false, + "editor.defaultFormatter": "esbenp.prettier-vscode", "diffEditor.ignoreTrimWhitespace": false, "javascript.format.insertSpaceBeforeFunctionParenthesis": true, "editor.formatOnPaste": true, diff --git a/package.json b/package.json index d2ba1c5b..625da2e3 100644 --- a/package.json +++ b/package.json @@ -68,8 +68,8 @@ "@types/rollup-plugin-visualizer": "^2.6.0", "@types/sortablejs": "^1.10.6", "@types/yargs": "^16.0.0", - "@typescript-eslint/eslint-plugin": "^4.16.1", - "@typescript-eslint/parser": "^4.16.1", + "@typescript-eslint/eslint-plugin": "^4.17.0", + "@typescript-eslint/parser": "^4.17.0", "@vitejs/plugin-legacy": "^1.3.1", "@vitejs/plugin-vue": "^1.1.5", "@vitejs/plugin-vue-jsx": "^1.1.2", @@ -106,7 +106,7 @@ "vite-plugin-compression": "^0.2.3", "vite-plugin-html": "^2.0.3", "vite-plugin-imagemin": "^0.2.9", - "vite-plugin-mock": "^2.2.0", + "vite-plugin-mock": "^2.2.2", "vite-plugin-purge-icons": "^0.7.0", "vite-plugin-pwa": "^0.5.6", "vite-plugin-style-import": "^0.8.1", diff --git a/src/components/Application/src/AppLocalePicker.vue b/src/components/Application/src/AppLocalePicker.vue index 9f196f6a..902ea76e 100644 --- a/src/components/Application/src/AppLocalePicker.vue +++ b/src/components/Application/src/AppLocalePicker.vue @@ -9,11 +9,11 @@ :dropMenuList="localeList" :selectedKeys="selectedKeys" @menuEvent="handleMenuEvent" - :overlayClassName="`${prefixCls}-overlay`" + overlayClassName="app-locale-picker-overlay" > - + - {{ getLangText }} + {{ getLangText }} @@ -27,7 +27,6 @@ import { useLocale } from '/@/locales/useLocale'; import { localeList } from '/@/settings/localeSetting'; - import { useDesign } from '/@/hooks/web/useDesign'; import { propTypes } from '/@/utils/propTypes'; export default defineComponent({ @@ -42,8 +41,6 @@ setup(props) { const selectedKeys = ref([]); - const { prefixCls } = useDesign('app-locale-picker'); - const { changeLocale, getLocale } = useLocale(); const getLangText = computed(() => { @@ -67,27 +64,15 @@ toggleLocale(menu.event as string); } - return { localeList, handleMenuEvent, selectedKeys, getLangText, prefixCls }; + return { localeList, handleMenuEvent, selectedKeys, getLangText }; }, }); diff --git a/src/components/Application/src/AppLogo.vue b/src/components/Application/src/AppLogo.vue index 522b272d..413fe047 100644 --- a/src/components/Application/src/AppLogo.vue +++ b/src/components/Application/src/AppLogo.vue @@ -48,9 +48,7 @@ setup() { const { prefixCls } = useDesign('app-logo'); const { getCollapsedShowTitle } = useMenuSetting(); - const { title } = useGlobSetting(); - const go = useGo(); function handleGoHome(): void { diff --git a/src/components/Application/src/AppProvider.vue b/src/components/Application/src/AppProvider.vue index 7ad68e53..354a1bf1 100644 --- a/src/components/Application/src/AppProvider.vue +++ b/src/components/Application/src/AppProvider.vue @@ -1,20 +1,17 @@ - diff --git a/src/components/Application/src/search/AppSearchFooter.vue b/src/components/Application/src/search/AppSearchFooter.vue index 56c37085..7db8839f 100644 --- a/src/components/Application/src/search/AppSearchFooter.vue +++ b/src/components/Application/src/search/AppSearchFooter.vue @@ -1,20 +1,13 @@ @@ -22,12 +15,13 @@ diff --git a/src/components/Application/src/search/AppSearchModal.vue b/src/components/Application/src/search/AppSearchModal.vue index a2e9275f..dcc38f58 100644 --- a/src/components/Application/src/search/AppSearchModal.vue +++ b/src/components/Application/src/search/AppSearchModal.vue @@ -11,6 +11,7 @@ @change="handleSearch" > @@ -22,6 +23,7 @@
{{ t('component.app.searchNotData') }}
+