halo-pc 1.0.21 → 1.0.23

Sign up to get free protection for your applications and to get access to all the features.
Files changed (171) hide show
  1. package/dist/Article-4S7jNdlM.js +200 -0
  2. package/dist/{ArticleFooter-CbvmQHCn.js → ArticleFooter-DQs1A7g2.js} +24 -18
  3. package/dist/Autocomplete-B9SJNrNq.js +53 -0
  4. package/dist/{Autocomplete-BrKsj5vx.js → Autocomplete-BXwtzACg.js} +1 -1
  5. package/dist/Autocomplete-BZNDoWFj.js +54 -0
  6. package/dist/{CSharp-DGmv2biT.js → CSharp-aXdVWxPS.js} +1 -1
  7. package/dist/{Calender-dCiW7eIK.js → Calender-DSckLCh-.js} +4 -4
  8. package/dist/Callback-xlj8oj2-.js +26 -0
  9. package/dist/Cascader-Cwi5mukb.js +87 -0
  10. package/dist/Cascader-D1RbjsMs.js +47 -0
  11. package/dist/Checkbox-DFnVivE9.js +76 -0
  12. package/dist/{Checkbox-DklZD5ff.js → Checkbox-DtNMPsX4.js} +1 -1
  13. package/dist/{Code-DVZ9QWgE.js → Code-B2jpV8ek.js} +1 -1
  14. package/dist/Code-CEafFSlR.js +4 -0
  15. package/dist/Code-CTmcyEEu.js +60 -0
  16. package/dist/Code-DEOvcbgy.js +42 -0
  17. package/dist/Code.vue_vue_type_style_index_0_lang-Cf1QzL0C.js +65 -0
  18. package/dist/Column-zAYqqGgI.js +74 -0
  19. package/dist/Comment-BZTVtxyP.js +104 -0
  20. package/dist/Compare-DMDVEK_Q.js +63 -0
  21. package/dist/Compare-Dy_YDKN2.js +43 -0
  22. package/dist/Copy-KA_-9J5g.js +49 -0
  23. package/dist/Custom-BpQzSpoK.js +57 -0
  24. package/dist/{DataExport-DAk1d4uG.js → DataExport-CU9MMI6C.js} +1 -1
  25. package/dist/{DataExport.vue_vue_type_script_setup_true_lang-Clh4Jvxi.js → DataExport.vue_vue_type_script_setup_true_lang-DdczhsmD.js} +42 -37
  26. package/dist/{DataImport-BLOSIbQ2.js → DataImport-Dzq9P4hO.js} +1 -1
  27. package/dist/{DataImport.vue_vue_type_script_setup_true_lang-D5J7e_59.js → DataImport.vue_vue_type_script_setup_true_lang-BdDLixcQ.js} +64 -60
  28. package/dist/{Date-D1KihBir.js → Date-BD5syhZL.js} +1 -1
  29. package/dist/Date-yqT5zILQ.js +43 -0
  30. package/dist/DateRange-CUQsaLxD.js +63 -0
  31. package/dist/DateTime-DcerQByM.js +44 -0
  32. package/dist/{DateTime-Dwg6aUf3.js → DateTime-hLc--zka.js} +1 -1
  33. package/dist/{DateTimeRange-Cir1-Js8.js → DateTimeRange-CSRaF4s1.js} +19 -13
  34. package/dist/Daterange-DY2i3jwP.js +63 -0
  35. package/dist/{Decimal-tv9vqaXk.js → Decimal-DY34o2Nh.js} +1 -1
  36. package/dist/Delete-CXnvlNw9.js +62 -0
  37. package/dist/{Detail-B2rtvufA.js → Detail-BYlDGKVP.js} +22 -17
  38. package/dist/Dictionary-DtXqTf_k.js +59 -0
  39. package/dist/Email-ofMPw09E.js +54 -0
  40. package/dist/{File-C63qevce.js → File-czipSVR0.js} +33 -28
  41. package/dist/Image-BwJO-IEo.js +9 -0
  42. package/dist/{Index-Cc_CDbUJ.js → Index-BSZ_tPMy.js} +1 -1
  43. package/dist/Index-Bwy9Q7qy.js +4 -0
  44. package/dist/{Index-Cev7Nudv.js → Index-CK25oTiA.js} +1 -1
  45. package/dist/Index-Ch5_Jqsf.js +4 -0
  46. package/dist/{Index-BD6O3A9N.js → Index-DIUPLGQ4.js} +25 -20
  47. package/dist/Index-DnNVMYOZ.js +4 -0
  48. package/dist/Index-j9BffBys.js +178 -0
  49. package/dist/{Index-B6Ec8rbl.js → Index-qOyfJhdG.js} +1 -1
  50. package/dist/{Index.vue_vue_type_script_setup_true_lang-DaoT5edv.js → Index.vue_vue_type_script_setup_true_lang-Bp4JjtSz.js} +21 -16
  51. package/dist/{Index.vue_vue_type_script_setup_true_lang-xNPG8cCE.js → Index.vue_vue_type_script_setup_true_lang-DtZPmPAC.js} +21 -16
  52. package/dist/{Index.vue_vue_type_style_index_0_lang-F7HqBnCS.js → Index.vue_vue_type_style_index_0_lang-CTTyswoD.js} +40 -35
  53. package/dist/{Install-CTAGNKPW.js → Install-qFVqjd7y.js} +29 -24
  54. package/dist/Int-BWcRpPzt.js +44 -0
  55. package/dist/Int-BYyavcrM.js +46 -0
  56. package/dist/List-BejoBArm.js +79 -0
  57. package/dist/Maintaince-Dlh2ICnO.js +20 -0
  58. package/dist/{Markdown-BJB6rQY8.js → Markdown-DymmFy2X.js} +1 -1
  59. package/dist/{Month-ui1XorBW.js → Month-C5_ANmVr.js} +1 -1
  60. package/dist/Month-Cf8e0cin.js +43 -0
  61. package/dist/Month-DaYaF2WK.js +44 -0
  62. package/dist/{Normal-Cf7kP6RU.js → Normal-NYkjZ2aA.js} +49 -45
  63. package/dist/Paging-DoQ_cXwj.js +99 -0
  64. package/dist/{PagingHeader-BkFBl-r_.js → PagingHeader-BhwoSfFl.js} +31 -25
  65. package/dist/{PagingRow-eXCadgdO.js → PagingRow-BF6pUhoJ.js} +28 -22
  66. package/dist/QueryApi-CPQ67lb4.js +20 -0
  67. package/dist/{Racebar-ClXzi9hV.js → Racebar-BNPXg9aN.js} +42 -37
  68. package/dist/{Radio-llyoK7PI.js → Radio-wHwEjg6V.js} +1 -1
  69. package/dist/{Register-BaHhaZMu.js → Register-B4Bc8s-2.js} +70 -66
  70. package/dist/RichText-Cj5QP79L.js +47 -0
  71. package/dist/{SearchFooter-BgJxQrMo.js → SearchFooter-zNYx9YkN.js} +1 -1
  72. package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-C6DtjpFD.js → SearchFooter.vue_vue_type_style_index_0_lang-CVxX9q-U.js} +1 -1
  73. package/dist/{SearchForm-CroUQ_3K.js → SearchForm-CJ3ru63a.js} +1 -1
  74. package/dist/{SearchForm.vue_vue_type_style_index_0_lang-DEu6hHys.js → SearchForm.vue_vue_type_style_index_0_lang-DDH5N323.js} +37 -33
  75. package/dist/{Select-BtNeUq9h.js → Select-BDaDhqW7.js} +1 -1
  76. package/dist/Select-DFLY8nGY.js +86 -0
  77. package/dist/{Select-BYw63gZy.js → Select-WXibWkE0.js} +35 -30
  78. package/dist/{Single-CCVi3Pcj.js → Single-CmQgQl_u.js} +106 -102
  79. package/dist/{Statistic-g3nQvsbW.js → Statistic-BuU_GxqZ.js} +34 -30
  80. package/dist/{Stock-C6Fxo31l.js → Stock-B7NgfM19.js} +1 -1
  81. package/dist/{Stock-CNqLeSld.js → Stock-CDJ-AVw-.js} +1 -1
  82. package/dist/{Stock.vue_vue_type_style_index_0_lang-BqXBN6CJ.js → Stock.vue_vue_type_style_index_0_lang-pZYnIJLp.js} +30 -25
  83. package/dist/{Switch-NMkH-rhl.js → Switch-DHf-0HZD.js} +1 -1
  84. package/dist/{Table-DpA4dO4P.js → Table-7P4KXMsy.js} +66 -61
  85. package/dist/{Table-Cdd_tPoL.js → Table-CN-KYO1R.js} +69 -66
  86. package/dist/Text-C05EoDxO.js +59 -0
  87. package/dist/{Text-DanSgaL9.js → Text-Da3ROjFC.js} +18 -12
  88. package/dist/Text-DqapEwUL.js +4 -0
  89. package/dist/Text.vue_vue_type_style_index_0_lang-DKX9_aI4.js +59 -0
  90. package/dist/TextLink-CQ_46bry.js +65 -0
  91. package/dist/{Textarea-HhP_VFJV.js → Textarea-B91EwIdj.js} +1 -1
  92. package/dist/Time-DxyveGcA.js +43 -0
  93. package/dist/Timeline-C1xOEcU4.js +59 -0
  94. package/dist/Tree-BK6p6Ake.js +122 -0
  95. package/dist/{Tree-Ck_7r3nf.js → Tree-DxJKaqc6.js} +101 -97
  96. package/dist/TreeNode-C84IoqkK.js +42 -0
  97. package/dist/{Update-DrmLFoty.js → Update-D5cXmHyf.js} +20 -15
  98. package/dist/{UpdateChild-CGCn-Eh4.js → UpdateChild-DvrF1nBA.js} +23 -17
  99. package/dist/Upload-CK-ALAKV.js +72 -0
  100. package/dist/Upload-CRpCHz3m.js +150 -0
  101. package/dist/UploadApi-B-7WPVHD.js +20 -0
  102. package/dist/Year-BOL9ynRU.js +47 -0
  103. package/dist/{Year-RGAEzf_V.js → Year-CwaPwkLN.js} +1 -1
  104. package/dist/assets/@intlify-BISCQg1h.js +2189 -0
  105. package/dist/assets/@vue-aVYGocXp.js +93 -0
  106. package/dist/assets/clone-BZn0cTAu.js +134 -0
  107. package/dist/assets/file-saver-CwlpTZSc.js +74 -0
  108. package/dist/assets/liquidjs-C-LVcoaY.js +2893 -0
  109. package/dist/assets/moment-h96o7c8I.js +2578 -0
  110. package/dist/assets/sprintf-js-BPTdvBYM.js +148 -0
  111. package/dist/assets/underscore-B0BCaBxV.js +1070 -0
  112. package/dist/assets/underscore.string-DVXD2SZo.js +425 -0
  113. package/dist/assets/util-deprecate-Dzun97re.js +28 -0
  114. package/dist/assets/vue-i18n-CLr3brPz.js +1670 -0
  115. package/dist/main-CnPQ_RYM.js +8948 -0
  116. package/dist/main.js +130 -130
  117. package/dist/style.css +1 -1
  118. package/package.json +1 -1
  119. package/dist/Article-D3N6eVpH.js +0 -195
  120. package/dist/Autocomplete-C1Q-qo5y.js +0 -49
  121. package/dist/Autocomplete-C_t_3Onz.js +0 -48
  122. package/dist/Callback-BcjLHYz6.js +0 -20
  123. package/dist/Cascader-BMs1Kw-s.js +0 -81
  124. package/dist/Cascader-BoZLMQjq.js +0 -41
  125. package/dist/Checkbox-DeuCkQ_E.js +0 -70
  126. package/dist/Code-CmB3ZGnM.js +0 -54
  127. package/dist/Code-Q9ETcIfA.js +0 -36
  128. package/dist/Code-hiW76EUm.js +0 -4
  129. package/dist/Code.vue_vue_type_style_index_0_lang-DJO46RBx.js +0 -59
  130. package/dist/Column-K0p0pVuf.js +0 -69
  131. package/dist/Comment-B_jDWUXE.js +0 -98
  132. package/dist/Compare-CziDSVLD.js +0 -37
  133. package/dist/Compare-DFDzyQIR.js +0 -57
  134. package/dist/Copy-gHXEFE58.js +0 -43
  135. package/dist/Custom-DS1OrDHT.js +0 -51
  136. package/dist/Date-BOrgXdKV.js +0 -37
  137. package/dist/DateRange-Clg_We_d.js +0 -57
  138. package/dist/DateTime-Ba-L9NIq.js +0 -38
  139. package/dist/Daterange-Gaj6hNOK.js +0 -57
  140. package/dist/Delete-HzVURBlh.js +0 -57
  141. package/dist/Dictionary-DKnp-UJn.js +0 -55
  142. package/dist/Email-CpOxaSSw.js +0 -48
  143. package/dist/Image-DRIunv3_.js +0 -9
  144. package/dist/Index-DSKuNKCT.js +0 -4
  145. package/dist/Index-QIBRYf1L.js +0 -4
  146. package/dist/Index-ZOfKMgat.js +0 -4
  147. package/dist/Index-bxLda8lZ.js +0 -174
  148. package/dist/Int-DmNjhEfK.js +0 -38
  149. package/dist/Int-nUzbSSOv.js +0 -41
  150. package/dist/List-gNI3y_wH.js +0 -74
  151. package/dist/Maintaince-pTASKuMA.js +0 -14
  152. package/dist/Month-CHfaIo8p.js +0 -38
  153. package/dist/Month-DgztqRaq.js +0 -37
  154. package/dist/Paging-CBgVct8q.js +0 -95
  155. package/dist/QueryApi-Wf86Sm6m.js +0 -13
  156. package/dist/RichText-Cc_jptgY.js +0 -41
  157. package/dist/Select-wxKjwxJj.js +0 -80
  158. package/dist/Text-DgZjeg-u.js +0 -4
  159. package/dist/Text-GuLK7BYX.js +0 -53
  160. package/dist/Text.vue_vue_type_style_index_0_lang-CYGKr6vh.js +0 -53
  161. package/dist/TextLink-B_Ur1pg0.js +0 -59
  162. package/dist/Time-CmyrAm3i.js +0 -37
  163. package/dist/Timeline-B85T2wBn.js +0 -53
  164. package/dist/Tree-OqvNLgYj.js +0 -118
  165. package/dist/TreeNode-Ba2f55wK.js +0 -37
  166. package/dist/Upload-D9HeSZCg.js +0 -68
  167. package/dist/Upload-DXADyB6r.js +0 -147
  168. package/dist/UploadApi-DAT-xdsM.js +0 -13
  169. package/dist/Year-Dx_qNPrz.js +0 -41
  170. package/dist/assets/halo-fe-idvmXC0t.js +0 -15923
  171. package/dist/main-COiaaxGk.js +0 -3542
