halo-pc 1.0.38 → 1.0.40
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{Article-H_clf90b.js → Article-CqtkXVmQ.js} +29 -27
- package/dist/{ArticleFooter-BLi4TNA7.js → ArticleFooter-DeJdTtZD.js} +10 -10
- package/dist/{Autocomplete-DMm6oI1g.js → Autocomplete-0fxB2_FC.js} +1 -1
- package/dist/{Autocomplete-BF9x0F4f.js → Autocomplete-BfhYwZ5G.js} +7 -7
- package/dist/{Autocomplete-CcIzTPSr.js → Autocomplete-LQiKcvz1.js} +6 -6
- package/dist/{CSharp-CZOchOE-.js → CSharp-BIFRQLaK.js} +1 -1
- package/dist/{Calender-BoQV7bhA.js → Calender-DPNTn-S4.js} +4 -4
- package/dist/{Callback-79Bw4RwY.js → Callback-Ci5KrWOC.js} +6 -6
- package/dist/{Cascader-D1Ou5OSg.js → Cascader-CnOEgPDf.js} +1 -1
- package/dist/{Cascader-DMhl98vw.js → Cascader-Vhc81TDV.js} +14 -14
- package/dist/{Checkbox-C6t6S7ii.js → Checkbox-CIim5NiB.js} +1 -1
- package/dist/{Checkbox-DtrXMDBR.js → Checkbox-D9Sp6ZGQ.js} +7 -7
- package/dist/{Code-B8ISTTYK.js → Code-BEjqqeFZ.js} +3 -3
- package/dist/Code-BSrEPuXk.js +4 -0
- package/dist/{Code-DIGn8Raz.js → Code-Dp1-k8sW.js} +1 -1
- package/dist/{Code-DDacfgvl.js → Code-yDKaH1uF.js} +10 -8
- package/dist/Code.vue_vue_type_style_index_0_lang-CmkomJXY.js +59 -0
- package/dist/{Column-DjA11efs.js → Column-B0ViSver.js} +20 -20
- package/dist/{Comment-Ixu0gPk3.js → Comment-tU2wBvGO.js} +4 -2
- package/dist/{Compare-NN40QJWm.js → Compare-D7Gz-lE9.js} +1 -1
- package/dist/{Compare-C1uq4lgK.js → Compare-DqvGyQWA.js} +5 -5
- package/dist/{Copy-BcfSvyWG.js → Copy-Dm1LH9qB.js} +3 -3
- package/dist/Custom-CLKAPWEo.js +49 -0
- package/dist/{DataExport-DNGgWqsx.js → DataExport-BDftKI0U.js} +1 -1
- package/dist/{DataExport.vue_vue_type_script_setup_true_lang-tTTDFXQV.js → DataExport.vue_vue_type_script_setup_true_lang-Dzy9UC11.js} +8 -8
- package/dist/{DataImport-CI9eM5T1.js → DataImport-CRYaaQfA.js} +1 -1
- package/dist/{DataImport.vue_vue_type_script_setup_true_lang-BCMd1s45.js → DataImport.vue_vue_type_script_setup_true_lang-D7UdCnBM.js} +37 -37
- package/dist/{Date-CZGbZKjB.js → Date-DPPiYLWw.js} +4 -4
- package/dist/{Date-CGyzi8yX.js → Date-Dlh1_S7p.js} +1 -1
- package/dist/{DateRange-MbbkmZ_Y.js → DateRange-BgF_T3ls.js} +7 -7
- package/dist/{DateTime-DHrHmRLL.js → DateTime-CNjPeK9t.js} +1 -1
- package/dist/{DateTime-DqUOXGWH.js → DateTime-DP-VfmtN.js} +6 -6
- package/dist/{DateTimeRange-DgXQkZLx.js → DateTimeRange-DbEpW4nB.js} +5 -5
- package/dist/{Daterange-DLHJuRur.js → Daterange-DHVjhrK9.js} +5 -5
- package/dist/{Decimal-BUJuuvfr.js → Decimal-BDEWVSsK.js} +1 -1
- package/dist/{Delete-BGMk0orl.js → Delete-Bl0GmthL.js} +1 -1
- package/dist/{Detail-D4KzWdHQ.js → Detail-BozyhOTt.js} +12 -12
- package/dist/{Dictionary-Esd3ERAq.js → Dictionary-CJwZPQz6.js} +1 -1
- package/dist/{Email-C9K09hwC.js → Email-D5X1SzuJ.js} +8 -8
- package/dist/{File-ai1eYO7v.js → File-DixK0K7p.js} +34 -32
- package/dist/Image-BrelhCGo.js +9 -0
- package/dist/Index-BeM6hKX9.js +4 -0
- package/dist/{Index-DsZPtDYE.js → Index-BkfLyqpm.js} +34 -34
- package/dist/{Index-DYHrSEZ5.js → Index-D2FOeoNQ.js} +1 -1
- package/dist/Index-D8UVsXwf.js +4 -0
- package/dist/{Index-B5o7uf36.js → Index-DbXgnBz6.js} +2 -2
- package/dist/Index-FL-dxfFB.js +4 -0
- package/dist/Index-fWOqfFkG.js +4 -0
- package/dist/{Index-S1btGSGD.js → Index-j15c7lwJ.js} +1 -1
- package/dist/Index.vue_vue_type_script_setup_true_lang-ByxBNAdg.js +80 -0
- package/dist/{Index.vue_vue_type_script_setup_true_lang-BjE0VeTO.js → Index.vue_vue_type_script_setup_true_lang-DT7eOyjs.js} +23 -23
- package/dist/{Install-D-MgafyF.js → Install-WR3b4IfI.js} +1 -1
- package/dist/{Int-CnvfCxgn.js → Int-CWsDtoxE.js} +7 -7
- package/dist/{Int-D3RqVcmN.js → Int-GGWiUqO2.js} +4 -4
- package/dist/List-kRCsHp6d.js +71 -0
- package/dist/{Maintaince-BIgEbjrq.js → Maintaince-BG8MUi3A.js} +1 -1
- package/dist/{Markdown-hax8By5O.js → Markdown-nVfQs7kc.js} +1 -1
- package/dist/{Month-5lTUiWin.js → Month-B1icZmL4.js} +4 -4
- package/dist/{Month-CnVTSnyK.js → Month-CxKMP4kO.js} +1 -1
- package/dist/{Month-BDkwv-vc.js → Month-DnYlAi7k.js} +4 -4
- package/dist/{Normal-DoE9t7d7.js → Normal-RcqEyIFN.js} +23 -21
- package/dist/Paging-DrdGzxeP.js +94 -0
- package/dist/{PagingHeader-BFtE6jSy.js → PagingHeader-C8UpM9Kj.js} +27 -25
- package/dist/{PagingRow-CSB-kwMz.js → PagingRow-oQWCofO4.js} +8 -8
- package/dist/{Racebar-Bc-dDRss.js → Racebar-CvoF2ySW.js} +24 -22
- package/dist/{Radio-CMGOtMnx.js → Radio-DhjfkC14.js} +1 -1
- package/dist/{Register-8wi0uixs.js → Register-B0Vx60wY.js} +33 -33
- package/dist/{RichText-BR4Kvx0J.js → RichText-4wrLw9cy.js} +7 -7
- package/dist/{SearchForm-BMTSPce_.js → SearchForm-BHVnQaSL.js} +1 -1
- package/dist/{SearchForm.vue_vue_type_style_index_0_lang-wiTxKu-H.js → SearchForm.vue_vue_type_style_index_0_lang-ByICIL6w.js} +35 -35
- package/dist/SearchHeader-C9yovXli.js +4 -0
- package/dist/SearchHeader.vue_vue_type_style_index_0_lang-CHAg97-Y.js +60 -0
- package/dist/{Select-DAxdpZlO.js → Select-BDoCqD3I.js} +10 -10
- package/dist/{Select-MBD4Simw.js → Select-CX4i5KPQ.js} +1 -1
- package/dist/{Select-DnFyey0n.js → Select-vgwpegBi.js} +12 -12
- package/dist/Single-C3629BdC.js +317 -0
- package/dist/{Statistic-CTxHNeof.js → Statistic-Dxa-CZ8G.js} +10 -8
- package/dist/{Statistic-BS_DA72m.js → Statistic-WPezAlUn.js} +32 -30
- package/dist/{Stock-CtmevqBK.js → Stock-BD5Acf8y.js} +8 -6
- package/dist/{Stock-CbucObTu.js → Stock-EPM3j2f_.js} +1 -1
- package/dist/{Stock.vue_vue_type_style_index_0_lang-LfsWg1Ps.js → Stock.vue_vue_type_style_index_0_lang-D5RR2MRP.js} +14 -12
- package/dist/{Switch-BlXAy9qH.js → Switch-B0XN4K-9.js} +1 -1
- package/dist/Table-BklK1hSh.js +317 -0
- package/dist/{Table-Da9gan1Y.js → Table-JFdOXuME.js} +42 -40
- package/dist/Text-CNtHdodK.js +4 -0
- package/dist/{Text-CbZlEVTJ.js → Text-DrJkdxZF.js} +6 -6
- package/dist/{Text-C72NLZMt.js → Text-KAuEjP7I.js} +3 -3
- package/dist/{Text.vue_vue_type_style_index_0_lang-aMaBccpg.js → Text.vue_vue_type_style_index_0_lang-BJIbv4kF.js} +1 -1
- package/dist/{TextLink-SAnZ7BfX.js → TextLink-BnijIoEJ.js} +7 -7
- package/dist/{Textarea-DphCUpXp.js → Textarea-3SWLqQvO.js} +1 -1
- package/dist/{Time-DjE8yYdK.js → Time-C3qlNZkJ.js} +7 -7
- package/dist/{Timeline-D11vjkpZ.js → Timeline-B6hUIYhL.js} +12 -10
- package/dist/{Tree-kich05vY.js → Tree-DBvFF4Rj.js} +77 -75
- package/dist/{Tree-DK73Ou_F.js → Tree-JexLPBXX.js} +5 -3
- package/dist/{TreeNode-Dx6cZ31Z.js → TreeNode-BOWB2WN9.js} +4 -4
- package/dist/{Update-D2Plm_AG.js → Update-CDLYYwgj.js} +10 -10
- package/dist/{UpdateChild-BXV7QqaP.js → UpdateChild-DUG7pAuO.js} +11 -11
- package/dist/{Upload-B87EDynn.js → Upload-B2hbxDsT.js} +49 -49
- package/dist/{Upload-CHPjMGFZ.js → Upload-mlk6Y4Po.js} +13 -13
- package/dist/{Year-BPFmIiPX.js → Year-BRsJ7b1J.js} +1 -1
- package/dist/{Year-C93IJgc8.js → Year-BUF60NmB.js} +4 -4
- package/dist/{main-nvsTmKXH.js → main-DymfKjqO.js} +4363 -4204
- package/dist/main.js +144 -141
- package/esm/coms/commons/Table.vue.d.ts +1 -1
- package/esm/coms/drivers/Index.vue.d.ts +2 -2
- package/esm/coms/globals/Menu.vue.d.ts +1 -1
- package/esm/coms/globals/MenuItem.vue.d.ts +1 -1
- package/esm/coms/headers/@types/HeaderProps.d.ts +1 -1
- package/esm/coms/headers/Index.vue.d.ts +1 -1
- package/esm/coms/layouts/Index.vue.d.ts +3 -3
- package/esm/coms/layouts/Side.vue.d.ts +2 -2
- package/esm/coms/layouts/Top.vue.d.ts +1 -1
- package/esm/coms/lists/Racebar.vue.d.ts +1 -1
- package/esm/coms/lists/Statistic.vue.d.ts +1 -1
- package/esm/coms/lists/Tree.vue.d.ts +3 -3
- package/esm/coms/pages/@types/SchemaProps.d.ts +2 -1
- package/esm/coms/pages/Column.vue.d.ts +1 -1
- package/esm/coms/pages/Custom.vue.d.ts +6 -6
- package/esm/coms/pages/List.vue.d.ts +5 -3
- package/esm/coms/pages/Paging.vue.d.ts +5 -3
- package/esm/coms/pages/Single.vue.d.ts +3 -3
- package/esm/coms/pagings/@types/SearchHeaderProps.d.ts +9 -0
- package/esm/coms/pagings/@types/index.d.ts +2 -2
- package/esm/coms/pagings/Article.vue.d.ts +2 -2
- package/esm/coms/pagings/Index.vue.d.ts +4 -2
- package/esm/coms/pagings/SearchForm.vue.d.ts +1 -1
- package/esm/coms/pagings/SearchHeader.vue.d.ts +19 -0
- package/esm/coms/pagings/Table.vue.d.ts +4 -2
- package/esm/coms/partials/@types/PagingHeaderProps.d.ts +2 -1
- package/esm/coms/singles/Index.vue.d.ts +1 -1
- package/esm/coms/singles/Normal.vue.d.ts +1 -1
- package/esm/coms/singles/Table.vue.d.ts +1 -1
- package/esm/coms/singles/Tree.vue.d.ts +1 -1
- package/package.json +6 -6
- package/dist/Code-BMlBvnqa.js +0 -4
- package/dist/Code.vue_vue_type_style_index_0_lang-hHYTH50F.js +0 -57
- package/dist/Custom-Dn9_vPuD.js +0 -58
- package/dist/Image-CfY4G1Yn.js +0 -9
- package/dist/Index-CH3nwnPZ.js +0 -4
- package/dist/Index-CTjDkp7e.js +0 -4
- package/dist/Index-DSZ8wa7U.js +0 -4
- package/dist/Index-DVdiF3gr.js +0 -4
- package/dist/Index.vue_vue_type_script_setup_true_lang-H8ogKL2I.js +0 -76
- package/dist/List-DA4SO_le.js +0 -71
- package/dist/Paging-5qsCTRWy.js +0 -92
- package/dist/SearchFooter-DOC21dmS.js +0 -4
- package/dist/SearchFooter.vue_vue_type_style_index_0_lang-CoJZtP84.js +0 -55
- package/dist/Single-D6x6VV_B.js +0 -317
- package/dist/Table-CqsfAMh7.js +0 -310
- package/dist/Text-CHvsKR9H.js +0 -4
@@ -1,9 +1,9 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import {
|
1
|
+
import { defineComponent as Q, toRefs as W, ref as p, onMounted as Y, computed as k, watch as Z, resolveComponent as x, openBlock as I, createElementBlock as A, normalizeClass as ee, unref as t, createVNode as B, withCtx as F, createBlock as le, createTextVNode as ae, toDisplayString as te, isRef as oe, createElementVNode as re } from "vue";
|
2
|
+
import { p as ue, K as P, i as ne, _ as R, l as ie, d as i, h as C, X as U, u as O, k as se } from "./main-DymfKjqO.js";
|
3
3
|
const de = {
|
4
4
|
key: 0,
|
5
5
|
class: "fa fa-upload"
|
6
|
-
}, pe = ["src"],
|
6
|
+
}, pe = ["src"], fe = /* @__PURE__ */ Q({
|
7
7
|
__name: "Upload",
|
8
8
|
props: {
|
9
9
|
schema: {},
|
@@ -14,50 +14,50 @@ const de = {
|
|
14
14
|
modelValue: {}
|
15
15
|
},
|
16
16
|
emits: ["submit", "change", "update:modelValue"],
|
17
|
-
setup(
|
18
|
-
let h =
|
17
|
+
setup(S, { emit: $ }) {
|
18
|
+
let h = $, z = S, { table: d, field: u, row: g, set: me, modelValue: E } = W(z), m = p(!1), j = p({}), c = p([]), N = p(), L = p(), f = !0, y = p({ action: "", data: null }), H = (e) => {
|
19
19
|
let l = se.getUploadToken();
|
20
20
|
e.forEach((o) => {
|
21
|
-
let a = `${
|
21
|
+
let a = `${U.upload.address}/api/objects/download?slug=${o[0]}&token=${l}`;
|
22
22
|
c.value.push({ name: o[1], url: a });
|
23
23
|
});
|
24
|
-
},
|
25
|
-
|
24
|
+
}, K = async (e) => {
|
25
|
+
f = !1;
|
26
26
|
let l = `/upload?table=${d.value.name}&field=${u.value.name}`;
|
27
|
-
y.value.action =
|
27
|
+
y.value.action = P.api.url + l;
|
28
28
|
let o = new ne();
|
29
|
-
o.path = l, o.method = "POST", await
|
29
|
+
o.path = l, o.method = "POST", await R.prepareAsync(o);
|
30
30
|
let a = o.getHeader("Authorization");
|
31
31
|
return j.value.Authorization = a, u.value.control.fileType == "Image" ? e.type.indexOf("image") == 0 ? Promise.resolve() : (ie.error("请上传正确的图片文件"), Promise.reject()) : Promise.resolve();
|
32
|
-
},
|
33
|
-
|
34
|
-
let a = [e.name.replace(
|
35
|
-
return
|
32
|
+
}, X = (e, l) => {
|
33
|
+
f = !1;
|
34
|
+
let a = [e.name.replace(P.api.url, "")];
|
35
|
+
return R.post("/upload/delete", { files: a }).then(({ data: r }) => {
|
36
36
|
let n = l.indexOf(e), _ = i.array.removeIndex(s.value, n, ",");
|
37
37
|
if (h("update:modelValue", _), u.value.control.name) {
|
38
|
-
let
|
39
|
-
|
38
|
+
let v = d.value.fields.find((w) => w.name == u.value.control.name), b = C.getValue(r.value, n, d.value, v), V = i.array.removeIndex(b, n, ",");
|
39
|
+
C.setValue(V, r.value, d.value, n, v);
|
40
40
|
}
|
41
41
|
return Promise.resolve();
|
42
42
|
}).catch(() => Promise.reject());
|
43
|
-
},
|
44
|
-
m.value = !0,
|
45
|
-
},
|
46
|
-
},
|
47
|
-
|
43
|
+
}, q = (e) => {
|
44
|
+
m.value = !0, N.value = e.url;
|
45
|
+
}, D = (e, l, o) => {
|
46
|
+
}, M = (e, l) => {
|
47
|
+
R.handleResponseBody(e).then((o) => {
|
48
48
|
let { name: a, url: r } = o.data[0];
|
49
|
-
|
49
|
+
U.upload.method == "box" || i.file.isImage(r) || (l.url = O.getFileIcon(r));
|
50
50
|
let _ = i.array.split(s.value, ",", r).join(",");
|
51
51
|
if (s.value = _, u.value.control.name) {
|
52
|
-
let
|
53
|
-
g.value[
|
52
|
+
let v = d.value.fields.find((w) => w.name == u.value.control.name), b = g.value[v.value], V = i.array.split(b, ",", a);
|
53
|
+
g.value[v.value] = V.join(",");
|
54
54
|
}
|
55
55
|
}).catch(() => {
|
56
56
|
c.value = [];
|
57
57
|
}).finally(() => {
|
58
|
-
|
58
|
+
f = !0;
|
59
59
|
});
|
60
|
-
},
|
60
|
+
}, T = () => {
|
61
61
|
if (c.value = [], !s.value)
|
62
62
|
return;
|
63
63
|
let e = i.array.split(s.value, ","), l = [];
|
@@ -66,53 +66,53 @@ const de = {
|
|
66
66
|
l = i.array.split(r, ",");
|
67
67
|
}
|
68
68
|
let o = i.array.combine(e, l);
|
69
|
-
if (
|
69
|
+
if (U.upload.method == "box")
|
70
70
|
H(o);
|
71
71
|
else {
|
72
|
-
let a = i.url.httpOrHttps(s.value) ? s.value :
|
73
|
-
i.file.isImage(a) ? r.url = a : r.url =
|
72
|
+
let a = i.url.httpOrHttps(s.value) ? s.value : P.api.url + s.value, r = { name: a, url: null };
|
73
|
+
i.file.isImage(a) ? r.url = a : r.url = O.getFileIcon(a), c.value.push(r);
|
74
74
|
}
|
75
75
|
};
|
76
76
|
Y(() => {
|
77
|
-
|
77
|
+
T();
|
78
78
|
});
|
79
|
-
let s =
|
79
|
+
let s = k({
|
80
80
|
get() {
|
81
81
|
return E.value;
|
82
82
|
},
|
83
83
|
set(e) {
|
84
84
|
h("update:modelValue", e), h("change", e);
|
85
85
|
}
|
86
|
-
}),
|
86
|
+
}), G = k(() => u.value.control.preview ? "picture-card" : null), J = k(() => J);
|
87
87
|
return Z(() => s.value, (e, l) => {
|
88
|
-
|
88
|
+
f && T();
|
89
89
|
}), (e, l) => {
|
90
|
-
const o =
|
91
|
-
return I(),
|
90
|
+
const o = x("el-button"), a = x("el-upload"), r = x("el-dialog");
|
91
|
+
return I(), A("div", {
|
92
92
|
class: ee(t(u).control.preview ? "control-file-preview" : "control-file")
|
93
93
|
}, [
|
94
|
-
|
94
|
+
B(a, {
|
95
95
|
ref_key: "uploadRef",
|
96
96
|
ref: L,
|
97
|
-
"list-type": t(
|
97
|
+
"list-type": t(G),
|
98
98
|
action: t(y).action,
|
99
99
|
headers: t(j),
|
100
100
|
data: t(y).data,
|
101
101
|
"file-list": t(c),
|
102
|
-
"before-upload": t(
|
103
|
-
"before-remove": t(
|
104
|
-
"on-preview": t(
|
105
|
-
"on-success": t(
|
106
|
-
"on-progress": t(
|
102
|
+
"before-upload": t(K),
|
103
|
+
"before-remove": t(X),
|
104
|
+
"on-preview": t(q),
|
105
|
+
"on-success": t(M),
|
106
|
+
"on-progress": t(D),
|
107
107
|
disabled: t(u).readonly
|
108
108
|
}, {
|
109
|
-
default:
|
110
|
-
t(u).control.preview ? (I(),
|
109
|
+
default: F(() => [
|
110
|
+
t(u).control.preview ? (I(), A("i", de)) : (I(), le(o, {
|
111
111
|
key: 1,
|
112
112
|
icon: "el-icon-upload",
|
113
113
|
type: "primary"
|
114
114
|
}, {
|
115
|
-
default:
|
115
|
+
default: F(() => [
|
116
116
|
ae(te(t(ue)("common.click_upload")), 1)
|
117
117
|
]),
|
118
118
|
_: 1
|
@@ -120,16 +120,16 @@ const de = {
|
|
120
120
|
]),
|
121
121
|
_: 1
|
122
122
|
}, 8, ["list-type", "action", "headers", "data", "file-list", "before-upload", "before-remove", "on-preview", "on-success", "on-progress", "disabled"]),
|
123
|
-
|
123
|
+
B(r, {
|
124
124
|
draggable: "",
|
125
125
|
"append-to-body": "",
|
126
126
|
modelValue: t(m),
|
127
127
|
"onUpdate:modelValue": l[0] || (l[0] = (n) => oe(m) ? m.value = n : m = n)
|
128
128
|
}, {
|
129
|
-
default:
|
129
|
+
default: F(() => [
|
130
130
|
re("img", {
|
131
131
|
width: "100%",
|
132
|
-
src: t(
|
132
|
+
src: t(N),
|
133
133
|
alt: ""
|
134
134
|
}, null, 8, pe)
|
135
135
|
]),
|
@@ -140,5 +140,5 @@ const de = {
|
|
140
140
|
}
|
141
141
|
});
|
142
142
|
export {
|
143
|
-
|
143
|
+
fe as default
|
144
144
|
};
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { defineComponent as b, toRefs as
|
2
|
-
import {
|
3
|
-
const
|
1
|
+
import { defineComponent as b, toRefs as w, ref as r, onMounted as U, computed as x, resolveComponent as C, openBlock as d, createElementBlock as n, Fragment as E, renderList as F, unref as s, createVNode as $, isRef as y, withCtx as B, createElementVNode as I } from "vue";
|
2
|
+
import { X as c, k as K, d as v, K as N, u as R } from "./main-DymfKjqO.js";
|
3
|
+
const X = { class: "text-upload" }, j = ["src", "onClick", "alt"], A = ["src"], z = /* @__PURE__ */ b({
|
4
4
|
__name: "Upload",
|
5
5
|
props: {
|
6
6
|
schema: {},
|
@@ -11,12 +11,12 @@ const R = { class: "text-upload" }, j = ["src", "onClick", "alt"], A = ["src"],
|
|
11
11
|
modelValue: {}
|
12
12
|
},
|
13
13
|
setup(f) {
|
14
|
-
let g = f, { table: H, field: L, set: M, row: O, modelValue: _ } =
|
14
|
+
let g = f, { table: H, field: L, set: M, row: O, modelValue: _ } = w(g), i = r(), t = r(!1), p = r([]), m = r(), h = (e) => {
|
15
15
|
t.value = !0, m.value = e.url;
|
16
|
-
},
|
16
|
+
}, k = () => {
|
17
17
|
if (o.value)
|
18
18
|
if (c.upload.method == "box")
|
19
|
-
|
19
|
+
K.getUploadToken().then((e) => {
|
20
20
|
o.value.split(",").forEach((a) => {
|
21
21
|
let l = `${c.upload.address}/api/objects/download?slug=${a}&token=${e}`;
|
22
22
|
p.value.push({ name: a, url: l });
|
@@ -24,16 +24,16 @@ const R = { class: "text-upload" }, j = ["src", "onClick", "alt"], A = ["src"],
|
|
24
24
|
});
|
25
25
|
else {
|
26
26
|
let e = v.url.httpOrHttps(o.value) ? o.value : N.api.url + o.value;
|
27
|
-
v.file.isImage(e) ? i.value = e : i.value =
|
27
|
+
v.file.isImage(e) ? i.value = e : i.value = R.getFileIcon(e);
|
28
28
|
}
|
29
29
|
};
|
30
|
-
|
31
|
-
|
30
|
+
U(() => {
|
31
|
+
k();
|
32
32
|
});
|
33
33
|
let o = x(() => _.value);
|
34
34
|
return (e, u) => {
|
35
35
|
const a = C("el-dialog");
|
36
|
-
return d(), n("div",
|
36
|
+
return d(), n("div", X, [
|
37
37
|
(d(!0), n(E, null, F(s(p), (l, V) => (d(), n("img", {
|
38
38
|
class: "detail-image",
|
39
39
|
src: l.url,
|
@@ -48,8 +48,8 @@ const R = { class: "text-upload" }, j = ["src", "onClick", "alt"], A = ["src"],
|
|
48
48
|
modelValue: s(t),
|
49
49
|
"onUpdate:modelValue": u[0] || (u[0] = (l) => y(t) ? t.value = l : t = l)
|
50
50
|
}, {
|
51
|
-
default:
|
52
|
-
|
51
|
+
default: B(() => [
|
52
|
+
I("img", {
|
53
53
|
width: "100%",
|
54
54
|
src: s(m)
|
55
55
|
}, null, 8, A)
|
@@ -61,5 +61,5 @@ const R = { class: "text-upload" }, j = ["src", "onClick", "alt"], A = ["src"],
|
|
61
61
|
}
|
62
62
|
});
|
63
63
|
export {
|
64
|
-
|
64
|
+
z as default
|
65
65
|
};
|
@@ -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-CNtHdodK.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),
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { defineComponent as f, toRefs as _, computed as h, resolveComponent as V, openBlock as b, createBlock as g, unref as e, isRef as
|
2
|
-
import {
|
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 { T as k } from "./main-DymfKjqO.js";
|
3
3
|
const x = /* @__PURE__ */ f({
|
4
4
|
__name: "Year",
|
5
5
|
props: {
|
@@ -26,12 +26,12 @@ const x = /* @__PURE__ */ f({
|
|
26
26
|
const i = V("el-date-picker");
|
27
27
|
return b(), g(i, {
|
28
28
|
type: "year",
|
29
|
-
placeholder: e(
|
29
|
+
placeholder: e(k)(e(p).name, e(a).name),
|
30
30
|
"value-format": "YYYY",
|
31
31
|
disabled: e(a).control.readonly,
|
32
32
|
onChange: e(c),
|
33
33
|
modelValue: e(l),
|
34
|
-
"onUpdate:modelValue": n[0] || (n[0] = (m) =>
|
34
|
+
"onUpdate:modelValue": n[0] || (n[0] = (m) => Y(l) ? l.value = m : l = m)
|
35
35
|
}, null, 8, ["placeholder", "disabled", "onChange", "modelValue"]);
|
36
36
|
};
|
37
37
|
}
|