@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getTextNotes as T } from "../../utils/index.js";
|
|
2
|
-
import { props as
|
|
3
|
-
const
|
|
2
|
+
import { props as p, emits as g, expose as f, slot as h } from "../../utils/props.js";
|
|
3
|
+
const n = {
|
|
4
4
|
titles: [],
|
|
5
5
|
propss: [],
|
|
6
6
|
slots: [],
|
|
@@ -15,14 +15,14 @@ function O(e, s) {
|
|
|
15
15
|
["(", ")"],
|
|
16
16
|
["{", "}"],
|
|
17
17
|
["[", "]"]
|
|
18
|
-
], a = l.map((
|
|
18
|
+
], a = l.map((i) => i[0]).indexOf(r);
|
|
19
19
|
if (a != -1) {
|
|
20
|
-
let
|
|
20
|
+
let o = new RegExp(
|
|
21
21
|
"^" + l[a][0] + "((.|\\n|\\r)+?)" + l[a][1] + (s ? "\\s" : ""),
|
|
22
22
|
"gi"
|
|
23
23
|
).exec(e);
|
|
24
|
-
if (
|
|
25
|
-
return
|
|
24
|
+
if (o)
|
|
25
|
+
return o[0];
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
function y(e) {
|
|
@@ -34,13 +34,13 @@ function y(e) {
|
|
|
34
34
|
r = r.trim();
|
|
35
35
|
else {
|
|
36
36
|
if (r.includes("=")) {
|
|
37
|
-
const
|
|
38
|
-
r =
|
|
39
|
-
const E =
|
|
40
|
-
|
|
37
|
+
const d = r.split("=");
|
|
38
|
+
r = d[0];
|
|
39
|
+
const E = d[1] + " " + l, b = O(E, !0);
|
|
40
|
+
b ? (t = b, l = E.replace(b, "")) : t = e.default || d[1] || "";
|
|
41
41
|
}
|
|
42
|
-
const
|
|
43
|
-
|
|
42
|
+
const o = /\s*\((.*)\)\s/gi.exec(l);
|
|
43
|
+
o && o.length > 0 && (a = o[1], l = l.replace(o[0], ""));
|
|
44
44
|
}
|
|
45
45
|
return e.name = r, e.default = t || "", e.description = l, e.selectable = a, e;
|
|
46
46
|
}
|
|
@@ -56,14 +56,14 @@ function w(e) {
|
|
|
56
56
|
], r = u(e), l = {};
|
|
57
57
|
s.forEach((t) => {
|
|
58
58
|
l[t] = r.obj[t];
|
|
59
|
-
}),
|
|
59
|
+
}), x(l), r.arr.forEach((t) => {
|
|
60
60
|
m(t.key, t.value);
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
|
|
63
|
+
function x(e) {
|
|
64
|
+
n.titles.push(e);
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function j(e) {
|
|
67
67
|
let s = [
|
|
68
68
|
"props",
|
|
69
69
|
"name",
|
|
@@ -75,80 +75,67 @@ function k(e) {
|
|
|
75
75
|
], r = u(e), l = {};
|
|
76
76
|
s.forEach((t) => {
|
|
77
77
|
l[t] = r.obj[t];
|
|
78
|
-
}),
|
|
78
|
+
}), c(l, "props"), r.arr.forEach((t) => {
|
|
79
79
|
m(t.key, t.value);
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
|
-
function
|
|
83
|
-
let s = [
|
|
84
|
-
"slot",
|
|
85
|
-
"name",
|
|
86
|
-
"selectable",
|
|
87
|
-
"description",
|
|
88
|
-
"descriptions"
|
|
89
|
-
], r = u(e), l = {};
|
|
82
|
+
function k(e) {
|
|
83
|
+
let s = ["slot", "name", "selectable", "description", "descriptions"], r = u(e), l = {};
|
|
90
84
|
s.forEach((t) => {
|
|
91
85
|
l[t] = r.obj[t];
|
|
92
|
-
}),
|
|
86
|
+
}), c(l, "slot"), r.arr.forEach((t) => {
|
|
93
87
|
m(t.key, t.value);
|
|
94
88
|
});
|
|
95
89
|
}
|
|
96
|
-
function
|
|
97
|
-
let s = [
|
|
98
|
-
"emits",
|
|
99
|
-
"name",
|
|
100
|
-
"selectable",
|
|
101
|
-
"description",
|
|
102
|
-
"descriptions"
|
|
103
|
-
], r = u(e), l = {};
|
|
90
|
+
function F(e) {
|
|
91
|
+
let s = ["emits", "name", "selectable", "description", "descriptions"], r = u(e), l = {};
|
|
104
92
|
s.forEach((t) => {
|
|
105
93
|
l[t] = r.obj[t];
|
|
106
|
-
}),
|
|
94
|
+
}), c(l, "emits"), r.arr.forEach((t) => {
|
|
107
95
|
m(t.key, t.value);
|
|
108
96
|
});
|
|
109
97
|
}
|
|
110
|
-
function
|
|
98
|
+
function N(e) {
|
|
111
99
|
let s = [
|
|
112
100
|
"expose",
|
|
113
101
|
"name",
|
|
114
102
|
"type",
|
|
103
|
+
"return",
|
|
115
104
|
"selectable",
|
|
116
105
|
"description",
|
|
117
106
|
"descriptions"
|
|
118
107
|
], r = u(e), l = {};
|
|
119
108
|
s.forEach((t) => {
|
|
120
109
|
l[t] = r.obj[t];
|
|
121
|
-
}),
|
|
110
|
+
}), c(l, "expose"), r.arr.forEach((t) => {
|
|
122
111
|
m(t.key, t.value);
|
|
123
112
|
});
|
|
124
113
|
}
|
|
125
|
-
function
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
t >= 0 && (c[s + "s"].splice(t, 1), r.splice(t, 1)), c[s + "s"].push(e), r.push(l), c[s + "name"] = r;
|
|
114
|
+
function c(e, s) {
|
|
115
|
+
const r = n[s + "name"] || [], l = e.name ?? e[s]?.name, t = r.indexOf(l);
|
|
116
|
+
t >= 0 && (n[s + "s"].splice(t, 1), r.splice(t, 1)), n[s + "s"].push(e), r.push(l), n[s + "name"] = r;
|
|
129
117
|
}
|
|
130
|
-
function
|
|
131
|
-
Object.keys(
|
|
132
|
-
|
|
118
|
+
function P() {
|
|
119
|
+
Object.keys(n).forEach((e) => {
|
|
120
|
+
n[e] = [];
|
|
133
121
|
});
|
|
134
122
|
}
|
|
135
123
|
function u(e, s) {
|
|
136
|
-
var t;
|
|
137
124
|
const r = {
|
|
138
|
-
descriptions:
|
|
125
|
+
descriptions: e?.description || ""
|
|
139
126
|
}, l = [];
|
|
140
|
-
return e
|
|
141
|
-
let
|
|
142
|
-
if (!r.hasOwnProperty(
|
|
143
|
-
r[
|
|
127
|
+
return e?.tags && e.tags?.forEach((t) => {
|
|
128
|
+
let a = t.tag, i = y(t);
|
|
129
|
+
if (!r.hasOwnProperty(a))
|
|
130
|
+
r[a] = i;
|
|
144
131
|
else {
|
|
145
|
-
const
|
|
146
|
-
|
|
147
|
-
key:
|
|
148
|
-
value:
|
|
132
|
+
const o = {};
|
|
133
|
+
o[a] = i, l.push({
|
|
134
|
+
key: a,
|
|
135
|
+
value: o
|
|
149
136
|
});
|
|
150
137
|
}
|
|
151
|
-
})
|
|
138
|
+
}), {
|
|
152
139
|
arr: l,
|
|
153
140
|
obj: r
|
|
154
141
|
};
|
|
@@ -156,136 +143,138 @@ function u(e, s) {
|
|
|
156
143
|
function m(e, s) {
|
|
157
144
|
switch (e) {
|
|
158
145
|
case "title":
|
|
159
|
-
return
|
|
146
|
+
return x(s), !0;
|
|
160
147
|
case "text":
|
|
161
|
-
return
|
|
148
|
+
return x(s), !0;
|
|
162
149
|
case "props":
|
|
163
|
-
return
|
|
150
|
+
return c(s, "props"), !0;
|
|
164
151
|
case "slot":
|
|
165
|
-
return
|
|
152
|
+
return c(s, "slot"), !0;
|
|
166
153
|
case "emits":
|
|
167
|
-
return
|
|
154
|
+
return c(s, "emits"), !0;
|
|
168
155
|
case "expose":
|
|
169
|
-
return
|
|
156
|
+
return c(s, "expose"), !0;
|
|
170
157
|
default:
|
|
171
158
|
return !1;
|
|
172
159
|
}
|
|
173
160
|
}
|
|
174
|
-
function
|
|
161
|
+
function z(e, s) {
|
|
175
162
|
switch (e) {
|
|
176
163
|
case "title":
|
|
177
164
|
return w(s), !0;
|
|
178
165
|
case "props":
|
|
179
|
-
return
|
|
166
|
+
return j(s), !0;
|
|
180
167
|
case "slot":
|
|
181
|
-
return
|
|
168
|
+
return k(s), !0;
|
|
182
169
|
case "emits":
|
|
183
|
-
return
|
|
170
|
+
return F(s), !0;
|
|
184
171
|
case "expose":
|
|
185
|
-
return
|
|
172
|
+
return N(s), !0;
|
|
186
173
|
default:
|
|
187
174
|
return !1;
|
|
188
175
|
}
|
|
189
176
|
}
|
|
190
|
-
function
|
|
191
|
-
return
|
|
192
|
-
let r =
|
|
177
|
+
function A(e) {
|
|
178
|
+
return P(), e?.forEach((s) => {
|
|
179
|
+
let r = s?.tags || [], l = r?.length || 0;
|
|
193
180
|
if (l > 0)
|
|
194
181
|
for (let t = 0; t < l; t++) {
|
|
195
182
|
const a = r[t] || {};
|
|
196
|
-
if (
|
|
183
|
+
if (z(a.tag, s))
|
|
197
184
|
break;
|
|
198
185
|
}
|
|
199
|
-
}),
|
|
186
|
+
}), n;
|
|
200
187
|
}
|
|
201
|
-
function
|
|
188
|
+
function S(e) {
|
|
202
189
|
let s = T(e);
|
|
203
|
-
return
|
|
190
|
+
return A(s);
|
|
204
191
|
}
|
|
205
|
-
const
|
|
192
|
+
const _ = [
|
|
206
193
|
{
|
|
207
194
|
label: "属性名",
|
|
208
195
|
prop: "name",
|
|
209
|
-
formatter:
|
|
196
|
+
formatter: p.name
|
|
210
197
|
},
|
|
211
198
|
{
|
|
212
199
|
label: "说明",
|
|
213
200
|
prop: "description",
|
|
214
|
-
formatter:
|
|
201
|
+
formatter: p.description
|
|
215
202
|
},
|
|
216
203
|
{
|
|
217
204
|
label: "类型",
|
|
218
205
|
prop: "type",
|
|
219
|
-
formatter:
|
|
206
|
+
formatter: p.type
|
|
220
207
|
},
|
|
221
208
|
{
|
|
222
209
|
label: "可选值",
|
|
223
210
|
prop: "selectable",
|
|
224
|
-
formatter:
|
|
211
|
+
formatter: p.selectable
|
|
225
212
|
},
|
|
226
213
|
{
|
|
227
214
|
label: "默认值",
|
|
228
215
|
prop: "default",
|
|
229
|
-
formatter:
|
|
216
|
+
formatter: p.default
|
|
230
217
|
}
|
|
231
|
-
],
|
|
218
|
+
], q = [
|
|
232
219
|
{
|
|
233
220
|
label: "事件名",
|
|
234
221
|
prop: "name",
|
|
235
|
-
formatter:
|
|
222
|
+
formatter: g.name
|
|
236
223
|
},
|
|
237
224
|
{
|
|
238
225
|
label: "说明",
|
|
239
226
|
prop: "description",
|
|
240
|
-
formatter:
|
|
227
|
+
formatter: g.description
|
|
241
228
|
},
|
|
242
229
|
{
|
|
243
230
|
label: "回调参数",
|
|
244
231
|
prop: "selectable",
|
|
245
|
-
formatter:
|
|
232
|
+
formatter: g.selectable
|
|
246
233
|
}
|
|
247
|
-
],
|
|
234
|
+
], v = [
|
|
248
235
|
{
|
|
249
236
|
label: "方法名",
|
|
250
237
|
prop: "name",
|
|
251
|
-
formatter:
|
|
238
|
+
formatter: f.name
|
|
252
239
|
},
|
|
253
240
|
{
|
|
254
241
|
label: "说明",
|
|
255
242
|
prop: "description",
|
|
256
|
-
formatter:
|
|
243
|
+
formatter: f.description
|
|
257
244
|
},
|
|
258
245
|
{
|
|
259
246
|
label: "参数",
|
|
260
247
|
prop: "selectable",
|
|
261
|
-
formatter:
|
|
248
|
+
formatter: f.selectable
|
|
262
249
|
},
|
|
263
250
|
{
|
|
264
251
|
label: "返回值",
|
|
265
252
|
prop: "type",
|
|
266
|
-
formatter
|
|
253
|
+
formatter(e) {
|
|
254
|
+
return f.return(e) ?? f.type(e);
|
|
255
|
+
}
|
|
267
256
|
}
|
|
268
|
-
],
|
|
257
|
+
], B = [
|
|
269
258
|
{
|
|
270
259
|
label: "插槽名",
|
|
271
260
|
prop: "name",
|
|
272
|
-
formatter:
|
|
261
|
+
formatter: h.name
|
|
273
262
|
},
|
|
274
263
|
{
|
|
275
264
|
label: "说明",
|
|
276
265
|
prop: "description",
|
|
277
|
-
formatter:
|
|
266
|
+
formatter: h.description
|
|
278
267
|
},
|
|
279
268
|
{
|
|
280
269
|
label: "作用域参数",
|
|
281
270
|
prop: "selectable",
|
|
282
|
-
formatter:
|
|
271
|
+
formatter: h.selectable
|
|
283
272
|
}
|
|
284
273
|
];
|
|
285
274
|
export {
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
275
|
+
S as getNotesText,
|
|
276
|
+
q as temits,
|
|
277
|
+
v as texpose,
|
|
278
|
+
_ as tprops,
|
|
279
|
+
B as tslot
|
|
291
280
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),B=require("../use/index.cjs"),x=require("./info.vue.cjs"),y=require("./props.vue.cjs"),q=require("../../config.cjs"),C=require("../md/index.vue.cjs");require("./index.cjs");const
|
|
1
|
+
"use strict";const e=require("vue"),B=require("../use/index.cjs"),x=require("./info.vue.cjs"),y=require("./props.vue.cjs"),q=require("../../config.cjs"),C=require("../md/index.vue.cjs");require("./index.cjs");const _=require("../../utils/glob.cjs"),h={class:"compo"},N={key:0,class:"compo-md"},V={key:0,class:"compo-md-list"},E={key:1,class:"compo-use"},b=e.defineComponent({__name:"index",props:{value:Object},setup(r){const t=r,d=q.getConfig("useparam"),c=e.ref(""),u=e.reactive({md:!0}),o=e.ref([]),a=e.ref([]),v=e.ref([]),p=e.ref([]),i=e.ref([]);function k(n){let{propss:l,slots:s,emitss:f,exposes:g}=n;a.value=l,i.value=s,v.value=f,p.value=g}e.watch(()=>t.value,()=>{m()});function m(){t.value?.key&&(_.getLocalTextComponents(t.value?.key).then(n=>{c.value=n}),o.value=_.getKeyMds(t.value?.key)||[])}return m(),(n,l)=>(e.openBlock(),e.createElementBlock("div",h,[e.createVNode(x,{value:r.value},null,8,["value"]),e.createVNode(y,{onChange:k,value:c.value},null,8,["value"]),o.value&&o.value.length?(e.openBlock(),e.createElementBlock("div",N,[e.createElementVNode("div",{onClick:l[0]||(l[0]=s=>u.md=!u.md),class:"compo-md-name"}," 说明文档 "),u.md?(e.openBlock(),e.createElementBlock("div",V,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,s=>(e.openBlock(),e.createBlock(C,{value:s},null,8,["value"]))),256))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.unref(d)?(e.openBlock(),e.createElementBlock("div",E,[e.createVNode(e.unref(B),{value:t.value,param:{props:a.value,slot:i.value,emits:v.value,expose:p.value}},null,8,["value","param"])])):e.createCommentVNode("",!0)]))}});module.exports=b;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as $, ref as
|
|
1
|
+
import { defineComponent as $, ref as e, reactive as B, watch as N, createElementBlock as s, openBlock as t, createVNode as r, createCommentVNode as c, createElementVNode as V, Fragment as E, renderList as L, createBlock as b, unref as g } from "vue";
|
|
2
2
|
import j from "../use/index.js";
|
|
3
3
|
import w from "./info.vue.js";
|
|
4
4
|
import D from "./props.vue.js";
|
|
@@ -20,54 +20,53 @@ const T = { class: "compo" }, U = {
|
|
|
20
20
|
props: {
|
|
21
21
|
value: Object
|
|
22
22
|
},
|
|
23
|
-
setup(
|
|
24
|
-
const
|
|
23
|
+
setup(v) {
|
|
24
|
+
const o = v, x = F("useparam"), i = e(""), m = B({
|
|
25
25
|
md: !0
|
|
26
|
-
}),
|
|
27
|
-
function
|
|
28
|
-
let { propss:
|
|
29
|
-
|
|
26
|
+
}), a = e([]), p = e([]), d = e([]), f = e([]), _ = e([]);
|
|
27
|
+
function h(l) {
|
|
28
|
+
let { propss: n, slots: u, emitss: y, exposes: C } = l;
|
|
29
|
+
p.value = n, _.value = u, d.value = y, f.value = C;
|
|
30
30
|
}
|
|
31
31
|
N(
|
|
32
|
-
() =>
|
|
32
|
+
() => o.value,
|
|
33
33
|
() => {
|
|
34
|
-
|
|
34
|
+
k();
|
|
35
35
|
}
|
|
36
36
|
);
|
|
37
|
-
function
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
p.value = r;
|
|
37
|
+
function k() {
|
|
38
|
+
o.value?.key && (M(o.value?.key).then(
|
|
39
|
+
(l) => {
|
|
40
|
+
i.value = l;
|
|
42
41
|
}
|
|
43
|
-
),
|
|
42
|
+
), a.value = O(o.value?.key) || []);
|
|
44
43
|
}
|
|
45
|
-
return
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
onChange:
|
|
49
|
-
value:
|
|
44
|
+
return k(), (l, n) => (t(), s("div", T, [
|
|
45
|
+
r(w, { value: v.value }, null, 8, ["value"]),
|
|
46
|
+
r(D, {
|
|
47
|
+
onChange: h,
|
|
48
|
+
value: i.value
|
|
50
49
|
}, null, 8, ["value"]),
|
|
51
|
-
|
|
50
|
+
a.value && a.value.length ? (t(), s("div", U, [
|
|
52
51
|
V("div", {
|
|
53
|
-
onClick:
|
|
52
|
+
onClick: n[0] || (n[0] = (u) => m.md = !m.md),
|
|
54
53
|
class: "compo-md-name"
|
|
55
54
|
}, " 说明文档 "),
|
|
56
|
-
m.md ? (
|
|
57
|
-
(
|
|
58
|
-
])) :
|
|
59
|
-
])) :
|
|
60
|
-
x
|
|
61
|
-
|
|
62
|
-
value:
|
|
55
|
+
m.md ? (t(), s("div", q, [
|
|
56
|
+
(t(!0), s(E, null, L(a.value, (u) => (t(), b(K, { value: u }, null, 8, ["value"]))), 256))
|
|
57
|
+
])) : c("", !0)
|
|
58
|
+
])) : c("", !0),
|
|
59
|
+
g(x) ? (t(), s("div", z, [
|
|
60
|
+
r(g(j), {
|
|
61
|
+
value: o.value,
|
|
63
62
|
param: {
|
|
64
|
-
props:
|
|
65
|
-
slot:
|
|
66
|
-
emits:
|
|
67
|
-
expose:
|
|
63
|
+
props: p.value,
|
|
64
|
+
slot: _.value,
|
|
65
|
+
emits: d.value,
|
|
66
|
+
expose: f.value
|
|
68
67
|
}
|
|
69
68
|
}, null, 8, ["value", "param"])
|
|
70
|
-
])) :
|
|
69
|
+
])) : c("", !0)
|
|
71
70
|
]));
|
|
72
71
|
}
|
|
73
72
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),
|
|
1
|
+
"use strict";const e=require("vue"),a=require("../boxurl/index.vue.cjs"),l={class:"compo-info"},c={class:"compo-info-name"},i={class:"compo-info-name-span"},m={key:0,class:"compo-info-name-li"},p={class:"compo-info-name-li-span"},r={class:"compo-info-name-li"},u={class:"compo-info-name-li-span"},d=e.defineComponent({__name:"info",props:{value:{type:Object}},setup(t){const o=t;return(_,n)=>(e.openBlock(),e.createElementBlock("div",l,[e.createVNode(a,{value:o.value},{default:e.withCtx(()=>[e.createElementVNode("div",c,[e.createElementVNode("h2",i,e.toDisplayString(o.value?.name),1),o.value?.aliasNames&&o.value?.aliasNames.length?(e.openBlock(),e.createElementBlock("div",m,[n[0]||(n[0]=e.createElementVNode("span",{class:"compo-info-name-li-span"}," 别名 ",-1)),e.createElementVNode("span",p,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value.aliasNames,s=>(e.openBlock(),e.createElementBlock("span",null,e.toDisplayString(s),1))),256))])])):e.createCommentVNode("",!0),e.createElementVNode("div",r,[n[1]||(n[1]=e.createElementVNode("span",{class:"compo-info-name-li-span"}," 文件路径 ",-1)),e.createElementVNode("span",u,e.toDisplayString(o.value?.key),1)])])]),_:1},8,["value"])]))}});module.exports=d;
|
|
@@ -1,44 +1,41 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as m, createElementBlock as n, openBlock as a, createVNode as c, withCtx as p, createElementVNode as e, createCommentVNode as r, toDisplayString as t, Fragment as u, renderList as _ } from "vue";
|
|
2
|
+
import d from "../boxurl/index.vue.js";
|
|
3
|
+
const f = { class: "compo-info" }, v = { class: "compo-info-name" }, h = { class: "compo-info-name-span" }, N = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "compo-info-name-li"
|
|
6
|
-
},
|
|
6
|
+
}, k = { class: "compo-info-name-li-span" }, y = { class: "compo-info-name-li" }, g = { class: "compo-info-name-li-span" }, B = /* @__PURE__ */ m({
|
|
7
7
|
__name: "info",
|
|
8
8
|
props: {
|
|
9
9
|
value: {
|
|
10
10
|
type: Object
|
|
11
11
|
}
|
|
12
12
|
},
|
|
13
|
-
setup(
|
|
14
|
-
const o =
|
|
15
|
-
return (
|
|
16
|
-
|
|
13
|
+
setup(i) {
|
|
14
|
+
const o = i;
|
|
15
|
+
return (x, s) => (a(), n("div", f, [
|
|
16
|
+
c(d, {
|
|
17
17
|
value: o.value
|
|
18
18
|
}, {
|
|
19
|
-
default:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
(
|
|
25
|
-
|
|
26
|
-
e("span", C, [
|
|
27
|
-
(a(!0), n(v, null, h(o.value.aliasNames, (r) => (a(), n("span", null, t(r), 1))), 256))
|
|
28
|
-
])
|
|
29
|
-
])) : f("", !0),
|
|
30
|
-
e("div", V, [
|
|
31
|
-
s[1] || (s[1] = e("span", { class: "compo-info-name-li-span" }, " 文件路径 ", -1)),
|
|
32
|
-
e("span", B, t((c = o.value) == null ? void 0 : c.key), 1)
|
|
19
|
+
default: p(() => [
|
|
20
|
+
e("div", v, [
|
|
21
|
+
e("h2", h, t(o.value?.name), 1),
|
|
22
|
+
o.value?.aliasNames && o.value?.aliasNames.length ? (a(), n("div", N, [
|
|
23
|
+
s[0] || (s[0] = e("span", { class: "compo-info-name-li-span" }, " 别名 ", -1)),
|
|
24
|
+
e("span", k, [
|
|
25
|
+
(a(!0), n(u, null, _(o.value.aliasNames, (l) => (a(), n("span", null, t(l), 1))), 256))
|
|
33
26
|
])
|
|
27
|
+
])) : r("", !0),
|
|
28
|
+
e("div", y, [
|
|
29
|
+
s[1] || (s[1] = e("span", { class: "compo-info-name-li-span" }, " 文件路径 ", -1)),
|
|
30
|
+
e("span", g, t(o.value?.key), 1)
|
|
34
31
|
])
|
|
35
|
-
]
|
|
36
|
-
|
|
32
|
+
])
|
|
33
|
+
]),
|
|
37
34
|
_: 1
|
|
38
35
|
}, 8, ["value"])
|
|
39
36
|
]));
|
|
40
37
|
}
|
|
41
38
|
});
|
|
42
39
|
export {
|
|
43
|
-
|
|
40
|
+
B as default
|
|
44
41
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("vue");function f(u,e,d){let s=[],m=[],i=[];const p=t=>t,n=()=>{i.length>0&&(s.push(e("div",{class:"compo-top-list"},i)),i=[])},a=()=>{s.length>0&&(m.push(e("div",{class:"compo-top-division"},s)),s=[])};return u?.forEach(t=>{const l=[];let o=!1;if(t.date&&(o=!0,l.push(e("div",{class:"compo-top-date"},[e("span",{},"更新时间:"),e("span",{},[p(t.date.name+" "+t.date.description)])]))),t.author&&(o=!0,l.push(e("div",{class:"compo-top-author"},[e("span",{},"作者:"),e("span",{},[p(t.author.name+" "+t.author.description)])]))),t.title&&(t.title.type||t.title.name||t.title.description)){n(),o&&a();let c=t.title.type||"div";s.push(e(c,{class:"compo-top-title"},[e("span",{},[p(t.title.name+" "+t.title.description)])]))}if(o&&(i.length>0&&(n(),a()),s.push(e("div",{class:"compo-top-info"},l))),t.text){let c=t.text.type||"div";i.push(e(c,{class:"compo-top-text"},[e("span",{},[p(t.text.name+" "+t.text.description)])]))}}),n(),a(),m}const v=r.defineComponent({props:{value:Array},render(u,e,d){const s=f(d.value,r.h);return r.h("div",{class:"compo-top"},s)}});exports.default=v;exports.getTopDom=f;
|