halo-pc 1.0.15 → 1.0.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (176) hide show
  1. package/dist/Article-DASEvkfO.js +194 -0
  2. package/dist/{ArticleFooter-BFYDplbW.js → ArticleFooter-BSesl8iy.js} +17 -24
  3. package/dist/{Autocomplete-CIXGPZaG.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-BGzxI5QJ.js → CSharp-23QccebX.js} +1 -1
  7. package/dist/{Calender-DkBPl9bM.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-CuRjXSPc.js → Checkbox-SLi7MK1r.js} +1 -1
  13. package/dist/Code-BVTjF5rW.js +54 -0
  14. package/dist/{Code-BlwPnx9J.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-C0jItlVY.js → DataExport-YTc4EX6l.js} +1 -1
  25. package/dist/{DataExport.vue_vue_type_script_setup_true_lang-Dx7mLyuz.js → DataExport.vue_vue_type_script_setup_true_lang-amvVzv4A.js} +34 -40
  26. package/dist/{DataImport-BfBkneEy.js → DataImport-ByV8MQkV.js} +1 -1
  27. package/dist/{DataImport.vue_vue_type_script_setup_true_lang-C9qjFakZ.js → DataImport.vue_vue_type_script_setup_true_lang-CYwCKg5Z.js} +61 -66
  28. package/dist/{Date-B8b9JXpP.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-DjhuyxFC.js → DateTime-C3NrioJi.js} +1 -1
  32. package/dist/DateTime-QyKfqaVG.js +38 -0
  33. package/dist/{DateTimeRange-D01wtitk.js → DateTimeRange-lytkhCjC.js} +11 -18
  34. package/dist/Daterange-D7ZHkOmo.js +57 -0
  35. package/dist/{Decimal-DqMMTfvl.js → Decimal-CTTT98BQ.js} +1 -1
  36. package/dist/Delete-MfXy7gUi.js +56 -0
  37. package/dist/{Detail-C-OFWPso.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-C2fLmTcj.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-DJJcNPgN.js +173 -0
  45. package/dist/{Index-B90giDWQ.js → Index-DlrpDUD3.js} +1 -1
  46. package/dist/Index-DxvVjg9S.js +70 -0
  47. package/dist/{Index-CQURvmzd.js → Index-G36KYPCK.js} +1 -1
  48. package/dist/Index-dTIwhIau.js +4 -0
  49. package/dist/{Index-D7DerkIw.js → Index-x4c71OJZ.js} +1 -1
  50. package/dist/{Index.vue_vue_type_script_setup_true_lang-DZdvfweh.js → Index.vue_vue_type_script_setup_true_lang-8g0L1e0O.js} +16 -23
  51. package/dist/{Index.vue_vue_type_script_setup_true_lang-B93cecQQ.js → Index.vue_vue_type_script_setup_true_lang-oQyBcgPa.js} +16 -23
  52. package/dist/{Index.vue_vue_type_style_index_0_lang-DYwz3Eu2.js → Index.vue_vue_type_style_index_0_lang-DVYceMeD.js} +30 -36
  53. package/dist/{Install-Cqj44p9F.js → Install-BW_ulT9I.js} +20 -27
  54. package/dist/Int-BRqYiJo7.js +41 -0
  55. package/dist/{Int-Bj3Gagp5.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-COY9enBf.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-B7jIGlKI.js → Month-DKeTzNrD.js} +1 -1
  62. package/dist/{Normal-B8YL2DeI.js → Normal-CgSREifM.js} +52 -58
  63. package/dist/Paging-D02YApLL.js +94 -0
  64. package/dist/{PagingHeader-c1vaXeWH.js → PagingHeader-DJ7MmfGl.js} +37 -44
  65. package/dist/{PagingRow-CHDlm8UI.js → PagingRow-BM1GMtrr.js} +21 -28
  66. package/dist/QueryApi-ChpV_S8J.js +13 -0
  67. package/dist/{Racebar-ClsuYbRj.js → Racebar-CZlaC5Gm.js} +43 -49
  68. package/dist/{Radio-C6j5nvI9.js → Radio-BPq3WJa4.js} +1 -1
  69. package/dist/{Register-BnwfjjXP.js → Register-ByxrZyWq.js} +74 -80
  70. package/dist/RichText-BtQDAhn9.js +41 -0
  71. package/dist/{SearchFooter-D10vYX7H.js → SearchFooter-B61gsy3w.js} +1 -1
  72. package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-B3AD4sx-.js → SearchFooter.vue_vue_type_style_index_0_lang-CZv7EteY.js} +1 -1
  73. package/dist/{SearchForm-BRKHMJRS.js → SearchForm-CLvZoPGQ.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-DnjtHyTb.js} +34 -40
  75. package/dist/Select-C_afSAvf.js +111 -0
  76. package/dist/{Select-Z8b2t5QQ.js → Select-DGXJMnE9.js} +19 -26
  77. package/dist/{Select-BiFIpc5-.js → Select-Nb9K2FMY.js} +1 -1
  78. package/dist/{Single-DdcVVH9V.js → Single-C-2qA2MU.js} +111 -117
  79. package/dist/{Statistic-B7niMPBf.js → Statistic-B1K-qIZb.js} +30 -36
  80. package/dist/{Stock-CRsu1vcy.js → Stock-C560McFR.js} +1 -1
  81. package/dist/{Stock-xm8v4vDf.js → Stock-_rnn0B8I.js} +1 -1
  82. package/dist/{Stock.vue_vue_type_style_index_0_lang-Cb3jPDk8.js → Stock.vue_vue_type_style_index_0_lang-BEwvRtU6.js} +26 -32
  83. package/dist/{Switch-BaER4xWy.js → Switch-BadvkLSw.js} +1 -1
  84. package/dist/{Table-a5uj25Nj.js → Table-B46N43V3.js} +69 -74
  85. package/dist/{Table-C2dYPoGi.js → Table-Dk48tQ1r.js} +59 -66
  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-DAICkidp.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-BwQkDP2T.js → Tree-DVeTdmmL.js} +66 -72
  96. package/dist/TreeNode-BScAFHPZ.js +37 -0
  97. package/dist/{Update-BZe92EwV.js → Update-BbU5H_Qf.js} +14 -21
  98. package/dist/{UpdateChild-DN6pwrUK.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-2tcz8PDF.js → Year-CTo-9KjE.js} +1 -1
  104. package/dist/main-65efBfek.js +19835 -0
  105. package/dist/main.js +53 -54
  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-CMEzogZ8.js +0 -4
  151. package/dist/Text-CqKE2xDo.js +0 -59
  152. package/dist/Text-DfqLW_KH.js +0 -60
  153. package/dist/Text.vue_vue_type_style_index_0_lang-BNpeGb1c.js +0 -60
  154. package/dist/TextLink-XJurKE8Q.js +0 -66
  155. package/dist/Time-BmdIHgOY.js +0 -44
  156. package/dist/Timeline-BOPAiaK-.js +0 -60
  157. package/dist/Tree-BR8gmBBa.js +0 -123
  158. package/dist/TreeNode-CdBVgaRW.js +0 -43
  159. package/dist/Upload-BtErvzEO.js +0 -151
  160. package/dist/Upload-vPTA8ndw.js +0 -73
  161. package/dist/UploadApi-CpwS4Kf1.js +0 -21
  162. package/dist/Year-CVqwpSLR.js +0 -48
  163. package/dist/assets/@intlify-BISCQg1h.js +0 -2189
  164. package/dist/assets/@monaco-editor-BCDRi0Ti.js +0 -258
  165. package/dist/assets/@vue-aVYGocXp.js +0 -93
  166. package/dist/assets/clone-BZn0cTAu.js +0 -134
  167. package/dist/assets/file-saver-CwlpTZSc.js +0 -74
  168. package/dist/assets/liquidjs-C-LVcoaY.js +0 -2893
  169. package/dist/assets/moment-h96o7c8I.js +0 -2578
  170. package/dist/assets/sprintf-js-BPTdvBYM.js +0 -148
  171. package/dist/assets/state-local-CEworIRt.js +0 -131
  172. package/dist/assets/underscore-B0BCaBxV.js +0 -1070
  173. package/dist/assets/underscore.string-DVXD2SZo.js +0 -425
  174. package/dist/assets/util-deprecate-Dzun97re.js +0 -28
  175. package/dist/assets/vue-i18n-CLr3brPz.js +0 -1670
  176. package/dist/main-BS_9gx1M.js +0 -8937
