unplugin-vue-components 0.17.14 → 0.17.15
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 +2 -1
- package/dist/resolvers.d.ts +5 -1
- package/dist/resolvers.js +6 -4
- package/dist/resolvers.mjs +6 -4
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/resolvers.d.ts
CHANGED
|
@@ -72,6 +72,10 @@ interface ElementPlusResolverOptions {
|
|
|
72
72
|
* @default true
|
|
73
73
|
*/
|
|
74
74
|
directives?: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* exclude component name, if match do not resolve the name
|
|
77
|
+
*/
|
|
78
|
+
exclude?: RegExp;
|
|
75
79
|
}
|
|
76
80
|
/**
|
|
77
81
|
* Resolver for Element Plus
|
|
@@ -114,7 +118,7 @@ interface HeadlessUiResolverOptions {
|
|
|
114
118
|
*
|
|
115
119
|
* @link https://github.com/tailwindlabs/headlessui
|
|
116
120
|
*/
|
|
117
|
-
declare function HeadlessUiResolver(
|
|
121
|
+
declare function HeadlessUiResolver(options?: HeadlessUiResolverOptions): ComponentResolver;
|
|
118
122
|
|
|
119
123
|
interface IduxResolverOptions {
|
|
120
124
|
/**
|
package/dist/resolvers.js
CHANGED
|
@@ -1487,6 +1487,8 @@ function getSideEffects2(dirName, options) {
|
|
|
1487
1487
|
return ssr ? `${themeFolder}/el-${dirName}.css` : `${esComponentsFolder}/${dirName}/style/css`;
|
|
1488
1488
|
}
|
|
1489
1489
|
function resolveComponent(name, options) {
|
|
1490
|
+
if (options.exclude && name.match(options.exclude))
|
|
1491
|
+
return;
|
|
1490
1492
|
if (!name.match(/^El[A-Z]/))
|
|
1491
1493
|
return;
|
|
1492
1494
|
const partialName = _chunk42OWKG5Wjs.kebabCase.call(void 0, name.slice(2));
|
|
@@ -1538,7 +1540,8 @@ function ElementPlusResolver(options = {}) {
|
|
|
1538
1540
|
ssr: false,
|
|
1539
1541
|
version: await _chunk42OWKG5Wjs.getPkgVersion.call(void 0, "element-plus", "1.1.0-beta.21"),
|
|
1540
1542
|
importStyle: "css",
|
|
1541
|
-
directives: true
|
|
1543
|
+
directives: true,
|
|
1544
|
+
exclude: void 0
|
|
1542
1545
|
}, options);
|
|
1543
1546
|
return optionsResolved;
|
|
1544
1547
|
}
|
|
@@ -1638,9 +1641,8 @@ var components = [
|
|
|
1638
1641
|
"TabPanels",
|
|
1639
1642
|
"TabPanel"
|
|
1640
1643
|
];
|
|
1641
|
-
function HeadlessUiResolver({
|
|
1642
|
-
prefix: prefix2 = ""
|
|
1643
|
-
}) {
|
|
1644
|
+
function HeadlessUiResolver(options = {}) {
|
|
1645
|
+
const { prefix: prefix2 = "" } = options;
|
|
1644
1646
|
return {
|
|
1645
1647
|
type: "component",
|
|
1646
1648
|
resolve: (name) => {
|
package/dist/resolvers.mjs
CHANGED
|
@@ -1487,6 +1487,8 @@ function getSideEffects2(dirName, options) {
|
|
|
1487
1487
|
return ssr ? `${themeFolder}/el-${dirName}.css` : `${esComponentsFolder}/${dirName}/style/css`;
|
|
1488
1488
|
}
|
|
1489
1489
|
function resolveComponent(name, options) {
|
|
1490
|
+
if (options.exclude && name.match(options.exclude))
|
|
1491
|
+
return;
|
|
1490
1492
|
if (!name.match(/^El[A-Z]/))
|
|
1491
1493
|
return;
|
|
1492
1494
|
const partialName = kebabCase(name.slice(2));
|
|
@@ -1538,7 +1540,8 @@ function ElementPlusResolver(options = {}) {
|
|
|
1538
1540
|
ssr: false,
|
|
1539
1541
|
version: await getPkgVersion("element-plus", "1.1.0-beta.21"),
|
|
1540
1542
|
importStyle: "css",
|
|
1541
|
-
directives: true
|
|
1543
|
+
directives: true,
|
|
1544
|
+
exclude: void 0
|
|
1542
1545
|
}, options);
|
|
1543
1546
|
return optionsResolved;
|
|
1544
1547
|
}
|
|
@@ -1638,9 +1641,8 @@ var components = [
|
|
|
1638
1641
|
"TabPanels",
|
|
1639
1642
|
"TabPanel"
|
|
1640
1643
|
];
|
|
1641
|
-
function HeadlessUiResolver({
|
|
1642
|
-
prefix: prefix2 = ""
|
|
1643
|
-
}) {
|
|
1644
|
+
function HeadlessUiResolver(options = {}) {
|
|
1645
|
+
const { prefix: prefix2 = "" } = options;
|
|
1644
1646
|
return {
|
|
1645
1647
|
type: "component",
|
|
1646
1648
|
resolve: (name) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "unplugin-vue-components",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.15",
|
|
4
4
|
"description": "Components auto importing for Vue",
|
|
5
5
|
"homepage": "https://github.com/antfu/unplugin-vue-components",
|
|
6
6
|
"bugs": "https://github.com/antfu/unplugin-vue-components/issues",
|