halo-pc 1.0.20 → 1.0.22
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Article-C_3LULzy.js +200 -0
- package/dist/{ArticleFooter-CsCnjrJ1.js → ArticleFooter-Do6I1mma.js} +24 -18
- package/dist/{Autocomplete-BGkHGSX_.js → Autocomplete-BLOOqTTn.js} +1 -1
- package/dist/Autocomplete-BLrbt1wN.js +53 -0
- package/dist/Autocomplete-C27XN8Sp.js +54 -0
- package/dist/{CSharp-NuDfWEq7.js → CSharp-BGn9jf2B.js} +1 -1
- package/dist/{Calender-C2YaNTHk.js → Calender-4bSMqUzx.js} +4 -4
- package/dist/Callback-BHYDtogL.js +26 -0
- package/dist/Cascader-D3y3WjFF.js +87 -0
- package/dist/Cascader-D9Y8L7X2.js +47 -0
- package/dist/{Checkbox-BAcK--1U.js → Checkbox-DnTLeLjt.js} +1 -1
- package/dist/Checkbox-dDfYBhhc.js +76 -0
- package/dist/{Code-CbsVyhOv.js → Code-Af5URLnL.js} +1 -1
- package/dist/Code-Bi9Y45vV.js +42 -0
- package/dist/Code-CWsSgkJq.js +60 -0
- package/dist/{Code-BHEes80c.js → Code-QYs-sjcG.js} +1 -1
- package/dist/Code.vue_vue_type_style_index_0_lang-CI6sLXKy.js +65 -0
- package/dist/Column-wzxM_-Vp.js +74 -0
- package/dist/Comment-BF8L1umD.js +104 -0
- package/dist/Compare-CjSQcnd3.js +43 -0
- package/dist/{Compare-gEOPuGLB.js → Compare-Cj_CPjIV.js} +25 -19
- package/dist/Copy-BNt-Dwoo.js +49 -0
- package/dist/Custom-CYPkAqpf.js +57 -0
- package/dist/{DataExport-hwoZoZUN.js → DataExport-CHQtRKzA.js} +1 -1
- package/dist/{DataExport.vue_vue_type_script_setup_true_lang-Dkq4fSkZ.js → DataExport.vue_vue_type_script_setup_true_lang-Dt2BAaAO.js} +41 -36
- package/dist/{DataImport-CQYeF50z.js → DataImport-CDcmH3Du.js} +1 -1
- package/dist/DataImport.vue_vue_type_script_setup_true_lang-dULXjbl_.js +176 -0
- package/dist/{Date-a3T1YbHN.js → Date-BStpsA7n.js} +1 -1
- package/dist/Date-U1py5NaK.js +43 -0
- package/dist/DateRange-DxAx2gxI.js +63 -0
- package/dist/DateTime-B3609Ct6.js +44 -0
- package/dist/{DateTime-BUYojCOY.js → DateTime-CmJw1-WA.js} +1 -1
- package/dist/{DateTimeRange-D9K4am0p.js → DateTimeRange-aDw57sTG.js} +17 -11
- package/dist/Daterange-C48t6usd.js +63 -0
- package/dist/{Decimal-CNhxJUZg.js → Decimal-Ca0K6NoZ.js} +1 -1
- package/dist/Delete-FhIvONUV.js +62 -0
- package/dist/{Detail-BXkTd6Wh.js → Detail-qqW0J946.js} +21 -15
- package/dist/Dictionary-CaXytFmK.js +59 -0
- package/dist/Email-H2DHJhMe.js +54 -0
- package/dist/{File-CAnAcqJX.js → File-CjXewuui.js} +33 -27
- package/dist/Image-BSuCHshD.js +9 -0
- package/dist/Index-9KImKLrj.js +4 -0
- package/dist/Index-BIbR8SAU.js +178 -0
- package/dist/Index-BaoxkF9F.js +4 -0
- package/dist/{Index-DJvB04cS.js → Index-BrI9x7i7.js} +1 -1
- package/dist/Index-CXR5RC6-.js +4 -0
- package/dist/{Index-RZT6JXBO.js → Index-CpGonJ_m.js} +1 -1
- package/dist/{Index-CseSUp2Z.js → Index-DUgprnVp.js} +1 -1
- package/dist/{Index-BqjKndKz.js → Index-icEhc88J.js} +25 -20
- package/dist/{Index.vue_vue_type_script_setup_true_lang-DtNDN8Ex.js → Index.vue_vue_type_script_setup_true_lang-Beb5UD_S.js} +21 -15
- package/dist/{Index.vue_vue_type_script_setup_true_lang-C8ZEc4nU.js → Index.vue_vue_type_script_setup_true_lang-DJ8ZzZ2K.js} +22 -16
- package/dist/{Index.vue_vue_type_style_index_0_lang-T12lwRy6.js → Index.vue_vue_type_style_index_0_lang-D7LuD-a2.js} +40 -35
- package/dist/{Install-DWWpscrR.js → Install-FwXpJIWk.js} +26 -20
- package/dist/Int-CXl1QpEL.js +44 -0
- package/dist/Int-DAxz3ETu.js +46 -0
- package/dist/List-CV9bkdrq.js +79 -0
- package/dist/Maintaince-DZNq9aHX.js +20 -0
- package/dist/{Markdown-d8PCfAFf.js → Markdown-BhwqDlwa.js} +1 -1
- package/dist/{Month-COEkKDL_.js → Month-BEmnA7zU.js} +1 -1
- package/dist/Month-DXQBHoJU.js +43 -0
- package/dist/Month-bgEd_K7_.js +44 -0
- package/dist/{Normal-BD7sNr-b.js → Normal-Dya4aqc7.js} +56 -51
- package/dist/Paging-JXDzxoM0.js +99 -0
- package/dist/{PagingHeader-CznmI0kr.js → PagingHeader-BETGBySb.js} +31 -25
- package/dist/{PagingRow-BJ-VLpfV.js → PagingRow-BLqp1c9E.js} +28 -22
- package/dist/QueryApi-B5jI3sBl.js +20 -0
- package/dist/{Racebar-BkwhD-rw.js → Racebar-CozeXwLJ.js} +42 -37
- package/dist/{Radio-CS12bajp.js → Radio-CuAxYw7j.js} +1 -1
- package/dist/{Register-l_X4fDPP.js → Register-B11jE2Ox.js} +78 -73
- package/dist/RichText-CxBE_cVg.js +47 -0
- package/dist/{SearchFooter-C8N9ku25.js → SearchFooter-agTqPUGE.js} +1 -1
- package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-6WvYHIn1.js → SearchFooter.vue_vue_type_style_index_0_lang-C-1Yr5_9.js} +1 -1
- package/dist/{SearchForm-DX0mN20A.js → SearchForm-DNKmE8W0.js} +1 -1
- package/dist/{SearchForm.vue_vue_type_style_index_0_lang-23AxHYiw.js → SearchForm.vue_vue_type_style_index_0_lang-BzrMV0Wr.js} +40 -35
- package/dist/Select-BPa5rx_H.js +86 -0
- package/dist/Select-CRfEAtba.js +117 -0
- package/dist/{Select-DYjvtHyi.js → Select-MqDjnB-C.js} +1 -1
- package/dist/{Single-DErvX9y_.js → Single-C5Kkr9SY.js} +112 -107
- package/dist/{Statistic-CQxXdu-V.js → Statistic-Ce_FMw5O.js} +36 -31
- package/dist/{Stock-CsoHCwV6.js → Stock-BTjhpaxv.js} +1 -1
- package/dist/{Stock-DXLdfC3r.js → Stock-D8AJmsvb.js} +1 -1
- package/dist/{Stock.vue_vue_type_style_index_0_lang-B-b3Lj_h.js → Stock.vue_vue_type_style_index_0_lang-DTj2ITJ6.js} +28 -23
- package/dist/{Switch-BCgZXfWo.js → Switch-gwGbi34o.js} +1 -1
- package/dist/{Table-CAVxyUTD.js → Table-C03eUBYm.js} +69 -63
- package/dist/{Table-DkJYgLFt.js → Table-DA8aGGEH.js} +74 -70
- package/dist/{Text-Cn0cOTli.js → Text-B5uPrGof.js} +18 -12
- package/dist/Text-D-VS-lCk.js +59 -0
- package/dist/Text-NRww74M3.js +4 -0
- package/dist/Text.vue_vue_type_style_index_0_lang-Fsbur1tJ.js +59 -0
- package/dist/TextLink-B_Qg6CnF.js +65 -0
- package/dist/{Textarea-Pc4TfoC3.js → Textarea-gtXLL6Qe.js} +1 -1
- package/dist/Time-DYOIZ2Rv.js +43 -0
- package/dist/Timeline-B4AYezYA.js +59 -0
- package/dist/{Tree-01Sb-9zi.js → Tree-CRDb0vS5.js} +67 -62
- package/dist/Tree-CTmXjN1O.js +122 -0
- package/dist/TreeNode-HFcGpAOb.js +42 -0
- package/dist/{Update-Cy1lFPVv.js → Update-EHyhYK5k.js} +18 -12
- package/dist/{UpdateChild-DV_8KV9G.js → UpdateChild-CC3b9evd.js} +23 -17
- package/dist/Upload-CkQ-5tVg.js +72 -0
- package/dist/Upload-um4BYzwO.js +150 -0
- package/dist/UploadApi-BmdGJGjh.js +20 -0
- package/dist/Year-DKBG5ihv.js +47 -0
- package/dist/{Year-BFZPXXq0.js → Year-Lhvyb9Vk.js} +1 -1
- package/dist/assets/@intlify-BISCQg1h.js +2189 -0
- package/dist/assets/@vue-aVYGocXp.js +93 -0
- 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/assets/vue-i18n-CLr3brPz.js +1670 -0
- package/dist/main-C1iALE1f.js +8947 -0
- package/dist/main.js +42 -41
- package/package.json +2 -2
- package/dist/Article-aps_F4Uq.js +0 -194
- package/dist/Autocomplete-CGoxGIM2.js +0 -48
- package/dist/Autocomplete-XdLV4jzi.js +0 -49
- package/dist/Callback-Czdr_dVp.js +0 -20
- package/dist/Cascader-D3Kr80fH.js +0 -81
- package/dist/Cascader-DRvnD4Xc.js +0 -41
- package/dist/Checkbox-5pSKww4M.js +0 -70
- package/dist/Code-BxQxsVD8.js +0 -54
- package/dist/Code-CtDTGfBy.js +0 -36
- package/dist/Code.vue_vue_type_style_index_0_lang-CPZKY3vQ.js +0 -59
- package/dist/Column-D3PMyaiE.js +0 -68
- package/dist/Comment-B3fvVYJF.js +0 -98
- package/dist/Compare-BXxJuIXf.js +0 -37
- package/dist/Copy-1znXP-dt.js +0 -43
- package/dist/Custom-C_15ZImX.js +0 -51
- package/dist/DataImport.vue_vue_type_script_setup_true_lang-ChWRjj2W.js +0 -172
- package/dist/Date-0bIUTNCs.js +0 -37
- package/dist/DateRange-Cxu9FXTE.js +0 -57
- package/dist/DateTime-IlsYZL-l.js +0 -38
- package/dist/Daterange-CX0Klog4.js +0 -57
- package/dist/Delete-DFl8Tr27.js +0 -56
- package/dist/Dictionary-DmarNVsi.js +0 -55
- package/dist/Email-BBjDCCOK.js +0 -48
- package/dist/Image-pufFvop2.js +0 -9
- package/dist/Index-C4D5pwwu.js +0 -173
- package/dist/Index-CD_KS2lO.js +0 -4
- package/dist/Index-CEh3KlPE.js +0 -4
- package/dist/Index-XmvSiC1h.js +0 -4
- package/dist/Int-Bi3P8XeV.js +0 -41
- package/dist/Int-Bn2p1DqA.js +0 -38
- package/dist/List-CeQRwXop.js +0 -73
- package/dist/Maintaince-CVMjhqSO.js +0 -14
- package/dist/Month-BfUSQ3xa.js +0 -38
- package/dist/Month-DQKfNQzN.js +0 -37
- package/dist/Paging-d_-VefNv.js +0 -94
- package/dist/QueryApi-Cdniq3mZ.js +0 -13
- package/dist/RichText-9MwwjuZi.js +0 -41
- package/dist/Select-CQE5kY-n.js +0 -111
- package/dist/Select-DaEqum3a.js +0 -80
- package/dist/Text-Dk5tNNZo.js +0 -53
- package/dist/Text-DvVWvaMO.js +0 -4
- package/dist/Text.vue_vue_type_style_index_0_lang-I01JEYAx.js +0 -53
- package/dist/TextLink-D3nvnLHn.js +0 -59
- package/dist/Time-CToG3p0T.js +0 -37
- package/dist/Timeline-DphvhX0U.js +0 -53
- package/dist/Tree-CH1RoUqu.js +0 -117
- package/dist/TreeNode-C54d29V-.js +0 -37
- package/dist/Upload-BalaO4wz.js +0 -146
- package/dist/Upload-DQVaPUdG.js +0 -67
- package/dist/UploadApi-Cfm5DM_x.js +0 -13
- package/dist/Year-Swm3VSzj.js +0 -41
- package/dist/main-BYJVoHlf.js +0 -19457
@@ -0,0 +1,72 @@
|
|
1
|
+
import { defineComponent as V, toRefs as b, ref as r, onMounted as k, computed as w, resolveComponent as x, openBlock as p, createElementBlock as u, Fragment as C, renderList as F, unref as s, createVNode as B, 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 { z as c, U as $, x as y, F as I, B as N } from "./main-C1iALE1f.js";
|
5
|
+
import "./assets/clone-BZn0cTAu.js";
|
6
|
+
import "./assets/moment-h96o7c8I.js";
|
7
|
+
import "./assets/liquidjs-C-LVcoaY.js";
|
8
|
+
import "./QueryApi-B5jI3sBl.js";
|
9
|
+
import { U as S } from "./UploadApi-BmdGJGjh.js";
|
10
|
+
const j = { class: "text-upload" }, z = ["src", "onClick", "alt"], A = ["src"], Z = /* @__PURE__ */ V({
|
11
|
+
__name: "Upload",
|
12
|
+
props: {
|
13
|
+
schema: {},
|
14
|
+
table: {},
|
15
|
+
field: {},
|
16
|
+
set: {},
|
17
|
+
row: {},
|
18
|
+
modelValue: {}
|
19
|
+
},
|
20
|
+
setup(v) {
|
21
|
+
let f = v, { table: L, field: M, set: O, row: T, modelValue: g } = b(f), n = r(), t = r(!1), d = r([]), m = r(), _ = (e) => {
|
22
|
+
t.value = !0, m.value = e.url;
|
23
|
+
}, h = () => {
|
24
|
+
if (o.value)
|
25
|
+
if (c.upload.method == "box")
|
26
|
+
S.getUploadToken().then((e) => {
|
27
|
+
o.value.split(",").forEach((a) => {
|
28
|
+
let l = `${c.upload.address}/api/objects/download?slug=${a}&token=${e}`;
|
29
|
+
d.value.push({ name: a, url: l });
|
30
|
+
});
|
31
|
+
});
|
32
|
+
else {
|
33
|
+
let e = $.httpOrHttps(o.value) ? o.value : y.api.url + o.value;
|
34
|
+
I.isImage(e) ? n.value = e : n.value = N.getFileIcon(e);
|
35
|
+
}
|
36
|
+
};
|
37
|
+
k(() => {
|
38
|
+
h();
|
39
|
+
});
|
40
|
+
let o = w(() => g.value);
|
41
|
+
return (e, i) => {
|
42
|
+
const a = x("el-dialog");
|
43
|
+
return p(), u("div", j, [
|
44
|
+
(p(!0), u(C, null, F(s(d), (l, U) => (p(), u("img", {
|
45
|
+
class: "detail-image",
|
46
|
+
src: l.url,
|
47
|
+
onClick: (q) => s(_)(l),
|
48
|
+
alt: l.name,
|
49
|
+
key: U
|
50
|
+
}, null, 8, z))), 128)),
|
51
|
+
B(a, {
|
52
|
+
draggable: "",
|
53
|
+
"append-to-body": "",
|
54
|
+
top: "5vh",
|
55
|
+
modelValue: s(t),
|
56
|
+
"onUpdate:modelValue": i[0] || (i[0] = (l) => E(t) ? t.value = l : t = l)
|
57
|
+
}, {
|
58
|
+
default: H(() => [
|
59
|
+
R("img", {
|
60
|
+
width: "100%",
|
61
|
+
src: s(m)
|
62
|
+
}, null, 8, A)
|
63
|
+
]),
|
64
|
+
_: 1
|
65
|
+
}, 8, ["modelValue"])
|
66
|
+
]);
|
67
|
+
};
|
68
|
+
}
|
69
|
+
});
|
70
|
+
export {
|
71
|
+
Z as default
|
72
|
+
};
|
@@ -0,0 +1,150 @@
|
|
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 B, normalizeClass as le, unref as a, createVNode as N, 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, x as F, y as ie, h as I, m as se, A as s, w as S, z as H, F as T, B as z, U as de } from "./main-C1iALE1f.js";
|
3
|
+
import "./assets/underscore.string-DVXD2SZo.js";
|
4
|
+
import "./assets/clone-BZn0cTAu.js";
|
5
|
+
import "./assets/moment-h96o7c8I.js";
|
6
|
+
import "./assets/liquidjs-C-LVcoaY.js";
|
7
|
+
import "./QueryApi-B5jI3sBl.js";
|
8
|
+
import { U as pe } from "./UploadApi-BmdGJGjh.js";
|
9
|
+
const me = {
|
10
|
+
key: 0,
|
11
|
+
class: "fa fa-upload"
|
12
|
+
}, ce = ["src"], xe = /* @__PURE__ */ X({
|
13
|
+
__name: "Upload",
|
14
|
+
props: {
|
15
|
+
schema: {},
|
16
|
+
table: {},
|
17
|
+
field: {},
|
18
|
+
set: {},
|
19
|
+
row: {},
|
20
|
+
modelValue: {}
|
21
|
+
},
|
22
|
+
emits: ["submit", "change", "update:modelValue"],
|
23
|
+
setup(C, { emit: O }) {
|
24
|
+
let h = O, $ = C, { table: d, field: u, row: g, set: ve, modelValue: q } = Y($), m = p(!1), P = p({}), c = p([]), j = p(), E = p(), f = !0, _ = p({ action: "", data: null }), L = (e) => {
|
25
|
+
let l = pe.getUploadToken();
|
26
|
+
e.forEach((o) => {
|
27
|
+
let t = `${H.upload.address}/api/objects/download?slug=${o[0]}&token=${l}`;
|
28
|
+
c.value.push({ name: o[1], url: t });
|
29
|
+
});
|
30
|
+
}, D = async (e) => {
|
31
|
+
f = !1;
|
32
|
+
let l = `/upload?table=${d.value.name}&field=${u.value.name}`;
|
33
|
+
_.value.action = F.api.url + l;
|
34
|
+
let o = new ie();
|
35
|
+
o.path = l, o.method = "POST", await I.onRequest(o);
|
36
|
+
let t = o.getHeader("Authorization");
|
37
|
+
return P.value.Authorization = t, u.value.control.fileType == "Image" ? e.type.indexOf("image") == 0 ? Promise.resolve() : (se.error("请上传正确的图片文件"), Promise.reject()) : Promise.resolve();
|
38
|
+
}, M = (e, l) => {
|
39
|
+
f = !1;
|
40
|
+
let t = [e.name.replace(F.api.url, "")];
|
41
|
+
return I.post("/upload/delete", { files: t }).then(({ data: r }) => {
|
42
|
+
let n = l.indexOf(e), b = s.removeIndex(i.value, n, ",");
|
43
|
+
if (h("update:modelValue", b), u.value.control.name) {
|
44
|
+
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, ",");
|
45
|
+
S.setValue(w, r.value, d.value, n, v);
|
46
|
+
}
|
47
|
+
return Promise.resolve();
|
48
|
+
}).catch(() => Promise.reject());
|
49
|
+
}, G = (e) => {
|
50
|
+
m.value = !0, j.value = e.url;
|
51
|
+
}, J = (e, l, o) => {
|
52
|
+
}, K = (e, l) => {
|
53
|
+
I.handleResponseBody(e).then((o) => {
|
54
|
+
let { name: t, url: r } = o.data[0];
|
55
|
+
H.upload.method == "box" || T.isImage(r) || (l.url = z.getFileIcon(r));
|
56
|
+
let b = s.split(i.value, ",", r).join(",");
|
57
|
+
if (i.value = b, u.value.control.name) {
|
58
|
+
let v = d.value.fields.find((y) => y.name == u.value.control.name), V = g.value[v.value], w = s.split(V, ",", t);
|
59
|
+
g.value[v.value] = w.join(",");
|
60
|
+
}
|
61
|
+
}).catch(() => {
|
62
|
+
c.value = [];
|
63
|
+
}).finally(() => {
|
64
|
+
f = !0;
|
65
|
+
});
|
66
|
+
}, A = () => {
|
67
|
+
if (c.value = [], !i.value)
|
68
|
+
return;
|
69
|
+
let e = s.split(i.value, ","), l = [];
|
70
|
+
if (u.value.control.name) {
|
71
|
+
let t = d.value.fields.find((n) => n.name == u.value.control.name), r = g.value[t.name];
|
72
|
+
l = s.split(r, ",");
|
73
|
+
}
|
74
|
+
let o = s.combine(e, l);
|
75
|
+
if (H.upload.method == "box")
|
76
|
+
L(o);
|
77
|
+
else {
|
78
|
+
let t = de.httpOrHttps(i.value) ? i.value : F.api.url + i.value, r = { name: t, url: null };
|
79
|
+
T.isImage(t) ? r.url = t : r.url = z.getFileIcon(t), c.value.push(r);
|
80
|
+
}
|
81
|
+
};
|
82
|
+
Z(() => {
|
83
|
+
A();
|
84
|
+
});
|
85
|
+
let i = x({
|
86
|
+
get() {
|
87
|
+
return q.value;
|
88
|
+
},
|
89
|
+
set(e) {
|
90
|
+
h("update:modelValue", e), h("change", e);
|
91
|
+
}
|
92
|
+
}), Q = x(() => u.value.control.preview ? "picture-card" : null), W = x(() => W);
|
93
|
+
return ee(() => i.value, (e, l) => {
|
94
|
+
f && A();
|
95
|
+
}), (e, l) => {
|
96
|
+
const o = k("el-button"), t = k("el-upload"), r = k("el-dialog");
|
97
|
+
return R(), B("div", {
|
98
|
+
class: le(a(u).control.preview ? "control-file-preview" : "control-file")
|
99
|
+
}, [
|
100
|
+
N(t, {
|
101
|
+
ref_key: "uploadRef",
|
102
|
+
ref: E,
|
103
|
+
"list-type": a(Q),
|
104
|
+
action: a(_).action,
|
105
|
+
headers: a(P),
|
106
|
+
data: a(_).data,
|
107
|
+
"file-list": a(c),
|
108
|
+
"before-upload": a(D),
|
109
|
+
"before-remove": a(M),
|
110
|
+
"on-preview": a(G),
|
111
|
+
"on-success": a(K),
|
112
|
+
"on-progress": a(J),
|
113
|
+
disabled: a(u).readonly
|
114
|
+
}, {
|
115
|
+
default: U(() => [
|
116
|
+
a(u).control.preview ? (R(), B("i", me)) : (R(), te(o, {
|
117
|
+
key: 1,
|
118
|
+
icon: "el-icon-upload",
|
119
|
+
type: "primary"
|
120
|
+
}, {
|
121
|
+
default: U(() => [
|
122
|
+
ae(oe(a(ne)("common.click_upload")), 1)
|
123
|
+
]),
|
124
|
+
_: 1
|
125
|
+
}))
|
126
|
+
]),
|
127
|
+
_: 1
|
128
|
+
}, 8, ["list-type", "action", "headers", "data", "file-list", "before-upload", "before-remove", "on-preview", "on-success", "on-progress", "disabled"]),
|
129
|
+
N(r, {
|
130
|
+
draggable: "",
|
131
|
+
"append-to-body": "",
|
132
|
+
modelValue: a(m),
|
133
|
+
"onUpdate:modelValue": l[0] || (l[0] = (n) => re(m) ? m.value = n : m = n)
|
134
|
+
}, {
|
135
|
+
default: U(() => [
|
136
|
+
ue("img", {
|
137
|
+
width: "100%",
|
138
|
+
src: a(j),
|
139
|
+
alt: ""
|
140
|
+
}, null, 8, ce)
|
141
|
+
]),
|
142
|
+
_: 1
|
143
|
+
}, 8, ["modelValue"])
|
144
|
+
], 2);
|
145
|
+
};
|
146
|
+
}
|
147
|
+
});
|
148
|
+
export {
|
149
|
+
xe as default
|
150
|
+
};
|
@@ -0,0 +1,20 @@
|
|
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, n as t } from "./main-C1iALE1f.js";
|
7
|
+
import "./assets/moment-h96o7c8I.js";
|
8
|
+
import "./assets/liquidjs-C-LVcoaY.js";
|
9
|
+
let e = null;
|
10
|
+
class T {
|
11
|
+
/**
|
12
|
+
* 获取上传令牌,过期自动获取
|
13
|
+
*/
|
14
|
+
static async getUploadToken() {
|
15
|
+
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);
|
16
|
+
}
|
17
|
+
}
|
18
|
+
export {
|
19
|
+
T as U
|
20
|
+
};
|
@@ -0,0 +1,47 @@
|
|
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/moment-h96o7c8I.js";
|
7
|
+
import { j as k } from "./main-C1iALE1f.js";
|
8
|
+
import "./assets/liquidjs-C-LVcoaY.js";
|
9
|
+
const z = /* @__PURE__ */ f({
|
10
|
+
__name: "Year",
|
11
|
+
props: {
|
12
|
+
schema: {},
|
13
|
+
table: {},
|
14
|
+
field: {},
|
15
|
+
set: {},
|
16
|
+
row: {},
|
17
|
+
modelValue: {}
|
18
|
+
},
|
19
|
+
emits: ["submit", "change", "update:modelValue"],
|
20
|
+
setup(n, { emit: p }) {
|
21
|
+
let t = p, d = n, { table: i, field: a, row: C, set: y, modelValue: u } = _(d), s = () => {
|
22
|
+
t("submit");
|
23
|
+
}, o = h({
|
24
|
+
get() {
|
25
|
+
return u.value;
|
26
|
+
},
|
27
|
+
set(l) {
|
28
|
+
t("update:modelValue", l), t("change", l);
|
29
|
+
}
|
30
|
+
});
|
31
|
+
return (l, r) => {
|
32
|
+
const c = V("el-date-picker");
|
33
|
+
return b(), g(c, {
|
34
|
+
type: "year",
|
35
|
+
placeholder: e(k)(e(i).name, e(a).name),
|
36
|
+
"value-format": "YYYY",
|
37
|
+
disabled: e(a).control.readonly,
|
38
|
+
onChange: e(s),
|
39
|
+
modelValue: e(o),
|
40
|
+
"onUpdate:modelValue": r[0] || (r[0] = (m) => Y(o) ? o.value = m : o = m)
|
41
|
+
}, null, 8, ["placeholder", "disabled", "onChange", "modelValue"]);
|
42
|
+
};
|
43
|
+
}
|
44
|
+
});
|
45
|
+
export {
|
46
|
+
z as default
|
47
|
+
};
|
@@ -10,7 +10,7 @@ const h = /* @__PURE__ */ u({
|
|
10
10
|
modelValue: {}
|
11
11
|
},
|
12
12
|
setup(a) {
|
13
|
-
let r = i(() => import("./Text-
|
13
|
+
let r = i(() => import("./Text-NRww74M3.js")), s = a, { schema: m, table: n, field: d, set: f, row: p, modelValue: l } = c(s);
|
14
14
|
return (x, t) => (V(), b(e(r), {
|
15
15
|
schema: e(m),
|
16
16
|
table: e(n),
|