@fangzhongya/vue-components 0.1.16 → 0.1.18
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-7K5U3MOW.cjs → chunk-5ZYL6JOZ.cjs} +44 -36
- package/dist/{chunk-BDMSDAKA.cjs → chunk-F2PKOFAZ.cjs} +2 -2
- package/dist/{chunk-CJ6DFEE5.js → chunk-QJWZJHFG.js} +44 -36
- package/dist/{chunk-G3O7YOOW.js → chunk-VP5RIE57.js} +1 -1
- package/dist/component.cjs +2 -2
- package/dist/component.js +1 -1
- 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.d.cts +0 -10
- package/dist/archive.d.ts +0 -10
- package/dist/component.d.cts +0 -22
- package/dist/component.d.ts +0 -22
- package/dist/config.d.cts +0 -138
- package/dist/config.d.ts +0 -138
- package/dist/index.d.cts +0 -9
- package/dist/index.d.ts +0 -9
- package/dist/library.d.cts +0 -14
- package/dist/library.d.ts +0 -14
- package/dist/resolver.d.cts +0 -10
- package/dist/resolver.d.ts +0 -10
- package/dist/util.d.cts +0 -5
- package/dist/util.d.ts +0 -5
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 _chunk5ZYL6JOZcjs = require('./chunk-5ZYL6JOZ.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, _chunk5ZYL6JOZcjs.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
|
@@ -133,6 +133,17 @@ var FangComponent = class {
|
|
|
133
133
|
};
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
|
+
#getMatchsUrl(urls, name, type, config) {
|
|
137
|
+
const arr = this.#getNames()(name, type, config);
|
|
138
|
+
const ms = [];
|
|
139
|
+
const m = config.matchextss;
|
|
140
|
+
if (m) {
|
|
141
|
+
ms.push(m);
|
|
142
|
+
}
|
|
143
|
+
return urls.filter((v) => {
|
|
144
|
+
return isUrlsMatchi(v, arr, ms);
|
|
145
|
+
})[0] || "";
|
|
146
|
+
}
|
|
136
147
|
#isMatchFile(url, arr, matchexts, nomatchexts) {
|
|
137
148
|
const is = isUrlsMatchi(url, arr, matchexts);
|
|
138
149
|
if (is && nomatchexts && nomatchexts.length > 0) {
|
|
@@ -407,58 +418,55 @@ var FangComponent = class {
|
|
|
407
418
|
#getCorrespondUrl(urls, name, type) {
|
|
408
419
|
const arr = this.#getNames()(name, type, this.config);
|
|
409
420
|
if (type == "directive") {
|
|
421
|
+
const vs = this.#dirUrls || [];
|
|
410
422
|
const getUrl = this.config.getMatchDirs;
|
|
411
423
|
if (getUrl) {
|
|
412
|
-
return getUrl(
|
|
424
|
+
return getUrl(vs, name, type, this.config);
|
|
413
425
|
} else {
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
ms.push(m);
|
|
419
|
-
}
|
|
420
|
-
return urls.filter((key) => {
|
|
421
|
-
return isUrlsMatchi(key, arr, ms);
|
|
422
|
-
})[0];
|
|
423
|
-
} else {
|
|
424
|
-
return;
|
|
426
|
+
const ms = [];
|
|
427
|
+
const m = this.config.matchDirextss;
|
|
428
|
+
if (m) {
|
|
429
|
+
ms.push(m);
|
|
425
430
|
}
|
|
431
|
+
return urls.filter((key) => {
|
|
432
|
+
return isUrlsMatchi(key, arr, ms);
|
|
433
|
+
})[0] || vs.filter((key) => {
|
|
434
|
+
return isUrlsMatchi(key, arr, ms);
|
|
435
|
+
})[0];
|
|
426
436
|
}
|
|
427
437
|
} else if (type == "sideEffects") {
|
|
438
|
+
const vs = this.#cssUrls || [];
|
|
428
439
|
const getUrl = this.config.getMatchCsss;
|
|
429
440
|
if (getUrl) {
|
|
430
|
-
return getUrl(
|
|
441
|
+
return getUrl(vs, name, type, this.config);
|
|
431
442
|
} else {
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
ms.push(m);
|
|
437
|
-
}
|
|
438
|
-
return urls.filter((key) => {
|
|
439
|
-
return isUrlsMatchi(key, arr, ms);
|
|
440
|
-
})[0];
|
|
441
|
-
} else {
|
|
442
|
-
return;
|
|
443
|
+
const ms = [];
|
|
444
|
+
const m = this.config.matchCssss;
|
|
445
|
+
if (m) {
|
|
446
|
+
ms.push(m);
|
|
443
447
|
}
|
|
448
|
+
return urls.filter((key) => {
|
|
449
|
+
return isUrlsMatchi(key, arr, ms);
|
|
450
|
+
})[0] || vs.filter((key) => {
|
|
451
|
+
return isUrlsMatchi(key, arr, ms);
|
|
452
|
+
})[0];
|
|
444
453
|
}
|
|
445
454
|
} else {
|
|
455
|
+
const vs = this.#comUrls || [];
|
|
446
456
|
const getUrl = this.config.getMatchs;
|
|
447
457
|
if (getUrl) {
|
|
448
|
-
return getUrl(
|
|
458
|
+
return getUrl(vs, name, type, this.config);
|
|
449
459
|
} else {
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
ms.push(m);
|
|
455
|
-
}
|
|
456
|
-
return urls.filter((key) => {
|
|
457
|
-
return isUrlsMatchi(key, arr, ms);
|
|
458
|
-
})[0];
|
|
459
|
-
} else {
|
|
460
|
-
return;
|
|
460
|
+
const ms = [];
|
|
461
|
+
const m = this.config.matchextss;
|
|
462
|
+
if (m) {
|
|
463
|
+
ms.push(m);
|
|
461
464
|
}
|
|
465
|
+
return urls.filter((key) => {
|
|
466
|
+
return isUrlsMatchi(key, arr, ms);
|
|
467
|
+
})[0] || vs.filter((key) => {
|
|
468
|
+
return isUrlsMatchi(key, arr, ms);
|
|
469
|
+
})[0];
|
|
462
470
|
}
|
|
463
471
|
}
|
|
464
472
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk5ZYL6JOZcjs = require('./chunk-5ZYL6JOZ.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, _chunk5ZYL6JOZcjs.component_default)(configs);
|
|
15
15
|
return [
|
|
16
16
|
{
|
|
17
17
|
type: "component",
|
|
@@ -133,6 +133,17 @@ var FangComponent = class {
|
|
|
133
133
|
};
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
|
+
#getMatchsUrl(urls, name, type, config) {
|
|
137
|
+
const arr = this.#getNames()(name, type, config);
|
|
138
|
+
const ms = [];
|
|
139
|
+
const m = config.matchextss;
|
|
140
|
+
if (m) {
|
|
141
|
+
ms.push(m);
|
|
142
|
+
}
|
|
143
|
+
return urls.filter((v) => {
|
|
144
|
+
return isUrlsMatchi(v, arr, ms);
|
|
145
|
+
})[0] || "";
|
|
146
|
+
}
|
|
136
147
|
#isMatchFile(url, arr, matchexts, nomatchexts) {
|
|
137
148
|
const is = isUrlsMatchi(url, arr, matchexts);
|
|
138
149
|
if (is && nomatchexts && nomatchexts.length > 0) {
|
|
@@ -407,58 +418,55 @@ var FangComponent = class {
|
|
|
407
418
|
#getCorrespondUrl(urls, name, type) {
|
|
408
419
|
const arr = this.#getNames()(name, type, this.config);
|
|
409
420
|
if (type == "directive") {
|
|
421
|
+
const vs = this.#dirUrls || [];
|
|
410
422
|
const getUrl = this.config.getMatchDirs;
|
|
411
423
|
if (getUrl) {
|
|
412
|
-
return getUrl(
|
|
424
|
+
return getUrl(vs, name, type, this.config);
|
|
413
425
|
} else {
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
ms.push(m);
|
|
419
|
-
}
|
|
420
|
-
return urls.filter((key) => {
|
|
421
|
-
return isUrlsMatchi(key, arr, ms);
|
|
422
|
-
})[0];
|
|
423
|
-
} else {
|
|
424
|
-
return;
|
|
426
|
+
const ms = [];
|
|
427
|
+
const m = this.config.matchDirextss;
|
|
428
|
+
if (m) {
|
|
429
|
+
ms.push(m);
|
|
425
430
|
}
|
|
431
|
+
return urls.filter((key) => {
|
|
432
|
+
return isUrlsMatchi(key, arr, ms);
|
|
433
|
+
})[0] || vs.filter((key) => {
|
|
434
|
+
return isUrlsMatchi(key, arr, ms);
|
|
435
|
+
})[0];
|
|
426
436
|
}
|
|
427
437
|
} else if (type == "sideEffects") {
|
|
438
|
+
const vs = this.#cssUrls || [];
|
|
428
439
|
const getUrl = this.config.getMatchCsss;
|
|
429
440
|
if (getUrl) {
|
|
430
|
-
return getUrl(
|
|
441
|
+
return getUrl(vs, name, type, this.config);
|
|
431
442
|
} else {
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
ms.push(m);
|
|
437
|
-
}
|
|
438
|
-
return urls.filter((key) => {
|
|
439
|
-
return isUrlsMatchi(key, arr, ms);
|
|
440
|
-
})[0];
|
|
441
|
-
} else {
|
|
442
|
-
return;
|
|
443
|
+
const ms = [];
|
|
444
|
+
const m = this.config.matchCssss;
|
|
445
|
+
if (m) {
|
|
446
|
+
ms.push(m);
|
|
443
447
|
}
|
|
448
|
+
return urls.filter((key) => {
|
|
449
|
+
return isUrlsMatchi(key, arr, ms);
|
|
450
|
+
})[0] || vs.filter((key) => {
|
|
451
|
+
return isUrlsMatchi(key, arr, ms);
|
|
452
|
+
})[0];
|
|
444
453
|
}
|
|
445
454
|
} else {
|
|
455
|
+
const vs = this.#comUrls || [];
|
|
446
456
|
const getUrl = this.config.getMatchs;
|
|
447
457
|
if (getUrl) {
|
|
448
|
-
return getUrl(
|
|
458
|
+
return getUrl(vs, name, type, this.config);
|
|
449
459
|
} else {
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
ms.push(m);
|
|
455
|
-
}
|
|
456
|
-
return urls.filter((key) => {
|
|
457
|
-
return isUrlsMatchi(key, arr, ms);
|
|
458
|
-
})[0];
|
|
459
|
-
} else {
|
|
460
|
-
return;
|
|
460
|
+
const ms = [];
|
|
461
|
+
const m = this.config.matchextss;
|
|
462
|
+
if (m) {
|
|
463
|
+
ms.push(m);
|
|
461
464
|
}
|
|
465
|
+
return urls.filter((key) => {
|
|
466
|
+
return isUrlsMatchi(key, arr, ms);
|
|
467
|
+
})[0] || vs.filter((key) => {
|
|
468
|
+
return isUrlsMatchi(key, arr, ms);
|
|
469
|
+
})[0];
|
|
462
470
|
}
|
|
463
471
|
}
|
|
464
472
|
}
|
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 _chunk5ZYL6JOZcjs = require('./chunk-5ZYL6JOZ.cjs');
|
|
4
4
|
require('./chunk-M6Y4OKJR.cjs');
|
|
5
5
|
require('./chunk-XMZBDIKY.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.default =
|
|
8
|
+
exports.default = _chunk5ZYL6JOZcjs.component_default;
|
package/dist/component.js
CHANGED
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 _chunkF2PKOFAZcjs = require('./chunk-F2PKOFAZ.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk5ZYL6JOZcjs = require('./chunk-5ZYL6JOZ.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 _chunk5ZYL6JOZcjs.component_default {
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
exports.ComponentsResolver =
|
|
17
|
+
exports.ComponentsResolver = _chunkF2PKOFAZcjs.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-VP5RIE57.js";
|
|
4
4
|
import {
|
|
5
5
|
component_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QJWZJHFG.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 _chunkF2PKOFAZcjs = require('./chunk-F2PKOFAZ.cjs');
|
|
4
|
+
require('./chunk-5ZYL6JOZ.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 = _chunkF2PKOFAZcjs.ComponentsResolver;
|
package/dist/resolver.js
CHANGED
package/package.json
CHANGED
package/dist/archive.d.cts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { FangConfig } from './config.cjs';
|
|
2
|
-
import { ComponentResolver } from 'unplugin-vue-components';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* 自动按需匹配注册
|
|
6
|
-
* @returns
|
|
7
|
-
*/
|
|
8
|
-
declare function ComponentsResolverArchive(config?: FangConfig): ComponentResolver[];
|
|
9
|
-
|
|
10
|
-
export { ComponentsResolverArchive };
|
package/dist/archive.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { FangConfig } from './config.js';
|
|
2
|
-
import { ComponentResolver } from 'unplugin-vue-components';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* 自动按需匹配注册
|
|
6
|
-
* @returns
|
|
7
|
-
*/
|
|
8
|
-
declare function ComponentsResolverArchive(config?: FangConfig): ComponentResolver[];
|
|
9
|
-
|
|
10
|
-
export { ComponentsResolverArchive };
|
package/dist/component.d.cts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { FangConfig, Config } from './config.cjs';
|
|
2
|
-
import { ComponentInfo } from 'unplugin-vue-components';
|
|
3
|
-
|
|
4
|
-
type FangComponentInfo = ComponentInfo | undefined | void;
|
|
5
|
-
type ResolveType = 'component' | 'directive' | 'sideEffects';
|
|
6
|
-
/**
|
|
7
|
-
* 自动注册组件和指令的方法
|
|
8
|
-
*/
|
|
9
|
-
declare class FangComponent {
|
|
10
|
-
#private;
|
|
11
|
-
config: FangConfig;
|
|
12
|
-
constructor(config?: Config);
|
|
13
|
-
/**
|
|
14
|
-
* 自动按需匹配注册
|
|
15
|
-
* @param {String} name 名称
|
|
16
|
-
* @param {String} type 类型
|
|
17
|
-
* @returns { Object } 注册的对象
|
|
18
|
-
*/
|
|
19
|
-
resolve(name: string, type: ResolveType): FangComponentInfo;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export { FangComponent as default };
|
package/dist/component.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { FangConfig, Config } from './config.js';
|
|
2
|
-
import { ComponentInfo } from 'unplugin-vue-components';
|
|
3
|
-
|
|
4
|
-
type FangComponentInfo = ComponentInfo | undefined | void;
|
|
5
|
-
type ResolveType = 'component' | 'directive' | 'sideEffects';
|
|
6
|
-
/**
|
|
7
|
-
* 自动注册组件和指令的方法
|
|
8
|
-
*/
|
|
9
|
-
declare class FangComponent {
|
|
10
|
-
#private;
|
|
11
|
-
config: FangConfig;
|
|
12
|
-
constructor(config?: Config);
|
|
13
|
-
/**
|
|
14
|
-
* 自动按需匹配注册
|
|
15
|
-
* @param {String} name 名称
|
|
16
|
-
* @param {String} type 类型
|
|
17
|
-
* @returns { Object } 注册的对象
|
|
18
|
-
*/
|
|
19
|
-
resolve(name: string, type: ResolveType): FangComponentInfo;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export { FangComponent as default };
|
package/dist/config.d.cts
DELETED
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
interface Config {
|
|
2
|
-
/**
|
|
3
|
-
* 自动导入的文件目录
|
|
4
|
-
*/
|
|
5
|
-
dir?: string;
|
|
6
|
-
/**
|
|
7
|
-
* 文件后缀
|
|
8
|
-
* 如果为空数组,
|
|
9
|
-
*/
|
|
10
|
-
extensions?: Array<string>;
|
|
11
|
-
/**
|
|
12
|
-
* 自己的别名
|
|
13
|
-
*/
|
|
14
|
-
alias?: string;
|
|
15
|
-
/**
|
|
16
|
-
* 通过头匹配,默认转换成 - 模式匹配的
|
|
17
|
-
* dir下面子目录来配置别名
|
|
18
|
-
* 不区分首字母大小写
|
|
19
|
-
*/
|
|
20
|
-
getAliass?: (naem: string, type: string, config: Config) => string[];
|
|
21
|
-
/**
|
|
22
|
-
* 匹配目录数组
|
|
23
|
-
* 从头开始匹配
|
|
24
|
-
*/
|
|
25
|
-
matchs?: Array<string | RegExp>;
|
|
26
|
-
/**
|
|
27
|
-
* 匹配文件路径
|
|
28
|
-
* 从尾部开始匹配
|
|
29
|
-
*/
|
|
30
|
-
matchexts?: Array<string | RegExp>;
|
|
31
|
-
/**
|
|
32
|
-
* 不匹配目录数组
|
|
33
|
-
* 从头开始匹配
|
|
34
|
-
*/
|
|
35
|
-
nomatchs?: Array<string | RegExp>;
|
|
36
|
-
/**
|
|
37
|
-
* 不匹配文件路径
|
|
38
|
-
* 从尾部开始匹配
|
|
39
|
-
*/
|
|
40
|
-
nomatchexts?: Array<string | RegExp>;
|
|
41
|
-
matchextss?: string | RegExp;
|
|
42
|
-
/**no
|
|
43
|
-
* 指令
|
|
44
|
-
*/
|
|
45
|
-
matchDirexts?: Array<string | RegExp>;
|
|
46
|
-
nomatchDirexts?: Array<string | RegExp>;
|
|
47
|
-
matchDirextss?: string | RegExp;
|
|
48
|
-
/**
|
|
49
|
-
* 样式
|
|
50
|
-
*/
|
|
51
|
-
matchCsss?: Array<string | RegExp>;
|
|
52
|
-
nomatchCsss?: Array<string | RegExp>;
|
|
53
|
-
matchCssss?: string | RegExp;
|
|
54
|
-
/**
|
|
55
|
-
* 指令文件夹名称
|
|
56
|
-
*/
|
|
57
|
-
directives?: string;
|
|
58
|
-
/**
|
|
59
|
-
* 样式文件夹名称
|
|
60
|
-
*/
|
|
61
|
-
csss?: string;
|
|
62
|
-
csssuffixs?: Array<string>;
|
|
63
|
-
/**
|
|
64
|
-
* 是否缓存
|
|
65
|
-
*/
|
|
66
|
-
isCache?: boolean;
|
|
67
|
-
/**
|
|
68
|
-
* 过滤 不匹配 通过头匹配,默认转换成 - 模式匹配的
|
|
69
|
-
* 不区分首字母大小写
|
|
70
|
-
*/
|
|
71
|
-
startss?: Array<string>;
|
|
72
|
-
/**
|
|
73
|
-
* 过滤 不匹配 全匹配 - 模式匹配的
|
|
74
|
-
* 不区分首字母大小写
|
|
75
|
-
*/
|
|
76
|
-
filtes?: Array<string>;
|
|
77
|
-
/**
|
|
78
|
-
* 匹配到的文件路径
|
|
79
|
-
*/
|
|
80
|
-
getFromName?(url: string, name: string, type: string): string;
|
|
81
|
-
/**
|
|
82
|
-
* 控制台是否输出日志
|
|
83
|
-
*/
|
|
84
|
-
log?: boolean;
|
|
85
|
-
/**
|
|
86
|
-
* 获取匹配数组
|
|
87
|
-
*/
|
|
88
|
-
isMatch?(url: string, naem: string, names?: Array<string>, config?: Config): boolean;
|
|
89
|
-
/**
|
|
90
|
-
* 获取指令匹配数组
|
|
91
|
-
*/
|
|
92
|
-
isMatchDir?(url: string, name: string, names?: Array<string>, config?: Config): boolean;
|
|
93
|
-
/**
|
|
94
|
-
* 获取样式匹配数组
|
|
95
|
-
*/
|
|
96
|
-
isMatchCss?(url: string, name: string, names?: Array<string>, config?: Config): boolean;
|
|
97
|
-
/**
|
|
98
|
-
* 多个时获取那个
|
|
99
|
-
*/
|
|
100
|
-
getMatchs?(urls: Array<string>, name: string, type: string, config?: Config): string;
|
|
101
|
-
/**
|
|
102
|
-
* 获取指令匹配数组
|
|
103
|
-
*/
|
|
104
|
-
getMatchDirs?(urls: Array<string>, name: string, type: string, config?: Config): string;
|
|
105
|
-
/**
|
|
106
|
-
* 获取样式匹配数组
|
|
107
|
-
*/
|
|
108
|
-
getMatchCsss?(urls: Array<string>, name: string, type: string, config?: Config): string;
|
|
109
|
-
}
|
|
110
|
-
interface FangConfig extends Config {
|
|
111
|
-
/**
|
|
112
|
-
* 是否去掉路径的前缀
|
|
113
|
-
*/
|
|
114
|
-
urlprefix?: boolean;
|
|
115
|
-
/**
|
|
116
|
-
* 是否生成json 配置文件
|
|
117
|
-
*/
|
|
118
|
-
isJson?: boolean;
|
|
119
|
-
/**
|
|
120
|
-
* 生成json 配置文件名称
|
|
121
|
-
*/
|
|
122
|
-
jsonName?: string;
|
|
123
|
-
/**
|
|
124
|
-
* 格式化的组件的地址
|
|
125
|
-
*/
|
|
126
|
-
urls?: Array<string>;
|
|
127
|
-
/**
|
|
128
|
-
* 格式化的指令的地址
|
|
129
|
-
*/
|
|
130
|
-
dirUrls?: Array<string>;
|
|
131
|
-
/**
|
|
132
|
-
* 格式化的样式的地址
|
|
133
|
-
*/
|
|
134
|
-
cssUrls?: Array<string>;
|
|
135
|
-
}
|
|
136
|
-
declare const config: Config;
|
|
137
|
-
|
|
138
|
-
export { type Config, type FangConfig, config };
|
package/dist/config.d.ts
DELETED
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
interface Config {
|
|
2
|
-
/**
|
|
3
|
-
* 自动导入的文件目录
|
|
4
|
-
*/
|
|
5
|
-
dir?: string;
|
|
6
|
-
/**
|
|
7
|
-
* 文件后缀
|
|
8
|
-
* 如果为空数组,
|
|
9
|
-
*/
|
|
10
|
-
extensions?: Array<string>;
|
|
11
|
-
/**
|
|
12
|
-
* 自己的别名
|
|
13
|
-
*/
|
|
14
|
-
alias?: string;
|
|
15
|
-
/**
|
|
16
|
-
* 通过头匹配,默认转换成 - 模式匹配的
|
|
17
|
-
* dir下面子目录来配置别名
|
|
18
|
-
* 不区分首字母大小写
|
|
19
|
-
*/
|
|
20
|
-
getAliass?: (naem: string, type: string, config: Config) => string[];
|
|
21
|
-
/**
|
|
22
|
-
* 匹配目录数组
|
|
23
|
-
* 从头开始匹配
|
|
24
|
-
*/
|
|
25
|
-
matchs?: Array<string | RegExp>;
|
|
26
|
-
/**
|
|
27
|
-
* 匹配文件路径
|
|
28
|
-
* 从尾部开始匹配
|
|
29
|
-
*/
|
|
30
|
-
matchexts?: Array<string | RegExp>;
|
|
31
|
-
/**
|
|
32
|
-
* 不匹配目录数组
|
|
33
|
-
* 从头开始匹配
|
|
34
|
-
*/
|
|
35
|
-
nomatchs?: Array<string | RegExp>;
|
|
36
|
-
/**
|
|
37
|
-
* 不匹配文件路径
|
|
38
|
-
* 从尾部开始匹配
|
|
39
|
-
*/
|
|
40
|
-
nomatchexts?: Array<string | RegExp>;
|
|
41
|
-
matchextss?: string | RegExp;
|
|
42
|
-
/**no
|
|
43
|
-
* 指令
|
|
44
|
-
*/
|
|
45
|
-
matchDirexts?: Array<string | RegExp>;
|
|
46
|
-
nomatchDirexts?: Array<string | RegExp>;
|
|
47
|
-
matchDirextss?: string | RegExp;
|
|
48
|
-
/**
|
|
49
|
-
* 样式
|
|
50
|
-
*/
|
|
51
|
-
matchCsss?: Array<string | RegExp>;
|
|
52
|
-
nomatchCsss?: Array<string | RegExp>;
|
|
53
|
-
matchCssss?: string | RegExp;
|
|
54
|
-
/**
|
|
55
|
-
* 指令文件夹名称
|
|
56
|
-
*/
|
|
57
|
-
directives?: string;
|
|
58
|
-
/**
|
|
59
|
-
* 样式文件夹名称
|
|
60
|
-
*/
|
|
61
|
-
csss?: string;
|
|
62
|
-
csssuffixs?: Array<string>;
|
|
63
|
-
/**
|
|
64
|
-
* 是否缓存
|
|
65
|
-
*/
|
|
66
|
-
isCache?: boolean;
|
|
67
|
-
/**
|
|
68
|
-
* 过滤 不匹配 通过头匹配,默认转换成 - 模式匹配的
|
|
69
|
-
* 不区分首字母大小写
|
|
70
|
-
*/
|
|
71
|
-
startss?: Array<string>;
|
|
72
|
-
/**
|
|
73
|
-
* 过滤 不匹配 全匹配 - 模式匹配的
|
|
74
|
-
* 不区分首字母大小写
|
|
75
|
-
*/
|
|
76
|
-
filtes?: Array<string>;
|
|
77
|
-
/**
|
|
78
|
-
* 匹配到的文件路径
|
|
79
|
-
*/
|
|
80
|
-
getFromName?(url: string, name: string, type: string): string;
|
|
81
|
-
/**
|
|
82
|
-
* 控制台是否输出日志
|
|
83
|
-
*/
|
|
84
|
-
log?: boolean;
|
|
85
|
-
/**
|
|
86
|
-
* 获取匹配数组
|
|
87
|
-
*/
|
|
88
|
-
isMatch?(url: string, naem: string, names?: Array<string>, config?: Config): boolean;
|
|
89
|
-
/**
|
|
90
|
-
* 获取指令匹配数组
|
|
91
|
-
*/
|
|
92
|
-
isMatchDir?(url: string, name: string, names?: Array<string>, config?: Config): boolean;
|
|
93
|
-
/**
|
|
94
|
-
* 获取样式匹配数组
|
|
95
|
-
*/
|
|
96
|
-
isMatchCss?(url: string, name: string, names?: Array<string>, config?: Config): boolean;
|
|
97
|
-
/**
|
|
98
|
-
* 多个时获取那个
|
|
99
|
-
*/
|
|
100
|
-
getMatchs?(urls: Array<string>, name: string, type: string, config?: Config): string;
|
|
101
|
-
/**
|
|
102
|
-
* 获取指令匹配数组
|
|
103
|
-
*/
|
|
104
|
-
getMatchDirs?(urls: Array<string>, name: string, type: string, config?: Config): string;
|
|
105
|
-
/**
|
|
106
|
-
* 获取样式匹配数组
|
|
107
|
-
*/
|
|
108
|
-
getMatchCsss?(urls: Array<string>, name: string, type: string, config?: Config): string;
|
|
109
|
-
}
|
|
110
|
-
interface FangConfig extends Config {
|
|
111
|
-
/**
|
|
112
|
-
* 是否去掉路径的前缀
|
|
113
|
-
*/
|
|
114
|
-
urlprefix?: boolean;
|
|
115
|
-
/**
|
|
116
|
-
* 是否生成json 配置文件
|
|
117
|
-
*/
|
|
118
|
-
isJson?: boolean;
|
|
119
|
-
/**
|
|
120
|
-
* 生成json 配置文件名称
|
|
121
|
-
*/
|
|
122
|
-
jsonName?: string;
|
|
123
|
-
/**
|
|
124
|
-
* 格式化的组件的地址
|
|
125
|
-
*/
|
|
126
|
-
urls?: Array<string>;
|
|
127
|
-
/**
|
|
128
|
-
* 格式化的指令的地址
|
|
129
|
-
*/
|
|
130
|
-
dirUrls?: Array<string>;
|
|
131
|
-
/**
|
|
132
|
-
* 格式化的样式的地址
|
|
133
|
-
*/
|
|
134
|
-
cssUrls?: Array<string>;
|
|
135
|
-
}
|
|
136
|
-
declare const config: Config;
|
|
137
|
-
|
|
138
|
-
export { type Config, type FangConfig, config };
|
package/dist/index.d.cts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import FangComponent$1 from './component.cjs';
|
|
2
|
-
export { Config } from './config.cjs';
|
|
3
|
-
export { ComponentsResolver } from './resolver.cjs';
|
|
4
|
-
import 'unplugin-vue-components';
|
|
5
|
-
|
|
6
|
-
declare class FangComponent extends FangComponent$1 {
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export { FangComponent };
|
package/dist/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import FangComponent$1 from './component.js';
|
|
2
|
-
export { Config } from './config.js';
|
|
3
|
-
export { ComponentsResolver } from './resolver.js';
|
|
4
|
-
import 'unplugin-vue-components';
|
|
5
|
-
|
|
6
|
-
declare class FangComponent extends FangComponent$1 {
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export { FangComponent };
|
package/dist/library.d.cts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ComponentResolveResult, ComponentResolver } from 'unplugin-vue-components';
|
|
2
|
-
|
|
3
|
-
type Config = {
|
|
4
|
-
prefix: string;
|
|
5
|
-
alias?: string;
|
|
6
|
-
getFrom?(mc: string, type: string | number): ComponentResolveResult;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* 自动按需匹配注册
|
|
10
|
-
* @returns
|
|
11
|
-
*/
|
|
12
|
-
declare function FangLibResolver(config: Config): ComponentResolver[];
|
|
13
|
-
|
|
14
|
-
export { FangLibResolver };
|
package/dist/library.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ComponentResolveResult, ComponentResolver } from 'unplugin-vue-components';
|
|
2
|
-
|
|
3
|
-
type Config = {
|
|
4
|
-
prefix: string;
|
|
5
|
-
alias?: string;
|
|
6
|
-
getFrom?(mc: string, type: string | number): ComponentResolveResult;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* 自动按需匹配注册
|
|
10
|
-
* @returns
|
|
11
|
-
*/
|
|
12
|
-
declare function FangLibResolver(config: Config): ComponentResolver[];
|
|
13
|
-
|
|
14
|
-
export { FangLibResolver };
|
package/dist/resolver.d.cts
DELETED
package/dist/resolver.d.ts
DELETED
package/dist/util.d.cts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { styleLog } from '@fangzhongya/utils/log/styleLog';
|
|
2
|
-
export { unmergeObject } from '@fangzhongya/utils/basic/object/unmergeObject';
|
|
3
|
-
export { getComponentNames } from '@fangzhongya/utils/name/getComponentNames';
|
|
4
|
-
export { humpToLine } from '@fangzhongya/utils/name/humpToLine';
|
|
5
|
-
export { firstUpper } from '@fangzhongya/utils/basic/string/firstUpper';
|
package/dist/util.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { styleLog } from '@fangzhongya/utils/log/styleLog';
|
|
2
|
-
export { unmergeObject } from '@fangzhongya/utils/basic/object/unmergeObject';
|
|
3
|
-
export { getComponentNames } from '@fangzhongya/utils/name/getComponentNames';
|
|
4
|
-
export { humpToLine } from '@fangzhongya/utils/name/humpToLine';
|
|
5
|
-
export { firstUpper } from '@fangzhongya/utils/basic/string/firstUpper';
|