This commit is contained in:
Silent YANG 2024-02-04 17:11:30 +08:00
parent 2a509a3e16
commit 3e938943d1
3 changed files with 19 additions and 3 deletions

17
components.d.ts vendored
View file

@ -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']
}
}

View file

@ -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: {

View file

@ -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: {