@fangzhongya/vue-archive 0.0.2-21 → 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.
Files changed (58) hide show
  1. 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
  2. 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
  3. 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
  4. 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
  5. package/dist/es/node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-Q6FMBSK4.js +18 -0
  6. 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
  7. 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
  8. 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
  9. 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
  10. 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
  11. package/dist/es/packages/components/code/index.vue.js +17 -18
  12. package/dist/es/packages/components/use/index.js +1 -1
  13. package/dist/es/packages/components/use/retrie/choice/index.vue.js +1 -1
  14. package/dist/es/packages/components/use/set-code.vue.js +3 -3
  15. package/dist/es/packages/config.d.ts +2 -0
  16. package/dist/es/packages/config.js +1 -1
  17. package/dist/es/packages/index.d.ts +0 -1
  18. package/dist/es/packages/index.js +5 -7
  19. package/dist/es/packages/utils/common.js +66 -66
  20. package/dist/es/packages/utils/glob.d.ts +1 -1
  21. package/dist/es/packages/utils/glob.js +150 -122
  22. package/dist/es/packages/utils/index.d.ts +2 -1
  23. package/dist/es/packages/utils/index.js +16 -13
  24. 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
  25. 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
  26. 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
  27. 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
  28. package/dist/lib/node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-Q6FMBSK4.js +1 -0
  29. 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
  30. 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
  31. 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
  32. 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
  33. 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
  34. package/dist/lib/packages/components/code/index.vue.js +1 -1
  35. package/dist/lib/packages/components/use/index.js +1 -1
  36. package/dist/lib/packages/components/use/retrie/choice/index.vue.js +1 -1
  37. package/dist/lib/packages/components/use/set-code.vue.js +1 -1
  38. package/dist/lib/packages/config.d.ts +2 -0
  39. package/dist/lib/packages/config.js +1 -1
  40. package/dist/lib/packages/index.d.ts +0 -1
  41. package/dist/lib/packages/index.js +1 -1
  42. package/dist/lib/packages/utils/common.js +1 -1
  43. package/dist/lib/packages/utils/glob.d.ts +1 -1
  44. package/dist/lib/packages/utils/glob.js +2 -2
  45. package/dist/lib/packages/utils/index.d.ts +2 -1
  46. package/dist/lib/packages/utils/index.js +1 -1
  47. package/dist/node/index.cjs +17975 -0
  48. package/dist/node/index.d.ts +110 -0
  49. package/dist/node/index.js +17975 -0
  50. package/package.json +10 -8
  51. package/dist/es/node_modules/.pnpm/@fangzhongya_utils@0.0.7-15/node_modules/@fangzhongya/utils/dist/chunk-5PX3AFSC.js +0 -6
  52. package/dist/es/node_modules/.pnpm/@fangzhongya_utils@0.0.7-15/node_modules/@fangzhongya/utils/dist/chunk-XQB2HUHZ.js +0 -18
  53. package/dist/es/packages/node/index.d.ts +0 -2
  54. package/dist/es/packages/node/index.js +0 -155
  55. package/dist/lib/node_modules/.pnpm/@fangzhongya_utils@0.0.7-15/node_modules/@fangzhongya/utils/dist/chunk-5PX3AFSC.js +0 -1
  56. package/dist/lib/node_modules/.pnpm/@fangzhongya_utils@0.0.7-15/node_modules/@fangzhongya/utils/dist/chunk-XQB2HUHZ.js +0 -1
  57. package/dist/lib/packages/node/index.d.ts +0 -2
  58. package/dist/lib/packages/node/index.js +0 -1
@@ -1,15 +1,15 @@
1
- import { getConfig as C } from "../config.js";
2
- import { getComponentsArr as O, getRawValue as A, defaultExtensions as I, isComprops as K, isCurprops as b } from "./common.js";
3
- import { humpToLine as h } from "../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-15/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js";
4
- import { lineToLargeHump as E } from "../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-15/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js";
5
- import { firstLower as T } from "../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-15/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js";
6
- import { duplicateRemoval as M } from "../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-15/node_modules/@fangzhongya/utils/dist/chunk-ZVBCHJA5.js";
7
- import { asyncMergeArray as N } from "../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-15/node_modules/@fangzhongya/utils/dist/chunk-XQB2HUHZ.js";
8
- import { getSuffix as w } from "../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-15/node_modules/@fangzhongya/utils/dist/chunk-UOADEBDH.js";
9
- import { getTextImport as U } from "./index.js";
10
- const m = {}, d = {}, P = [], L = {}, j = {}, p = {};
1
+ import { getConfig as N } from "../config.js";
2
+ import { getRawValue as g, getComponentsArr as O, defaultExtensions as I, isComprops as K, isCurprops as M } from "./common.js";
3
+ import { humpToLine as p } from "../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js";
4
+ import { lineToLargeHump as T } from "../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js";
5
+ import { firstLower as C } from "../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js";
6
+ import { duplicateRemoval as U } from "../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-ZVBCHJA5.js";
7
+ import { asyncMergeArray as P } from "../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-Q6FMBSK4.js";
8
+ import { getSuffix as w } from "../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-UOADEBDH.js";
9
+ import { getTextImport as b } from "./index.js";
10
+ const m = {}, d = {}, L = [], W = {}, j = {}, x = {};
11
11
  function S() {
12
- return C("example");
12
+ return N("example");
13
13
  }
