halo-pc 1.0.26 → 1.0.28

Sign up to get free protection for your applications and to get access to all the features.
Files changed (161) hide show
  1. package/dist/{Article-BNacU3kR.js → Article-CTzPZjf8.js} +71 -65
  2. package/dist/{ArticleFooter-Ya07aLYn.js → ArticleFooter-jyfzfZHH.js} +23 -17
  3. package/dist/{Autocomplete-CyXE-g54.js → Autocomplete-D8ytFwqa.js} +1 -1
  4. package/dist/Autocomplete-DoUE3T0L.js +53 -0
  5. package/dist/Autocomplete-FGRT-2ru.js +54 -0
  6. package/dist/{CSharp-DQLgcbTQ.js → CSharp-qh_kEfGr.js} +1 -1
  7. package/dist/{Calender-YujFxcgS.js → Calender-DOuq9uAK.js} +1 -1
  8. package/dist/Callback-DuaBaO1q.js +26 -0
  9. package/dist/Cascader-DgKBpjUK.js +47 -0
  10. package/dist/Cascader-s8VT55_K.js +87 -0
  11. package/dist/{Checkbox-Dkqh7eR4.js → Checkbox-D9NUw4jZ.js} +1 -1
  12. package/dist/Checkbox-REcdbTXR.js +76 -0
  13. package/dist/{Code-DXkJ6x5_.js → Code-CBVRms_j.js} +1 -1
  14. package/dist/Code-DZ-bK9UT.js +60 -0
  15. package/dist/Code-DfnLveft.js +42 -0
  16. package/dist/{Code-Dszcah6J.js → Code-loaJtKGd.js} +1 -1
  17. package/dist/Code.vue_vue_type_style_index_0_lang-BVLhtr1Y.js +65 -0
  18. package/dist/Column-B96LbQFW.js +75 -0
  19. package/dist/Comment-bPWbEkgq.js +104 -0
  20. package/dist/Compare-D4O0qmYv.js +44 -0
  21. package/dist/{Compare-DKLN4wT4.js → Compare-dimRoHFX.js} +24 -18
  22. package/dist/Copy-CKLxfWd4.js +49 -0
  23. package/dist/Custom-Bwyy4_tA.js +57 -0
  24. package/dist/{DataExport-CFjE1loi.js → DataExport-Bp50K0_6.js} +1 -1
  25. package/dist/{DataExport.vue_vue_type_script_setup_true_lang-yTe6V3Dn.js → DataExport.vue_vue_type_script_setup_true_lang-8nDL-PI_.js} +41 -36
  26. package/dist/{DataImport-BQ0rieu8.js → DataImport-BWI4eCxA.js} +1 -1
  27. package/dist/DataImport.vue_vue_type_script_setup_true_lang-DCS1SfNf.js +176 -0
  28. package/dist/Date-Cf64NT4R.js +43 -0
  29. package/dist/{Date-C5WCVXDU.js → Date-FBemqmex.js} +1 -1
  30. package/dist/DateRange-D5kvmDIo.js +63 -0
  31. package/dist/DateTime-CTGuyJ4w.js +44 -0
  32. package/dist/{DateTime-BrsWm90_.js → DateTime-Cvnnthwx.js} +1 -1
  33. package/dist/{DateTimeRange-DjIp1SAX.js → DateTimeRange-Gb33uiRV.js} +17 -11
  34. package/dist/Daterange-CfAdeV7J.js +63 -0
  35. package/dist/{Decimal-_6FobwTd.js → Decimal-B-fyPiuP.js} +1 -1
  36. package/dist/Delete-DhbWFnzt.js +62 -0
  37. package/dist/{Detail-BMbiENm0.js → Detail-DV-JRRLT.js} +20 -14
  38. package/dist/Dictionary-b_mbt-WU.js +59 -0
  39. package/dist/Email-C2Yl7bMF.js +54 -0
  40. package/dist/{File-B9Q2QOa-.js → File-D57qYYt1.js} +28 -22
  41. package/dist/{Image-CzOq81lm.js → Image-BKNUY356.js} +1 -1
  42. package/dist/{Index-DJz-eVVd.js → Index-BPfkpoVf.js} +25 -20
  43. package/dist/Index-BUCyMvJX.js +4 -0
  44. package/dist/Index-BtxNIZsx.js +4 -0
  45. package/dist/Index-C5WYmq9P.js +4 -0
  46. package/dist/{Index-DvfJmbPU.js → Index-CSzgmzRG.js} +1 -1
  47. package/dist/Index-ChWD2gJt.js +4 -0
  48. package/dist/{Index-BmVFh23J.js → Index-P3uHTgX-.js} +1 -1
  49. package/dist/Index-PB-VnCO7.js +178 -0
  50. package/dist/{Index.vue_vue_type_script_setup_true_lang-ExArYWR3.js → Index.vue_vue_type_script_setup_true_lang-BkjFEuPH.js} +20 -14
  51. package/dist/{Index.vue_vue_type_script_setup_true_lang-BpU5b5wU.js → Index.vue_vue_type_script_setup_true_lang-CJV5JBz9.js} +22 -16
  52. package/dist/{Install-CXj-qqao.js → Install-o0VJz9Rl.js} +27 -21
  53. package/dist/Int-BNwPsWfI.js +44 -0
  54. package/dist/Int-DN3vf18e.js +46 -0
  55. package/dist/List-DRAtVlgE.js +79 -0
  56. package/dist/Maintaince-CdVk7qiu.js +20 -0
  57. package/dist/{Markdown-CdP4Uf3M.js → Markdown-CFwOeXFg.js} +1 -1
  58. package/dist/Month-CrvLoEQy.js +43 -0
  59. package/dist/Month-CyB2owvQ.js +44 -0
  60. package/dist/{Month-BUvqsSfA.js → Month-DsKmd425.js} +1 -1
  61. package/dist/{Normal-DUlWYlcs.js → Normal-B_SPQW9Z.js} +99 -94
  62. package/dist/Paging-CzCgExDM.js +99 -0
  63. package/dist/{PagingHeader-aZb0fGRv.js → PagingHeader-Bfnnsv6m.js} +30 -24
  64. package/dist/{PagingRow-_H7tCWDM.js → PagingRow-BXaakA5y.js} +26 -20
  65. package/dist/QueryApi-Cah37Kwx.js +20 -0
  66. package/dist/{Racebar-DESsxoi9.js → Racebar-6FTe1C4G.js} +42 -37
  67. package/dist/{Radio-ChF3_bX0.js → Radio-rym8cXJN.js} +1 -1
  68. package/dist/{Register-Du5lRabU.js → Register-v__-wpY2.js} +75 -70
  69. package/dist/RichText-BDP5KDin.js +47 -0
  70. package/dist/{SearchFooter-HjKH1gD5.js → SearchFooter-0mHMD0Xf.js} +1 -1
  71. package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-CeQ2BcOI.js → SearchFooter.vue_vue_type_style_index_0_lang-CXTYGXIa.js} +1 -1
  72. package/dist/{SearchForm-C-o0Orkp.js → SearchForm-jSIiiv2r.js} +1 -1
  73. package/dist/{SearchForm.vue_vue_type_style_index_0_lang-BijR_gZY.js → SearchForm.vue_vue_type_style_index_0_lang-CFxxTJiB.js} +45 -40
  74. package/dist/{Select-CYaWHcWs.js → Select-Cpj86Kaw.js} +26 -20
  75. package/dist/{Select-DgKzH1gD.js → Select-DKjXN6Ag.js} +34 -28
  76. package/dist/{Select-DrybbaWb.js → Select-R0EsEK0_.js} +1 -1
  77. package/dist/{Single-B-253IzX.js → Single-fIhSt1dN.js} +111 -106
  78. package/dist/{Statistic-B7Tib1eh.js → Statistic-DM3Fr6sO.js} +29 -24
  79. package/dist/{Stock-DuyZiPxv.js → Stock-BemUvyqK.js} +1 -1
  80. package/dist/{Stock-BBcnzi6G.js → Stock-DUrxld5G.js} +1 -1
  81. package/dist/{Stock.vue_vue_type_style_index_0_lang-B6E5USSu.js → Stock.vue_vue_type_style_index_0_lang-Cv9Jvd6d.js} +29 -24
  82. package/dist/{Switch-DP-_EUOK.js → Switch-QdLS7c3q.js} +1 -1
  83. package/dist/{Table-hHG9kq1I.js → Table-BcVHufy3.js} +85 -81
  84. package/dist/{Table-2jZ0ISz7.js → Table-C4dGV7IQ.js} +74 -68
  85. package/dist/{Text-lak-4VnA.js → Text-BJNnrW9U.js} +21 -15
  86. package/dist/{Text-RsldE1sr.js → Text-BNAKwCCe.js} +18 -12
  87. package/dist/{Text-C70dFJLS.js → Text-D3DqixJp.js} +1 -1
  88. package/dist/Text.vue_vue_type_style_index_0_lang-B253xD5Z.js +59 -0
  89. package/dist/TextLink-D-9pICMh.js +65 -0
  90. package/dist/{Textarea-QGa_EKSl.js → Textarea-Cr5zt_LK.js} +1 -1
  91. package/dist/Time-DQJPtNWo.js +43 -0
  92. package/dist/Timeline-Dy37Cou2.js +59 -0
  93. package/dist/Tree-3zBuSLBv.js +122 -0
  94. package/dist/{Tree-B2fZE9Qf.js → Tree-4v2brZjr.js} +112 -107
  95. package/dist/TreeNode-CvS8mLCJ.js +42 -0
  96. package/dist/{Update-BqQGp_9h.js → Update-Cp50LcVx.js} +18 -12
  97. package/dist/{UpdateChild-DejVqKrE.js → UpdateChild-CFi_DjLv.js} +23 -17
  98. package/dist/Upload-Bqp-5cFa.js +72 -0
  99. package/dist/Upload-D-hvecbh.js +150 -0
  100. package/dist/UploadApi-CC5hZcM_.js +20 -0
  101. package/dist/Year-CYSncKVk.js +47 -0
  102. package/dist/{Year-CrN8Fl5U.js → Year-q0tWWwkv.js} +1 -1
  103. package/dist/assets/clone-BZn0cTAu.js +134 -0
  104. package/dist/assets/file-saver-CwlpTZSc.js +74 -0
  105. package/dist/assets/liquidjs-C-LVcoaY.js +2893 -0
  106. package/dist/assets/moment-h96o7c8I.js +2578 -0
  107. package/dist/assets/sprintf-js-BPTdvBYM.js +148 -0
  108. package/dist/assets/underscore-B0BCaBxV.js +1070 -0
  109. package/dist/assets/underscore.string-DVXD2SZo.js +425 -0
  110. package/dist/assets/util-deprecate-Dzun97re.js +28 -0
  111. package/dist/main-D-QTCahZ.js +9107 -0
  112. package/dist/main.js +36 -35
  113. package/dist/style.css +1 -1
  114. package/package.json +2 -2
  115. package/dist/Autocomplete-Bud53PPx.js +0 -48
  116. package/dist/Autocomplete-CfE5ZKi2.js +0 -49
  117. package/dist/Callback-BaFg5U2u.js +0 -20
  118. package/dist/Cascader-C1kyNib7.js +0 -41
  119. package/dist/Cascader-D5PO9zK9.js +0 -81
  120. package/dist/Checkbox-CUtyT8l7.js +0 -70
  121. package/dist/Code-C160-nQS.js +0 -54
  122. package/dist/Code-pe9JMCAj.js +0 -36
  123. package/dist/Code.vue_vue_type_style_index_0_lang-B1dEEN-z.js +0 -59
  124. package/dist/Column-C3j98RGT.js +0 -69
  125. package/dist/Comment-DIrY0RiI.js +0 -98
  126. package/dist/Compare-5j7MYou6.js +0 -38
  127. package/dist/Copy-Go_1uhB5.js +0 -43
  128. package/dist/Custom-C00oYEFm.js +0 -51
  129. package/dist/DataImport.vue_vue_type_script_setup_true_lang-LYppKTfv.js +0 -172
  130. package/dist/Date-uHiOL-PD.js +0 -37
  131. package/dist/DateRange-B-HjKQpJ.js +0 -57
  132. package/dist/DateTime-D4Ck5hBj.js +0 -38
  133. package/dist/Daterange-DiZUFL_F.js +0 -57
  134. package/dist/Delete-C46eSfMC.js +0 -56
  135. package/dist/Dictionary-Dga6kbof.js +0 -55
  136. package/dist/Email-PVk9gqfn.js +0 -48
  137. package/dist/Index-CfDvQD94.js +0 -4
  138. package/dist/Index-Cq20wsZC.js +0 -173
  139. package/dist/Index-DGiRkT-p.js +0 -4
  140. package/dist/Index-DyK_nYp9.js +0 -4
  141. package/dist/Index-z5MnS_Wq.js +0 -4
  142. package/dist/Int-BG6MD24t.js +0 -38
  143. package/dist/Int-Dc7h_7Ga.js +0 -41
  144. package/dist/List-EDwPH8aL.js +0 -73
  145. package/dist/Maintaince-BqvMHxH0.js +0 -14
  146. package/dist/Month-8mDUGsOp.js +0 -37
  147. package/dist/Month-ClGd6IhI.js +0 -38
  148. package/dist/Paging-D_ticCtb.js +0 -94
  149. package/dist/QueryApi-S0e3c6l0.js +0 -13
  150. package/dist/RichText-BJVvArGS.js +0 -41
  151. package/dist/Text.vue_vue_type_style_index_0_lang-BP6k7KJG.js +0 -53
  152. package/dist/TextLink-C-NU-oVe.js +0 -59
  153. package/dist/Time-BgWPjGd1.js +0 -37
  154. package/dist/Timeline-CBWcOVdY.js +0 -53
  155. package/dist/Tree--dJKRJvG.js +0 -117
  156. package/dist/TreeNode-CxTzNQo9.js +0 -37
  157. package/dist/Upload-9z5VIixQ.js +0 -146
  158. package/dist/Upload-tlSQp2Qu.js +0 -67
  159. package/dist/UploadApi-B2dxOS0T.js +0 -13
  160. package/dist/Year-DNDyqe5X.js +0 -41
  161. package/dist/main-D3_7YhaK.js +0 -15700
