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.
- package/dist/Article-DASEvkfO.js +194 -0
- package/dist/{ArticleFooter-BFYDplbW.js → ArticleFooter-BSesl8iy.js} +17 -24
- package/dist/{Autocomplete-CIXGPZaG.js → Autocomplete-ClAQY5V5.js} +1 -1
- package/dist/Autocomplete-CzfOoMve.js +48 -0
- package/dist/Autocomplete-DToic2Cg.js +49 -0
- package/dist/{CSharp-BGzxI5QJ.js → CSharp-23QccebX.js} +1 -1
- package/dist/{Calender-DkBPl9bM.js → Calender-DZkQaIeV.js} +3 -3
- package/dist/Callback-CWBDUe_C.js +20 -0
- package/dist/Cascader-BDfFyqiv.js +41 -0
- package/dist/Cascader-CpD_hbhQ.js +81 -0
- package/dist/Checkbox--gCBkIuI.js +70 -0
- package/dist/{Checkbox-CuRjXSPc.js → Checkbox-SLi7MK1r.js} +1 -1
- package/dist/Code-BVTjF5rW.js +54 -0
- package/dist/{Code-BlwPnx9J.js → Code-C4hdU4t4.js} +1 -1
- package/dist/Code-CO4WPAe_.js +4 -0
- package/dist/Code-nrn4wOhB.js +36 -0
- package/dist/Code.vue_vue_type_style_index_0_lang-BgAnkZ3j.js +59 -0
- package/dist/Column-DcMAu4JL.js +68 -0
- package/dist/Comment-CPxVIapg.js +98 -0
- package/dist/Compare-C2oFy0EZ.js +56 -0
- package/dist/Compare-P9zOBC1v.js +26 -0
- package/dist/Copy-B5vrho98.js +43 -0
- package/dist/Custom-BETJLilj.js +51 -0
- package/dist/{DataExport-C0jItlVY.js → DataExport-YTc4EX6l.js} +1 -1
- package/dist/{DataExport.vue_vue_type_script_setup_true_lang-Dx7mLyuz.js → DataExport.vue_vue_type_script_setup_true_lang-amvVzv4A.js} +34 -40
- package/dist/{DataImport-BfBkneEy.js → DataImport-ByV8MQkV.js} +1 -1
- package/dist/{DataImport.vue_vue_type_script_setup_true_lang-C9qjFakZ.js → DataImport.vue_vue_type_script_setup_true_lang-CYwCKg5Z.js} +61 -66
- package/dist/{Date-B8b9JXpP.js → Date-DbTzQla9.js} +1 -1
- package/dist/Date-DpiWNuFs.js +37 -0
- package/dist/DateRange-Su0Q2cwY.js +57 -0
- package/dist/{DateTime-DjhuyxFC.js → DateTime-C3NrioJi.js} +1 -1
- package/dist/DateTime-QyKfqaVG.js +38 -0
- package/dist/{DateTimeRange-D01wtitk.js → DateTimeRange-lytkhCjC.js} +11 -18
- package/dist/Daterange-D7ZHkOmo.js +57 -0
- package/dist/{Decimal-DqMMTfvl.js → Decimal-CTTT98BQ.js} +1 -1
- package/dist/Delete-MfXy7gUi.js +56 -0
- package/dist/{Detail-C-OFWPso.js → Detail-CUiSzyT7.js} +16 -23
- package/dist/Dictionary-Dd_IU-Hn.js +55 -0
- package/dist/Email-BzN4JpJv.js +48 -0
- package/dist/{File-C2fLmTcj.js → File-Ckh37Ne2.js} +42 -49
- package/dist/Image-Dkd69DoD.js +9 -0
- package/dist/Index-CGJLRExG.js +4 -0
- package/dist/Index-CLzHDG05.js +4 -0
- package/dist/Index-DJJcNPgN.js +173 -0
- package/dist/{Index-B90giDWQ.js → Index-DlrpDUD3.js} +1 -1
- package/dist/Index-DxvVjg9S.js +70 -0
- package/dist/{Index-CQURvmzd.js → Index-G36KYPCK.js} +1 -1
- package/dist/Index-dTIwhIau.js +4 -0
- package/dist/{Index-D7DerkIw.js → Index-x4c71OJZ.js} +1 -1
- package/dist/{Index.vue_vue_type_script_setup_true_lang-DZdvfweh.js → Index.vue_vue_type_script_setup_true_lang-8g0L1e0O.js} +16 -23
- package/dist/{Index.vue_vue_type_script_setup_true_lang-B93cecQQ.js → Index.vue_vue_type_script_setup_true_lang-oQyBcgPa.js} +16 -23
- package/dist/{Index.vue_vue_type_style_index_0_lang-DYwz3Eu2.js → Index.vue_vue_type_style_index_0_lang-DVYceMeD.js} +30 -36
- package/dist/{Install-Cqj44p9F.js → Install-BW_ulT9I.js} +20 -27
- package/dist/Int-BRqYiJo7.js +41 -0
- package/dist/{Int-Bj3Gagp5.js → Int-BYSjwPG_.js} +9 -16
- package/dist/List-DAFqVlam.js +73 -0
- package/dist/Maintaince-B8mM4PEp.js +14 -0
- package/dist/{Markdown-COY9enBf.js → Markdown-BXKlgSON.js} +1 -1
- package/dist/Month-BHvq72xE.js +37 -0
- package/dist/Month-BiW1DL44.js +38 -0
- package/dist/{Month-B7jIGlKI.js → Month-DKeTzNrD.js} +1 -1
- package/dist/{Normal-B8YL2DeI.js → Normal-CgSREifM.js} +52 -58
- package/dist/Paging-D02YApLL.js +94 -0
- package/dist/{PagingHeader-c1vaXeWH.js → PagingHeader-DJ7MmfGl.js} +37 -44
- package/dist/{PagingRow-CHDlm8UI.js → PagingRow-BM1GMtrr.js} +21 -28
- package/dist/QueryApi-ChpV_S8J.js +13 -0
- package/dist/{Racebar-ClsuYbRj.js → Racebar-CZlaC5Gm.js} +43 -49
- package/dist/{Radio-C6j5nvI9.js → Radio-BPq3WJa4.js} +1 -1
- package/dist/{Register-BnwfjjXP.js → Register-ByxrZyWq.js} +74 -80
- package/dist/RichText-BtQDAhn9.js +41 -0
- package/dist/{SearchFooter-D10vYX7H.js → SearchFooter-B61gsy3w.js} +1 -1
- package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-B3AD4sx-.js → SearchFooter.vue_vue_type_style_index_0_lang-CZv7EteY.js} +1 -1
- package/dist/{SearchForm-BRKHMJRS.js → SearchForm-CLvZoPGQ.js} +1 -1
- 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
- package/dist/Select-C_afSAvf.js +111 -0
- package/dist/{Select-Z8b2t5QQ.js → Select-DGXJMnE9.js} +19 -26
- package/dist/{Select-BiFIpc5-.js → Select-Nb9K2FMY.js} +1 -1
- package/dist/{Single-DdcVVH9V.js → Single-C-2qA2MU.js} +111 -117
- package/dist/{Statistic-B7niMPBf.js → Statistic-B1K-qIZb.js} +30 -36
- package/dist/{Stock-CRsu1vcy.js → Stock-C560McFR.js} +1 -1
- package/dist/{Stock-xm8v4vDf.js → Stock-_rnn0B8I.js} +1 -1
- package/dist/{Stock.vue_vue_type_style_index_0_lang-Cb3jPDk8.js → Stock.vue_vue_type_style_index_0_lang-BEwvRtU6.js} +26 -32
- package/dist/{Switch-BaER4xWy.js → Switch-BadvkLSw.js} +1 -1
- package/dist/{Table-a5uj25Nj.js → Table-B46N43V3.js} +69 -74
- package/dist/{Table-C2dYPoGi.js → Table-Dk48tQ1r.js} +59 -66
- package/dist/Text-CNF204mx.js +53 -0
- package/dist/Text-DblKaz4m.js +52 -0
- package/dist/Text-y-q7UXlg.js +4 -0
- package/dist/Text.vue_vue_type_style_index_0_lang-DtnGWes5.js +53 -0
- package/dist/TextLink-B4Q0zX1K.js +59 -0
- package/dist/{Textarea-DAICkidp.js → Textarea-D1BOQFgK.js} +1 -1
- package/dist/Time-DZQxglEi.js +37 -0
- package/dist/Timeline-8QaD9H_I.js +53 -0
- package/dist/Tree-BUcyK0i_.js +117 -0
- package/dist/{Tree-BwQkDP2T.js → Tree-DVeTdmmL.js} +66 -72
- package/dist/TreeNode-BScAFHPZ.js +37 -0
- package/dist/{Update-BZe92EwV.js → Update-BbU5H_Qf.js} +14 -21
- package/dist/{UpdateChild-DN6pwrUK.js → UpdateChild-BbXuXfOR.js} +19 -26
- package/dist/Upload-C1obfZui.js +146 -0
- package/dist/Upload-CmtHETKR.js +67 -0
- package/dist/UploadApi-2sfpKCMa.js +13 -0
- package/dist/Year-CRd3PkNx.js +41 -0
- package/dist/{Year-2tcz8PDF.js → Year-CTo-9KjE.js} +1 -1
- package/dist/main-65efBfek.js +19835 -0
- package/dist/main.js +53 -54
- package/dist/style.css +1 -1
- package/esm/coms/partials/ArticleFooter.vue.d.ts +1 -1
- package/esm/coms/partials/PagingRow.vue.d.ts +1 -1
- package/esm/vite.config.d.ts +6 -0
- package/package.json +1 -1
- package/dist/Article-BH4dl6Bf.js +0 -201
- package/dist/Autocomplete-DYxWYClO.js +0 -55
- package/dist/Autocomplete-SOenNkH4.js +0 -54
- package/dist/Callback-B57W83N1.js +0 -27
- package/dist/Cascader-BI6T7N-q.js +0 -88
- package/dist/Cascader-BoN_F8v4.js +0 -48
- package/dist/Checkbox-DdolP6wO.js +0 -77
- package/dist/Code--y8oCkjX.js +0 -43
- package/dist/Code-C48Gf7gU.js +0 -61
- package/dist/Code-DiOQvIZv.js +0 -4
- package/dist/Code.vue_vue_type_style_index_0_lang-DlLh3JlB.js +0 -66
- package/dist/Column-BNGw36Iq.js +0 -75
- package/dist/Comment-D37SdQb6.js +0 -105
- package/dist/Compare-C09T8aaU.js +0 -33
- package/dist/Compare-CnnCTG12.js +0 -63
- package/dist/Copy-DNrXXJRQ.js +0 -50
- package/dist/Custom--I04Jyzr.js +0 -58
- package/dist/Date-TKW4HbCJ.js +0 -44
- package/dist/DateRange-JCP1Eokf.js +0 -64
- package/dist/DateTime-DVOVXS_f.js +0 -45
- package/dist/Daterange-CqHXC9JN.js +0 -64
- package/dist/Delete-PcTE_3Cp.js +0 -63
- package/dist/Dictionary-Cfhmc2OQ.js +0 -60
- package/dist/Email-Rj-ZvdfJ.js +0 -55
- package/dist/Image-zgBgvAup.js +0 -9
- package/dist/Index-9fyKz8TT.js +0 -4
- package/dist/Index-CAlWNb2l.js +0 -179
- package/dist/Index-CjFLlnmH.js +0 -4
- package/dist/Index-Cr2WAY6Z.js +0 -76
- package/dist/Index-Izl4chSJ.js +0 -4
- package/dist/Int-dlbcQ6_t.js +0 -47
- package/dist/List-BsAOvgmQ.js +0 -80
- package/dist/Maintaince-DjSvIfbu.js +0 -21
- package/dist/Month-BhNUuzcc.js +0 -44
- package/dist/Month-KDuTRSA0.js +0 -45
- package/dist/Paging-BlFnu-w0.js +0 -100
- package/dist/QueryApi-Bc_kmvgs.js +0 -21
- package/dist/RichText-BImFNkHQ.js +0 -48
- package/dist/Select-f15Y0Ko-.js +0 -118
- package/dist/Text-CMEzogZ8.js +0 -4
- package/dist/Text-CqKE2xDo.js +0 -59
- package/dist/Text-DfqLW_KH.js +0 -60
- package/dist/Text.vue_vue_type_style_index_0_lang-BNpeGb1c.js +0 -60
- package/dist/TextLink-XJurKE8Q.js +0 -66
- package/dist/Time-BmdIHgOY.js +0 -44
- package/dist/Timeline-BOPAiaK-.js +0 -60
- package/dist/Tree-BR8gmBBa.js +0 -123
- package/dist/TreeNode-CdBVgaRW.js +0 -43
- package/dist/Upload-BtErvzEO.js +0 -151
- package/dist/Upload-vPTA8ndw.js +0 -73
- package/dist/UploadApi-CpwS4Kf1.js +0 -21
- package/dist/Year-CVqwpSLR.js +0 -48
- package/dist/assets/@intlify-BISCQg1h.js +0 -2189
- package/dist/assets/@monaco-editor-BCDRi0Ti.js +0 -258
- package/dist/assets/@vue-aVYGocXp.js +0 -93
- package/dist/assets/clone-BZn0cTAu.js +0 -134
- package/dist/assets/file-saver-CwlpTZSc.js +0 -74
- package/dist/assets/liquidjs-C-LVcoaY.js +0 -2893
- package/dist/assets/moment-h96o7c8I.js +0 -2578
- package/dist/assets/sprintf-js-BPTdvBYM.js +0 -148
- package/dist/assets/state-local-CEworIRt.js +0 -131
- package/dist/assets/underscore-B0BCaBxV.js +0 -1070
- package/dist/assets/underscore.string-DVXD2SZo.js +0 -425
- package/dist/assets/util-deprecate-Dzun97re.js +0 -28
- package/dist/assets/vue-i18n-CLr3brPz.js +0 -1670
- package/dist/main-BS_9gx1M.js +0 -8937
@@ -0,0 +1,146 @@
|
|
1
|
+
import { defineComponent as X, toRefs as Y, ref as p, onMounted as Z, computed as k, watch as ee, resolveComponent as x, openBlock as U, createElementBlock as T, normalizeClass as le, unref as t, createVNode as B, withCtx as I, createBlock as ae, createTextVNode as te, toDisplayString as oe, isRef as re, createElementVNode as ue } from "vue";
|
2
|
+
import { U as ne, A as R, o as ie, L as F, a as se, k as s, i as C, m as P, D as L, u as O, W as de } from "./main-65efBfek.js";
|
3
|
+
import "./QueryApi-ChpV_S8J.js";
|
4
|
+
import { U as pe } from "./UploadApi-2sfpKCMa.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(S, { emit: $ }) {
|
20
|
+
let h = $, z = S, { table: d, field: u, row: g, set: ve, modelValue: D } = Y(z), m = p(!1), j = p({}), c = p([]), A = p(), E = p(), f = !0, _ = p({ action: "", data: null }), q = (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 = R.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 j.value.Authorization = a, u.value.control.fileType == "Image" ? e.type.indexOf("image") == 0 ? Promise.resolve() : (se.error("请上传正确的图片文件"), Promise.reject()) : Promise.resolve();
|
34
|
+
}, M = (e, l) => {
|
35
|
+
f = !1;
|
36
|
+
let a = [e.name.replace(R.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 = C.getValue(r.value, n, d.value, v), w = s.removeIndex(V, n, ",");
|
41
|
+
C.setValue(w, r.value, d.value, n, v);
|
42
|
+
}
|
43
|
+
return Promise.resolve();
|
44
|
+
}).catch(() => Promise.reject());
|
45
|
+
}, W = (e) => {
|
46
|
+
m.value = !0, A.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" || L.isImage(r) || (l.url = O.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
|
+
q(o);
|
73
|
+
else {
|
74
|
+
let a = de.httpOrHttps(i.value) ? i.value : R.api.url + i.value, r = { name: a, url: null };
|
75
|
+
L.isImage(a) ? r.url = a : r.url = O.getFileIcon(a), c.value.push(r);
|
76
|
+
}
|
77
|
+
};
|
78
|
+
Z(() => {
|
79
|
+
N();
|
80
|
+
});
|
81
|
+
let i = k({
|
82
|
+
get() {
|
83
|
+
return D.value;
|
84
|
+
},
|
85
|
+
set(e) {
|
86
|
+
h("update:modelValue", e), h("change", e);
|
87
|
+
}
|
88
|
+
}), K = k(() => u.value.control.preview ? "picture-card" : null), Q = k(() => Q);
|
89
|
+
return ee(() => i.value, (e, l) => {
|
90
|
+
f && N();
|
91
|
+
}), (e, l) => {
|
92
|
+
const o = x("el-button"), a = x("el-upload"), r = x("el-dialog");
|
93
|
+
return U(), T("div", {
|
94
|
+
class: le(t(u).control.preview ? "control-file-preview" : "control-file")
|
95
|
+
}, [
|
96
|
+
B(a, {
|
97
|
+
ref_key: "uploadRef",
|
98
|
+
ref: E,
|
99
|
+
"list-type": t(K),
|
100
|
+
action: t(_).action,
|
101
|
+
headers: t(j),
|
102
|
+
data: t(_).data,
|
103
|
+
"file-list": t(c),
|
104
|
+
"before-upload": t(H),
|
105
|
+
"before-remove": t(M),
|
106
|
+
"on-preview": t(W),
|
107
|
+
"on-success": t(J),
|
108
|
+
"on-progress": t(G),
|
109
|
+
disabled: t(u).readonly
|
110
|
+
}, {
|
111
|
+
default: I(() => [
|
112
|
+
t(u).control.preview ? (U(), T("i", me)) : (U(), ae(o, {
|
113
|
+
key: 1,
|
114
|
+
icon: "el-icon-upload",
|
115
|
+
type: "primary"
|
116
|
+
}, {
|
117
|
+
default: I(() => [
|
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
|
+
B(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: I(() => [
|
132
|
+
ue("img", {
|
133
|
+
width: "100%",
|
134
|
+
src: t(A),
|
135
|
+
alt: ""
|
136
|
+
}, null, 8, ce)
|
137
|
+
]),
|
138
|
+
_: 1
|
139
|
+
}, 8, ["modelValue"])
|
140
|
+
], 2);
|
141
|
+
};
|
142
|
+
}
|
143
|
+
});
|
144
|
+
export {
|
145
|
+
be as default
|
146
|
+
};
|
@@ -0,0 +1,67 @@
|
|
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 A, unref as s, createVNode as E, isRef as F, withCtx as $, createElementVNode as y } from "vue";
|
2
|
+
import { m as c, W as B, A as D, D as I, u as N } from "./main-65efBfek.js";
|
3
|
+
import "./QueryApi-ChpV_S8J.js";
|
4
|
+
import { U as R } from "./UploadApi-2sfpKCMa.js";
|
5
|
+
const j = { class: "text-upload" }, H = ["src", "onClick", "alt"], L = ["src"], K = /* @__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: M, field: O, set: S, row: T, 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
|
+
R.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
|
+
I.isImage(e) ? i.value = e : i.value = N.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", j, [
|
39
|
+
(d(!0), n(C, null, A(s(p), (l, U) => (d(), n("img", {
|
40
|
+
class: "detail-image",
|
41
|
+
src: l.url,
|
42
|
+
onClick: (W) => s(_)(l),
|
43
|
+
alt: l.name,
|
44
|
+
key: U
|
45
|
+
}, null, 8, H))), 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, L)
|
58
|
+
]),
|
59
|
+
_: 1
|
60
|
+
}, 8, ["modelValue"])
|
61
|
+
]);
|
62
|
+
};
|
63
|
+
}
|
64
|
+
});
|
65
|
+
export {
|
66
|
+
K as default
|
67
|
+
};
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { L as o, d as t } from "./main-65efBfek.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
|
+
};
|
@@ -0,0 +1,41 @@
|
|
1
|
+
import { defineComponent as f, toRefs as V, computed as _, resolveComponent as h, openBlock as b, createBlock as g, unref as e, isRef as Y } from "vue";
|
2
|
+
import { V as k } from "./main-65efBfek.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 } = V(u), c = () => {
|
16
|
+
o("submit");
|
17
|
+
}, l = _({
|
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 = h("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
|
+
};
|
@@ -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-y-q7UXlg.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),
|