halo-pc 1.0.26 → 1.0.28

Sign up to get free protection for your applications and to get access to all the features.
Files changed (161) hide show
  1. package/dist/{Article-BNacU3kR.js → Article-CTzPZjf8.js} +71 -65
  2. package/dist/{ArticleFooter-Ya07aLYn.js → ArticleFooter-jyfzfZHH.js} +23 -17
  3. package/dist/{Autocomplete-CyXE-g54.js → Autocomplete-D8ytFwqa.js} +1 -1
  4. package/dist/Autocomplete-DoUE3T0L.js +53 -0
  5. package/dist/Autocomplete-FGRT-2ru.js +54 -0
  6. package/dist/{CSharp-DQLgcbTQ.js → CSharp-qh_kEfGr.js} +1 -1
  7. package/dist/{Calender-YujFxcgS.js → Calender-DOuq9uAK.js} +1 -1
  8. package/dist/Callback-DuaBaO1q.js +26 -0
  9. package/dist/Cascader-DgKBpjUK.js +47 -0
  10. package/dist/Cascader-s8VT55_K.js +87 -0
  11. package/dist/{Checkbox-Dkqh7eR4.js → Checkbox-D9NUw4jZ.js} +1 -1
  12. package/dist/Checkbox-REcdbTXR.js +76 -0
  13. package/dist/{Code-DXkJ6x5_.js → Code-CBVRms_j.js} +1 -1
  14. package/dist/Code-DZ-bK9UT.js +60 -0
  15. package/dist/Code-DfnLveft.js +42 -0
  16. package/dist/{Code-Dszcah6J.js → Code-loaJtKGd.js} +1 -1
  17. package/dist/Code.vue_vue_type_style_index_0_lang-BVLhtr1Y.js +65 -0
  18. package/dist/Column-B96LbQFW.js +75 -0
  19. package/dist/Comment-bPWbEkgq.js +104 -0
  20. package/dist/Compare-D4O0qmYv.js +44 -0
  21. package/dist/{Compare-DKLN4wT4.js → Compare-dimRoHFX.js} +24 -18
  22. package/dist/Copy-CKLxfWd4.js +49 -0
  23. package/dist/Custom-Bwyy4_tA.js +57 -0
  24. package/dist/{DataExport-CFjE1loi.js → DataExport-Bp50K0_6.js} +1 -1
  25. package/dist/{DataExport.vue_vue_type_script_setup_true_lang-yTe6V3Dn.js → DataExport.vue_vue_type_script_setup_true_lang-8nDL-PI_.js} +41 -36
  26. package/dist/{DataImport-BQ0rieu8.js → DataImport-BWI4eCxA.js} +1 -1
  27. package/dist/DataImport.vue_vue_type_script_setup_true_lang-DCS1SfNf.js +176 -0
  28. package/dist/Date-Cf64NT4R.js +43 -0
  29. package/dist/{Date-C5WCVXDU.js → Date-FBemqmex.js} +1 -1
  30. package/dist/DateRange-D5kvmDIo.js +63 -0
  31. package/dist/DateTime-CTGuyJ4w.js +44 -0
  32. package/dist/{DateTime-BrsWm90_.js → DateTime-Cvnnthwx.js} +1 -1
  33. package/dist/{DateTimeRange-DjIp1SAX.js → DateTimeRange-Gb33uiRV.js} +17 -11
  34. package/dist/Daterange-CfAdeV7J.js +63 -0
  35. package/dist/{Decimal-_6FobwTd.js → Decimal-B-fyPiuP.js} +1 -1
  36. package/dist/Delete-DhbWFnzt.js +62 -0
  37. package/dist/{Detail-BMbiENm0.js → Detail-DV-JRRLT.js} +20 -14
  38. package/dist/Dictionary-b_mbt-WU.js +59 -0
  39. package/dist/Email-C2Yl7bMF.js +54 -0
  40. package/dist/{File-B9Q2QOa-.js → File-D57qYYt1.js} +28 -22
  41. package/dist/{Image-CzOq81lm.js → Image-BKNUY356.js} +1 -1
  42. package/dist/{Index-DJz-eVVd.js → Index-BPfkpoVf.js} +25 -20
  43. package/dist/Index-BUCyMvJX.js +4 -0
  44. package/dist/Index-BtxNIZsx.js +4 -0
  45. package/dist/Index-C5WYmq9P.js +4 -0
  46. package/dist/{Index-DvfJmbPU.js → Index-CSzgmzRG.js} +1 -1
  47. package/dist/Index-ChWD2gJt.js +4 -0
  48. package/dist/{Index-BmVFh23J.js → Index-P3uHTgX-.js} +1 -1
  49. package/dist/Index-PB-VnCO7.js +178 -0
  50. package/dist/{Index.vue_vue_type_script_setup_true_lang-ExArYWR3.js → Index.vue_vue_type_script_setup_true_lang-BkjFEuPH.js} +20 -14
  51. package/dist/{Index.vue_vue_type_script_setup_true_lang-BpU5b5wU.js → Index.vue_vue_type_script_setup_true_lang-CJV5JBz9.js} +22 -16
  52. package/dist/{Install-CXj-qqao.js → Install-o0VJz9Rl.js} +27 -21
  53. package/dist/Int-BNwPsWfI.js +44 -0
  54. package/dist/Int-DN3vf18e.js +46 -0
  55. package/dist/List-DRAtVlgE.js +79 -0
  56. package/dist/Maintaince-CdVk7qiu.js +20 -0
  57. package/dist/{Markdown-CdP4Uf3M.js → Markdown-CFwOeXFg.js} +1 -1
  58. package/dist/Month-CrvLoEQy.js +43 -0
  59. package/dist/Month-CyB2owvQ.js +44 -0
  60. package/dist/{Month-BUvqsSfA.js → Month-DsKmd425.js} +1 -1
  61. package/dist/{Normal-DUlWYlcs.js → Normal-B_SPQW9Z.js} +99 -94
  62. package/dist/Paging-CzCgExDM.js +99 -0
  63. package/dist/{PagingHeader-aZb0fGRv.js → PagingHeader-Bfnnsv6m.js} +30 -24
  64. package/dist/{PagingRow-_H7tCWDM.js → PagingRow-BXaakA5y.js} +26 -20
  65. package/dist/QueryApi-Cah37Kwx.js +20 -0
  66. package/dist/{Racebar-DESsxoi9.js → Racebar-6FTe1C4G.js} +42 -37
  67. package/dist/{Radio-ChF3_bX0.js → Radio-rym8cXJN.js} +1 -1
  68. package/dist/{Register-Du5lRabU.js → Register-v__-wpY2.js} +75 -70
  69. package/dist/RichText-BDP5KDin.js +47 -0
  70. package/dist/{SearchFooter-HjKH1gD5.js → SearchFooter-0mHMD0Xf.js} +1 -1
  71. package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-CeQ2BcOI.js → SearchFooter.vue_vue_type_style_index_0_lang-CXTYGXIa.js} +1 -1
  72. package/dist/{SearchForm-C-o0Orkp.js → SearchForm-jSIiiv2r.js} +1 -1
  73. package/dist/{SearchForm.vue_vue_type_style_index_0_lang-BijR_gZY.js → SearchForm.vue_vue_type_style_index_0_lang-CFxxTJiB.js} +45 -40
  74. package/dist/{Select-CYaWHcWs.js → Select-Cpj86Kaw.js} +26 -20
  75. package/dist/{Select-DgKzH1gD.js → Select-DKjXN6Ag.js} +34 -28
  76. package/dist/{Select-DrybbaWb.js → Select-R0EsEK0_.js} +1 -1
  77. package/dist/{Single-B-253IzX.js → Single-fIhSt1dN.js} +111 -106
  78. package/dist/{Statistic-B7Tib1eh.js → Statistic-DM3Fr6sO.js} +29 -24
  79. package/dist/{Stock-DuyZiPxv.js → Stock-BemUvyqK.js} +1 -1
  80. package/dist/{Stock-BBcnzi6G.js → Stock-DUrxld5G.js} +1 -1
  81. package/dist/{Stock.vue_vue_type_style_index_0_lang-B6E5USSu.js → Stock.vue_vue_type_style_index_0_lang-Cv9Jvd6d.js} +29 -24
  82. package/dist/{Switch-DP-_EUOK.js → Switch-QdLS7c3q.js} +1 -1
  83. package/dist/{Table-hHG9kq1I.js → Table-BcVHufy3.js} +85 -81
  84. package/dist/{Table-2jZ0ISz7.js → Table-C4dGV7IQ.js} +74 -68
  85. package/dist/{Text-lak-4VnA.js → Text-BJNnrW9U.js} +21 -15
  86. package/dist/{Text-RsldE1sr.js → Text-BNAKwCCe.js} +18 -12
  87. package/dist/{Text-C70dFJLS.js → Text-D3DqixJp.js} +1 -1
  88. package/dist/Text.vue_vue_type_style_index_0_lang-B253xD5Z.js +59 -0
  89. package/dist/TextLink-D-9pICMh.js +65 -0
  90. package/dist/{Textarea-QGa_EKSl.js → Textarea-Cr5zt_LK.js} +1 -1
  91. package/dist/Time-DQJPtNWo.js +43 -0
  92. package/dist/Timeline-Dy37Cou2.js +59 -0
  93. package/dist/Tree-3zBuSLBv.js +122 -0
  94. package/dist/{Tree-B2fZE9Qf.js → Tree-4v2brZjr.js} +112 -107
  95. package/dist/TreeNode-CvS8mLCJ.js +42 -0
  96. package/dist/{Update-BqQGp_9h.js → Update-Cp50LcVx.js} +18 -12
  97. package/dist/{UpdateChild-DejVqKrE.js → UpdateChild-CFi_DjLv.js} +23 -17
  98. package/dist/Upload-Bqp-5cFa.js +72 -0
  99. package/dist/Upload-D-hvecbh.js +150 -0
  100. package/dist/UploadApi-CC5hZcM_.js +20 -0
  101. package/dist/Year-CYSncKVk.js +47 -0
  102. package/dist/{Year-CrN8Fl5U.js → Year-q0tWWwkv.js} +1 -1
  103. package/dist/assets/clone-BZn0cTAu.js +134 -0
  104. package/dist/assets/file-saver-CwlpTZSc.js +74 -0
  105. package/dist/assets/liquidjs-C-LVcoaY.js +2893 -0
  106. package/dist/assets/moment-h96o7c8I.js +2578 -0
  107. package/dist/assets/sprintf-js-BPTdvBYM.js +148 -0
  108. package/dist/assets/underscore-B0BCaBxV.js +1070 -0
  109. package/dist/assets/underscore.string-DVXD2SZo.js +425 -0
  110. package/dist/assets/util-deprecate-Dzun97re.js +28 -0
  111. package/dist/main-D-QTCahZ.js +9107 -0
  112. package/dist/main.js +36 -35
  113. package/dist/style.css +1 -1
  114. package/package.json +2 -2
  115. package/dist/Autocomplete-Bud53PPx.js +0 -48
  116. package/dist/Autocomplete-CfE5ZKi2.js +0 -49
  117. package/dist/Callback-BaFg5U2u.js +0 -20
  118. package/dist/Cascader-C1kyNib7.js +0 -41
  119. package/dist/Cascader-D5PO9zK9.js +0 -81
  120. package/dist/Checkbox-CUtyT8l7.js +0 -70
  121. package/dist/Code-C160-nQS.js +0 -54
  122. package/dist/Code-pe9JMCAj.js +0 -36
  123. package/dist/Code.vue_vue_type_style_index_0_lang-B1dEEN-z.js +0 -59
  124. package/dist/Column-C3j98RGT.js +0 -69
  125. package/dist/Comment-DIrY0RiI.js +0 -98
  126. package/dist/Compare-5j7MYou6.js +0 -38
  127. package/dist/Copy-Go_1uhB5.js +0 -43
  128. package/dist/Custom-C00oYEFm.js +0 -51
  129. package/dist/DataImport.vue_vue_type_script_setup_true_lang-LYppKTfv.js +0 -172
  130. package/dist/Date-uHiOL-PD.js +0 -37
  131. package/dist/DateRange-B-HjKQpJ.js +0 -57
  132. package/dist/DateTime-D4Ck5hBj.js +0 -38
  133. package/dist/Daterange-DiZUFL_F.js +0 -57
  134. package/dist/Delete-C46eSfMC.js +0 -56
  135. package/dist/Dictionary-Dga6kbof.js +0 -55
  136. package/dist/Email-PVk9gqfn.js +0 -48
  137. package/dist/Index-CfDvQD94.js +0 -4
  138. package/dist/Index-Cq20wsZC.js +0 -173
  139. package/dist/Index-DGiRkT-p.js +0 -4
  140. package/dist/Index-DyK_nYp9.js +0 -4
  141. package/dist/Index-z5MnS_Wq.js +0 -4
  142. package/dist/Int-BG6MD24t.js +0 -38
  143. package/dist/Int-Dc7h_7Ga.js +0 -41
  144. package/dist/List-EDwPH8aL.js +0 -73
  145. package/dist/Maintaince-BqvMHxH0.js +0 -14
  146. package/dist/Month-8mDUGsOp.js +0 -37
  147. package/dist/Month-ClGd6IhI.js +0 -38
  148. package/dist/Paging-D_ticCtb.js +0 -94
  149. package/dist/QueryApi-S0e3c6l0.js +0 -13
  150. package/dist/RichText-BJVvArGS.js +0 -41
  151. package/dist/Text.vue_vue_type_style_index_0_lang-BP6k7KJG.js +0 -53
  152. package/dist/TextLink-C-NU-oVe.js +0 -59
  153. package/dist/Time-BgWPjGd1.js +0 -37
  154. package/dist/Timeline-CBWcOVdY.js +0 -53
  155. package/dist/Tree--dJKRJvG.js +0 -117
  156. package/dist/TreeNode-CxTzNQo9.js +0 -37
  157. package/dist/Upload-9z5VIixQ.js +0 -146
  158. package/dist/Upload-tlSQp2Qu.js +0 -67
  159. package/dist/UploadApi-B2dxOS0T.js +0 -13
  160. package/dist/Year-DNDyqe5X.js +0 -41
  161. package/dist/main-D3_7YhaK.js +0 -15700
