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