File tree 9 files changed +7820
-8257
lines changed 9 files changed +7820
-8257
lines changed Original file line number Diff line number Diff line change
1
+ import Components from 'unplugin-vue-components/vite'
2
+ import { AntDesignVueResolver } from 'unplugin-vue-components/resolvers'
3
+
4
+ export function configAntdComponentsPlugin ( ) {
5
+ return Components ( {
6
+ resolvers : [
7
+ AntDesignVueResolver ( {
8
+ importStyle : false
9
+ } )
10
+ ]
11
+ } )
12
+ }
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import vueJsx from '@vitejs/plugin-vue-jsx'
4
4
// import { codeInspectorPlugin } from 'code-inspector-plugin'
5
5
import { configMockPlugin } from './mock'
6
6
import { configSvgIconsPlugin } from './svgIcons'
7
- import { configStyleImportPlugin } from './styles '
7
+ import { configAntdComponentsPlugin } from './components '
8
8
9
9
export function createVitePlugins ( isBuild : boolean ) {
10
10
const vitePlugins : ( Plugin | Plugin [ ] ) [ ] = [
@@ -13,8 +13,8 @@ export function createVitePlugins(isBuild: boolean) {
13
13
vueJsx ( )
14
14
]
15
15
16
- // vite-plugin-style-import
17
- vitePlugins . push ( configStyleImportPlugin ( ) )
16
+ // unplugin-vue-components
17
+ vitePlugins . push ( configAntdComponentsPlugin ( ) )
18
18
19
19
// vite-plugin-svg-icons
20
20
vitePlugins . push ( configSvgIconsPlugin ( isBuild ) )
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ /* eslint-disable */
2
+ // @ts -nocheck
3
+ // Generated by unplugin-vue-components
4
+ // Read more: https://github.com/vuejs/core/pull/3399
5
+ export { }
6
+
7
+ /* prettier-ignore */
8
+ declare module 'vue' {
9
+ export interface GlobalComponents {
10
+ RouterLink : typeof import ( 'vue-router' ) [ 'RouterLink' ]
11
+ RouterView : typeof import ( 'vue-router' ) [ 'RouterView' ]
12
+ }
13
+ }
Original file line number Diff line number Diff line change 19
19
"commit" : " git-cz"
20
20
},
21
21
"dependencies" : {
22
- "@ant-design/colors" : " ^7.0.2 " ,
22
+ "@ant-design/colors" : " ^7.1.0 " ,
23
23
"@ant-design/icons-vue" : " ^7.0.1" ,
24
24
"@emotion/css" : " ^11.11.2" ,
25
25
"@form-create/designer" : " ^3.1.5" ,
29
29
"@vueuse/core" : " ^10.7.1" ,
30
30
"@wangeditor/editor" : " ^5.1.23" ,
31
31
"@wangeditor/editor-for-vue" : " ^5.1.12" ,
32
- "ant-design-vue" : " ^4.1.0 " ,
32
+ "ant-design-vue" : " ^4.2.5 " ,
33
33
"axios" : " ^1.6.5" ,
34
34
"codemirror" : " ^6.0.1" ,
35
35
"crypto-js" : " ^4.2.0" ,
92
92
"postcss" : " ^8.4.33" ,
93
93
"postcss-load-config" : " ^5.0.2" ,
94
94
"prettier" : " ^3.1.1" ,
95
- "rimraf" : " ^5 .0.5 " ,
95
+ "rimraf" : " ^6 .0.1 " ,
96
96
"rollup" : " ^4.9.4" ,
97
97
"terser" : " ^5.26.0" ,
98
98
"typescript" : " ^5.3.3" ,
99
- "vite" : " ^5.0.11" ,
99
+ "unplugin-vue-components" : " ^0.27.4" ,
100
+ "vite" : " ^5.4.10" ,
100
101
"vite-plugin-mock" : " 2.9.8" ,
101
102
"vite-plugin-style-import" : " ^2.0.0" ,
102
103
"vite-plugin-svg-icons" : " ^2.0.1" ,
You can’t perform that action at this time.
0 commit comments