halo-pc 1.0.15 → 1.0.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (175) hide show
  1. package/dist/Article-BZph3Slr.js +194 -0
  2. package/dist/{ArticleFooter-BFYDplbW.js → ArticleFooter-BW_G0Irk.js} +17 -24
  3. package/dist/Autocomplete-CuAwiHhE.js +49 -0
  4. package/dist/Autocomplete-Dw1r9LjJ.js +48 -0
  5. package/dist/{Autocomplete-CIXGPZaG.js → Autocomplete-qmcT2ECx.js} +1 -1
  6. package/dist/{CSharp-BGzxI5QJ.js → CSharp-BWYY3ixE.js} +1 -1
  7. package/dist/{Calender-DkBPl9bM.js → Calender-CGxlpOR0.js} +3 -3
  8. package/dist/Callback-phrGGQ_Q.js +20 -0
  9. package/dist/Cascader-CT7ASkSy.js +41 -0
  10. package/dist/Cascader-CsJ1jVBY.js +81 -0
  11. package/dist/{Checkbox-CuRjXSPc.js → Checkbox-BOC7ECAx.js} +1 -1
  12. package/dist/Checkbox-BePH3x-V.js +70 -0
  13. package/dist/Code-CE-Fe7WB.js +36 -0
  14. package/dist/{Code-BlwPnx9J.js → Code-CWxVzJHq.js} +1 -1
  15. package/dist/Code-CqLG9fEE.js +54 -0
  16. package/dist/Code-TBB9w4CV.js +4 -0
  17. package/dist/Code.vue_vue_type_style_index_0_lang-oiyt3bsp.js +59 -0
  18. package/dist/Column-Ctyq9hqP.js +68 -0
  19. package/dist/Comment-RyVJJjTd.js +98 -0
  20. package/dist/Compare-DEccApnU.js +56 -0
  21. package/dist/Compare-ZBeSkf8f.js +26 -0
  22. package/dist/Copy-CNJ1TZJl.js +43 -0
  23. package/dist/Custom-DHvr_EJi.js +51 -0
  24. package/dist/{DataExport-C0jItlVY.js → DataExport-39v2Wzii.js} +1 -1
  25. package/dist/{DataExport.vue_vue_type_script_setup_true_lang-Dx7mLyuz.js → DataExport.vue_vue_type_script_setup_true_lang-Bmm7IDoz.js} +34 -40
  26. package/dist/{DataImport-BfBkneEy.js → DataImport-C1O_zTRs.js} +1 -1
  27. package/dist/{DataImport.vue_vue_type_script_setup_true_lang-C9qjFakZ.js → DataImport.vue_vue_type_script_setup_true_lang-CGKObmMj.js} +54 -59
  28. package/dist/{Date-B8b9JXpP.js → Date-BAk-TE4a.js} +1 -1
  29. package/dist/Date-CsIPLFzI.js +37 -0
  30. package/dist/DateRange-BXSMqDJ0.js +57 -0
  31. package/dist/DateTime-2RoBkqWb.js +38 -0
  32. package/dist/{DateTime-DjhuyxFC.js → DateTime-DSiPx95t.js} +1 -1
  33. package/dist/{DateTimeRange-D01wtitk.js → DateTimeRange-l6kVSbZe.js} +13 -20
  34. package/dist/Daterange-DRq9WIRI.js +57 -0
  35. package/dist/{Decimal-DqMMTfvl.js → Decimal-DGia5Sy8.js} +1 -1
  36. package/dist/Delete-B7X35s7r.js +56 -0
  37. package/dist/{Detail-C-OFWPso.js → Detail-wJXhceca.js} +16 -23
  38. package/dist/Dictionary-CUFHT-1d.js +55 -0
  39. package/dist/Email-BqiiArN8.js +48 -0
  40. package/dist/{File-C2fLmTcj.js → File-DngRHLmK.js} +40 -47
  41. package/dist/Image-D3FNAo-5.js +9 -0
  42. package/dist/Index-B3hh_9-f.js +4 -0
  43. package/dist/{Index-D7DerkIw.js → Index-B4bG41Qh.js} +1 -1
  44. package/dist/Index-BJ4rN3ua.js +4 -0
  45. package/dist/Index-C3EFws1o.js +4 -0
  46. package/dist/Index-ChQl4mWS.js +70 -0
  47. package/dist/{Index-B90giDWQ.js → Index-D6WfgZso.js} +1 -1
  48. package/dist/Index-Dec7ANPo.js +173 -0
  49. package/dist/{Index-CQURvmzd.js → Index-yxohMYWu.js} +1 -1
  50. package/dist/{Index.vue_vue_type_script_setup_true_lang-B93cecQQ.js → Index.vue_vue_type_script_setup_true_lang-BzE42p5R.js} +16 -23
  51. package/dist/{Index.vue_vue_type_script_setup_true_lang-DZdvfweh.js → Index.vue_vue_type_script_setup_true_lang-CCvdKImo.js} +14 -21
  52. package/dist/{Index.vue_vue_type_style_index_0_lang-DYwz3Eu2.js → Index.vue_vue_type_style_index_0_lang-AFTrgrBJ.js} +30 -36
  53. package/dist/{Install-Cqj44p9F.js → Install-DvLkDt-G.js} +20 -27
  54. package/dist/{Int-Bj3Gagp5.js → Int-CTZDyiRf.js} +9 -16
  55. package/dist/Int-DUxDmxeN.js +41 -0
  56. package/dist/List-DhQAnj6h.js +73 -0
  57. package/dist/Maintaince-DlOgC995.js +14 -0
  58. package/dist/{Markdown-COY9enBf.js → Markdown-BBZs8Oeu.js} +1 -1
  59. package/dist/Month-BOpeFNyJ.js +37 -0
  60. package/dist/Month-CGeJVL3p.js +38 -0
  61. package/dist/{Month-B7jIGlKI.js → Month-UvBNgDPi.js} +1 -1
  62. package/dist/{Normal-B8YL2DeI.js → Normal-AYl3k_ON.js} +43 -49
  63. package/dist/Paging-B45u8Pwz.js +94 -0
  64. package/dist/{PagingHeader-c1vaXeWH.js → PagingHeader-BKtQX0FN.js} +37 -44
  65. package/dist/{PagingRow-CHDlm8UI.js → PagingRow-C1sBqbWn.js} +21 -28
  66. package/dist/QueryApi-DwKYCq-u.js +13 -0
  67. package/dist/{Racebar-ClsuYbRj.js → Racebar-DEHtOLFI.js} +43 -49
  68. package/dist/{Radio-C6j5nvI9.js → Radio-i6CjikAh.js} +1 -1
  69. package/dist/{Register-BnwfjjXP.js → Register-SHm6xbyk.js} +74 -80
  70. package/dist/RichText-Bxc-XIY-.js +41 -0
  71. package/dist/{SearchFooter-D10vYX7H.js → SearchFooter-Co8AjPaU.js} +1 -1
  72. package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-B3AD4sx-.js → SearchFooter.vue_vue_type_style_index_0_lang-CL0CnYJg.js} +1 -1
  73. package/dist/{SearchForm-BRKHMJRS.js → SearchForm-CMiBnK26.js} +1 -1
  74. package/dist/{SearchForm.vue_vue_type_style_index_0_lang-B-YCROWC.js → SearchForm.vue_vue_type_style_index_0_lang-OBkIrjUP.js} +34 -40
  75. package/dist/{Select-BiFIpc5-.js → Select-B-gNnoDq.js} +1 -1
  76. package/dist/Select-DuecGTXX.js +111 -0
  77. package/dist/{Select-Z8b2t5QQ.js → Select-t1xYHXcV.js} +19 -26
  78. package/dist/{Single-DdcVVH9V.js → Single-Da4zGSt4.js} +116 -122
  79. package/dist/{Statistic-B7niMPBf.js → Statistic-MUCQAxl_.js} +25 -31
  80. package/dist/{Stock-CRsu1vcy.js → Stock-C0gpktjX.js} +1 -1
  81. package/dist/{Stock-xm8v4vDf.js → Stock-CFVyfAIN.js} +1 -1
  82. package/dist/{Stock.vue_vue_type_style_index_0_lang-Cb3jPDk8.js → Stock.vue_vue_type_style_index_0_lang-B-uQM5GU.js} +26 -32
  83. package/dist/{Switch-BaER4xWy.js → Switch-CT0S6MHJ.js} +1 -1
  84. package/dist/{Table-C2dYPoGi.js → Table-CU6q8l3a.js} +54 -61
  85. package/dist/{Table-a5uj25Nj.js → Table-NC8CrrxW.js} +63 -68
  86. package/dist/Text-Bx4cfjya.js +52 -0
  87. package/dist/{Text-CMEzogZ8.js → Text-ChJQSLGE.js} +1 -1
  88. package/dist/Text-ChdZDU0g.js +53 -0
  89. package/dist/Text.vue_vue_type_style_index_0_lang-BZNDg39p.js +53 -0
  90. package/dist/TextLink-DIHx9sjo.js +59 -0
  91. package/dist/{Textarea-DAICkidp.js → Textarea-CRi6hLdT.js} +1 -1
  92. package/dist/Time-Cn6eQVUQ.js +37 -0
  93. package/dist/Timeline-DpEcUmkJ.js +53 -0
  94. package/dist/{Tree-BwQkDP2T.js → Tree-B0Rqvp37.js} +73 -79
  95. package/dist/Tree-nr0ZIvCA.js +117 -0
  96. package/dist/TreeNode-e51TMrSj.js +37 -0
  97. package/dist/{Update-BZe92EwV.js → Update-QF8Zkcdq.js} +13 -20
  98. package/dist/{UpdateChild-DN6pwrUK.js → UpdateChild-DouQaV7E.js} +19 -26
  99. package/dist/Upload-0ba29Dyr.js +67 -0
  100. package/dist/Upload-BXj28BSA.js +146 -0
  101. package/dist/UploadApi-Boq1A5E-.js +13 -0
  102. package/dist/Year-DuBH5ghc.js +41 -0
  103. package/dist/{Year-2tcz8PDF.js → Year-x4NXoaB_.js} +1 -1
  104. package/dist/main-RFuk2-Bk.js +19837 -0
  105. package/dist/main.js +54 -56
  106. package/dist/style.css +1 -1
  107. package/esm/coms/partials/ArticleFooter.vue.d.ts +1 -1
  108. package/esm/coms/partials/PagingRow.vue.d.ts +1 -1
  109. package/esm/vite.config.d.ts +6 -0
  110. package/package.json +1 -1
  111. package/dist/Article-BH4dl6Bf.js +0 -201
  112. package/dist/Autocomplete-DYxWYClO.js +0 -55
  113. package/dist/Autocomplete-SOenNkH4.js +0 -54
  114. package/dist/Callback-B57W83N1.js +0 -27
  115. package/dist/Cascader-BI6T7N-q.js +0 -88
  116. package/dist/Cascader-BoN_F8v4.js +0 -48
  117. package/dist/Checkbox-DdolP6wO.js +0 -77
  118. package/dist/Code--y8oCkjX.js +0 -43
  119. package/dist/Code-C48Gf7gU.js +0 -61
  120. package/dist/Code-DiOQvIZv.js +0 -4
  121. package/dist/Code.vue_vue_type_style_index_0_lang-DlLh3JlB.js +0 -66
  122. package/dist/Column-BNGw36Iq.js +0 -75
  123. package/dist/Comment-D37SdQb6.js +0 -105
  124. package/dist/Compare-C09T8aaU.js +0 -33
  125. package/dist/Compare-CnnCTG12.js +0 -63
  126. package/dist/Copy-DNrXXJRQ.js +0 -50
  127. package/dist/Custom--I04Jyzr.js +0 -58
  128. package/dist/Date-TKW4HbCJ.js +0 -44
  129. package/dist/DateRange-JCP1Eokf.js +0 -64
  130. package/dist/DateTime-DVOVXS_f.js +0 -45
  131. package/dist/Daterange-CqHXC9JN.js +0 -64
  132. package/dist/Delete-PcTE_3Cp.js +0 -63
  133. package/dist/Dictionary-Cfhmc2OQ.js +0 -60
  134. package/dist/Email-Rj-ZvdfJ.js +0 -55
  135. package/dist/Image-zgBgvAup.js +0 -9
  136. package/dist/Index-9fyKz8TT.js +0 -4
  137. package/dist/Index-CAlWNb2l.js +0 -179
  138. package/dist/Index-CjFLlnmH.js +0 -4
  139. package/dist/Index-Cr2WAY6Z.js +0 -76
  140. package/dist/Index-Izl4chSJ.js +0 -4
  141. package/dist/Int-dlbcQ6_t.js +0 -47
  142. package/dist/List-BsAOvgmQ.js +0 -80
  143. package/dist/Maintaince-DjSvIfbu.js +0 -21
  144. package/dist/Month-BhNUuzcc.js +0 -44
  145. package/dist/Month-KDuTRSA0.js +0 -45
  146. package/dist/Paging-BlFnu-w0.js +0 -100
  147. package/dist/QueryApi-Bc_kmvgs.js +0 -21
  148. package/dist/RichText-BImFNkHQ.js +0 -48
  149. package/dist/Select-f15Y0Ko-.js +0 -118
  150. package/dist/Text-CqKE2xDo.js +0 -59
  151. package/dist/Text-DfqLW_KH.js +0 -60
  152. package/dist/Text.vue_vue_type_style_index_0_lang-BNpeGb1c.js +0 -60
  153. package/dist/TextLink-XJurKE8Q.js +0 -66
  154. package/dist/Time-BmdIHgOY.js +0 -44
  155. package/dist/Timeline-BOPAiaK-.js +0 -60
  156. package/dist/Tree-BR8gmBBa.js +0 -123
  157. package/dist/TreeNode-CdBVgaRW.js +0 -43
  158. package/dist/Upload-BtErvzEO.js +0 -151
  159. package/dist/Upload-vPTA8ndw.js +0 -73
  160. package/dist/UploadApi-CpwS4Kf1.js +0 -21
  161. package/dist/Year-CVqwpSLR.js +0 -48
  162. package/dist/assets/@intlify-BISCQg1h.js +0 -2189
  163. package/dist/assets/@monaco-editor-BCDRi0Ti.js +0 -258
  164. package/dist/assets/@vue-aVYGocXp.js +0 -93
  165. package/dist/assets/clone-BZn0cTAu.js +0 -134
  166. package/dist/assets/file-saver-CwlpTZSc.js +0 -74
  167. package/dist/assets/liquidjs-C-LVcoaY.js +0 -2893
  168. package/dist/assets/moment-h96o7c8I.js +0 -2578
  169. package/dist/assets/sprintf-js-BPTdvBYM.js +0 -148
  170. package/dist/assets/state-local-CEworIRt.js +0 -131
  171. package/dist/assets/underscore-B0BCaBxV.js +0 -1070
  172. package/dist/assets/underscore.string-DVXD2SZo.js +0 -425
  173. package/dist/assets/util-deprecate-Dzun97re.js +0 -28
  174. package/dist/assets/vue-i18n-CLr3brPz.js +0 -1670
  175. package/dist/main-BS_9gx1M.js +0 -8937
