@fangzhongya/vue-archive 0.0.7 → 0.0.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 +3 -2
- package/dist/node/index.cjs +135 -71
- package/dist/node/index.d.cts +8 -0
- package/dist/node/index.d.ts +8 -0
- package/dist/node/index.js +118 -54
- package/dist/node_modules/.pnpm/@fangzhongya_utils@0.0.24/node_modules/@fangzhongya/utils/dist/chunk-LPMR5W6M.cjs +1 -0
- package/dist/node_modules/.pnpm/@fangzhongya_utils@0.0.24/node_modules/@fangzhongya/utils/dist/chunk-LPMR5W6M.js +9 -0
- package/dist/packages/components/aside/index.vue.cjs +1 -1
- package/dist/packages/components/aside/index.vue.js +43 -45
- package/dist/packages/components/boxurl/index.vue.cjs +1 -1
- package/dist/packages/components/boxurl/index.vue.js +34 -37
- package/dist/packages/components/choice/choice.vue.cjs +1 -1
- package/dist/packages/components/choice/choice.vue.js +29 -32
- package/dist/packages/components/choice/index.vue.cjs +1 -1
- package/dist/packages/components/choice/index.vue.js +39 -42
- package/dist/packages/components/code/highlight.vue2.cjs +1 -1
- package/dist/packages/components/code/highlight.vue2.js +1 -1
- package/dist/packages/components/code/index.vue.cjs +1 -1
- package/dist/packages/components/code/index.vue.js +79 -87
- package/dist/packages/components/compo/ftable.vue.cjs +1 -1
- package/dist/packages/components/compo/ftable.vue.js +15 -15
- package/dist/packages/components/compo/index.cjs +1 -1
- package/dist/packages/components/compo/index.js +86 -97
- package/dist/packages/components/compo/index.vue.cjs +1 -1
- package/dist/packages/components/compo/index.vue.js +33 -34
- package/dist/packages/components/compo/info.vue.cjs +1 -1
- package/dist/packages/components/compo/info.vue.js +22 -25
- package/dist/packages/components/compo/top.cjs +1 -1
- package/dist/packages/components/compo/top.js +21 -21
- package/dist/packages/components/main/index.vue.cjs +1 -1
- package/dist/packages/components/main/index.vue.js +16 -17
- package/dist/packages/components/md/index.vue.cjs +1 -1
- package/dist/packages/components/md/index.vue.js +28 -32
- package/dist/packages/components/test/index.cjs +1 -1
- package/dist/packages/components/test/index.js +39 -42
- package/dist/packages/components/test/index.vue.cjs +1 -1
- package/dist/packages/components/test/index.vue.js +44 -49
- package/dist/packages/components/use/code.cjs +1 -1
- package/dist/packages/components/use/code.js +3 -3
- package/dist/packages/components/use/index.cjs +1 -1
- package/dist/packages/components/use/index.js +1 -1
- package/dist/packages/components/use/retrie/choice/index.vue.cjs +1 -1
- package/dist/packages/components/use/retrie/choice/index.vue.js +32 -34
- package/dist/packages/components/use/retrie/expose/index.vue.cjs +1 -1
- package/dist/packages/components/use/retrie/expose/index.vue.js +18 -19
- package/dist/packages/components/use/retrie/form/index.vue.cjs +1 -1
- package/dist/packages/components/use/retrie/form/index.vue.js +110 -114
- package/dist/packages/components/use/retrie/function/index.vue.cjs +2 -2
- package/dist/packages/components/use/retrie/function/index.vue.js +1 -4
- package/dist/packages/components/use/retrie/input/index.vue.cjs +1 -1
- package/dist/packages/components/use/retrie/input/index.vue.js +20 -21
- package/dist/packages/components/use/retrie/number/index.vue.cjs +1 -1
- package/dist/packages/components/use/retrie/number/index.vue.js +12 -13
- package/dist/packages/components/use/retrie/select/index.vue.cjs +1 -1
- package/dist/packages/components/use/retrie/select/index.vue.js +21 -23
- package/dist/packages/components/use/retrie/slot/index.vue.cjs +1 -1
- package/dist/packages/components/use/retrie/slot/index.vue.js +15 -16
- package/dist/packages/components/use/retrie/string/index.vue.cjs +1 -1
- package/dist/packages/components/use/retrie/string/index.vue.js +14 -15
- package/dist/packages/components/use/set-emit.vue.cjs +1 -1
- package/dist/packages/components/use/set-emit.vue.js +20 -24
- package/dist/packages/components/use/set-expose.vue.cjs +1 -1
- package/dist/packages/components/use/set-expose.vue.js +15 -18
- package/dist/packages/components/use/set-props.vue.cjs +1 -1
- package/dist/packages/components/use/set-props.vue.js +48 -49
- package/dist/packages/config.cjs +1 -1
- package/dist/packages/config.d.ts +8 -1
- package/dist/packages/config.js +1 -1
- package/dist/packages/directives/adjust/index copy.d.ts +6 -0
- package/dist/packages/directives/adjust/index.cjs +1 -1
- package/dist/packages/directives/adjust/index.js +96 -97
- package/dist/packages/page/comprops/index.vue2.cjs +1 -1
- package/dist/packages/page/comprops/index.vue2.js +65 -71
- package/dist/packages/page/index/index.vue2.cjs +1 -1
- package/dist/packages/page/index/index.vue2.js +19 -23
- package/dist/packages/page/single/index.vue2.cjs +1 -1
- package/dist/packages/page/single/index.vue2.js +46 -49
- package/dist/packages/router/index.cjs +1 -1
- package/dist/packages/router/index.js +44 -46
- package/dist/packages/utils/common.cjs +1 -1
- package/dist/packages/utils/common.d.ts +4 -0
- package/dist/packages/utils/common.js +57 -54
- package/dist/packages/utils/glob.cjs +3 -3
- package/dist/packages/utils/glob.d.ts +1 -1
- package/dist/packages/utils/glob.js +269 -227
- package/dist/packages/utils/props.cjs +1 -1
- package/dist/packages/utils/props.js +34 -28
- package/dist/src/components/common/cs3.d.ts +4 -0
- package/dist/src/components/common/index.d.ts +4 -0
- package/dist/src/components/cs/expose/index.d.ts +4 -1
- package/dist/src/components/cs/expose/src/index.vue.d.ts +4 -1
- package/dist/vue-archive.css +1 -1
- package/package.json +18 -19
- package/dist/node_modules/.pnpm/@fangzhongya_utils@0.0.8-77/node_modules/@fangzhongya/utils/dist/chunk-SNABGVNO.cjs +0 -1
- package/dist/node_modules/.pnpm/@fangzhongya_utils@0.0.8-77/node_modules/@fangzhongya/utils/dist/chunk-SNABGVNO.js +0 -9
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.cjs +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-5RZYHE3X.cjs +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-5RZYHE3X.js +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-AM67P3W7.cjs +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-AM67P3W7.js +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-APKFW4LU.cjs +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-APKFW4LU.js +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.cjs +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.cjs +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-Q6FMBSK4.cjs +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-Q6FMBSK4.js +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-RD4EP3M5.cjs +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-RD4EP3M5.js +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-UOADEBDH.cjs +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-UOADEBDH.js +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-VBS6YE6H.cjs +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-VBS6YE6H.js +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-VKE5JARB.cjs +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-VKE5JARB.js +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.cjs +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-XUL6LPTN.cjs +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-XUL6LPTN.js +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-ZVBCHJA5.cjs +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-ZVBCHJA5.js +0 -0
- /package/dist/node_modules/.pnpm/{@highlightjs_vue-plugin@2.1_0b670f4f8863792fd47bf820772b9cbf → @highlightjs_vue-plugin@2.1_b586068ec461434c266304f56a34d01a}/node_modules/@highlightjs/vue-plugin/dist/highlightjs-vue.esm.min.cjs +0 -0
- /package/dist/node_modules/.pnpm/{@highlightjs_vue-plugin@2.1_0b670f4f8863792fd47bf820772b9cbf → @highlightjs_vue-plugin@2.1_b586068ec461434c266304f56a34d01a}/node_modules/@highlightjs/vue-plugin/dist/highlightjs-vue.esm.min.js +0 -0
package/dist/node/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
1
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.24/node_modules/@fangzhongya/utils/dist/chunk-5PX3AFSC.js
|
|
2
2
|
function isArray(obj) {
|
|
3
3
|
return Object.prototype.toString.call(obj) == "[object Array]";
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
6
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.24/node_modules/@fangzhongya/utils/dist/chunk-A276ZDLP.js
|
|
7
7
|
function getStartSames(str, val) {
|
|
8
8
|
let s = "";
|
|
9
9
|
const vs = [...val];
|
|
@@ -19,7 +19,7 @@ function getStartSames(str, val) {
|
|
|
19
19
|
return [s, str.substring(index), val.substring(index)];
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
22
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.24/node_modules/@fangzhongya/utils/dist/chunk-AWC672JW.js
|
|
23
23
|
function getImportUrl(url, imp) {
|
|
24
24
|
const arr = getStartSames(url, imp);
|
|
25
25
|
const ts = arr[0];
|
|
@@ -46,12 +46,12 @@ function getImportUrl(url, imp) {
|
|
|
46
46
|
return ds.join("") + arr[2].replace(/\\/g, "/");
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
49
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.24/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js
|
|
50
50
|
function firstUpper(str) {
|
|
51
51
|
return str.slice(0, 1).toUpperCase() + str.slice(1);
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
54
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.24/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js
|
|
55
55
|
function lineToLargeHump(name) {
|
|
56
56
|
let arr = name.split("-");
|
|
57
57
|
arr = arr.map((vs) => {
|
|
@@ -60,7 +60,7 @@ function lineToLargeHump(name) {
|
|
|
60
60
|
return arr.join("");
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
// node_modules/.pnpm/@fangzhongya+create@0.2.
|
|
63
|
+
// node_modules/.pnpm/@fangzhongya+create@0.2.29/node_modules/@fangzhongya/create/dist/chunk-7V2NDMIF.js
|
|
64
64
|
import {
|
|
65
65
|
open,
|
|
66
66
|
readdir,
|
|
@@ -72,8 +72,8 @@ import {
|
|
|
72
72
|
createReadStream,
|
|
73
73
|
access,
|
|
74
74
|
constants
|
|
75
|
-
} from "
|
|
76
|
-
import { join } from "
|
|
75
|
+
} from "fs";
|
|
76
|
+
import { join } from "path";
|
|
77
77
|
function getUrlCatalogueObj(str) {
|
|
78
78
|
const reg = /(\\|\/)([^\\|\/]+)\.([a-z|A-Z]+)$/g;
|
|
79
79
|
const ml = str.replace(reg, "");
|
|
@@ -330,8 +330,8 @@ function writeFileUrl(url, files, callback, isDirs, isFile, issynch) {
|
|
|
330
330
|
});
|
|
331
331
|
}
|
|
332
332
|
|
|
333
|
-
// node_modules/.pnpm/@fangzhongya+create@0.2.
|
|
334
|
-
import { resolve, join as join2 } from "
|
|
333
|
+
// node_modules/.pnpm/@fangzhongya+create@0.2.29/node_modules/@fangzhongya/create/dist/chunk-PXLSY3ZR.js
|
|
334
|
+
import { resolve, join as join2 } from "path";
|
|
335
335
|
function styleLog(msg = "", obj) {
|
|
336
336
|
const arr = ["\x1B[0m"];
|
|
337
337
|
if (obj?.revert) {
|
|
@@ -752,7 +752,7 @@ var FangCom = class {
|
|
|
752
752
|
}
|
|
753
753
|
};
|
|
754
754
|
|
|
755
|
-
// node_modules/.pnpm/@fangzhongya+create@0.2.
|
|
755
|
+
// node_modules/.pnpm/@fangzhongya+create@0.2.29/node_modules/@fangzhongya/create/dist/bins/md.js
|
|
756
756
|
var defaultConfig2 = Object.assign({}, defaultConfig, {
|
|
757
757
|
name: "md"
|
|
758
758
|
});
|
|
@@ -771,7 +771,7 @@ function runDev(config2, configCallback) {
|
|
|
771
771
|
return new FangMd(config2, configCallback);
|
|
772
772
|
}
|
|
773
773
|
|
|
774
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
774
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.24/node_modules/@fangzhongya/utils/dist/chunk-NCSN3MC5.js
|
|
775
775
|
var zObj = {
|
|
776
776
|
"<": "<",
|
|
777
777
|
">": ">",
|
|
@@ -790,9 +790,9 @@ function htmlEscape(str) {
|
|
|
790
790
|
}
|
|
791
791
|
|
|
792
792
|
// packages/node/index.ts
|
|
793
|
-
import { join as join4 } from "
|
|
793
|
+
import { join as join4 } from "path";
|
|
794
794
|
|
|
795
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
795
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.24/node_modules/@fangzhongya/utils/dist/chunk-RD4EP3M5.js
|
|
796
796
|
function mergeObject(a, b, j = 0, i) {
|
|
797
797
|
if (a instanceof Array) {
|
|
798
798
|
if (j > 0 && i) {
|
|
@@ -835,7 +835,7 @@ function mergeObject(a, b, j = 0, i) {
|
|
|
835
835
|
return a;
|
|
836
836
|
}
|
|
837
837
|
|
|
838
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
838
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.24/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js
|
|
839
839
|
function humpToLine(name) {
|
|
840
840
|
const reg = /(([A-Z])([^A-Z]*))/g;
|
|
841
841
|
let result;
|
|
@@ -857,23 +857,23 @@ function humpToLine(name) {
|
|
|
857
857
|
}
|
|
858
858
|
}
|
|
859
859
|
|
|
860
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
860
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.24/node_modules/@fangzhongya/utils/dist/chunk-LPMR5W6M.js
|
|
861
861
|
function appearNum(str, t) {
|
|
862
862
|
let reg = t;
|
|
863
863
|
if (typeof t == "string") {
|
|
864
|
-
reg = new RegExp(t, "g");
|
|
864
|
+
reg = new RegExp(t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "g");
|
|
865
865
|
}
|
|
866
866
|
let arr = str.match(reg);
|
|
867
867
|
let c = arr ? arr.length : 0;
|
|
868
868
|
return c;
|
|
869
869
|
}
|
|
870
870
|
|
|
871
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
871
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.24/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js
|
|
872
872
|
function firstLower(str) {
|
|
873
873
|
return str.slice(0, 1).toLowerCase() + str.slice(1);
|
|
874
874
|
}
|
|
875
875
|
|
|
876
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
876
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.24/node_modules/@fangzhongya/utils/dist/chunk-Q6FMBSK4.js
|
|
877
877
|
function asyncMergeArray(arr, callback) {
|
|
878
878
|
return new Promise((resolve2, reject) => {
|
|
879
879
|
let index = 0;
|
|
@@ -897,7 +897,7 @@ function asyncMergeArray(arr, callback) {
|
|
|
897
897
|
});
|
|
898
898
|
}
|
|
899
899
|
|
|
900
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
900
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.24/node_modules/@fangzhongya/utils/dist/chunk-UOADEBDH.js
|
|
901
901
|
function getSuffix2(url) {
|
|
902
902
|
const reg = /\.([a-z|A-Z]+)$/;
|
|
903
903
|
const regs = reg.exec(url);
|
|
@@ -986,6 +986,7 @@ function getUrlName(url, pps, raliass = {}, alias = "") {
|
|
|
986
986
|
});
|
|
987
987
|
let value = ms[1];
|
|
988
988
|
let rsobj = {
|
|
989
|
+
url: "",
|
|
989
990
|
dir: "",
|
|
990
991
|
suffix: getSuffix2(url),
|
|
991
992
|
name: lineToLargeHump(value),
|
|
@@ -1017,7 +1018,7 @@ function getTDir(key) {
|
|
|
1017
1018
|
}
|
|
1018
1019
|
function isComprops(url, comprops) {
|
|
1019
1020
|
if (comprops) {
|
|
1020
|
-
const reg = new RegExp(comprops
|
|
1021
|
+
const reg = new RegExp(comprops);
|
|
1021
1022
|
return reg.test(url);
|
|
1022
1023
|
} else {
|
|
1023
1024
|
return false;
|
|
@@ -1037,10 +1038,14 @@ function getComponentsArr(urls, v, comRaw, com, config2) {
|
|
|
1037
1038
|
const ppz = getMatchs(v.matchexts, v.extensions, v.matchs);
|
|
1038
1039
|
const tdir = getTDir(v.dir);
|
|
1039
1040
|
urls.forEach((key) => {
|
|
1041
|
+
const dk = v.dir.replace(/^\./, "");
|
|
1042
|
+
let z = key.indexOf(dk);
|
|
1043
|
+
let zv = "." + key.substring(z);
|
|
1040
1044
|
const reg = new RegExp("^" + v.dir);
|
|
1041
|
-
let k =
|
|
1042
|
-
if (config2.comprops && isComprops(k, config2.comprops) || config2.curprops && isCurprops(k, config2.curprops)) {
|
|
1045
|
+
let k = zv.replace(reg, "");
|
|
1046
|
+
if (config2.comprops && isComprops("/" + k, config2.comprops) || config2.curprops && isCurprops("/" + k, config2.curprops)) {
|
|
1043
1047
|
let value = {};
|
|
1048
|
+
value.url = zv;
|
|
1044
1049
|
value.comprops = config2.comprops || "";
|
|
1045
1050
|
value.curprops = config2.curprops || "";
|
|
1046
1051
|
value.value = k;
|
|
@@ -1054,6 +1059,7 @@ function getComponentsArr(urls, v, comRaw, com, config2) {
|
|
|
1054
1059
|
} else {
|
|
1055
1060
|
let value = getUrlName(k, ppz, v.aliass, v.alias);
|
|
1056
1061
|
if (value) {
|
|
1062
|
+
value.url = zv;
|
|
1057
1063
|
value.comprops = config2.comprops;
|
|
1058
1064
|
value.curprops = config2.curprops;
|
|
1059
1065
|
value.dir = v.dir;
|
|
@@ -1580,6 +1586,22 @@ function getexamplesRawObj(comRaw, key) {
|
|
|
1580
1586
|
return comRaw;
|
|
1581
1587
|
}
|
|
1582
1588
|
}
|
|
1589
|
+
var aliasObj = {};
|
|
1590
|
+
function getURLalias(value) {
|
|
1591
|
+
const alias = getConfig("resolve");
|
|
1592
|
+
if (aliasObj[value]) {
|
|
1593
|
+
return aliasObj[value];
|
|
1594
|
+
} else {
|
|
1595
|
+
for (let o of alias) {
|
|
1596
|
+
if (value.startsWith(o.find + "/")) {
|
|
1597
|
+
const t = o.replacement.replaceAll("\\", "/");
|
|
1598
|
+
const v = t + value.replace(o.find + "/", "/");
|
|
1599
|
+
aliasObj[value] = v;
|
|
1600
|
+
return v;
|
|
1601
|
+
}
|
|
1602
|
+
}
|
|
1603
|
+
}
|
|
1604
|
+
}
|
|
1583
1605
|
async function getImport(text, type) {
|
|
1584
1606
|
let jstext = "";
|
|
1585
1607
|
if (type == "vue") {
|
|
@@ -1610,6 +1632,11 @@ async function getImport(text, type) {
|
|
|
1610
1632
|
if (key) {
|
|
1611
1633
|
if (key.startsWith("./") || key.startsWith("../")) {
|
|
1612
1634
|
yrs.push(key);
|
|
1635
|
+
} else {
|
|
1636
|
+
const v = getURLalias(key);
|
|
1637
|
+
if (v) {
|
|
1638
|
+
yrs.push(v);
|
|
1639
|
+
}
|
|
1613
1640
|
}
|
|
1614
1641
|
}
|
|
1615
1642
|
});
|
|
@@ -1788,7 +1815,7 @@ function getKeyMds(key) {
|
|
|
1788
1815
|
getTestObj(key);
|
|
1789
1816
|
return componentsObj[key].mds;
|
|
1790
1817
|
}
|
|
1791
|
-
async function getTestImportUrl(url, text, type, comprops) {
|
|
1818
|
+
async function getTestImportUrl(url, text, type, dir, comprops) {
|
|
1792
1819
|
let arr = await getImport(text, type) || [];
|
|
1793
1820
|
let urs = url.split("/");
|
|
1794
1821
|
return arr.map((key) => {
|
|
@@ -1796,14 +1823,16 @@ async function getTestImportUrl(url, text, type, comprops) {
|
|
|
1796
1823
|
let head = urs.slice(0, urs.length - 1).join("/");
|
|
1797
1824
|
let v = key.substring(2);
|
|
1798
1825
|
return {
|
|
1826
|
+
url: head + "/" + v,
|
|
1799
1827
|
name: key,
|
|
1800
1828
|
comprops: comprops || "",
|
|
1801
1829
|
value: v,
|
|
1802
1830
|
suffix: getSuffix2(key),
|
|
1803
1831
|
head,
|
|
1804
|
-
|
|
1832
|
+
dir,
|
|
1833
|
+
key
|
|
1805
1834
|
};
|
|
1806
|
-
} else {
|
|
1835
|
+
} else if (key.startsWith("../")) {
|
|
1807
1836
|
let ks = key.split("/");
|
|
1808
1837
|
let z = 0;
|
|
1809
1838
|
for (let index = 0; index < ks.length; index++) {
|
|
@@ -1816,14 +1845,33 @@ async function getTestImportUrl(url, text, type, comprops) {
|
|
|
1816
1845
|
let vs = ks.slice(z, ks.length);
|
|
1817
1846
|
let head = urs.slice(0, urs.length - z - 1).join("/");
|
|
1818
1847
|
let v = vs.join("/");
|
|
1819
|
-
|
|
1848
|
+
const rv = {
|
|
1849
|
+
url: head + "/" + v,
|
|
1850
|
+
name: key,
|
|
1851
|
+
comprops: comprops || "",
|
|
1852
|
+
value: v,
|
|
1853
|
+
suffix: getSuffix2(key),
|
|
1854
|
+
head,
|
|
1855
|
+
dir,
|
|
1856
|
+
key
|
|
1857
|
+
};
|
|
1858
|
+
return rv;
|
|
1859
|
+
} else {
|
|
1860
|
+
const k = dir.replace(/^\./, "");
|
|
1861
|
+
let z = key.indexOf(k) + k.length;
|
|
1862
|
+
let v = key.substring(z);
|
|
1863
|
+
let head = dir.substring(0, dir.length - 1);
|
|
1864
|
+
const rv = {
|
|
1865
|
+
url: head + "/" + v,
|
|
1820
1866
|
name: key,
|
|
1821
1867
|
comprops: comprops || "",
|
|
1822
1868
|
value: v,
|
|
1823
1869
|
suffix: getSuffix2(key),
|
|
1824
1870
|
head,
|
|
1825
|
-
|
|
1871
|
+
dir,
|
|
1872
|
+
key
|
|
1826
1873
|
};
|
|
1874
|
+
return rv;
|
|
1827
1875
|
}
|
|
1828
1876
|
});
|
|
1829
1877
|
}
|
|
@@ -1882,7 +1930,7 @@ function setForComponentsValue(v) {
|
|
|
1882
1930
|
obj = getComponentsArr(urls, v, v.componentsRaw, v.components, v);
|
|
1883
1931
|
if (obj && obj?.props) {
|
|
1884
1932
|
obj.props.forEach((z) => {
|
|
1885
|
-
componentPropsObj[z.
|
|
1933
|
+
componentPropsObj[z.url] = z;
|
|
1886
1934
|
});
|
|
1887
1935
|
}
|
|
1888
1936
|
setComponentsObj(alias, obj.components);
|
|
@@ -1896,18 +1944,29 @@ function getCompoNameObj() {
|
|
|
1896
1944
|
async function getPropsImport(text, obj) {
|
|
1897
1945
|
let ts = text;
|
|
1898
1946
|
if (text) {
|
|
1899
|
-
let arr = (await getTestImportUrl(
|
|
1947
|
+
let arr = (await getTestImportUrl(
|
|
1948
|
+
obj.key,
|
|
1949
|
+
text,
|
|
1950
|
+
obj.suffix,
|
|
1951
|
+
obj.dir,
|
|
1952
|
+
obj.comprops
|
|
1953
|
+
)).filter((v) => {
|
|
1900
1954
|
return v.key.startsWith(obj.head) || isComprops(v.name, obj.comprops || "");
|
|
1901
1955
|
});
|
|
1902
1956
|
ts = await getPropsTexts(arr) + ts;
|
|
1903
1957
|
}
|
|
1904
1958
|
return ts;
|
|
1905
1959
|
}
|
|
1960
|
+
function getPropsValue(o) {
|
|
1961
|
+
const u = o.url;
|
|
1962
|
+
const k = o.key;
|
|
1963
|
+
return componentPropsObj[u] || componentPropsObj[u + ".js"] || componentPropsObj[u + ".ts"] || componentPropsObj[k] || componentPropsObj[k + ".js"] || componentPropsObj[k + ".ts"];
|
|
1964
|
+
}
|
|
1906
1965
|
function getPropsRaws(arr) {
|
|
1907
1966
|
return new Promise((resolve2) => {
|
|
1908
1967
|
if (arr && arr.length > 0) {
|
|
1909
1968
|
let arrs = arr.map((o) => {
|
|
1910
|
-
return
|
|
1969
|
+
return getPropsValue(o);
|
|
1911
1970
|
}).filter((o) => Boolean(o));
|
|
1912
1971
|
asyncMergeArray(arrs, (res, rej, value, index) => {
|
|
1913
1972
|
if (value.raw) {
|
|
@@ -1944,6 +2003,7 @@ async function getComponentsProps(text, obj) {
|
|
|
1944
2003
|
obj.key,
|
|
1945
2004
|
text,
|
|
1946
2005
|
obj.suffix,
|
|
2006
|
+
obj.dir,
|
|
1947
2007
|
obj.comprops || ""
|
|
1948
2008
|
)).filter((v) => {
|
|
1949
2009
|
return isComprops(v.name, obj.comprops || "") || isCurprops(v.name, obj.curprops || "");
|
|
@@ -2110,6 +2170,19 @@ var expose = {
|
|
|
2110
2170
|
} else {
|
|
2111
2171
|
return "";
|
|
2112
2172
|
}
|
|
2173
|
+
},
|
|
2174
|
+
return(obj) {
|
|
2175
|
+
if (obj.return) {
|
|
2176
|
+
let t = obj.return.type;
|
|
2177
|
+
if (t) {
|
|
2178
|
+
t = `[${t}]`;
|
|
2179
|
+
}
|
|
2180
|
+
return t + (obj.return.description || obj.return.name);
|
|
2181
|
+
} else if (obj.expose) {
|
|
2182
|
+
return obj.expose.return;
|
|
2183
|
+
} else {
|
|
2184
|
+
return "";
|
|
2185
|
+
}
|
|
2113
2186
|
}
|
|
2114
2187
|
};
|
|
2115
2188
|
var slot = {
|
|
@@ -2143,7 +2216,7 @@ var slot = {
|
|
|
2143
2216
|
}
|
|
2144
2217
|
}
|
|
2145
2218
|
};
|
|
2146
|
-
function
|
|
2219
|
+
function getPropsValue2(arr) {
|
|
2147
2220
|
return arr.map((obj) => {
|
|
2148
2221
|
const v = {};
|
|
2149
2222
|
Object.keys(props).forEach((key) => {
|
|
@@ -3018,13 +3091,7 @@ function setSlot(obj) {
|
|
|
3018
3091
|
let name = "";
|
|
3019
3092
|
let description = "";
|
|
3020
3093
|
let selectable = "";
|
|
3021
|
-
let arr = [
|
|
3022
|
-
"slot",
|
|
3023
|
-
"name",
|
|
3024
|
-
"selectable",
|
|
3025
|
-
"description",
|
|
3026
|
-
"descriptions"
|
|
3027
|
-
];
|
|
3094
|
+
let arr = ["slot", "name", "selectable", "description", "descriptions"];
|
|
3028
3095
|
let fobj = getFilter2(obj, arr);
|
|
3029
3096
|
let value = {};
|
|
3030
3097
|
arr.forEach((key) => {
|
|
@@ -3036,16 +3103,7 @@ function setSlot(obj) {
|
|
|
3036
3103
|
});
|
|
3037
3104
|
}
|
|
3038
3105
|
function setEmits(obj) {
|
|
3039
|
-
let
|
|
3040
|
-
let description = "";
|
|
3041
|
-
let selectable = "";
|
|
3042
|
-
let arr = [
|
|
3043
|
-
"emits",
|
|
3044
|
-
"name",
|
|
3045
|
-
"selectable",
|
|
3046
|
-
"description",
|
|
3047
|
-
"descriptions"
|
|
3048
|
-
];
|
|
3106
|
+
let arr = ["emits", "name", "selectable", "description", "descriptions"];
|
|
3049
3107
|
let fobj = getFilter2(obj, arr);
|
|
3050
3108
|
let value = {};
|
|
3051
3109
|
arr.forEach((key) => {
|
|
@@ -3061,6 +3119,7 @@ function setExpose(obj) {
|
|
|
3061
3119
|
"expose",
|
|
3062
3120
|
"name",
|
|
3063
3121
|
"type",
|
|
3122
|
+
"return",
|
|
3064
3123
|
"selectable",
|
|
3065
3124
|
"description",
|
|
3066
3125
|
"descriptions"
|
|
@@ -3098,7 +3157,7 @@ function getFilter2(obj, arrs) {
|
|
|
3098
3157
|
};
|
|
3099
3158
|
const arr = [];
|
|
3100
3159
|
if (obj?.tags) {
|
|
3101
|
-
obj
|
|
3160
|
+
obj.tags?.forEach((v) => {
|
|
3102
3161
|
let tag = v.tag;
|
|
3103
3162
|
let ov = getObj2(v);
|
|
3104
3163
|
if (!_objs.hasOwnProperty(tag)) {
|
|
@@ -3183,11 +3242,14 @@ function notesFilter(notes) {
|
|
|
3183
3242
|
function getNotes2(key) {
|
|
3184
3243
|
return new Promise((resolve2) => {
|
|
3185
3244
|
getLocalTextComponents(key).then((text) => {
|
|
3186
|
-
|
|
3187
|
-
resolve2(notesFilter(notes));
|
|
3245
|
+
resolve2(getNotesText(text));
|
|
3188
3246
|
});
|
|
3189
3247
|
});
|
|
3190
3248
|
}
|
|
3249
|
+
function getNotesText(text) {
|
|
3250
|
+
let notes = getTextNotes(text);
|
|
3251
|
+
return notesFilter(notes);
|
|
3252
|
+
}
|
|
3191
3253
|
var tprops = [
|
|
3192
3254
|
{
|
|
3193
3255
|
label: "\u5C5E\u6027\u540D",
|
|
@@ -3251,7 +3313,9 @@ var texpose = [
|
|
|
3251
3313
|
{
|
|
3252
3314
|
label: "\u8FD4\u56DE\u503C",
|
|
3253
3315
|
prop: "type",
|
|
3254
|
-
formatter
|
|
3316
|
+
formatter(obj) {
|
|
3317
|
+
return expose.return(obj) ?? expose.type(obj);
|
|
3318
|
+
}
|
|
3255
3319
|
}
|
|
3256
3320
|
];
|
|
3257
3321
|
var tslot = [
|
|
@@ -3383,7 +3447,7 @@ function getDefaultValue(obj) {
|
|
|
3383
3447
|
}
|
|
3384
3448
|
}
|
|
3385
3449
|
function setVue(propsname, param, url) {
|
|
3386
|
-
const ps =
|
|
3450
|
+
const ps = getPropsValue2(param.propss);
|
|
3387
3451
|
const es = getEmitsValue(param.emitss);
|
|
3388
3452
|
const propsObj = {};
|
|
3389
3453
|
ps.forEach((val) => {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function l(a,e){let r=e;r=new RegExp(e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g");let t=a.match(r);return t?t.length:0}exports.appearNum=l;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),
|
|
1
|
+
"use strict";const e=require("vue"),h=require("../boxurl/index.vue.cjs"),c=require("../../utils/glob.cjs"),_=require("../../utils/common.cjs"),N={class:"aside-search"},C={class:"aside-list"},E=["onClick"],B={class:"aside-li-name"},V={class:"aside-li-name-name"},x={class:"aside-li-name-aliass"},T=e.defineComponent({__name:"index",props:{value:Object},emits:["change"],setup(k,{emit:f}){const r=k,i=e.ref(),o=e.ref([]);o.value=c.getCompoNameObj();const l=e.ref(r.value);if(!l.value||!l.value.key){let t=_.getAsideKey();t?l.value=c.getCompoNameKey(t):l.value=o.value[0]}const n=e.ref("");e.watch(()=>r.value,()=>{l.value=r.value,u()}),e.watch(()=>n.value,()=>{g()});const d=f;function v(t){return t?t.replace(/[\.|\/|\s]/g,"-"):"a"}function y(t){l.value=t,u(),d("change",t)}let m;function g(){clearTimeout(m),m=setTimeout(()=>{let t=n.value;t?o.value=c.getCompoName(t,!0):o.value=c.getCompoNameObj()},400)}function u(){let t=l.value?.key||"";_.setAsideKey(t)}return u(),d("change",l.value),e.onMounted(()=>{e.nextTick(()=>{const t=i.value.querySelector(".aside-li."+v(l.value?.key));if(t){const s=t.offsetTop,a=i.value.parentNode;a.scrollTop=s}})}),(t,s)=>(e.openBlock(),e.createElementBlock("div",{class:"aside",ref_key:"refAside",ref:i},[e.createElementVNode("div",N,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":s[0]||(s[0]=a=>n.value=a)},null,512),[[e.vModelText,n.value]])]),e.createElementVNode("div",C,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,(a,q)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["aside-li",v(a.key)+" "+(a.key==l.value.key?"on":"")]),onClick:p=>y(a)},[e.createVNode(h,{value:a},{default:e.withCtx(()=>[e.createElementVNode("div",B,[e.createElementVNode("div",V,e.toDisplayString(a.name),1),e.createElementVNode("span",x,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.aliasNames,p=>(e.openBlock(),e.createElementBlock("span",null,e.toDisplayString(p),1))),256))])])]),_:2},1032,["value"])],10,E))),256))])],512))}});module.exports=T;
|
|
@@ -1,95 +1,93 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import { getCompoNameObj as
|
|
4
|
-
import { getAsideKey as
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as A, ref as c, watch as k, onMounted as w, nextTick as S, createElementBlock as o, openBlock as n, createElementVNode as s, withDirectives as V, vModelText as b, Fragment as y, renderList as h, normalizeClass as j, createVNode as z, withCtx as B, toDisplayString as g } from "vue";
|
|
2
|
+
import D from "../boxurl/index.vue.js";
|
|
3
|
+
import { getCompoNameObj as C, getCompoNameKey as E, getCompoName as M } from "../../utils/glob.js";
|
|
4
|
+
import { getAsideKey as O, setAsideKey as $ } from "../../utils/common.js";
|
|
5
|
+
const q = { class: "aside-search" }, F = { class: "aside-list" }, L = ["onClick"], U = { class: "aside-li-name" }, G = { class: "aside-li-name-name" }, H = { class: "aside-li-name-aliass" }, W = /* @__PURE__ */ A({
|
|
6
6
|
__name: "index",
|
|
7
7
|
props: {
|
|
8
8
|
value: Object
|
|
9
9
|
},
|
|
10
10
|
emits: ["change"],
|
|
11
|
-
setup(
|
|
12
|
-
const r =
|
|
13
|
-
|
|
11
|
+
setup(N, { emit: x }) {
|
|
12
|
+
const r = N, d = c(), l = c([]);
|
|
13
|
+
l.value = C();
|
|
14
14
|
const t = c(r.value);
|
|
15
15
|
if (!t.value || !t.value.key) {
|
|
16
|
-
let e =
|
|
17
|
-
e ? t.value =
|
|
16
|
+
let e = O();
|
|
17
|
+
e ? t.value = E(e) : t.value = l.value[0];
|
|
18
18
|
}
|
|
19
|
-
const
|
|
20
|
-
|
|
19
|
+
const i = c("");
|
|
20
|
+
k(
|
|
21
21
|
() => r.value,
|
|
22
22
|
() => {
|
|
23
23
|
t.value = r.value, v();
|
|
24
24
|
}
|
|
25
|
-
),
|
|
26
|
-
() =>
|
|
25
|
+
), k(
|
|
26
|
+
() => i.value,
|
|
27
27
|
() => {
|
|
28
|
-
|
|
28
|
+
K();
|
|
29
29
|
}
|
|
30
30
|
);
|
|
31
|
-
const m =
|
|
31
|
+
const m = x;
|
|
32
32
|
function f(e) {
|
|
33
33
|
return e ? e.replace(/[\.|\/|\s]/g, "-") : "a";
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function T(e) {
|
|
36
36
|
t.value = e, v(), m("change", e);
|
|
37
37
|
}
|
|
38
38
|
let p;
|
|
39
|
-
function
|
|
39
|
+
function K() {
|
|
40
40
|
clearTimeout(p), p = setTimeout(() => {
|
|
41
|
-
let e =
|
|
42
|
-
e ?
|
|
41
|
+
let e = i.value;
|
|
42
|
+
e ? l.value = M(e, !0) : l.value = C();
|
|
43
43
|
}, 400);
|
|
44
44
|
}
|
|
45
45
|
function v() {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
q(e);
|
|
46
|
+
let e = t.value?.key || "";
|
|
47
|
+
$(e);
|
|
49
48
|
}
|
|
50
|
-
return v(), m("change", t.value),
|
|
51
|
-
|
|
52
|
-
var s;
|
|
49
|
+
return v(), m("change", t.value), w(() => {
|
|
50
|
+
S(() => {
|
|
53
51
|
const e = d.value.querySelector(
|
|
54
|
-
".aside-li." + f(
|
|
52
|
+
".aside-li." + f(t.value?.key)
|
|
55
53
|
);
|
|
56
54
|
if (e) {
|
|
57
|
-
const
|
|
58
|
-
|
|
55
|
+
const u = e.offsetTop, a = d.value.parentNode;
|
|
56
|
+
a.scrollTop = u;
|
|
59
57
|
}
|
|
60
58
|
});
|
|
61
|
-
}), (e,
|
|
59
|
+
}), (e, u) => (n(), o("div", {
|
|
62
60
|
class: "aside",
|
|
63
61
|
ref_key: "refAside",
|
|
64
62
|
ref: d
|
|
65
63
|
}, [
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
"onUpdate:modelValue":
|
|
64
|
+
s("div", q, [
|
|
65
|
+
V(s("input", {
|
|
66
|
+
"onUpdate:modelValue": u[0] || (u[0] = (a) => i.value = a)
|
|
69
67
|
}, null, 512), [
|
|
70
|
-
[
|
|
68
|
+
[b, i.value]
|
|
71
69
|
])
|
|
72
70
|
]),
|
|
73
|
-
|
|
74
|
-
(
|
|
75
|
-
class:
|
|
71
|
+
s("div", F, [
|
|
72
|
+
(n(!0), o(y, null, h(l.value, (a, I) => (n(), o("div", {
|
|
73
|
+
class: j([
|
|
76
74
|
"aside-li",
|
|
77
75
|
f(a.key) + " " + (a.key == t.value.key ? "on" : "")
|
|
78
76
|
]),
|
|
79
|
-
onClick: (
|
|
77
|
+
onClick: (_) => T(a)
|
|
80
78
|
}, [
|
|
81
|
-
|
|
82
|
-
default:
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
(
|
|
79
|
+
z(D, { value: a }, {
|
|
80
|
+
default: B(() => [
|
|
81
|
+
s("div", U, [
|
|
82
|
+
s("div", G, g(a.name), 1),
|
|
83
|
+
s("span", H, [
|
|
84
|
+
(n(!0), o(y, null, h(a.aliasNames, (_) => (n(), o("span", null, g(_), 1))), 256))
|
|
87
85
|
])
|
|
88
86
|
])
|
|
89
87
|
]),
|
|
90
88
|
_: 2
|
|
91
89
|
}, 1032, ["value"])
|
|
92
|
-
], 10,
|
|
90
|
+
], 10, L))), 256))
|
|
93
91
|
])
|
|
94
92
|
], 512));
|
|
95
93
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),
|
|
1
|
+
"use strict";const e=require("vue"),c={class:"box-url-span"},r={class:"box-url-box-div"},v={class:"box-div-li"},u={class:"box-div-li-span"},m={class:"box-div-li-span"},x={key:0,class:"box-div-li"},p={class:"box-div-li-span"},b={class:"box-div-li"},E={class:"box-div-li-span"},N=e.defineComponent({__name:"index",props:{value:Object},setup(l){const a=e.ref(),n=e.ref(""),i=e.ref("");return e.onMounted(()=>{a.value.onmouseenter=t=>{var t=t||window.event;let o,s;t.x||t.y?(o=t.x,s=t.y):(t.pageX||t.pageY)&&(o=t.pageX-1,s=t.pageY-1),n.value=o+"px",i.value=s+"px"}}),(d,t)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"boxurl",ref:a,class:"box-url"},[e.createElementVNode("span",c,[e.renderSlot(d.$slots,"default")]),e.createElementVNode("div",{class:"box-url-box",style:e.normalizeStyle({top:i.value,left:n.value})},[e.createElementVNode("div",r,[e.createElementVNode("div",v,[e.createElementVNode("div",u,e.toDisplayString(l.value?.name),1),e.createElementVNode("div",m,e.toDisplayString(l.value?.value),1)]),l.value?.aliasNames&&l.value?.aliasNames.length?(e.openBlock(),e.createElementBlock("div",x,[t[0]||(t[0]=e.createElementVNode("div",{class:"box-div-li-span"},"别名",-1)),e.createElementVNode("div",p,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value?.aliasNames,o=>(e.openBlock(),e.createElementBlock("span",null,e.toDisplayString(o),1))),256))])])):e.createCommentVNode("",!0),e.createElementVNode("div",b,[t[1]||(t[1]=e.createElementVNode("div",{class:"box-div-li-span"}," 文件路径 ",-1)),e.createElementVNode("div",E,e.toDisplayString(l.value?.key),1)])])],4)],512))}});module.exports=N;
|