halo-pc 1.0.13 → 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-BbDi3-MM.js → ArticleFooter-BSesl8iy.js} +17 -24
- package/dist/{Autocomplete-KcemMig-.js → Autocomplete-ClAQY5V5.js} +1 -1
- package/dist/Autocomplete-CzfOoMve.js +48 -0
- package/dist/Autocomplete-DToic2Cg.js +49 -0
- package/dist/{CSharp-Re2Hef51.js → CSharp-23QccebX.js} +1 -1
- package/dist/{Calender-BdLz8uVu.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-C4vv9clz.js → Checkbox-SLi7MK1r.js} +1 -1
- package/dist/Code-BVTjF5rW.js +54 -0
- package/dist/{Code-oAwc2PqM.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-Bfcwgxhl.js → DataExport-YTc4EX6l.js} +1 -1
- package/dist/{DataExport.vue_vue_type_script_setup_true_lang-DxEJA5Ee.js → DataExport.vue_vue_type_script_setup_true_lang-amvVzv4A.js} +34 -40
- package/dist/{DataImport-BPx3VvYv.js → DataImport-ByV8MQkV.js} +1 -1
- package/dist/{DataImport.vue_vue_type_script_setup_true_lang-5gkTElFL.js → DataImport.vue_vue_type_script_setup_true_lang-CYwCKg5Z.js} +61 -66
- package/dist/{Date-FuMiaUxd.js → Date-DbTzQla9.js} +1 -1
- package/dist/Date-DpiWNuFs.js +37 -0
- package/dist/DateRange-Su0Q2cwY.js +57 -0
- package/dist/{DateTime-CyCcFf_l.js → DateTime-C3NrioJi.js} +1 -1
- package/dist/DateTime-QyKfqaVG.js +38 -0
- package/dist/{DateTimeRange-Db9BDn2x.js → DateTimeRange-lytkhCjC.js} +11 -18
- package/dist/Daterange-D7ZHkOmo.js +57 -0
- package/dist/{Decimal-F1-H75HK.js → Decimal-CTTT98BQ.js} +1 -1
- package/dist/Delete-MfXy7gUi.js +56 -0
- package/dist/{Detail-AhGw1lSI.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-1ATMHoXy.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-BlsoOd-w.js → Index-DJJcNPgN.js} +61 -67
- package/dist/{Index-Bk0v21aV.js → Index-DlrpDUD3.js} +1 -1
- package/dist/Index-DxvVjg9S.js +70 -0
- package/dist/{Index-CXbpni6W.js → Index-G36KYPCK.js} +1 -1
- package/dist/Index-dTIwhIau.js +4 -0
- package/dist/{Index-CY3JroZR.js → Index-x4c71OJZ.js} +1 -1
- package/dist/{Index.vue_vue_type_script_setup_true_lang-DqLF_iyM.js → Index.vue_vue_type_script_setup_true_lang-8g0L1e0O.js} +16 -23
- package/dist/{Index.vue_vue_type_script_setup_true_lang-C5HbpsSj.js → Index.vue_vue_type_script_setup_true_lang-oQyBcgPa.js} +16 -23
- package/dist/{Index.vue_vue_type_style_index_0_lang-fOkzw7J1.js → Index.vue_vue_type_style_index_0_lang-DVYceMeD.js} +30 -36
- package/dist/{Install-DWNrbMRl.js → Install-BW_ulT9I.js} +21 -28
- package/dist/Int-BRqYiJo7.js +41 -0
- package/dist/{Int-E-wewJ2r.js → Int-BYSjwPG_.js} +9 -16
- package/dist/List-DAFqVlam.js +73 -0
- package/dist/Maintaince-B8mM4PEp.js +14 -0
- package/dist/{Markdown-DBvQ_Q4I.js → Markdown-BXKlgSON.js} +1 -1
- package/dist/Month-BHvq72xE.js +37 -0
- package/dist/Month-BiW1DL44.js +38 -0
- package/dist/{Month-BMgXtQVp.js → Month-DKeTzNrD.js} +1 -1
- package/dist/{Normal-TE2XNiGu.js → Normal-CgSREifM.js} +48 -54
- package/dist/Paging-D02YApLL.js +94 -0
- package/dist/{PagingHeader-DHI1x6n2.js → PagingHeader-DJ7MmfGl.js} +37 -44
- package/dist/{PagingRow-CdXpvFNC.js → PagingRow-BM1GMtrr.js} +21 -28
- package/dist/QueryApi-ChpV_S8J.js +13 -0
- package/dist/{Racebar-CZVxC7hF.js → Racebar-CZlaC5Gm.js} +43 -49
- package/dist/{Radio-BdXipXA2.js → Radio-BPq3WJa4.js} +1 -1
- package/dist/{Register-t3oEydyQ.js → Register-ByxrZyWq.js} +71 -77
- package/dist/RichText-BtQDAhn9.js +41 -0
- package/dist/{SearchFooter-BpJrsqZV.js → SearchFooter-B61gsy3w.js} +1 -1
- package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-XXawph5O.js → SearchFooter.vue_vue_type_style_index_0_lang-CZv7EteY.js} +1 -1
- package/dist/{SearchForm-CwRcTMlw.js → SearchForm-CLvZoPGQ.js} +1 -1
- package/dist/{SearchForm.vue_vue_type_style_index_0_lang-DU69JJ1z.js → SearchForm.vue_vue_type_style_index_0_lang-DnjtHyTb.js} +34 -40
- package/dist/Select-C_afSAvf.js +111 -0
- package/dist/{Select-DGGUWJY4.js → Select-DGXJMnE9.js} +19 -26
- package/dist/{Select-UUymDTLU.js → Select-Nb9K2FMY.js} +1 -1
- package/dist/{Single-C7v2P3LF.js → Single-C-2qA2MU.js} +111 -117
- package/dist/{Statistic-C6J7v2xF.js → Statistic-B1K-qIZb.js} +43 -51
- package/dist/{Stock-Ct-HKlln.js → Stock-C560McFR.js} +1 -1
- package/dist/{Stock-DSnE1Bzv.js → Stock-_rnn0B8I.js} +1 -1
- package/dist/{Stock.vue_vue_type_style_index_0_lang-DtH6bO8x.js → Stock.vue_vue_type_style_index_0_lang-BEwvRtU6.js} +31 -39
- package/dist/{Switch-Bi8hhG_X.js → Switch-BadvkLSw.js} +1 -1
- package/dist/{Table-SSfqvIzl.js → Table-B46N43V3.js} +67 -72
- package/dist/{Table-D0P60c_b.js → Table-Dk48tQ1r.js} +63 -70
- 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-CzUa7wZ2.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-6sdSDjF7.js → Tree-DVeTdmmL.js} +64 -70
- package/dist/TreeNode-BScAFHPZ.js +37 -0
- package/dist/{Update-Bgn_-Tk7.js → Update-BbU5H_Qf.js} +14 -21
- package/dist/{UpdateChild-BOHAM_TM.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-BbZI6olW.js → Year-CTo-9KjE.js} +1 -1
- package/dist/main-65efBfek.js +19835 -0
- package/dist/main.js +47 -49
- 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 +2 -2
- package/dist/Article-X51Oz1hI.js +0 -198
- package/dist/Autocomplete-Ci1CXGQE.js +0 -55
- package/dist/Autocomplete-Co_6LMOR.js +0 -54
- package/dist/Callback-DwiifiR-.js +0 -27
- package/dist/Cascader-BrjhyzSI.js +0 -88
- package/dist/Cascader-DuG1TFF-.js +0 -48
- package/dist/Checkbox-DAsy2Gtb.js +0 -77
- package/dist/Code-CNioVNv0.js +0 -4
- package/dist/Code-CQQJJ5Jx.js +0 -61
- package/dist/Code-DAMTIprA.js +0 -43
- package/dist/Code.vue_vue_type_style_index_0_lang-G1i4uKJp.js +0 -66
- package/dist/Column-DMN_0BnR.js +0 -75
- package/dist/Comment-D4gvdlOG.js +0 -105
- package/dist/Compare-B9ms7AkH.js +0 -63
- package/dist/Compare-OHWeHehJ.js +0 -33
- package/dist/Copy-B6pQ--3T.js +0 -50
- package/dist/Custom-Dt_-KfRY.js +0 -58
- package/dist/Date-DAud0Tf9.js +0 -44
- package/dist/DateRange-ClHpJNRt.js +0 -64
- package/dist/DateTime-BO1c3xG2.js +0 -45
- package/dist/Daterange-BlMa4jnq.js +0 -64
- package/dist/Delete-BVH0G9h3.js +0 -63
- package/dist/Dictionary-DwcOV9xl.js +0 -60
- package/dist/Email-BljE8jDr.js +0 -55
- package/dist/Image-Bv2Ducoj.js +0 -9
- package/dist/Index-BFuHqDAs.js +0 -4
- package/dist/Index-D-TyDnGW.js +0 -4
- package/dist/Index-D2H5yTHn.js +0 -4
- package/dist/Index-YG1SBeIv.js +0 -76
- package/dist/Int-g8pM8ZyY.js +0 -47
- package/dist/List-ow09enu_.js +0 -80
- package/dist/Maintaince-Ctz2-ztL.js +0 -21
- package/dist/Month-CPMc1YrA.js +0 -45
- package/dist/Month-bDRWnCLy.js +0 -44
- package/dist/Paging-668tf97P.js +0 -100
- package/dist/QueryApi-UJNYVuJd.js +0 -21
- package/dist/RichText-BDRC1veI.js +0 -48
- package/dist/Select-RlOWoUwz.js +0 -118
- package/dist/Text-McD2Rcic.js +0 -59
- package/dist/Text-Stj6-whX.js +0 -4
- package/dist/Text-V0WQUxoe.js +0 -60
- package/dist/Text.vue_vue_type_style_index_0_lang-BuHdoSkB.js +0 -60
- package/dist/TextLink-DmRFUHgF.js +0 -66
- package/dist/Time-CgOW3aic.js +0 -44
- package/dist/Timeline-BV-wfL2F.js +0 -60
- package/dist/Tree-r6FMB9WN.js +0 -123
- package/dist/TreeNode-Y4ktCxAQ.js +0 -43
- package/dist/Upload-BGYLdPIM.js +0 -151
- package/dist/Upload-Df16iaP1.js +0 -73
- package/dist/UploadApi-CnAUAXVp.js +0 -21
- package/dist/Year-OqMhzqjx.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-RpQODrQa.js +0 -8936
@@ -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),
|