From 3e938943d17961e2415d970dfdc6a8825f4ac528 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A5=9A=E7=8E=89=E5=B8=86?= Date: Sun, 4 Feb 2024 17:11:30 +0800 Subject: [PATCH] update --- components.d.ts | 17 +++++++++++++++++ config/vite.config.base.ts | 3 ++- config/vite.config.prod.ts | 2 -- 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/components.d.ts b/components.d.ts index 524ea40..205e160 100644 --- a/components.d.ts +++ b/components.d.ts @@ -9,7 +9,24 @@ export {} declare module '@vue/runtime-core' { export interface GlobalComponents { + Block: typeof import('./src/components/global-setting/block.vue')['default'] + Breadcrumb: typeof import('./src/components/breadcrumb/index.vue')['default'] + Chart: typeof import('./src/components/chart/index.vue')['default'] + Footer: typeof import('./src/components/footer/index.vue')['default'] + FormWrapper: typeof import('./src/components/global-setting/form-wrapper.vue')['default'] + GlobalSetting: typeof import('./src/components/global-setting/index.vue')['default'] + List: typeof import('./src/components/message-box/list.vue')['default'] + Menu: typeof import('./src/components/menu/index.vue')['default'] + MessageBox: typeof import('./src/components/message-box/index.vue')['default'] + Navbar: typeof import('./src/components/navbar/index.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] + TabBar: typeof import('./src/components/tab-bar/index.vue')['default'] + TabItem: typeof import('./src/components/tab-bar/tab-item.vue')['default'] + TButton: typeof import('tdesign-vue-next')['Button'] + TCheckbox: typeof import('tdesign-vue-next')['Checkbox'] + TCheckboxGroup: typeof import('tdesign-vue-next')['CheckboxGroup'] + TSwitch: typeof import('tdesign-vue-next')['Switch'] + TTable: typeof import('tdesign-vue-next')['Table'] } } diff --git a/config/vite.config.base.ts b/config/vite.config.base.ts index cde8b2c..5508603 100644 --- a/config/vite.config.base.ts +++ b/config/vite.config.base.ts @@ -8,6 +8,7 @@ import configArcoStyleImportPlugin from './plugin/arcoStyleImport'; import AutoImport from 'unplugin-auto-import/vite'; import Components from 'unplugin-vue-components/vite'; import { TDesignResolver } from 'unplugin-vue-components/resolvers'; +import { ArcoResolver } from 'unplugin-vue-components/resolvers'; export default defineConfig({ plugins: [ @@ -23,7 +24,7 @@ export default defineConfig({ Components({ resolvers: [TDesignResolver({ library: 'vue-next' - })], + }), ArcoResolver()], }), ], resolve: { diff --git a/config/vite.config.prod.ts b/config/vite.config.prod.ts index 79a8864..aa6a985 100644 --- a/config/vite.config.prod.ts +++ b/config/vite.config.prod.ts @@ -2,7 +2,6 @@ import { mergeConfig } from 'vite'; import baseConfig from './vite.config.base'; import configCompressPlugin from './plugin/compress'; import configVisualizerPlugin from './plugin/visualizer'; -import configArcoResolverPlugin from './plugin/arcoResolver'; import configImageminPlugin from './plugin/imagemin'; export default mergeConfig( @@ -11,7 +10,6 @@ export default mergeConfig( plugins: [ configCompressPlugin('gzip'), configVisualizerPlugin(), - configArcoResolverPlugin(), configImageminPlugin(), ], build: {