@@ -1,13 +1,6 @@
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/@monaco-editor-BCDRi0Ti.js";
7
- import "./assets/moment-h96o7c8I.js";
8
- import { t as c } from "./main-BS_9gx1M.js";
9
- import "./assets/liquidjs-C-LVcoaY.js";
10
- 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), K = /* @__PURE__ */ b({
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 { U as c } from "./main-RFuk2-Bk.js";
3
+ const B = /* @__PURE__ */ s("i", { class: "fa fa-plus" }, null, -1), U = /* @__PURE__ */ s("i", { class: "fa fa-share" }, null, -1), D = /* @__PURE__ */ s("i", { class: "fa fa-copy" }, null, -1), E = /* @__PURE__ */ s("i", { class: "fa fa-trash" }, null, -1), q = /* @__PURE__ */ b({
11
4
  __name: "UpdateChild",
12
5
  props: {
13
6
  module: {},
@@ -17,7 +10,7 @@ const B = /* @__PURE__ */ r("i", { class: "fa fa-plus" }, null, -1), D = /* @__P
17
10
  },
18
11
  emits: ["add", "insert", "copy", "remove"],
19
12
  setup(m, { emit: u }) {
20
- let n = u, _ = m, { module: f, table: F, set: R, selection: l } = g(_), y = () => {
13
+ let n = u, _ = m, { module: f, table: w, set: F, selection: l } = g(_), y = () => {
21
14
  n("add");
22
15
  }, h = () => {
23
16
  n("insert");
@@ -26,10 +19,10 @@ const B = /* @__PURE__ */ r("i", { class: "fa fa-plus" }, null, -1), D = /* @__P
26
19
  }, C = () => {
27
20
  n("remove");
28
21
  };
29
- return (S, T) => {
30
- const i = v("el-button");
31
- return e(f).type != "Detail" ? (s(), x(N, { key: 0 }, [
32
- e(l).length == 0 ? (s(), p(i, {
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, {
33
26
  key: 0,
34
27
  type: "primary",
35
28
  plain: "",
@@ -39,48 +32,48 @@ const B = /* @__PURE__ */ r("i", { class: "fa fa-plus" }, null, -1), D = /* @__P
39
32
  B
40
33
  ]),
41
34
  default: t(() => [
42
- a(" " + o(e(c)("update.add")), 1)
35
+ i(" " + o(e(c)("update.add")), 1)
43
36
  ]),
44
37
  _: 1
45
- }, 8, ["onClick"])) : (s(), p(i, {
38
+ }, 8, ["onClick"])) : (d(), r(a, {
46
39
  key: 1,
47
40
  type: "primary",
48
41
  plain: "",
49
42
  onClick: e(h)
50
43
  }, {
51
44
  icon: t(() => [
52
- D
45
+ U
53
46
  ]),
54
47
  default: t(() => [
55
- a(" " + o(e(c)("update.insert")), 1)
48
+ i(" " + o(e(c)("update.insert")), 1)
56
49
  ]),
57
50
  _: 1
58
51
  }, 8, ["onClick"])),
59
- d(i, {
52
+ p(a, {
60
53
  type: "primary",
61
54
  plain: "",
62
55
  disabled: e(l).length == 0,
63
56
  onClick: e(k)
64
57
  }, {
65
58
  icon: t(() => [
66
- E
59
+ D
67
60
  ]),
68
61
  default: t(() => [
69
- a(" " + o(e(c)("common.copy")) + "(" + o(e(l).length) + ") ", 1)
62
+ i(" " + o(e(c)("common.copy")) + "(" + o(e(l).length) + ") ", 1)
70
63
  ]),
71
64
  _: 1
72
65
  }, 8, ["disabled", "onClick"]),
73
- d(i, {
66
+ p(a, {
74
67
  type: "danger",
75
68
  plain: "",
76
69
  disabled: e(l).length == 0,
77
70
  onClick: e(C)
78
71
  }, {
79
72
  icon: t(() => [
80
- w
73
+ E
81
74
  ]),
82
75
  default: t(() => [
83
- a(" " + o(e(c)("common.delete")) + "(" + o(e(l).length) + ") ", 1)
76
+ i(" " + o(e(c)("common.delete")) + "(" + o(e(l).length) + ") ", 1)
84
77
  ]),
85
78
  _: 1
86
79
  }, 8, ["disabled", "onClick"])
@@ -89,5 +82,5 @@ const B = /* @__PURE__ */ r("i", { class: "fa fa-plus" }, null, -1), D = /* @__P
89
82
  }
90
83
  });
91
84
  export {
92
- K as default
85
+ q as default
93
86
  };
@@ -0,0 +1,67 @@
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 I, unref as s, createVNode as E, isRef as F, withCtx as $, createElementVNode as j } from "vue";
2
+ import { j as c, W as y, I as B, D, u as N } from "./main-RFuk2-Bk.js";
3
+ import "./QueryApi-DwKYCq-u.js";
4
+ import { U as R } from "./UploadApi-Boq1A5E-.js";
5
+ const A = { class: "text-upload" }, H = ["src", "onClick", "alt"], L = ["src"], K = /* @__PURE__ */ V({
6
+ __name: "Upload",
7
+ props: {
8
+ schema: {},
9
+ table: {},
10
+ field: {},
11
+ set: {},
12
+ row: {},
13
+ modelValue: {}
14
+ },
15
+ setup(v) {
16
+ let f = v, { table: M, field: O, set: S, row: T, modelValue: g } = b(f), i = r(), t = r(!1), p = r([]), m = r(), _ = (e) => {
17
+ t.value = !0, m.value = e.url;
18
+ }, h = () => {
19
+ if (o.value)
20
+ if (c.upload.method == "box")
21
+ R.getUploadToken().then((e) => {
22
+ o.value.split(",").forEach((a) => {
23
+ let l = `${c.upload.address}/api/objects/download?slug=${a}&token=${e}`;
24
+ p.value.push({ name: a, url: l });
25
+ });
26
+ });
27
+ else {
28
+ let e = y.httpOrHttps(o.value) ? o.value : B.api.url + o.value;
29
+ D.isImage(e) ? i.value = e : i.value = N.getFileIcon(e);
30
+ }
31
+ };
32
+ k(() => {
33
+ h();
34
+ });
35
+ let o = w(() => g.value);
36
+ return (e, u) => {
37
+ const a = x("el-dialog");
38
+ return d(), n("div", A, [
39
+ (d(!0), n(C, null, I(s(p), (l, U) => (d(), n("img", {
40
+ class: "detail-image",
41
+ src: l.url,
42
+ onClick: (W) => s(_)(l),
43
+ alt: l.name,
44
+ key: U
45
+ }, null, 8, H))), 128)),
46
+ E(a, {
47
+ draggable: "",
48
+ "append-to-body": "",
49
+ top: "5vh",
50
+ modelValue: s(t),
51
+ "onUpdate:modelValue": u[0] || (u[0] = (l) => F(t) ? t.value = l : t = l)
52
+ }, {
53
+ default: $(() => [
54
+ j("img", {
55
+ width: "100%",
56
+ src: s(m)
57
+ }, null, 8, L)
58
+ ]),
59
+ _: 1
60
+ }, 8, ["modelValue"])
61
+ ]);
62
+ };
63
+ }
64
+ });
65
+ export {
66
+ K as default
67
+ };
@@ -0,0 +1,146 @@
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 B, normalizeClass as le, unref as t, createVNode as C, withCtx as U, createBlock as ae, createTextVNode as te, toDisplayString as oe, isRef as re, createElementVNode as ue } from "vue";
2
+ import { U as ne, I as R, o as ie, L as j, v as se, i as s, g as L, j as F, D as O, u as S, W as de } from "./main-RFuk2-Bk.js";
3
+ import "./QueryApi-DwKYCq-u.js";
4
+ import { U as pe } from "./UploadApi-Boq1A5E-.js";
5
+ const me = {
6
+ key: 0,
7
+ class: "fa fa-upload"
8
+ }, ce = ["src"], be = /* @__PURE__ */ X({
9
+ __name: "Upload",
10
+ props: {
11
+ schema: {},
12
+ table: {},
13
+ field: {},
14
+ set: {},
15
+ row: {},
16
+ modelValue: {}
17
+ },
18
+ emits: ["submit", "change", "update:modelValue"],
19
+ setup($, { emit: z }) {
20
+ let g = z, A = $, { table: d, field: u, row: h, set: ve, modelValue: D } = Y(A), m = p(!1), P = p({}), c = p([]), N = p(), E = p(), f = !0, _ = p({ action: "", data: null }), q = (e) => {
21
+ let l = pe.getUploadToken();
22
+ e.forEach((o) => {
23
+ let a = `${F.upload.address}/api/objects/download?slug=${o[0]}&token=${l}`;
24
+ c.value.push({ name: o[1], url: a });
25
+ });
26
+ }, H = async (e) => {
27
+ f = !1;
28
+ let l = `/upload?table=${d.value.name}&field=${u.value.name}`;
29
+ _.value.action = R.api.url + l;
30
+ let o = new ie();
31
+ o.path = l, o.method = "POST", await j.onRequest(o);
32
+ let a = o.getHeader("Authorization");
33
+ return P.value.Authorization = a, u.value.control.fileType == "Image" ? e.type.indexOf("image") == 0 ? Promise.resolve() : (se.error("请上传正确的图片文件"), Promise.reject()) : Promise.resolve();
34
+ }, M = (e, l) => {
35
+ f = !1;
36
+ let a = [e.name.replace(R.api.url, "")];
37
+ return j.post("/upload/delete", { files: a }).then(({ data: r }) => {
38
+ let n = l.indexOf(e), b = s.removeIndex(i.value, n, ",");
39
+ if (g("update:modelValue", b), u.value.control.name) {
40
+ 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, ",");
41
+ L.setValue(w, r.value, d.value, n, v);
42
+ }
43
+ return Promise.resolve();
44
+ }).catch(() => Promise.reject());
45
+ }, W = (e) => {
46
+ m.value = !0, N.value = e.url;
47
+ }, G = (e, l, o) => {
48
+ }, J = (e, l) => {
49
+ j.handleResponseBody(e).then((o) => {
50
+ let { name: a, url: r } = o.data[0];
51
+ F.upload.method == "box" || O.isImage(r) || (l.url = S.getFileIcon(r));
52
+ let b = s.split(i.value, ",", r).join(",");
53
+ if (i.value = b, u.value.control.name) {
54
+ let v = d.value.fields.find((y) => y.name == u.value.control.name), V = h.value[v.value], w = s.split(V, ",", a);
55
+ h.value[v.value] = w.join(",");
56
+ }
57
+ }).catch(() => {
58
+ c.value = [];
59
+ }).finally(() => {
60
+ f = !0;
61
+ });
62
+ }, T = () => {
63
+ if (c.value = [], !i.value)
64
+ return;
65
+ let e = s.split(i.value, ","), l = [];
66
+ if (u.value.control.name) {
67
+ let a = d.value.fields.find((n) => n.name == u.value.control.name), r = h.value[a.name];
68
+ l = s.split(r, ",");
69
+ }
70
+ let o = s.combine(e, l);
71
+ if (F.upload.method == "box")
72
+ q(o);
73
+ else {
74
+ let a = de.httpOrHttps(i.value) ? i.value : R.api.url + i.value, r = { name: a, url: null };
75
+ O.isImage(a) ? r.url = a : r.url = S.getFileIcon(a), c.value.push(r);
76
+ }
77
+ };
78
+ Z(() => {
79
+ T();
80
+ });
81
+ let i = x({
82
+ get() {
83
+ return D.value;
84
+ },
85
+ set(e) {
86
+ g("update:modelValue", e), g("change", e);
87
+ }
88
+ }), K = x(() => u.value.control.preview ? "picture-card" : null), Q = x(() => Q);
89
+ return ee(() => i.value, (e, l) => {
90
+ f && T();
91
+ }), (e, l) => {
92
+ const o = k("el-button"), a = k("el-upload"), r = k("el-dialog");
93
+ return I(), B("div", {
94
+ class: le(t(u).control.preview ? "control-file-preview" : "control-file")
95
+ }, [
96
+ C(a, {
97
+ ref_key: "uploadRef",
98
+ ref: E,
99
+ "list-type": t(K),
100
+ action: t(_).action,
101
+ headers: t(P),
102
+ data: t(_).data,
103
+ "file-list": t(c),
104
+ "before-upload": t(H),
105
+ "before-remove": t(M),
106
+ "on-preview": t(W),
107
+ "on-success": t(J),
108
+ "on-progress": t(G),
109
+ disabled: t(u).readonly
110
+ }, {
111
+ default: U(() => [
112
+ t(u).control.preview ? (I(), B("i", me)) : (I(), ae(o, {
113
+ key: 1,
114
+ icon: "el-icon-upload",
115
+ type: "primary"
116
+ }, {
117
+ default: U(() => [
118
+ te(oe(t(ne)("common.click_upload")), 1)
119
+ ]),
120
+ _: 1
121
+ }))
122
+ ]),
123
+ _: 1
124
+ }, 8, ["list-type", "action", "headers", "data", "file-list", "before-upload", "before-remove", "on-preview", "on-success", "on-progress", "disabled"]),
125
+ C(r, {
126
+ draggable: "",
127
+ "append-to-body": "",
128
+ modelValue: t(m),
129
+ "onUpdate:modelValue": l[0] || (l[0] = (n) => re(m) ? m.value = n : m = n)
130
+ }, {
131
+ default: U(() => [
132
+ ue("img", {
133
+ width: "100%",
134
+ src: t(N),
135
+ alt: ""
136
+ }, null, 8, ce)
137
+ ]),
138
+ _: 1
139
+ }, 8, ["modelValue"])
140
+ ], 2);
141
+ };
142
+ }
143
+ });
144
+ export {
145
+ be as default
146
+ };
@@ -0,0 +1,13 @@
1
+ import { L as o, b as t } from "./main-RFuk2-Bk.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
+ };
@@ -0,0 +1,41 @@
1
+ import { defineComponent as f, toRefs as V, computed as _, resolveComponent as h, openBlock as b, createBlock as g, unref as e, isRef as Y } from "vue";
2
+ import { V as k } from "./main-RFuk2-Bk.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 } = V(u), c = () => {
16
+ o("submit");
17
+ }, l = _({
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 = h("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
+ };
@@ -10,7 +10,7 @@ const h = /* @__PURE__ */ u({
10
10
  modelValue: {}
11
11
  },
12
12
  setup(a) {
13
- let r = i(() => import("./Text-CMEzogZ8.js")), s = a, { schema: m, table: n, field: d, set: f, row: p, modelValue: l } = c(s);
13
+ let r = i(() => import("./Text-ChJQSLGE.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),