@@ -1,60 +0,0 @@
1
- import { defineComponent as h, toRefs as y, resolveComponent as o, openBlock as t, createBlock as n, unref as e, withCtx as l, createElementVNode as a, createElementBlock as c, Fragment as k, renderList as x, createCommentVNode as v } 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 { _ as H, G as g } from "./main-BS_9gx1M.js";
7
- import "./assets/@monaco-editor-BCDRi0Ti.js";
8
- import "./assets/moment-h96o7c8I.js";
9
- import "./assets/liquidjs-C-LVcoaY.js";
10
- const C = { class: "timeline-layout" }, B = ["innerHTML"], L = {
11
- key: 0,
12
- class: "timeline-detail"
13
- }, z = /* @__PURE__ */ h({
14
- __name: "Timeline",
15
- props: {
16
- searchData: {},
17
- route: {},
18
- module: {},
19
- schema: {},
20
- table: {},
21
- layout: {},
22
- next: {},
23
- set: {}
24
- },
25
- setup(_) {
26
- let p = _, { module: T, schema: b, table: m, layout: i, next: E, set: r } = y(p);
27
- return (M, N) => {
28
- const u = o("el-timeline-item"), d = o("el-timeline"), f = o("el-empty");
29
- return t(), n(e(H), { class: "timeline" }, {
30
- default: l(() => [
31
- a("div", C, [
32
- e(r)[e(m).name].length > 0 ? (t(), n(d, {
33
- key: 0,
34
- reverse: !1
35
- }, {
36
- default: l(() => [
37
- (t(!0), c(k, null, x(e(r)[e(m).name], (s) => (t(), n(u, {
38
- timestamp: s[e(i).time]
39
- }, {
40
- default: l(() => [
41
- a("div", {
42
- innerHTML: e(g).getHtml(s[e(i).text])
43
- }, null, 8, B)
44
- ]),
45
- _: 2
46
- }, 1032, ["timestamp"]))), 256))
47
- ]),
48
- _: 1
49
- })) : (t(), n(f, { key: 1 }))
50
- ]),
51
- e(m).length > 0 ? (t(), c("div", L, " 时间线节点详情 ")) : v("", !0)
52
- ]),
53
- _: 1
54
- });
55
- };
56
- }
57
- });
58
- export {
59
- z as default
60
- };
@@ -1,123 +0,0 @@
1
- import { defineComponent as Q, toRefs as U, ref as m, onMounted as X, watch as Y, nextTick as V, resolveComponent as N, openBlock as k, createElementBlock as w, unref as d, Fragment as K, renderList as L, createBlock as B, withCtx as b, createVNode as Z, createElementVNode as ee, toDisplayString as D, createCommentVNode as H } from "vue";
2
- import { D as le, A as _, T as M, s as A } from "./main-BS_9gx1M.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 "./assets/liquidjs-C-LVcoaY.js";
9
- const te = { class: "option-text" }, ae = {
10
- key: 0,
11
- class: "option-suffix"
12
- }, pe = /* @__PURE__ */ Q({
13
- __name: "Tree",
14
- props: {
15
- route: {},
16
- validateErrors: {},
17
- module: {},
18
- schema: {},
19
- table: {},
20
- layout: {},
21
- next: {},
22
- set: {}
23
- },
24
- setup(F, { expose: P }) {
25
- let S = F, { module: $, schema: re, table: u, layout: l, set: v } = U(S), E = m(), T = m([]), x = m(), y = m(0), g = m([]), R = m(!0), z = (e, r, o) => {
26
- let a = v.value[u.value.name].find((n) => n.PermissionId == e[l.value.id]);
27
- a && (a[l.value.expand] = !0);
28
- }, W = (e, r, o) => {
29
- let a = v.value[u.value.name].find((n) => n.PermissionId == e[l.value.id]);
30
- a && (a[l.value.expand] = !1);
31
- }, j = (e, r, o) => {
32
- let a = r.checkedKeys, n = e[l.value.id], i = _.contains(a, n), c = [], s = [], h = M.getChildren(e, "Children").map((t) => t[l.value.id]), f = v.value[u.value.name].map((t) => t[l.value.checked]), p = _.intersect(h, f);
33
- if (i) {
34
- c.push(e[l.value.id]);
35
- let t = _.except(h, p);
36
- t.length && (a.push(...t), c.push(...t));
37
- } else
38
- s.push(n), p.length == h.length && (s.push(...h), _.remove(a, h));
39
- c.length && q(c), s.length && G(s);
40
- }, q = (e) => {
41
- for (let r = 0; r < e.length; r++) {
42
- let o = A.getDefaultRow(u.value);
43
- o[l.value.checked] = e[r], v.value[u.value.name].push(o);
44
- }
45
- }, G = (e) => {
46
- let r = v.value[u.value.name];
47
- for (let o = 0; o < e.length; o++) {
48
- let a = r.find((n) => n[l.value.checked] == e[o]);
49
- _.remove(r, a);
50
- }
51
- }, J = (e) => {
52
- x.value = e.contentRect.width, y.value = Math.ceil(x.value / 300), I(u.value, l.value, v.value);
53
- }, I = (e, r, o) => {
54
- g.value = A.getLines(r.data, y.value, (a) => [a], () => 1), V(() => {
55
- let a = o[e.name].map((i) => i[r.checked]), n = 0;
56
- for (let i = 0; i < g.value.length; i++) {
57
- let c = g.value[i];
58
- for (let s = 0; s < c.length; s++) {
59
- let C = T.value[n], h = c[s].data, f = M.getFlat(h, "Children").map((t) => t[r.id]), p = _.intersect(f, a);
60
- if (!(p.length == 1 && f.length > 1)) for (let t = 0; t < p.length; t++) {
61
- let O = p[t];
62
- C.setChecked(O, !0, !1);
63
- }
64
- n++;
65
- }
66
- }
67
- });
68
- };
69
- return X(() => {
70
- x.value = le.getWidth(E.value), y.value = Math.ceil(x.value / 300), I(u.value, l.value, v.value);
71
- }), Y(() => u.value, (e, r) => {
72
- R.value = !1, V(() => {
73
- R.value = !0, I(e, l.value, v.value);
74
- });
75
- }), P({ resize: J }), (e, r) => {
76
- const o = N("el-tree"), a = N("el-col"), n = N("el-row");
77
- return k(), w("div", {
78
- ref_key: "layoutRef",
79
- ref: E,
80
- class: "ha-tree-layout"
81
- }, [
82
- d(R) ? (k(!0), w(K, { key: 0 }, L(d(g), (i, c) => (k(), B(n, null, {
83
- default: b(() => [
84
- (k(!0), w(K, null, L(i, ({ data: s, span: C, index: h }, f) => (k(), B(a, {
85
- span: C,
86
- key: `${c}.${f}`
87
- }, {
88
- default: b(() => [
89
- Z(o, {
90
- ref_for: !0,
91
- ref_key: "treeRefs",
92
- ref: T,
93
- "show-checkbox": "",
94
- "highlight-current": "",
95
- "default-expand-all": !1,
96
- "expand-on-click-node": !1,
97
- "node-key": d(l).id,
98
- data: s,
99
- props: { children: "Children", label: d(l).text },
100
- disabled: d($).type == "Detail",
101
- onNodeExpand: d(z),
102
- onNodeCollapse: d(W),
103
- onCheck: (p, t) => d(j)(p, t, h)
104
- }, {
105
- default: b(({ node: p, data: t }) => [
106
- ee("div", te, D(t[d(l).text]), 1),
107
- d(l).suffix ? (k(), w("div", ae, D(t[d(l).suffix]), 1)) : H("", !0)
108
- ]),
109
- _: 2
110
- }, 1032, ["node-key", "data", "props", "disabled", "onNodeExpand", "onNodeCollapse", "onCheck"])
111
- ]),
112
- _: 2
113
- }, 1032, ["span"]))), 128))
114
- ]),
115
- _: 2
116
- }, 1024))), 256)) : H("", !0)
117
- ], 512);
118
- };
119
- }
120
- });
121
- export {
122
- pe as default
123
- };
@@ -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-BS_9gx1M.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-BS_9gx1M.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-Bc_kmvgs.js";
9
- import { U as pe } from "./UploadApi-CpwS4Kf1.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-BS_9gx1M.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-Bc_kmvgs.js";
10
- import { U as S } from "./UploadApi-CpwS4Kf1.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-BS_9gx1M.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-BS_9gx1M.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
- };