@fangzhongya/vue-components 0.1.12 → 0.1.13
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/dist/archive.cjs +2 -2
- package/dist/archive.js +1 -1
- package/dist/{chunk-54PWFLZL.cjs → chunk-E6JBPDAV.cjs} +6 -6
- package/dist/{chunk-B2WZS7UJ.js → chunk-FTUTZVMI.js} +6 -6
- package/dist/{chunk-EGGSFBCY.cjs → chunk-IRJC3ATE.cjs} +2 -2
- package/dist/{chunk-TI5TOZLP.js → chunk-ZUVG3KIS.js} +1 -1
- package/dist/component.cjs +2 -2
- package/dist/component.js +1 -1
- package/dist/config.d.cts +3 -3
- package/dist/config.d.ts +3 -3
- package/dist/index.cjs +4 -4
- package/dist/index.js +2 -2
- package/dist/resolver.cjs +3 -3
- package/dist/resolver.js +2 -2
- package/package.json +1 -1
package/dist/archive.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkE6JBPDAVcjs = require('./chunk-E6JBPDAV.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkUNBQUEQ4cjs = require('./chunk-UNBQUEQ4.cjs');
|
|
@@ -300,7 +300,7 @@ function setJson(obj) {
|
|
|
300
300
|
}
|
|
301
301
|
function ComponentsResolverArchive(config2 = {}) {
|
|
302
302
|
const configs = _chunkM6Y4OKJRcjs.unmergeObject.call(void 0, _chunkUNBQUEQ4cjs.config, archiveConfig, 2, true);
|
|
303
|
-
const fangComp = new (0,
|
|
303
|
+
const fangComp = new (0, _chunkE6JBPDAVcjs.component_default)(_chunkM6Y4OKJRcjs.unmergeObject.call(void 0, configs, config2, 1));
|
|
304
304
|
setJson(fangComp.config);
|
|
305
305
|
return [
|
|
306
306
|
{
|
package/dist/archive.js
CHANGED
|
@@ -336,10 +336,10 @@ var FangComponent = class {
|
|
|
336
336
|
const arr = this.#getNames()(name, type, this.config);
|
|
337
337
|
const as = [];
|
|
338
338
|
if (type == "directive") {
|
|
339
|
-
const isMatchurl = this.config.
|
|
339
|
+
const isMatchurl = this.config.isMatchDir;
|
|
340
340
|
if (isMatchurl) {
|
|
341
341
|
_optionalChain([this, 'access', _10 => _10.#dirUrls, 'optionalAccess', _11 => _11.forEach, 'call', _12 => _12((key) => {
|
|
342
|
-
if (isMatchurl(key, arr, this.config)) {
|
|
342
|
+
if (isMatchurl(key, name, arr, this.config)) {
|
|
343
343
|
as.push(key);
|
|
344
344
|
}
|
|
345
345
|
})]);
|
|
@@ -356,10 +356,10 @@ var FangComponent = class {
|
|
|
356
356
|
})]);
|
|
357
357
|
}
|
|
358
358
|
} else if (type == "sideEffects") {
|
|
359
|
-
const isMatchurl = this.config.
|
|
359
|
+
const isMatchurl = this.config.isMatchCss;
|
|
360
360
|
if (isMatchurl) {
|
|
361
361
|
_optionalChain([this, 'access', _16 => _16.#dirUrls, 'optionalAccess', _17 => _17.forEach, 'call', _18 => _18((key) => {
|
|
362
|
-
if (isMatchurl(key, arr, this.config)) {
|
|
362
|
+
if (isMatchurl(key, name, arr, this.config)) {
|
|
363
363
|
as.push(key);
|
|
364
364
|
}
|
|
365
365
|
})]);
|
|
@@ -376,10 +376,10 @@ var FangComponent = class {
|
|
|
376
376
|
})]);
|
|
377
377
|
}
|
|
378
378
|
} else {
|
|
379
|
-
const isMatchurl = this.config.
|
|
379
|
+
const isMatchurl = this.config.isMatch;
|
|
380
380
|
if (isMatchurl) {
|
|
381
381
|
_optionalChain([this, 'access', _22 => _22.#dirUrls, 'optionalAccess', _23 => _23.forEach, 'call', _24 => _24((key) => {
|
|
382
|
-
if (isMatchurl(key, arr, this.config)) {
|
|
382
|
+
if (isMatchurl(key, name, arr, this.config)) {
|
|
383
383
|
as.push(key);
|
|
384
384
|
}
|
|
385
385
|
})]);
|
|
@@ -336,10 +336,10 @@ var FangComponent = class {
|
|
|
336
336
|
const arr = this.#getNames()(name, type, this.config);
|
|
337
337
|
const as = [];
|
|
338
338
|
if (type == "directive") {
|
|
339
|
-
const isMatchurl = this.config.
|
|
339
|
+
const isMatchurl = this.config.isMatchDir;
|
|
340
340
|
if (isMatchurl) {
|
|
341
341
|
this.#dirUrls?.forEach((key) => {
|
|
342
|
-
if (isMatchurl(key, arr, this.config)) {
|
|
342
|
+
if (isMatchurl(key, name, arr, this.config)) {
|
|
343
343
|
as.push(key);
|
|
344
344
|
}
|
|
345
345
|
});
|
|
@@ -356,10 +356,10 @@ var FangComponent = class {
|
|
|
356
356
|
});
|
|
357
357
|
}
|
|
358
358
|
} else if (type == "sideEffects") {
|
|
359
|
-
const isMatchurl = this.config.
|
|
359
|
+
const isMatchurl = this.config.isMatchCss;
|
|
360
360
|
if (isMatchurl) {
|
|
361
361
|
this.#dirUrls?.forEach((key) => {
|
|
362
|
-
if (isMatchurl(key, arr, this.config)) {
|
|
362
|
+
if (isMatchurl(key, name, arr, this.config)) {
|
|
363
363
|
as.push(key);
|
|
364
364
|
}
|
|
365
365
|
});
|
|
@@ -376,10 +376,10 @@ var FangComponent = class {
|
|
|
376
376
|
});
|
|
377
377
|
}
|
|
378
378
|
} else {
|
|
379
|
-
const isMatchurl = this.config.
|
|
379
|
+
const isMatchurl = this.config.isMatch;
|
|
380
380
|
if (isMatchurl) {
|
|
381
381
|
this.#dirUrls?.forEach((key) => {
|
|
382
|
-
if (isMatchurl(key, arr, this.config)) {
|
|
382
|
+
if (isMatchurl(key, name, arr, this.config)) {
|
|
383
383
|
as.push(key);
|
|
384
384
|
}
|
|
385
385
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkE6JBPDAVcjs = require('./chunk-E6JBPDAV.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkUNBQUEQ4cjs = require('./chunk-UNBQUEQ4.cjs');
|
|
@@ -11,7 +11,7 @@ var _chunkM6Y4OKJRcjs = require('./chunk-M6Y4OKJR.cjs');
|
|
|
11
11
|
// packages/resolver.ts
|
|
12
12
|
function ComponentsResolver(config2 = {}) {
|
|
13
13
|
const configs = _chunkM6Y4OKJRcjs.unmergeObject.call(void 0, _chunkUNBQUEQ4cjs.config, config2, 1);
|
|
14
|
-
const fangComp = new (0,
|
|
14
|
+
const fangComp = new (0, _chunkE6JBPDAVcjs.component_default)(configs);
|
|
15
15
|
return [
|
|
16
16
|
{
|
|
17
17
|
type: "component",
|
package/dist/component.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkE6JBPDAVcjs = require('./chunk-E6JBPDAV.cjs');
|
|
4
4
|
require('./chunk-M6Y4OKJR.cjs');
|
|
5
5
|
require('./chunk-XMZBDIKY.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.default =
|
|
8
|
+
exports.default = _chunkE6JBPDAVcjs.component_default;
|
package/dist/component.js
CHANGED
package/dist/config.d.cts
CHANGED
|
@@ -85,15 +85,15 @@ interface Config {
|
|
|
85
85
|
/**
|
|
86
86
|
* 获取匹配数组
|
|
87
87
|
*/
|
|
88
|
-
|
|
88
|
+
isMatch?(url: string, naem: string, names?: Array<string>, config?: Config): boolean;
|
|
89
89
|
/**
|
|
90
90
|
* 获取指令匹配数组
|
|
91
91
|
*/
|
|
92
|
-
|
|
92
|
+
isMatchDir?(url: string, naem: string, names?: Array<string>, config?: Config): boolean;
|
|
93
93
|
/**
|
|
94
94
|
* 获取样式匹配数组
|
|
95
95
|
*/
|
|
96
|
-
|
|
96
|
+
isMatchCss?(url: string, naem: string, names?: Array<string>, config?: Config): boolean;
|
|
97
97
|
/**
|
|
98
98
|
* 多个时获取那个
|
|
99
99
|
*/
|
package/dist/config.d.ts
CHANGED
|
@@ -85,15 +85,15 @@ interface Config {
|
|
|
85
85
|
/**
|
|
86
86
|
* 获取匹配数组
|
|
87
87
|
*/
|
|
88
|
-
|
|
88
|
+
isMatch?(url: string, naem: string, names?: Array<string>, config?: Config): boolean;
|
|
89
89
|
/**
|
|
90
90
|
* 获取指令匹配数组
|
|
91
91
|
*/
|
|
92
|
-
|
|
92
|
+
isMatchDir?(url: string, naem: string, names?: Array<string>, config?: Config): boolean;
|
|
93
93
|
/**
|
|
94
94
|
* 获取样式匹配数组
|
|
95
95
|
*/
|
|
96
|
-
|
|
96
|
+
isMatchCss?(url: string, naem: string, names?: Array<string>, config?: Config): boolean;
|
|
97
97
|
/**
|
|
98
98
|
* 多个时获取那个
|
|
99
99
|
*/
|
package/dist/index.cjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkIRJC3ATEcjs = require('./chunk-IRJC3ATE.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkE6JBPDAVcjs = require('./chunk-E6JBPDAV.cjs');
|
|
7
7
|
require('./chunk-UNBQUEQ4.cjs');
|
|
8
8
|
require('./chunk-M6Y4OKJR.cjs');
|
|
9
9
|
require('./chunk-XMZBDIKY.cjs');
|
|
10
10
|
|
|
11
11
|
// packages/index.ts
|
|
12
|
-
var FangComponent = class extends
|
|
12
|
+
var FangComponent = class extends _chunkE6JBPDAVcjs.component_default {
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
exports.ComponentsResolver =
|
|
17
|
+
exports.ComponentsResolver = _chunkIRJC3ATEcjs.ComponentsResolver; exports.FangComponent = FangComponent;
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ComponentsResolver
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZUVG3KIS.js";
|
|
4
4
|
import {
|
|
5
5
|
component_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FTUTZVMI.js";
|
|
7
7
|
import "./chunk-DURXCSNX.js";
|
|
8
8
|
import "./chunk-ZRYXYGML.js";
|
|
9
9
|
import "./chunk-BDZPEKUD.js";
|
package/dist/resolver.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var _chunkIRJC3ATEcjs = require('./chunk-IRJC3ATE.cjs');
|
|
4
|
+
require('./chunk-E6JBPDAV.cjs');
|
|
5
5
|
require('./chunk-UNBQUEQ4.cjs');
|
|
6
6
|
require('./chunk-M6Y4OKJR.cjs');
|
|
7
7
|
require('./chunk-XMZBDIKY.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.ComponentsResolver =
|
|
10
|
+
exports.ComponentsResolver = _chunkIRJC3ATEcjs.ComponentsResolver;
|
package/dist/resolver.js
CHANGED