unplugin-vue-components 31.0.0 → 32.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/esbuild.d.mts +2 -3
- package/dist/esbuild.mjs +3 -6
- package/dist/index.d.mts +3 -6
- package/dist/index.mjs +3 -4
- package/dist/nuxt.d.mts +1 -1
- package/dist/nuxt.mjs +3 -6
- package/dist/resolvers.d.mts +196 -189
- package/dist/resolvers.mjs +76 -84
- package/dist/rolldown.d.mts +2 -3
- package/dist/rolldown.mjs +3 -6
- package/dist/rollup.d.mts +2 -3
- package/dist/rollup.mjs +3 -6
- package/dist/rspack.d.mts +1 -1
- package/dist/rspack.mjs +3 -6
- package/dist/{src-pYuu2TZ_.mjs → src-M1OY6Uso.mjs} +9 -20
- package/dist/types-BbnOeCab.d.mts +217 -0
- package/dist/types.d.mts +1 -1
- package/dist/types.mjs +1 -1
- package/dist/{utils-DuuqqWXg.mjs → utils-BfjsfvcK.mjs} +4 -9
- package/dist/vite.d.mts +1 -1
- package/dist/vite.mjs +3 -6
- package/dist/webpack.d.mts +2 -3
- package/dist/webpack.mjs +3 -6
- package/package.json +22 -18
- package/dist/types--fVOUYBq.mjs +0 -1
- package/dist/types-CWfK8m_y.d.mts +0 -217
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@ On-demand components auto importing for Vue.
|
|
|
19
19
|
|
|
20
20
|
<p align="center">
|
|
21
21
|
<a href="https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg">
|
|
22
|
-
<img src='https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg'/>
|
|
22
|
+
<img src='https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg' alt='Sponsors'/>
|
|
23
23
|
</a>
|
|
24
24
|
</p>
|
|
25
25
|
|
package/dist/esbuild.d.mts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { u as Options } from "./types-
|
|
2
|
-
import * as esbuild0 from "esbuild";
|
|
1
|
+
import { u as Options } from "./types-BbnOeCab.mjs";
|
|
3
2
|
|
|
4
3
|
//#region src/esbuild.d.ts
|
|
5
|
-
declare const esbuild: (options: Options) =>
|
|
4
|
+
declare const esbuild: (options: Options) => esbuild.Plugin;
|
|
6
5
|
//#endregion
|
|
7
6
|
export { esbuild as default, esbuild as "module.exports" };
|
package/dist/esbuild.mjs
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import "./utils-
|
|
2
|
-
import { t as unplugin_default } from "./src-
|
|
3
|
-
|
|
1
|
+
import "./utils-BfjsfvcK.mjs";
|
|
2
|
+
import { t as unplugin_default } from "./src-M1OY6Uso.mjs";
|
|
4
3
|
//#region src/esbuild.ts
|
|
5
4
|
const esbuild = unplugin_default.esbuild;
|
|
6
|
-
var esbuild_default = esbuild;
|
|
7
|
-
|
|
8
5
|
//#endregion
|
|
9
|
-
export {
|
|
6
|
+
export { esbuild as default, esbuild as "module.exports" };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import { a as ComponentResolverObject, c as ImportInfoLegacy, d as PublicPluginAPI, f as ResolvedOptions, h as TypeImport, i as ComponentResolverFunction, l as Matcher, m as Transformer, n as ComponentResolveResult, o as ComponentsImportMap, p as SideEffectsInfo, r as ComponentResolver, s as ImportInfo, t as ComponentInfo, u as Options } from "./types-
|
|
2
|
-
import "
|
|
3
|
-
import * as unplugin0 from "unplugin";
|
|
1
|
+
import { a as ComponentResolverObject, c as ImportInfoLegacy, d as PublicPluginAPI, f as ResolvedOptions, h as TypeImport, i as ComponentResolverFunction, l as Matcher, m as Transformer, n as ComponentResolveResult, o as ComponentsImportMap, p as SideEffectsInfo, r as ComponentResolver, s as ImportInfo, t as ComponentInfo, u as Options } from "./types-BbnOeCab.mjs";
|
|
2
|
+
import * as unplugin from "unplugin";
|
|
4
3
|
import { FilterPattern } from "unplugin-utils";
|
|
5
|
-
import "vite";
|
|
6
|
-
|
|
7
4
|
//#region src/core/unplugin.d.ts
|
|
8
|
-
declare const _default:
|
|
5
|
+
declare const _default: unplugin.UnpluginInstance<Options, boolean>;
|
|
9
6
|
//#endregion
|
|
10
7
|
//#region src/core/utils.d.ts
|
|
11
8
|
declare function pascalCase(str: string): string;
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { c as kebabCase, f as pascalCase, t as camelCase } from "./utils-
|
|
2
|
-
import { t as unplugin_default } from "./src-
|
|
3
|
-
|
|
4
|
-
export { camelCase, unplugin_default as default, kebabCase, pascalCase };
|
|
1
|
+
import { c as kebabCase, f as pascalCase, t as camelCase } from "./utils-BfjsfvcK.mjs";
|
|
2
|
+
import { t as unplugin_default } from "./src-M1OY6Uso.mjs";
|
|
3
|
+
export { camelCase, unplugin_default as default, kebabCase, pascalCase };
|
package/dist/nuxt.d.mts
CHANGED
package/dist/nuxt.mjs
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import "./utils-
|
|
2
|
-
import { t as unplugin_default } from "./src-
|
|
1
|
+
import "./utils-BfjsfvcK.mjs";
|
|
2
|
+
import { t as unplugin_default } from "./src-M1OY6Uso.mjs";
|
|
3
3
|
import { addVitePlugin, addWebpackPlugin, defineNuxtModule } from "@nuxt/kit";
|
|
4
|
-
|
|
5
4
|
//#region src/nuxt.ts
|
|
6
5
|
const module = defineNuxtModule({ setup(options) {
|
|
7
6
|
addWebpackPlugin(unplugin_default.webpack(options));
|
|
8
7
|
addVitePlugin(unplugin_default.vite(options));
|
|
9
8
|
} });
|
|
10
|
-
var nuxt_default = module;
|
|
11
|
-
|
|
12
9
|
//#endregion
|
|
13
|
-
export {
|
|
10
|
+
export { module as default };
|
package/dist/resolvers.d.mts
CHANGED
|
@@ -1,51 +1,58 @@
|
|
|
1
|
-
import { n as ComponentResolveResult, r as ComponentResolver } from "./types-
|
|
1
|
+
import { n as ComponentResolveResult, r as ComponentResolver } from "./types-BbnOeCab.mjs";
|
|
2
2
|
import { FilterPattern } from "unplugin-utils";
|
|
3
3
|
|
|
4
4
|
//#region src/core/resolvers/antdv.d.ts
|
|
5
|
+
type AntDesignVueResolveDateLibrary = 'dayjs' | 'date-fns' | 'moment';
|
|
5
6
|
interface AntDesignVueResolverOptions {
|
|
6
7
|
/**
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
* exclude components that do not require automatic import
|
|
9
|
+
*
|
|
10
|
+
* @default []
|
|
11
|
+
*/
|
|
11
12
|
exclude?: string[];
|
|
12
13
|
/**
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
* import style along with components
|
|
15
|
+
*
|
|
16
|
+
* @default 'css'
|
|
17
|
+
*/
|
|
17
18
|
importStyle?: boolean | 'css' | 'less' | 'css-in-js';
|
|
18
19
|
/**
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
* resolve `ant-design-vue' icons
|
|
21
|
+
*
|
|
22
|
+
* requires package `@ant-design/icons-vue`
|
|
23
|
+
*
|
|
24
|
+
* @default false
|
|
25
|
+
*/
|
|
25
26
|
resolveIcons?: boolean;
|
|
26
27
|
/**
|
|
27
|
-
|
|
28
|
-
|
|
28
|
+
* @deprecated use `importStyle: 'css'` instead
|
|
29
|
+
*/
|
|
29
30
|
importCss?: boolean;
|
|
30
31
|
/**
|
|
31
|
-
|
|
32
|
-
|
|
32
|
+
* @deprecated use `importStyle: 'less'` instead
|
|
33
|
+
*/
|
|
33
34
|
importLess?: boolean;
|
|
34
35
|
/**
|
|
35
|
-
|
|
36
|
-
|
|
36
|
+
* use commonjs build default false
|
|
37
|
+
*/
|
|
37
38
|
cjs?: boolean;
|
|
38
39
|
/**
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
* rename package
|
|
41
|
+
*
|
|
42
|
+
* @default 'ant-design-vue'
|
|
43
|
+
*/
|
|
43
44
|
packageName?: string;
|
|
44
45
|
/**
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
* customize prefix of component
|
|
47
|
+
* @default 'A'
|
|
48
|
+
*/
|
|
48
49
|
prefix?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Custom date library.
|
|
52
|
+
*
|
|
53
|
+
* @default 'dayjs'
|
|
54
|
+
*/
|
|
55
|
+
resolveDateLibrary?: AntDesignVueResolveDateLibrary;
|
|
49
56
|
}
|
|
50
57
|
/**
|
|
51
58
|
* Resolver for Ant Design Vue
|
|
@@ -70,28 +77,28 @@ type AllowResolveIconOption = true | {
|
|
|
70
77
|
type ResolveIconsOption = DisallowResolveIconOption | AllowResolveIconOption;
|
|
71
78
|
interface ArcoResolverOptions {
|
|
72
79
|
/**
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
80
|
+
* exclude components that do not require automatic import
|
|
81
|
+
*
|
|
82
|
+
* @default []
|
|
83
|
+
*/
|
|
77
84
|
exclude?: string | RegExp | (string | RegExp)[];
|
|
78
85
|
/**
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
86
|
+
* import style css or less with components
|
|
87
|
+
*
|
|
88
|
+
* @default 'css'
|
|
89
|
+
*/
|
|
83
90
|
importStyle?: boolean | 'css' | 'less';
|
|
84
91
|
/**
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
92
|
+
* resolve icons
|
|
93
|
+
*
|
|
94
|
+
* @default false
|
|
95
|
+
*/
|
|
89
96
|
resolveIcons?: ResolveIconsOption;
|
|
90
97
|
/**
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
98
|
+
* Control style automatic import
|
|
99
|
+
*
|
|
100
|
+
* @default true
|
|
101
|
+
*/
|
|
95
102
|
sideEffect?: boolean;
|
|
96
103
|
}
|
|
97
104
|
/**
|
|
@@ -108,10 +115,10 @@ declare function ArcoResolver(options?: ArcoResolverOptions): ComponentResolver;
|
|
|
108
115
|
//#region src/core/resolvers/bootstrap-vue.d.ts
|
|
109
116
|
interface BootstrapVueResolverOptions {
|
|
110
117
|
/**
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
118
|
+
* Auto import for directives.
|
|
119
|
+
*
|
|
120
|
+
* @default true
|
|
121
|
+
*/
|
|
115
122
|
directives?: boolean;
|
|
116
123
|
}
|
|
117
124
|
/**
|
|
@@ -139,20 +146,20 @@ declare function BootstrapVue3Resolver(_options?: BootstrapVueResolverOptions):
|
|
|
139
146
|
//#region src/core/resolvers/devui.d.ts
|
|
140
147
|
interface DevResolverOptions {
|
|
141
148
|
/**
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
149
|
+
* bring in components and styles
|
|
150
|
+
*
|
|
151
|
+
* @default true
|
|
152
|
+
*/
|
|
146
153
|
importStyle?: boolean;
|
|
147
154
|
/**
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
155
|
+
* auto import for directives
|
|
156
|
+
*
|
|
157
|
+
* @default true
|
|
158
|
+
*/
|
|
152
159
|
directives?: boolean;
|
|
153
160
|
/**
|
|
154
|
-
|
|
155
|
-
|
|
161
|
+
* use umd lib file
|
|
162
|
+
*/
|
|
156
163
|
ssr?: boolean;
|
|
157
164
|
}
|
|
158
165
|
declare function DevUiResolver(options?: DevResolverOptions): ComponentResolver[];
|
|
@@ -160,38 +167,38 @@ declare function DevUiResolver(options?: DevResolverOptions): ComponentResolver[
|
|
|
160
167
|
//#region src/core/resolvers/element-plus.d.ts
|
|
161
168
|
interface ElementPlusResolverOptions {
|
|
162
169
|
/**
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
170
|
+
* import style css or sass with components
|
|
171
|
+
*
|
|
172
|
+
* @default 'css'
|
|
173
|
+
*/
|
|
167
174
|
importStyle?: boolean | 'css' | 'sass';
|
|
168
175
|
/**
|
|
169
|
-
|
|
170
|
-
|
|
176
|
+
* use commonjs lib & source css or scss for ssr
|
|
177
|
+
*/
|
|
171
178
|
ssr?: boolean;
|
|
172
179
|
/**
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
180
|
+
* specify element-plus version to load style
|
|
181
|
+
*
|
|
182
|
+
* @default installed version
|
|
183
|
+
*/
|
|
177
184
|
version?: string;
|
|
178
185
|
/**
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
186
|
+
* auto import for directives
|
|
187
|
+
*
|
|
188
|
+
* @default true
|
|
189
|
+
*/
|
|
183
190
|
directives?: boolean;
|
|
184
191
|
/**
|
|
185
|
-
|
|
186
|
-
|
|
192
|
+
* exclude component name, if match do not resolve the name
|
|
193
|
+
*/
|
|
187
194
|
exclude?: RegExp;
|
|
188
195
|
/**
|
|
189
|
-
|
|
190
|
-
|
|
196
|
+
* a list of component names that have no styles, so resolving their styles file should be prevented
|
|
197
|
+
*/
|
|
191
198
|
noStylesComponents?: string[];
|
|
192
199
|
/**
|
|
193
|
-
|
|
194
|
-
|
|
200
|
+
* nightly version
|
|
201
|
+
*/
|
|
195
202
|
nightly?: boolean;
|
|
196
203
|
}
|
|
197
204
|
/**
|
|
@@ -209,10 +216,10 @@ declare function ElementPlusResolver(options?: ElementPlusResolverOptions): Comp
|
|
|
209
216
|
//#region src/core/resolvers/headless-ui.d.ts
|
|
210
217
|
interface HeadlessUiResolverOptions {
|
|
211
218
|
/**
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
219
|
+
* prefix for headless ui components used in templates
|
|
220
|
+
*
|
|
221
|
+
* @default ""
|
|
222
|
+
*/
|
|
216
223
|
prefix?: string;
|
|
217
224
|
}
|
|
218
225
|
/**
|
|
@@ -225,32 +232,32 @@ declare function HeadlessUiResolver(options?: HeadlessUiResolverOptions): Compon
|
|
|
225
232
|
//#region src/core/resolvers/idux.d.ts
|
|
226
233
|
interface IduxResolverOptions {
|
|
227
234
|
/**
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
235
|
+
* exclude components that do not require automatic import
|
|
236
|
+
*
|
|
237
|
+
* @default []
|
|
238
|
+
*/
|
|
232
239
|
exclude?: string[];
|
|
233
240
|
/**
|
|
234
|
-
|
|
235
|
-
|
|
241
|
+
* import style along with components
|
|
242
|
+
*/
|
|
236
243
|
importStyle?: 'css' | 'less';
|
|
237
244
|
/**
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
245
|
+
* theme for import style
|
|
246
|
+
*
|
|
247
|
+
* @default 'default' for 1.x version
|
|
248
|
+
*/
|
|
242
249
|
importStyleTheme?: string;
|
|
243
250
|
/**
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
251
|
+
* The scope of the packages.
|
|
252
|
+
*
|
|
253
|
+
* @default '@idux'
|
|
254
|
+
*/
|
|
248
255
|
scope?: string;
|
|
249
256
|
/**
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
257
|
+
* specify idux version to load style
|
|
258
|
+
*
|
|
259
|
+
* @default installed version
|
|
260
|
+
*/
|
|
254
261
|
version?: string;
|
|
255
262
|
}
|
|
256
263
|
/**
|
|
@@ -286,22 +293,22 @@ declare function IonicResolver(): ComponentResolver;
|
|
|
286
293
|
//#region src/core/resolvers/layui-vue.d.ts
|
|
287
294
|
interface LayuiVueResolverOptions {
|
|
288
295
|
/**
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
296
|
+
* import style along with components
|
|
297
|
+
*
|
|
298
|
+
* @default 'css'
|
|
299
|
+
*/
|
|
293
300
|
importStyle?: boolean | 'css';
|
|
294
301
|
/**
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
302
|
+
* resolve '@layui/layui-vue' icons
|
|
303
|
+
* requires package `@layui/icons-vue`
|
|
304
|
+
*
|
|
305
|
+
* @default false
|
|
306
|
+
*/
|
|
300
307
|
resolveIcons?: boolean;
|
|
301
308
|
/**
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
309
|
+
* exclude components that do not require automatic import
|
|
310
|
+
*
|
|
311
|
+
*/
|
|
305
312
|
exclude?: FilterPattern;
|
|
306
313
|
}
|
|
307
314
|
/**
|
|
@@ -324,30 +331,30 @@ declare function NaiveUiResolver(): ComponentResolver;
|
|
|
324
331
|
//#region src/core/resolvers/prime-vue.d.ts
|
|
325
332
|
interface PrimeVueResolverOptions {
|
|
326
333
|
/**
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
334
|
+
* import style along with components
|
|
335
|
+
*
|
|
336
|
+
* @default true
|
|
337
|
+
*/
|
|
331
338
|
importStyle?: boolean;
|
|
332
339
|
/**
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
340
|
+
* import `primeicons' icons
|
|
341
|
+
*
|
|
342
|
+
* requires package `primeicons`
|
|
343
|
+
*
|
|
344
|
+
* @default true
|
|
345
|
+
*/
|
|
339
346
|
importIcons?: boolean;
|
|
340
347
|
/**
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
348
|
+
* imports a free theme - set theme name here (e.g. saga-blue)
|
|
349
|
+
*
|
|
350
|
+
* @default ''
|
|
351
|
+
*/
|
|
345
352
|
importTheme?: string;
|
|
346
353
|
/**
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
354
|
+
* prefix for components (e.g. 'P' to resolve Menu from PMenu)
|
|
355
|
+
*
|
|
356
|
+
* @default ''
|
|
357
|
+
*/
|
|
351
358
|
prefix?: string;
|
|
352
359
|
}
|
|
353
360
|
/**
|
|
@@ -368,24 +375,24 @@ declare function QuasarResolver(): ComponentResolver;
|
|
|
368
375
|
//#region src/core/resolvers/tdesign.d.ts
|
|
369
376
|
interface TDesignResolverOptions {
|
|
370
377
|
/**
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
378
|
+
* select the specified library
|
|
379
|
+
* @default 'vue'
|
|
380
|
+
*/
|
|
374
381
|
library?: 'vue' | 'vue-next' | 'react' | 'mobile-vue' | 'mobile-react';
|
|
375
382
|
/**
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
383
|
+
* resolve `tdesign-icons'
|
|
384
|
+
* @default false
|
|
385
|
+
*/
|
|
379
386
|
resolveIcons?: boolean;
|
|
380
387
|
/**
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
388
|
+
* whether to import ESM version
|
|
389
|
+
* @default false
|
|
390
|
+
*/
|
|
384
391
|
esm?: boolean;
|
|
385
392
|
/**
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
393
|
+
* exclude component name, if match do not resolve the name
|
|
394
|
+
*
|
|
395
|
+
*/
|
|
389
396
|
exclude?: FilterPattern;
|
|
390
397
|
}
|
|
391
398
|
declare function TDesignResolver(options?: TDesignResolverOptions): ComponentResolver;
|
|
@@ -393,10 +400,10 @@ declare function TDesignResolver(options?: TDesignResolverOptions): ComponentRes
|
|
|
393
400
|
//#region src/core/resolvers/vant.d.ts
|
|
394
401
|
interface VantResolverOptions {
|
|
395
402
|
/**
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
403
|
+
* import style css or less along with components
|
|
404
|
+
*
|
|
405
|
+
* @default true
|
|
406
|
+
*/
|
|
400
407
|
importStyle?: boolean | 'css' | 'less';
|
|
401
408
|
}
|
|
402
409
|
/**
|
|
@@ -409,36 +416,36 @@ declare function VantResolver(options?: VantResolverOptions): ComponentResolver;
|
|
|
409
416
|
//#region src/core/resolvers/varlet-ui.d.ts
|
|
410
417
|
interface VarletUIResolverOptions {
|
|
411
418
|
/**
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
419
|
+
* import style along with components
|
|
420
|
+
*
|
|
421
|
+
* @default 'css'
|
|
422
|
+
*/
|
|
416
423
|
importStyle?: boolean | 'css' | 'less';
|
|
417
424
|
/**
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
425
|
+
* style entry file extname
|
|
426
|
+
*
|
|
427
|
+
* @default '.mjs'
|
|
428
|
+
*/
|
|
422
429
|
styleExtname?: string;
|
|
423
430
|
/**
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
431
|
+
* auto import for directives
|
|
432
|
+
*
|
|
433
|
+
* @default true
|
|
434
|
+
*/
|
|
428
435
|
directives?: boolean;
|
|
429
436
|
/**
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
437
|
+
* compatible with unplugin-auto-import
|
|
438
|
+
*
|
|
439
|
+
* @default false
|
|
440
|
+
*/
|
|
434
441
|
autoImport?: boolean;
|
|
435
442
|
/**
|
|
436
|
-
|
|
437
|
-
|
|
443
|
+
* @deprecated use `importStyle: 'css'` instead
|
|
444
|
+
*/
|
|
438
445
|
importCss?: boolean;
|
|
439
446
|
/**
|
|
440
|
-
|
|
441
|
-
|
|
447
|
+
* @deprecated use `importStyle: 'less'` instead
|
|
448
|
+
*/
|
|
442
449
|
importLess?: boolean;
|
|
443
450
|
}
|
|
444
451
|
declare function getResolved(name: string, options: VarletUIResolverOptions): ComponentResolveResult;
|
|
@@ -452,45 +459,45 @@ declare function VarletUIResolver(options?: VarletUIResolverOptions): ComponentR
|
|
|
452
459
|
//#region src/core/resolvers/veui.d.ts
|
|
453
460
|
interface VeuiPeerConfig {
|
|
454
461
|
/**
|
|
455
|
-
|
|
456
|
-
|
|
462
|
+
* The package name of the peer module.
|
|
463
|
+
*/
|
|
457
464
|
package: string;
|
|
458
465
|
/**
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
466
|
+
* The directory path of the peer module.
|
|
467
|
+
* @default 'components'
|
|
468
|
+
*/
|
|
462
469
|
path?: string;
|
|
463
470
|
/**
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
471
|
+
* The file name template for the peer module.
|
|
472
|
+
* @default '{module}.css'
|
|
473
|
+
*/
|
|
467
474
|
fileName?: `${string}{module}${string}`;
|
|
468
475
|
/**
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
476
|
+
* The text transform to be applied to the '{module}' part of the file name.
|
|
477
|
+
* @default 'kebab-case'
|
|
478
|
+
*/
|
|
472
479
|
transform?: 'kebab-case' | 'camelCase' | 'PascalCase' | false;
|
|
473
480
|
}
|
|
474
481
|
type SupportedLocale = 'en-US' | 'zh-Hans';
|
|
475
482
|
interface VeuiResolverOptions {
|
|
476
483
|
/**
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
484
|
+
* The alias of 'veui` package.
|
|
485
|
+
* @default 'veui'
|
|
486
|
+
*/
|
|
480
487
|
alias?: string;
|
|
481
488
|
/**
|
|
482
|
-
|
|
483
|
-
|
|
489
|
+
* Peer modules to be injected.
|
|
490
|
+
*/
|
|
484
491
|
modules?: VeuiPeerConfig[];
|
|
485
492
|
/**
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
493
|
+
* Locale modules to be injected.
|
|
494
|
+
* @default 'zh-Hans'
|
|
495
|
+
*/
|
|
489
496
|
locale?: SupportedLocale | SupportedLocale[] | false;
|
|
490
497
|
/**
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
498
|
+
* Global modules to be injected to all components.
|
|
499
|
+
* @default []
|
|
500
|
+
*/
|
|
494
501
|
global?: string[];
|
|
495
502
|
}
|
|
496
503
|
/**
|
|
@@ -542,4 +549,4 @@ declare function VueUseComponentsResolver(): ComponentResolver;
|
|
|
542
549
|
*/
|
|
543
550
|
declare function VueUseDirectiveResolver(): ComponentResolver;
|
|
544
551
|
//#endregion
|
|
545
|
-
export { AllowResolveIconOption, AntDesignVueResolver, AntDesignVueResolverOptions, ArcoResolver, ArcoResolverOptions, BootstrapVue3Resolver, BootstrapVueNextResolver, BootstrapVueResolver, BootstrapVueResolverOptions, DevResolverOptions, DevUiResolver, DisallowResolveIconOption, ElementPlusResolver, ElementPlusResolverOptions, HeadlessUiResolver, HeadlessUiResolverOptions, IduxResolver, IduxResolverOptions, InklineResolver, IonicBuiltInComponents, IonicResolver, LayuiVueResolver, LayuiVueResolverOptions, NaiveUiResolver, PrimeVueResolver, PrimeVueResolverOptions, QuasarResolver, ResolveIconsOption, TDesignResolver, TDesignResolverOptions, VantResolver, VantResolverOptions, VarletUIResolver, VarletUIResolverOptions, VeuiResolver, VeuiResolverOptions, ViewUiResolver, VueUseComponentsResolver, VueUseDirectiveResolver, Vuetify3Resolver, VuetifyResolver, getResolved };
|
|
552
|
+
export { AllowResolveIconOption, AntDesignVueResolveDateLibrary, AntDesignVueResolver, AntDesignVueResolverOptions, ArcoResolver, ArcoResolverOptions, BootstrapVue3Resolver, BootstrapVueNextResolver, BootstrapVueResolver, BootstrapVueResolverOptions, DevResolverOptions, DevUiResolver, DisallowResolveIconOption, ElementPlusResolver, ElementPlusResolverOptions, HeadlessUiResolver, HeadlessUiResolverOptions, IduxResolver, IduxResolverOptions, InklineResolver, IonicBuiltInComponents, IonicResolver, LayuiVueResolver, LayuiVueResolverOptions, NaiveUiResolver, PrimeVueResolver, PrimeVueResolverOptions, QuasarResolver, ResolveIconsOption, TDesignResolver, TDesignResolverOptions, VantResolver, VantResolverOptions, VarletUIResolver, VarletUIResolverOptions, VeuiResolver, VeuiResolverOptions, ViewUiResolver, VueUseComponentsResolver, VueUseDirectiveResolver, Vuetify3Resolver, VuetifyResolver, getResolved };
|