halo-pc 1.0.21 → 1.0.22

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-C_3LULzy.js +200 -0
  2. package/dist/{ArticleFooter-CbvmQHCn.js → ArticleFooter-Do6I1mma.js} +24 -18
  3. package/dist/{Autocomplete-BrKsj5vx.js → Autocomplete-BLOOqTTn.js} +1 -1
  4. package/dist/Autocomplete-BLrbt1wN.js +53 -0
  5. package/dist/Autocomplete-C27XN8Sp.js +54 -0
  6. package/dist/{CSharp-DGmv2biT.js → CSharp-BGn9jf2B.js} +1 -1
  7. package/dist/{Calender-dCiW7eIK.js → Calender-4bSMqUzx.js} +4 -4
  8. package/dist/Callback-BHYDtogL.js +26 -0
  9. package/dist/Cascader-D3y3WjFF.js +87 -0
  10. package/dist/Cascader-D9Y8L7X2.js +47 -0
  11. package/dist/{Checkbox-DklZD5ff.js → Checkbox-DnTLeLjt.js} +1 -1
  12. package/dist/Checkbox-dDfYBhhc.js +76 -0
  13. package/dist/{Code-DVZ9QWgE.js → Code-Af5URLnL.js} +1 -1
  14. package/dist/Code-Bi9Y45vV.js +42 -0
  15. package/dist/Code-CWsSgkJq.js +60 -0
  16. package/dist/Code-QYs-sjcG.js +4 -0
  17. package/dist/Code.vue_vue_type_style_index_0_lang-CI6sLXKy.js +65 -0
  18. package/dist/Column-wzxM_-Vp.js +74 -0
  19. package/dist/Comment-BF8L1umD.js +104 -0
  20. package/dist/Compare-CjSQcnd3.js +43 -0
  21. package/dist/Compare-Cj_CPjIV.js +63 -0
  22. package/dist/Copy-BNt-Dwoo.js +49 -0
  23. package/dist/Custom-CYPkAqpf.js +57 -0
  24. package/dist/{DataExport-DAk1d4uG.js → DataExport-CHQtRKzA.js} +1 -1
  25. package/dist/{DataExport.vue_vue_type_script_setup_true_lang-Clh4Jvxi.js → DataExport.vue_vue_type_script_setup_true_lang-Dt2BAaAO.js} +42 -37
  26. package/dist/{DataImport-BLOSIbQ2.js → DataImport-CDcmH3Du.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-dULXjbl_.js} +64 -60
  28. package/dist/{Date-D1KihBir.js → Date-BStpsA7n.js} +1 -1
  29. package/dist/Date-U1py5NaK.js +43 -0
  30. package/dist/DateRange-DxAx2gxI.js +63 -0
  31. package/dist/DateTime-B3609Ct6.js +44 -0
  32. package/dist/{DateTime-Dwg6aUf3.js → DateTime-CmJw1-WA.js} +1 -1
  33. package/dist/{DateTimeRange-Cir1-Js8.js → DateTimeRange-aDw57sTG.js} +19 -13
  34. package/dist/Daterange-C48t6usd.js +63 -0
  35. package/dist/{Decimal-tv9vqaXk.js → Decimal-Ca0K6NoZ.js} +1 -1
  36. package/dist/Delete-FhIvONUV.js +62 -0
  37. package/dist/{Detail-B2rtvufA.js → Detail-qqW0J946.js} +22 -17
  38. package/dist/Dictionary-CaXytFmK.js +59 -0
  39. package/dist/Email-H2DHJhMe.js +54 -0
  40. package/dist/{File-C63qevce.js → File-CjXewuui.js} +33 -28
  41. package/dist/Image-BSuCHshD.js +9 -0
  42. package/dist/Index-9KImKLrj.js +4 -0
  43. package/dist/Index-BIbR8SAU.js +178 -0
  44. package/dist/Index-BaoxkF9F.js +4 -0
  45. package/dist/{Index-Cc_CDbUJ.js → Index-BrI9x7i7.js} +1 -1
  46. package/dist/Index-CXR5RC6-.js +4 -0
  47. package/dist/{Index-B6Ec8rbl.js → Index-CpGonJ_m.js} +1 -1
  48. package/dist/{Index-Cev7Nudv.js → Index-DUgprnVp.js} +1 -1
  49. package/dist/{Index-BD6O3A9N.js → Index-icEhc88J.js} +25 -20
  50. package/dist/{Index.vue_vue_type_script_setup_true_lang-DaoT5edv.js → Index.vue_vue_type_script_setup_true_lang-Beb5UD_S.js} +21 -16
  51. package/dist/{Index.vue_vue_type_script_setup_true_lang-xNPG8cCE.js → Index.vue_vue_type_script_setup_true_lang-DJ8ZzZ2K.js} +21 -16
  52. package/dist/{Index.vue_vue_type_style_index_0_lang-F7HqBnCS.js → Index.vue_vue_type_style_index_0_lang-D7LuD-a2.js} +40 -35
  53. package/dist/{Install-CTAGNKPW.js → Install-FwXpJIWk.js} +29 -24
  54. package/dist/Int-CXl1QpEL.js +44 -0
  55. package/dist/Int-DAxz3ETu.js +46 -0
  56. package/dist/List-CV9bkdrq.js +79 -0
  57. package/dist/Maintaince-DZNq9aHX.js +20 -0
  58. package/dist/{Markdown-BJB6rQY8.js → Markdown-BhwqDlwa.js} +1 -1
  59. package/dist/{Month-ui1XorBW.js → Month-BEmnA7zU.js} +1 -1
  60. package/dist/Month-DXQBHoJU.js +43 -0
  61. package/dist/Month-bgEd_K7_.js +44 -0
  62. package/dist/{Normal-Cf7kP6RU.js → Normal-Dya4aqc7.js} +49 -45
  63. package/dist/Paging-JXDzxoM0.js +99 -0
  64. package/dist/{PagingHeader-BkFBl-r_.js → PagingHeader-BETGBySb.js} +31 -25
  65. package/dist/{PagingRow-eXCadgdO.js → PagingRow-BLqp1c9E.js} +28 -22
  66. package/dist/QueryApi-B5jI3sBl.js +20 -0
  67. package/dist/{Racebar-ClXzi9hV.js → Racebar-CozeXwLJ.js} +42 -37
  68. package/dist/{Radio-llyoK7PI.js → Radio-CuAxYw7j.js} +1 -1
  69. package/dist/{Register-BaHhaZMu.js → Register-B11jE2Ox.js} +70 -66
  70. package/dist/RichText-CxBE_cVg.js +47 -0
  71. package/dist/{SearchFooter-BgJxQrMo.js → SearchFooter-agTqPUGE.js} +1 -1
  72. package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-C6DtjpFD.js → SearchFooter.vue_vue_type_style_index_0_lang-C-1Yr5_9.js} +1 -1
  73. package/dist/{SearchForm-CroUQ_3K.js → SearchForm-DNKmE8W0.js} +1 -1
  74. package/dist/{SearchForm.vue_vue_type_style_index_0_lang-DEu6hHys.js → SearchForm.vue_vue_type_style_index_0_lang-BzrMV0Wr.js} +37 -33
  75. package/dist/Select-BPa5rx_H.js +86 -0
  76. package/dist/{Select-BYw63gZy.js → Select-CRfEAtba.js} +35 -30
  77. package/dist/{Select-BtNeUq9h.js → Select-MqDjnB-C.js} +1 -1
  78. package/dist/{Single-CCVi3Pcj.js → Single-C5Kkr9SY.js} +106 -102
  79. package/dist/{Statistic-g3nQvsbW.js → Statistic-Ce_FMw5O.js} +34 -30
  80. package/dist/{Stock-CNqLeSld.js → Stock-BTjhpaxv.js} +1 -1
  81. package/dist/{Stock-C6Fxo31l.js → Stock-D8AJmsvb.js} +1 -1
  82. package/dist/{Stock.vue_vue_type_style_index_0_lang-BqXBN6CJ.js → Stock.vue_vue_type_style_index_0_lang-DTj2ITJ6.js} +30 -25
  83. package/dist/{Switch-NMkH-rhl.js → Switch-gwGbi34o.js} +1 -1
  84. package/dist/{Table-DpA4dO4P.js → Table-C03eUBYm.js} +66 -61
  85. package/dist/{Table-Cdd_tPoL.js → Table-DA8aGGEH.js} +69 -66
  86. package/dist/{Text-DanSgaL9.js → Text-B5uPrGof.js} +18 -12
  87. package/dist/Text-D-VS-lCk.js +59 -0
  88. package/dist/Text-NRww74M3.js +4 -0
  89. package/dist/Text.vue_vue_type_style_index_0_lang-Fsbur1tJ.js +59 -0
  90. package/dist/TextLink-B_Qg6CnF.js +65 -0
  91. package/dist/{Textarea-HhP_VFJV.js → Textarea-gtXLL6Qe.js} +1 -1
  92. package/dist/Time-DYOIZ2Rv.js +43 -0
  93. package/dist/Timeline-B4AYezYA.js +59 -0
  94. package/dist/{Tree-Ck_7r3nf.js → Tree-CRDb0vS5.js} +101 -97
  95. package/dist/Tree-CTmXjN1O.js +122 -0
  96. package/dist/TreeNode-HFcGpAOb.js +42 -0
  97. package/dist/{Update-DrmLFoty.js → Update-EHyhYK5k.js} +20 -15
  98. package/dist/{UpdateChild-CGCn-Eh4.js → UpdateChild-CC3b9evd.js} +23 -17
  99. package/dist/Upload-CkQ-5tVg.js +72 -0
  100. package/dist/Upload-um4BYzwO.js +150 -0
  101. package/dist/UploadApi-BmdGJGjh.js +20 -0
  102. package/dist/Year-DKBG5ihv.js +47 -0
  103. package/dist/{Year-RGAEzf_V.js → Year-Lhvyb9Vk.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-C1iALE1f.js +8947 -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,6 +1,12 @@
1
- import { defineComponent as b, toRefs as g, resolveComponent as v, unref as e, openBlock as d, createElementBlock as x, Fragment as N, createBlock as r, withCtx as t, createTextVNode as i, toDisplayString as o, createVNode as p, createCommentVNode as V, createElementVNode as s } from "vue";
2
- import { P as c } from "./assets/halo-fe-idvmXC0t.js";
3
- const B = /* @__PURE__ */ s("i", { class: "fa fa-plus" }, null, -1), D = /* @__PURE__ */ s("i", { class: "fa fa-share" }, null, -1), E = /* @__PURE__ */ s("i", { class: "fa fa-copy" }, null, -1), P = /* @__PURE__ */ s("i", { class: "fa fa-trash" }, null, -1), j = /* @__PURE__ */ b({
1
+ import { defineComponent as b, toRefs as g, resolveComponent as v, unref as e, openBlock as s, createElementBlock as x, Fragment as N, createBlock as p, withCtx as t, createTextVNode as a, toDisplayString as o, createVNode as d, createCommentVNode as V, createElementVNode as r } from "vue";
2
+ import "./assets/underscore-B0BCaBxV.js";
3
+ import "./assets/underscore.string-DVXD2SZo.js";
4
+ import "./assets/clone-BZn0cTAu.js";
5
+ import "./assets/file-saver-CwlpTZSc.js";
6
+ import "./assets/moment-h96o7c8I.js";
7
+ import { t as c } from "./main-C1iALE1f.js";
8
+ import "./assets/liquidjs-C-LVcoaY.js";
9
+ const B = /* @__PURE__ */ r("i", { class: "fa fa-plus" }, null, -1), D = /* @__PURE__ */ r("i", { class: "fa fa-share" }, null, -1), E = /* @__PURE__ */ r("i", { class: "fa fa-copy" }, null, -1), w = /* @__PURE__ */ r("i", { class: "fa fa-trash" }, null, -1), J = /* @__PURE__ */ b({
4
10
  __name: "UpdateChild",
5
11
  props: {
6
12
  module: {},
@@ -10,7 +16,7 @@ const B = /* @__PURE__ */ s("i", { class: "fa fa-plus" }, null, -1), D = /* @__P
10
16
  },
11
17
  emits: ["add", "insert", "copy", "remove"],
12
18
  setup(m, { emit: u }) {
13
- let n = u, _ = m, { module: f, table: w, set: F, selection: l } = g(_), y = () => {
19
+ let n = u, _ = m, { module: f, table: F, set: R, selection: l } = g(_), y = () => {
14
20
  n("add");
15
21
  }, h = () => {
16
22
  n("insert");
@@ -19,10 +25,10 @@ const B = /* @__PURE__ */ s("i", { class: "fa fa-plus" }, null, -1), D = /* @__P
19
25
  }, C = () => {
20
26
  n("remove");
21
27
  };
22
- return (R, S) => {
23
- const a = v("el-button");
24
- return e(f).type != "Detail" ? (d(), x(N, { key: 0 }, [
25
- e(l).length == 0 ? (d(), r(a, {
28
+ return (S, T) => {
29
+ const i = v("el-button");
30
+ return e(f).type != "Detail" ? (s(), x(N, { key: 0 }, [
31
+ e(l).length == 0 ? (s(), p(i, {
26
32
  key: 0,
27
33
  type: "primary",
28
34
  plain: "",
@@ -32,10 +38,10 @@ const B = /* @__PURE__ */ s("i", { class: "fa fa-plus" }, null, -1), D = /* @__P
32
38
  B
33
39
  ]),
34
40
  default: t(() => [
35
- i(" " + o(e(c)("update.add")), 1)
41
+ a(" " + o(e(c)("update.add")), 1)
36
42
  ]),
37
43
  _: 1
38
- }, 8, ["onClick"])) : (d(), r(a, {
44
+ }, 8, ["onClick"])) : (s(), p(i, {
39
45
  key: 1,
40
46
  type: "primary",
41
47
  plain: "",
@@ -45,11 +51,11 @@ const B = /* @__PURE__ */ s("i", { class: "fa fa-plus" }, null, -1), D = /* @__P
45
51
  D
46
52
  ]),
47
53
  default: t(() => [
48
- i(" " + o(e(c)("update.insert")), 1)
54
+ a(" " + o(e(c)("update.insert")), 1)
49
55
  ]),
50
56
  _: 1
51
57
  }, 8, ["onClick"])),
52
- p(a, {
58
+ d(i, {
53
59
  type: "primary",
54
60
  plain: "",
55
61
  disabled: e(l).length == 0,
@@ -59,21 +65,21 @@ const B = /* @__PURE__ */ s("i", { class: "fa fa-plus" }, null, -1), D = /* @__P
59
65
  E
60
66
  ]),
61
67
  default: t(() => [
62
- i(" " + o(e(c)("common.copy")) + "(" + o(e(l).length) + ") ", 1)
68
+ a(" " + o(e(c)("common.copy")) + "(" + o(e(l).length) + ") ", 1)
63
69
  ]),
64
70
  _: 1
65
71
  }, 8, ["disabled", "onClick"]),
66
- p(a, {
72
+ d(i, {
67
73
  type: "danger",
68
74
  plain: "",
69
75
  disabled: e(l).length == 0,
70
76
  onClick: e(C)
71
77
  }, {
72
78
  icon: t(() => [
73
- P
79
+ w
74
80
  ]),
75
81
  default: t(() => [
76
- i(" " + o(e(c)("common.delete")) + "(" + o(e(l).length) + ") ", 1)
82
+ a(" " + o(e(c)("common.delete")) + "(" + o(e(l).length) + ") ", 1)
77
83
  ]),
78
84
  _: 1
79
85
  }, 8, ["disabled", "onClick"])
@@ -82,5 +88,5 @@ const B = /* @__PURE__ */ s("i", { class: "fa fa-plus" }, null, -1), D = /* @__P
82
88
  }
83
89
  });
84
90
  export {
85
- j as default
91
+ J as default
86
92
  };
@@ -0,0 +1,72 @@
1
+ import { defineComponent as V, toRefs as b, ref as r, onMounted as k, computed as w, resolveComponent as x, openBlock as p, createElementBlock as u, Fragment as C, renderList as F, unref as s, createVNode as B, isRef as E, withCtx as H, createElementVNode as R } from "vue";
2
+ import "./assets/underscore-B0BCaBxV.js";
3
+ import "./assets/underscore.string-DVXD2SZo.js";
4
+ import { z as c, U as $, x as y, F as I, B as N } from "./main-C1iALE1f.js";
5
+ import "./assets/clone-BZn0cTAu.js";
6
+ import "./assets/moment-h96o7c8I.js";
7
+ import "./assets/liquidjs-C-LVcoaY.js";
8
+ import "./QueryApi-B5jI3sBl.js";
9
+ import { U as S } from "./UploadApi-BmdGJGjh.js";
10
+ const j = { class: "text-upload" }, z = ["src", "onClick", "alt"], A = ["src"], Z = /* @__PURE__ */ V({
11
+ __name: "Upload",
12
+ props: {
13
+ schema: {},
14
+ table: {},
15
+ field: {},
16
+ set: {},
17
+ row: {},
18
+ modelValue: {}
19
+ },
20
+ setup(v) {
21
+ let f = v, { table: L, field: M, set: O, row: T, modelValue: g } = b(f), n = r(), t = r(!1), d = r([]), m = r(), _ = (e) => {
22
+ t.value = !0, m.value = e.url;
23
+ }, h = () => {
24
+ if (o.value)
25
+ if (c.upload.method == "box")
26
+ S.getUploadToken().then((e) => {
27
+ o.value.split(",").forEach((a) => {
28
+ let l = `${c.upload.address}/api/objects/download?slug=${a}&token=${e}`;
29
+ d.value.push({ name: a, url: l });
30
+ });
31
+ });
32
+ else {
33
+ let e = $.httpOrHttps(o.value) ? o.value : y.api.url + o.value;
34
+ I.isImage(e) ? n.value = e : n.value = N.getFileIcon(e);
35
+ }
36
+ };
37
+ k(() => {
38
+ h();
39
+ });
40
+ let o = w(() => g.value);
41
+ return (e, i) => {
42
+ const a = x("el-dialog");
43
+ return p(), u("div", j, [
44
+ (p(!0), u(C, null, F(s(d), (l, U) => (p(), u("img", {
45
+ class: "detail-image",
46
+ src: l.url,
47
+ onClick: (q) => s(_)(l),
48
+ alt: l.name,
49
+ key: U
50
+ }, null, 8, z))), 128)),
51
+ B(a, {
52
+ draggable: "",
53
+ "append-to-body": "",
54
+ top: "5vh",
55
+ modelValue: s(t),
56
+ "onUpdate:modelValue": i[0] || (i[0] = (l) => E(t) ? t.value = l : t = l)
57
+ }, {
58
+ default: H(() => [
59
+ R("img", {
60
+ width: "100%",
61
+ src: s(m)
62
+ }, null, 8, A)
63
+ ]),
64
+ _: 1
65
+ }, 8, ["modelValue"])
66
+ ]);
67
+ };
68
+ }
69
+ });
70
+ export {
71
+ Z as default
72
+ };
@@ -0,0 +1,150 @@
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 R, createElementBlock as B, normalizeClass as le, unref as a, createVNode as N, withCtx as U, createBlock as te, createTextVNode as ae, toDisplayString as oe, isRef as re, createElementVNode as ue } from "vue";
2
+ import { t as ne, x as F, y as ie, h as I, m as se, A as s, w as S, z as H, F as T, B as z, U as de } from "./main-C1iALE1f.js";
3
+ import "./assets/underscore.string-DVXD2SZo.js";
4
+ import "./assets/clone-BZn0cTAu.js";
5
+ import "./assets/moment-h96o7c8I.js";
6
+ import "./assets/liquidjs-C-LVcoaY.js";
7
+ import "./QueryApi-B5jI3sBl.js";
8
+ import { U as pe } from "./UploadApi-BmdGJGjh.js";
9
+ const me = {
10
+ key: 0,
11
+ class: "fa fa-upload"
12
+ }, ce = ["src"], xe = /* @__PURE__ */ X({
13
+ __name: "Upload",
14
+ props: {
15
+ schema: {},
16
+ table: {},
17
+ field: {},
18
+ set: {},
19
+ row: {},
20
+ modelValue: {}
21
+ },
22
+ emits: ["submit", "change", "update:modelValue"],
23
+ setup(C, { emit: O }) {
24
+ let h = O, $ = C, { table: d, field: u, row: g, set: ve, modelValue: q } = Y($), m = p(!1), P = p({}), c = p([]), j = p(), E = p(), f = !0, _ = p({ action: "", data: null }), L = (e) => {
25
+ let l = pe.getUploadToken();
26
+ e.forEach((o) => {
27
+ let t = `${H.upload.address}/api/objects/download?slug=${o[0]}&token=${l}`;
28
+ c.value.push({ name: o[1], url: t });
29
+ });
30
+ }, D = async (e) => {
31
+ f = !1;
32
+ let l = `/upload?table=${d.value.name}&field=${u.value.name}`;
33
+ _.value.action = F.api.url + l;
34
+ let o = new ie();
35
+ o.path = l, o.method = "POST", await I.onRequest(o);
36
+ let t = o.getHeader("Authorization");
37
+ return P.value.Authorization = t, u.value.control.fileType == "Image" ? e.type.indexOf("image") == 0 ? Promise.resolve() : (se.error("请上传正确的图片文件"), Promise.reject()) : Promise.resolve();
38
+ }, M = (e, l) => {
39
+ f = !1;
40
+ let t = [e.name.replace(F.api.url, "")];
41
+ return I.post("/upload/delete", { files: t }).then(({ data: r }) => {
42
+ let n = l.indexOf(e), b = s.removeIndex(i.value, n, ",");
43
+ if (h("update:modelValue", b), u.value.control.name) {
44
+ let v = d.value.fields.find((y) => y.name == u.value.control.name), V = S.getValue(r.value, n, d.value, v), w = s.removeIndex(V, n, ",");
45
+ S.setValue(w, r.value, d.value, n, v);
46
+ }
47
+ return Promise.resolve();
48
+ }).catch(() => Promise.reject());
49
+ }, G = (e) => {
50
+ m.value = !0, j.value = e.url;
51
+ }, J = (e, l, o) => {
52
+ }, K = (e, l) => {
53
+ I.handleResponseBody(e).then((o) => {
54
+ let { name: t, url: r } = o.data[0];
55
+ H.upload.method == "box" || T.isImage(r) || (l.url = z.getFileIcon(r));
56
+ let b = s.split(i.value, ",", r).join(",");
57
+ if (i.value = b, u.value.control.name) {
58
+ let v = d.value.fields.find((y) => y.name == u.value.control.name), V = g.value[v.value], w = s.split(V, ",", t);
59
+ g.value[v.value] = w.join(",");
60
+ }
61
+ }).catch(() => {
62
+ c.value = [];
63
+ }).finally(() => {
64
+ f = !0;
65
+ });
66
+ }, A = () => {
67
+ if (c.value = [], !i.value)
68
+ return;
69
+ let e = s.split(i.value, ","), l = [];
70
+ if (u.value.control.name) {
71
+ let t = d.value.fields.find((n) => n.name == u.value.control.name), r = g.value[t.name];
72
+ l = s.split(r, ",");
73
+ }
74
+ let o = s.combine(e, l);
75
+ if (H.upload.method == "box")
76
+ L(o);
77
+ else {
78
+ let t = de.httpOrHttps(i.value) ? i.value : F.api.url + i.value, r = { name: t, url: null };
79
+ T.isImage(t) ? r.url = t : r.url = z.getFileIcon(t), c.value.push(r);
80
+ }
81
+ };
82
+ Z(() => {
83
+ A();
84
+ });
85
+ let i = x({
86
+ get() {
87
+ return q.value;
88
+ },
89
+ set(e) {
90
+ h("update:modelValue", e), h("change", e);
91
+ }
92
+ }), Q = x(() => u.value.control.preview ? "picture-card" : null), W = x(() => W);
93
+ return ee(() => i.value, (e, l) => {
94
+ f && A();
95
+ }), (e, l) => {
96
+ const o = k("el-button"), t = k("el-upload"), r = k("el-dialog");
97
+ return R(), B("div", {
98
+ class: le(a(u).control.preview ? "control-file-preview" : "control-file")
99
+ }, [
100
+ N(t, {
101
+ ref_key: "uploadRef",
102
+ ref: E,
103
+ "list-type": a(Q),
104
+ action: a(_).action,
105
+ headers: a(P),
106
+ data: a(_).data,
107
+ "file-list": a(c),
108
+ "before-upload": a(D),
109
+ "before-remove": a(M),
110
+ "on-preview": a(G),
111
+ "on-success": a(K),
112
+ "on-progress": a(J),
113
+ disabled: a(u).readonly
114
+ }, {
115
+ default: U(() => [
116
+ a(u).control.preview ? (R(), B("i", me)) : (R(), te(o, {
117
+ key: 1,
118
+ icon: "el-icon-upload",
119
+ type: "primary"
120
+ }, {
121
+ default: U(() => [
122
+ ae(oe(a(ne)("common.click_upload")), 1)
123
+ ]),
124
+ _: 1
125
+ }))
126
+ ]),
127
+ _: 1
128
+ }, 8, ["list-type", "action", "headers", "data", "file-list", "before-upload", "before-remove", "on-preview", "on-success", "on-progress", "disabled"]),
129
+ N(r, {
130
+ draggable: "",
131
+ "append-to-body": "",
132
+ modelValue: a(m),
133
+ "onUpdate:modelValue": l[0] || (l[0] = (n) => re(m) ? m.value = n : m = n)
134
+ }, {
135
+ default: U(() => [
136
+ ue("img", {
137
+ width: "100%",
138
+ src: a(j),
139
+ alt: ""
140
+ }, null, 8, ce)
141
+ ]),
142
+ _: 1
143
+ }, 8, ["modelValue"])
144
+ ], 2);
145
+ };
146
+ }
147
+ });
148
+ export {
149
+ xe as default
150
+ };
@@ -0,0 +1,20 @@
1
+ import "./assets/underscore-B0BCaBxV.js";
2
+ import "vue";
3
+ import "./assets/underscore.string-DVXD2SZo.js";
4
+ import "./assets/clone-BZn0cTAu.js";
5
+ import "./assets/file-saver-CwlpTZSc.js";
6
+ import { h as o, n as t } from "./main-C1iALE1f.js";
7
+ import "./assets/moment-h96o7c8I.js";
8
+ import "./assets/liquidjs-C-LVcoaY.js";
9
+ let e = null;
10
+ class T {
11
+ /**
12
+ * 获取上传令牌,过期自动获取
13
+ */
14
+ static async getUploadToken() {
15
+ 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);
16
+ }
17
+ }
18
+ export {
19
+ T as U
20
+ };
@@ -0,0 +1,47 @@
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 "./assets/underscore-B0BCaBxV.js";
3
+ import "./assets/underscore.string-DVXD2SZo.js";
4
+ import "./assets/clone-BZn0cTAu.js";
5
+ import "./assets/file-saver-CwlpTZSc.js";
6
+ import "./assets/moment-h96o7c8I.js";
7
+ import { j as k } from "./main-C1iALE1f.js";
8
+ import "./assets/liquidjs-C-LVcoaY.js";
9
+ const z = /* @__PURE__ */ f({
10
+ __name: "Year",
11
+ props: {
12
+ schema: {},
13
+ table: {},
14
+ field: {},
15
+ set: {},
16
+ row: {},
17
+ modelValue: {}
18
+ },
19
+ emits: ["submit", "change", "update:modelValue"],
20
+ setup(n, { emit: p }) {
21
+ let t = p, d = n, { table: i, field: a, row: C, set: y, modelValue: u } = _(d), s = () => {
22
+ t("submit");
23
+ }, o = h({
24
+ get() {
25
+ return u.value;
26
+ },
27
+ set(l) {
28
+ t("update:modelValue", l), t("change", l);
29
+ }
30
+ });
31
+ return (l, r) => {
32
+ const c = V("el-date-picker");
33
+ return b(), g(c, {
34
+ type: "year",
35
+ placeholder: e(k)(e(i).name, e(a).name),
36
+ "value-format": "YYYY",
37
+ disabled: e(a).control.readonly,
38
+ onChange: e(s),
39
+ modelValue: e(o),
40
+ "onUpdate:modelValue": r[0] || (r[0] = (m) => Y(o) ? o.value = m : o = m)
41
+ }, null, 8, ["placeholder", "disabled", "onChange", "modelValue"]);
42
+ };
43
+ }
44
+ });
45
+ export {
46
+ z as default
47
+ };
@@ -10,7 +10,7 @@ const h = /* @__PURE__ */ u({
10
10
  modelValue: {}
11
11
  },
12
12
  setup(a) {
13
- let r = i(() => import("./Text-DgZjeg-u.js")), s = a, { schema: m, table: n, field: d, set: f, row: p, modelValue: l } = c(s);
13
+ let r = i(() => import("./Text-NRww74M3.js")), s = a, { schema: m, table: n, field: d, set: f, row: p, modelValue: l } = c(s);
14
14
  return (x, t) => (V(), b(e(r), {
15
15
  schema: e(m),
16
16
  table: e(n),