halo-pc 1.0.0 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{Article-lRUJ_OJd.js → Article-DievbQaS.js} +5 -4
- package/dist/{Autocomplete-BZC6nm8e.js → Autocomplete-9Dw6RZUJ.js} +7 -5
- package/dist/{Autocomplete-Bi_l7zwo.js → Autocomplete-BC9yw7bd.js} +16 -16
- package/dist/{Autocomplete-zUWf79cr.js → Autocomplete-CA9lAfcX.js} +1 -1
- package/dist/{CSharp-DE5nh_O4.js → CSharp-9TTxxjTd.js} +1 -1
- package/dist/{Calender-BySvLRJq.js → Calender-Cvt1swho.js} +1 -1
- package/dist/{Callback-DPPWZw_u.js → Callback-3bTaCoQy.js} +1 -1
- package/dist/{Cascader-BsPUAtBL.js → Cascader-B8DEKaGU.js} +22 -21
- package/dist/{Cascader-CHVgZRdk.js → Cascader-DCbx-Xfo.js} +4 -3
- package/dist/{Checkbox-BKx6xpIx.js → Checkbox-BPaKVuvv.js} +1 -1
- package/dist/{Code-Chrbr4KP.js → Code--ryEmiLJ.js} +7 -6
- package/dist/{Code-De2Uv1Px.js → Code-CnU5c_Xk.js} +1 -1
- package/dist/{Code-qQK_4OZ6.js → Code-DS9dwk0s.js} +13 -12
- package/dist/{Code-GhBd93wc.js → Code-DVUf05Qa.js} +1 -1
- package/dist/Code.vue_vue_type_style_index_0_lang-BQQ6Jatk.js +63 -0
- package/dist/{Column-DW9n0ein.js → Column-BzM9a1Ai.js} +9 -8
- package/dist/{Comment-Cod3CMDP.js → Comment-5gH4WF9C.js} +9 -8
- package/dist/{Copy-PYxtclV3.js → Copy-DcAUXAJq.js} +1 -1
- package/dist/{Custom-RoQe4kW_.js → Custom-lSjUvIAb.js} +7 -6
- package/dist/{DataExport-DzADLzN4.js → DataExport-Cl2LRmuu.js} +1 -1
- package/dist/{DataExport.vue_vue_type_script_setup_true_lang-B0DjFKm0.js → DataExport.vue_vue_type_script_setup_true_lang-DFuUWnTj.js} +14 -13
- package/dist/{DataImport-CgdY4oAg.js → DataImport-C8MggQON.js} +1 -1
- package/dist/{DataImport.vue_vue_type_script_setup_true_lang-BOpao8ja.js → DataImport.vue_vue_type_script_setup_true_lang-Qgy5ODur.js} +3 -3
- package/dist/{Date-Dr80JkYm.js → Date-BRd0o_ib.js} +1 -1
- package/dist/{DateRange-CxGZSLKj.js → DateRange-Q6osbxfF.js} +4 -3
- package/dist/{DateTime-BzjTeOtg.js → DateTime-DSUMg60T.js} +1 -1
- package/dist/{Daterange-BW8avRzM.js → Daterange-0qtKemST.js} +4 -3
- package/dist/{Decimal-CnaJfnyD.js → Decimal-BBYZHN-L.js} +1 -1
- package/dist/{Delete-D6JpsqZ1.js → Delete-DkSX4BUu.js} +6 -6
- package/dist/{Detail-DPV7avRs.js → Detail-DlJeIF7u.js} +11 -10
- package/dist/{Dictionary-Bf5W_pJM.js → Dictionary-DH3ukOm9.js} +4 -3
- package/dist/{File-KSe9LUnT.js → File-27vOsF_i.js} +16 -15
- package/dist/{Image-Cz3sAz75.js → Image-BejU08yZ.js} +1 -1
- package/dist/Index-BaxI_lNq.js +4 -0
- package/dist/Index-BnNuVSxA.js +4 -0
- package/dist/{Index-CFsJEcLx.js → Index-BtK4Riqs.js} +13 -13
- package/dist/{Index-CLJ35fvo.js → Index-ByC6qZPq.js} +9 -8
- package/dist/{Index-BAdLGn2X.js → Index-CtQ5rwyH.js} +1 -1
- package/dist/{Index-5i8NweBu.js → Index-DEDLWObm.js} +1 -1
- package/dist/{Index-BSQve4ig.js → Index-DMdBkj-p.js} +1 -1
- package/dist/{Index.vue_vue_type_script_setup_true_lang-Crvp7013.js → Index.vue_vue_type_script_setup_true_lang-3zk23es9.js} +21 -15
- package/dist/{Index.vue_vue_type_script_setup_true_lang-DaRdnMqk.js → Index.vue_vue_type_script_setup_true_lang-CCdCOtFc.js} +5 -5
- package/dist/{Index.vue_vue_type_style_index_0_lang-Cdczm43D.js → Index.vue_vue_type_style_index_0_lang-DZJCAfOb.js} +5 -4
- package/dist/{Install-Dx1MoGVW.js → Install-DzOXL82w.js} +12 -11
- package/dist/{Int-CfvU-cuR.js → Int-D3k7ZnH3.js} +9 -8
- package/dist/{List-BBpYGaUx.js → List-BeoZ2a1r.js} +9 -8
- package/dist/{Maintaince-Bs1_cOam.js → Maintaince-BMLmBQI9.js} +1 -1
- package/dist/{Markdown-DnPCfzFD.js → Markdown-BVhD-lo1.js} +1 -1
- package/dist/{Month-BbbcEZef.js → Month--2hXaJkd.js} +1 -1
- package/dist/{Normal-DglkJvhE.js → Normal-B3Xs7sFU.js} +27 -26
- package/dist/{Paging-C3ntgZx5.js → Paging-CqpaB0Mn.js} +29 -28
- package/dist/{QueryApi-CPyNgIKy.js → QueryApi-BqpLpqXT.js} +1 -1
- package/dist/{Racebar-Cseghx3Z.js → Racebar-CvsmozFH.js} +5 -4
- package/dist/{Radio-BrSONLbo.js → Radio-DMlWrRLV.js} +1 -1
- package/dist/{Register-D7gvuJiE.js → Register-B7KEYSdN.js} +9 -8
- package/dist/{RichText-DQvrv6V7.js → RichText-BX7WZjO-.js} +4 -3
- package/dist/{SearchFooter-DzxrSako.js → SearchFooter-BSHxMoTL.js} +1 -1
- package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-h-wf1D-o.js → SearchFooter.vue_vue_type_style_index_0_lang-CgAQfUu-.js} +1 -1
- package/dist/{SearchForm-Bo0nk2o4.js → SearchForm-CH5YWxKr.js} +1 -1
- package/dist/{SearchForm.vue_vue_type_style_index_0_lang-37Paf-X_.js → SearchForm.vue_vue_type_style_index_0_lang-By2w2biv.js} +4 -3
- package/dist/{Select-CIWL2QB_.js → Select-B7VB4CHX.js} +1 -1
- package/dist/{Select-DAIbIG11.js → Select-Dmr_Q332.js} +4 -3
- package/dist/{Select-Dqw7DP-6.js → Select-zZ9NAS5C.js} +1 -1
- package/dist/{Single-CfmqNmeA.js → Single-z7YLL5yh.js} +6 -5
- package/dist/{Statistic--Bow2CyV.js → Statistic-SFo_gi_N.js} +5 -4
- package/dist/{Stock-U6JTFd2R.js → Stock-DInt0W2k.js} +1 -1
- package/dist/{Stock-Bjygq6ei.js → Stock-cw7lE17E.js} +1 -1
- package/dist/{Stock.vue_vue_type_style_index_0_lang-BZ0BHU-F.js → Stock.vue_vue_type_style_index_0_lang-DKGuyQ08.js} +4 -3
- package/dist/{Switch-qLwHUFTL.js → Switch-gkN2GOAQ.js} +1 -1
- package/dist/{Table-DZH3tqZj.js → Table-BRSX9_5r.js} +2 -2
- package/dist/{Table-mDlEBMBs.js → Table-ByUYlERR.js} +9 -8
- package/dist/Text-CXXJqJ8N.js +4 -0
- package/dist/{Text.vue_vue_type_style_index_0_lang-DBJbK62d.js → Text.vue_vue_type_style_index_0_lang-Cwyu-GMz.js} +4 -3
- package/dist/{TextLink-B6X1_Ltd.js → TextLink-KC_xsgpi.js} +15 -14
- package/dist/{Textarea-CnS6jb4O.js → Textarea-DoE5sGRR.js} +1 -1
- package/dist/{Timeline-D5mZs0I9.js → Timeline-CTj1FAtR.js} +4 -3
- package/dist/{Tree-NDzpgIjQ.js → Tree-B2ILQtRK.js} +4 -3
- package/dist/{Tree-V2yFzSQf.js → Tree-DfY_7l-G.js} +22 -21
- package/dist/{TreeNode-CrdOVIey.js → TreeNode-BV9BiCFt.js} +10 -9
- package/dist/{Update-BGhgeWpg.js → Update-C6EmSv2D.js} +10 -9
- package/dist/{Upload-BRAVjqfB.js → Upload-CQo4b32p.js} +25 -24
- package/dist/{Upload-DG8svROr.js → Upload-z2mEnrlN.js} +6 -5
- package/dist/{UploadApi-DsqrvBXQ.js → UploadApi-C0wC0lME.js} +4 -3
- package/dist/{Year-De0vEkgD.js → Year-CEHCOGTW.js} +1 -1
- package/dist/{main-_4re--C1.js → main-CgmRyjET.js} +1730 -1553
- package/dist/main.js +83 -81
- package/dist/style.css +1 -1
- package/esm/components/business/HaCondition.vue.d.ts +18 -0
- package/esm/components/business/HaCrud.vue.d.ts +29 -0
- package/esm/components/business/HaDrawer.vue.d.ts +24 -0
- package/esm/components/business/HaDriver.vue.d.ts +52 -0
- package/esm/components/business/HaFeedback.vue.d.ts +8 -0
- package/esm/components/business/HaForm.vue.d.ts +23 -0
- package/esm/components/business/HaSwitch.vue.d.ts +24 -0
- package/esm/components/business/HaWelcome.vue.d.ts +8 -0
- package/esm/components/business/index.d.ts +8 -7
- package/esm/components/layouts/index.d.ts +2 -2
- package/esm/components/pages/index.d.ts +2 -2
- package/esm/drivers/cdns/Cdn.d.ts +2 -1
- package/esm/drivers/cdns/CdnFactory.d.ts +1 -1
- package/esm/drivers/cdns/ICdn.d.ts +4 -0
- package/esm/drivers/cdns/implements/BootCdn.d.ts +5 -1
- package/esm/drivers/cdns/implements/JsdelivrCdn.d.ts +3 -1
- package/esm/drivers/cdns/implements/LocalCdn.d.ts +5 -1
- package/esm/drivers/cdns/implements/StaticFileCdn.d.ts +9 -1
- package/esm/drivers/cdns/implements/UnpkgCdn.d.ts +3 -1
- package/esm/drivers/driver-helper.d.ts +10 -0
- package/esm/drivers/encoders/Encoder.d.ts +11 -0
- package/esm/drivers/encoders/EncoderFactory.d.ts +16 -0
- package/esm/drivers/encoders/IEncoder.d.ts +22 -0
- package/esm/drivers/encoders/implement/Base64Encoder.d.ts +11 -0
- package/esm/drivers/excels/ExcelFactory.d.ts +1 -1
- package/esm/drivers/features/FeatureFactory.d.ts +1 -1
- package/esm/drivers/hashers/Hasher.d.ts +10 -0
- package/esm/drivers/hashers/HasherFactory.d.ts +13 -0
- package/esm/drivers/hashers/IHasher.d.ts +19 -0
- package/esm/drivers/hashers/implement/Md5Hasher.d.ts +10 -0
- package/esm/drivers/hashers/implement/Sha256Hasher.d.ts +10 -0
- package/esm/drivers/providers/ProviderFactory.d.ts +1 -1
- package/esm/drivers/requesters/Requester.d.ts +5 -2
- package/esm/drivers/requesters/RequesterFactory.d.ts +7 -1
- package/esm/drivers/requesters/implements/MkRequester.d.ts +39 -0
- package/esm/drivers/signers/ISigner.d.ts +1 -1
- package/esm/drivers/signers/SignerFactory.d.ts +1 -1
- package/esm/drivers/signers/implements/DefaultSigner.d.ts +3 -1
- package/esm/drivers/ssos/ISso.d.ts +1 -1
- package/esm/sdks/commons/HaCaptcha.vue.d.ts +14 -0
- package/esm/sdks/commons/HaCode.vue.d.ts +39 -0
- package/esm/sdks/commons/HaCol.vue.d.ts +9 -0
- package/esm/sdks/commons/HaCompare.vue.d.ts +40 -0
- package/esm/sdks/commons/HaContainer.vue.d.ts +21 -0
- package/esm/sdks/commons/HaDebug.vue.d.ts +9 -0
- package/esm/sdks/commons/HaEditable.vue.d.ts +13 -0
- package/esm/sdks/commons/HaEmpty.vue.d.ts +24 -0
- package/esm/sdks/commons/HaLoading.vue.d.ts +33 -0
- package/esm/sdks/commons/HaMouseContext.vue.d.ts +2 -0
- package/esm/sdks/commons/HaParticles.vue.d.ts +2 -0
- package/esm/sdks/commons/HaProgress.vue.d.ts +8 -0
- package/esm/sdks/commons/HaResizer.vue.d.ts +26 -0
- package/esm/sdks/commons/HaRow.vue.d.ts +19 -0
- package/esm/sdks/commons/HaSpinner.vue.d.ts +20 -0
- package/esm/sdks/commons/HaTable.vue.d.ts +34 -0
- package/esm/sdks/commons/HaTableColumn.vue.d.ts +31 -0
- package/esm/sdks/commons/index.d.ts +13 -13
- package/esm/sdks/globals/HaHeaderTab.vue.d.ts +19 -0
- package/esm/sdks/globals/HaHeaderTabs.vue.d.ts +17 -0
- package/esm/sdks/globals/HaMenu.vue.d.ts +77 -0
- package/esm/sdks/globals/HaMenuItem.vue.d.ts +76 -0
- package/esm/sdks/globals/HaMissComponent.vue.d.ts +9 -0
- package/esm/sdks/globals/HaSideTab.vue.d.ts +21 -0
- package/esm/sdks/globals/HaSideTabs.vue.d.ts +17 -0
- package/esm/sdks/globals/HaWindow.vue.d.ts +66 -0
- package/esm/sdks/globals/index.d.ts +8 -8
- package/esm/sdks/helpers/dictionary-helper.d.ts +10 -0
- package/esm/sdks/helpers/index.d.ts +3 -2
- package/esm/sdks/helpers/json-helper.d.ts +4 -0
- package/esm/sdks/helpers/object-helper.d.ts +2 -2
- package/esm/sdks/helpers/sign-helper.d.ts +14 -0
- package/esm/sdks/helpers/string-helper.d.ts +1 -1
- package/esm/sdks/helpers/time-helper.d.ts +2 -2
- package/esm/sdks/helpers/url-helper.d.ts +4 -4
- package/esm/sdks/panels/HaGroup.vue.d.ts +9 -0
- package/esm/sdks/panels/HaHeader.vue.d.ts +16 -0
- package/esm/sdks/panels/HaOperation.vue.d.ts +22 -0
- package/esm/sdks/panels/HaPanel.vue.d.ts +30 -0
- package/esm/sdks/panels/HaShrink.vue.d.ts +48 -0
- package/esm/sdks/panels/index.d.ts +4 -4
- package/esm/stores/socket.d.ts +1 -1
- package/esm/stores/user.d.ts +1 -1
- package/package.json +4 -4
- package/dist/Code.vue_vue_type_style_index_0_lang-B5F-OmjA.js +0 -62
- package/dist/HoSwitch.vue_vue_type_style_index_0_lang-F1qgXnFx.js +0 -46
- package/dist/Index-DXnaWCq-.js +0 -4
- package/dist/Index-DaGrzGG9.js +0 -4
- package/dist/Text-DJbk5I_4.js +0 -4
@@ -1,7 +1,8 @@
|
|
1
|
-
import { defineComponent as h, toRefs as x, computed as C, openBlock as
|
2
|
-
import { S as g } from "./main-
|
1
|
+
import { defineComponent as h, toRefs as x, computed as C, openBlock as l, createElementBlock as a, unref as e, createElementVNode as N, toDisplayString as i, createTextVNode as b, createCommentVNode as s } from "vue";
|
2
|
+
import { S as g } from "./main-CgmRyjET.js";
|
3
3
|
import "./vendor-@monaco-editor-DKC4UNw_.js";
|
4
4
|
import "./vendor-moment-h96o7c8I.js";
|
5
|
+
import "./vendor-crypto-js-ftX_aBC-.js";
|
5
6
|
import "xlsx-js-style";
|
6
7
|
const y = ["title"], k = { class: "number" }, v = {
|
7
8
|
key: 0,
|
@@ -9,7 +10,7 @@ const y = ["title"], k = { class: "number" }, v = {
|
|
9
10
|
}, S = {
|
10
11
|
key: 1,
|
11
12
|
class: "count"
|
12
|
-
},
|
13
|
+
}, w = /* @__PURE__ */ h({
|
13
14
|
__name: "TreeNode",
|
14
15
|
props: {
|
15
16
|
table: {},
|
@@ -22,16 +23,16 @@ const y = ["title"], k = { class: "number" }, v = {
|
|
22
23
|
let _ = (r.parent.data.Children ? r.parent.data.Children.indexOf(o) : r.parent.data.indexOf(o)) + 1;
|
23
24
|
return g.padLeft(_, 2, "0");
|
24
25
|
}, f = C(() => u.value.fields.find((o) => o.name == n.value.text).control.i18N);
|
25
|
-
return (r, o) => (
|
26
|
+
return (r, o) => (l(), a("div", {
|
26
27
|
title: e(t)[e(n).title]
|
27
28
|
}, [
|
28
|
-
N("span", k,
|
29
|
-
b(" " +
|
30
|
-
e(n).suffix ? (
|
31
|
-
e(t).Children && e(t).Children.length > 0 ? (
|
29
|
+
N("span", k, i(e(m)(e(c), e(t))), 1),
|
30
|
+
b(" " + i(e(f) ? r.$t(e(t)[e(n).text]) : e(t)[e(n).text]) + " ", 1),
|
31
|
+
e(n).suffix ? (l(), a("span", v, i(e(t)[e(n).suffix]), 1)) : s("", !0),
|
32
|
+
e(t).Children && e(t).Children.length > 0 ? (l(), a("span", S, "(" + i(e(t).Children.length) + ")", 1)) : s("", !0)
|
32
33
|
], 8, y));
|
33
34
|
}
|
34
35
|
});
|
35
36
|
export {
|
36
|
-
|
37
|
+
w as default
|
37
38
|
};
|
@@ -1,9 +1,10 @@
|
|
1
|
-
import { defineComponent as k, toRefs as b, ref as C, resolveComponent as h, openBlock as g, createBlock as v, unref as e, withCtx as t, createVNode as
|
2
|
-
import {
|
1
|
+
import { defineComponent as k, toRefs as b, ref as C, resolveComponent as h, openBlock as g, createBlock as v, unref as e, withCtx as t, createVNode as a, createSlots as y, createTextVNode as c, toDisplayString as r, createElementVNode as m } from "vue";
|
2
|
+
import { t as x } from "./main-CgmRyjET.js";
|
3
3
|
import "./vendor-@monaco-editor-DKC4UNw_.js";
|
4
4
|
import "./vendor-moment-h96o7c8I.js";
|
5
|
+
import "./vendor-crypto-js-ftX_aBC-.js";
|
5
6
|
import "xlsx-js-style";
|
6
|
-
const N = /* @__PURE__ */ m("i", { class: "fa fa-check" }, null, -1), V = /* @__PURE__ */ m("i", { class: "fa fa-chevron-left" }, null, -1),
|
7
|
+
const N = /* @__PURE__ */ m("i", { class: "fa fa-check" }, null, -1), V = /* @__PURE__ */ m("i", { class: "fa fa-chevron-left" }, null, -1), T = /* @__PURE__ */ k({
|
7
8
|
__name: "Update",
|
8
9
|
props: {
|
9
10
|
table: {},
|
@@ -23,16 +24,16 @@ const N = /* @__PURE__ */ m("i", { class: "fa fa-check" }, null, -1), V = /* @__
|
|
23
24
|
l("close");
|
24
25
|
};
|
25
26
|
return u({ submit: s }), (n, _) => {
|
26
|
-
const
|
27
|
+
const i = h("el-button");
|
27
28
|
return g(), v(e(x), { padding: 5 }, {
|
28
29
|
default: t(() => [
|
29
|
-
|
30
|
+
a(i, {
|
30
31
|
type: "primary",
|
31
32
|
loading: e(o),
|
32
33
|
onClick: e(s)
|
33
34
|
}, y({
|
34
35
|
default: t(() => [
|
35
|
-
|
36
|
+
c(" " + r(n.$t("common.confirm")), 1)
|
36
37
|
]),
|
37
38
|
_: 2
|
38
39
|
}, [
|
@@ -44,12 +45,12 @@ const N = /* @__PURE__ */ m("i", { class: "fa fa-check" }, null, -1), V = /* @__
|
|
44
45
|
key: "0"
|
45
46
|
}
|
46
47
|
]), 1032, ["loading", "onClick"]),
|
47
|
-
|
48
|
+
a(i, { onClick: e(d) }, {
|
48
49
|
icon: t(() => [
|
49
50
|
V
|
50
51
|
]),
|
51
52
|
default: t(() => [
|
52
|
-
|
53
|
+
c(" " + r(n.$t("common.back")), 1)
|
53
54
|
]),
|
54
55
|
_: 1
|
55
56
|
}, 8, ["onClick"])
|
@@ -60,5 +61,5 @@ const N = /* @__PURE__ */ m("i", { class: "fa fa-check" }, null, -1), V = /* @__
|
|
60
61
|
}
|
61
62
|
});
|
62
63
|
export {
|
63
|
-
|
64
|
+
T as default
|
64
65
|
};
|
@@ -1,14 +1,15 @@
|
|
1
|
-
import { defineComponent as Y, toRefs as Z, ref as p, onMounted as ee, computed as U, watch as le, resolveComponent as x, openBlock as k, createElementBlock as j, normalizeClass as te, unref as t, createVNode as A, withCtx as F, createBlock as ae, createTextVNode as oe, toDisplayString as re, isRef as
|
2
|
-
import { d as ne, e as se, f as I, M as de, H as N, A as s, C as P, F as $, U as B, g as pe } from "./main-
|
1
|
+
import { defineComponent as Y, toRefs as Z, ref as p, onMounted as ee, computed as U, watch as le, resolveComponent as x, openBlock as k, createElementBlock as j, normalizeClass as te, unref as t, createVNode as A, withCtx as F, createBlock as ae, createTextVNode as oe, toDisplayString as re, isRef as ie, createElementVNode as ue } from "vue";
|
2
|
+
import { d as ne, e as se, f as I, M as de, H as N, A as s, C as P, F as $, U as B, g as pe } from "./main-CgmRyjET.js";
|
3
3
|
import "./vendor-@monaco-editor-DKC4UNw_.js";
|
4
4
|
import "./vendor-moment-h96o7c8I.js";
|
5
|
+
import "./vendor-crypto-js-ftX_aBC-.js";
|
5
6
|
import "xlsx-js-style";
|
6
|
-
import "./QueryApi-
|
7
|
-
import { U as me } from "./UploadApi-
|
7
|
+
import "./QueryApi-BqpLpqXT.js";
|
8
|
+
import { U as me } from "./UploadApi-C0wC0lME.js";
|
8
9
|
const ce = {
|
9
10
|
key: 0,
|
10
11
|
class: "fa fa-upload"
|
11
|
-
}, ve = ["src"],
|
12
|
+
}, ve = ["src"], Ue = /* @__PURE__ */ Y({
|
12
13
|
__name: "Upload",
|
13
14
|
props: {
|
14
15
|
schema: {},
|
@@ -22,32 +23,32 @@ const ce = {
|
|
22
23
|
setup(T, { emit: z }) {
|
23
24
|
let g = z, E = T, { table: d, field: r, row: h, set: fe, modelValue: L } = Z(E), b = ne(), M = se(), m = p(!1), C = p({}), c = p([]), H = p(), O = p(), f = !0, _ = p({ action: "", data: null }), D = (e) => {
|
24
25
|
me.getUploadToken().then((l) => {
|
25
|
-
e.forEach((
|
26
|
-
let a = `${b.upload.address}/api/objects/download?slug=${
|
27
|
-
c.value.push({ name:
|
26
|
+
e.forEach((i) => {
|
27
|
+
let a = `${b.upload.address}/api/objects/download?slug=${i[0]}&token=${l}`;
|
28
|
+
c.value.push({ name: i[1], url: a });
|
28
29
|
});
|
29
30
|
});
|
30
|
-
}, q = (e) => {
|
31
|
+
}, q = async (e) => {
|
31
32
|
f = !1;
|
32
33
|
let l = `/upload?table=${d.value.name}&field=${r.value.name}`;
|
33
|
-
return _.value.action = I.api.url + l, C.value.Authorization = M.getAuthorization(l), r.value.control.fileType == "Image" ? e.type.indexOf("image") == 0 ? Promise.resolve() : (de.error("请上传正确的图片文件"), Promise.reject()) : Promise.resolve();
|
34
|
+
return _.value.action = I.api.url + l, C.value.Authorization = await M.getAuthorization(l), r.value.control.fileType == "Image" ? e.type.indexOf("image") == 0 ? Promise.resolve() : (de.error("请上传正确的图片文件"), Promise.reject()) : Promise.resolve();
|
34
35
|
}, G = (e, l) => {
|
35
36
|
f = !1;
|
36
37
|
let a = [e.name.replace(I.api.url, "")];
|
37
38
|
return N.post("/upload/delete", { files: a }).then(({ data: o }) => {
|
38
|
-
let
|
39
|
+
let u = l.indexOf(e), V = s.removeIndex(n.value, u, ",");
|
39
40
|
if (g("update:modelValue", V), r.value.control.name) {
|
40
|
-
let v = d.value.fields.find((S) => S.name == r.value.control.name), y = P.getValue(o.value,
|
41
|
-
P.setValue(w, o.value, d.value,
|
41
|
+
let v = d.value.fields.find((S) => S.name == r.value.control.name), y = P.getValue(o.value, u, d.value, v), w = s.removeIndex(y, u, ",");
|
42
|
+
P.setValue(w, o.value, d.value, u, v);
|
42
43
|
}
|
43
44
|
return Promise.resolve();
|
44
45
|
}).catch(() => Promise.reject());
|
45
46
|
}, J = (e) => {
|
46
47
|
m.value = !0, H.value = e.url;
|
47
|
-
}, K = (e, l,
|
48
|
+
}, K = (e, l, i) => {
|
48
49
|
}, Q = (e, l) => {
|
49
|
-
N.handleResponseBody(e).then((
|
50
|
-
let { name: a, url: o } =
|
50
|
+
N.handleResponseBody(e).then((i) => {
|
51
|
+
let { name: a, url: o } = i.data[0];
|
51
52
|
b.upload.method == "box" || $.isImage(o) || (l.url = B.getFileIcon(o));
|
52
53
|
let V = s.split(n.value, ",", o).join(",");
|
53
54
|
if (n.value = V, r.value.control.name) {
|
@@ -64,12 +65,12 @@ const ce = {
|
|
64
65
|
return;
|
65
66
|
let e = s.split(n.value, ","), l = [];
|
66
67
|
if (r.value.control.name) {
|
67
|
-
let a = d.value.fields.find((
|
68
|
+
let a = d.value.fields.find((u) => u.name == r.value.control.name), o = h.value[a.name];
|
68
69
|
l = s.split(o, ",");
|
69
70
|
}
|
70
|
-
let
|
71
|
+
let i = s.combine(e, l);
|
71
72
|
if (b.upload.method == "box")
|
72
|
-
D(
|
73
|
+
D(i);
|
73
74
|
else {
|
74
75
|
let a = pe.httpOrHttps(n.value) ? n.value : I.api.url + n.value, o = { name: a, url: null };
|
75
76
|
$.isImage(a) ? o.url = a : o.url = B.getFileIcon(a), c.value.push(o);
|
@@ -89,7 +90,7 @@ const ce = {
|
|
89
90
|
return le(() => n.value, (e, l) => {
|
90
91
|
f && R();
|
91
92
|
}), (e, l) => {
|
92
|
-
const
|
93
|
+
const i = x("el-button"), a = x("el-upload"), o = x("el-dialog");
|
93
94
|
return k(), j("div", {
|
94
95
|
class: te(t(r).control.preview ? "control-file-preview" : "control-file")
|
95
96
|
}, [
|
@@ -109,7 +110,7 @@ const ce = {
|
|
109
110
|
disabled: t(r).readonly
|
110
111
|
}, {
|
111
112
|
default: F(() => [
|
112
|
-
t(r).control.preview ? (k(), j("i", ce)) : (k(), ae(
|
113
|
+
t(r).control.preview ? (k(), j("i", ce)) : (k(), ae(i, {
|
113
114
|
key: 1,
|
114
115
|
icon: "el-icon-upload",
|
115
116
|
type: "primary"
|
@@ -126,10 +127,10 @@ const ce = {
|
|
126
127
|
draggable: "",
|
127
128
|
"append-to-body": "",
|
128
129
|
modelValue: t(m),
|
129
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
130
|
+
"onUpdate:modelValue": l[0] || (l[0] = (u) => ie(m) ? m.value = u : m = u)
|
130
131
|
}, {
|
131
132
|
default: F(() => [
|
132
|
-
|
133
|
+
ue("img", {
|
133
134
|
width: "100%",
|
134
135
|
src: t(H),
|
135
136
|
alt: ""
|
@@ -142,5 +143,5 @@ const ce = {
|
|
142
143
|
}
|
143
144
|
});
|
144
145
|
export {
|
145
|
-
|
146
|
+
Ue as default
|
146
147
|
};
|
@@ -1,11 +1,12 @@
|
|
1
1
|
import { defineComponent as V, toRefs as b, ref as r, onMounted as k, computed as w, resolveComponent as S, openBlock as n, createElementBlock as u, Fragment as x, renderList as C, unref as s, createVNode as F, isRef as E, withCtx as H, createElementVNode as $ } from "vue";
|
2
|
-
import { d as y, g as B, f as I, F as N, U as R } from "./main-
|
2
|
+
import { d as y, g as B, f as I, F as N, U as R } from "./main-CgmRyjET.js";
|
3
3
|
import "./vendor-@monaco-editor-DKC4UNw_.js";
|
4
4
|
import "./vendor-moment-h96o7c8I.js";
|
5
|
+
import "./vendor-crypto-js-ftX_aBC-.js";
|
5
6
|
import "xlsx-js-style";
|
6
|
-
import "./QueryApi-
|
7
|
-
import { U as j } from "./UploadApi-
|
8
|
-
const A = { class: "text-upload" }, L = ["src", "onClick", "alt"], M = ["src"],
|
7
|
+
import "./QueryApi-BqpLpqXT.js";
|
8
|
+
import { U as j } from "./UploadApi-C0wC0lME.js";
|
9
|
+
const A = { class: "text-upload" }, L = ["src", "onClick", "alt"], M = ["src"], Z = /* @__PURE__ */ V({
|
9
10
|
__name: "Upload",
|
10
11
|
props: {
|
11
12
|
schema: {},
|
@@ -66,5 +67,5 @@ const A = { class: "text-upload" }, L = ["src", "onClick", "alt"], M = ["src"],
|
|
66
67
|
}
|
67
68
|
});
|
68
69
|
export {
|
69
|
-
|
70
|
+
Z as default
|
70
71
|
};
|
@@ -1,10 +1,11 @@
|
|
1
1
|
import "vue";
|
2
|
-
import { H as o, a as t } from "./main-
|
2
|
+
import { H as o, a as t } from "./main-CgmRyjET.js";
|
3
3
|
import "./vendor-@monaco-editor-DKC4UNw_.js";
|
4
4
|
import "./vendor-moment-h96o7c8I.js";
|
5
|
+
import "./vendor-crypto-js-ftX_aBC-.js";
|
5
6
|
import "xlsx-js-style";
|
6
7
|
let e = null;
|
7
|
-
class
|
8
|
+
class u {
|
8
9
|
/**
|
9
10
|
* 获取上传令牌,过期自动获取
|
10
11
|
*/
|
@@ -13,5 +14,5 @@ class a {
|
|
13
14
|
}
|
14
15
|
}
|
15
16
|
export {
|
16
|
-
|
17
|
+
u as U
|
17
18
|
};
|
@@ -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-CXXJqJ8N.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),
|