@@ -1,20 +0,0 @@
1
- import { defineComponent as o } from "vue";
2
- import { useRouter as i, useRoute as n } from "vue-router";
3
- import { v as s, S as u } from "./main-D3_7YhaK.js";
4
- const y = /* @__PURE__ */ o({
5
- __name: "Callback",
6
- setup(a) {
7
- let r = i(), t = n().query;
8
- return (async () => {
9
- if (!t.type) {
10
- s.error("缺失type参数");
11
- return;
12
- }
13
- let e = await u.sso.create(t.type.toString());
14
- t.identity = JSON.parse(t.identity.toString()), e.login(t), r.push(t.return_url.toString());
15
- })(), (e, l) => " 登录完毕,处理回调中... ";
16
- }
17
- });
18
- export {
19
- y as default
20
- };
@@ -1,41 +0,0 @@
1
- import { defineComponent as y, toRefs as k, computed as p, openBlock as e, createElementBlock as t, Fragment as d, renderList as m, unref as f, normalizeStyle as x, toDisplayString as h, createCommentVNode as b } from "vue";
2
- import { O as B } from "./main-D3_7YhaK.js";
3
- const C = { class: "text-cascader" }, S = {
4
- key: 0,
5
- class: "cascader-seperator"
6
- }, F = /* @__PURE__ */ y({
7
- __name: "Cascader",
8
- props: {
9
- schema: {},
10
- table: {},
11
- field: {},
12
- set: {},
13
- row: {},
14
- modelValue: {}
15
- },
16
- emits: ["submit", "change"],
17
- setup(_, { emit: V }) {
18
- let v = _, { table: w, field: s, set: E, row: O, modelValue: a } = k(v), u = p(() => s.value.control.multiple ? a.value ? a.value.toString().split(",") : [] : a.value), c = p(() => {
19
- if (u.value.length > 0) {
20
- let i = s.value.control.data.data, n = [];
21
- return u.value.forEach((r) => {
22
- let l = B.getParentsById(r, "value", i, "children", !0);
23
- l.length > 0 && n.push(l);
24
- }), n;
25
- }
26
- return [];
27
- });
28
- return (i, n) => (e(), t("div", C, [
29
- (e(!0), t(d, null, m(f(c), (r, l) => (e(), t("span", null, [
30
- (e(!0), t(d, null, m(r, (o, g) => (e(), t("span", {
31
- style: x({ color: o.color }),
32
- key: o.value
33
- }, h(o.text) + h(g == r.length - 1 ? "" : " / "), 5))), 128)),
34
- l != f(c).length - 1 ? (e(), t("span", S, ",")) : b("", !0)
35
- ]))), 256))
36
- ]));
37
- }
38
- });
39
- export {
40
- F as default
41
- };
@@ -1,81 +0,0 @@
1
- import { defineComponent as E, toRefs as w, ref as N, computed as R, resolveComponent as S, openBlock as c, createBlock as D, unref as a, isRef as I, withCtx as O, createElementVNode as P, createTextVNode as T, toDisplayString as i, createElementBlock as m, createCommentVNode as f } from "vue";
2
- import { n as j, O as h, T as q } from "./main-D3_7YhaK.js";
3
- const U = {
4
- key: 0,
5
- class: "cascader-suffix"
6
- }, z = {
7
- key: 0,
8
- class: "cascader-length"
9
- }, J = /* @__PURE__ */ E({
10
- __name: "Cascader",
11
- props: {
12
- schema: {},
13
- table: {},
14
- field: {},
15
- set: {},
16
- row: {},
17
- modelValue: {}
18
- },
19
- emits: ["submit", "change", "update:modelValue"],
20
- setup(v, { emit: g }) {
21
- let d = g, V = v, { table: b, field: t, set: A, row: F, modelValue: _ } = w(V), s = N(), p = null, x = () => {
22
- s.value || (s.value = t.value.control.data.data);
23
- let e = _.value, l = [];
24
- return t.value.control.multiple ? (e ? e.toString().split(",") : [e]).forEach((n) => {
25
- let o = h.getParentsById(n, "value", s.value, "children", !0);
26
- o.length > 0 && l.push(o.map((B) => B.value));
27
- }) : h.getParentsById(e, "value", s.value, "children", !0).forEach((n) => {
28
- l.push(n.value);
29
- }), l;
30
- }, C = (e) => {
31
- let l;
32
- t.value.control.multiple ? l = e.map((r) => r[r.length - 1]).join(",") : l = e[e.length - 1], d("update:modelValue", l), d("change", l);
33
- }, y = (e) => {
34
- e && (p = null, k());
35
- }, k = () => {
36
- let e = { text: p, conditions: [] };
37
- t.value.control.data.conditions.forEach((l) => {
38
- e.conditions.push({ name: l.name, value: null });
39
- }), q.post(t.value.control.data.route, e).then(({ data: l }) => {
40
- s.value = l;
41
- });
42
- }, u = R({
43
- get() {
44
- return x();
45
- },
46
- set(e) {
47
- C(e);
48
- }
49
- });
50
- return (e, l) => {
51
- const r = S("el-cascader");
52
- return c(), D(r, {
53
- ref: "cascaderRef",
54
- placeholder: a(j)(a(b).name, a(t).name),
55
- filterable: "",
56
- "collapse-tags": "",
57
- "collapse-tags-tooltip": "",
58
- "max-collapse-tags": 6,
59
- options: a(s),
60
- disabled: a(t).readonly,
61
- props: { label: "text", checkStrictly: !0, multiple: a(t).control.multiple },
62
- clearable: !a(t).control.required,
63
- onVisibleChange: a(y),
64
- modelValue: a(u),
65
- "onUpdate:modelValue": l[0] || (l[0] = (n) => I(u) ? u.value = n : u = n)
66
- }, {
67
- default: O(({ node: n, data: o }) => [
68
- P("span", null, [
69
- T(i(o.text), 1),
70
- o.suffix ? (c(), m("span", U, "(" + i(o.suffix) + ")", 1)) : f("", !0)
71
- ]),
72
- o.children ? (c(), m("span", z, i(o.children.length), 1)) : f("", !0)
73
- ]),
74
- _: 1
75
- }, 8, ["placeholder", "options", "disabled", "props", "clearable", "onVisibleChange", "modelValue"]);
76
- };
77
- }
78
- });
79
- export {
80
- J as default
81
- };
@@ -1,70 +0,0 @@
1
- import { defineComponent as N, toRefs as w, ref as p, computed as A, resolveComponent as g, openBlock as s, createElementBlock as f, createVNode as v, unref as t, isRef as _, withCtx as m, Fragment as E, renderList as R, createBlock as S, createTextVNode as V, toDisplayString as k, createElementVNode as U } from "vue";
2
- import { e as D } from "./main-D3_7YhaK.js";
3
- const F = { class: "control-checkbox" }, L = { class: "check-all" }, G = /* @__PURE__ */ N({
4
- __name: "Checkbox",
5
- props: {
6
- schema: {},
7
- table: {},
8
- field: {},
9
- set: {},
10
- row: {},
11
- modelValue: {}
12
- },
13
- emits: ["change", "update:modelValue"],
14
- setup(x, { emit: b }) {
15
- let i = b, C = x, { field: r, table: T, set: j, modelValue: h } = w(C), u = p(!1), c = p(!1), y = (n) => {
16
- o.value = n ? r.value.control.data.data.map((e) => e.value) : [], c.value = !1;
17
- }, B = (n) => {
18
- let e = r.value.control.data.data.map((d) => d.value), a = n.filter((d) => e.includes(d));
19
- u.value = a.length == e.length, c.value = a.length > 0 && a.length < e.length, o.value = a;
20
- }, o = A({
21
- get() {
22
- return h.value ? h.value.split(",") : [];
23
- },
24
- set(n) {
25
- let e = n.toString();
26
- i("update:modelValue", e), i("change", e);
27
- }
28
- });
29
- return (n, e) => {
30
- const a = g("el-checkbox"), d = g("el-checkbox-group");
31
- return s(), f("div", F, [
32
- v(d, {
33
- onChange: t(B),
34
- modelValue: t(o),
35
- "onUpdate:modelValue": e[0] || (e[0] = (l) => _(o) ? o.value = l : o = l)
36
- }, {
37
- default: m(() => [
38
- (s(!0), f(E, null, R(t(r).control.data.data, (l) => (s(), S(a, {
39
- disabled: t(r).control.readonly,
40
- value: l.value,
41
- key: l.value
42
- }, {
43
- default: m(() => [
44
- V(k(l.text), 1)
45
- ]),
46
- _: 2
47
- }, 1032, ["disabled", "value"]))), 128))
48
- ]),
49
- _: 1
50
- }, 8, ["onChange", "modelValue"]),
51
- U("div", L, [
52
- v(a, {
53
- indeterminate: t(c),
54
- onChange: t(y),
55
- modelValue: t(u),
56
- "onUpdate:modelValue": e[1] || (e[1] = (l) => _(u) ? u.value = l : u = l)
57
- }, {
58
- default: m(() => [
59
- V(k(t(D)("common.select_all")), 1)
60
- ]),
61
- _: 1
62
- }, 8, ["indeterminate", "onChange", "modelValue"])
63
- ])
64
- ]);
65
- };
66
- }
67
- });
68
- export {
69
- G as default
70
- };
@@ -1,54 +0,0 @@
1
- import { defineComponent as b, toRefs as h, ref as F, computed as T, watch as _, openBlock as w, createBlock as N, unref as n, isRef as k } from "vue";
2
- import { p as x } from "./main-D3_7YhaK.js";
3
- const R = /* @__PURE__ */ b({
4
- __name: "Code",
5
- props: {
6
- schema: {},
7
- table: {},
8
- field: {},
9
- set: {},
10
- row: {},
11
- modelValue: {}
12
- },
13
- emits: ["submit", "change", "update:modelValue"],
14
- setup(d, { emit: g }) {
15
- let c = g, f = d, { table: s, field: a, set: y, row: i, modelValue: p } = h(f), o = F({ language: null, scrollTop: 0, lineNumbers: null, schema: null, category: null }), v = (e) => {
16
- let l = m(a.value.control.scrollTop);
17
- l && (i.value[l.name] = e);
18
- }, V = () => {
19
- let e = r(a.value.control.scrollTop);
20
- if (e && (o.value.scrollTop = parseInt(e)), o.value.lineNumbers = a.value.control.lineNumbers, a.value.control.languageField == null)
21
- o.value.language = a.value.control.language;
22
- else {
23
- let l = r(a.value.control.languageField);
24
- l && (o.value.language = l);
25
- }
26
- a.value.control.schema && (o.value.schema = a.value.control.schema, o.value.category = `${s.value.name}.${a.value.name}`);
27
- }, r = (e) => {
28
- let l = m(e);
29
- return l ? i.value[l.name] : null;
30
- }, m = (e) => e ? s.value.fields.find((u) => u.name == e) : null;
31
- V();
32
- let t = T({
33
- get() {
34
- return p.value ?? "";
35
- },
36
- set(e) {
37
- c("update:modelValue", e), c("change", e);
38
- }
39
- });
40
- return _(() => r(a.value.control.languageField), (e, l) => {
41
- o.value.language = e;
42
- }), (e, l) => (w(), N(n(x), {
43
- class: "control-code",
44
- border: "",
45
- config: n(o),
46
- onScroll: n(v),
47
- modelValue: n(t),
48
- "onUpdate:modelValue": l[0] || (l[0] = (u) => k(t) ? t.value = u : t = u)
49
- }, null, 8, ["config", "onScroll", "modelValue"]));
50
- }
51
- });
52
- export {
53
- R as default
54
- };
@@ -1,36 +0,0 @@
1
- import { defineComponent as v, toRefs as h, ref as i, openBlock as V, createBlock as y, unref as n, normalizeStyle as x, isRef as F } from "vue";
2
- import { p as _ } from "./main-D3_7YhaK.js";
3
- const C = /* @__PURE__ */ v({
4
- __name: "Code",
5
- props: {
6
- schema: {},
7
- table: {},
8
- field: {},
9
- set: {},
10
- row: {},
11
- modelValue: {}
12
- },
13
- setup(f) {
14
- let g = f, { table: s, field: t, set: b, row: d, modelValue: a } = h(g), o = i(), r = i({ language: null, readonly: !0, lineNumbers: "off" }), m = () => t.value.control.height ? `height: ${t.value.control.height}px` : "min-height: 200px;", c = (e) => e ? s.value.fields.find((u) => u.name == e) : null, p = (e) => {
15
- let l = c(e);
16
- return l ? d.value[l.name] : null;
17
- };
18
- return (() => {
19
- if (o.value = m(), t.value.control.languageField == null)
20
- r.value.language = t.value.control.language;
21
- else {
22
- let e = p(t.value.control.languageField);
23
- e && (r.value.language = e);
24
- }
25
- })(), (e, l) => (V(), y(n(_), {
26
- class: "text-code",
27
- config: n(r),
28
- style: x(n(o)),
29
- modelValue: n(a),
30
- "onUpdate:modelValue": l[0] || (l[0] = (u) => F(a) ? a.value = u : a = u)
31
- }, null, 8, ["config", "style", "modelValue"]));
32
- }
33
- });
34
- export {
35
- C as default
36
- };
@@ -1,59 +0,0 @@
1
- import { defineComponent as C, toRefs as h, ref as s, onMounted as b, resolveComponent as m, openBlock as n, createElementBlock as u, createVNode as i, unref as e, isRef as k, withCtx as p, Fragment as c, renderList as B, createBlock as E, createTextVNode as f, toDisplayString as _, createCommentVNode as L } from "vue";
2
- import { p as N } from "./main-D3_7YhaK.js";
3
- import { Q } from "./QueryApi-S0e3c6l0.js";
4
- const R = { class: "ha-code-layout" }, q = /* @__PURE__ */ C({
5
- __name: "Code",
6
- props: {
7
- route: {},
8
- validateErrors: {},
9
- module: {},
10
- schema: {},
11
- table: {},
12
- layout: {},
13
- next: {},
14
- set: {}
15
- },
16
- emits: ["submit", "change"],
17
- setup(g, { emit: U }) {
18
- let V = g, { module: w, schema: A, table: D, layout: l, next: F, set: M } = h(V), r = s({}), t = s(), v = () => {
19
- t.value = l.value.languages[0];
20
- };
21
- return b(() => {
22
- v(), Q.loadCodeLanguage().then((d) => {
23
- d.forEach((a) => {
24
- r.value[a.text] = a.suffix;
25
- });
26
- });
27
- }), (d, a) => {
28
- const x = m("el-radio"), y = m("el-radio-group");
29
- return n(), u("div", R, [
30
- i(y, {
31
- modelValue: e(t),
32
- "onUpdate:modelValue": a[0] || (a[0] = (o) => k(t) ? t.value = o : t = o)
33
- }, {
34
- default: p(() => [
35
- (n(!0), u(c, null, B(e(l).languages, (o) => (n(), E(x, { value: o }, {
36
- default: p(() => [
37
- f(_(o) + " ", 1),
38
- e(r)[o] ? (n(), u(c, { key: 0 }, [
39
- f("(" + _(e(r)[o]) + ")", 1)
40
- ], 64)) : L("", !0)
41
- ]),
42
- _: 2
43
- }, 1032, ["value"]))), 256))
44
- ]),
45
- _: 1
46
- }, 8, ["modelValue"]),
47
- i(e(N), {
48
- border: "",
49
- config: { language: e(r)[e(t)] },
50
- modelValue: e(l).codes[e(t)],
51
- "onUpdate:modelValue": a[1] || (a[1] = (o) => e(l).codes[e(t)] = o)
52
- }, null, 8, ["config", "modelValue"])
53
- ]);
54
- };
55
- }
56
- });
57
- export {
58
- q as _
59
- };
@@ -1,69 +0,0 @@
1
- import { defineComponent as F, toRefs as M, onMounted as b, computed as h, openBlock as l, createBlock as f, unref as e, withCtx as k, createElementBlock as o, Fragment as D, renderList as E, normalizeClass as H, createCommentVNode as u, createElementVNode as a, toDisplayString as i, resolveDynamicComponent as L, createVNode as S, createTextVNode as s } from "vue";
2
- import { F as z, K as C, w as K, H as P } from "./main-D3_7YhaK.js";
3
- import "element-plus";
4
- import "vue-router";
5
- import "./assets/intro.js-DxWjEdp_.js";
6
- const R = {
7
- key: 0,
8
- class: "menus"
9
- }, T = ["onClick"], $ = { class: "title" }, j = {
10
- key: 1,
11
- class: "column-empty"
12
- }, q = /* @__PURE__ */ a("br", null, null, -1), A = /* @__PURE__ */ a("br", null, null, -1), X = /* @__PURE__ */ F({
13
- __name: "Column",
14
- props: {
15
- view: {},
16
- url: {},
17
- win: {}
18
- },
19
- emits: ["loaded", "navigate"],
20
- setup(y, { expose: g, emit: w }) {
21
- let c = w, x = y, { url: m, view: d } = M(x), B = (t) => !0, N = (t) => !0, U = () => {
22
- p();
23
- }, p = () => {
24
- c("loaded", r.value.title);
25
- }, V = (t) => {
26
- let v = C.getUrl(t.url, { m: t.id });
27
- c("navigate", v);
28
- };
29
- b(() => {
30
- p();
31
- });
32
- let r = h(() => z.getMenuByUrl(m.value)), _ = h(() => C.getPath(m.value));
33
- return g({ shouldLoad: B, shouldSpin: N, refresh: U }), (t, v) => (l(), f(e(K), null, {
34
- default: k(() => [
35
- e(r) ? (l(), o("div", R, [
36
- (l(!0), o(D, null, E(e(r).children, (n) => (l(), o("div", {
37
- class: "menu",
38
- key: n.id,
39
- onClick: (G) => e(V)(n)
40
- }, [
41
- n.icon ? (l(), o("i", {
42
- key: 0,
43
- class: H(n.icon)
44
- }, null, 2)) : u("", !0),
45
- a("div", $, i(n.title), 1)
46
- ], 8, T))), 128))
47
- ])) : u("", !0),
48
- (l(), f(L(e(d)))),
49
- (!e(r) || e(r).children == 0) && !e(d) ? (l(), o("div", j, [
50
- S(e(P), null, {
51
- default: k(() => [
52
- s(" 此栏目页不存在子菜单或自定义部分视图,无内容可展示 ")
53
- ]),
54
- _: 1
55
- }),
56
- s(" 可考虑以下任一选项:"),
57
- q,
58
- s(" 1. 在 src/views 中实现自定义页面:" + i(e(_)), 1),
59
- A,
60
- s(" 2. 在 src/components/partials 中实现自定义首页部分视图:" + i(e(_)), 1)
61
- ])) : u("", !0)
62
- ]),
63
- _: 1
64
- }));
65
- }
66
- });
67
- export {
68
- X as default
69
- };
@@ -1,98 +0,0 @@
1
- import { defineComponent as E, toRefs as N, ref as S, computed as y, resolveComponent as u, openBlock as m, createElementBlock as p, createElementVNode as t, createVNode as v, createTextVNode as a, toDisplayString as l, unref as e, withCtx as b, Fragment as j, renderList as B, createBlock as T, createCommentVNode as q } from "vue";
2
- import { K as D } from "./main-D3_7YhaK.js";
3
- const F = { class: "ha-comment-layout" }, K = { class: "comment-add" }, L = { class: "add-footer" }, M = { class: "footer-title" }, R = /* @__PURE__ */ t("i", { class: "el-icon-s-comment" }, null, -1), U = { class: "comment-user" }, $ = { class: "avatar" }, A = /* @__PURE__ */ t("img", {
4
- src: "https://upload.jianshu.io/users/upload_avatars/2859365/cce8943353eb.jpeg?imageMogr2/auto-orient/strip|imageView2/1/w/80/h/80/format/webp",
5
- alt: ""
6
- }, null, -1), G = { class: "comment-body" }, H = { class: "comment-time" }, J = { class: "comment-content" }, O = /* @__PURE__ */ t("div", { class: "content-footer" }, [
7
- /* @__PURE__ */ t("span", null, [
8
- /* @__PURE__ */ t("i", { class: "fa fa-thumbs-up" }),
9
- /* @__PURE__ */ a("20")
10
- ]),
11
- /* @__PURE__ */ t("span", null, [
12
- /* @__PURE__ */ t("i", { class: "el-icon-s-comment" }),
13
- /* @__PURE__ */ a("回复")
14
- ])
15
- ], -1), P = { class: "comment-footer" }, Z = /* @__PURE__ */ E({
16
- __name: "Comment",
17
- props: {
18
- route: {},
19
- validateErrors: {},
20
- module: {},
21
- schema: {},
22
- table: {},
23
- layout: {},
24
- next: {},
25
- set: {}
26
- },
27
- setup(C) {
28
- let x = C, { schema: Q, table: r, layout: o, set: _, validateErrors: W } = N(x), c = S(1), k = (n) => {
29
- c.value = n;
30
- }, w = y(() => {
31
- let n = (c.value - 1) * o.value.pageSize, i = c.value * o.value.pageSize - 1;
32
- return _.value[r.value.name].filter((f, d) => d >= n && d <= i);
33
- }), h = y(() => r.value.fields.find((i) => i.name == o.value.userId));
34
- return (n, i) => {
35
- const g = u("el-input"), f = u("el-button"), d = u("router-link"), I = u("el-pagination");
36
- return m(), p("div", F, [
37
- t("div", K, [
38
- v(g, { type: "textarea" }),
39
- t("div", L, [
40
- t("div", M, [
41
- R,
42
- a("全部评论 (" + l(e(_)[e(r).name].length) + ")", 1)
43
- ]),
44
- v(f, {
45
- type: "primary",
46
- class: "btn-comment",
47
- icon: "el-icon-s-promotion"
48
- }, {
49
- default: b(() => [
50
- a("评论")
51
- ]),
52
- _: 1
53
- })
54
- ])
55
- ]),
56
- (m(!0), p(j, null, B(e(w), (s, z) => (m(), p("div", {
57
- class: "comment",
58
- key: z
59
- }, [
60
- t("div", U, [
61
- t("div", $, [
62
- A,
63
- a(" " + l(s[e(o).avatar]), 1)
64
- ])
65
- ]),
66
- t("div", G, [
67
- e(h) ? (m(), T(d, {
68
- key: 0,
69
- class: "comment-name",
70
- to: e(D).getUrl("/sys_user/detail", { id: s[e(o).userId], m: n.$route.query.m })
71
- }, {
72
- default: b(() => [
73
- a(l(e(h).control.data.data.find((V) => V.value == s[e(o).userId]).text), 1)
74
- ]),
75
- _: 2
76
- }, 1032, ["to"])) : q("", !0),
77
- t("div", H, l(s[e(o).commentTime]), 1),
78
- t("div", J, l(s[e(o).content]), 1),
79
- O
80
- ])
81
- ]))), 128)),
82
- t("div", P, [
83
- v(I, {
84
- background: "",
85
- layout: "total, prev, pager, next, jumper",
86
- "current-page": e(c),
87
- "page-size": e(o).pageSize,
88
- total: e(_)[e(r).name].length,
89
- onCurrentChange: e(k)
90
- }, null, 8, ["current-page", "page-size", "total", "onCurrentChange"])
91
- ])
92
- ]);
93
- };
94
- }
95
- });
96
- export {
97
- Z as default
98
- };
@@ -1,38 +0,0 @@
1
- import { defineComponent as x, toRefs as E, onMounted as b, computed as s, unref as f, openBlock as k, createElementBlock as w, normalizeClass as y, createCommentVNode as V, nextTick as B } from "vue";
2
- import { m as N } from "./main-D3_7YhaK.js";
3
- const D = /* @__PURE__ */ x({
4
- __name: "Compare",
5
- props: {
6
- schema: {},
7
- table: {},
8
- field: {},
9
- set: {},
10
- row: {},
11
- modelValue: {}
12
- },
13
- setup(p) {
14
- let v = p, { table: l, field: t, set: g, row: a, modelValue: M } = E(v), o = l.value.name + "-" + t.value.name + "-" + g.value[l.value.name].indexOf(a.value), r = null, n = null, i = null, e = null, C = () => {
15
- B(() => {
16
- let d = l.value.fields.find((h) => h.name == t.value.control.compareWith), c = a.value[d.name];
17
- n = e.editor.createModel(c, u.value), i = e.editor.createModel(m.value, u.value);
18
- let _ = document.getElementsByClassName(o)[0];
19
- debugger;
20
- r = e.editor.createDiffEditor(_, { originalEditable: !0 }), r.setModel({
21
- original: n,
22
- modified: i
23
- });
24
- });
25
- };
26
- b(async () => {
27
- e = await N.getMonaco(), C();
28
- });
29
- let m = s(() => M.value || ""), u = s(() => t.value.control.type.toLowerCase());
30
- return (d, c) => f(m) ? (k(), w("div", {
31
- key: 0,
32
- class: y(`text-compare ${f(o)}`)
33
- }, null, 2)) : V("", !0);
34
- }
35
- });
36
- export {
37
- D as default
38
- };
@@ -1,43 +0,0 @@
1
- import { defineComponent as y, toRefs as v, computed as _, unref as l, renderSlot as n, openBlock as g, createElementBlock as b, createElementVNode as c } from "vue";
2
- import { v as a } from "./main-D3_7YhaK.js";
3
- import { C } from "./assets/clipboard-DjQPoCBJ.js";
4
- const k = {
5
- key: 1,
6
- class: "copy-container"
7
- }, J = /* @__PURE__ */ c("img", {
8
- src: "/default/images/clippy.svg",
9
- alt: "复制文本"
10
- }, null, -1), h = [
11
- J
12
- ], E = /* @__PURE__ */ y({
13
- __name: "Copy",
14
- props: {
15
- schema: {},
16
- table: {},
17
- field: {},
18
- set: {},
19
- row: {},
20
- modelValue: {}
21
- },
22
- setup(p) {
23
- let u = p, { table: w, field: r, set: N, row: S, modelValue: i } = v(u), d = (e) => JSON.stringify(JSON.parse(e), null, 2), f = () => o.value && r.value.control.type == "Json" ? d(o.value).replace(/"/g, "'") : o.value, s = () => {
24
- let e = new C(".btn-copy", { text: () => f() });
25
- e.on("success", function(t) {
26
- a.success("复制成功"), e.destroy();
27
- }), e.on("error", function(t) {
28
- a.error("复制失败"), e.destroy();
29
- });
30
- }, o = _(() => i.value);
31
- return (e, t) => l(r).control.copy ? (g(), b("div", k, [
32
- c("i", {
33
- class: "btn-copy",
34
- onClick: t[0] || (t[0] = //@ts-ignore
35
- (...m) => l(s) && l(s)(...m))
36
- }, h),
37
- n(e.$slots, "default")
38
- ])) : n(e.$slots, "default", { key: 0 });
39
- }
40
- });
41
- export {
42
- E as default
43
- };
@@ -1,51 +0,0 @@
1
- import { defineComponent as x, toRefs as z, ref as L, openBlock as n, createBlock as i, KeepAlive as R, resolveDynamicComponent as B, unref as o } from "vue";
2
- import { K, v as N, e as U } from "./main-D3_7YhaK.js";
3
- const P = /* @__PURE__ */ x({
4
- __name: "Custom",
5
- props: {
6
- view: {},
7
- url: {},
8
- win: {}
9
- },
10
- emits: ["loaded", "navigate"],
11
- setup(u, { expose: s, emit: f }) {
12
- let a = f, v = u, { url: d, view: m, win: p } = z(v), t = L(), c = (e, l) => {
13
- if (!t.value || !t.value.keyboard)
14
- return !1;
15
- t.value.keyboard(e, l);
16
- }, h = (e) => !0, g = (e) => !0, w = () => {
17
- var l;
18
- let e = (l = t.value) == null ? void 0 : l.refresh;
19
- if (!e) {
20
- let r = K.getPath(d.value);
21
- N.notify(U("common.tips"), `要实现自定义刷新功能,请在组件 ${r} 内部定义并暴露refresh方法即可`, "warning");
22
- return;
23
- }
24
- e();
25
- }, _ = (e) => {
26
- var r;
27
- let l = (r = t.value) == null ? void 0 : r.beforeClose;
28
- l && l(e);
29
- }, b = (e) => {
30
- t.value && t.value.resize && t.value.resize(e);
31
- }, k = (e) => {
32
- t.value.handler(e);
33
- }, y = (e) => {
34
- a("loaded", e);
35
- }, C = (e) => {
36
- a("navigate", e);
37
- };
38
- return s({ shouldLoad: h, shouldSpin: g, refresh: w, beforeClose: _, keyboard: c, resize: b, handler: k }), (e, l) => (n(), i(R, null, [
39
- (n(), i(B(o(m)), {
40
- ref_key: "customRef",
41
- ref: t,
42
- win: o(p),
43
- onLoaded: o(y),
44
- onNavigate: o(C)
45
- }, null, 40, ["win", "onLoaded", "onNavigate"]))
46
- ], 1024));
47
- }
48
- });
49
- export {
50
- P as default
51
- };