halo-pc 1.0.13 → 1.0.16

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-DASEvkfO.js +194 -0
  2. package/dist/{ArticleFooter-BbDi3-MM.js → ArticleFooter-BSesl8iy.js} +17 -24
  3. package/dist/{Autocomplete-KcemMig-.js → Autocomplete-ClAQY5V5.js} +1 -1
  4. package/dist/Autocomplete-CzfOoMve.js +48 -0
  5. package/dist/Autocomplete-DToic2Cg.js +49 -0
  6. package/dist/{CSharp-Re2Hef51.js → CSharp-23QccebX.js} +1 -1
  7. package/dist/{Calender-BdLz8uVu.js → Calender-DZkQaIeV.js} +3 -3
  8. package/dist/Callback-CWBDUe_C.js +20 -0
  9. package/dist/Cascader-BDfFyqiv.js +41 -0
  10. package/dist/Cascader-CpD_hbhQ.js +81 -0
  11. package/dist/Checkbox--gCBkIuI.js +70 -0
  12. package/dist/{Checkbox-C4vv9clz.js → Checkbox-SLi7MK1r.js} +1 -1
  13. package/dist/Code-BVTjF5rW.js +54 -0
  14. package/dist/{Code-oAwc2PqM.js → Code-C4hdU4t4.js} +1 -1
  15. package/dist/Code-CO4WPAe_.js +4 -0
  16. package/dist/Code-nrn4wOhB.js +36 -0
  17. package/dist/Code.vue_vue_type_style_index_0_lang-BgAnkZ3j.js +59 -0
  18. package/dist/Column-DcMAu4JL.js +68 -0
  19. package/dist/Comment-CPxVIapg.js +98 -0
  20. package/dist/Compare-C2oFy0EZ.js +56 -0
  21. package/dist/Compare-P9zOBC1v.js +26 -0
  22. package/dist/Copy-B5vrho98.js +43 -0
  23. package/dist/Custom-BETJLilj.js +51 -0
  24. package/dist/{DataExport-Bfcwgxhl.js → DataExport-YTc4EX6l.js} +1 -1
  25. package/dist/{DataExport.vue_vue_type_script_setup_true_lang-DxEJA5Ee.js → DataExport.vue_vue_type_script_setup_true_lang-amvVzv4A.js} +34 -40
  26. package/dist/{DataImport-BPx3VvYv.js → DataImport-ByV8MQkV.js} +1 -1
  27. package/dist/{DataImport.vue_vue_type_script_setup_true_lang-5gkTElFL.js → DataImport.vue_vue_type_script_setup_true_lang-CYwCKg5Z.js} +61 -66
  28. package/dist/{Date-FuMiaUxd.js → Date-DbTzQla9.js} +1 -1
  29. package/dist/Date-DpiWNuFs.js +37 -0
  30. package/dist/DateRange-Su0Q2cwY.js +57 -0
  31. package/dist/{DateTime-CyCcFf_l.js → DateTime-C3NrioJi.js} +1 -1
  32. package/dist/DateTime-QyKfqaVG.js +38 -0
  33. package/dist/{DateTimeRange-Db9BDn2x.js → DateTimeRange-lytkhCjC.js} +11 -18
  34. package/dist/Daterange-D7ZHkOmo.js +57 -0
  35. package/dist/{Decimal-F1-H75HK.js → Decimal-CTTT98BQ.js} +1 -1
  36. package/dist/Delete-MfXy7gUi.js +56 -0
  37. package/dist/{Detail-AhGw1lSI.js → Detail-CUiSzyT7.js} +16 -23
  38. package/dist/Dictionary-Dd_IU-Hn.js +55 -0
  39. package/dist/Email-BzN4JpJv.js +48 -0
  40. package/dist/{File-1ATMHoXy.js → File-Ckh37Ne2.js} +42 -49
  41. package/dist/Image-Dkd69DoD.js +9 -0
  42. package/dist/Index-CGJLRExG.js +4 -0
  43. package/dist/Index-CLzHDG05.js +4 -0
  44. package/dist/{Index-BlsoOd-w.js → Index-DJJcNPgN.js} +61 -67
  45. package/dist/{Index-Bk0v21aV.js → Index-DlrpDUD3.js} +1 -1
  46. package/dist/Index-DxvVjg9S.js +70 -0
  47. package/dist/{Index-CXbpni6W.js → Index-G36KYPCK.js} +1 -1
  48. package/dist/Index-dTIwhIau.js +4 -0
  49. package/dist/{Index-CY3JroZR.js → Index-x4c71OJZ.js} +1 -1
  50. package/dist/{Index.vue_vue_type_script_setup_true_lang-DqLF_iyM.js → Index.vue_vue_type_script_setup_true_lang-8g0L1e0O.js} +16 -23
  51. package/dist/{Index.vue_vue_type_script_setup_true_lang-C5HbpsSj.js → Index.vue_vue_type_script_setup_true_lang-oQyBcgPa.js} +16 -23
  52. package/dist/{Index.vue_vue_type_style_index_0_lang-fOkzw7J1.js → Index.vue_vue_type_style_index_0_lang-DVYceMeD.js} +30 -36
  53. package/dist/{Install-DWNrbMRl.js → Install-BW_ulT9I.js} +21 -28
  54. package/dist/Int-BRqYiJo7.js +41 -0
  55. package/dist/{Int-E-wewJ2r.js → Int-BYSjwPG_.js} +9 -16
  56. package/dist/List-DAFqVlam.js +73 -0
  57. package/dist/Maintaince-B8mM4PEp.js +14 -0
  58. package/dist/{Markdown-DBvQ_Q4I.js → Markdown-BXKlgSON.js} +1 -1
  59. package/dist/Month-BHvq72xE.js +37 -0
  60. package/dist/Month-BiW1DL44.js +38 -0
  61. package/dist/{Month-BMgXtQVp.js → Month-DKeTzNrD.js} +1 -1
  62. package/dist/{Normal-TE2XNiGu.js → Normal-CgSREifM.js} +48 -54
  63. package/dist/Paging-D02YApLL.js +94 -0
  64. package/dist/{PagingHeader-DHI1x6n2.js → PagingHeader-DJ7MmfGl.js} +37 -44
  65. package/dist/{PagingRow-CdXpvFNC.js → PagingRow-BM1GMtrr.js} +21 -28
  66. package/dist/QueryApi-ChpV_S8J.js +13 -0
  67. package/dist/{Racebar-CZVxC7hF.js → Racebar-CZlaC5Gm.js} +43 -49
  68. package/dist/{Radio-BdXipXA2.js → Radio-BPq3WJa4.js} +1 -1
  69. package/dist/{Register-t3oEydyQ.js → Register-ByxrZyWq.js} +71 -77
  70. package/dist/RichText-BtQDAhn9.js +41 -0
  71. package/dist/{SearchFooter-BpJrsqZV.js → SearchFooter-B61gsy3w.js} +1 -1
  72. package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-XXawph5O.js → SearchFooter.vue_vue_type_style_index_0_lang-CZv7EteY.js} +1 -1
  73. package/dist/{SearchForm-CwRcTMlw.js → SearchForm-CLvZoPGQ.js} +1 -1
  74. package/dist/{SearchForm.vue_vue_type_style_index_0_lang-DU69JJ1z.js → SearchForm.vue_vue_type_style_index_0_lang-DnjtHyTb.js} +34 -40
  75. package/dist/Select-C_afSAvf.js +111 -0
  76. package/dist/{Select-DGGUWJY4.js → Select-DGXJMnE9.js} +19 -26
  77. package/dist/{Select-UUymDTLU.js → Select-Nb9K2FMY.js} +1 -1
  78. package/dist/{Single-C7v2P3LF.js → Single-C-2qA2MU.js} +111 -117
  79. package/dist/{Statistic-C6J7v2xF.js → Statistic-B1K-qIZb.js} +43 -51
  80. package/dist/{Stock-Ct-HKlln.js → Stock-C560McFR.js} +1 -1
  81. package/dist/{Stock-DSnE1Bzv.js → Stock-_rnn0B8I.js} +1 -1
  82. package/dist/{Stock.vue_vue_type_style_index_0_lang-DtH6bO8x.js → Stock.vue_vue_type_style_index_0_lang-BEwvRtU6.js} +31 -39
  83. package/dist/{Switch-Bi8hhG_X.js → Switch-BadvkLSw.js} +1 -1
  84. package/dist/{Table-SSfqvIzl.js → Table-B46N43V3.js} +67 -72
  85. package/dist/{Table-D0P60c_b.js → Table-Dk48tQ1r.js} +63 -70
  86. package/dist/Text-CNF204mx.js +53 -0
  87. package/dist/Text-DblKaz4m.js +52 -0
  88. package/dist/Text-y-q7UXlg.js +4 -0
  89. package/dist/Text.vue_vue_type_style_index_0_lang-DtnGWes5.js +53 -0
  90. package/dist/TextLink-B4Q0zX1K.js +59 -0
  91. package/dist/{Textarea-CzUa7wZ2.js → Textarea-D1BOQFgK.js} +1 -1
  92. package/dist/Time-DZQxglEi.js +37 -0
  93. package/dist/Timeline-8QaD9H_I.js +53 -0
  94. package/dist/Tree-BUcyK0i_.js +117 -0
  95. package/dist/{Tree-6sdSDjF7.js → Tree-DVeTdmmL.js} +64 -70
  96. package/dist/TreeNode-BScAFHPZ.js +37 -0
  97. package/dist/{Update-Bgn_-Tk7.js → Update-BbU5H_Qf.js} +14 -21
  98. package/dist/{UpdateChild-BOHAM_TM.js → UpdateChild-BbXuXfOR.js} +19 -26
  99. package/dist/Upload-C1obfZui.js +146 -0
  100. package/dist/Upload-CmtHETKR.js +67 -0
  101. package/dist/UploadApi-2sfpKCMa.js +13 -0
  102. package/dist/Year-CRd3PkNx.js +41 -0
  103. package/dist/{Year-BbZI6olW.js → Year-CTo-9KjE.js} +1 -1
  104. package/dist/main-65efBfek.js +19835 -0
  105. package/dist/main.js +47 -49
  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 +2 -2
  111. package/dist/Article-X51Oz1hI.js +0 -198
  112. package/dist/Autocomplete-Ci1CXGQE.js +0 -55
  113. package/dist/Autocomplete-Co_6LMOR.js +0 -54
  114. package/dist/Callback-DwiifiR-.js +0 -27
  115. package/dist/Cascader-BrjhyzSI.js +0 -88
  116. package/dist/Cascader-DuG1TFF-.js +0 -48
  117. package/dist/Checkbox-DAsy2Gtb.js +0 -77
  118. package/dist/Code-CNioVNv0.js +0 -4
  119. package/dist/Code-CQQJJ5Jx.js +0 -61
  120. package/dist/Code-DAMTIprA.js +0 -43
  121. package/dist/Code.vue_vue_type_style_index_0_lang-G1i4uKJp.js +0 -66
  122. package/dist/Column-DMN_0BnR.js +0 -75
  123. package/dist/Comment-D4gvdlOG.js +0 -105
  124. package/dist/Compare-B9ms7AkH.js +0 -63
  125. package/dist/Compare-OHWeHehJ.js +0 -33
  126. package/dist/Copy-B6pQ--3T.js +0 -50
  127. package/dist/Custom-Dt_-KfRY.js +0 -58
  128. package/dist/Date-DAud0Tf9.js +0 -44
  129. package/dist/DateRange-ClHpJNRt.js +0 -64
  130. package/dist/DateTime-BO1c3xG2.js +0 -45
  131. package/dist/Daterange-BlMa4jnq.js +0 -64
  132. package/dist/Delete-BVH0G9h3.js +0 -63
  133. package/dist/Dictionary-DwcOV9xl.js +0 -60
  134. package/dist/Email-BljE8jDr.js +0 -55
  135. package/dist/Image-Bv2Ducoj.js +0 -9
  136. package/dist/Index-BFuHqDAs.js +0 -4
  137. package/dist/Index-D-TyDnGW.js +0 -4
  138. package/dist/Index-D2H5yTHn.js +0 -4
  139. package/dist/Index-YG1SBeIv.js +0 -76
  140. package/dist/Int-g8pM8ZyY.js +0 -47
  141. package/dist/List-ow09enu_.js +0 -80
  142. package/dist/Maintaince-Ctz2-ztL.js +0 -21
  143. package/dist/Month-CPMc1YrA.js +0 -45
  144. package/dist/Month-bDRWnCLy.js +0 -44
  145. package/dist/Paging-668tf97P.js +0 -100
  146. package/dist/QueryApi-UJNYVuJd.js +0 -21
  147. package/dist/RichText-BDRC1veI.js +0 -48
  148. package/dist/Select-RlOWoUwz.js +0 -118
  149. package/dist/Text-McD2Rcic.js +0 -59
  150. package/dist/Text-Stj6-whX.js +0 -4
  151. package/dist/Text-V0WQUxoe.js +0 -60
  152. package/dist/Text.vue_vue_type_style_index_0_lang-BuHdoSkB.js +0 -60
  153. package/dist/TextLink-DmRFUHgF.js +0 -66
  154. package/dist/Time-CgOW3aic.js +0 -44
  155. package/dist/Timeline-BV-wfL2F.js +0 -60
  156. package/dist/Tree-r6FMB9WN.js +0 -123
  157. package/dist/TreeNode-Y4ktCxAQ.js +0 -43
  158. package/dist/Upload-BGYLdPIM.js +0 -151
  159. package/dist/Upload-Df16iaP1.js +0 -73
  160. package/dist/UploadApi-CnAUAXVp.js +0 -21
  161. package/dist/Year-OqMhzqjx.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-RpQODrQa.js +0 -8936
