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.
- package/dist/{Article-CTqryR4L.js → Article-CTzPZjf8.js} +75 -70
- package/dist/{ArticleFooter-BumGH5nC.js → ArticleFooter-jyfzfZHH.js} +23 -17
- package/dist/{Autocomplete-BNx0bErM.js → Autocomplete-D8ytFwqa.js} +1 -1
- package/dist/Autocomplete-DoUE3T0L.js +53 -0
- package/dist/Autocomplete-FGRT-2ru.js +54 -0
- package/dist/{CSharp-Dt6H75E9.js → CSharp-qh_kEfGr.js} +1 -1
- package/dist/{Calender-DhKZyJri.js → Calender-DOuq9uAK.js} +1 -1
- package/dist/Callback-DuaBaO1q.js +26 -0
- package/dist/Cascader-DgKBpjUK.js +47 -0
- package/dist/Cascader-s8VT55_K.js +87 -0
- package/dist/{Checkbox-C-iEGB0k.js → Checkbox-D9NUw4jZ.js} +1 -1
- package/dist/Checkbox-REcdbTXR.js +76 -0
- package/dist/Code-CBVRms_j.js +4 -0
- package/dist/Code-DZ-bK9UT.js +60 -0
- package/dist/Code-DfnLveft.js +42 -0
- package/dist/{Code-JtSSnUWC.js → Code-loaJtKGd.js} +1 -1
- package/dist/Code.vue_vue_type_style_index_0_lang-BVLhtr1Y.js +65 -0
- package/dist/Column-B96LbQFW.js +75 -0
- package/dist/Comment-bPWbEkgq.js +104 -0
- package/dist/Compare-D4O0qmYv.js +44 -0
- package/dist/{Compare-DZVrBYEh.js → Compare-dimRoHFX.js} +25 -19
- package/dist/Copy-CKLxfWd4.js +49 -0
- package/dist/Custom-Bwyy4_tA.js +57 -0
- package/dist/{DataExport-DSz5371s.js → DataExport-Bp50K0_6.js} +1 -1
- 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
- package/dist/{DataImport-CX7G70a7.js → DataImport-BWI4eCxA.js} +1 -1
- package/dist/DataImport.vue_vue_type_script_setup_true_lang-DCS1SfNf.js +176 -0
- package/dist/Date-Cf64NT4R.js +43 -0
- package/dist/{Date-ytWe2gz8.js → Date-FBemqmex.js} +1 -1
- package/dist/DateRange-D5kvmDIo.js +63 -0
- package/dist/DateTime-CTGuyJ4w.js +44 -0
- package/dist/{DateTime-p6YgmtGd.js → DateTime-Cvnnthwx.js} +1 -1
- package/dist/{DateTimeRange-DGobnXqs.js → DateTimeRange-Gb33uiRV.js} +17 -11
- package/dist/Daterange-CfAdeV7J.js +63 -0
- package/dist/{Decimal-BvyzJq1c.js → Decimal-B-fyPiuP.js} +1 -1
- package/dist/Delete-DhbWFnzt.js +62 -0
- package/dist/{Detail-DZJ0aUFr.js → Detail-DV-JRRLT.js} +22 -17
- package/dist/Dictionary-b_mbt-WU.js +59 -0
- package/dist/Email-C2Yl7bMF.js +54 -0
- package/dist/{File-BEBElTSS.js → File-D57qYYt1.js} +32 -27
- package/dist/{Image-DDK05SW7.js → Image-BKNUY356.js} +1 -1
- package/dist/{Index-CuEyzMd0.js → Index-BPfkpoVf.js} +25 -20
- package/dist/Index-BUCyMvJX.js +4 -0
- package/dist/Index-BtxNIZsx.js +4 -0
- package/dist/Index-C5WYmq9P.js +4 -0
- package/dist/{Index-DPwdcUO4.js → Index-CSzgmzRG.js} +1 -1
- package/dist/Index-ChWD2gJt.js +4 -0
- package/dist/{Index-BiF8qEWf.js → Index-P3uHTgX-.js} +1 -1
- package/dist/Index-PB-VnCO7.js +178 -0
- package/dist/{Index.vue_vue_type_script_setup_true_lang-Bp091zxs.js → Index.vue_vue_type_script_setup_true_lang-BkjFEuPH.js} +20 -15
- package/dist/{Index.vue_vue_type_script_setup_true_lang-hjy21YuL.js → Index.vue_vue_type_script_setup_true_lang-CJV5JBz9.js} +17 -12
- package/dist/{Install-CxuoWpHC.js → Install-o0VJz9Rl.js} +27 -22
- package/dist/Int-BNwPsWfI.js +44 -0
- package/dist/Int-DN3vf18e.js +46 -0
- package/dist/List-DRAtVlgE.js +79 -0
- package/dist/Maintaince-CdVk7qiu.js +20 -0
- package/dist/{Markdown-x1hASyA-.js → Markdown-CFwOeXFg.js} +1 -1
- package/dist/Month-CrvLoEQy.js +43 -0
- package/dist/Month-CyB2owvQ.js +44 -0
- package/dist/{Month-Bb0tgF-k.js → Month-DsKmd425.js} +1 -1
- package/dist/{Normal-CYmy5sN7.js → Normal-B_SPQW9Z.js} +70 -66
- package/dist/Paging-CzCgExDM.js +99 -0
- package/dist/{PagingHeader-DWbFl1do.js → PagingHeader-Bfnnsv6m.js} +30 -24
- package/dist/{PagingRow-CR2N1vgm.js → PagingRow-BXaakA5y.js} +26 -20
- package/dist/QueryApi-Cah37Kwx.js +20 -0
- package/dist/{Racebar-BsgDK6Zf.js → Racebar-6FTe1C4G.js} +42 -37
- package/dist/{Radio-B3Af-uZE.js → Radio-rym8cXJN.js} +1 -1
- package/dist/{Register-Cwr3iIZm.js → Register-v__-wpY2.js} +44 -40
- package/dist/RichText-BDP5KDin.js +47 -0
- package/dist/{SearchFooter-DiILcc_U.js → SearchFooter-0mHMD0Xf.js} +1 -1
- package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-BsIg4tbY.js → SearchFooter.vue_vue_type_style_index_0_lang-CXTYGXIa.js} +1 -1
- package/dist/{SearchForm-BOw_kHs2.js → SearchForm-jSIiiv2r.js} +1 -1
- package/dist/{SearchForm.vue_vue_type_style_index_0_lang-GMYFgf1H.js → SearchForm.vue_vue_type_style_index_0_lang-CFxxTJiB.js} +40 -36
- package/dist/Select-Cpj86Kaw.js +86 -0
- package/dist/Select-DKjXN6Ag.js +117 -0
- package/dist/{Select-BdYG1KQE.js → Select-R0EsEK0_.js} +1 -1
- package/dist/{Single-DqCIZBIB.js → Single-fIhSt1dN.js} +103 -99
- package/dist/{Statistic-B9ZcUUk1.js → Statistic-DM3Fr6sO.js} +37 -33
- package/dist/{Stock-BnBNtuo7.js → Stock-BemUvyqK.js} +1 -1
- package/dist/{Stock-BiSr7zAF.js → Stock-DUrxld5G.js} +1 -1
- package/dist/{Stock.vue_vue_type_style_index_0_lang-CZPeF39q.js → Stock.vue_vue_type_style_index_0_lang-Cv9Jvd6d.js} +31 -26
- package/dist/{Switch-BE4dQcja.js → Switch-QdLS7c3q.js} +1 -1
- package/dist/{Table-CaH_zu8W.js → Table-BcVHufy3.js} +77 -74
- package/dist/{Table-e0uLPRLG.js → Table-C4dGV7IQ.js} +78 -73
- package/dist/{Text-BDAob4mp.js → Text-BJNnrW9U.js} +21 -15
- package/dist/{Text-BAw88r5O.js → Text-BNAKwCCe.js} +19 -13
- package/dist/Text-D3DqixJp.js +4 -0
- package/dist/Text.vue_vue_type_style_index_0_lang-B253xD5Z.js +59 -0
- package/dist/TextLink-D-9pICMh.js +65 -0
- package/dist/{Textarea-CU5PjIoa.js → Textarea-Cr5zt_LK.js} +1 -1
- package/dist/Time-DQJPtNWo.js +43 -0
- package/dist/Timeline-Dy37Cou2.js +59 -0
- package/dist/Tree-3zBuSLBv.js +122 -0
- package/dist/{Tree-D-v632h1.js → Tree-4v2brZjr.js} +105 -101
- package/dist/TreeNode-CvS8mLCJ.js +42 -0
- package/dist/{Update-DRAFce7_.js → Update-Cp50LcVx.js} +20 -15
- package/dist/{UpdateChild-DMC0FG4Z.js → UpdateChild-CFi_DjLv.js} +23 -17
- package/dist/Upload-Bqp-5cFa.js +72 -0
- package/dist/Upload-D-hvecbh.js +150 -0
- package/dist/UploadApi-CC5hZcM_.js +20 -0
- package/dist/Year-CYSncKVk.js +47 -0
- package/dist/{Year-CpcMBvQ7.js → Year-q0tWWwkv.js} +1 -1
- package/dist/assets/clone-BZn0cTAu.js +134 -0
- package/dist/assets/file-saver-CwlpTZSc.js +74 -0
- package/dist/assets/liquidjs-C-LVcoaY.js +2893 -0
- package/dist/assets/moment-h96o7c8I.js +2578 -0
- package/dist/assets/sprintf-js-BPTdvBYM.js +148 -0
- package/dist/assets/underscore-B0BCaBxV.js +1070 -0
- package/dist/assets/underscore.string-DVXD2SZo.js +425 -0
- package/dist/assets/util-deprecate-Dzun97re.js +28 -0
- package/dist/main-D-QTCahZ.js +9107 -0
- package/dist/main.js +140 -140
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/Autocomplete-C9RS9-qw.js +0 -48
- package/dist/Autocomplete-DIucpEpj.js +0 -49
- package/dist/Callback-D6G_933H.js +0 -20
- package/dist/Cascader-C6t8Q18c.js +0 -41
- package/dist/Cascader-F_XWwXKY.js +0 -81
- package/dist/Checkbox-ipHs0O-8.js +0 -70
- package/dist/Code-DKtqow6y.js +0 -36
- package/dist/Code-LeguA9RL.js +0 -54
- package/dist/Code-Q_6THgGl.js +0 -4
- package/dist/Code.vue_vue_type_style_index_0_lang-DmeXbg91.js +0 -59
- package/dist/Column-BeQwafyN.js +0 -70
- package/dist/Comment-DIcCHP9F.js +0 -98
- package/dist/Compare-Dzqm7kPE.js +0 -38
- package/dist/Copy-iLieXx22.js +0 -43
- package/dist/Custom-BGtEDHlD.js +0 -51
- package/dist/DataImport.vue_vue_type_script_setup_true_lang-BWS65Vp1.js +0 -172
- package/dist/Date-CNOCOcNz.js +0 -37
- package/dist/DateRange-CaIiObxN.js +0 -57
- package/dist/DateTime-CH6J1GoP.js +0 -38
- package/dist/Daterange-BUSKAGlK.js +0 -57
- package/dist/Delete-BeFC0gjD.js +0 -57
- package/dist/Dictionary-CsBiv-CI.js +0 -55
- package/dist/Email-Dwa6x3jW.js +0 -48
- package/dist/Index-Bpe7pY2Z.js +0 -4
- package/dist/Index-CUYQxzNd.js +0 -174
- package/dist/Index-DMnL8F7Y.js +0 -4
- package/dist/Index-DNG25ox2.js +0 -4
- package/dist/Index-DqUNI6MV.js +0 -4
- package/dist/Int-BFv18KXi.js +0 -38
- package/dist/Int-C0ijmdYS.js +0 -41
- package/dist/List-CfQzWq_5.js +0 -74
- package/dist/Maintaince-BzDEwQcU.js +0 -14
- package/dist/Month-Bp_Pfi_b.js +0 -37
- package/dist/Month-CKkjwzza.js +0 -38
- package/dist/Paging-DpoBp7x_.js +0 -95
- package/dist/QueryApi-VwISnk96.js +0 -13
- package/dist/RichText-CNahMrfb.js +0 -41
- package/dist/Select-BeNZqAP1.js +0 -112
- package/dist/Select-CqOE6uI8.js +0 -80
- package/dist/Text-5803XWI6.js +0 -4
- package/dist/Text.vue_vue_type_style_index_0_lang-D1JSHUmS.js +0 -53
- package/dist/TextLink-TYXcDAlo.js +0 -59
- package/dist/Time-Dd-Trib4.js +0 -37
- package/dist/Timeline-D6LCIkQp.js +0 -53
- package/dist/Tree-BKmFZrK3.js +0 -118
- package/dist/TreeNode-L_A5ZKy0.js +0 -37
- package/dist/Upload-DJRh4a7g.js +0 -68
- package/dist/Upload-Ozg_nOpI.js +0 -147
- package/dist/UploadApi-DVx69g-F.js +0 -13
- package/dist/Year-D7XGe2So.js +0 -41
- package/dist/assets/halo-fe-B-NiIGas.js +0 -12088
- package/dist/main-DB_sVyZe.js +0 -3620
package/dist/Upload-Ozg_nOpI.js
DELETED
@@ -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
|
-
};
|
package/dist/Year-D7XGe2So.js
DELETED
@@ -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
|
-
};
|