@fangzhongya/vue-components 0.1.2-5 → 0.1.2-8
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 +10 -2
- package/dist/archive.cjs +26 -7
- package/dist/archive.js +22 -3
- package/dist/chunk-5AAWHGZ4.js +6063 -0
- package/dist/chunk-7GFFBDL5.cjs +6063 -0
- package/dist/chunk-A532XNIQ.cjs +38 -0
- package/dist/{chunk-CZALKJ3L.cjs → chunk-BKR5OWFT.cjs} +5 -5
- package/dist/{chunk-ZO3KTUNK.cjs → chunk-CF5VMNJF.cjs} +14 -18
- package/dist/{chunk-RQGSI7XJ.js → chunk-DPE4UUBE.js} +3 -3
- package/dist/chunk-IGEUOPSA.cjs +71 -0
- package/dist/chunk-KSHI5GQ7.js +71 -0
- package/dist/chunk-O6HOO6WA.js +38 -0
- package/dist/{chunk-FDVNT7FU.js → chunk-R4DADB6M.js} +14 -18
- package/dist/component.cjs +4 -3
- package/dist/component.js +3 -2
- package/dist/config.cjs +3 -2
- package/dist/config.js +2 -1
- package/dist/index.cjs +7 -6
- package/dist/index.js +5 -4
- package/dist/resolver.cjs +6 -5
- package/dist/resolver.js +5 -4
- package/dist/util.cjs +3 -2
- package/dist/util.js +2 -1
- package/package.json +5 -6
- package/dist/chunk-4RBBEA7Z.cjs +0 -468
- package/dist/chunk-G6YWLTEU.js +0 -468
- package/dist/chunk-PUE2ULUA.cjs +0 -22
- package/dist/chunk-SN4SJVXW.js +0 -22
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
8
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
9
|
+
}) : x)(function(x) {
|
|
10
|
+
if (typeof require !== "undefined")
|
|
11
|
+
return require.apply(this, arguments);
|
|
12
|
+
throw new Error('Dynamic require of "' + x + '" is not supported');
|
|
13
|
+
});
|
|
14
|
+
var __commonJS = (cb, mod) => function __require2() {
|
|
15
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
16
|
+
};
|
|
17
|
+
var __copyProps = (to, from, except, desc) => {
|
|
18
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
19
|
+
for (let key of __getOwnPropNames(from))
|
|
20
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
21
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
22
|
+
}
|
|
23
|
+
return to;
|
|
24
|
+
};
|
|
25
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
26
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
27
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
28
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
29
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
30
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
31
|
+
mod
|
|
32
|
+
));
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
exports.__require = __require; exports.__commonJS = __commonJS; exports.__toESM = __toESM;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk7GFFBDL5cjs = require('./chunk-7GFFBDL5.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkIGEUOPSAcjs = require('./chunk-IGEUOPSA.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkCF5VMNJFcjs = require('./chunk-CF5VMNJF.cjs');
|
|
10
10
|
|
|
11
11
|
// packages/resolver.ts
|
|
12
12
|
function ComponentsResolver(config2 = {}) {
|
|
13
|
-
const configs =
|
|
14
|
-
const fangComp = new (0,
|
|
13
|
+
const configs = _chunkCF5VMNJFcjs.unmergeObject.call(void 0, _chunkIGEUOPSAcjs.config, config2, 1);
|
|
14
|
+
const fangComp = new (0, _chunk7GFFBDL5cjs.component_default)(configs);
|
|
15
15
|
return [
|
|
16
16
|
{
|
|
17
17
|
type: "component",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }// node_modules/.pnpm/@fangzhongya+utils@0.0.7-2/node_modules/@fangzhongya/utils/dist/chunk-HVQG2IGJ.js
|
|
2
2
|
function styleLog(msg = "", obj) {
|
|
3
3
|
const arr = ["\x1B[0m"];
|
|
4
4
|
if (_optionalChain([obj, 'optionalAccess', _ => _.revert])) {
|
|
@@ -28,7 +28,7 @@ function styleLog(msg = "", obj) {
|
|
|
28
28
|
return arr.join("");
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
31
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.7-2/node_modules/@fangzhongya/utils/dist/chunk-A6J46LQK.js
|
|
32
32
|
function unmergeObject(a, b, j = 0, i) {
|
|
33
33
|
let c;
|
|
34
34
|
if (a instanceof Array) {
|
|
@@ -74,7 +74,7 @@ function unmergeObject(a, b, j = 0, i) {
|
|
|
74
74
|
return c;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
77
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.7-2/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js
|
|
78
78
|
function humpToLine(name) {
|
|
79
79
|
const reg = /(([A-Z])([^A-Z]*))/g;
|
|
80
80
|
let result;
|
|
@@ -96,35 +96,31 @@ function humpToLine(name) {
|
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
100
|
-
function
|
|
101
|
-
return str.slice(0, 1).
|
|
99
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.7-2/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js
|
|
100
|
+
function firstUpper(str) {
|
|
101
|
+
return str.slice(0, 1).toUpperCase() + str.slice(1);
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
104
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.7-2/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js
|
|
105
105
|
function lineToLargeHump(name) {
|
|
106
106
|
let arr = name.split("-");
|
|
107
107
|
arr = arr.map((vs) => {
|
|
108
|
-
return
|
|
108
|
+
return firstUpper(vs);
|
|
109
109
|
});
|
|
110
110
|
return arr.join("");
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
114
|
-
function
|
|
115
|
-
return str.slice(0, 1).
|
|
113
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.7-2/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js
|
|
114
|
+
function firstLower(str) {
|
|
115
|
+
return str.slice(0, 1).toLowerCase() + str.slice(1);
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
118
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.7-2/node_modules/@fangzhongya/utils/dist/chunk-AM67P3W7.js
|
|
119
119
|
function lineToSmallHump(name) {
|
|
120
|
-
|
|
121
|
-
arr = arr.map((vs) => {
|
|
122
|
-
return firstLower(vs);
|
|
123
|
-
});
|
|
124
|
-
return firstUpper(arr.join(""));
|
|
120
|
+
return firstLower(lineToLargeHump(name));
|
|
125
121
|
}
|
|
126
122
|
|
|
127
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
123
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.7-2/node_modules/@fangzhongya/utils/dist/chunk-MXLYIZIX.js
|
|
128
124
|
function getComponentNames(name) {
|
|
129
125
|
if (name.includes("-")) {
|
|
130
126
|
const line = humpToLine(name);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
component_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5AAWHGZ4.js";
|
|
4
4
|
import {
|
|
5
5
|
config
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KSHI5GQ7.js";
|
|
7
7
|
import {
|
|
8
8
|
unmergeObject
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-R4DADB6M.js";
|
|
10
10
|
|
|
11
11
|
// packages/resolver.ts
|
|
12
12
|
function ComponentsResolver(config2 = {}) {
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// packages/config.ts
|
|
2
|
+
var config = {
|
|
3
|
+
/**
|
|
4
|
+
* 自动导入的文件目录
|
|
5
|
+
*/
|
|
6
|
+
dir: "./src/components/",
|
|
7
|
+
/**
|
|
8
|
+
* 文件后缀
|
|
9
|
+
* 如果为空数组,
|
|
10
|
+
*/
|
|
11
|
+
extensions: ["vue"],
|
|
12
|
+
/**
|
|
13
|
+
* 自己的别名
|
|
14
|
+
*/
|
|
15
|
+
alias: "",
|
|
16
|
+
/**
|
|
17
|
+
* 只支持自己的别名组件,与子别名无关
|
|
18
|
+
*/
|
|
19
|
+
onlyAlias: false,
|
|
20
|
+
/**
|
|
21
|
+
* 通过头匹配,默认转换成 - 模式匹配的
|
|
22
|
+
* dir下面子目录来配置别名
|
|
23
|
+
* 不区分首字母大小写
|
|
24
|
+
*/
|
|
25
|
+
aliass: {},
|
|
26
|
+
/**
|
|
27
|
+
* 匹配数组
|
|
28
|
+
* '' 表示匹配当前文件名
|
|
29
|
+
*/
|
|
30
|
+
matchs: [],
|
|
31
|
+
/**
|
|
32
|
+
* 匹配文件名称和文件类型
|
|
33
|
+
*/
|
|
34
|
+
matchexts: [".vue", "/index.vue"],
|
|
35
|
+
/**
|
|
36
|
+
* 指令文件夹名称
|
|
37
|
+
*/
|
|
38
|
+
directives: "directive",
|
|
39
|
+
/**
|
|
40
|
+
* 是否缓存
|
|
41
|
+
*/
|
|
42
|
+
isCache: true,
|
|
43
|
+
/**
|
|
44
|
+
* 过滤 不匹配 通过头匹配,默认转换成 - 模式匹配的
|
|
45
|
+
* 不区分首字母大小写
|
|
46
|
+
*/
|
|
47
|
+
startss: [
|
|
48
|
+
// 'router'
|
|
49
|
+
],
|
|
50
|
+
/**
|
|
51
|
+
* 过滤 不匹配 全匹配 - 模式匹配的
|
|
52
|
+
* 不区分首字母大小写
|
|
53
|
+
*/
|
|
54
|
+
filtes: ["router-link", "router-view"],
|
|
55
|
+
/**
|
|
56
|
+
* 控制台是否输出日志
|
|
57
|
+
*/
|
|
58
|
+
log: true,
|
|
59
|
+
/**
|
|
60
|
+
* 匹配到的文件路径
|
|
61
|
+
* @param {*} url
|
|
62
|
+
*
|
|
63
|
+
*/
|
|
64
|
+
getFromName() {
|
|
65
|
+
return "default";
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
exports.config = config;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
// packages/config.ts
|
|
2
|
+
var config = {
|
|
3
|
+
/**
|
|
4
|
+
* 自动导入的文件目录
|
|
5
|
+
*/
|
|
6
|
+
dir: "./src/components/",
|
|
7
|
+
/**
|
|
8
|
+
* 文件后缀
|
|
9
|
+
* 如果为空数组,
|
|
10
|
+
*/
|
|
11
|
+
extensions: ["vue"],
|
|
12
|
+
/**
|
|
13
|
+
* 自己的别名
|
|
14
|
+
*/
|
|
15
|
+
alias: "",
|
|
16
|
+
/**
|
|
17
|
+
* 只支持自己的别名组件,与子别名无关
|
|
18
|
+
*/
|
|
19
|
+
onlyAlias: false,
|
|
20
|
+
/**
|
|
21
|
+
* 通过头匹配,默认转换成 - 模式匹配的
|
|
22
|
+
* dir下面子目录来配置别名
|
|
23
|
+
* 不区分首字母大小写
|
|
24
|
+
*/
|
|
25
|
+
aliass: {},
|
|
26
|
+
/**
|
|
27
|
+
* 匹配数组
|
|
28
|
+
* '' 表示匹配当前文件名
|
|
29
|
+
*/
|
|
30
|
+
matchs: [],
|
|
31
|
+
/**
|
|
32
|
+
* 匹配文件名称和文件类型
|
|
33
|
+
*/
|
|
34
|
+
matchexts: [".vue", "/index.vue"],
|
|
35
|
+
/**
|
|
36
|
+
* 指令文件夹名称
|
|
37
|
+
*/
|
|
38
|
+
directives: "directive",
|
|
39
|
+
/**
|
|
40
|
+
* 是否缓存
|
|
41
|
+
*/
|
|
42
|
+
isCache: true,
|
|
43
|
+
/**
|
|
44
|
+
* 过滤 不匹配 通过头匹配,默认转换成 - 模式匹配的
|
|
45
|
+
* 不区分首字母大小写
|
|
46
|
+
*/
|
|
47
|
+
startss: [
|
|
48
|
+
// 'router'
|
|
49
|
+
],
|
|
50
|
+
/**
|
|
51
|
+
* 过滤 不匹配 全匹配 - 模式匹配的
|
|
52
|
+
* 不区分首字母大小写
|
|
53
|
+
*/
|
|
54
|
+
filtes: ["router-link", "router-view"],
|
|
55
|
+
/**
|
|
56
|
+
* 控制台是否输出日志
|
|
57
|
+
*/
|
|
58
|
+
log: true,
|
|
59
|
+
/**
|
|
60
|
+
* 匹配到的文件路径
|
|
61
|
+
* @param {*} url
|
|
62
|
+
*
|
|
63
|
+
*/
|
|
64
|
+
getFromName() {
|
|
65
|
+
return "default";
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
export {
|
|
70
|
+
config
|
|
71
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
8
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
9
|
+
}) : x)(function(x) {
|
|
10
|
+
if (typeof require !== "undefined")
|
|
11
|
+
return require.apply(this, arguments);
|
|
12
|
+
throw new Error('Dynamic require of "' + x + '" is not supported');
|
|
13
|
+
});
|
|
14
|
+
var __commonJS = (cb, mod) => function __require2() {
|
|
15
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
16
|
+
};
|
|
17
|
+
var __copyProps = (to, from, except, desc) => {
|
|
18
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
19
|
+
for (let key of __getOwnPropNames(from))
|
|
20
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
21
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
22
|
+
}
|
|
23
|
+
return to;
|
|
24
|
+
};
|
|
25
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
26
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
27
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
28
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
29
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
30
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
31
|
+
mod
|
|
32
|
+
));
|
|
33
|
+
|
|
34
|
+
export {
|
|
35
|
+
__require,
|
|
36
|
+
__commonJS,
|
|
37
|
+
__toESM
|
|
38
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
1
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.7-2/node_modules/@fangzhongya/utils/dist/chunk-HVQG2IGJ.js
|
|
2
2
|
function styleLog(msg = "", obj) {
|
|
3
3
|
const arr = ["\x1B[0m"];
|
|
4
4
|
if (obj?.revert) {
|
|
@@ -28,7 +28,7 @@ function styleLog(msg = "", obj) {
|
|
|
28
28
|
return arr.join("");
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
31
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.7-2/node_modules/@fangzhongya/utils/dist/chunk-A6J46LQK.js
|
|
32
32
|
function unmergeObject(a, b, j = 0, i) {
|
|
33
33
|
let c;
|
|
34
34
|
if (a instanceof Array) {
|
|
@@ -74,7 +74,7 @@ function unmergeObject(a, b, j = 0, i) {
|
|
|
74
74
|
return c;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
77
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.7-2/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js
|
|
78
78
|
function humpToLine(name) {
|
|
79
79
|
const reg = /(([A-Z])([^A-Z]*))/g;
|
|
80
80
|
let result;
|
|
@@ -96,35 +96,31 @@ function humpToLine(name) {
|
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
100
|
-
function
|
|
101
|
-
return str.slice(0, 1).
|
|
99
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.7-2/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js
|
|
100
|
+
function firstUpper(str) {
|
|
101
|
+
return str.slice(0, 1).toUpperCase() + str.slice(1);
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
104
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.7-2/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js
|
|
105
105
|
function lineToLargeHump(name) {
|
|
106
106
|
let arr = name.split("-");
|
|
107
107
|
arr = arr.map((vs) => {
|
|
108
|
-
return
|
|
108
|
+
return firstUpper(vs);
|
|
109
109
|
});
|
|
110
110
|
return arr.join("");
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
114
|
-
function
|
|
115
|
-
return str.slice(0, 1).
|
|
113
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.7-2/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js
|
|
114
|
+
function firstLower(str) {
|
|
115
|
+
return str.slice(0, 1).toLowerCase() + str.slice(1);
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
118
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.7-2/node_modules/@fangzhongya/utils/dist/chunk-AM67P3W7.js
|
|
119
119
|
function lineToSmallHump(name) {
|
|
120
|
-
|
|
121
|
-
arr = arr.map((vs) => {
|
|
122
|
-
return firstLower(vs);
|
|
123
|
-
});
|
|
124
|
-
return firstUpper(arr.join(""));
|
|
120
|
+
return firstLower(lineToLargeHump(name));
|
|
125
121
|
}
|
|
126
122
|
|
|
127
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
123
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.7-2/node_modules/@fangzhongya/utils/dist/chunk-MXLYIZIX.js
|
|
128
124
|
function getComponentNames(name) {
|
|
129
125
|
if (name.includes("-")) {
|
|
130
126
|
const line = humpToLine(name);
|
package/dist/component.cjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var _chunk7GFFBDL5cjs = require('./chunk-7GFFBDL5.cjs');
|
|
4
|
+
require('./chunk-CF5VMNJF.cjs');
|
|
5
|
+
require('./chunk-A532XNIQ.cjs');
|
|
5
6
|
|
|
6
7
|
|
|
7
|
-
exports.default =
|
|
8
|
+
exports.default = _chunk7GFFBDL5cjs.component_default;
|
package/dist/component.js
CHANGED
package/dist/config.cjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkIGEUOPSAcjs = require('./chunk-IGEUOPSA.cjs');
|
|
4
|
+
require('./chunk-A532XNIQ.cjs');
|
|
4
5
|
|
|
5
6
|
|
|
6
|
-
exports.config =
|
|
7
|
+
exports.config = _chunkIGEUOPSAcjs.config;
|
package/dist/config.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkBKR5OWFTcjs = require('./chunk-BKR5OWFT.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
6
|
+
var _chunk7GFFBDL5cjs = require('./chunk-7GFFBDL5.cjs');
|
|
7
|
+
require('./chunk-IGEUOPSA.cjs');
|
|
8
|
+
require('./chunk-CF5VMNJF.cjs');
|
|
9
|
+
require('./chunk-A532XNIQ.cjs');
|
|
9
10
|
|
|
10
11
|
// packages/index.ts
|
|
11
|
-
var FangComponent = class extends
|
|
12
|
+
var FangComponent = class extends _chunk7GFFBDL5cjs.component_default {
|
|
12
13
|
};
|
|
13
14
|
|
|
14
15
|
|
|
15
16
|
|
|
16
|
-
exports.ComponentsResolver =
|
|
17
|
+
exports.ComponentsResolver = _chunkBKR5OWFTcjs.ComponentsResolver; exports.FangComponent = FangComponent;
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ComponentsResolver
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DPE4UUBE.js";
|
|
4
4
|
import {
|
|
5
5
|
component_default
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-5AAWHGZ4.js";
|
|
7
|
+
import "./chunk-KSHI5GQ7.js";
|
|
8
|
+
import "./chunk-R4DADB6M.js";
|
|
9
|
+
import "./chunk-O6HOO6WA.js";
|
|
9
10
|
|
|
10
11
|
// packages/index.ts
|
|
11
12
|
var FangComponent = class extends component_default {
|
package/dist/resolver.cjs
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
3
|
+
var _chunkBKR5OWFTcjs = require('./chunk-BKR5OWFT.cjs');
|
|
4
|
+
require('./chunk-7GFFBDL5.cjs');
|
|
5
|
+
require('./chunk-IGEUOPSA.cjs');
|
|
6
|
+
require('./chunk-CF5VMNJF.cjs');
|
|
7
|
+
require('./chunk-A532XNIQ.cjs');
|
|
7
8
|
|
|
8
9
|
|
|
9
|
-
exports.ComponentsResolver =
|
|
10
|
+
exports.ComponentsResolver = _chunkBKR5OWFTcjs.ComponentsResolver;
|
package/dist/resolver.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ComponentsResolver
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-DPE4UUBE.js";
|
|
4
|
+
import "./chunk-5AAWHGZ4.js";
|
|
5
|
+
import "./chunk-KSHI5GQ7.js";
|
|
6
|
+
import "./chunk-R4DADB6M.js";
|
|
7
|
+
import "./chunk-O6HOO6WA.js";
|
|
7
8
|
export {
|
|
8
9
|
ComponentsResolver
|
|
9
10
|
};
|
package/dist/util.cjs
CHANGED
|
@@ -4,11 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkCF5VMNJFcjs = require('./chunk-CF5VMNJF.cjs');
|
|
8
|
+
require('./chunk-A532XNIQ.cjs');
|
|
8
9
|
|
|
9
10
|
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
|
|
13
14
|
|
|
14
|
-
exports.firstUpper =
|
|
15
|
+
exports.firstUpper = _chunkCF5VMNJFcjs.firstUpper; exports.getComponentNames = _chunkCF5VMNJFcjs.getComponentNames; exports.humpToLine = _chunkCF5VMNJFcjs.humpToLine; exports.styleLog = _chunkCF5VMNJFcjs.styleLog; exports.unmergeObject = _chunkCF5VMNJFcjs.unmergeObject;
|
package/dist/util.js
CHANGED
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@fangzhongya/vue-components",
|
|
3
3
|
"private": false,
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "0.1.2-
|
|
5
|
+
"version": "0.1.2-8",
|
|
6
6
|
"description ": "unplugin-vue-components插件",
|
|
7
7
|
"author": "fangzhongya ",
|
|
8
8
|
"license": "MIT",
|
|
@@ -24,17 +24,16 @@
|
|
|
24
24
|
"test": "vitest test"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
+
"fast-glob": "^3.2.12",
|
|
27
28
|
"@fangzhongya/create": "0.2.0-6",
|
|
28
|
-
"@fangzhongya/utils": "0.0.
|
|
29
|
+
"@fangzhongya/utils": "0.0.7-2",
|
|
29
30
|
"@types/node": "^18.11.19",
|
|
30
31
|
"tsup": "^6.5.0",
|
|
31
32
|
"typescript": "^4.9.5",
|
|
32
33
|
"unplugin-vue-components": "^0.23.0",
|
|
33
34
|
"vitest": "^0.28.4"
|
|
34
35
|
},
|
|
35
|
-
"dependencies": {
|
|
36
|
-
"fast-glob": "^3.2.12"
|
|
37
|
-
},
|
|
36
|
+
"dependencies": {},
|
|
38
37
|
"main": "./dist/index.cjs",
|
|
39
38
|
"module": "./dist/index.js",
|
|
40
39
|
"types": "./dist/index.d.ts",
|
|
@@ -75,4 +74,4 @@
|
|
|
75
74
|
"types": "./dist/index.d.ts"
|
|
76
75
|
}
|
|
77
76
|
}
|
|
78
|
-
}
|
|
77
|
+
}
|