14
14
  function V(e, t, s) {
15
15
  const n = Object.assign(
@@ -20,18 +20,30 @@ function V(e, t, s) {
20
20
  t,
21
21
  s
22
22
  ), r = [], a = n.examples;
23
- a && Object.keys(a).forEach((o) => {
24
- r.push(o), j[o] = a[o];
25
- }), n.exampless = r, n.examples = void 0;
26
- const i = [], l = n.examplesRaw;
27
- l && Object.keys(l).forEach((o) => {
28
- i.push(o), p[o] = A(
29
- l,
30
- o
31
- );
32
- }), n.examplessRaw = i, n.examplesRaw = void 0, L[e] = n;
23
+ a && Object.keys(a).forEach((l) => {
24
+ r.push(l), j[l] = a[l];
25
+ });
26
+ const i = [];
27
+ if (n.urls)
28
+ n.exampless = n.urls, n.urls.forEach((l) => {
29
+ i.push(l), n.examplesRaw && (x[l] = g(
30
+ n.examplesRaw,
31
+ l
32
+ ));
33
+ });
34
+ else {
35
+ n.exampless = r;
36
+ const l = n.examplesRaw;
37
+ l && Object.keys(l).forEach((c) => {
38
+ i.push(c), n.examplesRaw && (x[c] = g(
39
+ n.examplesRaw,
40
+ c
41
+ ));
42
+ });
43
+ }
44
+ n.examples = void 0, n.examplessRaw = i, n.examplesRaw = void 0, W[e] = n;
33
45
  }
34
- function k(e, t = "vue") {
46
+ async function F(e, t = "vue") {
35
47
  let s = "";
36
48
  if (t == "vue") {
37
49
  let r = new RegExp(
@@ -41,7 +53,7 @@ function k(e, t = "vue") {
41
53
  } else
42
54
  (t == "js" || t == "ts") && (s = e);
43
55
  if (s) {
44
- const n = U(s);
56
+ const n = await b(s);
45
57
  let r = n == null ? void 0 : n.map((i) => i.n);
46
58
  const a = [];
47
59
  return r && r.length > 0 && r.forEach((i) => {
@@ -57,7 +69,7 @@ function re(e) {
57
69
  }) : t("") : t("");
58
70
  });
59
71
  }
60
- function F(e, t) {
72
+ function H(e, t) {
61
73
  e = (e || "") + "";
62
74
  let s = "";
63
75
  switch (e) {
@@ -73,39 +85,39 @@ function F(e, t) {
73
85
  }
74
86
  return s;
75
87
  }
76
- function H(e, t, s) {
77
- var l, o;
88
+ function $(e, t, s) {
89
+ var l, c;
78
90
  e = (e || "") + "", s = (s || "") + "";
79
- let n = h(t.name), r = [];
91
+ let n = p(t.name), r = [];
80
92
  const a = Object.values(t.aliass || {});
81
93
  if (e === "1")
82
94
  t.alias && r.push(t.alias + "-" + n);
83
95
  else if (e === "2")
84
- a && a.length > 0 && a.forEach((c) => {
85
- r.push(c + "-" + n);
96
+ a && a.length > 0 && a.forEach((o) => {
97
+ r.push(o + "-" + n);
86
98
  });
87
99
  else if (e === "3") {
88
- let c = "";
89
- t.alias && (c = t.alias + "-"), a == null || a.forEach((f) => {
90
- r.push(c + f + "-" + n);
100
+ let o = "";
101
+ t.alias && (o = t.alias + "-"), a == null || a.forEach((f) => {
102
+ r.push(o + f + "-" + n);
91
103
  });
92
104
  } else
93
- e === "4" ? (l = t.aliasNames) == null || l.forEach((c) => {
94
- r.push(h(c));
95
- }) : e == "9" && (r.push(n), (o = t.aliasNames) == null || o.forEach((c) => {
96
- r.push(h(c));
105
+ e === "4" ? (l = t.aliasNames) == null || l.forEach((o) => {
106
+ r.push(p(o));
107
+ }) : e == "9" && (r.push(n), (c = t.aliasNames) == null || c.forEach((o) => {
108
+ r.push(p(o));
97
109
  }));
98
110
  r.length == 0 && r.push(n);
99
111
  let i = [];
100
- return s === "1" ? r.forEach((c) => {
101
- let f = E(c);
102
- i.push(f, T(f));
103
- }) : s === "2" ? r.forEach((c) => {
104
- let f = E(c);
105
- i.push(c, f, T(f));
112
+ return s === "1" ? r.forEach((o) => {
113
+ let f = T(o);
114
+ i.push(f, C(f));
115
+ }) : s === "2" ? r.forEach((o) => {
116
+ let f = T(o);
117
+ i.push(o, f, C(f));
106
118
  }) : i = [...r], i = [...new Set(i)], i;
107
119
  }
108
- function $(e, t, s, n) {
120
+ function q(e, t, s, n) {
109
121
  const r = [];
110
122
  return s.examplessRaw.forEach((a) => {
111
123
  for (let i = 0; i < t.length; i++) {
@@ -119,37 +131,40 @@ function $(e, t, s, n) {
119
131
  value: l,
120
132
  key: a,
121
133
  raw: "",
122
- getRaw: p[a] || p
134
+ getRaw: g(
135
+ x,
136
+ a
137
+ )
123
138
  });
124
139
  break;
125
140
  }
126
141
  }
127
142
  }), r;
128
143
  }
129
- function R(e) {
130
- x();
144
+ function E(e) {
145
+ R();
131
146
  const t = m[e];
132
147
  if (t.tests)
133
148
  return t.tests;
134
149
  {
135
- const s = L[t.dir], n = s.dir + F(s.level || 0, t), r = H(
150
+ const s = W[t.dir], n = s.dir + H(s.level || 0, t), r = $(
136
151
  s.aliaslevel || 0,
137
152
  t,
138
153
  s.componentName || 0
139
154
  );
140
- t.mds = $(n, r, s, t);
155
+ t.mds = q(n, r, s, t);
141
156
  const a = {};
142
157
  return s.exampless.forEach((i) => {
143
158
  for (let l = 0; l < r.length; l++) {
144
- const o = r[l];
145
- if (i.startsWith(n + o + "/")) {
146
- const c = new RegExp(
147
- "^\\" + n + o + "/(.*)/index\\." + I.join("|") + "$"
159
+ const c = r[l];
160
+ if (i.startsWith(n + c + "/")) {
161
+ const o = new RegExp(
162
+ "^\\" + n + c + "/(.*)/index\\." + I.join("|") + "$"
148
163
  );
149
- let f = "", u = i.match(c);
164
+ let f = "", u = i.match(o);
150
165
  u && u.length > 1 && (f = u[1]), a[i] = {
151
166
  topurl: n,
152
- name: o,
167
+ name: c,
153
168
  value: f,
154
169
  suffix: w(i),
155
170
  comname: t.name,
@@ -157,7 +172,10 @@ function R(e) {
157
172
  key: i,
158
173
  component: j[i],
159
174
  raw: "",
160
- getRaw: p[i] || p
175
+ getRaw: g(
176
+ x,
177
+ i
178
+ )
161
179
  };
162
180
  break;
163
181
  }
@@ -167,14 +185,14 @@ function R(e) {
167
185
  }
168
186
  function ie(e) {
169
187
  if (e) {
170
- const t = R(e);
188
+ const t = E(e);
171
189
  return Object.values(t);
172
190
  } else
173
191
  return [];
174
192
  }
175
193
  function le(e, t, s) {
176
- x();
177
- const n = R(s), r = [];
194
+ R();
195
+ const n = E(s), r = [];
178
196
  if (t) {
179
197
  let a = n[t];
180
198
  if (a)
@@ -185,10 +203,10 @@ function le(e, t, s) {
185
203
  }), r;
186
204
  }
187
205
  function oe(e) {
188
- return R(e), m[e].mds;
206
+ return E(e), m[e].mds;
189
207
  }
190
- function W(e, t, s) {
191
- let n = k(t, s) || [], r = e.split("/");
208
+ async function y(e, t, s) {
209
+ let n = await F(t, s) || [], r = e.split("/");
192
210
  return n.map((a) => {
193
211
  if (a.startsWith("./")) {
194
212
  let i = r.slice(0, r.length - 1).join("/"), l = a.substring(2);
@@ -206,13 +224,13 @@ function W(e, t, s) {
206
224
  l = u;
207
225
  break;
208
226
  }
209
- let o = i.slice(l, i.length), c = r.slice(0, r.length - l - 1).join("/"), f = o.join("/");
227
+ let c = i.slice(l, i.length), o = r.slice(0, r.length - l - 1).join("/"), f = c.join("/");
210
228
  return {
211
229
  name: a,
212
230
  value: f,
213
231
  suffix: w(a),
214
- head: c,
215
- key: c + "/" + f
232
+ head: o,
233
+ key: o + "/" + f
216
234
  };
217
235
  }
218
236
  });
@@ -225,14 +243,17 @@ function ce(e) {
225
243
  value: n.value,
226
244
  suffix: w(n.key),
227
245
  key: n.key,
228
- getRaw: p[n.key] || p
246
+ getRaw: g(
247
+ x,
248
+ n.key
249
+ )
229
250
  }));
230
- N(
251
+ P(
231
252
  s,
232
253
  (n, r, a, i) => {
233
254
  a.raw ? n() : a.getRaw ? a.getRaw(a).then((l) => {
234
- const o = (l || "") + "";
235
- a.raw = o, a.getRaw = null, n();
255
+ const c = (l || "") + "";
256
+ a.raw = c, a.getRaw = null, n();
236
257
  }) : n();
237
258
  }
238
259
  ).then(() => {
@@ -242,99 +263,106 @@ function ce(e) {
242
263
  t([]);
243
264
  });
244
265
  }
245
- function q() {
246
- const e = S(), t = C("components");
266
+ function B() {
267
+ const e = S(), t = N("components");
247
268
  t == null || t.forEach((s) => {
248
269
  var r;
249
- G(s);
270
+ J(s);
250
271
  let n = s.dir || ((r = s == null ? void 0 : s.resolver) == null ? void 0 : r.dir) || "";
251
272
  V(n, e, s.example);
252
- }), console.log("componentsObj", m);
273
+ });
253
274
  }
254
- const g = "default";
255
- function B(e) {
256
- let t = h(e.name), s = [...e.aliasNames];
275
+ const h = "default";
276
+ function D(e) {
277
+ let t = p(e.name), s = [...e.aliasNames];
257
278
  s.push(t), s.forEach((n) => {
258
- P.push({
279
+ L.push({
259
280
  name: n,
260
281
  value: e.key
261
282
  });
262
283
  });
263
284
  }
264
- function D(e, t) {
285
+ function G(e, t) {
265
286
  const s = {};
266
287
  t == null || t.forEach((n) => {
267
- m[n.key] = n, B(n);
288
+ m[n.key] = n, D(n);
268
289
  const r = Object.values(n.aliass || {});
269
290
  r && r.length ? r.forEach((a) => {
270
291
  s[a] = s[a] || [], s[a].push(n.key);
271
- }) : (s[g] = s[g] || [], s[g].push(n.key));
292
+ }) : (s[h] = s[h] || [], s[h].push(n.key));
272
293
  });
273
294
  }
274
- function G(e) {
295
+ function J(e) {
275
296
  var n;
276
297
  let t, s;
277
- e.resolver ? (t = e.alias || ((n = e.resolver) == null ? void 0 : n.alias) || g, s = O(
278
- e.resolver.urls || [],
279
- e.resolver,
280
- e.componentsRaw,
281
- e.components,
282
- e
283
- )) : (t = e.alias || g, s = O(
284
- Object.keys(e.componentsRaw),
285
- e,
286
- e.componentsRaw,
287
- e.components,
288
- e
289
- )), s && (s != null && s.props) && s.props.forEach((r) => {
298
+ if (e.resolver)
299
+ t = e.alias || ((n = e.resolver) == null ? void 0 : n.alias) || h, s = O(
300
+ e.resolver.urls || [],
301
+ e.resolver,
302
+ e.componentsRaw,
303
+ e.components,
304
+ e
305
+ );
306
+ else {
307
+ t = e.alias || h;
308
+ let r = (e == null ? void 0 : e.urls) || Object.keys(e.componentsRaw);
309
+ s = O(
310
+ r,
311
+ e,
312
+ e.componentsRaw,
313
+ e.components,
314
+ e
315
+ );
316
+ }
317
+ s && (s != null && s.props) && s.props.forEach((r) => {
290
318
  d[r.key] = r;
291
- }), D(t, s.components);
319
+ }), G(t, s.components);
292
320
  }
293
321
  function fe(e) {
294
- return x(), m[e];
322
+ return R(), m[e];
295
323
  }
296
- function x() {
297
- return Object.keys(m).length == 0 && q(), Object.values(m);
324
+ function R() {
325
+ return Object.keys(m).length == 0 && B(), Object.values(m);
298
326
  }
299
327
  function me(e, t, s) {
300
- x();
328
+ R();
301
329
  const n = [];
302
330
  if (s) {
303
331
  let a = m[s];
304
332
  if (a && a.key)
305
333
  return [a];
306
334
  }
307
- let r = h(e);
308
- return P.forEach((a) => {
335
+ let r = p(e);
336
+ return L.forEach((a) => {
309
337
  t ? a.name.includes(r) && n.push(m[a.value]) : a.name == r && n.push(m[a.value]);
310
- }), M(n, "key");
338
+ }), U(n, "key");
311
339
  }
312
- async function J(e, t) {
340
+ async function Q(e, t) {
313
341
  let s = e;
314
342
  if (e) {
315
- let n = W(
343
+ let n = (await y(
316
344
  t.key,
317
345
  e,
318
346
  t.suffix
319
- ).filter((r) => r.key.startsWith(t.head));
320
- s += await y(n);
347
+ )).filter((r) => r.key.startsWith(t.head));
348
+ s += await A(n);
321
349
  }
322
350
  return s;
323
351
  }
324
- function Q(e) {
352
+ function X(e) {
325
353
  return new Promise((t) => {
326
354
  if (e && e.length > 0) {
327
355
  let s = e.map((n) => d[n.key] || d[n.key + ".js"] || d[n.key + ".ts"]);
328
- N(
356
+ P(
329
357
  s,
330
358
  (n, r, a, i) => {
331
359
  a.raw ? n() : a.getRaw ? a.getRaw(a).then(async (l) => {
332
- const o = (l || "") + "";
333
- let c = await J(
334
- o,
360
+ const c = (l || "") + "";
361
+ let o = await Q(
362
+ c,
335
363
  e[i]
336
364
  );
337
- a.raw = c, a.getRaw = null, n();
365
+ a.raw = o, a.getRaw = null, n();
338
366
  }) : n();
339
367
  }
340
368
  ).then(() => {
@@ -344,22 +372,22 @@ function Q(e) {
344
372
  t([]);
345
373
  });
346
374
  }
347
- async function y(e) {
348
- const t = await Q(e);
375
+ async function A(e) {
376
+ const t = await X(e);
349
377
  return ((t == null ? void 0 : t.map((n) => n.raw)) || []).join(`
350
378
  `);
351
379
  }
352
- async function X(e, t) {
380
+ async function Y(e, t) {
353
381
  let s = e;
354
382
  if (e && (t.comprops || t.curprops)) {
355
- let n = W(
383
+ let n = (await y(
356
384
  t.key,
357
385
  e,
358
386
  t.suffix
359
- ).filter((a) => K(
387
+ )).filter((a) => K(
360
388
  a.name,
361
389
  t.comprops || ""
362
- ) || b(a.name, t.curprops || "")), r = await y(n);
390
+ ) || M(a.name, t.curprops || "")), r = await A(n);
363
391
  s += r;
364
392
  }
365
393
  return s;
@@ -367,10 +395,10 @@ async function X(e, t) {
367
395
  function ue(e) {
368
396
  return new Promise((t) => {
369
397
  if (e) {
370
- x();
398
+ R();
371
399
  const s = m[e];
372
400
  s ? s.raw ? t(s.raw) : s.getRaw ? s.getRaw(s).then(async (n) => {
373
- const r = (n || "") + "", a = await X(
401
+ const r = (n || "") + "", a = await Y(
374
402
  r,
375
403
  s
376
404
  );
@@ -381,15 +409,15 @@ function ue(e) {
381
409
  });
382
410
  }
383
411
  export {
384
- g as defaultName,
412
+ h as defaultName,
385
413
  me as getCompoName,
386
414
  fe as getCompoNameKey,
387
- x as getCompoNameObj,
415
+ R as getCompoNameObj,
388
416
  oe as getKeyMds,
389
417
  ce as getLocalTextArr,
390
418
  ue as getLocalTextComponents,
391
419
  re as getLocalTextTests,
392
- W as getTestImportUrl,
420
+ y as getTestImportUrl,
393
421
  ie as getTestName,
394
422
  le as getTestNameObj
395
423
  };
@@ -1,3 +1,4 @@
1
+ import { type ImportSpecifier } from 'es-module-lexer';
1
2
  export type Spec = {
2
3
  tag: string;
3
4
  name: string;
@@ -25,6 +26,6 @@ interface Descriptions {
25
26
  }
26
27
  export type SpecObjs = Descriptions & Specs;
27
28
  export declare function getTextNotes(text: string): Block[] | undefined;
28
- export declare function getTextImport(jstext: string): readonly import("es-module-lexer").ImportSpecifier[];
29
+ export declare function getTextImport(jstext: string): Promise<readonly ImportSpecifier[]>;
29
30
  export declare function copyCode(text: string): void;
30
31
  export {};
@@ -1,18 +1,21 @@
1
- import { parse as o } from "../../node_modules/.pnpm/comment-parser@1.3.1/node_modules/comment-parser/es6/index.js";
2
- import { parse as e } from "../../node_modules/.pnpm/es-module-lexer@1.1.1/node_modules/es-module-lexer/dist/lexer.js";
3
- function p(r) {
4
- if (r)
5
- return o(r);
1
+ import { parse as e } from "../../node_modules/.pnpm/comment-parser@1.3.1/node_modules/comment-parser/es6/index.js";
2
+ import { init as i, parse as n } from "../../node_modules/.pnpm/es-module-lexer@1.1.1/node_modules/es-module-lexer/dist/lexer.js";
3
+ function s(t) {
4
+ if (t)
5
+ return e(t);
6
6
  }
7
- function s(r) {
8
- const [t] = e(r);
9
- return t;
7
+ function c(t) {
8
+ return new Promise(async (r) => {
9
+ await i;
10
+ const [o] = n(t);
11
+ r(o);
12
+ });
10
13
  }
11
- function a(r) {
12
- navigator.clipboard.writeText(r);
14
+ function m(t) {
15
+ navigator.clipboard.writeText(t);
13
16
  }
14
17
  export {
15
- a as copyCode,
16
- s as getTextImport,
17
- p as getTextNotes
18
+ m as copyCode,
19
+ c as getTextImport,
20
+ s as getTextNotes
18
21
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function y(e,i){return new Promise((n,c)=>{let t=0;const r=e.length;r>0?e.forEach((...o)=>{i((...s)=>{t++,r==t&&n(s)},c,...o)}):n(e)})}exports.asyncMergeArray=y;
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),d=require("../boxurl/index.vue.js"),m=require("../../router/index.js"),x=require("./highlight.vue.js"),_=require("../../utils/index.js"),p=require("../../utils/glob.js"),w=require("vue-router"),E={class:"code"},N={class:"code-top"},V={class:"code-top-but"},y={class:"top-but-files"},b=["onClick"],q={class:"code-highlightjs"},B=e.defineComponent({__name:"index",props:{text:String,value:Object},setup(f){const t=f,h=w.useRouter();e.watch(()=>t.text,()=>{u()});const a=e.ref([]),o=e.ref(),i=e.ref(!1);function k(){var l;(l=o.value)!=null&&l.raw?_.copyCode(o.value.raw):_.copyCode(t.text)}function g(){i.value=!i.value}function C(){m.toSingle(h,t.value)}function r(l){i.value=!0,o.value=l}function u(){var l;if(o.value=void 0,i.value=!1,t.text){let c=p.getTestImportUrl((l=t.value)==null?void 0:l.key,t.text,"vue");p.getLocalTextArr(c).then(s=>{a.value=s.filter(n=>n.raw)})}}return u(),(l,c)=>{var s;return e.openBlock(),e.createElementBlock("div",E,[e.createElementVNode("div",N,[e.createElementVNode("div",V,[e.createElementVNode("div",{class:"but-div",onClick:C}," go "),e.createElementVNode("div",{class:"but-div",onClick:k}," 复制 "),e.createElementVNode("div",{class:"but-div",onClick:g},e.toDisplayString(i.value?"隐藏":"显示"),1),e.createElementVNode("div",y,[e.createVNode(d,{value:t.value},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["but-div",{on:!(o.value&&o.value.value)}]),onClick:c[0]||(c[0]=e.withModifiers(n=>r(),["stop"]))}," index.vue ",2)]),_:1},8,["value"]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(n,S)=>(e.openBlock(),e.createBlock(d,{value:n},{default:e.withCtx(()=>{var v;return[e.createElementVNode("div",{class:e.normalizeClass(["but-div",{on:n.key==((v=o.value)==null?void 0:v.key)}]),onClick:e.withModifiers(D=>r(n),["stop"])},e.toDisplayString(n.value),11,b)]}),_:2},1032,["value"]))),256))])])]),e.withDirectives(e.createElementVNode("div",q,[e.createVNode(x,{language:"html",code:((s=o.value)==null?void 0:s.raw)||t.text},null,8,["code"])],512),[[e.vShow,i.value]])])}}});module.exports=B;
1
+ "use strict";const e=require("vue"),d=require("../boxurl/index.vue.js"),m=require("../../router/index.js"),x=require("./highlight.vue.js"),_=require("../../utils/index.js"),p=require("../../utils/glob.js"),w=require("vue-router"),E={class:"code"},N={class:"code-top"},V={class:"code-top-but"},y={class:"top-but-files"},b=["onClick"],q={class:"code-highlightjs"},B=e.defineComponent({__name:"index",props:{text:String,value:Object},setup(h){const t=h,f=w.useRouter();e.watch(()=>t.text,()=>{u()});const a=e.ref([]),o=e.ref(),i=e.ref(!1);function k(){var l;(l=o.value)!=null&&l.raw?_.copyCode(o.value.raw):_.copyCode(t.text)}function g(){i.value=!i.value}function C(){m.toSingle(f,t.value)}function r(l){i.value=!0,o.value=l}function u(){var l;o.value=void 0,i.value=!1,t.text&&p.getTestImportUrl((l=t.value)==null?void 0:l.key,t.text,"vue").then(c=>{p.getLocalTextArr(c).then(s=>{a.value=s.filter(n=>n.raw)})})}return u(),(l,c)=>{var s;return e.openBlock(),e.createElementBlock("div",E,[e.createElementVNode("div",N,[e.createElementVNode("div",V,[e.createElementVNode("div",{class:"but-div",onClick:C}," go "),e.createElementVNode("div",{class:"but-div",onClick:k}," 复制 "),e.createElementVNode("div",{class:"but-div",onClick:g},e.toDisplayString(i.value?"隐藏":"显示"),1),e.createElementVNode("div",y,[e.createVNode(d,{value:t.value},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["but-div",{on:!(o.value&&o.value.value)}]),onClick:c[0]||(c[0]=e.withModifiers(n=>r(),["stop"]))}," index.vue ",2)]),_:1},8,["value"]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(n,S)=>(e.openBlock(),e.createBlock(d,{value:n},{default:e.withCtx(()=>{var v;return[e.createElementVNode("div",{class:e.normalizeClass(["but-div",{on:n.key==((v=o.value)==null?void 0:v.key)}]),onClick:e.withModifiers(D=>r(n),["stop"])},e.toDisplayString(n.value),11,b)]}),_:2},1032,["value"]))),256))])])]),e.withDirectives(e.createElementVNode("div",q,[e.createVNode(x,{language:"html",code:((s=o.value)==null?void 0:s.raw)||t.text},null,8,["code"])],512),[[e.vShow,i.value]])])}}});module.exports=B;
@@ -1 +1 @@
1
- "use strict";const t=require("vue"),x=require("./set-props.vue.js"),q=require("./set-emit.vue.js"),E=require("./set-code.vue.js"),b=require("./set-expose.vue.js"),C=require("./set-slot.vue.js"),i=require("../../utils/props.js"),V=require("../../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-15/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js"),j=t.defineComponent({props:{value:{type:Object},param:{type:Object}},render(O,T,v,D,a){console.log("render",new Date().getTime());const r=t.reactive({emitValue:{},slotValue:{}}),n=v.value;let c="div";n.component?c=t.defineAsyncComponent(n.component):n.name&&(c=t.resolveComponent(n.name));const u=v.param,d=i.getPropsValue(u.props),m=i.getEmitsValue(u.emits),y=i.getExposeValue(u.expose),h=i.getSlotValue(u.slot),l={},f={};d.forEach(s=>{let e=s.name;if(!e.includes(".")){let o=e.split("/");e=(o[0]||"").trim(),e&&(l[e]=a.propsValue[e],o&&o.length>1&&m.push({name:"update:"+e,description:s.description,selectable:"value:["+s.type+"]"}))}}),m.forEach(s=>{let e=s.name;if(e.includes("-")){let p=e.split("-");p=p.map((_,U)=>V.firstUpper(_)),e=p.join("")}else e=V.firstUpper(e);const o="on"+e;l[o]=(...p)=>{const _={arr:p,_date_:new Date().getTime()};r.emitValue[s.name]=_}});let g;return h.forEach(s=>{const e=s.name||"default";f[e]=o=>{if(r.slotValue[e])return t.h(t.defineComponent({props:{scope:{type:Object}},template:r.slotValue[e]}),{scope:o})}}),t.h("div",{class:"use"},[t.h("div",{class:"use-props"},t.h(x,{name:n.name,list:d,onChange:(s,e)=>{a.propsValue=s,a.propsText=e}})),t.h("div",{class:"use-component"},t.h(c,{...l,ref:s=>{g=s}},f)),t.h("div",{class:"use-code"},t.h(E,{name:n.name,value:l,propsText:a.propsText,slotValue:r.slotValue})),t.h("div",{class:"use-emit"},t.h(q,{name:n.name,list:m,value:r.emitValue})),t.h("div",{class:"use-expose"},t.h(b,{name:n.name,list:y,getRef:()=>g})),t.h("div",{class:"use-slot"},t.h(C,{name:n.name,list:h,onChange:(s,e)=>{r.slotValue[s]=e}}))])},data(){return{propsValue:{},propsText:{}}}});module.exports=j;
1
+ "use strict";const t=require("vue"),x=require("./set-props.vue.js"),q=require("./set-emit.vue.js"),E=require("./set-code.vue.js"),b=require("./set-expose.vue.js"),C=require("./set-slot.vue.js"),i=require("../../utils/props.js"),V=require("../../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js"),j=t.defineComponent({props:{value:{type:Object},param:{type:Object}},render(O,T,v,D,a){console.log("render",new Date().getTime());const r=t.reactive({emitValue:{},slotValue:{}}),n=v.value;let c="div";n.component?c=t.defineAsyncComponent(n.component):n.name&&(c=t.resolveComponent(n.name));const u=v.param,d=i.getPropsValue(u.props),m=i.getEmitsValue(u.emits),y=i.getExposeValue(u.expose),h=i.getSlotValue(u.slot),l={},f={};d.forEach(s=>{let e=s.name;if(!e.includes(".")){let o=e.split("/");e=(o[0]||"").trim(),e&&(l[e]=a.propsValue[e],o&&o.length>1&&m.push({name:"update:"+e,description:s.description,selectable:"value:["+s.type+"]"}))}}),m.forEach(s=>{let e=s.name;if(e.includes("-")){let p=e.split("-");p=p.map((_,U)=>V.firstUpper(_)),e=p.join("")}else e=V.firstUpper(e);const o="on"+e;l[o]=(...p)=>{const _={arr:p,_date_:new Date().getTime()};r.emitValue[s.name]=_}});let g;return h.forEach(s=>{const e=s.name||"default";f[e]=o=>{if(r.slotValue[e])return t.h(t.defineComponent({props:{scope:{type:Object}},template:r.slotValue[e]}),{scope:o})}}),t.h("div",{class:"use"},[t.h("div",{class:"use-props"},t.h(x,{name:n.name,list:d,onChange:(s,e)=>{a.propsValue=s,a.propsText=e}})),t.h("div",{class:"use-component"},t.h(c,{...l,ref:s=>{g=s}},f)),t.h("div",{class:"use-code"},t.h(E,{name:n.name,value:l,propsText:a.propsText,slotValue:r.slotValue})),t.h("div",{class:"use-emit"},t.h(q,{name:n.name,list:m,value:r.emitValue})),t.h("div",{class:"use-expose"},t.h(b,{name:n.name,list:y,getRef:()=>g})),t.h("div",{class:"use-slot"},t.h(C,{name:n.name,list:h,onChange:(s,e)=>{r.slotValue[s]=e}}))])},data(){return{propsValue:{},propsText:{}}}});module.exports=j;
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("vue"),S=require("../../../../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-15/node_modules/@fangzhongya/utils/dist/chunk-GOJN3OQ4.js"),v=require("../../util.js"),C={class:"form-select"},x=["value","disabled","onClick","onBlur"],A=["onMousemove","onMouseout"],j={class:"form-select-list"},O={key:0,class:"form-select-list-div"},T=["onClick"],q={key:1,class:"no-data"},L=e.defineComponent({__name:"index",props:{modelValue:{type:null},dataType:{type:[String,Array]},disabled:Boolean,list:{type:Array},config:{type:Object,default(){return{label:"label",prop:"prop"}}}},emits:["value","change"],setup(h,{emit:g}){const l=h,u=e.ref(),a=e.ref(!1),c=e.ref(!1),r=e.ref([]),y=e.computed(()=>r.value.map(t=>d(t)).join(",")),p=e.computed(()=>{let t=l.dataType||"";return(v.getSonType(t)||[])[1]});e.watch(()=>l.modelValue,()=>{b()},{immediate:!0});function _(t=[]){return p.value=="string"?t.map(n=>v.getString(n)):p.value=="number"?t.map(n=>{let o=Number(n);return isNaN(o)&&(o=0),o}):t}function k(t){return new Function("",`{
1
+ "use strict";const e=require("vue"),S=require("../../../../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-GOJN3OQ4.js"),v=require("../../util.js"),C={class:"form-select"},x=["value","disabled","onClick","onBlur"],A=["onMousemove","onMouseout"],j={class:"form-select-list"},O={key:0,class:"form-select-list-div"},T=["onClick"],q={key:1,class:"no-data"},L=e.defineComponent({__name:"index",props:{modelValue:{type:null},dataType:{type:[String,Array]},disabled:Boolean,list:{type:Array},config:{type:Object,default(){return{label:"label",prop:"prop"}}}},emits:["value","change"],setup(h,{emit:g}){const l=h,u=e.ref(),a=e.ref(!1),c=e.ref(!1),r=e.ref([]),y=e.computed(()=>r.value.map(t=>d(t)).join(",")),p=e.computed(()=>{let t=l.dataType||"";return(v.getSonType(t)||[])[1]});e.watch(()=>l.modelValue,()=>{b()},{immediate:!0});function _(t=[]){return p.value=="string"?t.map(n=>v.getString(n)):p.value=="number"?t.map(n=>{let o=Number(n);return isNaN(o)&&(o=0),o}):t}function k(t){return new Function("",`{
2
2
  var a = ${t};
3
3
  return a;
4
4
  }`)}function b(){r.value=[];let t=l.modelValue,n=[];const o=k(t);if(o instanceof Array&&(n=o),l.list)for(let i=0;i<l.list.length;i++){const f=l.list[i];n.includes(s(f))&&r.value.push(f)}m()}function d(t){var o;let n=(o=l.config)==null?void 0:o.label;return n&&typeof t=="object"&&t?t[n]:t}function s(t){var o;let n=(o=l.config)==null?void 0:o.prop;return n&&typeof t=="object"&&t?t[n]:t}function B(t){return r.value.map(n=>s(n)).includes(s(t))}function w(){l.disabled||(a.value=!0)}function M(){c.value||(a.value=!1)}function V(){c.value=!0}function E(){c.value=!1}function N(t){u.value&&u.value.focus(),r.value=S.toggleArray(r.value,t,l.config.prop),m()}function m(){let t=_(r.value.map(n=>s(n)));g("value",t,JSON.stringify(t))}return(t,n)=>(e.openBlock(),e.createElementBlock("div",C,[e.createElementVNode("input",{value:e.unref(y),readonly:"",placeholder:"请选择",type:"text",disabled:l.disabled,ref_key:"refInput",ref:u,onClick:e.withModifiers(w,["stop"]),onBlur:e.withModifiers(M,["stop"])},null,40,x),e.createElementVNode("div",{onMousemove:e.withModifiers(V,["stop"]),onMouseout:e.withModifiers(E,["stop"]),class:"form-select-box"},[e.withDirectives(e.createElementVNode("div",j,[l.list&&l.list.length>0?(e.openBlock(),e.createElementBlock("div",O,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.list,(o,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["form-select-list-li",{active:B(o)}]),onClick:e.withModifiers(f=>N(o),["stop"])},[e.createElementVNode("span",null,e.toDisplayString(d(o)),1)],10,T))),256))])):(e.openBlock(),e.createElementBlock("div",q," 暂无数据 "))],512),[[e.vShow,a.value]])],40,A)]))}});module.exports=L;
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("vue"),d=require("./util.js"),V=require("../code/highlight.vue.js"),N=require("../../utils/index.js"),O=require("../../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-15/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js"),_=require("../../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-15/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js"),S=require("../../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-15/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js"),q={class:"set-code"},y=e.createElementVNode("div",null,"代码",-1),F={class:"but-div set-code-but"},w=["onClick"],B={class:"set-code-html"},J=e.defineComponent({__name:"set-code",props:{name:{type:String},value:{type:Object},slotValue:{type:Object},propsText:{type:Object}},setup(b){const r=b,m=e.computed(()=>{const s=[],t=[];let i=!0;const n=r.value;Object.keys(n).forEach(o=>{let p=n[o];if(/^on[A-Z]/.test(o)&&typeof p=="function"){let u=o.substring(2);const a=o.split(":");let l;if(a.length>1?(l=a[0]+a.slice(1).map(f=>_.firstUpper(f)).join(""),u=S.firstLower(u)):(l=a[0],u=O.humpToLine(u)),a.includes("-")){let f=l.split("-");f=f.map((g,E)=>E!=0?_.firstUpper(g):g),l=f.join("")}s.push(" @"+u+'="'+l+'"'),t.push("function "+l+"(...arr) {"),t.push(" console.log('"+l+"', arr)"),t.push("}")}else if(s.push(" :"+o+'="'+o+'"'),typeof p=="function")t.push("const "+o+" = "+$(p,o));else if(i&&(i=!1,t.unshift("import { ref } from 'vue';")),typeof p>"u")t.push("const "+o+" = ref();");else{let u=T(p,o);t.push("const "+o+" = ref("+u+");")}}),s.length>0&&s.unshift("");const c=x(r.slotValue);return`<!--${r.name}-->
1
+ "use strict";const e=require("vue"),d=require("./util.js"),V=require("../code/highlight.vue.js"),N=require("../../utils/index.js"),O=require("../../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js"),_=require("../../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js"),S=require("../../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js"),q={class:"set-code"},y=e.createElementVNode("div",null,"代码",-1),F={class:"but-div set-code-but"},w=["onClick"],B={class:"set-code-html"},J=e.defineComponent({__name:"set-code",props:{name:{type:String},value:{type:Object},slotValue:{type:Object},propsText:{type:Object}},setup(b){const r=b,m=e.computed(()=>{const s=[],t=[];let i=!0;const n=r.value;Object.keys(n).forEach(o=>{let p=n[o];if(/^on[A-Z]/.test(o)&&typeof p=="function"){let u=o.substring(2);const a=o.split(":");let l;if(a.length>1?(l=a[0]+a.slice(1).map(f=>_.firstUpper(f)).join(""),u=S.firstLower(u)):(l=a[0],u=O.humpToLine(u)),a.includes("-")){let f=l.split("-");f=f.map((g,E)=>E!=0?_.firstUpper(g):g),l=f.join("")}s.push(" @"+u+'="'+l+'"'),t.push("function "+l+"(...arr) {"),t.push(" console.log('"+l+"', arr)"),t.push("}")}else if(s.push(" :"+o+'="'+o+'"'),typeof p=="function")t.push("const "+o+" = "+$(p,o));else if(i&&(i=!1,t.unshift("import { ref } from 'vue';")),typeof p>"u")t.push("const "+o+" = ref();");else{let u=T(p,o);t.push("const "+o+" = ref("+u+");")}}),s.length>0&&s.unshift("");const c=x(r.slotValue);return`<!--${r.name}-->
2
2
  <template>
3
3
  <div>
4
4
  <${r.name}${s.join(`
@@ -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 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../node_modules/.pnpm/@fangzhongya_utils@0.0.7-15/node_modules/@fangzhongya/utils/dist/chunk-RD4EP3M5.js"),n={components:[]};function o(e){return t.mergeObject(n,e,2)}function r(e){return n[e]}exports.getConfig=r;exports.userConfig=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-RD4EP3M5.js"),n={components:[]};function o(e){return t.mergeObject(n,e,2)}function r(e){return n[e]}exports.getConfig=r;exports.userConfig=o;
@@ -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;