halo-pc 1.0.27 → 1.0.28

Sign up to get free protection for your applications and to get access to all the features.
Files changed (166) hide show
  1. package/dist/{Article-CTqryR4L.js → Article-CTzPZjf8.js} +75 -70
  2. package/dist/{ArticleFooter-BumGH5nC.js → ArticleFooter-jyfzfZHH.js} +23 -17
  3. package/dist/{Autocomplete-BNx0bErM.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-Dt6H75E9.js → CSharp-qh_kEfGr.js} +1 -1
  7. package/dist/{Calender-DhKZyJri.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-C-iEGB0k.js → Checkbox-D9NUw4jZ.js} +1 -1
  12. package/dist/Checkbox-REcdbTXR.js +76 -0
  13. package/dist/Code-CBVRms_j.js +4 -0
  14. package/dist/Code-DZ-bK9UT.js +60 -0
  15. package/dist/Code-DfnLveft.js +42 -0
  16. package/dist/{Code-JtSSnUWC.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-DZVrBYEh.js → Compare-dimRoHFX.js} +25 -19
  22. package/dist/Copy-CKLxfWd4.js +49 -0
  23. package/dist/Custom-Bwyy4_tA.js +57 -0
  24. package/dist/{DataExport-DSz5371s.js → DataExport-Bp50K0_6.js} +1 -1
  25. package/dist/{DataExport.vue_vue_type_script_setup_true_lang-DL9q81Ti.js → DataExport.vue_vue_type_script_setup_true_lang-8nDL-PI_.js} +41 -36
  26. package/dist/{DataImport-CX7G70a7.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-ytWe2gz8.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-p6YgmtGd.js → DateTime-Cvnnthwx.js} +1 -1
  33. package/dist/{DateTimeRange-DGobnXqs.js → DateTimeRange-Gb33uiRV.js} +17 -11
  34. package/dist/Daterange-CfAdeV7J.js +63 -0
  35. package/dist/{Decimal-BvyzJq1c.js → Decimal-B-fyPiuP.js} +1 -1
  36. package/dist/Delete-DhbWFnzt.js +62 -0
  37. package/dist/{Detail-DZJ0aUFr.js → Detail-DV-JRRLT.js} +22 -17
  38. package/dist/Dictionary-b_mbt-WU.js +59 -0
  39. package/dist/Email-C2Yl7bMF.js +54 -0
  40. package/dist/{File-BEBElTSS.js → File-D57qYYt1.js} +32 -27
  41. package/dist/{Image-DDK05SW7.js → Image-BKNUY356.js} +1 -1
  42. package/dist/{Index-CuEyzMd0.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-DPwdcUO4.js → Index-CSzgmzRG.js} +1 -1
  47. package/dist/Index-ChWD2gJt.js +4 -0
  48. package/dist/{Index-BiF8qEWf.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-Bp091zxs.js → Index.vue_vue_type_script_setup_true_lang-BkjFEuPH.js} +20 -15
  51. package/dist/{Index.vue_vue_type_script_setup_true_lang-hjy21YuL.js → Index.vue_vue_type_script_setup_true_lang-CJV5JBz9.js} +17 -12
  52. package/dist/{Install-CxuoWpHC.js → Install-o0VJz9Rl.js} +27 -22
  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-x1hASyA-.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-Bb0tgF-k.js → Month-DsKmd425.js} +1 -1
  61. package/dist/{Normal-CYmy5sN7.js → Normal-B_SPQW9Z.js} +70 -66
  62. package/dist/Paging-CzCgExDM.js +99 -0
  63. package/dist/{PagingHeader-DWbFl1do.js → PagingHeader-Bfnnsv6m.js} +30 -24
  64. package/dist/{PagingRow-CR2N1vgm.js → PagingRow-BXaakA5y.js} +26 -20
  65. package/dist/QueryApi-Cah37Kwx.js +20 -0
  66. package/dist/{Racebar-BsgDK6Zf.js → Racebar-6FTe1C4G.js} +42 -37
  67. package/dist/{Radio-B3Af-uZE.js → Radio-rym8cXJN.js} +1 -1
  68. package/dist/{Register-Cwr3iIZm.js → Register-v__-wpY2.js} +44 -40
  69. package/dist/RichText-BDP5KDin.js +47 -0
  70. package/dist/{SearchFooter-DiILcc_U.js → SearchFooter-0mHMD0Xf.js} +1 -1
  71. package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-BsIg4tbY.js → SearchFooter.vue_vue_type_style_index_0_lang-CXTYGXIa.js} +1 -1
  72. package/dist/{SearchForm-BOw_kHs2.js → SearchForm-jSIiiv2r.js} +1 -1
  73. package/dist/{SearchForm.vue_vue_type_style_index_0_lang-GMYFgf1H.js → SearchForm.vue_vue_type_style_index_0_lang-CFxxTJiB.js} +40 -36
  74. package/dist/Select-Cpj86Kaw.js +86 -0
  75. package/dist/Select-DKjXN6Ag.js +117 -0
  76. package/dist/{Select-BdYG1KQE.js → Select-R0EsEK0_.js} +1 -1
  77. package/dist/{Single-DqCIZBIB.js → Single-fIhSt1dN.js} +103 -99
  78. package/dist/{Statistic-B9ZcUUk1.js → Statistic-DM3Fr6sO.js} +37 -33
  79. package/dist/{Stock-BnBNtuo7.js → Stock-BemUvyqK.js} +1 -1
  80. package/dist/{Stock-BiSr7zAF.js → Stock-DUrxld5G.js} +1 -1
  81. package/dist/{Stock.vue_vue_type_style_index_0_lang-CZPeF39q.js → Stock.vue_vue_type_style_index_0_lang-Cv9Jvd6d.js} +31 -26
  82. package/dist/{Switch-BE4dQcja.js → Switch-QdLS7c3q.js} +1 -1
  83. package/dist/{Table-CaH_zu8W.js → Table-BcVHufy3.js} +77 -74
  84. package/dist/{Table-e0uLPRLG.js → Table-C4dGV7IQ.js} +78 -73
  85. package/dist/{Text-BDAob4mp.js → Text-BJNnrW9U.js} +21 -15
  86. package/dist/{Text-BAw88r5O.js → Text-BNAKwCCe.js} +19 -13
  87. package/dist/Text-D3DqixJp.js +4 -0
  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-CU5PjIoa.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-D-v632h1.js → Tree-4v2brZjr.js} +105 -101
  95. package/dist/TreeNode-CvS8mLCJ.js +42 -0
  96. package/dist/{Update-DRAFce7_.js → Update-Cp50LcVx.js} +20 -15
  97. package/dist/{UpdateChild-DMC0FG4Z.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-CpcMBvQ7.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 +140 -140
  113. package/dist/style.css +1 -1
  114. package/package.json +1 -1
  115. package/dist/Autocomplete-C9RS9-qw.js +0 -48
  116. package/dist/Autocomplete-DIucpEpj.js +0 -49
  117. package/dist/Callback-D6G_933H.js +0 -20
  118. package/dist/Cascader-C6t8Q18c.js +0 -41
  119. package/dist/Cascader-F_XWwXKY.js +0 -81
  120. package/dist/Checkbox-ipHs0O-8.js +0 -70
  121. package/dist/Code-DKtqow6y.js +0 -36
  122. package/dist/Code-LeguA9RL.js +0 -54
  123. package/dist/Code-Q_6THgGl.js +0 -4
  124. package/dist/Code.vue_vue_type_style_index_0_lang-DmeXbg91.js +0 -59
  125. package/dist/Column-BeQwafyN.js +0 -70
  126. package/dist/Comment-DIcCHP9F.js +0 -98
  127. package/dist/Compare-Dzqm7kPE.js +0 -38
  128. package/dist/Copy-iLieXx22.js +0 -43
  129. package/dist/Custom-BGtEDHlD.js +0 -51
  130. package/dist/DataImport.vue_vue_type_script_setup_true_lang-BWS65Vp1.js +0 -172
  131. package/dist/Date-CNOCOcNz.js +0 -37
  132. package/dist/DateRange-CaIiObxN.js +0 -57
  133. package/dist/DateTime-CH6J1GoP.js +0 -38
  134. package/dist/Daterange-BUSKAGlK.js +0 -57
  135. package/dist/Delete-BeFC0gjD.js +0 -57
  136. package/dist/Dictionary-CsBiv-CI.js +0 -55
  137. package/dist/Email-Dwa6x3jW.js +0 -48
  138. package/dist/Index-Bpe7pY2Z.js +0 -4
  139. package/dist/Index-CUYQxzNd.js +0 -174
  140. package/dist/Index-DMnL8F7Y.js +0 -4
  141. package/dist/Index-DNG25ox2.js +0 -4
  142. package/dist/Index-DqUNI6MV.js +0 -4
  143. package/dist/Int-BFv18KXi.js +0 -38
  144. package/dist/Int-C0ijmdYS.js +0 -41
  145. package/dist/List-CfQzWq_5.js +0 -74
  146. package/dist/Maintaince-BzDEwQcU.js +0 -14
  147. package/dist/Month-Bp_Pfi_b.js +0 -37
  148. package/dist/Month-CKkjwzza.js +0 -38
  149. package/dist/Paging-DpoBp7x_.js +0 -95
  150. package/dist/QueryApi-VwISnk96.js +0 -13
  151. package/dist/RichText-CNahMrfb.js +0 -41
  152. package/dist/Select-BeNZqAP1.js +0 -112
  153. package/dist/Select-CqOE6uI8.js +0 -80
  154. package/dist/Text-5803XWI6.js +0 -4
  155. package/dist/Text.vue_vue_type_style_index_0_lang-D1JSHUmS.js +0 -53
  156. package/dist/TextLink-TYXcDAlo.js +0 -59
  157. package/dist/Time-Dd-Trib4.js +0 -37
  158. package/dist/Timeline-D6LCIkQp.js +0 -53
  159. package/dist/Tree-BKmFZrK3.js +0 -118
  160. package/dist/TreeNode-L_A5ZKy0.js +0 -37
  161. package/dist/Upload-DJRh4a7g.js +0 -68
  162. package/dist/Upload-Ozg_nOpI.js +0 -147
  163. package/dist/UploadApi-DVx69g-F.js +0 -13
  164. package/dist/Year-D7XGe2So.js +0 -41
  165. package/dist/assets/halo-fe-B-NiIGas.js +0 -12088
  166. package/dist/main-DB_sVyZe.js +0 -3620
@@ -1,147 +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, ai as ie, T as F, v as se, u as s, d as P, b as O, K as de } from "./assets/halo-fe-B-NiIGas.js";
3
- import { e as S, u as $ } from "./main-DB_sVyZe.js";
4
- import "./QueryApi-VwISnk96.js";
5
- import { U as pe } from "./UploadApi-DVx69g-F.js";
6
- const me = {
7
- key: 0,
8
- class: "fa fa-upload"
9
- }, ce = ["src"], Ve = /* @__PURE__ */ X({
10
- __name: "Upload",
11
- props: {
12
- schema: {},
13
- table: {},
14
- field: {},
15
- set: {},
16
- row: {},
17
- modelValue: {}
18
- },
19
- emits: ["submit", "change", "update:modelValue"],
20
- setup(z, { emit: A }) {
21
- let h = A, D = z, { table: d, field: u, row: g, set: ve, modelValue: E } = Y(D), m = p(!1), T = p({}), c = p([]), j = p(), L = p(), f = !0, b = p({ action: "", data: null }), q = (e) => {
22
- let l = pe.getUploadToken();
23
- e.forEach((o) => {
24
- let a = `${P.upload.address}/api/objects/download?slug=${o[0]}&token=${l}`;
25
- c.value.push({ name: o[1], url: a });
26
- });
27
- }, H = async (e) => {
28
- f = !1;
29
- let l = `/upload?table=${d.value.name}&field=${u.value.name}`;
30
- b.value.action = U.api.url + l;
31
- let o = new ie();
32
- o.path = l, o.method = "POST", await F.onRequest(o);
33
- let a = o.getHeader("Authorization");
34
- return T.value.Authorization = a, u.value.control.fileType == "Image" ? e.type.indexOf("image") == 0 ? Promise.resolve() : (se.error("请上传正确的图片文件"), Promise.reject()) : Promise.resolve();
35
- }, K = (e, l) => {
36
- f = !1;
37
- let a = [e.name.replace(U.api.url, "")];
38
- return F.post("/upload/delete", { files: a }).then(({ data: r }) => {
39
- let n = l.indexOf(e), _ = s.removeIndex(i.value, n, ",");
40
- if (h("update:modelValue", _), u.value.control.name) {
41
- let v = d.value.fields.find((y) => y.name == u.value.control.name), V = S.getValue(r.value, n, d.value, v), w = s.removeIndex(V, n, ",");
42
- S.setValue(w, r.value, d.value, n, v);
43
- }
44
- return Promise.resolve();
45
- }).catch(() => Promise.reject());
46
- }, M = (e) => {
47
- m.value = !0, j.value = e.url;
48
- }, G = (e, l, o) => {
49
- }, J = (e, l) => {
50
- F.handleResponseBody(e).then((o) => {
51
- let { name: a, url: r } = o.data[0];
52
- P.upload.method == "box" || O.isImage(r) || (l.url = $.getFileIcon(r));
53
- let _ = s.split(i.value, ",", r).join(",");
54
- if (i.value = _, u.value.control.name) {
55
- let v = d.value.fields.find((y) => y.name == u.value.control.name), V = g.value[v.value], w = s.split(V, ",", a);
56
- g.value[v.value] = w.join(",");
57
- }
58
- }).catch(() => {
59
- c.value = [];
60
- }).finally(() => {
61
- f = !0;
62
- });
63
- }, N = () => {
64
- if (c.value = [], !i.value)
65
- return;
66
- let e = s.split(i.value, ","), l = [];
67
- if (u.value.control.name) {
68
- let a = d.value.fields.find((n) => n.name == u.value.control.name), r = g.value[a.name];
69
- l = s.split(r, ",");
70
- }
71
- let o = s.combine(e, l);
72
- if (P.upload.method == "box")
73
- q(o);
74
- else {
75
- let a = de.httpOrHttps(i.value) ? i.value : U.api.url + i.value, r = { name: a, url: null };
76
- O.isImage(a) ? r.url = a : r.url = $.getFileIcon(a), c.value.push(r);
77
- }
78
- };
79
- Z(() => {
80
- N();
81
- });
82
- let i = x({
83
- get() {
84
- return E.value;
85
- },
86
- set(e) {
87
- h("update:modelValue", e), h("change", e);
88
- }
89
- }), Q = x(() => u.value.control.preview ? "picture-card" : null), W = x(() => W);
90
- return ee(() => i.value, (e, l) => {
91
- f && N();
92
- }), (e, l) => {
93
- const o = k("el-button"), a = k("el-upload"), r = k("el-dialog");
94
- return I(), B("div", {
95
- class: le(t(u).control.preview ? "control-file-preview" : "control-file")
96
- }, [
97
- C(a, {
98
- ref_key: "uploadRef",
99
- ref: L,
100
- "list-type": t(Q),
101
- action: t(b).action,
102
- headers: t(T),
103
- data: t(b).data,
104
- "file-list": t(c),
105
- "before-upload": t(H),
106
- "before-remove": t(K),
107
- "on-preview": t(M),
108
- "on-success": t(J),
109
- "on-progress": t(G),
110
- disabled: t(u).readonly
111
- }, {
112
- default: R(() => [
113
- t(u).control.preview ? (I(), B("i", me)) : (I(), ae(o, {
114
- key: 1,
115
- icon: "el-icon-upload",
116
- type: "primary"
117
- }, {
118
- default: R(() => [
119
- te(oe(t(ne)("common.click_upload")), 1)
120
- ]),
121
- _: 1
122
- }))
123
- ]),
124
- _: 1
125
- }, 8, ["list-type", "action", "headers", "data", "file-list", "before-upload", "before-remove", "on-preview", "on-success", "on-progress", "disabled"]),
126
- C(r, {
127
- draggable: "",
128
- "append-to-body": "",
129
- modelValue: t(m),
130
- "onUpdate:modelValue": l[0] || (l[0] = (n) => re(m) ? m.value = n : m = n)
131
- }, {
132
- default: R(() => [
133
- ue("img", {
134
- width: "100%",
135
- src: t(j),
136
- alt: ""
137
- }, null, 8, ce)
138
- ]),
139
- _: 1
140
- }, 8, ["modelValue"])
141
- ], 2);
142
- };
143
- }
144
- });
145
- export {
146
- Ve as default
147
- };
@@ -1,13 +0,0 @@
1
- import { T as o, t } from "./assets/halo-fe-B-NiIGas.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 { aN as k } from "./assets/halo-fe-B-NiIGas.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
- };