@fangzhongya/vue-archive 0.0.2-20 → 0.0.2-22
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/es/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-15 → @fangzhongya_utils@0.0.7-16}/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js +0 -0
- package/dist/es/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-15 → @fangzhongya_utils@0.0.7-16}/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js +0 -0
- package/dist/es/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-15 → @fangzhongya_utils@0.0.7-16}/node_modules/@fangzhongya/utils/dist/chunk-GOJN3OQ4.js +0 -0
- package/dist/es/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-15 → @fangzhongya_utils@0.0.7-16}/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js +0 -0
- package/dist/es/node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-Q6FMBSK4.js +18 -0
- package/dist/es/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-15 → @fangzhongya_utils@0.0.7-16}/node_modules/@fangzhongya/utils/dist/chunk-RD4EP3M5.js +0 -0
- package/dist/es/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-15 → @fangzhongya_utils@0.0.7-16}/node_modules/@fangzhongya/utils/dist/chunk-SNABGVNO.js +0 -0
- package/dist/es/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-15 → @fangzhongya_utils@0.0.7-16}/node_modules/@fangzhongya/utils/dist/chunk-UOADEBDH.js +0 -0
- package/dist/es/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-15 → @fangzhongya_utils@0.0.7-16}/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js +0 -0
- package/dist/es/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-15 → @fangzhongya_utils@0.0.7-16}/node_modules/@fangzhongya/utils/dist/chunk-ZVBCHJA5.js +0 -0
- package/dist/es/packages/components/code/index.vue.js +17 -18
- package/dist/es/packages/components/use/index.js +1 -1
- package/dist/es/packages/components/use/retrie/choice/index.vue.js +1 -1
- package/dist/es/packages/components/use/set-code.vue.js +3 -3
- package/dist/es/packages/config.d.ts +2 -0
- package/dist/es/packages/config.js +1 -1
- package/dist/es/packages/index.d.ts +0 -1
- package/dist/es/packages/index.js +5 -7
- package/dist/es/packages/utils/common.js +66 -66
- package/dist/es/packages/utils/glob.d.ts +1 -1
- package/dist/es/packages/utils/glob.js +150 -122
- package/dist/es/packages/utils/index.d.ts +2 -1
- package/dist/es/packages/utils/index.js +16 -13
- package/dist/lib/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-15 → @fangzhongya_utils@0.0.7-16}/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js +0 -0
- package/dist/lib/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-15 → @fangzhongya_utils@0.0.7-16}/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js +0 -0
- package/dist/lib/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-15 → @fangzhongya_utils@0.0.7-16}/node_modules/@fangzhongya/utils/dist/chunk-GOJN3OQ4.js +0 -0
- package/dist/lib/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-15 → @fangzhongya_utils@0.0.7-16}/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js +0 -0
- package/dist/lib/node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-Q6FMBSK4.js +1 -0
- package/dist/lib/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-15 → @fangzhongya_utils@0.0.7-16}/node_modules/@fangzhongya/utils/dist/chunk-RD4EP3M5.js +0 -0
- package/dist/lib/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-15 → @fangzhongya_utils@0.0.7-16}/node_modules/@fangzhongya/utils/dist/chunk-SNABGVNO.js +0 -0
- package/dist/lib/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-15 → @fangzhongya_utils@0.0.7-16}/node_modules/@fangzhongya/utils/dist/chunk-UOADEBDH.js +0 -0
- package/dist/lib/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-15 → @fangzhongya_utils@0.0.7-16}/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js +0 -0
- package/dist/lib/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-15 → @fangzhongya_utils@0.0.7-16}/node_modules/@fangzhongya/utils/dist/chunk-ZVBCHJA5.js +0 -0
- package/dist/lib/packages/components/code/index.vue.js +1 -1
- package/dist/lib/packages/components/use/index.js +1 -1
- package/dist/lib/packages/components/use/retrie/choice/index.vue.js +1 -1
- package/dist/lib/packages/components/use/set-code.vue.js +1 -1
- package/dist/lib/packages/config.d.ts +2 -0
- package/dist/lib/packages/config.js +1 -1
- package/dist/lib/packages/index.d.ts +0 -1
- package/dist/lib/packages/index.js +1 -1
- package/dist/lib/packages/utils/common.js +1 -1
- package/dist/lib/packages/utils/glob.d.ts +1 -1
- package/dist/lib/packages/utils/glob.js +2 -2
- package/dist/lib/packages/utils/index.d.ts +2 -1
- package/dist/lib/packages/utils/index.js +1 -1
- package/dist/node/index.cjs +17975 -0
- package/dist/node/index.d.ts +110 -0
- package/dist/node/index.js +17975 -0
- package/package.json +29 -5
- package/dist/es/node_modules/.pnpm/@fangzhongya_utils@0.0.7-15/node_modules/@fangzhongya/utils/dist/chunk-5PX3AFSC.js +0 -6
- package/dist/es/node_modules/.pnpm/@fangzhongya_utils@0.0.7-15/node_modules/@fangzhongya/utils/dist/chunk-XQB2HUHZ.js +0 -18
- package/dist/es/packages/node/index.d.ts +0 -2
- package/dist/es/packages/node/index.js +0 -155
- package/dist/lib/node_modules/.pnpm/@fangzhongya_utils@0.0.7-15/node_modules/@fangzhongya/utils/dist/chunk-5PX3AFSC.js +0 -1
- package/dist/lib/node_modules/.pnpm/@fangzhongya_utils@0.0.7-15/node_modules/@fangzhongya/utils/dist/chunk-XQB2HUHZ.js +0 -1
- package/dist/lib/packages/node/index.d.ts +0 -2
- package/dist/lib/packages/node/index.js +0 -1
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
function s(e, c) {
|
|
2
|
+
return new Promise((n, f) => {
|
|
3
|
+
let t = 0;
|
|
4
|
+
const i = e.length;
|
|
5
|
+
i > 0 ? e.forEach((...o) => {
|
|
6
|
+
c(
|
|
7
|
+
(...r) => {
|
|
8
|
+
t++, i == t && n(r);
|
|
9
|
+
},
|
|
10
|
+
f,
|
|
11
|
+
...o
|
|
12
|
+
);
|
|
13
|
+
}) : n(e);
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
s as asyncMergeArray
|
|
18
|
+
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as D, watch as T, ref as c, openBlock as u, createElementBlock as p, createElementVNode as e, toDisplayString as m, createVNode as
|
|
1
|
+
import { defineComponent as D, watch as T, ref as c, openBlock as u, createElementBlock as p, createElementVNode as e, toDisplayString as m, createVNode as h, withCtx as _, normalizeClass as k, withModifiers as g, Fragment as $, renderList as j, createBlock as E, withDirectives as L, vShow as N } from "vue";
|
|
2
2
|
import C from "../boxurl/index.vue.js";
|
|
3
3
|
import { toSingle as V } from "../../router/index.js";
|
|
4
4
|
import z from "./highlight.vue.js";
|
|
@@ -35,19 +35,18 @@ const I = { class: "code" }, M = { class: "code-top" }, O = { class: "code-top-b
|
|
|
35
35
|
}
|
|
36
36
|
function d() {
|
|
37
37
|
var l;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
)
|
|
44
|
-
|
|
45
|
-
r.value = n.filter((i) => i.raw);
|
|
38
|
+
o.value = void 0, a.value = !1, t.text && A(
|
|
39
|
+
(l = t.value) == null ? void 0 : l.key,
|
|
40
|
+
t.text,
|
|
41
|
+
"vue"
|
|
42
|
+
).then((n) => {
|
|
43
|
+
F(n).then((s) => {
|
|
44
|
+
r.value = s.filter((i) => i.raw);
|
|
46
45
|
});
|
|
47
|
-
}
|
|
46
|
+
});
|
|
48
47
|
}
|
|
49
|
-
return d(), (l,
|
|
50
|
-
var
|
|
48
|
+
return d(), (l, n) => {
|
|
49
|
+
var s;
|
|
51
50
|
return u(), p("div", I, [
|
|
52
51
|
e("div", M, [
|
|
53
52
|
e("div", O, [
|
|
@@ -64,21 +63,21 @@ const I = { class: "code" }, M = { class: "code-top" }, O = { class: "code-top-b
|
|
|
64
63
|
onClick: S
|
|
65
64
|
}, m(a.value ? "隐藏" : "显示"), 1),
|
|
66
65
|
e("div", R, [
|
|
67
|
-
|
|
66
|
+
h(C, {
|
|
68
67
|
value: t.value
|
|
69
68
|
}, {
|
|
70
|
-
default:
|
|
69
|
+
default: _(() => [
|
|
71
70
|
e("div", {
|
|
72
71
|
class: k(["but-div", {
|
|
73
72
|
on: !(o.value && o.value.value)
|
|
74
73
|
}]),
|
|
75
|
-
onClick:
|
|
74
|
+
onClick: n[0] || (n[0] = g((i) => v(), ["stop"]))
|
|
76
75
|
}, " index.vue ", 2)
|
|
77
76
|
]),
|
|
78
77
|
_: 1
|
|
79
78
|
}, 8, ["value"]),
|
|
80
79
|
(u(!0), p($, null, j(r.value, (i, G) => (u(), E(C, { value: i }, {
|
|
81
|
-
default:
|
|
80
|
+
default: _(() => {
|
|
82
81
|
var f;
|
|
83
82
|
return [
|
|
84
83
|
e("div", {
|
|
@@ -95,9 +94,9 @@ const I = { class: "code" }, M = { class: "code-top" }, O = { class: "code-top-b
|
|
|
95
94
|
])
|
|
96
95
|
]),
|
|
97
96
|
L(e("div", q, [
|
|
98
|
-
|
|
97
|
+
h(z, {
|
|
99
98
|
language: "html",
|
|
100
|
-
code: ((
|
|
99
|
+
code: ((s = o.value) == null ? void 0 : s.raw) || t.text
|
|
101
100
|
}, null, 8, ["code"])
|
|
102
101
|
], 512), [
|
|
103
102
|
[N, a.value]
|
|
@@ -5,7 +5,7 @@ import E from "./set-code.vue.js";
|
|
|
5
5
|
import O from "./set-expose.vue.js";
|
|
6
6
|
import $ from "./set-slot.vue.js";
|
|
7
7
|
import { getPropsValue as D, getEmitsValue as w, getExposeValue as U, getSlotValue as k } from "../../utils/props.js";
|
|
8
|
-
import { firstUpper as h } from "../../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-
|
|
8
|
+
import { firstUpper as h } from "../../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js";
|
|
9
9
|
const K = g({
|
|
10
10
|
/**
|
|
11
11
|
* @props {Stinrg} value 插入数据
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as T, ref as c, computed as h, watch as L, openBlock as s, createElementBlock as i, createElementVNode as f, unref as z, withModifiers as u, withDirectives as D, Fragment as E, renderList as F, normalizeClass as I, toDisplayString as O, vShow as $ } from "vue";
|
|
2
|
-
import { toggleArray as J } from "../../../../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-
|
|
2
|
+
import { toggleArray as J } from "../../../../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-GOJN3OQ4.js";
|
|
3
3
|
import { getSonType as P, getString as q } from "../../util.js";
|
|
4
4
|
const G = { class: "form-select" }, H = ["value", "disabled", "onClick", "onBlur"], K = ["onMousemove", "onMouseout"], Q = { class: "form-select-list" }, R = {
|
|
5
5
|
key: 0,
|
|
@@ -2,9 +2,9 @@ import { defineComponent as C, computed as F, ref as O, openBlock as w, createEl
|
|
|
2
2
|
import { vueFormat as g, getFunctionFormat as H, prettierFormat as J, getFunBody as M } from "./util.js";
|
|
3
3
|
import U from "../code/highlight.vue.js";
|
|
4
4
|
import { copyCode as Z } from "../../utils/index.js";
|
|
5
|
-
import { humpToLine as q } from "../../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-
|
|
6
|
-
import { firstUpper as _ } from "../../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-
|
|
7
|
-
import { firstLower as z } from "../../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-
|
|
5
|
+
import { humpToLine as q } from "../../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js";
|
|
6
|
+
import { firstUpper as _ } from "../../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js";
|
|
7
|
+
import { firstLower as z } from "../../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js";
|
|
8
8
|
const G = { class: "set-code" }, I = /* @__PURE__ */ f("div", null, "代码", -1), K = { class: "but-div set-code-but" }, P = ["onClick"], Q = { class: "set-code-html" }, ot = /* @__PURE__ */ C({
|
|
9
9
|
__name: "set-code",
|
|
10
10
|
props: {
|
|
@@ -25,6 +25,7 @@ export interface Resolver extends Component {
|
|
|
25
25
|
}
|
|
26
26
|
export interface Components extends Component {
|
|
27
27
|
resolver?: Resolver;
|
|
28
|
+
urls?: string[];
|
|
28
29
|
comprops?: string;
|
|
29
30
|
curprops?: string;
|
|
30
31
|
components: GlobComs;
|
|
@@ -56,6 +57,7 @@ export interface ExampleObj {
|
|
|
56
57
|
*/
|
|
57
58
|
componentName?: string | number;
|
|
58
59
|
examples?: GlobComs;
|
|
60
|
+
urls?: string[];
|
|
59
61
|
examplesRaw?: Globs;
|
|
60
62
|
md?: string;
|
|
61
63
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { mergeObject as t } from "../node_modules/.pnpm/@fangzhongya_utils@0.0.7-
|
|
1
|
+
import { mergeObject as t } from "../node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-RD4EP3M5.js";
|
|
2
2
|
const o = {
|
|
3
3
|
components: []
|
|
4
4
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { Config } from './config';
|
|
2
2
|
import type { App } from './vue/dist/vue.esm-bundler.js';
|
|
3
3
|
import type { Router } from 'vue-router';
|
|
4
|
-
export * from './node/index';
|
|
5
4
|
export declare function defineConfig(config: Config): Config;
|
|
6
5
|
declare const _default: {
|
|
7
6
|
install: (app: App, router: Router) => void;
|
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import { init as
|
|
1
|
+
import { init as o } from "./router/index.js";
|
|
2
2
|
import { userConfig as t } from "./config.js";
|
|
3
|
-
|
|
4
|
-
function f(n) {
|
|
3
|
+
function e(n) {
|
|
5
4
|
return t(n);
|
|
6
5
|
}
|
|
7
6
|
const p = {
|
|
8
|
-
install: function(n,
|
|
9
|
-
i
|
|
7
|
+
install: function(n, i) {
|
|
8
|
+
o(i);
|
|
10
9
|
}
|
|
11
10
|
};
|
|
12
11
|
export {
|
|
13
12
|
p as default,
|
|
14
|
-
|
|
15
|
-
a as nodeInit
|
|
13
|
+
e as defineConfig
|
|
16
14
|
};
|
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
import { setSession as E, getSession as w } from "./storage.js";
|
|
2
|
-
import { humpToLine as N } from "../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-
|
|
3
|
-
import { lineToLargeHump as A } from "../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-
|
|
4
|
-
import { appearNum as
|
|
5
|
-
import { getSuffix as x } from "../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-
|
|
6
|
-
const
|
|
7
|
-
function
|
|
8
|
-
let n = N(
|
|
9
|
-
return
|
|
10
|
-
|
|
2
|
+
import { humpToLine as N } from "../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js";
|
|
3
|
+
import { lineToLargeHump as A } from "../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js";
|
|
4
|
+
import { appearNum as m } from "../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-SNABGVNO.js";
|
|
5
|
+
import { getSuffix as x } from "../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-UOADEBDH.js";
|
|
6
|
+
const S = ["vue", "js"];
|
|
7
|
+
function $(e, t) {
|
|
8
|
+
let n = N(e.name), i = [];
|
|
9
|
+
return e.alias && i.push(e.alias + "-" + n), t && t.length > 0 && t.forEach((r) => {
|
|
10
|
+
e.alias && i.push(e.alias + "-" + r + "-" + n), i.push(r + "-" + n);
|
|
11
11
|
}), i;
|
|
12
12
|
}
|
|
13
|
-
function
|
|
14
|
-
return
|
|
15
|
-
let i =
|
|
16
|
-
return i == r ? n.length -
|
|
17
|
-
}),
|
|
13
|
+
function C(e) {
|
|
14
|
+
return e.sort((t, n) => {
|
|
15
|
+
let i = m(t, "/"), r = m(n, "/");
|
|
16
|
+
return i == r ? n.length - t.length : r - i;
|
|
17
|
+
}), e;
|
|
18
18
|
}
|
|
19
|
-
function
|
|
20
|
-
let i =
|
|
21
|
-
(!i || i.length == 0) && (i =
|
|
19
|
+
function T(e = [], t = [], n = []) {
|
|
20
|
+
let i = t;
|
|
21
|
+
(!i || i.length == 0) && (i = S);
|
|
22
22
|
let r = [];
|
|
23
|
-
return
|
|
24
|
-
i == null || i.forEach((
|
|
25
|
-
r.push(
|
|
23
|
+
return e && e.length > 0 && (r = e), n && n.length > 0 && n.forEach((u) => {
|
|
24
|
+
i == null || i.forEach((p) => {
|
|
25
|
+
r.push(u + "." + p);
|
|
26
26
|
});
|
|
27
|
-
}), r = [...new Set(r)],
|
|
27
|
+
}), r = [...new Set(r)], C(r);
|
|
28
28
|
}
|
|
29
|
-
function
|
|
30
|
-
for (let r = 0; r <
|
|
31
|
-
const
|
|
32
|
-
let f =
|
|
29
|
+
function v(e, t, n = {}, i = "") {
|
|
30
|
+
for (let r = 0; r < t.length; r++) {
|
|
31
|
+
const u = t[r], p = new RegExp("^.*/([^/]+)" + u + "$");
|
|
32
|
+
let f = e.match(p);
|
|
33
33
|
if (f) {
|
|
34
34
|
const a = [], o = {};
|
|
35
35
|
let c = "";
|
|
36
|
-
Object.keys(n).forEach((
|
|
37
|
-
let
|
|
38
|
-
|
|
36
|
+
Object.keys(n).forEach((g) => {
|
|
37
|
+
let h = n[g];
|
|
38
|
+
e.startsWith(h + "/") && (c = h, o[g] = h, a.push(g));
|
|
39
39
|
});
|
|
40
40
|
let l = f[1], s = {
|
|
41
41
|
dir: "",
|
|
42
|
-
suffix: x(
|
|
42
|
+
suffix: x(e),
|
|
43
43
|
name: A(l),
|
|
44
44
|
value: l,
|
|
45
45
|
key: "",
|
|
@@ -53,70 +53,70 @@ function T(t, e, n = {}, i = "") {
|
|
|
53
53
|
mds: [],
|
|
54
54
|
tests: void 0
|
|
55
55
|
};
|
|
56
|
-
return s.aliasNames =
|
|
56
|
+
return s.aliasNames = $(
|
|
57
57
|
s,
|
|
58
58
|
a
|
|
59
59
|
), s;
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
function O(
|
|
64
|
-
E("aside.key",
|
|
63
|
+
function O(e) {
|
|
64
|
+
E("aside.key", e);
|
|
65
65
|
}
|
|
66
66
|
function U() {
|
|
67
67
|
return w("aside.key");
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
let
|
|
71
|
-
return
|
|
69
|
+
function K(e) {
|
|
70
|
+
let t = e.match(/\/([^\/]+)\/$/);
|
|
71
|
+
return t && t.length > 1 ? t[1] : "";
|
|
72
72
|
}
|
|
73
|
-
function
|
|
74
|
-
return
|
|
75
|
-
|
|
76
|
-
).test(
|
|
73
|
+
function L(e, t) {
|
|
74
|
+
return t ? new RegExp(
|
|
75
|
+
t + ".+(\\.(js|ts))?$"
|
|
76
|
+
).test(e) : !1;
|
|
77
77
|
}
|
|
78
|
-
function
|
|
79
|
-
return
|
|
80
|
-
"/" +
|
|
81
|
-
).test(
|
|
78
|
+
function M(e, t) {
|
|
79
|
+
return t ? new RegExp(
|
|
80
|
+
"/" + t + "(\\.(js|ts))?$"
|
|
81
|
+
).test(e) : !1;
|
|
82
82
|
}
|
|
83
|
-
function V(
|
|
84
|
-
const
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
), a =
|
|
89
|
-
return
|
|
90
|
-
const c = new RegExp("^" +
|
|
83
|
+
function V(e, t, n, i, r) {
|
|
84
|
+
const u = [], p = [], f = T(
|
|
85
|
+
t.matchexts,
|
|
86
|
+
t.extensions,
|
|
87
|
+
t.matchs
|
|
88
|
+
), a = K(t.dir);
|
|
89
|
+
return e.forEach((o) => {
|
|
90
|
+
const c = new RegExp("^" + t.dir);
|
|
91
91
|
let l = o.replace(c, "");
|
|
92
|
-
if (r.comprops &&
|
|
92
|
+
if (r.comprops && L(l, r.comprops) || r.curprops && M(l, r.curprops)) {
|
|
93
93
|
let s = {};
|
|
94
|
-
s.comprops = r.comprops || "", s.curprops = r.curprops || "", s.value = l, s.dir =
|
|
94
|
+
s.comprops = r.comprops || "", s.curprops = r.curprops || "", s.value = l, s.dir = t.dir, s.suffix = x(o), s.tdir = a, s.key = o, s.raw = "", s.getRaw = d(n, o), u.push(s);
|
|
95
95
|
} else {
|
|
96
|
-
let s =
|
|
96
|
+
let s = v(
|
|
97
97
|
l,
|
|
98
98
|
f,
|
|
99
|
-
|
|
100
|
-
|
|
99
|
+
t.aliass,
|
|
100
|
+
t.alias
|
|
101
101
|
);
|
|
102
|
-
s && (s.comprops = r.comprops, s.curprops = r.curprops, s.dir =
|
|
102
|
+
s && (s.comprops = r.comprops, s.curprops = r.curprops, s.dir = t.dir, s.tdir = a, s.key = o, s.component = i[o], s.getRaw = d(n, o), p.push(s));
|
|
103
103
|
}
|
|
104
104
|
}), {
|
|
105
|
-
props:
|
|
106
|
-
components:
|
|
105
|
+
props: u,
|
|
106
|
+
components: p
|
|
107
107
|
};
|
|
108
108
|
}
|
|
109
|
-
function d(
|
|
110
|
-
return typeof
|
|
109
|
+
function d(e, t) {
|
|
110
|
+
return typeof e == "function" ? e : e && (e[t] || e);
|
|
111
111
|
}
|
|
112
112
|
export {
|
|
113
|
-
|
|
113
|
+
S as defaultExtensions,
|
|
114
114
|
U as getAsideKey,
|
|
115
115
|
V as getComponentsArr,
|
|
116
|
-
|
|
116
|
+
T as getMatchs,
|
|
117
117
|
d as getRawValue,
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
118
|
+
v as getUrlName,
|
|
119
|
+
L as isComprops,
|
|
120
|
+
M as isCurprops,
|
|
121
121
|
O as setAsideKey
|
|
122
122
|
};
|
|
@@ -15,7 +15,7 @@ export declare function getKeyMds(key: string): MdObj[] | undefined;
|
|
|
15
15
|
* @param {*} arr
|
|
16
16
|
* @returns
|
|
17
17
|
*/
|
|
18
|
-
export declare function getTestImportUrl(url: string, text: string, type: string): Array<PropObj
|
|
18
|
+
export declare function getTestImportUrl(url: string, text: string, type: string): Promise<Array<PropObj>>;
|
|
19
19
|
export declare function getLocalTextArr(arr: Array<PropObj>): Promise<TextObj[]>;
|
|
20
20
|
export declare const defaultName = "default";
|
|
21
21
|
export declare function getCompoNameKey(key: string): ComponentsObj;
|