@@ -1,53 +0,0 @@
1
- import { defineComponent as V, toRefs as x, computed as _, resolveComponent as g, openBlock as C, createBlock as b, unref as e, withKeys as y, isRef as v, createSlots as k, withCtx as D, createTextVNode as K, toDisplayString as w } from "vue";
2
- import { aM as B } from "./assets/halo-fe-idvmXC0t.js";
3
- const M = /* @__PURE__ */ V({
4
- __name: "Text",
5
- props: {
6
- schema: {},
7
- table: {},
8
- field: {},
9
- searchData: {},
10
- modelValue: {}
11
- },
12
- emits: ["change", "submit", "update:modelValue"],
13
- setup(u, { emit: p }) {
14
- let l = p, s = u, { table: i, field: o, searchData: R, modelValue: d } = x(s), c = (a) => {
15
- l("change", a);
16
- }, n = () => {
17
- l("submit");
18
- }, f = () => {
19
- n();
20
- }, t = _({
21
- get() {
22
- return d.value;
23
- },
24
- set(a) {
25
- l("update:modelValue", a);
26
- }
27
- });
28
- return (a, m) => {
29
- const h = g("el-input");
30
- return C(), b(h, {
31
- type: "text",
32
- placeholder: e(B)(e(i).name, e(o).name),
33
- clearable: "",
34
- onKeyup: y(e(n), ["enter", "native"]),
35
- onChange: e(c),
36
- onClear: e(f),
37
- modelValue: e(t),
38
- "onUpdate:modelValue": m[0] || (m[0] = (r) => v(t) ? t.value = r : t = r)
39
- }, k({ _: 2 }, [
40
- e(o).suffix ? {
41
- name: "append",
42
- fn: D(() => [
43
- K(w(e(o).suffix), 1)
44
- ]),
45
- key: "0"
46
- } : void 0
47
- ]), 1032, ["placeholder", "onKeyup", "onChange", "onClear", "modelValue"]);
48
- };
49
- }
50
- });
51
- export {
52
- M as default
53
- };
@@ -1,53 +0,0 @@
1
- import { defineComponent as x, toRefs as v, ref as d, computed as V, resolveComponent as g, openBlock as s, createElementBlock as a, Fragment as y, unref as l, createBlock as B, isRef as p, createCommentVNode as C, nextTick as R, createElementVNode as T } from "vue";
2
- import { ag as H } from "./assets/halo-fe-idvmXC0t.js";
3
- const b = ["innerHTML"], w = /* @__PURE__ */ T("i", { class: "fa fa-edit" }, null, -1), E = [
4
- w
5
- ], S = /* @__PURE__ */ x({
6
- __name: "Text",
7
- props: {
8
- schema: {},
9
- table: {},
10
- field: {},
11
- set: {},
12
- row: {},
13
- modelValue: {}
14
- },
15
- setup(c) {
16
- let _ = c, { table: L, field: u, set: M, row: N, modelValue: k } = v(_), t = d(!1), i = d(), m = () => {
17
- t.value = !0, R(() => {
18
- i.value.focus();
19
- });
20
- }, o = V(() => {
21
- var r;
22
- let f = H.getHtml((r = k.value) == null ? void 0 : r.toString());
23
- return (u.value.control.prefix || "") + (f || "") + (u.value.control.suffix || "");
24
- });
25
- return (f, e) => {
26
- const r = g("el-input");
27
- return s(), a(y, null, [
28
- l(t) ? (s(), B(r, {
29
- key: 1,
30
- ref_key: "editRef",
31
- ref: i,
32
- type: "text",
33
- onBlur: e[0] || (e[0] = (n) => p(t) ? t.value = !1 : t = !1),
34
- modelValue: l(o),
35
- "onUpdate:modelValue": e[1] || (e[1] = (n) => p(o) ? o.value = n : o = n)
36
- }, null, 8, ["modelValue"])) : (s(), a("span", {
37
- key: 0,
38
- class: "text-text",
39
- innerHTML: l(o)
40
- }, null, 8, b)),
41
- l(t) ? C("", !0) : (s(), a("span", {
42
- key: 2,
43
- class: "edit-inline",
44
- onClick: e[2] || (e[2] = //@ts-ignore
45
- (...n) => l(m) && l(m)(...n))
46
- }, E))
47
- ], 64);
48
- };
49
- }
50
- });
51
- export {
52
- S as _
53
- };
@@ -1,59 +0,0 @@
1
- import { defineComponent as g, toRefs as E, ref as $, computed as s, resolveComponent as w, unref as o, openBlock as u, createElementBlock as d, renderSlot as i, createBlock as x, withCtx as y } from "vue";
2
- import { K as m, s as B } from "./assets/halo-fe-idvmXC0t.js";
3
- const C = { key: 0 }, R = ["href", "target"], S = /* @__PURE__ */ g({
4
- __name: "TextLink",
5
- props: {
6
- schema: {},
7
- table: {},
8
- field: {},
9
- set: {},
10
- row: {}
11
- },
12
- emits: ["submit", "change", "update:modelValue"],
13
- setup(h, { emit: L }) {
14
- let k = h, { table: O, field: t, set: T, row: c } = E(k), p = $(), a = s(() => {
15
- let e = t.value.link.href;
16
- return t.value.link.values.forEach((r) => {
17
- e = e.replace(`{${r}}`, c.value[r]);
18
- }), e;
19
- }), _ = s(() => m.httpOrHttps(a.value)), v = s(() => {
20
- let e = a.value;
21
- if (t.value.link.tables.length > 0) {
22
- let l = {};
23
- t.value.link.tables.forEach((n) => {
24
- l[n.name] = {}, n.search.forEach((f) => {
25
- l[n.name][f.name] = c.value[f.value];
26
- });
27
- });
28
- let b = B.encode(l);
29
- e += "&condition=" + b;
30
- }
31
- return m.getToRoute(e);
32
- });
33
- return (e, r) => {
34
- const l = w("router-link");
35
- return o(p) ? (u(), d("div", C, [
36
- i(e.$slots, "default")
37
- ])) : o(_) ? (u(), d("a", {
38
- key: 1,
39
- class: "text-link",
40
- href: o(a),
41
- target: o(t).link.target
42
- }, [
43
- i(e.$slots, "default")
44
- ], 8, R)) : (u(), x(l, {
45
- key: 2,
46
- class: "text-link",
47
- to: o(v)
48
- }, {
49
- default: y(() => [
50
- i(e.$slots, "default")
51
- ]),
52
- _: 3
53
- }, 8, ["to"]));
54
- };
55
- }
56
- });
57
- export {
58
- S as default
59
- };
@@ -1,37 +0,0 @@
1
- import { defineComponent as c, toRefs as f, computed as _, resolveComponent as V, openBlock as b, createBlock as h, unref as e, isRef as g } from "vue";
2
- import { aL as k } from "./assets/halo-fe-idvmXC0t.js";
3
- const C = /* @__PURE__ */ c({
4
- __name: "Time",
5
- props: {
6
- schema: {},
7
- table: {},
8
- field: {},
9
- set: {},
10
- row: {},
11
- modelValue: {}
12
- },
13
- emits: ["submit", "change", "update:modelValue"],
14
- setup(n, { emit: s }) {
15
- let o = s, r = n, { table: u, field: a, set: x, modelValue: p } = f(r), l = _({
16
- get() {
17
- return p.value;
18
- },
19
- set(t) {
20
- o("update:modelValue", t), o("change", t);
21
- }
22
- });
23
- return (t, m) => {
24
- const i = V("el-time-select");
25
- return b(), h(i, {
26
- type: "time",
27
- placeholder: e(k)(e(u).name, e(a).name),
28
- disabled: e(a).control.readonly,
29
- modelValue: e(l),
30
- "onUpdate:modelValue": m[0] || (m[0] = (d) => g(l) ? l.value = d : l = d)
31
- }, null, 8, ["placeholder", "disabled", "modelValue"]);
32
- };
33
- }
34
- });
35
- export {
36
- C as default
37
- };
@@ -1,53 +0,0 @@
1
- import { defineComponent as h, toRefs as y, resolveComponent as o, openBlock as t, createBlock as n, unref as e, withCtx as m, createElementVNode as r, createElementBlock as c, Fragment as k, renderList as x, createCommentVNode as g } from "vue";
2
- import { a3 as v, ag as C } from "./assets/halo-fe-idvmXC0t.js";
3
- const B = { class: "timeline-layout" }, H = ["innerHTML"], L = {
4
- key: 0,
5
- class: "timeline-detail"
6
- }, F = /* @__PURE__ */ h({
7
- __name: "Timeline",
8
- props: {
9
- searchData: {},
10
- route: {},
11
- module: {},
12
- schema: {},
13
- table: {},
14
- layout: {},
15
- next: {},
16
- set: {}
17
- },
18
- setup(_) {
19
- let u = _, { module: T, schema: b, table: l, layout: a, next: E, set: i } = y(u);
20
- return (M, N) => {
21
- const p = o("el-timeline-item"), d = o("el-timeline"), f = o("el-empty");
22
- return t(), n(e(v), { class: "timeline" }, {
23
- default: m(() => [
24
- r("div", B, [
25
- e(i)[e(l).name].length > 0 ? (t(), n(d, {
26
- key: 0,
27
- reverse: !1
28
- }, {
29
- default: m(() => [
30
- (t(!0), c(k, null, x(e(i)[e(l).name], (s) => (t(), n(p, {
31
- timestamp: s[e(a).time]
32
- }, {
33
- default: m(() => [
34
- r("div", {
35
- innerHTML: e(C).getHtml(s[e(a).text])
36
- }, null, 8, H)
37
- ]),
38
- _: 2
39
- }, 1032, ["timestamp"]))), 256))
40
- ]),
41
- _: 1
42
- })) : (t(), n(f, { key: 1 }))
43
- ]),
44
- e(l).length > 0 ? (t(), c("div", L, " 时间线节点详情 ")) : g("", !0)
45
- ]),
46
- _: 1
47
- });
48
- };
49
- }
50
- });
51
- export {
52
- F as default
53
- };
@@ -1,118 +0,0 @@
1
- import { defineComponent as Q, toRefs as U, ref as m, onMounted as X, watch as Y, nextTick as K, resolveComponent as N, openBlock as k, createElementBlock as w, unref as d, Fragment as L, renderList as B, createBlock as M, withCtx as b, createVNode as Z, createElementVNode as ee, toDisplayString as T, createCommentVNode as F } from "vue";
2
- import { N as le, g as _, m as P } from "./assets/halo-fe-idvmXC0t.js";
3
- import { s as S } from "./main-COiaaxGk.js";
4
- const te = { class: "option-text" }, ae = {
5
- key: 0,
6
- class: "option-suffix"
7
- }, se = /* @__PURE__ */ Q({
8
- __name: "Tree",
9
- props: {
10
- route: {},
11
- validateErrors: {},
12
- module: {},
13
- schema: {},
14
- table: {},
15
- layout: {},
16
- next: {},
17
- set: {}
18
- },
19
- setup($, { expose: j }) {
20
- let z = $, { module: D, schema: ne, table: u, layout: l, set: f } = U(z), E = m(), V = m([]), g = m(), y = m(0), x = m([]), R = m(!0), W = (e, n, o) => {
21
- let a = f.value[u.value.name].find((r) => r.PermissionId == e[l.value.id]);
22
- a && (a[l.value.expand] = !0);
23
- }, q = (e, n, o) => {
24
- let a = f.value[u.value.name].find((r) => r.PermissionId == e[l.value.id]);
25
- a && (a[l.value.expand] = !1);
26
- }, A = (e, n, o) => {
27
- let a = n.checkedKeys, r = e[l.value.id], i = _.contains(a, r), c = [], s = [], h = P.getChildren(e, "Children").map((t) => t[l.value.id]), p = f.value[u.value.name].map((t) => t[l.value.checked]), v = _.intersect(h, p);
28
- if (i) {
29
- c.push(e[l.value.id]);
30
- let t = _.except(h, v);
31
- t.length && (a.push(...t), c.push(...t));
32
- } else
33
- s.push(r), v.length == h.length && (s.push(...h), _.remove(a, h));
34
- c.length && G(c), s.length && H(s);
35
- }, G = (e) => {
36
- for (let n = 0; n < e.length; n++) {
37
- let o = S.getDefaultRow(u.value);
38
- o[l.value.checked] = e[n], f.value[u.value.name].push(o);
39
- }
40
- }, H = (e) => {
41
- let n = f.value[u.value.name];
42
- for (let o = 0; o < e.length; o++) {
43
- let a = n.find((r) => r[l.value.checked] == e[o]);
44
- _.remove(n, a);
45
- }
46
- }, J = (e) => {
47
- g.value = e.contentRect.width, y.value = Math.ceil(g.value / 300), I(u.value, l.value, f.value);
48
- }, I = (e, n, o) => {
49
- x.value = S.getLines(n.data, y.value, (a) => [a], () => 1), K(() => {
50
- let a = o[e.name].map((i) => i[n.checked]), r = 0;
51
- for (let i = 0; i < x.value.length; i++) {
52
- let c = x.value[i];
53
- for (let s = 0; s < c.length; s++) {
54
- let C = V.value[r], h = c[s].data, p = P.getFlat(h, "Children").map((t) => t[n.id]), v = _.intersect(p, a);
55
- if (!(v.length == 1 && p.length > 1)) for (let t = 0; t < v.length; t++) {
56
- let O = v[t];
57
- C.setChecked(O, !0, !1);
58
- }
59
- r++;
60
- }
61
- }
62
- });
63
- };
64
- return X(() => {
65
- g.value = le.getWidth(E.value), y.value = Math.ceil(g.value / 300), I(u.value, l.value, f.value);
66
- }), Y(() => u.value, (e, n) => {
67
- R.value = !1, K(() => {
68
- R.value = !0, I(e, l.value, f.value);
69
- });
70
- }), j({ resize: J }), (e, n) => {
71
- const o = N("el-tree"), a = N("el-col"), r = N("el-row");
72
- return k(), w("div", {
73
- ref_key: "layoutRef",
74
- ref: E,
75
- class: "ha-tree-layout"
76
- }, [
77
- d(R) ? (k(!0), w(L, { key: 0 }, B(d(x), (i, c) => (k(), M(r, null, {
78
- default: b(() => [
79
- (k(!0), w(L, null, B(i, ({ data: s, span: C, index: h }, p) => (k(), M(a, {
80
- span: C,
81
- key: `${c}.${p}`
82
- }, {
83
- default: b(() => [
84
- Z(o, {
85
- ref_for: !0,
86
- ref_key: "treeRefs",
87
- ref: V,
88
- "show-checkbox": "",
89
- "highlight-current": "",
90
- "default-expand-all": !1,
91
- "expand-on-click-node": !1,
92
- "node-key": d(l).id,
93
- data: s,
94
- props: { children: "Children", label: d(l).text },
95
- disabled: d(D).type == "Detail",
96
- onNodeExpand: d(W),
97
- onNodeCollapse: d(q),
98
- onCheck: (v, t) => d(A)(v, t, h)
99
- }, {
100
- default: b(({ node: v, data: t }) => [
101
- ee("div", te, T(t[d(l).text]), 1),
102
- d(l).suffix ? (k(), w("div", ae, T(t[d(l).suffix]), 1)) : F("", !0)
103
- ]),
104
- _: 2
105
- }, 1032, ["node-key", "data", "props", "disabled", "onNodeExpand", "onNodeCollapse", "onCheck"])
106
- ]),
107
- _: 2
108
- }, 1032, ["span"]))), 128))
109
- ]),
110
- _: 2
111
- }, 1024))), 256)) : F("", !0)
112
- ], 512);
113
- };
114
- }
115
- });
116
- export {
117
- se as default
118
- };
@@ -1,37 +0,0 @@
1
- import { defineComponent as x, toRefs as h, computed as C, openBlock as s, createElementBlock as i, unref as e, createElementVNode as N, toDisplayString as a, createTextVNode as b, createCommentVNode as d } from "vue";
2
- import { P as y, Q as g } from "./assets/halo-fe-idvmXC0t.js";
3
- const k = ["title"], v = { class: "number" }, V = {
4
- key: 0,
5
- class: "option-suffix"
6
- }, B = {
7
- key: 1,
8
- class: "count"
9
- }, O = /* @__PURE__ */ x({
10
- __name: "TreeNode",
11
- props: {
12
- table: {},
13
- layout: {},
14
- row: {},
15
- node: {}
16
- },
17
- setup(u) {
18
- let c = u, { table: p, layout: n, row: t, node: f } = h(c), m = (r, o) => {
19
- let l = (r.parent.data.Children ? r.parent.data.Children.indexOf(o) : r.parent.data.indexOf(o)) + 1;
20
- return g.padLeft(l, 2, "0");
21
- }, _ = C(() => p.value.fields.find((l) => l.name == n.value.text).control.i18N);
22
- return (r, o) => {
23
- var l;
24
- return s(), i("div", {
25
- title: e(t)[e(n).title]
26
- }, [
27
- N("span", v, a(e(m)(e(f), e(t))), 1),
28
- b(" " + a((l = e(_)) != null && l.value ? e(y)(e(t)[e(n).text]) : e(t)[e(n).text]) + " ", 1),
29
- e(n).suffix ? (s(), i("span", V, a(e(t)[e(n).suffix]), 1)) : d("", !0),
30
- e(t).Children && e(t).Children.length > 0 ? (s(), i("span", B, "(" + a(e(t).Children.length) + ")", 1)) : d("", !0)
31
- ], 8, k);
32
- };
33
- }
34
- });
35
- export {
36
- O as default
37
- };
@@ -1,68 +0,0 @@
1
- import { defineComponent as V, toRefs as b, ref as r, onMounted as k, computed as w, resolveComponent as x, openBlock as d, createElementBlock as n, Fragment as C, renderList as E, unref as s, createVNode as F, isRef as I, withCtx as O, createElementVNode as $ } from "vue";
2
- import { d as c, K as y, c as B, O as N } from "./assets/halo-fe-idvmXC0t.js";
3
- import { u as R } from "./main-COiaaxGk.js";
4
- import "./QueryApi-Wf86Sm6m.js";
5
- import { U as j } from "./UploadApi-DAT-xdsM.js";
6
- const A = { class: "text-upload" }, H = ["src", "onClick", "alt"], K = ["src"], Q = /* @__PURE__ */ V({
7
- __name: "Upload",
8
- props: {
9
- schema: {},
10
- table: {},
11
- field: {},
12
- set: {},
13
- row: {},
14
- modelValue: {}
15
- },
16
- setup(f) {
17
- let v = f, { table: L, field: M, set: S, row: T, modelValue: g } = b(v), i = r(), t = r(!1), p = r([]), m = r(), _ = (e) => {
18
- t.value = !0, m.value = e.url;
19
- }, h = () => {
20
- if (o.value)
21
- if (c.upload.method == "box")
22
- j.getUploadToken().then((e) => {
23
- o.value.split(",").forEach((a) => {
24
- let l = `${c.upload.address}/api/objects/download?slug=${a}&token=${e}`;
25
- p.value.push({ name: a, url: l });
26
- });
27
- });
28
- else {
29
- let e = y.httpOrHttps(o.value) ? o.value : B.api.url + o.value;
30
- N.isImage(e) ? i.value = e : i.value = R.getFileIcon(e);
31
- }
32
- };
33
- k(() => {
34
- h();
35
- });
36
- let o = w(() => g.value);
37
- return (e, u) => {
38
- const a = x("el-dialog");
39
- return d(), n("div", A, [
40
- (d(!0), n(C, null, E(s(p), (l, U) => (d(), n("img", {
41
- class: "detail-image",
42
- src: l.url,
43
- onClick: (q) => s(_)(l),
44
- alt: l.name,
45
- key: U
46
- }, null, 8, H))), 128)),
47
- F(a, {
48
- draggable: "",
49
- "append-to-body": "",
50
- top: "5vh",
51
- modelValue: s(t),
52
- "onUpdate:modelValue": u[0] || (u[0] = (l) => I(t) ? t.value = l : t = l)
53
- }, {
54
- default: O(() => [
55
- $("img", {
56
- width: "100%",
57
- src: s(m)
58
- }, null, 8, K)
59
- ]),
60
- _: 1
61
- }, 8, ["modelValue"])
62
- ]);
63
- };
64
- }
65
- });
66
- export {
67
- Q as default
68
- };
@@ -1,147 +0,0 @@
1
- import { defineComponent as X, toRefs as Y, ref as p, onMounted as Z, computed as x, watch as ee, resolveComponent as k, openBlock as I, createElementBlock as T, normalizeClass as le, unref as t, createVNode as B, withCtx as P, createBlock as ae, createTextVNode as te, toDisplayString as oe, isRef as re, createElementVNode as ue } from "vue";
2
- import { P as ne, c as R, ai as ie, L as U, f as se, g as s, d as F, O as C, K as de } from "./assets/halo-fe-idvmXC0t.js";
3
- import { d as L, u as S } from "./main-COiaaxGk.js";
4
- import "./QueryApi-Wf86Sm6m.js";
5
- import { U as pe } from "./UploadApi-DAT-xdsM.js";
6
- const me = {
7
- key: 0,
8
- class: "fa fa-upload"
9
- }, ce = ["src"], Ve = /* @__PURE__ */ X({
10
- __name: "Upload",
11
- props: {
12
- schema: {},
13
- table: {},
14
- field: {},
15
- set: {},
16
- row: {},
17
- modelValue: {}
18
- },
19
- emits: ["submit", "change", "update:modelValue"],
20
- setup($, { emit: z }) {
21
- let g = z, A = $, { table: d, field: u, row: h, set: ve, modelValue: E } = Y(A), m = p(!1), O = p({}), c = p([]), j = p(), q = p(), f = !0, b = p({ action: "", data: null }), H = (e) => {
22
- let l = pe.getUploadToken();
23
- e.forEach((o) => {
24
- let a = `${F.upload.address}/api/objects/download?slug=${o[0]}&token=${l}`;
25
- c.value.push({ name: o[1], url: a });
26
- });
27
- }, D = async (e) => {
28
- f = !1;
29
- let l = `/upload?table=${d.value.name}&field=${u.value.name}`;
30
- b.value.action = R.api.url + l;
31
- let o = new ie();
32
- o.path = l, o.method = "POST", await U.onRequest(o);
33
- let a = o.getHeader("Authorization");
34
- return O.value.Authorization = a, u.value.control.fileType == "Image" ? e.type.indexOf("image") == 0 ? Promise.resolve() : (se.error("请上传正确的图片文件"), Promise.reject()) : Promise.resolve();
35
- }, K = (e, l) => {
36
- f = !1;
37
- let a = [e.name.replace(R.api.url, "")];
38
- return U.post("/upload/delete", { files: a }).then(({ data: r }) => {
39
- let n = l.indexOf(e), _ = s.removeIndex(i.value, n, ",");
40
- if (g("update:modelValue", _), u.value.control.name) {
41
- let v = d.value.fields.find((y) => y.name == u.value.control.name), V = L.getValue(r.value, n, d.value, v), w = s.removeIndex(V, n, ",");
42
- L.setValue(w, r.value, d.value, n, v);
43
- }
44
- return Promise.resolve();
45
- }).catch(() => Promise.reject());
46
- }, M = (e) => {
47
- m.value = !0, j.value = e.url;
48
- }, G = (e, l, o) => {
49
- }, J = (e, l) => {
50
- U.handleResponseBody(e).then((o) => {
51
- let { name: a, url: r } = o.data[0];
52
- F.upload.method == "box" || C.isImage(r) || (l.url = S.getFileIcon(r));
53
- let _ = s.split(i.value, ",", r).join(",");
54
- if (i.value = _, u.value.control.name) {
55
- let v = d.value.fields.find((y) => y.name == u.value.control.name), V = h.value[v.value], w = s.split(V, ",", a);
56
- h.value[v.value] = w.join(",");
57
- }
58
- }).catch(() => {
59
- c.value = [];
60
- }).finally(() => {
61
- f = !0;
62
- });
63
- }, N = () => {
64
- if (c.value = [], !i.value)
65
- return;
66
- let e = s.split(i.value, ","), l = [];
67
- if (u.value.control.name) {
68
- let a = d.value.fields.find((n) => n.name == u.value.control.name), r = h.value[a.name];
69
- l = s.split(r, ",");
70
- }
71
- let o = s.combine(e, l);
72
- if (F.upload.method == "box")
73
- H(o);
74
- else {
75
- let a = de.httpOrHttps(i.value) ? i.value : R.api.url + i.value, r = { name: a, url: null };
76
- C.isImage(a) ? r.url = a : r.url = S.getFileIcon(a), c.value.push(r);
77
- }
78
- };
79
- Z(() => {
80
- N();
81
- });
82
- let i = x({
83
- get() {
84
- return E.value;
85
- },
86
- set(e) {
87
- g("update:modelValue", e), g("change", e);
88
- }
89
- }), Q = x(() => u.value.control.preview ? "picture-card" : null), W = x(() => W);
90
- return ee(() => i.value, (e, l) => {
91
- f && N();
92
- }), (e, l) => {
93
- const o = k("el-button"), a = k("el-upload"), r = k("el-dialog");
94
- return I(), T("div", {
95
- class: le(t(u).control.preview ? "control-file-preview" : "control-file")
96
- }, [
97
- B(a, {
98
- ref_key: "uploadRef",
99
- ref: q,
100
- "list-type": t(Q),
101
- action: t(b).action,
102
- headers: t(O),
103
- data: t(b).data,
104
- "file-list": t(c),
105
- "before-upload": t(D),
106
- "before-remove": t(K),
107
- "on-preview": t(M),
108
- "on-success": t(J),
109
- "on-progress": t(G),
110
- disabled: t(u).readonly
111
- }, {
112
- default: P(() => [
113
- t(u).control.preview ? (I(), T("i", me)) : (I(), ae(o, {
114
- key: 1,
115
- icon: "el-icon-upload",
116
- type: "primary"
117
- }, {
118
- default: P(() => [
119
- te(oe(t(ne)("common.click_upload")), 1)
120
- ]),
121
- _: 1
122
- }))
123
- ]),
124
- _: 1
125
- }, 8, ["list-type", "action", "headers", "data", "file-list", "before-upload", "before-remove", "on-preview", "on-success", "on-progress", "disabled"]),
126
- B(r, {
127
- draggable: "",
128
- "append-to-body": "",
129
- modelValue: t(m),
130
- "onUpdate:modelValue": l[0] || (l[0] = (n) => re(m) ? m.value = n : m = n)
131
- }, {
132
- default: P(() => [
133
- ue("img", {
134
- width: "100%",
135
- src: t(j),
136
- alt: ""
137
- }, null, 8, ce)
138
- ]),
139
- _: 1
140
- }, 8, ["modelValue"])
141
- ], 2);
142
- };
143
- }
144
- });
145
- export {
146
- Ve as default
147
- };
@@ -1,13 +0,0 @@
1
- import { L as o, b as t } from "./assets/halo-fe-idvmXC0t.js";
2
- let e = null;
3
- class s {
4
- /**
5
- * 获取上传令牌,过期自动获取
6
- */
7
- static async getUploadToken() {
8
- return e == null || t.getTime() >= t.getTime(e.expireTime) ? o.get("/upload/token").then(({ data: r }) => (e = r, Promise.resolve(e.token))).catch(() => Promise.reject()) : Promise.resolve(e.token);
9
- }
10
- }
11
- export {
12
- s as U
13
- };
@@ -1,41 +0,0 @@
1
- import { defineComponent as f, toRefs as _, computed as h, resolveComponent as V, openBlock as b, createBlock as g, unref as e, isRef as Y } from "vue";
2
- import { aL as k } from "./assets/halo-fe-idvmXC0t.js";
3
- const x = /* @__PURE__ */ f({
4
- __name: "Year",
5
- props: {
6
- schema: {},
7
- table: {},
8
- field: {},
9
- set: {},
10
- row: {},
11
- modelValue: {}
12
- },
13
- emits: ["submit", "change", "update:modelValue"],
14
- setup(r, { emit: d }) {
15
- let o = d, u = r, { table: p, field: a, row: C, set: y, modelValue: s } = _(u), c = () => {
16
- o("submit");
17
- }, l = h({
18
- get() {
19
- return s.value;
20
- },
21
- set(t) {
22
- o("update:modelValue", t), o("change", t);
23
- }
24
- });
25
- return (t, n) => {
26
- const i = V("el-date-picker");
27
- return b(), g(i, {
28
- type: "year",
29
- placeholder: e(k)(e(p).name, e(a).name),
30
- "value-format": "YYYY",
31
- disabled: e(a).control.readonly,
32
- onChange: e(c),
33
- modelValue: e(l),
34
- "onUpdate:modelValue": n[0] || (n[0] = (m) => Y(l) ? l.value = m : l = m)
35
- }, null, 8, ["placeholder", "disabled", "onChange", "modelValue"]);
36
- };
37
- }
38
- });
39
- export {
40
- x as default
41
- };