@@ -1,59 +0,0 @@
1
- import { defineComponent as g, toRefs as E, ref as $, computed as s, resolveComponent as w, unref as o, openBlock as u, createElementBlock as d, renderSlot as i, createBlock as x, withCtx as y } from "vue";
2
- import { K as m, a as B } from "./main-D3_7YhaK.js";
3
- const C = { key: 0 }, R = ["href", "target"], S = /* @__PURE__ */ g({
4
- __name: "TextLink",
5
- props: {
6
- schema: {},
7
- table: {},
8
- field: {},
9
- set: {},
10
- row: {}
11
- },
12
- emits: ["submit", "change", "update:modelValue"],
13
- setup(h, { emit: L }) {
14
- let k = h, { table: O, field: t, set: T, row: c } = E(k), p = $(), a = s(() => {
15
- let e = t.value.link.href;
16
- return t.value.link.values.forEach((r) => {
17
- e = e.replace(`{${r}}`, c.value[r]);
18
- }), e;
19
- }), _ = s(() => m.httpOrHttps(a.value)), v = s(() => {
20
- let e = a.value;
21
- if (t.value.link.tables.length > 0) {
22
- let l = {};
23
- t.value.link.tables.forEach((n) => {
24
- l[n.name] = {}, n.search.forEach((f) => {
25
- l[n.name][f.name] = c.value[f.value];
26
- });
27
- });
28
- let b = B.encode(l);
29
- e += "&condition=" + b;
30
- }
31
- return m.getToRoute(e);
32
- });
33
- return (e, r) => {
34
- const l = w("router-link");
35
- return o(p) ? (u(), d("div", C, [
36
- i(e.$slots, "default")
37
- ])) : o(_) ? (u(), d("a", {
38
- key: 1,
39
- class: "text-link",
40
- href: o(a),
41
- target: o(t).link.target
42
- }, [
43
- i(e.$slots, "default")
44
- ], 8, R)) : (u(), x(l, {
45
- key: 2,
46
- class: "text-link",
47
- to: o(v)
48
- }, {
49
- default: y(() => [
50
- i(e.$slots, "default")
51
- ]),
52
- _: 3
53
- }, 8, ["to"]));
54
- };
55
- }
56
- });
57
- export {
58
- S as default
59
- };
@@ -1,37 +0,0 @@
1
- import { defineComponent as c, toRefs as f, computed as _, resolveComponent as V, openBlock as b, createBlock as h, unref as e, isRef as g } from "vue";
2
- import { n as k } from "./main-D3_7YhaK.js";
3
- const C = /* @__PURE__ */ c({
4
- __name: "Time",
5
- props: {
6
- schema: {},
7
- table: {},
8
- field: {},
9
- set: {},
10
- row: {},
11
- modelValue: {}
12
- },
13
- emits: ["submit", "change", "update:modelValue"],
14
- setup(d, { emit: r }) {
15
- let o = r, s = d, { table: u, field: m, set: x, modelValue: p } = f(s), l = _({
16
- get() {
17
- return p.value;
18
- },
19
- set(t) {
20
- o("update:modelValue", t), o("change", t);
21
- }
22
- });
23
- return (t, a) => {
24
- const i = V("el-time-select");
25
- return b(), h(i, {
26
- type: "time",
27
- placeholder: e(k)(e(u).name, e(m).name),
28
- disabled: e(m).control.readonly,
29
- modelValue: e(l),
30
- "onUpdate:modelValue": a[0] || (a[0] = (n) => g(l) ? l.value = n : l = n)
31
- }, null, 8, ["placeholder", "disabled", "modelValue"]);
32
- };
33
- }
34
- });
35
- export {
36
- C as default
37
- };
@@ -1,53 +0,0 @@
1
- import { defineComponent as h, toRefs as y, resolveComponent as o, openBlock as t, createBlock as n, unref as e, withCtx as m, createElementVNode as r, createElementBlock as c, Fragment as k, renderList as x, createCommentVNode as v } from "vue";
2
- import { w as g, Q as C } from "./main-D3_7YhaK.js";
3
- const B = { class: "timeline-layout" }, H = ["innerHTML"], L = {
4
- key: 0,
5
- class: "timeline-detail"
6
- }, V = /* @__PURE__ */ h({
7
- __name: "Timeline",
8
- props: {
9
- searchData: {},
10
- route: {},
11
- module: {},
12
- schema: {},
13
- table: {},
14
- layout: {},
15
- next: {},
16
- set: {}
17
- },
18
- setup(_) {
19
- let u = _, { module: T, schema: b, table: l, layout: i, next: w, set: s } = y(u);
20
- return (E, M) => {
21
- const p = o("el-timeline-item"), d = o("el-timeline"), f = o("el-empty");
22
- return t(), n(e(g), { class: "timeline" }, {
23
- default: m(() => [
24
- r("div", B, [
25
- e(s)[e(l).name].length > 0 ? (t(), n(d, {
26
- key: 0,
27
- reverse: !1
28
- }, {
29
- default: m(() => [
30
- (t(!0), c(k, null, x(e(s)[e(l).name], (a) => (t(), n(p, {
31
- timestamp: a[e(i).time]
32
- }, {
33
- default: m(() => [
34
- r("div", {
35
- innerHTML: e(C).getHtml(a[e(i).text])
36
- }, null, 8, H)
37
- ]),
38
- _: 2
39
- }, 1032, ["timestamp"]))), 256))
40
- ]),
41
- _: 1
42
- })) : (t(), n(f, { key: 1 }))
43
- ]),
44
- e(l).length > 0 ? (t(), c("div", L, " 时间线节点详情 ")) : v("", !0)
45
- ]),
46
- _: 1
47
- });
48
- };
49
- }
50
- });
51
- export {
52
- V as default
53
- };
@@ -1,117 +0,0 @@
1
- import { defineComponent as Q, toRefs as U, ref as m, onMounted as X, watch as Y, nextTick as K, resolveComponent as N, openBlock as k, createElementBlock as w, unref as d, Fragment as L, renderList as B, createBlock as M, withCtx as b, createVNode as Z, createElementVNode as ee, toDisplayString as T, createCommentVNode as F } from "vue";
2
- import { R as le, u as _, O, s as P } from "./main-D3_7YhaK.js";
3
- const te = { class: "option-text" }, ae = {
4
- key: 0,
5
- class: "option-suffix"
6
- }, de = /* @__PURE__ */ Q({
7
- __name: "Tree",
8
- props: {
9
- route: {},
10
- validateErrors: {},
11
- module: {},
12
- schema: {},
13
- table: {},
14
- layout: {},
15
- next: {},
16
- set: {}
17
- },
18
- setup(S, { expose: $ }) {
19
- let z = S, { module: D, schema: ne, table: s, layout: l, set: f } = U(z), E = m(), V = m([]), x = m(), y = m(0), g = m([]), R = m(!0), W = (e, n, o) => {
20
- let a = f.value[s.value.name].find((r) => r.PermissionId == e[l.value.id]);
21
- a && (a[l.value.expand] = !0);
22
- }, j = (e, n, o) => {
23
- let a = f.value[s.value.name].find((r) => r.PermissionId == e[l.value.id]);
24
- a && (a[l.value.expand] = !1);
25
- }, q = (e, n, o) => {
26
- let a = n.checkedKeys, r = e[l.value.id], i = _.contains(a, r), c = [], u = [], h = O.getChildren(e, "Children").map((t) => t[l.value.id]), p = f.value[s.value.name].map((t) => t[l.value.checked]), v = _.intersect(h, p);
27
- if (i) {
28
- c.push(e[l.value.id]);
29
- let t = _.except(h, v);
30
- t.length && (a.push(...t), c.push(...t));
31
- } else
32
- u.push(r), v.length == h.length && (u.push(...h), _.remove(a, h));
33
- c.length && A(c), u.length && G(u);
34
- }, A = (e) => {
35
- for (let n = 0; n < e.length; n++) {
36
- let o = P.getDefaultRow(s.value);
37
- o[l.value.checked] = e[n], f.value[s.value.name].push(o);
38
- }
39
- }, G = (e) => {
40
- let n = f.value[s.value.name];
41
- for (let o = 0; o < e.length; o++) {
42
- let a = n.find((r) => r[l.value.checked] == e[o]);
43
- _.remove(n, a);
44
- }
45
- }, H = (e) => {
46
- x.value = e.contentRect.width, y.value = Math.ceil(x.value / 300), I(s.value, l.value, f.value);
47
- }, I = (e, n, o) => {
48
- g.value = P.getLines(n.data, y.value, (a) => [a], () => 1), K(() => {
49
- let a = o[e.name].map((i) => i[n.checked]), r = 0;
50
- for (let i = 0; i < g.value.length; i++) {
51
- let c = g.value[i];
52
- for (let u = 0; u < c.length; u++) {
53
- let C = V.value[r], h = c[u].data, p = O.getFlat(h, "Children").map((t) => t[n.id]), v = _.intersect(p, a);
54
- if (!(v.length == 1 && p.length > 1)) for (let t = 0; t < v.length; t++) {
55
- let J = v[t];
56
- C.setChecked(J, !0, !1);
57
- }
58
- r++;
59
- }
60
- }
61
- });
62
- };
63
- return X(() => {
64
- x.value = le.getWidth(E.value), y.value = Math.ceil(x.value / 300), I(s.value, l.value, f.value);
65
- }), Y(() => s.value, (e, n) => {
66
- R.value = !1, K(() => {
67
- R.value = !0, I(e, l.value, f.value);
68
- });
69
- }), $({ resize: H }), (e, n) => {
70
- const o = N("el-tree"), a = N("el-col"), r = N("el-row");
71
- return k(), w("div", {
72
- ref_key: "layoutRef",
73
- ref: E,
74
- class: "ha-tree-layout"
75
- }, [
76
- d(R) ? (k(!0), w(L, { key: 0 }, B(d(g), (i, c) => (k(), M(r, null, {
77
- default: b(() => [
78
- (k(!0), w(L, null, B(i, ({ data: u, span: C, index: h }, p) => (k(), M(a, {
79
- span: C,
80
- key: `${c}.${p}`
81
- }, {
82
- default: b(() => [
83
- Z(o, {
84
- ref_for: !0,
85
- ref_key: "treeRefs",
86
- ref: V,
87
- "show-checkbox": "",
88
- "highlight-current": "",
89
- "default-expand-all": !1,
90
- "expand-on-click-node": !1,
91
- "node-key": d(l).id,
92
- data: u,
93
- props: { children: "Children", label: d(l).text },
94
- disabled: d(D).type == "Detail",
95
- onNodeExpand: d(W),
96
- onNodeCollapse: d(j),
97
- onCheck: (v, t) => d(q)(v, t, h)
98
- }, {
99
- default: b(({ node: v, data: t }) => [
100
- ee("div", te, T(t[d(l).text]), 1),
101
- d(l).suffix ? (k(), w("div", ae, T(t[d(l).suffix]), 1)) : F("", !0)
102
- ]),
103
- _: 2
104
- }, 1032, ["node-key", "data", "props", "disabled", "onNodeExpand", "onNodeCollapse", "onCheck"])
105
- ]),
106
- _: 2
107
- }, 1032, ["span"]))), 128))
108
- ]),
109
- _: 2
110
- }, 1024))), 256)) : F("", !0)
111
- ], 512);
112
- };
113
- }
114
- });
115
- export {
116
- de as default
117
- };
@@ -1,37 +0,0 @@
1
- import { defineComponent as x, toRefs as h, computed as C, openBlock as s, createElementBlock as i, unref as e, createElementVNode as N, toDisplayString as a, createTextVNode as b, createCommentVNode as d } from "vue";
2
- import { e as y, W as g } from "./main-D3_7YhaK.js";
3
- const k = ["title"], v = { class: "number" }, V = {
4
- key: 0,
5
- class: "option-suffix"
6
- }, B = {
7
- key: 1,
8
- class: "count"
9
- }, O = /* @__PURE__ */ x({
10
- __name: "TreeNode",
11
- props: {
12
- table: {},
13
- layout: {},
14
- row: {},
15
- node: {}
16
- },
17
- setup(u) {
18
- let c = u, { table: p, layout: n, row: t, node: f } = h(c), m = (r, o) => {
19
- let l = (r.parent.data.Children ? r.parent.data.Children.indexOf(o) : r.parent.data.indexOf(o)) + 1;
20
- return g.padLeft(l, 2, "0");
21
- }, _ = C(() => p.value.fields.find((l) => l.name == n.value.text).control.i18N);
22
- return (r, o) => {
23
- var l;
24
- return s(), i("div", {
25
- title: e(t)[e(n).title]
26
- }, [
27
- N("span", v, a(e(m)(e(f), e(t))), 1),
28
- b(" " + a((l = e(_)) != null && l.value ? e(y)(e(t)[e(n).text]) : e(t)[e(n).text]) + " ", 1),
29
- e(n).suffix ? (s(), i("span", V, a(e(t)[e(n).suffix]), 1)) : d("", !0),
30
- e(t).Children && e(t).Children.length > 0 ? (s(), i("span", B, "(" + a(e(t).Children.length) + ")", 1)) : d("", !0)
31
- ], 8, k);
32
- };
33
- }
34
- });
35
- export {
36
- O as default
37
- };
@@ -1,146 +0,0 @@
1
- import { defineComponent as X, toRefs as Y, ref as p, onMounted as Z, computed as x, watch as ee, resolveComponent as k, openBlock as I, createElementBlock as B, normalizeClass as le, unref as t, createVNode as C, withCtx as R, createBlock as ae, createTextVNode as te, toDisplayString as oe, isRef as re, createElementVNode as ue } from "vue";
2
- import { e as ne, D as U, l as ie, T as F, v as se, u as s, k as O, q as P, I as S, x as $, K as de } from "./main-D3_7YhaK.js";
3
- import "./QueryApi-S0e3c6l0.js";
4
- import { U as pe } from "./UploadApi-B2dxOS0T.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(q, { emit: z }) {
20
- let h = z, A = q, { table: d, field: u, row: g, set: ve, modelValue: D } = Y(A), m = p(!1), T = p({}), c = p([]), j = p(), E = p(), f = !0, _ = p({ action: "", data: null }), L = (e) => {
21
- let l = pe.getUploadToken();
22
- e.forEach((o) => {
23
- let a = `${P.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 = U.api.url + l;
30
- let o = new ie();
31
- o.path = l, o.method = "POST", await F.onRequest(o);
32
- let a = o.getHeader("Authorization");
33
- return T.value.Authorization = a, u.value.control.fileType == "Image" ? e.type.indexOf("image") == 0 ? Promise.resolve() : (se.error("请上传正确的图片文件"), Promise.reject()) : Promise.resolve();
34
- }, K = (e, l) => {
35
- f = !1;
36
- let a = [e.name.replace(U.api.url, "")];
37
- return F.post("/upload/delete", { files: a }).then(({ data: r }) => {
38
- let n = l.indexOf(e), b = s.removeIndex(i.value, n, ",");
39
- if (h("update:modelValue", b), u.value.control.name) {
40
- let v = d.value.fields.find((y) => y.name == u.value.control.name), V = O.getValue(r.value, n, d.value, v), w = s.removeIndex(V, n, ",");
41
- O.setValue(w, r.value, d.value, n, v);
42
- }
43
- return Promise.resolve();
44
- }).catch(() => Promise.reject());
45
- }, M = (e) => {
46
- m.value = !0, j.value = e.url;
47
- }, G = (e, l, o) => {
48
- }, J = (e, l) => {
49
- F.handleResponseBody(e).then((o) => {
50
- let { name: a, url: r } = o.data[0];
51
- P.upload.method == "box" || S.isImage(r) || (l.url = $.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 = g.value[v.value], w = s.split(V, ",", a);
55
- g.value[v.value] = w.join(",");
56
- }
57
- }).catch(() => {
58
- c.value = [];
59
- }).finally(() => {
60
- f = !0;
61
- });
62
- }, N = () => {
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 = g.value[a.name];
68
- l = s.split(r, ",");
69
- }
70
- let o = s.combine(e, l);
71
- if (P.upload.method == "box")
72
- L(o);
73
- else {
74
- let a = de.httpOrHttps(i.value) ? i.value : U.api.url + i.value, r = { name: a, url: null };
75
- S.isImage(a) ? r.url = a : r.url = $.getFileIcon(a), c.value.push(r);
76
- }
77
- };
78
- Z(() => {
79
- N();
80
- });
81
- let i = x({
82
- get() {
83
- return D.value;
84
- },
85
- set(e) {
86
- h("update:modelValue", e), h("change", e);
87
- }
88
- }), Q = x(() => u.value.control.preview ? "picture-card" : null), W = x(() => W);
89
- return ee(() => i.value, (e, l) => {
90
- f && N();
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(Q),
100
- action: t(_).action,
101
- headers: t(T),
102
- data: t(_).data,
103
- "file-list": t(c),
104
- "before-upload": t(H),
105
- "before-remove": t(K),
106
- "on-preview": t(M),
107
- "on-success": t(J),
108
- "on-progress": t(G),
109
- disabled: t(u).readonly
110
- }, {
111
- default: R(() => [
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: R(() => [
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: R(() => [
132
- ue("img", {
133
- width: "100%",
134
- src: t(j),
135
- alt: ""
136
- }, null, 8, ce)
137
- ]),
138
- _: 1
139
- }, 8, ["modelValue"])
140
- ], 2);
141
- };
142
- }
143
- });
144
- export {
145
- be as default
146
- };
@@ -1,67 +0,0 @@
1
- import { defineComponent as V, toRefs as b, ref as r, onMounted as k, computed as w, resolveComponent as x, openBlock as d, createElementBlock as n, Fragment as C, renderList as I, unref as s, createVNode as E, isRef as F, withCtx as $, createElementVNode as y } from "vue";
2
- import { q as c, K as B, D, I as N, x as R } from "./main-D3_7YhaK.js";
3
- import "./QueryApi-S0e3c6l0.js";
4
- import { U as j } from "./UploadApi-B2dxOS0T.js";
5
- const q = { class: "text-upload" }, A = ["src", "onClick", "alt"], H = ["src"], P = /* @__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: K, field: L, set: M, row: O, 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
- j.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 = B.httpOrHttps(o.value) ? o.value : D.api.url + o.value;
29
- N.isImage(e) ? i.value = e : i.value = R.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", q, [
39
- (d(!0), n(C, null, I(s(p), (l, U) => (d(), n("img", {
40
- class: "detail-image",
41
- src: l.url,
42
- onClick: (S) => s(_)(l),
43
- alt: l.name,
44
- key: U
45
- }, null, 8, A))), 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
- y("img", {
55
- width: "100%",
56
- src: s(m)
57
- }, null, 8, H)
58
- ]),
59
- _: 1
60
- }, 8, ["modelValue"])
61
- ]);
62
- };
63
- }
64
- });
65
- export {
66
- P as default
67
- };
@@ -1,13 +0,0 @@
1
- import { T as o, t } from "./main-D3_7YhaK.js";
2
- let e = null;
3
- class s {
4
- /**
5
- * 获取上传令牌,过期自动获取
6
- */
7
- static async getUploadToken() {
8
- return e == null || t.getTime() >= t.getTime(e.expireTime) ? o.get("/upload/token").then(({ data: r }) => (e = r, Promise.resolve(e.token))).catch(() => Promise.reject()) : Promise.resolve(e.token);
9
- }
10
- }
11
- export {
12
- s as U
13
- };
@@ -1,41 +0,0 @@
1
- import { defineComponent as f, toRefs as _, computed as h, resolveComponent as V, openBlock as b, createBlock as g, unref as e, isRef as Y } from "vue";
2
- import { n as k } from "./main-D3_7YhaK.js";
3
- const x = /* @__PURE__ */ f({
4
- __name: "Year",
5
- props: {
6
- schema: {},
7
- table: {},
8
- field: {},
9
- set: {},
10
- row: {},
11
- modelValue: {}
12
- },
13
- emits: ["submit", "change", "update:modelValue"],
14
- setup(r, { emit: d }) {
15
- let o = d, u = r, { table: p, field: a, row: C, set: y, modelValue: s } = _(u), c = () => {
16
- o("submit");
17
- }, l = h({
18
- get() {
19
- return s.value;
20
- },
21
- set(t) {
22
- o("update:modelValue", t), o("change", t);
23
- }
24
- });
25
- return (t, n) => {
26
- const i = V("el-date-picker");
27
- return b(), g(i, {
28
- type: "year",
29
- placeholder: e(k)(e(p).name, e(a).name),
30
- "value-format": "YYYY",
31
- disabled: e(a).control.readonly,
32
- onChange: e(c),
33
- modelValue: e(l),
34
- "onUpdate:modelValue": n[0] || (n[0] = (m) => Y(l) ? l.value = m : l = m)
35
- }, null, 8, ["placeholder", "disabled", "onChange", "modelValue"]);
36
- };
37
- }
38
- });
39
- export {
40
- x as default
41
- };