yuang-framework-ui-pc 1.1.81 → 1.1.83
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/es/utils/resolvers.js +3 -3
- package/lib/utils/resolvers.cjs +3 -3
- package/package.json +1 -1
package/es/utils/resolvers.js
CHANGED
|
@@ -26,9 +26,9 @@ function EleAdminResolver(options) {
|
|
|
26
26
|
resolve: (name) => {
|
|
27
27
|
var _a;
|
|
28
28
|
const { path, exclude } = options || {};
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
const isMatch = (name.match(/^Ele[A-Z]/) || name.match(/^Yu[A-Z]/)) && !((_a = exclude == null ? void 0 : exclude.includes) == null ? void 0 : _a.call(exclude, name));
|
|
30
|
+
console.log("按需加载插件:" + name + ",是否匹配:" + isMatch);
|
|
31
|
+
if (isMatch) {
|
|
32
32
|
const packageName = "yuang-framework-ui-pc";
|
|
33
33
|
const namePath = name.replace(/([A-Z])/g, " $1").trim().split(" ").join("-").toLowerCase();
|
|
34
34
|
const stylePath = getStylePath(namePath, packageName, path);
|
package/lib/utils/resolvers.cjs
CHANGED
|
@@ -28,9 +28,9 @@ function EleAdminResolver(options) {
|
|
|
28
28
|
resolve: (name) => {
|
|
29
29
|
var _a;
|
|
30
30
|
const { path, exclude } = options || {};
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
const isMatch = (name.match(/^Ele[A-Z]/) || name.match(/^Yu[A-Z]/)) && !((_a = exclude == null ? void 0 : exclude.includes) == null ? void 0 : _a.call(exclude, name));
|
|
32
|
+
console.log("按需加载插件:" + name + ",是否匹配:" + isMatch);
|
|
33
|
+
if (isMatch) {
|
|
34
34
|
const packageName = "yuang-framework-ui-pc";
|
|
35
35
|
const namePath = name.replace(/([A-Z])/g, " $1").trim().split(" ").join("-").toLowerCase();
|
|
36
36
|
const stylePath = getStylePath(namePath, packageName, path);
|