@@ -1,43 +0,0 @@
1
- import { defineComponent as x, toRefs as h, computed as C, openBlock as a, createElementBlock as s, unref as e, createElementVNode as N, toDisplayString as i, createTextVNode as b, createCommentVNode as d } from "vue";
2
- import "./assets/underscore-B0BCaBxV.js";
3
- import { t as g, S as y } from "./main-RpQODrQa.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 "./assets/liquidjs-C-LVcoaY.js";
9
- const k = ["title"], v = { class: "number" }, S = {
10
- key: 0,
11
- class: "option-suffix"
12
- }, V = {
13
- key: 1,
14
- class: "count"
15
- }, L = /* @__PURE__ */ x({
16
- __name: "TreeNode",
17
- props: {
18
- table: {},
19
- layout: {},
20
- row: {},
21
- node: {}
22
- },
23
- setup(p) {
24
- let u = p, { table: m, layout: r, row: t, node: c } = h(u), f = (o, l) => {
25
- let n = (o.parent.data.Children ? o.parent.data.Children.indexOf(l) : o.parent.data.indexOf(l)) + 1;
26
- return y.padLeft(n, 2, "0");
27
- }, _ = C(() => m.value.fields.find((n) => n.name == r.value.text).control.i18N);
28
- return (o, l) => {
29
- var n;
30
- return a(), s("div", {
31
- title: e(t)[e(r).title]
32
- }, [
33
- N("span", v, i(e(f)(e(c), e(t))), 1),
34
- b(" " + i((n = e(_)) != null && n.value ? e(g)(e(t)[e(r).text]) : e(t)[e(r).text]) + " ", 1),
35
- e(r).suffix ? (a(), s("span", S, i(e(t)[e(r).suffix]), 1)) : d("", !0),
36
- e(t).Children && e(t).Children.length > 0 ? (a(), s("span", V, "(" + i(e(t).Children.length) + ")", 1)) : d("", !0)
37
- ], 8, k);
38
- };
39
- }
40
- });
41
- export {
42
- L as default
43
- };
@@ -1,151 +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 R, createElementBlock as N, normalizeClass as le, unref as a, createVNode as S, 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, w as F, x as ie, h as I, m as se, A as s, q as T, y as H, F as q, z, U as de } from "./main-RpQODrQa.js";
3
- import "./assets/underscore.string-DVXD2SZo.js";
4
- import "./assets/clone-BZn0cTAu.js";
5
- import "./assets/@monaco-editor-BCDRi0Ti.js";
6
- import "./assets/moment-h96o7c8I.js";
7
- import "./assets/liquidjs-C-LVcoaY.js";
8
- import "./QueryApi-UJNYVuJd.js";
9
- import { U as pe } from "./UploadApi-CnAUAXVp.js";
10
- const me = {
11
- key: 0,
12
- class: "fa fa-upload"
13
- }, ce = ["src"], ke = /* @__PURE__ */ X({
14
- __name: "Upload",
15
- props: {
16
- schema: {},
17
- table: {},
18
- field: {},
19
- set: {},
20
- row: {},
21
- modelValue: {}
22
- },
23
- emits: ["submit", "change", "update:modelValue"],
24
- setup(B, { emit: C }) {
25
- let h = C, O = B, { table: d, field: u, row: g, set: ve, modelValue: $ } = Y(O), m = p(!1), P = p({}), c = p([]), j = p(), E = p(), f = !0, _ = p({ action: "", data: null }), L = (e) => {
26
- let l = pe.getUploadToken();
27
- e.forEach((o) => {
28
- let t = `${H.upload.address}/api/objects/download?slug=${o[0]}&token=${l}`;
29
- c.value.push({ name: o[1], url: t });
30
- });
31
- }, D = async (e) => {
32
- f = !1;
33
- let l = `/upload?table=${d.value.name}&field=${u.value.name}`;
34
- _.value.action = F.api.url + l;
35
- let o = new ie();
36
- o.path = l, o.method = "POST", await I.onRequest(o);
37
- let t = o.getHeader("Authorization");
38
- return P.value.Authorization = t, u.value.control.fileType == "Image" ? e.type.indexOf("image") == 0 ? Promise.resolve() : (se.error("请上传正确的图片文件"), Promise.reject()) : Promise.resolve();
39
- }, M = (e, l) => {
40
- f = !1;
41
- let t = [e.name.replace(F.api.url, "")];
42
- return I.post("/upload/delete", { files: t }).then(({ data: r }) => {
43
- let n = l.indexOf(e), b = s.removeIndex(i.value, n, ",");
44
- if (h("update:modelValue", b), u.value.control.name) {
45
- let v = d.value.fields.find((y) => y.name == u.value.control.name), V = T.getValue(r.value, n, d.value, v), w = s.removeIndex(V, n, ",");
46
- T.setValue(w, r.value, d.value, n, v);
47
- }
48
- return Promise.resolve();
49
- }).catch(() => Promise.reject());
50
- }, G = (e) => {
51
- m.value = !0, j.value = e.url;
52
- }, J = (e, l, o) => {
53
- }, K = (e, l) => {
54
- I.handleResponseBody(e).then((o) => {
55
- let { name: t, url: r } = o.data[0];
56
- H.upload.method == "box" || q.isImage(r) || (l.url = z.getFileIcon(r));
57
- let b = s.split(i.value, ",", r).join(",");
58
- if (i.value = b, u.value.control.name) {
59
- let v = d.value.fields.find((y) => y.name == u.value.control.name), V = g.value[v.value], w = s.split(V, ",", t);
60
- g.value[v.value] = w.join(",");
61
- }
62
- }).catch(() => {
63
- c.value = [];
64
- }).finally(() => {
65
- f = !0;
66
- });
67
- }, A = () => {
68
- if (c.value = [], !i.value)
69
- return;
70
- let e = s.split(i.value, ","), l = [];
71
- if (u.value.control.name) {
72
- let t = d.value.fields.find((n) => n.name == u.value.control.name), r = g.value[t.name];
73
- l = s.split(r, ",");
74
- }
75
- let o = s.combine(e, l);
76
- if (H.upload.method == "box")
77
- L(o);
78
- else {
79
- let t = de.httpOrHttps(i.value) ? i.value : F.api.url + i.value, r = { name: t, url: null };
80
- q.isImage(t) ? r.url = t : r.url = z.getFileIcon(t), c.value.push(r);
81
- }
82
- };
83
- Z(() => {
84
- A();
85
- });
86
- let i = x({
87
- get() {
88
- return $.value;
89
- },
90
- set(e) {
91
- h("update:modelValue", e), h("change", e);
92
- }
93
- }), Q = x(() => u.value.control.preview ? "picture-card" : null), W = x(() => W);
94
- return ee(() => i.value, (e, l) => {
95
- f && A();
96
- }), (e, l) => {
97
- const o = k("el-button"), t = k("el-upload"), r = k("el-dialog");
98
- return R(), N("div", {
99
- class: le(a(u).control.preview ? "control-file-preview" : "control-file")
100
- }, [
101
- S(t, {
102
- ref_key: "uploadRef",
103
- ref: E,
104
- "list-type": a(Q),
105
- action: a(_).action,
106
- headers: a(P),
107
- data: a(_).data,
108
- "file-list": a(c),
109
- "before-upload": a(D),
110
- "before-remove": a(M),
111
- "on-preview": a(G),
112
- "on-success": a(K),
113
- "on-progress": a(J),
114
- disabled: a(u).readonly
115
- }, {
116
- default: U(() => [
117
- a(u).control.preview ? (R(), N("i", me)) : (R(), te(o, {
118
- key: 1,
119
- icon: "el-icon-upload",
120
- type: "primary"
121
- }, {
122
- default: U(() => [
123
- ae(oe(a(ne)("common.click_upload")), 1)
124
- ]),
125
- _: 1
126
- }))
127
- ]),
128
- _: 1
129
- }, 8, ["list-type", "action", "headers", "data", "file-list", "before-upload", "before-remove", "on-preview", "on-success", "on-progress", "disabled"]),
130
- S(r, {
131
- draggable: "",
132
- "append-to-body": "",
133
- modelValue: a(m),
134
- "onUpdate:modelValue": l[0] || (l[0] = (n) => re(m) ? m.value = n : m = n)
135
- }, {
136
- default: U(() => [
137
- ue("img", {
138
- width: "100%",
139
- src: a(j),
140
- alt: ""
141
- }, null, 8, ce)
142
- ]),
143
- _: 1
144
- }, 8, ["modelValue"])
145
- ], 2);
146
- };
147
- }
148
- });
149
- export {
150
- ke as default
151
- };
@@ -1,73 +0,0 @@
1
- import { defineComponent as w, toRefs as V, ref as r, onMounted as b, computed as k, resolveComponent as x, openBlock as p, createElementBlock as u, Fragment as C, renderList as F, unref as s, createVNode as y, 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 { y as c, U as $, w as B, F as I, z as N } from "./main-RpQODrQa.js";
5
- import "./assets/clone-BZn0cTAu.js";
6
- import "./assets/@monaco-editor-BCDRi0Ti.js";
7
- import "./assets/moment-h96o7c8I.js";
8
- import "./assets/liquidjs-C-LVcoaY.js";
9
- import "./QueryApi-UJNYVuJd.js";
10
- import { U as S } from "./UploadApi-CnAUAXVp.js";
11
- const j = { class: "text-upload" }, z = ["src", "onClick", "alt"], A = ["src"], ee = /* @__PURE__ */ w({
12
- __name: "Upload",
13
- props: {
14
- schema: {},
15
- table: {},
16
- field: {},
17
- set: {},
18
- row: {},
19
- modelValue: {}
20
- },
21
- setup(v) {
22
- let f = v, { table: L, field: M, set: O, row: T, modelValue: g } = V(f), n = r(), t = r(!1), d = r([]), m = r(), _ = (e) => {
23
- t.value = !0, m.value = e.url;
24
- }, h = () => {
25
- if (o.value)
26
- if (c.upload.method == "box")
27
- S.getUploadToken().then((e) => {
28
- o.value.split(",").forEach((a) => {
29
- let l = `${c.upload.address}/api/objects/download?slug=${a}&token=${e}`;
30
- d.value.push({ name: a, url: l });
31
- });
32
- });
33
- else {
34
- let e = $.httpOrHttps(o.value) ? o.value : B.api.url + o.value;
35
- I.isImage(e) ? n.value = e : n.value = N.getFileIcon(e);
36
- }
37
- };
38
- b(() => {
39
- h();
40
- });
41
- let o = k(() => g.value);
42
- return (e, i) => {
43
- const a = x("el-dialog");
44
- return p(), u("div", j, [
45
- (p(!0), u(C, null, F(s(d), (l, U) => (p(), u("img", {
46
- class: "detail-image",
47
- src: l.url,
48
- onClick: (q) => s(_)(l),
49
- alt: l.name,
50
- key: U
51
- }, null, 8, z))), 128)),
52
- y(a, {
53
- draggable: "",
54
- "append-to-body": "",
55
- top: "5vh",
56
- modelValue: s(t),
57
- "onUpdate:modelValue": i[0] || (i[0] = (l) => E(t) ? t.value = l : t = l)
58
- }, {
59
- default: H(() => [
60
- R("img", {
61
- width: "100%",
62
- src: s(m)
63
- }, null, 8, A)
64
- ]),
65
- _: 1
66
- }, 8, ["modelValue"])
67
- ]);
68
- };
69
- }
70
- });
71
- export {
72
- ee as default
73
- };
@@ -1,21 +0,0 @@
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, l as t } from "./main-RpQODrQa.js";
7
- import "./assets/@monaco-editor-BCDRi0Ti.js";
8
- import "./assets/moment-h96o7c8I.js";
9
- import "./assets/liquidjs-C-LVcoaY.js";
10
- let e = null;
11
- class k {
12
- /**
13
- * 获取上传令牌,过期自动获取
14
- */
15
- static async getUploadToken() {
16
- 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);
17
- }
18
- }
19
- export {
20
- k as U
21
- };
@@ -1,48 +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 "./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 { j as k } from "./main-RpQODrQa.js";
9
- import "./assets/liquidjs-C-LVcoaY.js";
10
- const A = /* @__PURE__ */ f({
11
- __name: "Year",
12
- props: {
13
- schema: {},
14
- table: {},
15
- field: {},
16
- set: {},
17
- row: {},
18
- modelValue: {}
19
- },
20
- emits: ["submit", "change", "update:modelValue"],
21
- setup(p, { emit: n }) {
22
- let t = n, d = p, { table: i, field: a, row: C, set: y, modelValue: u } = _(d), s = () => {
23
- t("submit");
24
- }, o = h({
25
- get() {
26
- return u.value;
27
- },
28
- set(l) {
29
- t("update:modelValue", l), t("change", l);
30
- }
31
- });
32
- return (l, r) => {
33
- const c = V("el-date-picker");
34
- return b(), g(c, {
35
- type: "year",
36
- placeholder: e(k)(e(i).name, e(a).name),
37
- "value-format": "YYYY",
38
- disabled: e(a).control.readonly,
39
- onChange: e(s),
40
- modelValue: e(o),
41
- "onUpdate:modelValue": r[0] || (r[0] = (m) => Y(o) ? o.value = m : o = m)
42
- }, null, 8, ["placeholder", "disabled", "onChange", "modelValue"]);
43
- };
44
- }
45
- });
46
- export {
47
- A as default
48
- };