halo-pc 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{Article-lRUJ_OJd.js → Article-D4qXG55i.js} +2 -2
- package/dist/{Autocomplete-BZC6nm8e.js → Autocomplete-BOxOjTFs.js} +1 -1
- package/dist/{Autocomplete-zUWf79cr.js → Autocomplete-BdKldPfG.js} +1 -1
- package/dist/{Autocomplete-Bi_l7zwo.js → Autocomplete-CV4D7693.js} +1 -1
- package/dist/{CSharp-DE5nh_O4.js → CSharp-D_fhmKNi.js} +1 -1
- package/dist/{Calender-BySvLRJq.js → Calender-B1bjnNK5.js} +1 -1
- package/dist/{Callback-DPPWZw_u.js → Callback-DjHhgx-q.js} +1 -1
- package/dist/{Cascader-CHVgZRdk.js → Cascader-B6OhUHVe.js} +1 -1
- package/dist/{Cascader-BsPUAtBL.js → Cascader-K4fh1YbW.js} +1 -1
- package/dist/{Checkbox-BKx6xpIx.js → Checkbox-CkfHA52y.js} +1 -1
- package/dist/{Code-Chrbr4KP.js → Code-3c6-02U1.js} +1 -1
- package/dist/{Code-qQK_4OZ6.js → Code-BTDq_0B6.js} +1 -1
- package/dist/{Code-GhBd93wc.js → Code-C4HjQm82.js} +1 -1
- package/dist/Code-RAklwsI8.js +4 -0
- package/dist/{Code.vue_vue_type_style_index_0_lang-B5F-OmjA.js → Code.vue_vue_type_style_index_0_lang-zfBqeJue.js} +2 -2
- package/dist/{Column-DW9n0ein.js → Column-D9Kx2OQ2.js} +6 -6
- package/dist/{Comment-Cod3CMDP.js → Comment-DCArar0n.js} +1 -1
- package/dist/{Copy-PYxtclV3.js → Copy-DkFCsKxT.js} +1 -1
- package/dist/{Custom-RoQe4kW_.js → Custom-a5LNK1fz.js} +1 -1
- package/dist/{DataExport-DzADLzN4.js → DataExport-CNacxrr6.js} +1 -1
- package/dist/{DataExport.vue_vue_type_script_setup_true_lang-B0DjFKm0.js → DataExport.vue_vue_type_script_setup_true_lang-Dnt8MHYd.js} +1 -1
- package/dist/{DataImport-CgdY4oAg.js → DataImport-Dm86g3rr.js} +1 -1
- package/dist/{DataImport.vue_vue_type_script_setup_true_lang-BOpao8ja.js → DataImport.vue_vue_type_script_setup_true_lang-DieNCc_-.js} +1 -1
- package/dist/{Date-Dr80JkYm.js → Date-2zsvAlTg.js} +1 -1
- package/dist/{DateRange-CxGZSLKj.js → DateRange-DM7_QCBw.js} +1 -1
- package/dist/{DateTime-BzjTeOtg.js → DateTime-DMECNCs4.js} +1 -1
- package/dist/{Daterange-BW8avRzM.js → Daterange-b5lnauDR.js} +1 -1
- package/dist/{Decimal-CnaJfnyD.js → Decimal-DtTHo5uv.js} +1 -1
- package/dist/{Delete-D6JpsqZ1.js → Delete-CJYIlwyA.js} +6 -6
- package/dist/{Detail-DPV7avRs.js → Detail-vOrhBm_q.js} +1 -1
- package/dist/{Dictionary-Bf5W_pJM.js → Dictionary-B9oe1_S6.js} +1 -1
- package/dist/{File-KSe9LUnT.js → File-Bmnp2oNs.js} +2 -2
- package/dist/{Image-Cz3sAz75.js → Image-8u9oIiGp.js} +1 -1
- package/dist/{Index-BAdLGn2X.js → Index-BNXlbQ4E.js} +1 -1
- package/dist/Index-B_P8rY63.js +4 -0
- package/dist/{Index-CLJ35fvo.js → Index-CS11p-lU.js} +2 -2
- package/dist/{Index-BSQve4ig.js → Index-CSqSf17l.js} +1 -1
- package/dist/{Index-5i8NweBu.js → Index-DiMWhBFC.js} +1 -1
- package/dist/{Index-CFsJEcLx.js → Index-DtM8VZwV.js} +13 -13
- package/dist/Index-ujUgBmOq.js +4 -0
- package/dist/{Index.vue_vue_type_script_setup_true_lang-Crvp7013.js → Index.vue_vue_type_script_setup_true_lang-BPj8s6sN.js} +20 -15
- package/dist/{Index.vue_vue_type_script_setup_true_lang-DaRdnMqk.js → Index.vue_vue_type_script_setup_true_lang-CKE6hz5m.js} +5 -5
- package/dist/{Index.vue_vue_type_style_index_0_lang-Cdczm43D.js → Index.vue_vue_type_style_index_0_lang-CqDJToNR.js} +2 -2
- package/dist/{Install-Dx1MoGVW.js → Install-DU27ycRi.js} +1 -1
- package/dist/{Int-CfvU-cuR.js → Int-BuRUWpC5.js} +1 -1
- package/dist/{List-BBpYGaUx.js → List-DmUA_Qjf.js} +1 -1
- package/dist/{Maintaince-Bs1_cOam.js → Maintaince-BxK8vEL8.js} +1 -1
- package/dist/{Markdown-DnPCfzFD.js → Markdown-DuJREXXg.js} +1 -1
- package/dist/{Month-BbbcEZef.js → Month-D366v-0Q.js} +1 -1
- package/dist/{Normal-DglkJvhE.js → Normal-CPn8hp3t.js} +2 -2
- package/dist/{Paging-C3ntgZx5.js → Paging-D1DvQER2.js} +2 -2
- package/dist/{QueryApi-CPyNgIKy.js → QueryApi-B7_jCs5e.js} +1 -1
- package/dist/{Racebar-Cseghx3Z.js → Racebar-ng-7K86M.js} +2 -2
- package/dist/{Radio-BrSONLbo.js → Radio-DW7t0gUT.js} +1 -1
- package/dist/{Register-D7gvuJiE.js → Register-oG9MMCqJ.js} +6 -6
- package/dist/{RichText-DQvrv6V7.js → RichText-Bpw54w7L.js} +1 -1
- package/dist/{SearchFooter-DzxrSako.js → SearchFooter-TOtn9psJ.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-aQwf-Jl6.js} +1 -1
- package/dist/{SearchForm-Bo0nk2o4.js → SearchForm-tCH9rcrw.js} +1 -1
- package/dist/{SearchForm.vue_vue_type_style_index_0_lang-37Paf-X_.js → SearchForm.vue_vue_type_style_index_0_lang-U5f9oExf.js} +1 -1
- package/dist/{Select-DAIbIG11.js → Select-CGOTSJVh.js} +1 -1
- package/dist/{Select-CIWL2QB_.js → Select-DhpaFdqx.js} +1 -1
- package/dist/{Select-Dqw7DP-6.js → Select-Dz8akTqG.js} +1 -1
- package/dist/{Single-CfmqNmeA.js → Single-BETJuNyR.js} +3 -3
- package/dist/{Statistic--Bow2CyV.js → Statistic-DzF-1c5_.js} +2 -2
- package/dist/{Stock-U6JTFd2R.js → Stock-9Ja_G9Dg.js} +1 -1
- package/dist/{Stock-Bjygq6ei.js → Stock-CfI244Nf.js} +1 -1
- package/dist/{Stock.vue_vue_type_style_index_0_lang-BZ0BHU-F.js → Stock.vue_vue_type_style_index_0_lang-DbTd0pjx.js} +1 -1
- package/dist/{Switch-qLwHUFTL.js → Switch-HAej2klZ.js} +1 -1
- package/dist/{Table-DZH3tqZj.js → Table-Bes5hPBu.js} +2 -2
- package/dist/{Table-mDlEBMBs.js → Table-Q1QCTkqH.js} +6 -6
- package/dist/Text-DgINICKw.js +4 -0
- package/dist/{Text.vue_vue_type_style_index_0_lang-DBJbK62d.js → Text.vue_vue_type_style_index_0_lang-Bw2lRC5n.js} +1 -1
- package/dist/{TextLink-B6X1_Ltd.js → TextLink-o-e-724y.js} +1 -1
- package/dist/{Textarea-CnS6jb4O.js → Textarea-2hZMIygc.js} +1 -1
- package/dist/{Timeline-D5mZs0I9.js → Timeline-B2unIcOQ.js} +1 -1
- package/dist/{Tree-V2yFzSQf.js → Tree-Bt7FIc2Z.js} +1 -1
- package/dist/{Tree-NDzpgIjQ.js → Tree-DO2eaZZT.js} +1 -1
- package/dist/{TreeNode-CrdOVIey.js → TreeNode-k4qKfs3W.js} +1 -1
- package/dist/{Update-BGhgeWpg.js → Update-BH1SivST.js} +1 -1
- package/dist/{Upload-DG8svROr.js → Upload-Bhp3QMff.js} +3 -3
- package/dist/{Upload-BRAVjqfB.js → Upload-Cw7Ln3cd.js} +3 -3
- package/dist/{UploadApi-DsqrvBXQ.js → UploadApi-DdQy8bcl.js} +1 -1
- package/dist/{Year-De0vEkgD.js → Year-Q2Y-HAuh.js} +1 -1
- package/dist/{main-_4re--C1.js → main-iF34LtMW.js} +1049 -1007
- package/dist/main.js +77 -76
- 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/pages/index.d.ts +2 -2
- 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/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/package.json +1 -1
- package/dist/Code-De2Uv1Px.js +0 -4
- 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,4 +1,4 @@
|
|
1
|
-
import { defineComponent as X, ref as x, onMounted as be, onUnmounted as Tt, openBlock as h, createElementBlock as
|
1
|
+
import { defineComponent as X, ref as x, onMounted as be, onUnmounted as Tt, openBlock as h, createElementBlock as _, createElementVNode as v, unref as o, normalizeClass as ae, toRefs as ue, renderSlot as H, computed as fe, normalizeStyle as xe, watch as ge, resolveComponent as z, Fragment as te, createVNode as S, withCtx as y, createTextVNode as Y, isRef as $e, createBlock as P, toDisplayString as D, createCommentVNode as N, defineAsyncComponent as Je, inject as jl, withModifiers as st, provide as Ml, renderList as he, mergeModels as ot, useModel as el, onUpdated as tl, Teleport as ll, toRef as $l, useSlots as Tl, getCurrentInstance as Jl, onBeforeUnmount as sl, resolveDynamicComponent as nl, createSlots as Gl, TransitionGroup as Zl, createApp as Hl } from "vue";
|
2
2
|
import { d as Re, c as es } from "./vendor-pinia-yrN6kSxh.js";
|
3
3
|
import { c as ts } from "./vendor-vue-i18n-C3KH15Qn.js";
|
4
4
|
import { createRouter as ls, createWebHistory as ss, useRoute as bt, useRouter as ns } from "vue-router";
|
@@ -19,35 +19,35 @@ const vs = { class: "ho-captcha" }, ys = { class: "image" }, bs = {
|
|
19
19
|
droppable: "true"
|
20
20
|
}, _s = ["src"], ws = ["src"], ks = /* @__PURE__ */ v("i", { class: "fa fa-arrow-right" }, null, -1), $s = [
|
21
21
|
ks
|
22
|
-
], Cs = /* @__PURE__ */ v("div", { class: "handle-text" }, "向右滑动填充拼图", -1),
|
23
|
-
__name: "
|
22
|
+
], Cs = /* @__PURE__ */ v("div", { class: "handle-text" }, "向右滑动填充拼图", -1), oi = /* @__PURE__ */ X({
|
23
|
+
__name: "HaCaptcha",
|
24
24
|
props: {
|
25
25
|
content: String,
|
26
26
|
jigsaw: String
|
27
27
|
},
|
28
28
|
emits: ["refresh", "validate"],
|
29
29
|
setup(i, { emit: e }) {
|
30
|
-
let t = e, l = x(!1), s = x(!1), n = x(!1), r = 0, a = 0, u = x(), c = x(), p = x(), d = (
|
31
|
-
u.value.style.left = p.value.style.left = `${
|
30
|
+
let t = e, l = x(!1), s = x(!1), n = x(!1), r = 0, a = 0, u = x(), c = x(), p = x(), d = (M) => {
|
31
|
+
u.value.style.left = p.value.style.left = `${M}px`, c.value.style.width = `${M}px`, r = M;
|
32
32
|
}, m = () => {
|
33
33
|
t("refresh");
|
34
|
-
},
|
35
|
-
a =
|
36
|
-
},
|
34
|
+
}, f = (M) => {
|
35
|
+
a = M.clientX - M.target.offsetLeft, l.value = !0;
|
36
|
+
}, w = (M) => {
|
37
37
|
if (l.value) {
|
38
|
-
let I =
|
38
|
+
let I = M.clientX - a;
|
39
39
|
I < 0 && (I = 0), I > 500 && (I = 500), d(I);
|
40
40
|
}
|
41
|
-
},
|
41
|
+
}, V = (M) => {
|
42
42
|
l.value && (t("validate", r), l.value = !1);
|
43
43
|
}, T = () => {
|
44
|
-
p.value.addEventListener("mousedown",
|
44
|
+
p.value.addEventListener("mousedown", f), document.addEventListener("mousemove", w), document.addEventListener("mouseup", V);
|
45
45
|
};
|
46
46
|
return be(() => {
|
47
47
|
T();
|
48
48
|
}), Tt(() => {
|
49
|
-
p.value.removeEventListener("mousedown",
|
50
|
-
}), (
|
49
|
+
p.value.removeEventListener("mousedown", f), document.removeEventListener("mousemove", w), document.removeEventListener("mouseup", V);
|
50
|
+
}), (M, O) => (h(), _("div", vs, [
|
51
51
|
v("div", ys, [
|
52
52
|
v("div", bs, [
|
53
53
|
v("img", {
|
@@ -88,33 +88,33 @@ const vs = { class: "ho-captcha" }, ys = { class: "image" }, bs = {
|
|
88
88
|
], 2)
|
89
89
|
]));
|
90
90
|
}
|
91
|
-
}),
|
92
|
-
__name: "
|
91
|
+
}), ri = /* @__PURE__ */ X({
|
92
|
+
__name: "HaContainer",
|
93
93
|
props: {
|
94
94
|
container: { type: Boolean, default: !0 }
|
95
95
|
},
|
96
96
|
setup(i) {
|
97
|
-
let e = i, { container: t } =
|
98
|
-
return (l, s) => (h(),
|
97
|
+
let e = i, { container: t } = ue(e);
|
98
|
+
return (l, s) => (h(), _("div", {
|
99
99
|
class: ae({ "ho-container": o(t) })
|
100
100
|
}, [
|
101
101
|
H(l.$slots, "default")
|
102
102
|
], 2));
|
103
103
|
}
|
104
|
-
}),
|
105
|
-
__name: "
|
104
|
+
}), ii = /* @__PURE__ */ X({
|
105
|
+
__name: "HaRow",
|
106
106
|
props: {
|
107
107
|
gap: {},
|
108
108
|
direction: {}
|
109
109
|
},
|
110
110
|
setup(i) {
|
111
|
-
let e = i, { gap: t, direction: l } =
|
111
|
+
let e = i, { gap: t, direction: l } = ue(e), s = fe(() => {
|
112
112
|
let n = { gap: null };
|
113
113
|
return t.value && (n.gap = t.value + "px"), n;
|
114
114
|
});
|
115
|
-
return (n, r) => (h(),
|
115
|
+
return (n, r) => (h(), _("div", {
|
116
116
|
class: ae(["ho-row", o(l)]),
|
117
|
-
style:
|
117
|
+
style: xe(o(s))
|
118
118
|
}, [
|
119
119
|
H(n.$slots, "default")
|
120
120
|
], 6));
|
@@ -125,21 +125,21 @@ const vs = { class: "ho-captcha" }, ys = { class: "image" }, bs = {
|
|
125
125
|
t[l] = s;
|
126
126
|
return t;
|
127
127
|
}, xs = {}, Ss = { class: "ho-col" };
|
128
|
-
function
|
129
|
-
return h(),
|
128
|
+
function Vs(i, e) {
|
129
|
+
return h(), _("div", Ss, [
|
130
130
|
H(i.$slots, "default")
|
131
131
|
]);
|
132
132
|
}
|
133
|
-
const
|
134
|
-
function
|
133
|
+
const ai = /* @__PURE__ */ ol(xs, [["render", Vs]]);
|
134
|
+
function ui() {
|
135
135
|
return new Promise((i, e) => {
|
136
136
|
import("echarts").then((t) => {
|
137
137
|
i(t);
|
138
138
|
});
|
139
139
|
});
|
140
140
|
}
|
141
|
-
const
|
142
|
-
__name: "
|
141
|
+
const ci = /* @__PURE__ */ X({
|
142
|
+
__name: "HaCode",
|
143
143
|
props: {
|
144
144
|
config: { default: {} },
|
145
145
|
border: { type: Boolean },
|
@@ -147,27 +147,27 @@ const ui = /* @__PURE__ */ X({
|
|
147
147
|
},
|
148
148
|
emits: ["mounted", "change", "scroll", "update:modelValue"],
|
149
149
|
setup(i, { expose: e, emit: t }) {
|
150
|
-
let l = t, s = i, { config: n, border: r, modelValue: a } =
|
150
|
+
let l = t, s = i, { config: n, border: r, modelValue: a } = ue(s), u = null, c = null, p = null, d = it(), m = Ee(), f = x(), w = (C) => C == "en" ? null : C, V = (C) => C == "default" ? null : "vs-dark", T = (C) => {
|
151
151
|
if (d.editor.completions[C])
|
152
152
|
return;
|
153
|
-
let
|
154
|
-
if (!
|
153
|
+
let j = u.languages.getLanguages().find((Q) => Q.id == C);
|
154
|
+
if (!j)
|
155
155
|
return;
|
156
|
-
let k =
|
156
|
+
let k = j.loader;
|
157
157
|
k && k().then((Q) => {
|
158
|
-
d.editor.completions[C] || (
|
158
|
+
d.editor.completions[C] || (M(Q, C), d.editor.completions[C] = !0);
|
159
159
|
});
|
160
|
-
},
|
160
|
+
}, M = (C, j) => u.languages.registerCompletionItemProvider(j, {
|
161
161
|
provideCompletionItems: (Q, J) => {
|
162
162
|
let ne = Q.getWordUntilPosition(J), L = {
|
163
163
|
startLineNumber: J.lineNumber,
|
164
164
|
endLineNumber: J.lineNumber,
|
165
165
|
startColumn: ne.startColumn,
|
166
166
|
endColumn: ne.endColumn
|
167
|
-
},
|
167
|
+
}, F = [];
|
168
168
|
const G = ["builtinFunctions", "keywords", "operators"];
|
169
|
-
for (let
|
170
|
-
const q = G[
|
169
|
+
for (let A = 0; A < G.length; A++) {
|
170
|
+
const q = G[A];
|
171
171
|
let b = C.language[q];
|
172
172
|
b && b.forEach((W) => {
|
173
173
|
let de = W.toLowerCase(), _e = {
|
@@ -177,10 +177,10 @@ const ui = /* @__PURE__ */ X({
|
|
177
177
|
range: L,
|
178
178
|
documentation: W
|
179
179
|
};
|
180
|
-
q == "keywords" ? (_e.kind = u.languages.CompletionItemKind.Keyword, _e.detail = "关键词") : q == "operators" ? (_e.kind = u.languages.CompletionItemKind.Operator, _e.insertText += " ", _e.detail = "操作符") : (_e.kind = u.languages.CompletionItemKind.Function, _e.insertText += "()", _e.detail = "函数"),
|
180
|
+
q == "keywords" ? (_e.kind = u.languages.CompletionItemKind.Keyword, _e.detail = "关键词") : q == "operators" ? (_e.kind = u.languages.CompletionItemKind.Operator, _e.insertText += " ", _e.detail = "操作符") : (_e.kind = u.languages.CompletionItemKind.Function, _e.insertText += "()", _e.detail = "函数"), F.push(_e);
|
181
181
|
});
|
182
182
|
}
|
183
|
-
return { suggestions:
|
183
|
+
return { suggestions: F };
|
184
184
|
}
|
185
185
|
}), O = () => {
|
186
186
|
var J;
|
@@ -191,9 +191,9 @@ const ui = /* @__PURE__ */ X({
|
|
191
191
|
schemas: [],
|
192
192
|
trailingCommas: "ignore"
|
193
193
|
//允许末尾逗号
|
194
|
-
},
|
195
|
-
n.value.schema && (
|
196
|
-
let k =
|
194
|
+
}, j = null;
|
195
|
+
n.value.schema && (j = n.value.category + "/" + Pe.getUniqueId(), d.tryAddSchema(j, n.value.category, n.value.schema)), C.schemas = pe.clone(d.editor.schemas), u.languages.json.jsonDefaults.setDiagnosticsOptions(C), T(n.value.language);
|
196
|
+
let k = j ? u.Uri.parse(j) : null;
|
197
197
|
p = u.editor.createModel(a.value, n.value.language, k);
|
198
198
|
let Q = {
|
199
199
|
tabSize: 2,
|
@@ -206,12 +206,12 @@ const ui = /* @__PURE__ */ X({
|
|
206
206
|
//默认已启用代码图
|
207
207
|
scrollbar: { verticalScrollbarSize: 0 },
|
208
208
|
//关闭最右侧垂直滚动条
|
209
|
-
theme:
|
209
|
+
theme: V(m.theme),
|
210
210
|
automaticLayout: !0,
|
211
211
|
//根据父元素自动布局
|
212
212
|
model: p
|
213
213
|
};
|
214
|
-
c = u.editor.create(
|
214
|
+
c = u.editor.create(f.value, Q), (J = n.value.scrollTop) != null && J.value && c.setScrollTop(n.value.scrollTop.value), c.onDidScrollChange((ne) => {
|
215
215
|
l("scroll", ne.scrollTop);
|
216
216
|
}), c.onDidChangeModelContent((ne) => {
|
217
217
|
let L = c.getValue();
|
@@ -219,36 +219,36 @@ const ui = /* @__PURE__ */ X({
|
|
219
219
|
});
|
220
220
|
};
|
221
221
|
be(async () => {
|
222
|
-
u = await Et.init(),
|
222
|
+
u = await Et.init(), f.value && (O(), l("mounted", u, c));
|
223
223
|
});
|
224
224
|
let I = () => {
|
225
225
|
c == null || c.layout();
|
226
226
|
};
|
227
227
|
return Tt(() => {
|
228
228
|
p == null || p.dispose(), c == null || c.dispose();
|
229
|
-
}),
|
230
|
-
let k =
|
229
|
+
}), ge(() => m.theme, (C, j) => {
|
230
|
+
let k = V(C);
|
231
231
|
u.editor.setTheme(k);
|
232
|
-
}),
|
233
|
-
Et.config({ "vs/nls": { availableLanguages: { "*":
|
234
|
-
}),
|
232
|
+
}), ge(() => m.language, (C, j) => {
|
233
|
+
Et.config({ "vs/nls": { availableLanguages: { "*": w(C) } } });
|
234
|
+
}), ge(() => a.value, (C, j) => {
|
235
235
|
if (!c)
|
236
236
|
return;
|
237
237
|
let k = c.getValue();
|
238
238
|
C != k && c.setValue(C ?? "");
|
239
|
-
}),
|
239
|
+
}), ge(() => n.value.language, (C, j) => {
|
240
240
|
if (!c)
|
241
241
|
return;
|
242
242
|
let k = c.getModel();
|
243
243
|
u.editor.setModelLanguage(k, C), T(C);
|
244
|
-
}), e({ layout: I }), (C,
|
244
|
+
}), e({ layout: I }), (C, j) => (h(), _("div", {
|
245
245
|
ref_key: "monacoEditorRef",
|
246
|
-
ref:
|
246
|
+
ref: f,
|
247
247
|
class: ae(["ho-code", { border: o(r) }])
|
248
248
|
}, null, 2));
|
249
249
|
}
|
250
|
-
}),
|
251
|
-
__name: "
|
250
|
+
}), di = /* @__PURE__ */ X({
|
251
|
+
__name: "HaCompare",
|
252
252
|
props: {
|
253
253
|
inline: { type: Boolean, default: !1 },
|
254
254
|
language: { type: String },
|
@@ -257,50 +257,50 @@ const ui = /* @__PURE__ */ X({
|
|
257
257
|
},
|
258
258
|
emits: ["update:modelValue", "update:original", "change"],
|
259
259
|
setup(i, { emit: e }) {
|
260
|
-
let t = e, l = i, { inline: s, language: n, original: r, modelValue: a } =
|
261
|
-
c = I.editor.createModel(r.value, n.value), p = I.editor.createModel(a.value, n.value), u = I.editor.createDiffEditor(
|
260
|
+
let t = e, l = i, { inline: s, language: n, original: r, modelValue: a } = ue(l), u = null, c = null, p = null, d = null, m = null, f = null, w = x(), V = x(), T = Ee(), M = (I) => {
|
261
|
+
c = I.editor.createModel(r.value, n.value), p = I.editor.createModel(a.value, n.value), u = I.editor.createDiffEditor(w.value, {
|
262
262
|
originalEditable: !0,
|
263
263
|
automaticLayout: !0,
|
264
264
|
renderSideBySide: !s.value,
|
265
265
|
//是否启用行内模式
|
266
266
|
theme: O(T.theme)
|
267
267
|
}), u.setModel({ original: c, modified: p }), d = u.getOriginalEditor(), d.onDidChangeModelContent((C) => {
|
268
|
-
let
|
269
|
-
t("update:original",
|
268
|
+
let j = d.getValue();
|
269
|
+
t("update:original", j), t("change", j);
|
270
270
|
}), m = u.getModifiedEditor(), m.onDidChangeModelContent((C) => {
|
271
|
-
let
|
272
|
-
t("update:modelValue",
|
271
|
+
let j = m.getValue();
|
272
|
+
t("update:modelValue", j);
|
273
273
|
});
|
274
274
|
}, O = (I) => I == "default" ? null : "vs-dark";
|
275
275
|
return Et.init().then((I) => {
|
276
|
-
|
277
|
-
}),
|
278
|
-
let
|
279
|
-
|
280
|
-
}),
|
281
|
-
c &&
|
282
|
-
}),
|
276
|
+
f = I, M(I);
|
277
|
+
}), ge(() => T.theme, (I, C) => {
|
278
|
+
let j = O(I);
|
279
|
+
f.editor.setTheme(j);
|
280
|
+
}), ge(() => n.value, (I, C) => {
|
281
|
+
c && f.editor.setModelLanguage(c, I), p && f.editor.setModelLanguage(p, I);
|
282
|
+
}), ge(() => r.value, (I, C) => {
|
283
283
|
if (!c)
|
284
284
|
return;
|
285
|
-
let
|
286
|
-
I !=
|
287
|
-
}),
|
285
|
+
let j = c.getValue();
|
286
|
+
I != j && c.setValue(I ?? "");
|
287
|
+
}), ge(() => a.value, (I, C) => {
|
288
288
|
if (!p)
|
289
289
|
return;
|
290
|
-
let
|
291
|
-
I !=
|
292
|
-
}), (I, C) => (h(),
|
290
|
+
let j = p.getValue();
|
291
|
+
I != j && p.setValue(I ?? "");
|
292
|
+
}), (I, C) => (h(), _("div", {
|
293
293
|
ref_key: "compareRef",
|
294
|
-
ref:
|
294
|
+
ref: w,
|
295
295
|
class: "ho-compare",
|
296
|
-
style:
|
296
|
+
style: xe(o(V))
|
297
297
|
}, null, 4));
|
298
298
|
}
|
299
|
-
}),
|
299
|
+
}), Us = {
|
300
300
|
id: "particles",
|
301
301
|
class: "ho-particles"
|
302
302
|
}, Es = /* @__PURE__ */ X({
|
303
|
-
__name: "
|
303
|
+
__name: "HaParticles",
|
304
304
|
setup(i) {
|
305
305
|
let e = Ee();
|
306
306
|
x();
|
@@ -312,12 +312,12 @@ const ui = /* @__PURE__ */ X({
|
|
312
312
|
};
|
313
313
|
return be(() => {
|
314
314
|
l(e.theme);
|
315
|
-
}),
|
315
|
+
}), ge(() => e.theme, (s, n) => {
|
316
316
|
l(s);
|
317
|
-
}), (s, n) => (h(),
|
317
|
+
}), (s, n) => (h(), _("div", Us));
|
318
318
|
}
|
319
|
-
}),
|
320
|
-
__name: "
|
319
|
+
}), mi = /* @__PURE__ */ X({
|
320
|
+
__name: "HaTable",
|
321
321
|
props: {
|
322
322
|
data: {},
|
323
323
|
page: {},
|
@@ -327,28 +327,28 @@ const ui = /* @__PURE__ */ X({
|
|
327
327
|
},
|
328
328
|
emits: ["row-click", "page-change", "size-change", "sort-change"],
|
329
329
|
setup(i, { expose: e, emit: t }) {
|
330
|
-
let l = t, s = i, { data: n, sort: r, page: a, size: u, autoHeight: c } =
|
330
|
+
let l = t, s = i, { data: n, sort: r, page: a, size: u, autoHeight: c } = ue(s), p = x(["descending", "ascending", null]), d = x(), m = x(), f = x(), w = (k) => {
|
331
331
|
l("row-click", k);
|
332
|
-
},
|
332
|
+
}, V = (k) => {
|
333
333
|
l("page-change", k);
|
334
334
|
}, T = (k) => {
|
335
335
|
l("size-change", k);
|
336
|
-
},
|
336
|
+
}, M = ({ column: k, prop: Q, order: J }) => {
|
337
337
|
l("sort-change", { prop: Q, order: J });
|
338
338
|
}, O = (k) => {
|
339
339
|
d.value.setCurrentRow(k);
|
340
340
|
}, I = () => {
|
341
341
|
if (!c.value)
|
342
342
|
return;
|
343
|
-
let k = d.value.$el, Q = k.parentElement, J = Array.from(Q.children), ne = se.filterStyle(J, (b) => b.position == "fixed" || b.position == "absolute"), L = [k, ...ne],
|
344
|
-
|
343
|
+
let k = d.value.$el, Q = k.parentElement, J = Array.from(Q.children), ne = se.filterStyle(J, (b) => b.position == "fixed" || b.position == "absolute"), L = [k, ...ne], F = De.except(J, L), G = se.getHeight(F), q = se.getAvailableHeight(Q) - G;
|
344
|
+
f.value = `${q}px`;
|
345
345
|
}, C = (k) => {
|
346
346
|
I();
|
347
347
|
};
|
348
348
|
be(() => {
|
349
349
|
I();
|
350
350
|
});
|
351
|
-
let
|
351
|
+
let j = fe(() => {
|
352
352
|
let k;
|
353
353
|
if (!r.value)
|
354
354
|
k = n.value;
|
@@ -366,8 +366,8 @@ const ui = /* @__PURE__ */ X({
|
|
366
366
|
return Rt.filterPage(k, a.value, u.value);
|
367
367
|
});
|
368
368
|
return e({ selectRow: O, resize: C }), (k, Q) => {
|
369
|
-
const J =
|
370
|
-
return h(),
|
369
|
+
const J = z("el-table"), ne = z("el-pagination");
|
370
|
+
return h(), _(te, null, [
|
371
371
|
S(J, {
|
372
372
|
ref_key: "tableRef",
|
373
373
|
ref: d,
|
@@ -376,11 +376,11 @@ const ui = /* @__PURE__ */ X({
|
|
376
376
|
"highlight-current-row": "",
|
377
377
|
border: "",
|
378
378
|
size: "small",
|
379
|
-
"max-height": o(
|
380
|
-
data: o(
|
379
|
+
"max-height": o(f),
|
380
|
+
data: o(j),
|
381
381
|
"default-sort": o(r),
|
382
|
-
onRowClick: o(
|
383
|
-
onSortChange: o(
|
382
|
+
onRowClick: o(w),
|
383
|
+
onSortChange: o(M)
|
384
384
|
}, {
|
385
385
|
empty: y(() => [
|
386
386
|
Y("No Data")
|
@@ -399,29 +399,29 @@ const ui = /* @__PURE__ */ X({
|
|
399
399
|
total: o(n).length,
|
400
400
|
"page-sizes": [50, 500, 5e3, 5e4, 5e5],
|
401
401
|
"current-page": o(a),
|
402
|
-
"onUpdate:currentPage": Q[0] || (Q[0] = (L) =>
|
402
|
+
"onUpdate:currentPage": Q[0] || (Q[0] = (L) => $e(a) ? a.value = L : a = L),
|
403
403
|
"page-size": o(u),
|
404
|
-
"onUpdate:pageSize": Q[1] || (Q[1] = (L) =>
|
405
|
-
onCurrentChange: o(
|
404
|
+
"onUpdate:pageSize": Q[1] || (Q[1] = (L) => $e(u) ? u.value = L : u = L),
|
405
|
+
onCurrentChange: o(V),
|
406
406
|
onSizeChange: o(T)
|
407
407
|
}, null, 8, ["total", "current-page", "page-size", "onCurrentChange", "onSizeChange"])
|
408
408
|
], 64);
|
409
409
|
};
|
410
410
|
}
|
411
|
-
}), Rs = ["onMouseenter"],
|
412
|
-
__name: "
|
411
|
+
}), Rs = ["onMouseenter"], pi = /* @__PURE__ */ X({
|
412
|
+
__name: "HaTableColumn",
|
413
413
|
props: {
|
414
414
|
prop: { type: String },
|
415
415
|
label: { type: String },
|
416
416
|
width: { type: Number }
|
417
417
|
},
|
418
418
|
setup(i) {
|
419
|
-
let e = i, { prop: t, label: l, width: s } =
|
419
|
+
let e = i, { prop: t, label: l, width: s } = ue(e), n = x(!1), r = (a, u) => {
|
420
420
|
let c = a.target.children[0], p = se.getWidth(c) + 16, d = u.realWidth || u.width;
|
421
421
|
n.value = p > d;
|
422
422
|
};
|
423
423
|
return (a, u) => {
|
424
|
-
const c =
|
424
|
+
const c = z("el-tooltip"), p = z("el-table-column");
|
425
425
|
return h(), P(p, {
|
426
426
|
label: o(l),
|
427
427
|
prop: o(t),
|
@@ -437,7 +437,7 @@ const ui = /* @__PURE__ */ X({
|
|
437
437
|
v("span", {
|
438
438
|
onMouseenter: (m) => o(r)(m, d.column)
|
439
439
|
}, [
|
440
|
-
v("span", null,
|
440
|
+
v("span", null, D(o(l)), 1)
|
441
441
|
], 40, Rs)
|
442
442
|
]),
|
443
443
|
_: 2
|
@@ -445,7 +445,7 @@ const ui = /* @__PURE__ */ X({
|
|
445
445
|
]),
|
446
446
|
default: y((d) => [
|
447
447
|
H(a.$slots, "default", { scope: d }, () => [
|
448
|
-
Y(
|
448
|
+
Y(D(d.row[o(t)]), 1)
|
449
449
|
])
|
450
450
|
]),
|
451
451
|
_: 3
|
@@ -453,12 +453,12 @@ const ui = /* @__PURE__ */ X({
|
|
453
453
|
};
|
454
454
|
}
|
455
455
|
}), Is = /* @__PURE__ */ X({
|
456
|
-
__name: "
|
456
|
+
__name: "HaProgress",
|
457
457
|
props: {
|
458
458
|
modelValue: Boolean
|
459
459
|
},
|
460
460
|
setup(i) {
|
461
|
-
let e = i, { modelValue: t } =
|
461
|
+
let e = i, { modelValue: t } = ue(e), l = x(!0), s = x(0), n = null, r = () => {
|
462
462
|
s.value = 0, l.value = !0, n = setInterval(() => {
|
463
463
|
if (s.value < 100) {
|
464
464
|
s.value++;
|
@@ -478,13 +478,13 @@ const ui = /* @__PURE__ */ X({
|
|
478
478
|
t.value && r();
|
479
479
|
}), Tt(() => {
|
480
480
|
clearInterval(n);
|
481
|
-
}),
|
481
|
+
}), ge(() => t.value, (u, c) => {
|
482
482
|
u ? r() : a();
|
483
|
-
}), (u, c) => o(l) ? (h(),
|
483
|
+
}), (u, c) => o(l) ? (h(), _("div", {
|
484
484
|
key: 0,
|
485
485
|
class: "ho-progress",
|
486
|
-
style:
|
487
|
-
}, null, 4)) :
|
486
|
+
style: xe({ width: o(s) + "%" })
|
487
|
+
}, null, 4)) : N("", !0);
|
488
488
|
}
|
489
489
|
}), Os = {
|
490
490
|
key: 0,
|
@@ -492,7 +492,7 @@ const ui = /* @__PURE__ */ X({
|
|
492
492
|
}, Ls = { class: "spinner-title" }, Ds = {
|
493
493
|
key: 0,
|
494
494
|
class: "spinner-content"
|
495
|
-
},
|
495
|
+
}, js = { class: "stack" }, Ms = {
|
496
496
|
key: 1,
|
497
497
|
class: "ho-spinner is-loading"
|
498
498
|
}, Ts = { class: "spinner-loading" }, Ps = /* @__PURE__ */ v("div", { class: "spinner-dots" }, [
|
@@ -501,7 +501,7 @@ const ui = /* @__PURE__ */ X({
|
|
501
501
|
/* @__PURE__ */ v("i"),
|
502
502
|
/* @__PURE__ */ v("i")
|
503
503
|
], -1), Bs = { class: "spinner-text" }, zs = /* @__PURE__ */ X({
|
504
|
-
__name: "
|
504
|
+
__name: "HaSpinner",
|
505
505
|
props: {
|
506
506
|
title: { type: String },
|
507
507
|
//错误标题
|
@@ -510,67 +510,67 @@ const ui = /* @__PURE__ */ X({
|
|
510
510
|
},
|
511
511
|
emits: ["retry"],
|
512
512
|
setup(i, { emit: e }) {
|
513
|
-
let t = e, l = i, { title: s, content: n } =
|
513
|
+
let t = e, l = i, { title: s, content: n } = ue(l), r = () => {
|
514
514
|
t("retry");
|
515
515
|
};
|
516
|
-
return (a, u) => o(s) || o(n) ? (h(),
|
516
|
+
return (a, u) => o(s) || o(n) ? (h(), _("div", Os, [
|
517
517
|
v("div", Ls, [
|
518
|
-
Y(
|
518
|
+
Y(D(o(s)), 1),
|
519
519
|
v("a", {
|
520
520
|
class: "retry",
|
521
521
|
onClick: u[0] || (u[0] = //@ts-ignore
|
522
522
|
(...c) => o(r) && o(r)(...c))
|
523
|
-
},
|
523
|
+
}, D(a.$t("common.retry")), 1)
|
524
524
|
]),
|
525
|
-
o(n) ? (h(),
|
526
|
-
v("div",
|
527
|
-
])) :
|
528
|
-
])) : (h(),
|
525
|
+
o(n) ? (h(), _("div", Ds, [
|
526
|
+
v("div", js, D(o(n)), 1)
|
527
|
+
])) : N("", !0)
|
528
|
+
])) : (h(), _("div", Ms, [
|
529
529
|
v("div", Ts, [
|
530
530
|
Ps,
|
531
|
-
v("div", Bs,
|
531
|
+
v("div", Bs, D(a.$t("common.loading")) + "...", 1)
|
532
532
|
])
|
533
533
|
]));
|
534
534
|
}
|
535
535
|
}), As = { class: "ho-resizer" }, Pl = /* @__PURE__ */ X({
|
536
|
-
__name: "
|
536
|
+
__name: "HaResizer",
|
537
537
|
props: {
|
538
538
|
width: { type: Number, default: null }
|
539
539
|
//默认无宽度
|
540
540
|
},
|
541
541
|
emits: ["resize"],
|
542
542
|
setup(i, { emit: e }) {
|
543
|
-
let t = e, l = i, { width: s } =
|
543
|
+
let t = e, l = i, { width: s } = ue(l), n = x(!1), r = null, a = null, u = (m) => {
|
544
544
|
m.preventDefault(), n.value = !0, r = m, a = s.value, document.addEventListener("mousemove", c), document.addEventListener("mouseup", p);
|
545
545
|
}, c = (m) => {
|
546
|
-
let
|
547
|
-
d(
|
546
|
+
let f = m.clientX - r.clientX, w = a + f;
|
547
|
+
d(w);
|
548
548
|
}, p = (m) => {
|
549
549
|
n.value = !1, r = null, a = null, document.removeEventListener("mousemove", c), document.removeEventListener("mouseup", p);
|
550
550
|
}, d = (m) => {
|
551
551
|
t("resize", m);
|
552
552
|
};
|
553
|
-
return (m,
|
554
|
-
o(s) != null ? (h(),
|
553
|
+
return (m, f) => (h(), _("div", As, [
|
554
|
+
o(s) != null ? (h(), _("div", {
|
555
555
|
key: 0,
|
556
556
|
class: "resizer-left",
|
557
|
-
style:
|
557
|
+
style: xe({ width: `${o(s)}px` })
|
558
558
|
}, [
|
559
559
|
H(m.$slots, "left")
|
560
|
-
], 4)) :
|
560
|
+
], 4)) : N("", !0),
|
561
561
|
v("div", {
|
562
562
|
class: "resizer-right",
|
563
|
-
style:
|
563
|
+
style: xe({ width: `calc(100% - ${o(s) ?? 0}px)` })
|
564
564
|
}, [
|
565
565
|
H(m.$slots, "default")
|
566
566
|
], 4),
|
567
|
-
o(s) != null ? (h(),
|
567
|
+
o(s) != null ? (h(), _("div", {
|
568
568
|
key: 1,
|
569
569
|
class: ae(["resizer-handle", { dragging: o(n) }]),
|
570
|
-
onMousedown:
|
571
|
-
(...
|
572
|
-
style:
|
573
|
-
}, null, 38)) :
|
570
|
+
onMousedown: f[0] || (f[0] = //@ts-ignore
|
571
|
+
(...w) => o(u) && o(u)(...w)),
|
572
|
+
style: xe({ left: `${o(s)}px` })
|
573
|
+
}, null, 38)) : N("", !0)
|
574
574
|
]));
|
575
575
|
}
|
576
576
|
});
|
@@ -722,9 +722,9 @@ ie.getChunks = (e, t) => {
|
|
722
722
|
}), s;
|
723
723
|
};
|
724
724
|
let De = ie;
|
725
|
-
class
|
725
|
+
class hi {
|
726
726
|
}
|
727
|
-
const
|
727
|
+
const le = class le {
|
728
728
|
/**
|
729
729
|
* 根据字符串或数组,自动返回数组
|
730
730
|
*/
|
@@ -739,23 +739,23 @@ const te = class te {
|
|
739
739
|
return l == s;
|
740
740
|
}
|
741
741
|
};
|
742
|
-
|
742
|
+
le.getUniqueId = () => {
|
743
743
|
let e = Date.now().toString(36);
|
744
744
|
return e += Math.random().toString(36).substring(2), e;
|
745
|
-
},
|
745
|
+
}, le.padLeft = (e, t, l) => is.pad(e, t, l), le.trimStart = (e, t) => {
|
746
746
|
if (t == null)
|
747
747
|
return e;
|
748
748
|
let l = e.indexOf(t);
|
749
749
|
return e.substring(l + t.length);
|
750
|
-
},
|
750
|
+
}, le.trimEnd = (e, t) => {
|
751
751
|
if (t == null)
|
752
752
|
return e;
|
753
753
|
let l = e.lastIndexOf(t);
|
754
754
|
return e.substring(0, l);
|
755
|
-
},
|
756
|
-
let s =
|
757
|
-
return
|
758
|
-
},
|
755
|
+
}, le.trim = (e, t, l) => {
|
756
|
+
let s = le.trimStart(e, t);
|
757
|
+
return le.trimEnd(s, l);
|
758
|
+
}, le.getDashName = (e) => {
|
759
759
|
if (!e)
|
760
760
|
return null;
|
761
761
|
let t = "";
|
@@ -764,7 +764,7 @@ te.getUniqueId = () => {
|
|
764
764
|
s == "/" ? t += "-" : s >= "A" && s <= "Z" ? (l > 0 && e[l - 1] != "/" && (t += "-"), t += s.toLowerCase()) : t += s;
|
765
765
|
}
|
766
766
|
return t;
|
767
|
-
},
|
767
|
+
}, le.containsIgnoreCase = (e, t) => {
|
768
768
|
if (!e)
|
769
769
|
return !0;
|
770
770
|
let l = me.isArray(t) ? t : [t];
|
@@ -776,12 +776,12 @@ te.getUniqueId = () => {
|
|
776
776
|
return !0;
|
777
777
|
}
|
778
778
|
return !1;
|
779
|
-
},
|
779
|
+
}, le.getTextFromHtml = (e) => {
|
780
780
|
if (!e)
|
781
781
|
return null;
|
782
782
|
let t = new RegExp("<.+?>", "g");
|
783
783
|
return e.replace(t, "");
|
784
|
-
},
|
784
|
+
}, le.isNumber = (e) => e != null && !isNaN(e), le.isEmail = (e) => /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e), le.isJson = (e) => {
|
785
785
|
try {
|
786
786
|
if (!e)
|
787
787
|
return !1;
|
@@ -790,12 +790,12 @@ te.getUniqueId = () => {
|
|
790
790
|
} catch {
|
791
791
|
return !1;
|
792
792
|
}
|
793
|
-
},
|
793
|
+
}, le.isJsonp = (e) => {
|
794
794
|
if (!e)
|
795
795
|
return !1;
|
796
796
|
let t = e.indexOf("("), l = e.lastIndexOf(")"), s = e.substring(t + 1, l);
|
797
|
-
return !!
|
798
|
-
},
|
797
|
+
return !!le.isJson(s);
|
798
|
+
}, le.isHtml = (e) => {
|
799
799
|
if (!e)
|
800
800
|
return !1;
|
801
801
|
let t = document.createElement("div");
|
@@ -804,17 +804,17 @@ te.getUniqueId = () => {
|
|
804
804
|
if (l[s].nodeType == 1)
|
805
805
|
return !0;
|
806
806
|
return !1;
|
807
|
-
},
|
807
|
+
}, le.getContentType = (e) => le.isJson(e) || le.isJsonp(e) ? "json" : le.isHtml(e) ? "html" : "text", le.isNullOrEmpty = (e) => e == null || le.isEmpty(e), le.isEmpty = (e) => e == "", le.isPassword = (e) => !0, le.getNumberOrNull = (e) => e == null || isNaN(e) ? 0 : parseFloat(e), le.format = (e, t) => {
|
808
808
|
let l = parseFloat(e), s;
|
809
809
|
return t ? s = l.toFixed(t).replace(/(\d)(?=(\d{3})+\.)/g, "$1,") : s = l.toLocaleString(), s;
|
810
|
-
},
|
810
|
+
}, le.getBetween = (e, t, l) => {
|
811
811
|
let s = e.indexOf(t);
|
812
812
|
if (s == -1)
|
813
813
|
return null;
|
814
814
|
let n = s + t.length, r = e.substring(n), a = r.indexOf(l);
|
815
815
|
return a == -1 ? null : r.substring(0, a);
|
816
816
|
};
|
817
|
-
let Xt =
|
817
|
+
let Xt = le;
|
818
818
|
const Pe = Xt, pt = class pt {
|
819
819
|
/**
|
820
820
|
* 根据计算后的样式进行DOM过滤
|
@@ -949,13 +949,13 @@ const Pe = Xt, pt = class pt {
|
|
949
949
|
let r = e.querySelector(l);
|
950
950
|
if (!r)
|
951
951
|
return null;
|
952
|
-
let a = {}, u = e.getBoundingClientRect(), c = s.getBoundingClientRect(), d = e.querySelector(t).getBoundingClientRect(), m = r.getBoundingClientRect(),
|
952
|
+
let a = {}, u = e.getBoundingClientRect(), c = s.getBoundingClientRect(), d = e.querySelector(t).getBoundingClientRect(), m = r.getBoundingClientRect(), f = c.height - d.top;
|
953
953
|
if (n == "right") {
|
954
954
|
a.left = `${u.left + u.width}px`;
|
955
|
-
let
|
956
|
-
m.height > c.height ?
|
955
|
+
let w;
|
956
|
+
m.height > c.height ? w = c.height : w = m.height, a.height = `${w}px`, w + d.top > c.height ? (a.top = "initial", a.bottom = "0px") : a.top = `${u.top}px`;
|
957
957
|
} else if (n == "bottom")
|
958
|
-
|
958
|
+
f -= d.height, a.left = `${u.left}px`, a.top = `${u.top + u.height}px`, f < m.height ? a.height = `${f}px` : a.height = `${m.height}px`;
|
959
959
|
else
|
960
960
|
throw new Error(`暂未支持的position:${n}`);
|
961
961
|
return a;
|
@@ -1115,7 +1115,7 @@ const hl = class hl {
|
|
1115
1115
|
};
|
1116
1116
|
hl.load = function(e, t, l, s) {
|
1117
1117
|
};
|
1118
|
-
let
|
1118
|
+
let Vl = hl;
|
1119
1119
|
const ft = class ft {
|
1120
1120
|
};
|
1121
1121
|
ft.emit = (e, t) => {
|
@@ -1277,21 +1277,21 @@ et.delay = (e, t) => setTimeout(e, t), et.execute = (e, t, l) => {
|
|
1277
1277
|
}, t, s);
|
1278
1278
|
};
|
1279
1279
|
};
|
1280
|
-
let
|
1281
|
-
const
|
1280
|
+
let Ul = et;
|
1281
|
+
const ye = class ye {
|
1282
1282
|
};
|
1283
|
-
|
1283
|
+
ye.getTimestamp = (e = null) => (e ? new Date(e) : /* @__PURE__ */ new Date()).getTime(), ye.getTime = (e = null) => e ? new Date(e) : /* @__PURE__ */ new Date(), ye.format = (e, t) => ze(e).format(t), ye.getDateTimeString = () => ye.formatSecondTime(/* @__PURE__ */ new Date()), ye.getDateString = () => ye.formatDate(/* @__PURE__ */ new Date()), ye.getTimeString = () => ye.formatTime(/* @__PURE__ */ new Date()), ye.formatSecondTime = (e) => ze(e).format("YYYY-MM-DD HH:mm:ss"), ye.formatMillisecondTime = (e) => e ? ze(e).format("YYYY-MM-DD HH:mm:ss SSS") : null, ye.formatTime = (e) => e ? ze(e).format("HH:mm:ss SSS") : null, ye.formatDate = (e) => e ? ze(e).format("YYYY-MM-DD") : null, ye.addDays = (e, t) => e ? ze(e).add(t, "days").format() : null, ye.addMonths = (e, t) => e ? ze(e).add(t, "months").format() : null, ye.isWeekend = (e) => {
|
1284
1284
|
if (!e)
|
1285
1285
|
return !1;
|
1286
1286
|
let t = ze(e).format("d");
|
1287
1287
|
return t == "6" || t == "0";
|
1288
|
-
},
|
1288
|
+
}, ye.localeTime = (e) => {
|
1289
1289
|
if (!e)
|
1290
1290
|
return null;
|
1291
1291
|
let l = (/* @__PURE__ */ new Date()).getTimezoneOffset() + 480;
|
1292
1292
|
return ze(e).add(l, "minutes").format();
|
1293
1293
|
};
|
1294
|
-
let Qe =
|
1294
|
+
let Qe = ye;
|
1295
1295
|
const re = class re {
|
1296
1296
|
};
|
1297
1297
|
re.getById = (e, t, l, s) => {
|
@@ -1351,8 +1351,8 @@ re.getById = (e, t, l, s) => {
|
|
1351
1351
|
let c = !1, p = re.getChildren(u, l, !0);
|
1352
1352
|
for (let d of p) {
|
1353
1353
|
for (let m of a) {
|
1354
|
-
let
|
1355
|
-
if ((
|
1354
|
+
let f = d[m];
|
1355
|
+
if ((f ? f.toUpperCase() : "").indexOf(r) > -1) {
|
1356
1356
|
c = !0;
|
1357
1357
|
break;
|
1358
1358
|
}
|
@@ -1419,18 +1419,18 @@ function Qt(i, e, t) {
|
|
1419
1419
|
}
|
1420
1420
|
return t;
|
1421
1421
|
}
|
1422
|
-
const
|
1422
|
+
const Me = class Me {
|
1423
1423
|
};
|
1424
|
-
|
1424
|
+
Me.get = (e, t = null) => localStorage.getItem(e) ?? t, Me.set = (e, t) => localStorage.setItem(e, t), Me.getObject = (e) => JSON.parse(localStorage.getItem(e)), Me.setObject = (e, t) => localStorage.setItem(e, JSON.stringify(t)), Me.remove = (e) => localStorage.removeItem(e), Me.getLeftStorage = () => {
|
1425
1425
|
let e = 0;
|
1426
1426
|
return Object.keys(localStorage).forEach((l) => {
|
1427
1427
|
e += localStorage.getItem(l).length;
|
1428
1428
|
}), 1e-4 * 1024 - e / 1024;
|
1429
|
-
},
|
1429
|
+
}, Me.canStorage = (e) => {
|
1430
1430
|
let t = JSON.stringify(e).length / 1024;
|
1431
|
-
return
|
1431
|
+
return Me.getLeftStorage() > t;
|
1432
1432
|
};
|
1433
|
-
let ee =
|
1433
|
+
let ee = Me;
|
1434
1434
|
const Dt = class Dt {
|
1435
1435
|
};
|
1436
1436
|
Dt.isBottom = (e) => {
|
@@ -1494,21 +1494,21 @@ function Jt(i, e, t, l) {
|
|
1494
1494
|
`;
|
1495
1495
|
for (let n = 0; n < i.length; n++) {
|
1496
1496
|
let r = i[n], a = l(r);
|
1497
|
-
a.type == "array" ? (a.remark && (s +=
|
1498
|
-
`), s += qt(2 * t, a.key) + "[", s += Jt(r[e], e, t + 1, l), s += "]", n != i.length - 1 && (s += ",")) : a.type == "object" ? (a.remark && (s +=
|
1497
|
+
a.type == "array" ? (a.remark && (s += Vt(2 * t) + "//" + a.remark + `
|
1498
|
+
`), s += qt(2 * t, a.key) + "[", s += Jt(r[e], e, t + 1, l), s += "]", n != i.length - 1 && (s += ",")) : a.type == "object" ? (a.remark && (s += Vt(2 * t) + "//" + a.remark + `
|
1499
1499
|
`), s += qt(2 * t, a.key), s += Jt(r[e], e, t + 1, l), n != i.length - 1 && (s += ",")) : (s += qt(2 * t, a.key), a.type == "string" ? s += '""' : a.type == "date" ? s += `"${Qe.getDateTimeString()}"` : a.type == "int" || a.type == "number" ? s += "0" : a.type == "boolean" ? s += "false" : s += null, n != i.length - 1 && (s += ","), a.remark && (s += " //" + a.remark)), s += `
|
1500
1500
|
`;
|
1501
1501
|
}
|
1502
|
-
return s +=
|
1502
|
+
return s += Vt(2 * (t - 1)), s += "}", s;
|
1503
1503
|
}
|
1504
|
-
function
|
1504
|
+
function Vt(i) {
|
1505
1505
|
let e = "";
|
1506
1506
|
for (let t = 0; t < i; t++)
|
1507
1507
|
e += " ";
|
1508
1508
|
return e;
|
1509
1509
|
}
|
1510
1510
|
function qt(i, e) {
|
1511
|
-
let t =
|
1511
|
+
let t = Vt(i);
|
1512
1512
|
return t += '"' + e + '": ', t;
|
1513
1513
|
}
|
1514
1514
|
class zl {
|
@@ -1526,7 +1526,7 @@ class zl {
|
|
1526
1526
|
return e.language || t || "zh-cn";
|
1527
1527
|
}
|
1528
1528
|
}
|
1529
|
-
const
|
1529
|
+
const Ue = class Ue {
|
1530
1530
|
/**
|
1531
1531
|
* 获取指定地址路由对象
|
1532
1532
|
*/
|
@@ -1687,7 +1687,7 @@ const Ve = class Ve {
|
|
1687
1687
|
return e ? e.indexOf("http://") > -1 || e.indexOf("https://") > -1 : !1;
|
1688
1688
|
}
|
1689
1689
|
};
|
1690
|
-
|
1690
|
+
Ue.handleQueryValue = (e, t) => {
|
1691
1691
|
let l = "";
|
1692
1692
|
if (e == null)
|
1693
1693
|
return l;
|
@@ -1695,13 +1695,13 @@ Ve.handleQueryValue = (e, t) => {
|
|
1695
1695
|
if (e.length > 0)
|
1696
1696
|
for (let s = 0; s < e.length; s++) {
|
1697
1697
|
let n = pe.clone(t);
|
1698
|
-
n.push(""), l +=
|
1698
|
+
n.push(""), l += Ue.handleQueryValue(e[s], n);
|
1699
1699
|
}
|
1700
1700
|
} else if (e instanceof Object) {
|
1701
1701
|
let s = Object.keys(e);
|
1702
1702
|
for (let n of s) {
|
1703
1703
|
let r = pe.clone(t);
|
1704
|
-
r.push(n), l +=
|
1704
|
+
r.push(n), l += Ue.handleQueryValue(e[n], r);
|
1705
1705
|
}
|
1706
1706
|
} else {
|
1707
1707
|
let s = "";
|
@@ -1711,30 +1711,30 @@ Ve.handleQueryValue = (e, t) => {
|
|
1711
1711
|
n = n.replace(/'/g, "%27"), n = n.replace(/%20/g, "+"), n = n.replace(/%5B/g, "["), n = n.replace(/%5D/g, "]"), n = n.replace(/%2C/g, ","), n = n.replace(/%3A/g, ":"), n = n.replace(/%24/g, "$"), l += `&${s}=${n}`;
|
1712
1712
|
}
|
1713
1713
|
return l;
|
1714
|
-
},
|
1714
|
+
}, Ue.getUrl = (e, t = null) => {
|
1715
1715
|
if (e == null)
|
1716
1716
|
return null;
|
1717
1717
|
if (t == null)
|
1718
1718
|
return e;
|
1719
|
-
let l =
|
1720
|
-
return
|
1721
|
-
},
|
1719
|
+
let l = Ue.getObjectFromUrl(e), s = pe.merge(l, t);
|
1720
|
+
return Ue.getPath(e) + "?" + Ue.getQuery(s);
|
1721
|
+
}, Ue.getAnchor = (e, t = null) => {
|
1722
1722
|
let l = { href: null, target: null };
|
1723
|
-
return
|
1723
|
+
return Ue.httpOrHttps(e) ? (l.href = e, l.target = "_blank", l) : (l.href = Ue.getUrl(e, t), l);
|
1724
1724
|
};
|
1725
|
-
let Z =
|
1725
|
+
let Z = Ue;
|
1726
1726
|
const Ws = ["href", "target"], Rl = /* @__PURE__ */ X({
|
1727
|
-
__name: "
|
1727
|
+
__name: "HaHeaderTab",
|
1728
1728
|
props: {
|
1729
1729
|
name: String,
|
1730
1730
|
url: String
|
1731
1731
|
},
|
1732
1732
|
emits: ["click"],
|
1733
1733
|
setup(i, { emit: e }) {
|
1734
|
-
let t = e, l = i, { name: s, url: n } =
|
1734
|
+
let t = e, l = i, { name: s, url: n } = ue(l), r = jl("model"), a = (c, p, d) => {
|
1735
1735
|
c.preventDefault(), d || (r.value = p), t("click", c, p, d);
|
1736
|
-
}, u =
|
1737
|
-
return (c, p) => (h(),
|
1736
|
+
}, u = fe(() => Z.getAnchor(n.value, { m: s.value }));
|
1737
|
+
return (c, p) => (h(), _("a", {
|
1738
1738
|
class: ae(["ho-window-tab", { current: o(r) == o(s) }]),
|
1739
1739
|
href: o(u).href,
|
1740
1740
|
target: o(u).target,
|
@@ -1747,13 +1747,13 @@ const Ws = ["href", "target"], Rl = /* @__PURE__ */ X({
|
|
1747
1747
|
], 10, Ws));
|
1748
1748
|
}
|
1749
1749
|
}), qs = /* @__PURE__ */ X({
|
1750
|
-
__name: "
|
1750
|
+
__name: "HaHeaderTabs",
|
1751
1751
|
props: {
|
1752
1752
|
modelValue: String
|
1753
1753
|
},
|
1754
1754
|
emits: ["update:modelValue"],
|
1755
1755
|
setup(i, { emit: e }) {
|
1756
|
-
let t = e, l = i, { modelValue: s } =
|
1756
|
+
let t = e, l = i, { modelValue: s } = ue(l), n = fe({
|
1757
1757
|
get() {
|
1758
1758
|
return s.value;
|
1759
1759
|
},
|
@@ -1761,25 +1761,25 @@ const Ws = ["href", "target"], Rl = /* @__PURE__ */ X({
|
|
1761
1761
|
t("update:modelValue", r);
|
1762
1762
|
}
|
1763
1763
|
});
|
1764
|
-
return
|
1764
|
+
return Ml("model", n), (r, a) => H(r.$slots, "default");
|
1765
1765
|
}
|
1766
1766
|
}), Ks = {}, Ys = { class: "ho-miss-component" }, Xs = /* @__PURE__ */ v("div", { class: "miss-title" }, "404", -1), Qs = { class: "miss-content" };
|
1767
1767
|
function Js(i, e) {
|
1768
|
-
return h(),
|
1768
|
+
return h(), _("div", Ys, [
|
1769
1769
|
Xs,
|
1770
1770
|
v("div", Qs, [
|
1771
1771
|
H(i.$slots, "default")
|
1772
1772
|
])
|
1773
1773
|
]);
|
1774
1774
|
}
|
1775
|
-
const
|
1775
|
+
const fi = /* @__PURE__ */ ol(Ks, [["render", Js]]), Gs = ["href", "target"], Zs = { class: "menu-text" }, Hs = {
|
1776
1776
|
key: 0,
|
1777
1777
|
class: "arrow fa fa-chevron-down"
|
1778
1778
|
}, en = {
|
1779
1779
|
key: 1,
|
1780
1780
|
class: "arrow fa fa-chevron-right"
|
1781
1781
|
}, tn = /* @__PURE__ */ X({
|
1782
|
-
__name: "
|
1782
|
+
__name: "HaMenuItem",
|
1783
1783
|
props: {
|
1784
1784
|
menu: { type: Object, required: !0 },
|
1785
1785
|
level: { type: Number, required: !0 },
|
@@ -1791,62 +1791,62 @@ const hi = /* @__PURE__ */ ol(Ks, [["render", Js]]), Gs = ["href", "target"], Zs
|
|
1791
1791
|
},
|
1792
1792
|
emits: ["click"],
|
1793
1793
|
setup(i, { expose: e, emit: t }) {
|
1794
|
-
let l = t, s = i, { menu: n, level: r, direction: a, opts: u, activeIds: c, modelValue: p } =
|
1795
|
-
|
1794
|
+
let l = t, s = i, { menu: n, level: r, direction: a, opts: u, activeIds: c, modelValue: p } = ue(s), d = x(), m = x(), f = x(), w = x(), V = x(!1), T = new Pt(), M = (L) => {
|
1795
|
+
V.value = !1, l("click", L);
|
1796
1796
|
}, O = (L) => {
|
1797
|
-
|
1797
|
+
V.value = !1, l("click", L);
|
1798
1798
|
}, I = () => {
|
1799
1799
|
C(d.value);
|
1800
1800
|
}, C = (L) => {
|
1801
|
-
let
|
1802
|
-
|
1803
|
-
},
|
1804
|
-
C(L.currentTarget),
|
1801
|
+
let F = se.getViewportStyle(L, ".menu-title", ".el-scrollbar__view", window.document.documentElement, Q.value);
|
1802
|
+
w.value = F, f.value && f.value.update();
|
1803
|
+
}, j = (L) => {
|
1804
|
+
C(L.currentTarget), V.value = !0, T.clearDebounce();
|
1805
1805
|
}, k = (L) => {
|
1806
1806
|
T.debounce(() => {
|
1807
|
-
|
1807
|
+
V.value = !1;
|
1808
1808
|
}, 100);
|
1809
|
-
}, Q =
|
1809
|
+
}, Q = fe(() => {
|
1810
1810
|
let L;
|
1811
1811
|
return r.value == 1 && a.value == "horizontal" ? L = "bottom" : L = "right", L;
|
1812
|
-
}), J =
|
1813
|
-
return e({ resize: I }), (L,
|
1814
|
-
const G =
|
1815
|
-
return h(),
|
1812
|
+
}), J = fe(() => c.value.includes(n.value[u.value.id])), ne = fe(() => Z.getAnchor(n.value.url, { m: n.value[u.value.id] }));
|
1813
|
+
return e({ resize: I }), (L, F) => {
|
1814
|
+
const G = z("ho-menu-item"), A = z("el-scrollbar");
|
1815
|
+
return h(), _("div", {
|
1816
1816
|
ref_key: "menuRef",
|
1817
1817
|
ref: d,
|
1818
|
-
class: ae(["ho-menu", { active: o(J), current: o(n)[o(u).id] == o(p), horizontal: o(r) == 1 && o(a) == "horizontal", vertical: o(r) > 1 || o(a) == "vertical", hovered: o(
|
1819
|
-
onMouseover:
|
1820
|
-
(...q) => o(
|
1821
|
-
onMouseout:
|
1818
|
+
class: ae(["ho-menu", { active: o(J), current: o(n)[o(u).id] == o(p), horizontal: o(r) == 1 && o(a) == "horizontal", vertical: o(r) > 1 || o(a) == "vertical", hovered: o(V) }]),
|
1819
|
+
onMouseover: F[2] || (F[2] = //@ts-ignore
|
1820
|
+
(...q) => o(j) && o(j)(...q)),
|
1821
|
+
onMouseout: F[3] || (F[3] = //@ts-ignore
|
1822
1822
|
(...q) => o(k) && o(k)(...q))
|
1823
1823
|
}, [
|
1824
1824
|
v("a", {
|
1825
1825
|
class: "menu-title",
|
1826
1826
|
href: o(ne).href,
|
1827
1827
|
target: o(ne).target,
|
1828
|
-
onClick:
|
1829
|
-
style:
|
1828
|
+
onClick: F[0] || (F[0] = st((q) => o(M)(o(n)), ["prevent"])),
|
1829
|
+
style: xe({ paddingLeft: o(r) * 20 + "px" })
|
1830
1830
|
}, [
|
1831
1831
|
v("i", {
|
1832
1832
|
class: ae(["icon", o(n)[o(u).icon]])
|
1833
1833
|
}, null, 2),
|
1834
|
-
v("span", Zs,
|
1835
|
-
o(n)[o(u).children].length > 0 ? (h(),
|
1836
|
-
o(Q) == "bottom" ? (h(),
|
1837
|
-
], 64)) :
|
1834
|
+
v("span", Zs, D(L.$t_menu(o(n)[o(u).id])), 1),
|
1835
|
+
o(n)[o(u).children].length > 0 ? (h(), _(te, { key: 0 }, [
|
1836
|
+
o(Q) == "bottom" ? (h(), _("i", Hs)) : (h(), _("i", en))
|
1837
|
+
], 64)) : N("", !0)
|
1838
1838
|
], 12, Gs),
|
1839
|
-
o(n)[o(u).children].length > 0 ? (h(),
|
1839
|
+
o(n)[o(u).children].length > 0 ? (h(), _("div", {
|
1840
1840
|
key: 0,
|
1841
1841
|
class: "menu-content",
|
1842
|
-
style:
|
1842
|
+
style: xe(o(w))
|
1843
1843
|
}, [
|
1844
|
-
S(
|
1844
|
+
S(A, {
|
1845
1845
|
ref_key: "scrollerRef",
|
1846
|
-
ref:
|
1846
|
+
ref: f
|
1847
1847
|
}, {
|
1848
1848
|
default: y(() => [
|
1849
|
-
(h(!0),
|
1849
|
+
(h(!0), _(te, null, he(o(n)[o(u).children], (q) => (h(), P(G, {
|
1850
1850
|
ref_for: !0,
|
1851
1851
|
ref_key: "menusRef",
|
1852
1852
|
ref: m,
|
@@ -1856,18 +1856,18 @@ const hi = /* @__PURE__ */ ol(Ks, [["render", Js]]), Gs = ["href", "target"], Zs
|
|
1856
1856
|
"active-ids": o(c),
|
1857
1857
|
onClick: o(O),
|
1858
1858
|
modelValue: o(p),
|
1859
|
-
"onUpdate:modelValue":
|
1859
|
+
"onUpdate:modelValue": F[1] || (F[1] = (b) => $e(p) ? p.value = b : p = b),
|
1860
1860
|
key: q[o(u).id]
|
1861
1861
|
}, null, 8, ["menu", "level", "opts", "active-ids", "onClick", "modelValue"]))), 128))
|
1862
1862
|
]),
|
1863
1863
|
_: 1
|
1864
1864
|
}, 512)
|
1865
|
-
], 4)) :
|
1865
|
+
], 4)) : N("", !0)
|
1866
1866
|
], 34);
|
1867
1867
|
};
|
1868
1868
|
}
|
1869
1869
|
}), Al = /* @__PURE__ */ X({
|
1870
|
-
__name: "
|
1870
|
+
__name: "HaMenu",
|
1871
1871
|
props: {
|
1872
1872
|
menus: { type: Array, required: !0 },
|
1873
1873
|
direction: { type: String, default: "horizontal" },
|
@@ -1879,40 +1879,40 @@ const hi = /* @__PURE__ */ ol(Ks, [["render", Js]]), Gs = ["href", "target"], Zs
|
|
1879
1879
|
},
|
1880
1880
|
emits: ["click", "update:modelValue"],
|
1881
1881
|
setup(i, { expose: e, emit: t }) {
|
1882
|
-
let l = t, s = i, { menus: n, direction: r, options: a, modelValue: u } =
|
1883
|
-
let
|
1884
|
-
l("update:modelValue",
|
1885
|
-
}, d = (
|
1886
|
-
}, m =
|
1887
|
-
var
|
1882
|
+
let l = t, s = i, { menus: n, direction: r, options: a, modelValue: u } = ue(s), c = x(), p = (w) => {
|
1883
|
+
let V = w[m.value.id], T = Z.getUrl(w[m.value.url], { m: V });
|
1884
|
+
l("update:modelValue", V), l("click", T);
|
1885
|
+
}, d = (w) => {
|
1886
|
+
}, m = fe(() => {
|
1887
|
+
var V, T, M, O, I;
|
1888
1888
|
return {
|
1889
|
-
id: ((
|
1889
|
+
id: ((V = a.value) == null ? void 0 : V.id) || "id",
|
1890
1890
|
title: ((T = a.value) == null ? void 0 : T.title) || "title",
|
1891
|
-
url: ((
|
1891
|
+
url: ((M = a.value) == null ? void 0 : M.url) || "url",
|
1892
1892
|
icon: ((O = a.value) == null ? void 0 : O.icon) || "icon",
|
1893
1893
|
children: ((I = a.value) == null ? void 0 : I.children) || "children"
|
1894
1894
|
};
|
1895
|
-
}),
|
1896
|
-
return e({ resize: d }), (
|
1897
|
-
const T =
|
1895
|
+
}), f = fe(() => Te.getParentsById(u.value, m.value.id, n.value, m.value.children, !0).map((T) => T[m.value.id]));
|
1896
|
+
return e({ resize: d }), (w, V) => {
|
1897
|
+
const T = z("el-scrollbar");
|
1898
1898
|
return h(), P(T, null, {
|
1899
1899
|
default: y(() => [
|
1900
1900
|
v("div", {
|
1901
1901
|
class: ae(["ho-menus", o(r)])
|
1902
1902
|
}, [
|
1903
|
-
(h(!0),
|
1903
|
+
(h(!0), _(te, null, he(o(n), (M) => (h(), P(tn, {
|
1904
1904
|
ref_for: !0,
|
1905
1905
|
ref_key: "menusRef",
|
1906
1906
|
ref: c,
|
1907
|
-
menu:
|
1907
|
+
menu: M,
|
1908
1908
|
direction: o(r),
|
1909
1909
|
level: 1,
|
1910
1910
|
opts: o(m),
|
1911
|
-
"active-ids": o(
|
1911
|
+
"active-ids": o(f),
|
1912
1912
|
onClick: o(p),
|
1913
1913
|
modelValue: o(u),
|
1914
|
-
"onUpdate:modelValue":
|
1915
|
-
key:
|
1914
|
+
"onUpdate:modelValue": V[0] || (V[0] = (O) => $e(u) ? u.value = O : u = O),
|
1915
|
+
key: M[o(m).id]
|
1916
1916
|
}, null, 8, ["menu", "direction", "opts", "active-ids", "onClick", "modelValue"]))), 128))
|
1917
1917
|
], 2)
|
1918
1918
|
]),
|
@@ -1921,7 +1921,7 @@ const hi = /* @__PURE__ */ ol(Ks, [["render", Js]]), Gs = ["href", "target"], Zs
|
|
1921
1921
|
};
|
1922
1922
|
}
|
1923
1923
|
}), ln = ["href", "target", "title"], Ot = /* @__PURE__ */ X({
|
1924
|
-
__name: "
|
1924
|
+
__name: "HaSideTab",
|
1925
1925
|
props: {
|
1926
1926
|
name: String,
|
1927
1927
|
url: String,
|
@@ -1929,10 +1929,10 @@ const hi = /* @__PURE__ */ ol(Ks, [["render", Js]]), Gs = ["href", "target"], Zs
|
|
1929
1929
|
},
|
1930
1930
|
emits: ["click"],
|
1931
1931
|
setup(i, { emit: e }) {
|
1932
|
-
let t = e, l = i, { name: s, url: n, title: r } =
|
1932
|
+
let t = e, l = i, { name: s, url: n, title: r } = ue(l), a = jl("model"), u = (p, d, m) => {
|
1933
1933
|
p.preventDefault(), m || (a.value = d), t("click", p, d, m);
|
1934
|
-
}, c =
|
1935
|
-
return (p, d) => (h(),
|
1934
|
+
}, c = fe(() => Z.getAnchor(n.value, { m: s.value }));
|
1935
|
+
return (p, d) => (h(), _("a", {
|
1936
1936
|
class: ae(["ho-window-tab", { current: o(a) == o(s) }]),
|
1937
1937
|
href: o(c).href,
|
1938
1938
|
target: o(c).target,
|
@@ -1946,13 +1946,13 @@ const hi = /* @__PURE__ */ ol(Ks, [["render", Js]]), Gs = ["href", "target"], Zs
|
|
1946
1946
|
], 10, ln));
|
1947
1947
|
}
|
1948
1948
|
}), Nl = /* @__PURE__ */ X({
|
1949
|
-
__name: "
|
1949
|
+
__name: "HaSideTabs",
|
1950
1950
|
props: {
|
1951
1951
|
modelValue: String
|
1952
1952
|
},
|
1953
1953
|
emits: ["update:modelValue"],
|
1954
1954
|
setup(i, { emit: e }) {
|
1955
|
-
let t = e, l = i, { modelValue: s } =
|
1955
|
+
let t = e, l = i, { modelValue: s } = ue(l), n = fe({
|
1956
1956
|
get() {
|
1957
1957
|
return s.value;
|
1958
1958
|
},
|
@@ -1960,13 +1960,13 @@ const hi = /* @__PURE__ */ ol(Ks, [["render", Js]]), Gs = ["href", "target"], Zs
|
|
1960
1960
|
t("update:modelValue", r);
|
1961
1961
|
}
|
1962
1962
|
});
|
1963
|
-
return
|
1963
|
+
return Ml("model", n), (r, a) => H(r.$slots, "default");
|
1964
1964
|
}
|
1965
1965
|
}), sn = { class: "window-header" }, nn = { class: "window-main" }, on = { class: "window-main-body" }, rn = {
|
1966
1966
|
key: 1,
|
1967
1967
|
class: "window-main-footer"
|
1968
1968
|
}, an = { class: "window-resizer" }, rl = /* @__PURE__ */ X({
|
1969
|
-
__name: "
|
1969
|
+
__name: "HaWindow",
|
1970
1970
|
props: /* @__PURE__ */ ot({
|
1971
1971
|
id: {},
|
1972
1972
|
title: {},
|
@@ -1979,17 +1979,17 @@ const hi = /* @__PURE__ */ ol(Ks, [["render", Js]]), Gs = ["href", "target"], Zs
|
|
1979
1979
|
}),
|
1980
1980
|
emits: /* @__PURE__ */ ot(["focus", "blur", "min", "max", "close"], ["update:modelValue"]),
|
1981
1981
|
setup(i, { expose: e, emit: t }) {
|
1982
|
-
let l = t, s = i, { id: n, title: r, bottom: a } =
|
1982
|
+
let l = t, s = i, { id: n, title: r, bottom: a } = ue(s), u = x(), c = x(), p = x(), d = x(), m = x(), f = x(), w = x(), V = x(), T = x(), M = null, O = !1, I = null, C = null, j = null, k = null, Q = null, J = null, ne = null, L, F = el(i, "modelValue"), G = x(!1), A = _n(), b = ((R) => {
|
1983
1983
|
let B;
|
1984
|
-
return R ? (B = $l(s.options),
|
1984
|
+
return R ? (B = $l(s.options), ge(() => s.options, (oe, K) => {
|
1985
1985
|
pe.merge(b.value, oe);
|
1986
1986
|
}, { deep: !0 })) : B = $l({}), B;
|
1987
1987
|
})(s.options), W = () => {
|
1988
1988
|
let R = Tl();
|
1989
|
-
m.value = R.shortcutSlot != null,
|
1989
|
+
m.value = R.shortcutSlot != null, f.value = R.title != null, w.value = R.side != null, V.value = R.header != null, T.value = R.footer != null;
|
1990
1990
|
}, de = () => {
|
1991
1991
|
let R = se.getWidth(document.body), B = se.getHeight(document.body) - a.value;
|
1992
|
-
if (b.value.side == null &&
|
1992
|
+
if (b.value.side == null && w.value && (b.value.side = 120), b.value.width == null) {
|
1993
1993
|
let oe = 0.6;
|
1994
1994
|
R < 800 ? oe = 0.96 : R < 1200 && (oe = 0.8), b.value.width = R * oe;
|
1995
1995
|
}
|
@@ -2001,51 +2001,51 @@ const hi = /* @__PURE__ */ ol(Ks, [["render", Js]]), Gs = ["href", "target"], Zs
|
|
2001
2001
|
}, _e = (R) => {
|
2002
2002
|
b.value.state == "max" ? ct() : kt();
|
2003
2003
|
}, nt = (R) => {
|
2004
|
-
R.preventDefault(), O = !1,
|
2004
|
+
R.preventDefault(), O = !1, ce();
|
2005
2005
|
}, ut = (R) => {
|
2006
|
-
O ? E(R) : (
|
2007
|
-
},
|
2008
|
-
|
2006
|
+
O ? E(R) : (M = R, b.value.state == "max" ? (g(R, J), I = pe.copy(b.value)) : b.value.state == "left" || b.value.state == "right" ? (g(R, ne), I = pe.copy(b.value)) : (I = pe.copy(b.value), E(R)), O = !0);
|
2007
|
+
}, U = () => {
|
2008
|
+
M = null, we(), G.value && ($(), G.value = !1);
|
2009
2009
|
}, $ = () => {
|
2010
2010
|
let R = b.value.state;
|
2011
2011
|
R == "left" ? (b.value.x = 0, b.value.y = 0, b.value.width = document.body.clientWidth / 2, b.value.height = document.body.clientHeight - a.value) : R == "right" && (b.value.x = document.body.clientWidth / 2, b.value.y = 0, b.value.width = document.body.clientWidth / 2, b.value.height = document.body.clientHeight - a.value);
|
2012
|
-
},
|
2013
|
-
let oe = se.getWidth(c.value), K = se.getWidth(p.value),
|
2012
|
+
}, g = (R, B) => {
|
2013
|
+
let oe = se.getWidth(c.value), K = se.getWidth(p.value), Ce = se.getWidth(d.value), dt = u.value.getBoundingClientRect(), Ct = (R.clientX - dt.x - oe) / K, At = (B.width - oe - Ce) * Ct;
|
2014
2014
|
b.value.width = B.width, b.value.height = B.height, b.value.x = R.clientX - oe - At, b.value.y = 0, b.value.state = null;
|
2015
2015
|
}, E = (R) => {
|
2016
|
-
let B = R.clientX -
|
2016
|
+
let B = R.clientX - M.clientX, oe = R.clientY - M.clientY;
|
2017
2017
|
b.value.x = I.x + B, b.value.y = I.y + oe;
|
2018
|
-
let K = document.body.clientWidth,
|
2018
|
+
let K = document.body.clientWidth, Ce = document.body.clientHeight, dt = 50, Ct = Ce - a.value, kl = se.inRange(R, 0, 0, dt, Ct), At = se.inRange(R, K - dt, 0, dt, Ct);
|
2019
2019
|
kl ? (ne = pe.copy(b.value), b.value.state = "left", G.value = !0) : At ? (ne = pe.copy(b.value), b.value.state = "right", G.value = !0) : (ne = null, b.value.state = null, G.value = !1);
|
2020
|
-
},
|
2021
|
-
document.addEventListener("mousemove", ut), document.addEventListener("mouseup",
|
2020
|
+
}, ce = () => {
|
2021
|
+
document.addEventListener("mousemove", ut), document.addEventListener("mouseup", U);
|
2022
2022
|
}, we = () => {
|
2023
|
-
document.removeEventListener("mousemove", ut), document.removeEventListener("mouseup",
|
2024
|
-
},
|
2025
|
-
R.preventDefault(), k = B, ql(), C = R,
|
2023
|
+
document.removeEventListener("mousemove", ut), document.removeEventListener("mouseup", U);
|
2024
|
+
}, Ve = (R, B) => {
|
2025
|
+
R.preventDefault(), k = B, ql(), C = R, j = pe.copy(b.value);
|
2026
2026
|
}, vl = (R) => {
|
2027
2027
|
let B = k.split("-");
|
2028
2028
|
for (let oe = 0; oe < B.length; oe++) {
|
2029
2029
|
let K = B[oe];
|
2030
2030
|
if (K == "left") {
|
2031
|
-
let
|
2032
|
-
b.value.x = R.clientX, b.value.width =
|
2031
|
+
let Ce = R.clientX - C.clientX;
|
2032
|
+
b.value.x = R.clientX, b.value.width = j.width - Ce;
|
2033
2033
|
}
|
2034
2034
|
if (K == "top") {
|
2035
|
-
let
|
2036
|
-
b.value.y = R.clientY, b.value.height =
|
2035
|
+
let Ce = R.clientY - C.clientY;
|
2036
|
+
b.value.y = R.clientY, b.value.height = j.height - Ce;
|
2037
2037
|
}
|
2038
2038
|
if (K == "right") {
|
2039
|
-
let
|
2040
|
-
b.value.width =
|
2039
|
+
let Ce = R.clientX - C.clientX;
|
2040
|
+
b.value.width = j.width + Ce;
|
2041
2041
|
}
|
2042
2042
|
if (K == "bottom") {
|
2043
|
-
let
|
2044
|
-
b.value.height =
|
2043
|
+
let Ce = R.clientY - C.clientY;
|
2044
|
+
b.value.height = j.height + Ce;
|
2045
2045
|
}
|
2046
2046
|
}
|
2047
2047
|
}, yl = (R) => {
|
2048
|
-
C = null,
|
2048
|
+
C = null, j = null, Kl();
|
2049
2049
|
}, ql = () => {
|
2050
2050
|
document.addEventListener("mousemove", vl), document.addEventListener("mouseup", yl);
|
2051
2051
|
}, Kl = () => {
|
@@ -2062,7 +2062,7 @@ const hi = /* @__PURE__ */ ol(Ks, [["render", Js]]), Gs = ["href", "target"], Zs
|
|
2062
2062
|
let R = b.value.state == "min" ? Q : J;
|
2063
2063
|
R ? (b.value.x = R.x, b.value.y = R.y, b.value.width = R.width, b.value.height = R.height, b.value.state = R.state) : b.value.state = null, $t();
|
2064
2064
|
}, bl = () => {
|
2065
|
-
|
2065
|
+
F.value = !1, A.remove(n.value), l("close");
|
2066
2066
|
}, _l = (R) => {
|
2067
2067
|
zt(), l("focus");
|
2068
2068
|
}, zt = () => {
|
@@ -2082,19 +2082,19 @@ const hi = /* @__PURE__ */ ol(Ks, [["render", Js]]), Gs = ["href", "target"], Zs
|
|
2082
2082
|
return tl(() => {
|
2083
2083
|
W();
|
2084
2084
|
}), be(async () => {
|
2085
|
-
W(), L = await Ne.getProviderAsync("IndexedDb", "desktop"), await
|
2086
|
-
let R =
|
2085
|
+
W(), L = await Ne.getProviderAsync("IndexedDb", "desktop"), await A.loadWindows(L);
|
2086
|
+
let R = A.get(n.value);
|
2087
2087
|
if (R) {
|
2088
|
-
let { current: B, min: oe, max: K, affix:
|
2089
|
-
pe.merge(b.value, B), oe && (Q = oe), K && (J = K),
|
2088
|
+
let { current: B, min: oe, max: K, affix: Ce } = R;
|
2089
|
+
pe.merge(b.value, B), oe && (Q = oe), K && (J = K), Ce && (ne = Ce);
|
2090
2090
|
}
|
2091
2091
|
de(), b.value.index == null && $t();
|
2092
|
-
}),
|
2092
|
+
}), ge(() => b.value, (R, B) => {
|
2093
2093
|
let oe = { id: n.value, current: R, min: Q, max: J, affix: ne };
|
2094
|
-
|
2094
|
+
A.save(n.value, oe, L);
|
2095
2095
|
}, { deep: !0 }), e({ focus: zt, blur: Xl, min: wt, max: kt, restore: ct, affix: $, toggleShow: Ql, options: b.value }), (R, B) => {
|
2096
|
-
const oe =
|
2097
|
-
return o(
|
2096
|
+
const oe = z("el-scrollbar");
|
2097
|
+
return o(F) ? (h(), P(ll, {
|
2098
2098
|
key: 0,
|
2099
2099
|
to: "body"
|
2100
2100
|
}, [
|
@@ -2102,7 +2102,7 @@ const hi = /* @__PURE__ */ ol(Ks, [["render", Js]]), Gs = ["href", "target"], Zs
|
|
2102
2102
|
ref_key: "windowRef",
|
2103
2103
|
ref: u,
|
2104
2104
|
class: ae(["ho-window", [o(b).state, o(s).class]]),
|
2105
|
-
style:
|
2105
|
+
style: xe({ left: o(b).x + "px", top: o(b).y + "px", width: o(b).width + "px", height: o(b).height + "px", zIndex: o(b).index }),
|
2106
2106
|
onMousedown: B[14] || (B[14] = //@ts-ignore
|
2107
2107
|
(...K) => o(_l) && o(_l)(...K))
|
2108
2108
|
}, [
|
@@ -2123,8 +2123,8 @@ const hi = /* @__PURE__ */ ol(Ks, [["render", Js]]), Gs = ["href", "target"], Zs
|
|
2123
2123
|
onDblclick: B[1] || (B[1] = //@ts-ignore
|
2124
2124
|
(...K) => o(_e) && o(_e)(...K))
|
2125
2125
|
}, [
|
2126
|
-
o(
|
2127
|
-
Y(
|
2126
|
+
o(f) ? H(R.$slots, "title", { key: 0 }) : (h(), _(te, { key: 1 }, [
|
2127
|
+
Y(D(o(r)), 1)
|
2128
2128
|
], 64))
|
2129
2129
|
], 544),
|
2130
2130
|
v("div", {
|
@@ -2138,12 +2138,12 @@ const hi = /* @__PURE__ */ ol(Ks, [["render", Js]]), Gs = ["href", "target"], Zs
|
|
2138
2138
|
onClick: B[2] || (B[2] = //@ts-ignore
|
2139
2139
|
(...K) => o(wt) && o(wt)(...K))
|
2140
2140
|
}),
|
2141
|
-
o(b).state != "max" ? (h(),
|
2141
|
+
o(b).state != "max" ? (h(), _("i", {
|
2142
2142
|
key: 0,
|
2143
2143
|
class: "toolbar-max",
|
2144
2144
|
onClick: B[3] || (B[3] = //@ts-ignore
|
2145
2145
|
(...K) => o(kt) && o(kt)(...K))
|
2146
|
-
})) : (h(),
|
2146
|
+
})) : (h(), _("i", {
|
2147
2147
|
key: 1,
|
2148
2148
|
class: "toolbar-restore",
|
2149
2149
|
onClick: B[4] || (B[4] = //@ts-ignore
|
@@ -2162,7 +2162,7 @@ const hi = /* @__PURE__ */ ol(Ks, [["render", Js]]), Gs = ["href", "target"], Zs
|
|
2162
2162
|
onResize: o(Yl)
|
2163
2163
|
}, {
|
2164
2164
|
left: y(() => [
|
2165
|
-
o(
|
2165
|
+
o(w) ? (h(), P(oe, {
|
2166
2166
|
key: 0,
|
2167
2167
|
class: "window-side"
|
2168
2168
|
}, {
|
@@ -2170,11 +2170,11 @@ const hi = /* @__PURE__ */ ol(Ks, [["render", Js]]), Gs = ["href", "target"], Zs
|
|
2170
2170
|
H(R.$slots, "side")
|
2171
2171
|
]),
|
2172
2172
|
_: 3
|
2173
|
-
})) :
|
2173
|
+
})) : N("", !0)
|
2174
2174
|
]),
|
2175
2175
|
default: y(() => [
|
2176
2176
|
v("div", nn, [
|
2177
|
-
o(
|
2177
|
+
o(V) ? (h(), P(oe, {
|
2178
2178
|
key: 0,
|
2179
2179
|
class: "window-main-header",
|
2180
2180
|
onClick: o(zt)
|
@@ -2183,13 +2183,13 @@ const hi = /* @__PURE__ */ ol(Ks, [["render", Js]]), Gs = ["href", "target"], Zs
|
|
2183
2183
|
H(R.$slots, "header")
|
2184
2184
|
]),
|
2185
2185
|
_: 3
|
2186
|
-
}, 8, ["onClick"])) :
|
2186
|
+
}, 8, ["onClick"])) : N("", !0),
|
2187
2187
|
v("div", on, [
|
2188
2188
|
H(R.$slots, "default")
|
2189
2189
|
]),
|
2190
|
-
o(T) ? (h(),
|
2190
|
+
o(T) ? (h(), _("div", rn, [
|
2191
2191
|
H(R.$slots, "footer")
|
2192
|
-
])) :
|
2192
|
+
])) : N("", !0)
|
2193
2193
|
])
|
2194
2194
|
]),
|
2195
2195
|
_: 3
|
@@ -2197,44 +2197,44 @@ const hi = /* @__PURE__ */ ol(Ks, [["render", Js]]), Gs = ["href", "target"], Zs
|
|
2197
2197
|
v("div", an, [
|
2198
2198
|
v("div", {
|
2199
2199
|
class: "left",
|
2200
|
-
onMousedown: B[6] || (B[6] = (K) => o(
|
2200
|
+
onMousedown: B[6] || (B[6] = (K) => o(Ve)(K, "left"))
|
2201
2201
|
}, null, 32),
|
2202
2202
|
v("div", {
|
2203
2203
|
class: "top",
|
2204
|
-
onMousedown: B[7] || (B[7] = (K) => o(
|
2204
|
+
onMousedown: B[7] || (B[7] = (K) => o(Ve)(K, "top"))
|
2205
2205
|
}, null, 32),
|
2206
2206
|
v("div", {
|
2207
2207
|
class: "right",
|
2208
|
-
onMousedown: B[8] || (B[8] = (K) => o(
|
2208
|
+
onMousedown: B[8] || (B[8] = (K) => o(Ve)(K, "right"))
|
2209
2209
|
}, null, 32),
|
2210
2210
|
v("div", {
|
2211
2211
|
class: "bottom",
|
2212
|
-
onMousedown: B[9] || (B[9] = (K) => o(
|
2212
|
+
onMousedown: B[9] || (B[9] = (K) => o(Ve)(K, "bottom"))
|
2213
2213
|
}, null, 32),
|
2214
2214
|
v("div", {
|
2215
2215
|
class: "left-top",
|
2216
|
-
onMousedown: B[10] || (B[10] = (K) => o(
|
2216
|
+
onMousedown: B[10] || (B[10] = (K) => o(Ve)(K, "left-top"))
|
2217
2217
|
}, null, 32),
|
2218
2218
|
v("div", {
|
2219
2219
|
class: "top-right",
|
2220
|
-
onMousedown: B[11] || (B[11] = (K) => o(
|
2220
|
+
onMousedown: B[11] || (B[11] = (K) => o(Ve)(K, "top-right"))
|
2221
2221
|
}, null, 32),
|
2222
2222
|
v("div", {
|
2223
2223
|
class: "right-bottom",
|
2224
|
-
onMousedown: B[12] || (B[12] = (K) => o(
|
2224
|
+
onMousedown: B[12] || (B[12] = (K) => o(Ve)(K, "right-bottom"))
|
2225
2225
|
}, null, 32),
|
2226
2226
|
v("div", {
|
2227
2227
|
class: "bottom-left",
|
2228
|
-
onMousedown: B[13] || (B[13] = (K) => o(
|
2228
|
+
onMousedown: B[13] || (B[13] = (K) => o(Ve)(K, "bottom-left"))
|
2229
2229
|
}, null, 32)
|
2230
2230
|
]),
|
2231
|
-
o(G) ? (h(),
|
2231
|
+
o(G) ? (h(), _("div", {
|
2232
2232
|
key: 0,
|
2233
2233
|
class: "window-widget",
|
2234
|
-
style:
|
2235
|
-
}, null, 4)) :
|
2234
|
+
style: xe({ height: `calc(100% - ${o(a)}px)` })
|
2235
|
+
}, null, 4)) : N("", !0)
|
2236
2236
|
], 38)
|
2237
|
-
])) :
|
2237
|
+
])) : N("", !0);
|
2238
2238
|
};
|
2239
2239
|
}
|
2240
2240
|
}), un = { class: "panel-header" }, cn = { class: "header-title" }, dn = { class: "header-operation" }, mn = {
|
@@ -2246,8 +2246,8 @@ const hi = /* @__PURE__ */ ol(Ks, [["render", Js]]), Gs = ["href", "target"], Zs
|
|
2246
2246
|
}, hn = {
|
2247
2247
|
key: 1,
|
2248
2248
|
class: "panel-footer"
|
2249
|
-
},
|
2250
|
-
__name: "
|
2249
|
+
}, gi = /* @__PURE__ */ X({
|
2250
|
+
__name: "HaPanel",
|
2251
2251
|
props: {
|
2252
2252
|
title: { type: String },
|
2253
2253
|
dark: { type: Boolean, default: !1 }
|
@@ -2258,49 +2258,49 @@ const hi = /* @__PURE__ */ ol(Ks, [["render", Js]]), Gs = ["href", "target"], Zs
|
|
2258
2258
|
};
|
2259
2259
|
return n(), tl(() => {
|
2260
2260
|
n();
|
2261
|
-
}), (r, a) => (h(),
|
2261
|
+
}), (r, a) => (h(), _("div", {
|
2262
2262
|
class: ae(["ho-panel", { "panel-dark": i.dark }])
|
2263
2263
|
}, [
|
2264
2264
|
v("div", un, [
|
2265
2265
|
v("div", cn, [
|
2266
2266
|
H(r.$slots, "title", {}, () => [
|
2267
|
-
Y(
|
2267
|
+
Y(D(i.title), 1)
|
2268
2268
|
])
|
2269
2269
|
]),
|
2270
2270
|
v("div", dn, [
|
2271
2271
|
H(r.$slots, "operation")
|
2272
2272
|
])
|
2273
2273
|
]),
|
2274
|
-
o(t) ? (h(),
|
2275
|
-
o(l) ? (h(),
|
2274
|
+
o(t) ? (h(), _("div", mn, [
|
2275
|
+
o(l) ? (h(), _("div", pn, [
|
2276
2276
|
H(r.$slots, "default")
|
2277
|
-
])) :
|
2278
|
-
o(s) ? (h(),
|
2277
|
+
])) : N("", !0),
|
2278
|
+
o(s) ? (h(), _("div", hn, [
|
2279
2279
|
H(r.$slots, "panel-footer")
|
2280
|
-
])) :
|
2281
|
-
])) :
|
2280
|
+
])) : N("", !0)
|
2281
|
+
])) : N("", !0)
|
2282
2282
|
], 2));
|
2283
2283
|
}
|
2284
2284
|
}), fn = {}, gn = { class: "ho-group" };
|
2285
2285
|
function vn(i, e) {
|
2286
|
-
return h(),
|
2286
|
+
return h(), _("div", gn, [
|
2287
2287
|
H(i.$slots, "default")
|
2288
2288
|
]);
|
2289
2289
|
}
|
2290
|
-
const
|
2291
|
-
__name: "
|
2290
|
+
const vi = /* @__PURE__ */ ol(fn, [["render", vn]]), yn = { class: "operation-left" }, bn = { class: "operation-right" }, yi = /* @__PURE__ */ X({
|
2291
|
+
__name: "HaOperation",
|
2292
2292
|
props: {
|
2293
2293
|
padding: {}
|
2294
2294
|
},
|
2295
2295
|
setup(i, { expose: e }) {
|
2296
|
-
let t = i, { padding: l } =
|
2296
|
+
let t = i, { padding: l } = ue(t), s = x();
|
2297
2297
|
return tl(() => {
|
2298
2298
|
}), be(() => {
|
2299
|
-
}), e({ ref: s }), (n, r) => (h(),
|
2299
|
+
}), e({ ref: s }), (n, r) => (h(), _("div", {
|
2300
2300
|
ref_key: "operationRef",
|
2301
2301
|
ref: s,
|
2302
2302
|
class: "ho-operation",
|
2303
|
-
style:
|
2303
|
+
style: xe({ padding: o(l) ? `${o(l)}px ${o(l) * 2}px` : null })
|
2304
2304
|
}, [
|
2305
2305
|
v("div", yn, [
|
2306
2306
|
H(n.$slots, "left")
|
@@ -2353,7 +2353,7 @@ let _n = Re("window", {
|
|
2353
2353
|
}
|
2354
2354
|
}
|
2355
2355
|
});
|
2356
|
-
class
|
2356
|
+
class bi {
|
2357
2357
|
/**
|
2358
2358
|
* 初始化,并绑定自动关闭上下文菜单事件
|
2359
2359
|
*/
|
@@ -2473,12 +2473,12 @@ Ae.success = (e) => {
|
|
2473
2473
|
return Ft.warning({ title: e, message: t });
|
2474
2474
|
};
|
2475
2475
|
let Se = Ae;
|
2476
|
-
const
|
2476
|
+
const Ut = os.create({
|
2477
2477
|
baseURL: lt.api.url
|
2478
2478
|
// withCredentials: true, // send cookies when cross-domain requests
|
2479
2479
|
// timeout: 15000
|
2480
2480
|
});
|
2481
|
-
|
2481
|
+
Ut.interceptors.request.use(
|
2482
2482
|
(i) => {
|
2483
2483
|
if (Z.httpOrHttps(i.url))
|
2484
2484
|
return i;
|
@@ -2510,23 +2510,23 @@ const fl = class fl {
|
|
2510
2510
|
* GET请求
|
2511
2511
|
*/
|
2512
2512
|
static async get(e, t = null, l = null) {
|
2513
|
-
return
|
2513
|
+
return Ut({ method: "get", url: e, params: t, headers: l }).then((n) => Kt(n)).catch((n) => Yt(n));
|
2514
2514
|
}
|
2515
2515
|
/**
|
2516
2516
|
* POST请求
|
2517
2517
|
*/
|
2518
2518
|
static async post(e, t = null, l = null) {
|
2519
|
-
return
|
2519
|
+
return Ut.post(e, t, l).then((s) => Kt(s)).catch((s) => Yt(s));
|
2520
2520
|
}
|
2521
2521
|
/**
|
2522
2522
|
* PATCH请求
|
2523
2523
|
*/
|
2524
2524
|
static async patch(e, t = null, l = null) {
|
2525
|
-
return
|
2525
|
+
return Ut.patch(e, t, l).then((s) => Kt(s)).catch((s) => Yt(s));
|
2526
2526
|
}
|
2527
2527
|
};
|
2528
2528
|
fl.handleResponseBody = Fl;
|
2529
|
-
let
|
2529
|
+
let ve = fl;
|
2530
2530
|
const Oe = class Oe {
|
2531
2531
|
};
|
2532
2532
|
Oe.setColumnWidth = (e, t, l, s) => {
|
@@ -2542,10 +2542,10 @@ Oe.setColumnWidth = (e, t, l, s) => {
|
|
2542
2542
|
let e = ee.getObject("setting");
|
2543
2543
|
return e && e.width ? e.width : lt.web.sidebar && lt.web.sidebar.width ? lt.web.sidebar.width : 210;
|
2544
2544
|
}, Oe.setI18nTitle = (e) => {
|
2545
|
-
let { $t: t } =
|
2545
|
+
let { $t: t } = je(), l = t(e);
|
2546
2546
|
Oe.setTitle(l);
|
2547
2547
|
}, Oe.setTitle = (e = null, t = null) => {
|
2548
|
-
let { $t_title: l } =
|
2548
|
+
let { $t_title: l } = je(), s = l(), n;
|
2549
2549
|
s ? e ? t ? n = `${e}(${t}) - ${s}` : n = `${e} - ${s}` : n = s : t ? n = `${e}(${t})` : n = e, document.title = n;
|
2550
2550
|
}, Oe.getDrawerWidth = (e) => e <= 690 ? "90%" : e <= 960 ? "80%" : e <= 1200 ? "70%" : e <= 1600 ? "60%" : "50%", Oe.convert = (e, t) => t == "Int" ? parseInt(e) : t == "Decimal" ? parseFloat(e) : e;
|
2551
2551
|
let Be = Oe;
|
@@ -2571,7 +2571,7 @@ Le.getValue = (e, t, l, s) => {
|
|
2571
2571
|
return s ? `height: ${s}px;` : null;
|
2572
2572
|
}, Le.getHeight = (e, t, l) => l == "Normal" ? e.control.height : null, Le.convert = (e, t) => t == "String" ? me.isNumber(e) ? e == null ? void 0 : e.toString() : e : t == "Int" ? parseFloat(e) : e;
|
2573
2573
|
let Il = Le;
|
2574
|
-
const
|
2574
|
+
const jt = class jt {
|
2575
2575
|
/**
|
2576
2576
|
* 检测异步控件是否加载完毕
|
2577
2577
|
*/
|
@@ -2581,16 +2581,16 @@ const Mt = class Mt {
|
|
2581
2581
|
}, 100);
|
2582
2582
|
}
|
2583
2583
|
};
|
2584
|
-
|
2584
|
+
jt.getName = (e, t) => {
|
2585
2585
|
if (!e)
|
2586
2586
|
return null;
|
2587
2587
|
let l = Z.getPath(e);
|
2588
2588
|
return l ? l == "/" ? t : t + l.replace(/\//g, "-").toLowerCase() : null;
|
2589
|
-
},
|
2589
|
+
}, jt.getRegisteredComponents = () => {
|
2590
2590
|
let e = Jl();
|
2591
2591
|
return Object.keys(e.appContext.components);
|
2592
2592
|
};
|
2593
|
-
let Zt =
|
2593
|
+
let Zt = jt;
|
2594
2594
|
const Ye = class Ye {
|
2595
2595
|
/**
|
2596
2596
|
* 获取验证规则
|
@@ -2703,14 +2703,14 @@ const gl = class gl {
|
|
2703
2703
|
};
|
2704
2704
|
gl.getFileIcon = (e) => `./default/images/files/${vt.getExtension(e).replace(".", "")}.png`;
|
2705
2705
|
let Ll = gl;
|
2706
|
-
const
|
2706
|
+
const Mt = class Mt {
|
2707
2707
|
constructor() {
|
2708
2708
|
this.type = "Bearer";
|
2709
2709
|
}
|
2710
2710
|
open(e) {
|
2711
2711
|
}
|
2712
2712
|
async login(e) {
|
2713
|
-
return
|
2713
|
+
return ve.post(`/user/login?type=${this.type}`, e).then((t) => {
|
2714
2714
|
let l = t.data;
|
2715
2715
|
return ee.setObject("sso", l), Promise.resolve(t);
|
2716
2716
|
});
|
@@ -2727,11 +2727,11 @@ const jt = class jt {
|
|
2727
2727
|
return s && (n += " " + s), n;
|
2728
2728
|
}
|
2729
2729
|
logout() {
|
2730
|
-
ee.remove(
|
2730
|
+
ee.remove(Mt.loginKey), ee.remove("sso");
|
2731
2731
|
}
|
2732
2732
|
};
|
2733
|
-
|
2734
|
-
let yt =
|
2733
|
+
Mt.loginKey = "user";
|
2734
|
+
let yt = Mt;
|
2735
2735
|
class wn {
|
2736
2736
|
constructor() {
|
2737
2737
|
this.type = "Nio";
|
@@ -2808,7 +2808,7 @@ class Cn {
|
|
2808
2808
|
open(e) {
|
2809
2809
|
}
|
2810
2810
|
async login(e) {
|
2811
|
-
return
|
2811
|
+
return ve.post(`/user/login?type=${this.type}`, e).then((t) => {
|
2812
2812
|
let l = t.data;
|
2813
2813
|
return ee.setObject("sso", l), Promise.resolve(t);
|
2814
2814
|
});
|
@@ -2857,7 +2857,7 @@ class Sn {
|
|
2857
2857
|
dispose() {
|
2858
2858
|
}
|
2859
2859
|
}
|
2860
|
-
class
|
2860
|
+
class Vn {
|
2861
2861
|
/**
|
2862
2862
|
* 获取指定签名实例
|
2863
2863
|
*/
|
@@ -2868,7 +2868,7 @@ class Un {
|
|
2868
2868
|
return l;
|
2869
2869
|
}
|
2870
2870
|
}
|
2871
|
-
class
|
2871
|
+
class Un {
|
2872
2872
|
constructor() {
|
2873
2873
|
this.type = "Sort";
|
2874
2874
|
}
|
@@ -2924,7 +2924,7 @@ class In {
|
|
2924
2924
|
* 获取指定特征实例
|
2925
2925
|
*/
|
2926
2926
|
static getFeature(e) {
|
2927
|
-
let l = [new
|
2927
|
+
let l = [new Un(), new En(), new Rn()].find((s) => s.type.toLowerCase() == e.toLowerCase());
|
2928
2928
|
if (l == null)
|
2929
2929
|
throw new Error(`未支持的Feature类型:${e}`);
|
2930
2930
|
return l;
|
@@ -3122,8 +3122,8 @@ class Ln {
|
|
3122
3122
|
}), s.push(n), e.length > 0)
|
3123
3123
|
for (let p = 0; p < e.length; p++) {
|
3124
3124
|
let d = e[p], m = [];
|
3125
|
-
Object.keys(d).forEach((
|
3126
|
-
m.push(d[
|
3125
|
+
Object.keys(d).forEach((f) => {
|
3126
|
+
m.push(d[f]);
|
3127
3127
|
}), s.push(m);
|
3128
3128
|
}
|
3129
3129
|
let r = Wt.book_new(), a = Wt.json_to_sheet(s, { skipHeader: !0 });
|
@@ -3169,7 +3169,7 @@ class _t {
|
|
3169
3169
|
return await It.loadAsync(l);
|
3170
3170
|
}
|
3171
3171
|
}
|
3172
|
-
class
|
3172
|
+
class jn extends _t {
|
3173
3173
|
constructor() {
|
3174
3174
|
super(...arguments), this.type = "Jsdelivr";
|
3175
3175
|
}
|
@@ -3181,7 +3181,7 @@ class Mn extends _t {
|
|
3181
3181
|
return t == "monaco-editor".toUpperCase() && (l = "/npm/monaco-editor@0.49.0/min/vs"), this.baseUrl + l;
|
3182
3182
|
}
|
3183
3183
|
}
|
3184
|
-
class
|
3184
|
+
class Mn extends _t {
|
3185
3185
|
constructor() {
|
3186
3186
|
super(...arguments), this.type = "StaticFile";
|
3187
3187
|
}
|
@@ -3234,7 +3234,7 @@ class zn {
|
|
3234
3234
|
* 获取指定CDN实例
|
3235
3235
|
*/
|
3236
3236
|
static getCdn(e) {
|
3237
|
-
let l = [new
|
3237
|
+
let l = [new jn(), new Mn(), new Tn(), new Pn(), new Bn()].find((s) => s.type.toLowerCase() == e.toLowerCase());
|
3238
3238
|
if (l == null)
|
3239
3239
|
throw new Error(`未支持的Cdn类型:${e}`);
|
3240
3240
|
return l;
|
@@ -3256,7 +3256,7 @@ class Ne {
|
|
3256
3256
|
static getSigner(e) {
|
3257
3257
|
if (!e)
|
3258
3258
|
throw new Error("Signer 配置类型不能为空");
|
3259
|
-
let t =
|
3259
|
+
let t = Vn.getSigner(e);
|
3260
3260
|
return t.open(null), t;
|
3261
3261
|
}
|
3262
3262
|
/**
|
@@ -3304,7 +3304,7 @@ let Lt = Re("component", {
|
|
3304
3304
|
* 初始化&注册全局组件
|
3305
3305
|
*/
|
3306
3306
|
init(i) {
|
3307
|
-
this.register(i, /* @__PURE__ */ Object.assign({ "../components/controls/Autocomplete.vue": () => import("./Autocomplete-Bi_l7zwo.js"), "../components/controls/Cascader.vue": () => import("./Cascader-BsPUAtBL.js"), "../components/controls/Checkbox.vue": () => import("./Checkbox-D928Sp6S.js"), "../components/controls/Code.vue": () => import("./Code-qQK_4OZ6.js"), "../components/controls/Color.vue": () => import("./Color-Da69pnQg.js"), "../components/controls/Compare.vue": () => import("./Compare-7rmSR2Vp.js"), "../components/controls/Date.vue": () => import("./Date-B9tmMFuT.js"), "../components/controls/DateRange.vue": () => import("./DateRange-CxGZSLKj.js"), "../components/controls/DateTime.vue": () => import("./DateTime-Ce1NnyqQ.js"), "../components/controls/DateTimeRange.vue": () => import("./DateTimeRange-Cr_pV6VX.js"), "../components/controls/Decimal.vue": () => import("./Decimal-C38-N54B.js"), "../components/controls/Email.vue": () => import("./Email-BGc1mV9s.js"), "../components/controls/Image.vue": () => import("./Image-Cz3sAz75.js"), "../components/controls/Index.vue": () => import("./Index-BSQve4ig.js"), "../components/controls/Int.vue": () => import("./Int-CfvU-cuR.js"), "../components/controls/Markdown.vue": () => import("./Markdown-BzMP3m7o.js"), "../components/controls/Month.vue": () => import("./Month-D9r3wt_e.js"), "../components/controls/Password.vue": () => import("./Password-DuyYEgzR.js"), "../components/controls/Progress.vue": () => import("./Progress-C3D821AQ.js"), "../components/controls/Radio.vue": () => import("./Radio-DkcBKBvX.js"), "../components/controls/Rate.vue": () => import("./Rate-B7jKTFKT.js"), "../components/controls/RichText.vue": () => import("./RichText-DQvrv6V7.js"), "../components/controls/Select.vue": () => import("./Select-DAIbIG11.js"), "../components/controls/Switch.vue": () => import("./Switch-DhFaku5L.js"), "../components/controls/Text.vue": () => import("./Text-EQNK15_K.js"), "../components/controls/Textarea.vue": () => import("./Textarea-D9TgF9ig.js"), "../components/controls/Time.vue": () => import("./Time-CRVru-6c.js"), "../components/controls/Upload.vue": () => import("./Upload-BRAVjqfB.js"), "../components/controls/Year.vue": () => import("./Year-DBuvSBYN.js") }), "../../halo-pc/components/controls/", "control"), this.register(i, /* @__PURE__ */ Object.assign({ "../components/lists/Calender.vue": () => import("./Calender-BySvLRJq.js"), "../components/lists/Racebar.vue": () => import("./Racebar-Cseghx3Z.js"), "../components/lists/Statistic.vue": () => import("./Statistic--Bow2CyV.js"), "../components/lists/Stock.vue": () => import("./Stock-Bjygq6ei.js"), "../components/lists/Timeline.vue": () => import("./Timeline-D5mZs0I9.js"), "../components/lists/Tree.vue": () => import("./Tree-NDzpgIjQ.js") }), "../../halo-pc/components/lists/", "list"), this.register(i, /* @__PURE__ */ Object.assign({ "../components/pagings/Article.vue": () => import("./Article-lRUJ_OJd.js"), "../components/pagings/Code.vue": () => import("./Code-GhBd93wc.js"), "../components/pagings/DataExport.vue": () => import("./DataExport-DzADLzN4.js"), "../components/pagings/DataImport.vue": () => import("./DataImport-CgdY4oAg.js"), "../components/pagings/File.vue": () => import("./File-KSe9LUnT.js"), "../components/pagings/Index.vue": () => import("./Index-BAdLGn2X.js"), "../components/pagings/SearchFooter.vue": () => import("./SearchFooter-DzxrSako.js"), "../components/pagings/SearchForm.vue": () => import("./SearchForm-Bo0nk2o4.js"), "../components/pagings/Table.vue": () => import("./Table-mDlEBMBs.js") }), "../../halo-pc/components/pagings/", "paging"), this.register(i, /* @__PURE__ */ Object.assign({ "../components/partials/ArticleFooter.vue": () => import("./ArticleFooter-BAf1rKUX.js"), "../components/partials/Detail.vue": () => import("./Detail-DPV7avRs.js"), "../components/partials/PagingHeader.vue": () => import("./PagingHeader-CBXHiUXR.js"), "../components/partials/PagingRow.vue": () => import("./PagingRow-tny-wHwu.js"), "../components/partials/TreeNode.vue": () => import("./TreeNode-CrdOVIey.js"), "../components/partials/Update.vue": () => import("./Update-BGhgeWpg.js"), "../components/partials/UpdateChild.vue": () => import("./UpdateChild-CA0P17tZ.js") }), "../../halo-pc/components/partials/", "partial"), this.register(i, /* @__PURE__ */ Object.assign({ "../components/searches/Autocomplete.vue": () => import("./Autocomplete-BZC6nm8e.js"), "../components/searches/Daterange.vue": () => import("./Daterange-BW8avRzM.js"), "../components/searches/Index.vue": () => import("./Index-9AheG9bs.js"), "../components/searches/Int.vue": () => import("./Int-AE2e9jyG.js"), "../components/searches/Month.vue": () => import("./Month-BVKakHhk.js"), "../components/searches/Select.vue": () => import("./Select-Dqw7DP-6.js"), "../components/searches/Text.vue": () => import("./Text-CLMVbFyi.js") }), "../../halo-pc/components/searches/", "search"), this.register(i, /* @__PURE__ */ Object.assign({ "../components/singles/Code.vue": () => import("./Code-De2Uv1Px.js"), "../components/singles/Comment.vue": () => import("./Comment-Cod3CMDP.js"), "../components/singles/Index.vue": () => import("./Index-5i8NweBu.js"), "../components/singles/Normal.vue": () => import("./Normal-DglkJvhE.js"), "../components/singles/Statistic.vue": () => import("./Statistic-B_mgjlnr.js"), "../components/singles/Stock.vue": () => import("./Stock-U6JTFd2R.js"), "../components/singles/Table.vue": () => import("./Table-DZH3tqZj.js"), "../components/singles/Tree.vue": () => import("./Tree-V2yFzSQf.js"), "../components/singles/Tree_Old.vue": () => import("./Tree_Old-h__WmqFA.js") }), "../../halo-pc/components/singles/", "update"), this.register(i, /* @__PURE__ */ Object.assign({ "../components/texts/Autocomplete.vue": () => import("./Autocomplete-zUWf79cr.js"), "../components/texts/CSharp.vue": () => import("./CSharp-DE5nh_O4.js"), "../components/texts/Cascader.vue": () => import("./Cascader-CHVgZRdk.js"), "../components/texts/Checkbox.vue": () => import("./Checkbox-BKx6xpIx.js"), "../components/texts/Code.vue": () => import("./Code-Chrbr4KP.js"), "../components/texts/Color.vue": () => import("./Color-CfXtJFUo.js"), "../components/texts/Compare.vue": () => import("./Compare-D-WXTccH.js"), "../components/texts/Copy.vue": () => import("./Copy-PYxtclV3.js"), "../components/texts/Date.vue": () => import("./Date-Dr80JkYm.js"), "../components/texts/DateRange.vue": () => import("./DateRange-DrYK_l0Y.js"), "../components/texts/DateTime.vue": () => import("./DateTime-BzjTeOtg.js"), "../components/texts/Decimal.vue": () => import("./Decimal-CnaJfnyD.js"), "../components/texts/Dictionary.vue": () => import("./Dictionary-Bf5W_pJM.js"), "../components/texts/Email.vue": () => import("./Email-BKW9GRcH.js"), "../components/texts/Index.vue": () => import("./Index-CLJ35fvo.js"), "../components/texts/Int.vue": () => import("./Int-B-t8edhd.js"), "../components/texts/Markdown.vue": () => import("./Markdown-DnPCfzFD.js"), "../components/texts/Month.vue": () => import("./Month-BbbcEZef.js"), "../components/texts/Password.vue": () => import("./Password-yHtlY-Qa.js"), "../components/texts/Progress.vue": () => import("./Progress-CKVzMO-W.js"), "../components/texts/Radio.vue": () => import("./Radio-BrSONLbo.js"), "../components/texts/Rate.vue": () => import("./Rate-BmC4gw_0.js"), "../components/texts/RichText.vue": () => import("./RichText-Bk0Msyhl.js"), "../components/texts/Select.vue": () => import("./Select-CIWL2QB_.js"), "../components/texts/Switch.vue": () => import("./Switch-qLwHUFTL.js"), "../components/texts/Text.vue": () => import("./Text-DJbk5I_4.js"), "../components/texts/TextLink.vue": () => import("./TextLink-B6X1_Ltd.js"), "../components/texts/Textarea.vue": () => import("./Textarea-CnS6jb4O.js"), "../components/texts/Upload.vue": () => import("./Upload-DG8svROr.js"), "../components/texts/Year.vue": () => import("./Year-De0vEkgD.js") }), "../../halo-pc/components/texts/", "text"), this.register(i, /* @__PURE__ */ Object.assign({ "../components/controls/Autocomplete.vue": () => import("./Autocomplete-Bi_l7zwo.js"), "../components/controls/Cascader.vue": () => import("./Cascader-BsPUAtBL.js"), "../components/controls/Checkbox.vue": () => import("./Checkbox-D928Sp6S.js"), "../components/controls/Code.vue": () => import("./Code-qQK_4OZ6.js"), "../components/controls/Color.vue": () => import("./Color-Da69pnQg.js"), "../components/controls/Compare.vue": () => import("./Compare-7rmSR2Vp.js"), "../components/controls/Date.vue": () => import("./Date-B9tmMFuT.js"), "../components/controls/DateRange.vue": () => import("./DateRange-CxGZSLKj.js"), "../components/controls/DateTime.vue": () => import("./DateTime-Ce1NnyqQ.js"), "../components/controls/DateTimeRange.vue": () => import("./DateTimeRange-Cr_pV6VX.js"), "../components/controls/Decimal.vue": () => import("./Decimal-C38-N54B.js"), "../components/controls/Email.vue": () => import("./Email-BGc1mV9s.js"), "../components/controls/Image.vue": () => import("./Image-Cz3sAz75.js"), "../components/controls/Index.vue": () => import("./Index-BSQve4ig.js"), "../components/controls/Int.vue": () => import("./Int-CfvU-cuR.js"), "../components/controls/Markdown.vue": () => import("./Markdown-BzMP3m7o.js"), "../components/controls/Month.vue": () => import("./Month-D9r3wt_e.js"), "../components/controls/Password.vue": () => import("./Password-DuyYEgzR.js"), "../components/controls/Progress.vue": () => import("./Progress-C3D821AQ.js"), "../components/controls/Radio.vue": () => import("./Radio-DkcBKBvX.js"), "../components/controls/Rate.vue": () => import("./Rate-B7jKTFKT.js"), "../components/controls/RichText.vue": () => import("./RichText-DQvrv6V7.js"), "../components/controls/Select.vue": () => import("./Select-DAIbIG11.js"), "../components/controls/Switch.vue": () => import("./Switch-DhFaku5L.js"), "../components/controls/Text.vue": () => import("./Text-EQNK15_K.js"), "../components/controls/Textarea.vue": () => import("./Textarea-D9TgF9ig.js"), "../components/controls/Time.vue": () => import("./Time-CRVru-6c.js"), "../components/controls/Upload.vue": () => import("./Upload-BRAVjqfB.js"), "../components/controls/Year.vue": () => import("./Year-DBuvSBYN.js") }), "../components/controls/", "control"), this.register(i, /* @__PURE__ */ Object.assign({ "../components/lists/Calender.vue": () => import("./Calender-BySvLRJq.js"), "../components/lists/Racebar.vue": () => import("./Racebar-Cseghx3Z.js"), "../components/lists/Statistic.vue": () => import("./Statistic--Bow2CyV.js"), "../components/lists/Stock.vue": () => import("./Stock-Bjygq6ei.js"), "../components/lists/Timeline.vue": () => import("./Timeline-D5mZs0I9.js"), "../components/lists/Tree.vue": () => import("./Tree-NDzpgIjQ.js") }), "../components/lists/", "list"), this.register(i, /* @__PURE__ */ Object.assign({ "../components/pagings/Article.vue": () => import("./Article-lRUJ_OJd.js"), "../components/pagings/Code.vue": () => import("./Code-GhBd93wc.js"), "../components/pagings/DataExport.vue": () => import("./DataExport-DzADLzN4.js"), "../components/pagings/DataImport.vue": () => import("./DataImport-CgdY4oAg.js"), "../components/pagings/File.vue": () => import("./File-KSe9LUnT.js"), "../components/pagings/Index.vue": () => import("./Index-BAdLGn2X.js"), "../components/pagings/SearchFooter.vue": () => import("./SearchFooter-DzxrSako.js"), "../components/pagings/SearchForm.vue": () => import("./SearchForm-Bo0nk2o4.js"), "../components/pagings/Table.vue": () => import("./Table-mDlEBMBs.js") }), "../components/pagings/", "paging"), this.register(i, /* @__PURE__ */ Object.assign({ "../components/partials/ArticleFooter.vue": () => import("./ArticleFooter-BAf1rKUX.js"), "../components/partials/Detail.vue": () => import("./Detail-DPV7avRs.js"), "../components/partials/PagingHeader.vue": () => import("./PagingHeader-CBXHiUXR.js"), "../components/partials/PagingRow.vue": () => import("./PagingRow-tny-wHwu.js"), "../components/partials/TreeNode.vue": () => import("./TreeNode-CrdOVIey.js"), "../components/partials/Update.vue": () => import("./Update-BGhgeWpg.js"), "../components/partials/UpdateChild.vue": () => import("./UpdateChild-CA0P17tZ.js") }), "../components/partials/", "partial"), this.register(i, /* @__PURE__ */ Object.assign({ "../components/searches/Autocomplete.vue": () => import("./Autocomplete-BZC6nm8e.js"), "../components/searches/Daterange.vue": () => import("./Daterange-BW8avRzM.js"), "../components/searches/Index.vue": () => import("./Index-9AheG9bs.js"), "../components/searches/Int.vue": () => import("./Int-AE2e9jyG.js"), "../components/searches/Month.vue": () => import("./Month-BVKakHhk.js"), "../components/searches/Select.vue": () => import("./Select-Dqw7DP-6.js"), "../components/searches/Text.vue": () => import("./Text-CLMVbFyi.js") }), "../components/searches/", "search"), this.register(i, /* @__PURE__ */ Object.assign({ "../components/singles/Code.vue": () => import("./Code-De2Uv1Px.js"), "../components/singles/Comment.vue": () => import("./Comment-Cod3CMDP.js"), "../components/singles/Index.vue": () => import("./Index-5i8NweBu.js"), "../components/singles/Normal.vue": () => import("./Normal-DglkJvhE.js"), "../components/singles/Statistic.vue": () => import("./Statistic-B_mgjlnr.js"), "../components/singles/Stock.vue": () => import("./Stock-U6JTFd2R.js"), "../components/singles/Table.vue": () => import("./Table-DZH3tqZj.js"), "../components/singles/Tree.vue": () => import("./Tree-V2yFzSQf.js"), "../components/singles/Tree_Old.vue": () => import("./Tree_Old-h__WmqFA.js") }), "../components/singles/", "update"), this.register(i, /* @__PURE__ */ Object.assign({ "../components/texts/Autocomplete.vue": () => import("./Autocomplete-zUWf79cr.js"), "../components/texts/CSharp.vue": () => import("./CSharp-DE5nh_O4.js"), "../components/texts/Cascader.vue": () => import("./Cascader-CHVgZRdk.js"), "../components/texts/Checkbox.vue": () => import("./Checkbox-BKx6xpIx.js"), "../components/texts/Code.vue": () => import("./Code-Chrbr4KP.js"), "../components/texts/Color.vue": () => import("./Color-CfXtJFUo.js"), "../components/texts/Compare.vue": () => import("./Compare-D-WXTccH.js"), "../components/texts/Copy.vue": () => import("./Copy-PYxtclV3.js"), "../components/texts/Date.vue": () => import("./Date-Dr80JkYm.js"), "../components/texts/DateRange.vue": () => import("./DateRange-DrYK_l0Y.js"), "../components/texts/DateTime.vue": () => import("./DateTime-BzjTeOtg.js"), "../components/texts/Decimal.vue": () => import("./Decimal-CnaJfnyD.js"), "../components/texts/Dictionary.vue": () => import("./Dictionary-Bf5W_pJM.js"), "../components/texts/Email.vue": () => import("./Email-BKW9GRcH.js"), "../components/texts/Index.vue": () => import("./Index-CLJ35fvo.js"), "../components/texts/Int.vue": () => import("./Int-B-t8edhd.js"), "../components/texts/Markdown.vue": () => import("./Markdown-DnPCfzFD.js"), "../components/texts/Month.vue": () => import("./Month-BbbcEZef.js"), "../components/texts/Password.vue": () => import("./Password-yHtlY-Qa.js"), "../components/texts/Progress.vue": () => import("./Progress-CKVzMO-W.js"), "../components/texts/Radio.vue": () => import("./Radio-BrSONLbo.js"), "../components/texts/Rate.vue": () => import("./Rate-BmC4gw_0.js"), "../components/texts/RichText.vue": () => import("./RichText-Bk0Msyhl.js"), "../components/texts/Select.vue": () => import("./Select-CIWL2QB_.js"), "../components/texts/Switch.vue": () => import("./Switch-qLwHUFTL.js"), "../components/texts/Text.vue": () => import("./Text-DJbk5I_4.js"), "../components/texts/TextLink.vue": () => import("./TextLink-B6X1_Ltd.js"), "../components/texts/Textarea.vue": () => import("./Textarea-CnS6jb4O.js"), "../components/texts/Upload.vue": () => import("./Upload-DG8svROr.js"), "../components/texts/Year.vue": () => import("./Year-De0vEkgD.js") }), "../components/texts/", "text");
|
3307
|
+
this.register(i, /* @__PURE__ */ Object.assign({ "../components/controls/Autocomplete.vue": () => import("./Autocomplete-CV4D7693.js"), "../components/controls/Cascader.vue": () => import("./Cascader-K4fh1YbW.js"), "../components/controls/Checkbox.vue": () => import("./Checkbox-D928Sp6S.js"), "../components/controls/Code.vue": () => import("./Code-BTDq_0B6.js"), "../components/controls/Color.vue": () => import("./Color-Da69pnQg.js"), "../components/controls/Compare.vue": () => import("./Compare-7rmSR2Vp.js"), "../components/controls/Date.vue": () => import("./Date-B9tmMFuT.js"), "../components/controls/DateRange.vue": () => import("./DateRange-DM7_QCBw.js"), "../components/controls/DateTime.vue": () => import("./DateTime-Ce1NnyqQ.js"), "../components/controls/DateTimeRange.vue": () => import("./DateTimeRange-Cr_pV6VX.js"), "../components/controls/Decimal.vue": () => import("./Decimal-C38-N54B.js"), "../components/controls/Email.vue": () => import("./Email-BGc1mV9s.js"), "../components/controls/Image.vue": () => import("./Image-8u9oIiGp.js"), "../components/controls/Index.vue": () => import("./Index-CSqSf17l.js"), "../components/controls/Int.vue": () => import("./Int-BuRUWpC5.js"), "../components/controls/Markdown.vue": () => import("./Markdown-BzMP3m7o.js"), "../components/controls/Month.vue": () => import("./Month-D9r3wt_e.js"), "../components/controls/Password.vue": () => import("./Password-DuyYEgzR.js"), "../components/controls/Progress.vue": () => import("./Progress-C3D821AQ.js"), "../components/controls/Radio.vue": () => import("./Radio-DkcBKBvX.js"), "../components/controls/Rate.vue": () => import("./Rate-B7jKTFKT.js"), "../components/controls/RichText.vue": () => import("./RichText-Bpw54w7L.js"), "../components/controls/Select.vue": () => import("./Select-CGOTSJVh.js"), "../components/controls/Switch.vue": () => import("./Switch-DhFaku5L.js"), "../components/controls/Text.vue": () => import("./Text-EQNK15_K.js"), "../components/controls/Textarea.vue": () => import("./Textarea-D9TgF9ig.js"), "../components/controls/Time.vue": () => import("./Time-CRVru-6c.js"), "../components/controls/Upload.vue": () => import("./Upload-Cw7Ln3cd.js"), "../components/controls/Year.vue": () => import("./Year-DBuvSBYN.js") }), "../../halo-pc/components/controls/", "control"), this.register(i, /* @__PURE__ */ Object.assign({ "../components/lists/Calender.vue": () => import("./Calender-B1bjnNK5.js"), "../components/lists/Racebar.vue": () => import("./Racebar-ng-7K86M.js"), "../components/lists/Statistic.vue": () => import("./Statistic-DzF-1c5_.js"), "../components/lists/Stock.vue": () => import("./Stock-CfI244Nf.js"), "../components/lists/Timeline.vue": () => import("./Timeline-B2unIcOQ.js"), "../components/lists/Tree.vue": () => import("./Tree-DO2eaZZT.js") }), "../../halo-pc/components/lists/", "list"), this.register(i, /* @__PURE__ */ Object.assign({ "../components/pagings/Article.vue": () => import("./Article-D4qXG55i.js"), "../components/pagings/Code.vue": () => import("./Code-C4HjQm82.js"), "../components/pagings/DataExport.vue": () => import("./DataExport-CNacxrr6.js"), "../components/pagings/DataImport.vue": () => import("./DataImport-Dm86g3rr.js"), "../components/pagings/File.vue": () => import("./File-Bmnp2oNs.js"), "../components/pagings/Index.vue": () => import("./Index-DiMWhBFC.js"), "../components/pagings/SearchFooter.vue": () => import("./SearchFooter-TOtn9psJ.js"), "../components/pagings/SearchForm.vue": () => import("./SearchForm-tCH9rcrw.js"), "../components/pagings/Table.vue": () => import("./Table-Q1QCTkqH.js") }), "../../halo-pc/components/pagings/", "paging"), this.register(i, /* @__PURE__ */ Object.assign({ "../components/partials/ArticleFooter.vue": () => import("./ArticleFooter-BAf1rKUX.js"), "../components/partials/Detail.vue": () => import("./Detail-vOrhBm_q.js"), "../components/partials/PagingHeader.vue": () => import("./PagingHeader-CBXHiUXR.js"), "../components/partials/PagingRow.vue": () => import("./PagingRow-tny-wHwu.js"), "../components/partials/TreeNode.vue": () => import("./TreeNode-k4qKfs3W.js"), "../components/partials/Update.vue": () => import("./Update-BH1SivST.js"), "../components/partials/UpdateChild.vue": () => import("./UpdateChild-CA0P17tZ.js") }), "../../halo-pc/components/partials/", "partial"), this.register(i, /* @__PURE__ */ Object.assign({ "../components/searches/Autocomplete.vue": () => import("./Autocomplete-BOxOjTFs.js"), "../components/searches/Daterange.vue": () => import("./Daterange-b5lnauDR.js"), "../components/searches/Index.vue": () => import("./Index-9AheG9bs.js"), "../components/searches/Int.vue": () => import("./Int-AE2e9jyG.js"), "../components/searches/Month.vue": () => import("./Month-BVKakHhk.js"), "../components/searches/Select.vue": () => import("./Select-Dz8akTqG.js"), "../components/searches/Text.vue": () => import("./Text-CLMVbFyi.js") }), "../../halo-pc/components/searches/", "search"), this.register(i, /* @__PURE__ */ Object.assign({ "../components/singles/Code.vue": () => import("./Code-RAklwsI8.js"), "../components/singles/Comment.vue": () => import("./Comment-DCArar0n.js"), "../components/singles/Index.vue": () => import("./Index-BNXlbQ4E.js"), "../components/singles/Normal.vue": () => import("./Normal-CPn8hp3t.js"), "../components/singles/Statistic.vue": () => import("./Statistic-B_mgjlnr.js"), "../components/singles/Stock.vue": () => import("./Stock-9Ja_G9Dg.js"), "../components/singles/Table.vue": () => import("./Table-Bes5hPBu.js"), "../components/singles/Tree.vue": () => import("./Tree-Bt7FIc2Z.js"), "../components/singles/Tree_Old.vue": () => import("./Tree_Old-h__WmqFA.js") }), "../../halo-pc/components/singles/", "update"), this.register(i, /* @__PURE__ */ Object.assign({ "../components/texts/Autocomplete.vue": () => import("./Autocomplete-BdKldPfG.js"), "../components/texts/CSharp.vue": () => import("./CSharp-D_fhmKNi.js"), "../components/texts/Cascader.vue": () => import("./Cascader-B6OhUHVe.js"), "../components/texts/Checkbox.vue": () => import("./Checkbox-CkfHA52y.js"), "../components/texts/Code.vue": () => import("./Code-3c6-02U1.js"), "../components/texts/Color.vue": () => import("./Color-CfXtJFUo.js"), "../components/texts/Compare.vue": () => import("./Compare-D-WXTccH.js"), "../components/texts/Copy.vue": () => import("./Copy-DkFCsKxT.js"), "../components/texts/Date.vue": () => import("./Date-2zsvAlTg.js"), "../components/texts/DateRange.vue": () => import("./DateRange-DrYK_l0Y.js"), "../components/texts/DateTime.vue": () => import("./DateTime-DMECNCs4.js"), "../components/texts/Decimal.vue": () => import("./Decimal-DtTHo5uv.js"), "../components/texts/Dictionary.vue": () => import("./Dictionary-B9oe1_S6.js"), "../components/texts/Email.vue": () => import("./Email-BKW9GRcH.js"), "../components/texts/Index.vue": () => import("./Index-CS11p-lU.js"), "../components/texts/Int.vue": () => import("./Int-B-t8edhd.js"), "../components/texts/Markdown.vue": () => import("./Markdown-DuJREXXg.js"), "../components/texts/Month.vue": () => import("./Month-D366v-0Q.js"), "../components/texts/Password.vue": () => import("./Password-yHtlY-Qa.js"), "../components/texts/Progress.vue": () => import("./Progress-CKVzMO-W.js"), "../components/texts/Radio.vue": () => import("./Radio-DW7t0gUT.js"), "../components/texts/Rate.vue": () => import("./Rate-BmC4gw_0.js"), "../components/texts/RichText.vue": () => import("./RichText-Bk0Msyhl.js"), "../components/texts/Select.vue": () => import("./Select-DhpaFdqx.js"), "../components/texts/Switch.vue": () => import("./Switch-HAej2klZ.js"), "../components/texts/Text.vue": () => import("./Text-DgINICKw.js"), "../components/texts/TextLink.vue": () => import("./TextLink-o-e-724y.js"), "../components/texts/Textarea.vue": () => import("./Textarea-2hZMIygc.js"), "../components/texts/Upload.vue": () => import("./Upload-Bhp3QMff.js"), "../components/texts/Year.vue": () => import("./Year-Q2Y-HAuh.js") }), "../../halo-pc/components/texts/", "text"), this.register(i, /* @__PURE__ */ Object.assign({ "../components/controls/Autocomplete.vue": () => import("./Autocomplete-CV4D7693.js"), "../components/controls/Cascader.vue": () => import("./Cascader-K4fh1YbW.js"), "../components/controls/Checkbox.vue": () => import("./Checkbox-D928Sp6S.js"), "../components/controls/Code.vue": () => import("./Code-BTDq_0B6.js"), "../components/controls/Color.vue": () => import("./Color-Da69pnQg.js"), "../components/controls/Compare.vue": () => import("./Compare-7rmSR2Vp.js"), "../components/controls/Date.vue": () => import("./Date-B9tmMFuT.js"), "../components/controls/DateRange.vue": () => import("./DateRange-DM7_QCBw.js"), "../components/controls/DateTime.vue": () => import("./DateTime-Ce1NnyqQ.js"), "../components/controls/DateTimeRange.vue": () => import("./DateTimeRange-Cr_pV6VX.js"), "../components/controls/Decimal.vue": () => import("./Decimal-C38-N54B.js"), "../components/controls/Email.vue": () => import("./Email-BGc1mV9s.js"), "../components/controls/Image.vue": () => import("./Image-8u9oIiGp.js"), "../components/controls/Index.vue": () => import("./Index-CSqSf17l.js"), "../components/controls/Int.vue": () => import("./Int-BuRUWpC5.js"), "../components/controls/Markdown.vue": () => import("./Markdown-BzMP3m7o.js"), "../components/controls/Month.vue": () => import("./Month-D9r3wt_e.js"), "../components/controls/Password.vue": () => import("./Password-DuyYEgzR.js"), "../components/controls/Progress.vue": () => import("./Progress-C3D821AQ.js"), "../components/controls/Radio.vue": () => import("./Radio-DkcBKBvX.js"), "../components/controls/Rate.vue": () => import("./Rate-B7jKTFKT.js"), "../components/controls/RichText.vue": () => import("./RichText-Bpw54w7L.js"), "../components/controls/Select.vue": () => import("./Select-CGOTSJVh.js"), "../components/controls/Switch.vue": () => import("./Switch-DhFaku5L.js"), "../components/controls/Text.vue": () => import("./Text-EQNK15_K.js"), "../components/controls/Textarea.vue": () => import("./Textarea-D9TgF9ig.js"), "../components/controls/Time.vue": () => import("./Time-CRVru-6c.js"), "../components/controls/Upload.vue": () => import("./Upload-Cw7Ln3cd.js"), "../components/controls/Year.vue": () => import("./Year-DBuvSBYN.js") }), "../components/controls/", "control"), this.register(i, /* @__PURE__ */ Object.assign({ "../components/lists/Calender.vue": () => import("./Calender-B1bjnNK5.js"), "../components/lists/Racebar.vue": () => import("./Racebar-ng-7K86M.js"), "../components/lists/Statistic.vue": () => import("./Statistic-DzF-1c5_.js"), "../components/lists/Stock.vue": () => import("./Stock-CfI244Nf.js"), "../components/lists/Timeline.vue": () => import("./Timeline-B2unIcOQ.js"), "../components/lists/Tree.vue": () => import("./Tree-DO2eaZZT.js") }), "../components/lists/", "list"), this.register(i, /* @__PURE__ */ Object.assign({ "../components/pagings/Article.vue": () => import("./Article-D4qXG55i.js"), "../components/pagings/Code.vue": () => import("./Code-C4HjQm82.js"), "../components/pagings/DataExport.vue": () => import("./DataExport-CNacxrr6.js"), "../components/pagings/DataImport.vue": () => import("./DataImport-Dm86g3rr.js"), "../components/pagings/File.vue": () => import("./File-Bmnp2oNs.js"), "../components/pagings/Index.vue": () => import("./Index-DiMWhBFC.js"), "../components/pagings/SearchFooter.vue": () => import("./SearchFooter-TOtn9psJ.js"), "../components/pagings/SearchForm.vue": () => import("./SearchForm-tCH9rcrw.js"), "../components/pagings/Table.vue": () => import("./Table-Q1QCTkqH.js") }), "../components/pagings/", "paging"), this.register(i, /* @__PURE__ */ Object.assign({ "../components/partials/ArticleFooter.vue": () => import("./ArticleFooter-BAf1rKUX.js"), "../components/partials/Detail.vue": () => import("./Detail-vOrhBm_q.js"), "../components/partials/PagingHeader.vue": () => import("./PagingHeader-CBXHiUXR.js"), "../components/partials/PagingRow.vue": () => import("./PagingRow-tny-wHwu.js"), "../components/partials/TreeNode.vue": () => import("./TreeNode-k4qKfs3W.js"), "../components/partials/Update.vue": () => import("./Update-BH1SivST.js"), "../components/partials/UpdateChild.vue": () => import("./UpdateChild-CA0P17tZ.js") }), "../components/partials/", "partial"), this.register(i, /* @__PURE__ */ Object.assign({ "../components/searches/Autocomplete.vue": () => import("./Autocomplete-BOxOjTFs.js"), "../components/searches/Daterange.vue": () => import("./Daterange-b5lnauDR.js"), "../components/searches/Index.vue": () => import("./Index-9AheG9bs.js"), "../components/searches/Int.vue": () => import("./Int-AE2e9jyG.js"), "../components/searches/Month.vue": () => import("./Month-BVKakHhk.js"), "../components/searches/Select.vue": () => import("./Select-Dz8akTqG.js"), "../components/searches/Text.vue": () => import("./Text-CLMVbFyi.js") }), "../components/searches/", "search"), this.register(i, /* @__PURE__ */ Object.assign({ "../components/singles/Code.vue": () => import("./Code-RAklwsI8.js"), "../components/singles/Comment.vue": () => import("./Comment-DCArar0n.js"), "../components/singles/Index.vue": () => import("./Index-BNXlbQ4E.js"), "../components/singles/Normal.vue": () => import("./Normal-CPn8hp3t.js"), "../components/singles/Statistic.vue": () => import("./Statistic-B_mgjlnr.js"), "../components/singles/Stock.vue": () => import("./Stock-9Ja_G9Dg.js"), "../components/singles/Table.vue": () => import("./Table-Bes5hPBu.js"), "../components/singles/Tree.vue": () => import("./Tree-Bt7FIc2Z.js"), "../components/singles/Tree_Old.vue": () => import("./Tree_Old-h__WmqFA.js") }), "../components/singles/", "update"), this.register(i, /* @__PURE__ */ Object.assign({ "../components/texts/Autocomplete.vue": () => import("./Autocomplete-BdKldPfG.js"), "../components/texts/CSharp.vue": () => import("./CSharp-D_fhmKNi.js"), "../components/texts/Cascader.vue": () => import("./Cascader-B6OhUHVe.js"), "../components/texts/Checkbox.vue": () => import("./Checkbox-CkfHA52y.js"), "../components/texts/Code.vue": () => import("./Code-3c6-02U1.js"), "../components/texts/Color.vue": () => import("./Color-CfXtJFUo.js"), "../components/texts/Compare.vue": () => import("./Compare-D-WXTccH.js"), "../components/texts/Copy.vue": () => import("./Copy-DkFCsKxT.js"), "../components/texts/Date.vue": () => import("./Date-2zsvAlTg.js"), "../components/texts/DateRange.vue": () => import("./DateRange-DrYK_l0Y.js"), "../components/texts/DateTime.vue": () => import("./DateTime-DMECNCs4.js"), "../components/texts/Decimal.vue": () => import("./Decimal-DtTHo5uv.js"), "../components/texts/Dictionary.vue": () => import("./Dictionary-B9oe1_S6.js"), "../components/texts/Email.vue": () => import("./Email-BKW9GRcH.js"), "../components/texts/Index.vue": () => import("./Index-CS11p-lU.js"), "../components/texts/Int.vue": () => import("./Int-B-t8edhd.js"), "../components/texts/Markdown.vue": () => import("./Markdown-DuJREXXg.js"), "../components/texts/Month.vue": () => import("./Month-D366v-0Q.js"), "../components/texts/Password.vue": () => import("./Password-yHtlY-Qa.js"), "../components/texts/Progress.vue": () => import("./Progress-CKVzMO-W.js"), "../components/texts/Radio.vue": () => import("./Radio-DW7t0gUT.js"), "../components/texts/Rate.vue": () => import("./Rate-BmC4gw_0.js"), "../components/texts/RichText.vue": () => import("./RichText-Bk0Msyhl.js"), "../components/texts/Select.vue": () => import("./Select-DhpaFdqx.js"), "../components/texts/Switch.vue": () => import("./Switch-HAej2klZ.js"), "../components/texts/Text.vue": () => import("./Text-DgINICKw.js"), "../components/texts/TextLink.vue": () => import("./TextLink-o-e-724y.js"), "../components/texts/Textarea.vue": () => import("./Textarea-2hZMIygc.js"), "../components/texts/Upload.vue": () => import("./Upload-Bhp3QMff.js"), "../components/texts/Year.vue": () => import("./Year-Q2Y-HAuh.js") }), "../components/texts/", "text");
|
3308
3308
|
},
|
3309
3309
|
/**
|
3310
3310
|
* 注册全局异步或同步组件
|
@@ -3442,7 +3442,7 @@ let Lt = Re("component", {
|
|
3442
3442
|
async loadI18n(i) {
|
3443
3443
|
let e = new Promise(async (l) => {
|
3444
3444
|
let s = { conditions: [{ name: "lang", value: i }] };
|
3445
|
-
return
|
3445
|
+
return ve.post("/i18n", s).then(({ data: n }) => {
|
3446
3446
|
n.forEach((r) => {
|
3447
3447
|
let a = `${i}.${r.Module}.${r.Key}`.split(".");
|
3448
3448
|
pe.addProperties(this, a, r.Value);
|
@@ -3450,7 +3450,7 @@ let Lt = Re("component", {
|
|
3450
3450
|
});
|
3451
3451
|
}), t = new Promise((l) => {
|
3452
3452
|
let s = { conditions: [{ name: "lang", value: i }] };
|
3453
|
-
|
3453
|
+
ve.post("/i18n_business", s).then(({ data: n }) => {
|
3454
3454
|
n.forEach((r) => {
|
3455
3455
|
let a = `${i}._business.${r.Table}.${r.Field}.${r.Key}`.split(".");
|
3456
3456
|
pe.addProperties(this, a, r.Value);
|
@@ -3467,7 +3467,7 @@ let Lt = Re("component", {
|
|
3467
3467
|
}
|
3468
3468
|
}
|
3469
3469
|
});
|
3470
|
-
const
|
3470
|
+
const je = An;
|
3471
3471
|
let Bt = Re("log", {
|
3472
3472
|
state() {
|
3473
3473
|
return {
|
@@ -3539,13 +3539,13 @@ let Bt = Re("log", {
|
|
3539
3539
|
}
|
3540
3540
|
}
|
3541
3541
|
}), Nn = [
|
3542
|
-
{ path: "/install", component: import("./Install-
|
3543
|
-
{ path: "/login", component: () => import("./Index-
|
3544
|
-
{ path: "/register", component: () => import("./Register-
|
3545
|
-
{ path: "/maintaince", component: () => import("./Maintaince-
|
3546
|
-
{ path: "/sso/callback", component: () => import("./Callback-
|
3542
|
+
{ path: "/install", component: import("./Install-DU27ycRi.js") },
|
3543
|
+
{ path: "/login", component: () => import("./Index-DtM8VZwV.js") },
|
3544
|
+
{ path: "/register", component: () => import("./Register-oG9MMCqJ.js") },
|
3545
|
+
{ path: "/maintaince", component: () => import("./Maintaince-BxK8vEL8.js") },
|
3546
|
+
{ path: "/sso/callback", component: () => import("./Callback-DjHhgx-q.js") },
|
3547
3547
|
//优先匹配自定义路由,自定义路由匹配不到后,再使用框架页面
|
3548
|
-
{ path: "/:pathMatch(.*)*", component: () => import("./Index-
|
3548
|
+
{ path: "/:pathMatch(.*)*", component: () => import("./Index-B_P8rY63.js") }
|
3549
3549
|
], Fn = () => ({
|
3550
3550
|
/**
|
3551
3551
|
* 安装路由
|
@@ -3555,7 +3555,7 @@ let Bt = Re("log", {
|
|
3555
3555
|
i.addRoutes(Nn), i.router.beforeEach(async (e, t, l) => {
|
3556
3556
|
if (e.path == "/install")
|
3557
3557
|
return l();
|
3558
|
-
let s = Ge(), n = We(), r = it(), a =
|
3558
|
+
let s = Ge(), n = We(), r = it(), a = je(), u = Ee(), c = al();
|
3559
3559
|
return r.setHideNav(e.query.hide_nav), await s.init(), n.getSso() ? e.path == "/login" ? l({ path: "/" }) : n.user ? l() : (c.reconnect = !0, c.connect(), await n.loadInfo(), await n.loadMenus(), await a.switchI18n(u.language), l({ ...e, replace: !0 })) : n.menus != null ? l() : (n.getAnonymous(), await n.loadMenus(), await a.switchI18n(zl.getCurrentLanguage()), l(e));
|
3560
3560
|
});
|
3561
3561
|
}
|
@@ -3591,10 +3591,10 @@ let Bt = Re("log", {
|
|
3591
3591
|
* 初始化
|
3592
3592
|
*/
|
3593
3593
|
async useGlobal(i) {
|
3594
|
-
let e = Fe(), t = Lt(), l =
|
3594
|
+
let e = Fe(), t = Lt(), l = je(), s = Bt();
|
3595
3595
|
i.use(e.router), i.use(Fn()), t.init(i);
|
3596
3596
|
let n = this.env.VITE_CDN == "true" ? "StaticFile" : "Local", r = this.env.VITE_BASE, a = Ne.getCdn(n, r);
|
3597
|
-
await a.loadAsync("ElementPlus"), import("./vendor-element-plus-Z7vJFrsh.js").then((u) => u.c), ds.props.closeOnClickModal = !1, i.use(cs), a.loadAsync("FortAwesome").then(), a.loadAsync("Quill").then(), i.use(l.i18n), i.config.globalProperties.$http =
|
3597
|
+
await a.loadAsync("ElementPlus"), import("./vendor-element-plus-Z7vJFrsh.js").then((u) => u.c), ds.props.closeOnClickModal = !1, i.use(cs), a.loadAsync("FortAwesome").then(), a.loadAsync("Quill").then(), i.use(l.i18n), i.config.globalProperties.$http = ve, i.config.globalProperties.t = l.$t, i.config.globalProperties.$t_exists = l.$t_exists, i.config.globalProperties.$t_sys = l.$t_sys, i.config.globalProperties.$t_enum = l.$t_enum, i.config.globalProperties.$t_field = l.$t_field, i.config.globalProperties.$t_field_choose_placeholder = l.$t_field_choose_placeholder, i.config.globalProperties.$t_field_placeholder = l.$t_field_placeholder, i.config.globalProperties.$t_module = l.$t_module, i.config.globalProperties.$t_menu = l.$t_menu, i.config.errorHandler = (u, c) => {
|
3598
3598
|
let p = u.message, d = c.$el;
|
3599
3599
|
throw d && d.className && (p += ` 对应dom类: .${d.className}`), s.add("error", p, u.stack), u;
|
3600
3600
|
};
|
@@ -3609,7 +3609,7 @@ let Bt = Re("log", {
|
|
3609
3609
|
* 注册多语言翻译
|
3610
3610
|
*/
|
3611
3611
|
useI18n(i) {
|
3612
|
-
|
3612
|
+
je().addMessages(i);
|
3613
3613
|
},
|
3614
3614
|
/**
|
3615
3615
|
* 注册自定义组件
|
@@ -3699,7 +3699,7 @@ let Bt = Re("log", {
|
|
3699
3699
|
* 加载设置
|
3700
3700
|
*/
|
3701
3701
|
async loadSetting() {
|
3702
|
-
return
|
3702
|
+
return ve.get("/app/setting").then(({ data: i }) => (Object.keys(i).forEach((e) => {
|
3703
3703
|
let t = i[e];
|
3704
3704
|
t && (this[e] = t);
|
3705
3705
|
}), se.addClass(document.documentElement, this.theme, window.setting.web.theme), Xe.emits({ theme: this.theme }), Promise.resolve(i))).catch((i) => Promise.reject(i));
|
@@ -3769,7 +3769,7 @@ let qn = Re("config", {
|
|
3769
3769
|
if (t)
|
3770
3770
|
return Promise.resolve(t);
|
3771
3771
|
}
|
3772
|
-
return
|
3772
|
+
return ve.get(`/user/config?type=${i}`).then((t) => {
|
3773
3773
|
let l = t.data ? JSON.parse(t.data) : null;
|
3774
3774
|
return Promise.resolve(l);
|
3775
3775
|
});
|
@@ -3778,13 +3778,13 @@ let qn = Re("config", {
|
|
3778
3778
|
* 全量保存用户配置
|
3779
3779
|
*/
|
3780
3780
|
async saveConfig(i, e, t = !0) {
|
3781
|
-
return t && ee.setObject(i, e),
|
3781
|
+
return t && ee.setObject(i, e), ve.post(`/user/config?type=${i}`, e).then((l) => Promise.resolve(!0));
|
3782
3782
|
},
|
3783
3783
|
/**
|
3784
3784
|
* 部分保存用户配置
|
3785
3785
|
*/
|
3786
3786
|
async patchConfig(i, e) {
|
3787
|
-
return
|
3787
|
+
return ve.patch(`/user/config?type=${i}`, e).then((t) => Promise.resolve(!0));
|
3788
3788
|
}
|
3789
3789
|
}
|
3790
3790
|
});
|
@@ -3867,7 +3867,7 @@ const Kn = Re("user", {
|
|
3867
3867
|
* 登录后,获取用户信息
|
3868
3868
|
*/
|
3869
3869
|
async loadInfo() {
|
3870
|
-
return
|
3870
|
+
return ve.get("/user/info").then(({ data: i }) => {
|
3871
3871
|
let e = it(), t = Ee();
|
3872
3872
|
t.init(i.configs);
|
3873
3873
|
let l = e.env.VITE_CDN == "true" ? "StaticFile" : "Local", s = e.env.VITE_BASE, n = Ne.getCdn(l, s);
|
@@ -3908,16 +3908,16 @@ const Kn = Re("user", {
|
|
3908
3908
|
* 加载服务端路由
|
3909
3909
|
*/
|
3910
3910
|
async loadMenus() {
|
3911
|
-
return
|
3911
|
+
return ve.get("/user/menu").then(({ data: i }) => (this.menus = i, this.menusFlat = Te.getFlat(i, "children"), Promise.resolve(i)));
|
3912
3912
|
},
|
3913
3913
|
/**
|
3914
3914
|
* 退出登录
|
3915
3915
|
*/
|
3916
3916
|
async logout() {
|
3917
|
-
return
|
3917
|
+
return ve.post("/user/logout").then(() => (this.user = null, this.menus = null, Ne.getSso(this.getSso().type).logout(), al().disconnect(), Promise.resolve())).catch((i) => Promise.reject(i));
|
3918
3918
|
}
|
3919
3919
|
}
|
3920
|
-
}), We = Kn,
|
3920
|
+
}), We = Kn, _i = Re("layout", {
|
3921
3921
|
state() {
|
3922
3922
|
return {
|
3923
3923
|
columns: 6,
|
@@ -3970,7 +3970,7 @@ let Yn = Re("driver", {
|
|
3970
3970
|
*/
|
3971
3971
|
async loadApps(i = !1) {
|
3972
3972
|
if (!this.loading.apps && !(!i && this.loaded.apps))
|
3973
|
-
return this.loading.apps = !0,
|
3973
|
+
return this.loading.apps = !0, ve.post("/app/options").then((e) => {
|
3974
3974
|
this.apps = e.data, this.loaded.apps = !0;
|
3975
3975
|
}).finally(() => {
|
3976
3976
|
this.loading.apps = !1;
|
@@ -3981,7 +3981,7 @@ let Yn = Re("driver", {
|
|
3981
3981
|
*/
|
3982
3982
|
async loadEnvs(i = !1) {
|
3983
3983
|
if (!this.loading.envs && (this.loading.envs = !0, !(!i && this.loaded.envs)))
|
3984
|
-
return
|
3984
|
+
return ve.post("/env/options").then((e) => {
|
3985
3985
|
this.envs = e.data, this.loaded.envs = !0;
|
3986
3986
|
}).finally(() => {
|
3987
3987
|
this.loading.envs = !1;
|
@@ -3992,15 +3992,15 @@ let Yn = Re("driver", {
|
|
3992
3992
|
const Xn = /* @__PURE__ */ X({
|
3993
3993
|
__name: "App",
|
3994
3994
|
setup(i) {
|
3995
|
-
let e = Ge(), t =
|
3995
|
+
let e = Ge(), t = je();
|
3996
3996
|
return (l, s) => {
|
3997
|
-
const n =
|
3997
|
+
const n = z("router-view"), r = z("el-config-provider");
|
3998
3998
|
return h(), P(r, {
|
3999
3999
|
size: o(e).size,
|
4000
4000
|
locale: o(t).locale
|
4001
4001
|
}, {
|
4002
4002
|
default: y(() => [
|
4003
|
-
o(e).particles ? (h(), P(o(Es), { key: 0 })) :
|
4003
|
+
o(e).particles ? (h(), P(o(Es), { key: 0 })) : N("", !0),
|
4004
4004
|
S(n)
|
4005
4005
|
]),
|
4006
4006
|
_: 1
|
@@ -4020,7 +4020,7 @@ const Xn = /* @__PURE__ */ X({
|
|
4020
4020
|
key: 1,
|
4021
4021
|
class: "fa fa-plus"
|
4022
4022
|
}, Hn = /* @__PURE__ */ v("i", { class: "fa fa-eye" }, null, -1), eo = /* @__PURE__ */ v("i", { class: "fa fa-copy" }, null, -1), to = /* @__PURE__ */ v("i", { class: "fa fa-trash-alt" }, null, -1), lo = /* @__PURE__ */ v("i", { class: "fa fa-list" }, null, -1), Dl = /* @__PURE__ */ X({
|
4023
|
-
__name: "
|
4023
|
+
__name: "HaCrud",
|
4024
4024
|
props: /* @__PURE__ */ ot({
|
4025
4025
|
module: {},
|
4026
4026
|
readonly: { type: Boolean },
|
@@ -4032,20 +4032,20 @@ const Xn = /* @__PURE__ */ X({
|
|
4032
4032
|
}),
|
4033
4033
|
emits: /* @__PURE__ */ ot(["succeed"], ["update:modelValue"]),
|
4034
4034
|
setup(i, { emit: e }) {
|
4035
|
-
let t = e, l = i, { readonly: s, module: n, size: r, to: a } =
|
4036
|
-
d(
|
4037
|
-
}, d = (
|
4038
|
-
c.value.url =
|
4035
|
+
let t = e, l = i, { readonly: s, module: n, size: r, to: a } = ue(l), u = el(i, "modelValue"), c = x({ url: null, type: null, name: null, visible: !1 }), p = (V) => {
|
4036
|
+
d(V);
|
4037
|
+
}, d = (V) => {
|
4038
|
+
c.value.url = V, c.value.visible = !0;
|
4039
4039
|
}, m = () => {
|
4040
4040
|
s.value ? u.value ? d(`/${n.value}/copy?id=${u.value}`) : d(`/${n.value}/insert`) : u.value ? d(`/${n.value}/update?id=${u.value}`) : d(`/${n.value}/insert`);
|
4041
|
-
},
|
4042
|
-
c.value.type =
|
4043
|
-
},
|
4044
|
-
c.value.visible = !1, t("succeed",
|
4041
|
+
}, f = (V) => {
|
4042
|
+
c.value.type = V.module.type, c.value.name = V.module.name;
|
4043
|
+
}, w = async (V) => {
|
4044
|
+
c.value.visible = !1, t("succeed", V, c.value.name);
|
4045
4045
|
};
|
4046
|
-
return (
|
4047
|
-
const
|
4048
|
-
return h(),
|
4046
|
+
return (V, T) => {
|
4047
|
+
const M = z("el-dropdown-item"), O = z("el-dropdown-menu"), I = z("el-dropdown"), C = z("el-drawer");
|
4048
|
+
return h(), _(te, null, [
|
4049
4049
|
S(I, {
|
4050
4050
|
"split-button": "",
|
4051
4051
|
size: o(r),
|
@@ -4055,7 +4055,7 @@ const Xn = /* @__PURE__ */ X({
|
|
4055
4055
|
dropdown: y(() => [
|
4056
4056
|
S(O, null, {
|
4057
4057
|
default: y(() => [
|
4058
|
-
o(u) ? (h(), P(
|
4058
|
+
o(u) ? (h(), P(M, {
|
4059
4059
|
key: 0,
|
4060
4060
|
command: `/${o(n)}/detail?id=${o(u)}`
|
4061
4061
|
}, {
|
@@ -4064,8 +4064,8 @@ const Xn = /* @__PURE__ */ X({
|
|
4064
4064
|
Y("详情 ")
|
4065
4065
|
]),
|
4066
4066
|
_: 1
|
4067
|
-
}, 8, ["command"])) :
|
4068
|
-
o(u) && !o(s) ? (h(), P(
|
4067
|
+
}, 8, ["command"])) : N("", !0),
|
4068
|
+
o(u) && !o(s) ? (h(), P(M, {
|
4069
4069
|
key: 1,
|
4070
4070
|
command: `/${o(n)}/copy?id=${o(u)}`
|
4071
4071
|
}, {
|
@@ -4074,8 +4074,8 @@ const Xn = /* @__PURE__ */ X({
|
|
4074
4074
|
Y("复制 ")
|
4075
4075
|
]),
|
4076
4076
|
_: 1
|
4077
|
-
}, 8, ["command"])) :
|
4078
|
-
o(u) && !o(s) ? (h(), P(
|
4077
|
+
}, 8, ["command"])) : N("", !0),
|
4078
|
+
o(u) && !o(s) ? (h(), P(M, {
|
4079
4079
|
key: 2,
|
4080
4080
|
command: `/${o(n)}/delete?id=${o(u)}`
|
4081
4081
|
}, {
|
@@ -4084,8 +4084,8 @@ const Xn = /* @__PURE__ */ X({
|
|
4084
4084
|
Y("删除 ")
|
4085
4085
|
]),
|
4086
4086
|
_: 1
|
4087
|
-
}, 8, ["command"])) :
|
4088
|
-
S(
|
4087
|
+
}, 8, ["command"])) : N("", !0),
|
4088
|
+
S(M, {
|
4089
4089
|
command: `/${o(n)}/paging`
|
4090
4090
|
}, {
|
4091
4091
|
default: y(() => [
|
@@ -4094,16 +4094,16 @@ const Xn = /* @__PURE__ */ X({
|
|
4094
4094
|
]),
|
4095
4095
|
_: 1
|
4096
4096
|
}, 8, ["command"]),
|
4097
|
-
H(
|
4097
|
+
H(V.$slots, "default")
|
4098
4098
|
]),
|
4099
4099
|
_: 3
|
4100
4100
|
})
|
4101
4101
|
]),
|
4102
4102
|
default: y(() => [
|
4103
|
-
o(s) ? (h(),
|
4104
|
-
o(u) ? (h(),
|
4105
|
-
], 64)) : (h(),
|
4106
|
-
o(u) ? (h(),
|
4103
|
+
o(s) ? (h(), _(te, { key: 0 }, [
|
4104
|
+
o(u) ? (h(), _("i", Qn)) : (h(), _("i", Jn))
|
4105
|
+
], 64)) : (h(), _(te, { key: 1 }, [
|
4106
|
+
o(u) ? (h(), _("i", Gn)) : (h(), _("i", Zn))
|
4107
4107
|
], 64))
|
4108
4108
|
]),
|
4109
4109
|
_: 3
|
@@ -4113,20 +4113,20 @@ const Xn = /* @__PURE__ */ X({
|
|
4113
4113
|
disabled: !o(a)
|
4114
4114
|
}, [
|
4115
4115
|
S(C, {
|
4116
|
-
title:
|
4116
|
+
title: V.$t_module(o(c).type, o(c).name),
|
4117
4117
|
size: "60%",
|
4118
4118
|
modelValue: o(c).visible,
|
4119
|
-
"onUpdate:modelValue": T[0] || (T[0] = (
|
4119
|
+
"onUpdate:modelValue": T[0] || (T[0] = (j) => o(c).visible = j)
|
4120
4120
|
}, {
|
4121
4121
|
default: y(() => [
|
4122
4122
|
o(c).url ? (h(), P(o(at), {
|
4123
4123
|
key: 0,
|
4124
4124
|
ref: "pageRef",
|
4125
4125
|
url: o(c).url,
|
4126
|
-
onLoaded: o(
|
4127
|
-
onSucceed: o(
|
4128
|
-
onClose: o(
|
4129
|
-
}, null, 8, ["url", "onLoaded", "onSucceed", "onClose"])) :
|
4126
|
+
onLoaded: o(f),
|
4127
|
+
onSucceed: o(w),
|
4128
|
+
onClose: o(w)
|
4129
|
+
}, null, 8, ["url", "onLoaded", "onSucceed", "onClose"])) : N("", !0)
|
4130
4130
|
]),
|
4131
4131
|
_: 1
|
4132
4132
|
}, 8, ["title", "modelValue"])
|
@@ -4135,7 +4135,7 @@ const Xn = /* @__PURE__ */ X({
|
|
4135
4135
|
};
|
4136
4136
|
}
|
4137
4137
|
}), so = /* @__PURE__ */ X({
|
4138
|
-
__name: "
|
4138
|
+
__name: "HaForm",
|
4139
4139
|
props: {
|
4140
4140
|
id: {},
|
4141
4141
|
store: {},
|
@@ -4143,17 +4143,17 @@ const Xn = /* @__PURE__ */ X({
|
|
4143
4143
|
},
|
4144
4144
|
emits: ["loaded"],
|
4145
4145
|
setup(i, { emit: e }) {
|
4146
|
-
let t = e, l = i, { id: s, store: n, form: r } =
|
4146
|
+
let t = e, l = i, { id: s, store: n, form: r } = ue(l), a;
|
4147
4147
|
return be(async () => {
|
4148
4148
|
a = await Ne.getProviderAsync("IndexedDb", n.value);
|
4149
4149
|
let u = await a.getAsync(s.value);
|
4150
4150
|
u && pe.merge(r.value, u), t("loaded", r.value);
|
4151
|
-
}),
|
4151
|
+
}), ge(() => r.value, (u, c) => {
|
4152
4152
|
a && a.saveAsync(s.value, r.value);
|
4153
4153
|
}, { deep: !0 }), (u, c) => H(u.$slots, "default");
|
4154
4154
|
}
|
4155
4155
|
}), no = { class: "option-text" }, oo = { class: "option-suffix" }, ro = { class: "option-text" }, io = { class: "option-suffix" }, ao = { class: "option-text" }, uo = { class: "option-suffix" }, co = /* @__PURE__ */ X({
|
4156
|
-
__name: "
|
4156
|
+
__name: "HaDriver",
|
4157
4157
|
props: {
|
4158
4158
|
id: {},
|
4159
4159
|
readonly: { type: Boolean, default: !1 },
|
@@ -4166,64 +4166,64 @@ const Xn = /* @__PURE__ */ X({
|
|
4166
4166
|
},
|
4167
4167
|
emits: ["loaded", "change", "succeed"],
|
4168
4168
|
setup(i, { expose: e, emit: t }) {
|
4169
|
-
let l = t, s = i, { id: n, form: r, inline: a, label: u, width: c, readonly: p, driver: d } =
|
4170
|
-
let
|
4171
|
-
await k(L, r.value.env), I(r.value.name), Q(), l("change", "app", L,
|
4172
|
-
},
|
4173
|
-
let
|
4174
|
-
await k(r.value.app, L), I(r.value.name), Q(), l("change", "env", L,
|
4169
|
+
let l = t, s = i, { id: n, form: r, inline: a, label: u, width: c, readonly: p, driver: d } = ue(s), m = x([]), f = Yn(), w = x(), V = x(), T = async (L) => {
|
4170
|
+
let F = f.apps.find((G) => G.value == L);
|
4171
|
+
await k(L, r.value.env), I(r.value.name), Q(), l("change", "app", L, F);
|
4172
|
+
}, M = async (L) => {
|
4173
|
+
let F = f.envs.find((G) => G.value == L);
|
4174
|
+
await k(r.value.app, L), I(r.value.name), Q(), l("change", "env", L, F);
|
4175
4175
|
}, O = (L) => {
|
4176
4176
|
I(L);
|
4177
|
-
let
|
4178
|
-
l("change", "name", L,
|
4177
|
+
let F = m.value.find((G) => G.text == L);
|
4178
|
+
l("change", "name", L, F);
|
4179
4179
|
}, I = (L) => {
|
4180
|
-
let
|
4181
|
-
if (!
|
4180
|
+
let F = m.value.find((G) => G.text == L);
|
4181
|
+
if (!F) {
|
4182
4182
|
r.value.id = null, r.value.name = null, r.value.type = null;
|
4183
4183
|
return;
|
4184
4184
|
}
|
4185
|
-
r.value.id =
|
4185
|
+
r.value.id = F.value, r.value.type = F.suffix;
|
4186
4186
|
}, C = async (L) => {
|
4187
|
-
|
4188
|
-
},
|
4189
|
-
if (!
|
4187
|
+
f.loadApps(!0).then(), await k(r.value.app, r.value.env), Q();
|
4188
|
+
}, j = (L, F) => {
|
4189
|
+
if (!V.value)
|
4190
4190
|
return !1;
|
4191
|
-
|
4192
|
-
}, k = async (L,
|
4191
|
+
V.value.keyboard(L, F);
|
4192
|
+
}, k = async (L, F) => {
|
4193
4193
|
if (!d.value)
|
4194
4194
|
return;
|
4195
4195
|
let G = {
|
4196
4196
|
conditions: [
|
4197
4197
|
{ name: "App", value: L },
|
4198
|
-
{ name: "Env", value:
|
4198
|
+
{ name: "Env", value: F },
|
4199
4199
|
{ name: "Driver", value: d.value }
|
4200
4200
|
]
|
4201
4201
|
};
|
4202
|
-
return
|
4203
|
-
m.value =
|
4202
|
+
return ve.post("/app/driver", G).then((A) => {
|
4203
|
+
m.value = A.data;
|
4204
4204
|
});
|
4205
4205
|
}, Q = () => {
|
4206
|
-
l("loaded",
|
4206
|
+
l("loaded", f.apps, f.envs, m.value);
|
4207
4207
|
}, J = async () => {
|
4208
|
-
await Promise.all([
|
4208
|
+
await Promise.all([f.loadApps(), f.loadEnvs(), k(r.value.app, r.value.env)]), Q();
|
4209
4209
|
};
|
4210
4210
|
be(() => {
|
4211
4211
|
n.value || J();
|
4212
4212
|
});
|
4213
|
-
let ne =
|
4214
|
-
return e({ keyboard:
|
4215
|
-
const G =
|
4216
|
-
return h(),
|
4213
|
+
let ne = fe(() => se.getClass(s.class, p.value ? "readonly" : null, a.value ? "inline" : null));
|
4214
|
+
return e({ keyboard: j }), (L, F) => {
|
4215
|
+
const G = z("el-option"), A = z("el-select"), q = z("el-form-item"), b = z("el-form");
|
4216
|
+
return h(), _(te, null, [
|
4217
4217
|
o(n) ? (h(), P(so, {
|
4218
4218
|
key: 0,
|
4219
4219
|
store: "driver",
|
4220
4220
|
id: o(n),
|
4221
4221
|
form: o(r),
|
4222
4222
|
onLoaded: o(J)
|
4223
|
-
}, null, 8, ["id", "form", "onLoaded"])) :
|
4223
|
+
}, null, 8, ["id", "form", "onLoaded"])) : N("", !0),
|
4224
4224
|
S(b, {
|
4225
4225
|
ref_key: "driverRef",
|
4226
|
-
ref:
|
4226
|
+
ref: w,
|
4227
4227
|
class: ae(["ho-driver", o(ne)]),
|
4228
4228
|
inline: o(a),
|
4229
4229
|
"label-width": o(a) ? null : o(c)
|
@@ -4234,35 +4234,35 @@ const Xn = /* @__PURE__ */ X({
|
|
4234
4234
|
label: o(u) ? "应用" : null
|
4235
4235
|
}, {
|
4236
4236
|
default: y(() => [
|
4237
|
-
S(
|
4237
|
+
S(A, {
|
4238
4238
|
filterable: "",
|
4239
4239
|
clearable: "",
|
4240
4240
|
placeholder: "请选择应用",
|
4241
4241
|
onChange: o(T),
|
4242
4242
|
modelValue: o(r).app,
|
4243
|
-
"onUpdate:modelValue":
|
4243
|
+
"onUpdate:modelValue": F[0] || (F[0] = (W) => o(r).app = W)
|
4244
4244
|
}, {
|
4245
4245
|
default: y(() => [
|
4246
|
-
(h(!0),
|
4246
|
+
(h(!0), _(te, null, he(o(f).apps, (W) => (h(), P(G, {
|
4247
4247
|
label: `${W.text}(${W.suffix})`,
|
4248
4248
|
value: W.value,
|
4249
4249
|
key: W.value
|
4250
4250
|
}, {
|
4251
4251
|
default: y(() => [
|
4252
|
-
v("span", no,
|
4253
|
-
v("span", oo, "(" +
|
4252
|
+
v("span", no, D(W.text), 1),
|
4253
|
+
v("span", oo, "(" + D(W.suffix) + ")", 1)
|
4254
4254
|
]),
|
4255
4255
|
_: 2
|
4256
4256
|
}, 1032, ["label", "value"]))), 128))
|
4257
4257
|
]),
|
4258
4258
|
_: 1
|
4259
4259
|
}, 8, ["onChange", "modelValue"]),
|
4260
|
-
o(p) ?
|
4260
|
+
o(p) ? N("", !0) : (h(), P(Dl, {
|
4261
4261
|
key: 0,
|
4262
4262
|
module: "ctl_app",
|
4263
4263
|
onSucceed: o(C),
|
4264
4264
|
modelValue: o(r).app,
|
4265
|
-
"onUpdate:modelValue":
|
4265
|
+
"onUpdate:modelValue": F[1] || (F[1] = (W) => o(r).app = W)
|
4266
4266
|
}, null, 8, ["onSucceed", "modelValue"]))
|
4267
4267
|
]),
|
4268
4268
|
_: 1
|
@@ -4272,23 +4272,23 @@ const Xn = /* @__PURE__ */ X({
|
|
4272
4272
|
label: o(u) ? "环境" : null
|
4273
4273
|
}, {
|
4274
4274
|
default: y(() => [
|
4275
|
-
S(
|
4275
|
+
S(A, {
|
4276
4276
|
clearable: "",
|
4277
4277
|
filterable: "",
|
4278
4278
|
placeholder: "请选择环境",
|
4279
|
-
onChange: o(
|
4279
|
+
onChange: o(M),
|
4280
4280
|
modelValue: o(r).env,
|
4281
|
-
"onUpdate:modelValue":
|
4281
|
+
"onUpdate:modelValue": F[2] || (F[2] = (W) => o(r).env = W)
|
4282
4282
|
}, {
|
4283
4283
|
default: y(() => [
|
4284
|
-
(h(!0),
|
4284
|
+
(h(!0), _(te, null, he(o(f).envs, (W) => (h(), P(G, {
|
4285
4285
|
value: W.value,
|
4286
4286
|
label: `${W.text}(${W.suffix})`,
|
4287
4287
|
key: W.value
|
4288
4288
|
}, {
|
4289
4289
|
default: y(() => [
|
4290
|
-
v("span", ro,
|
4291
|
-
v("span", io, "(" +
|
4290
|
+
v("span", ro, D(W.text), 1),
|
4291
|
+
v("span", io, "(" + D(W.suffix) + ")", 1)
|
4292
4292
|
]),
|
4293
4293
|
_: 2
|
4294
4294
|
}, 1032, ["value", "label"]))), 128))
|
@@ -4304,24 +4304,24 @@ const Xn = /* @__PURE__ */ X({
|
|
4304
4304
|
label: o(u) ? L.$t_enum("Driver", o(d)) : null
|
4305
4305
|
}, {
|
4306
4306
|
default: y(() => [
|
4307
|
-
S(
|
4307
|
+
S(A, {
|
4308
4308
|
clearable: "",
|
4309
4309
|
filterable: "",
|
4310
4310
|
placeholder: `请选择${L.$t_enum("Driver", o(d))}`,
|
4311
4311
|
onChange: o(O),
|
4312
4312
|
modelValue: o(r).name,
|
4313
|
-
"onUpdate:modelValue":
|
4313
|
+
"onUpdate:modelValue": F[3] || (F[3] = (W) => o(r).name = W)
|
4314
4314
|
}, {
|
4315
4315
|
default: y(() => [
|
4316
|
-
(h(!0),
|
4316
|
+
(h(!0), _(te, null, he(o(m), (W) => (h(), P(G, {
|
4317
4317
|
value: W.text,
|
4318
4318
|
label: `${W.text}(${W.suffix})`,
|
4319
4319
|
key: W.value
|
4320
4320
|
}, {
|
4321
4321
|
default: y(() => [
|
4322
4322
|
H(L.$slots, "driver", { option: W }, () => [
|
4323
|
-
v("span", ao,
|
4324
|
-
v("span", uo, "(" +
|
4323
|
+
v("span", ao, D(W.text), 1),
|
4324
|
+
v("span", uo, "(" + D(W.suffix) + ")", 1)
|
4325
4325
|
])
|
4326
4326
|
]),
|
4327
4327
|
_: 2
|
@@ -4329,16 +4329,16 @@ const Xn = /* @__PURE__ */ X({
|
|
4329
4329
|
]),
|
4330
4330
|
_: 3
|
4331
4331
|
}, 8, ["placeholder", "onChange", "modelValue"]),
|
4332
|
-
o(p) ?
|
4332
|
+
o(p) ? N("", !0) : (h(), P(Dl, {
|
4333
4333
|
key: 0,
|
4334
4334
|
module: "ctl_driver",
|
4335
4335
|
onSucceed: o(C),
|
4336
4336
|
modelValue: o(r).id,
|
4337
|
-
"onUpdate:modelValue":
|
4337
|
+
"onUpdate:modelValue": F[4] || (F[4] = (W) => o(r).id = W)
|
4338
4338
|
}, null, 8, ["onSucceed", "modelValue"]))
|
4339
4339
|
]),
|
4340
4340
|
_: 3
|
4341
|
-
}, 8, ["label"])) :
|
4341
|
+
}, 8, ["label"])) : N("", !0),
|
4342
4342
|
H(L.$slots, "default")
|
4343
4343
|
]),
|
4344
4344
|
_: 3
|
@@ -4347,7 +4347,7 @@ const Xn = /* @__PURE__ */ X({
|
|
4347
4347
|
};
|
4348
4348
|
}
|
4349
4349
|
});
|
4350
|
-
let mo = Je(() => import("./Column-
|
4350
|
+
let mo = Je(() => import("./Column-D9Kx2OQ2.js")), po = Je(() => import("./Custom-a5LNK1fz.js")), ho = Je(() => import("./Delete-CJYIlwyA.js")), fo = Je(() => import("./Index-ujUgBmOq.js")), go = Je(() => import("./Paging-D1DvQER2.js")), St = Je(() => import("./Single-BETJuNyR.js")), vo = Je(() => import("./List-DmUA_Qjf.js"));
|
4351
4351
|
const yo = {
|
4352
4352
|
components: {
|
4353
4353
|
CopyPage: St,
|
@@ -4369,111 +4369,111 @@ const yo = {
|
|
4369
4369
|
},
|
4370
4370
|
emits: ["navigate", "loaded", "succeed", "close"],
|
4371
4371
|
setup(i, { expose: e, emit: t }) {
|
4372
|
-
let l = t, s = i, { url: n } =
|
4372
|
+
let l = t, s = i, { url: n } = ue(s), r = x(), a = x(), u = x(), c = Lt(), p = Fe(), d = x(!0), m = x(!0), f = x({ title: null, content: null }), w = x({ type: null, view: null }), V = new Pt(), T = "index-" + Pe.getUniqueId(), M, O = () => {
|
4373
4373
|
var q;
|
4374
4374
|
if (m.value) {
|
4375
|
-
|
4375
|
+
j(n.value, !0);
|
4376
4376
|
return;
|
4377
4377
|
}
|
4378
|
-
let
|
4379
|
-
if (!
|
4378
|
+
let A = (q = a.value) == null ? void 0 : q.refresh;
|
4379
|
+
if (!A) {
|
4380
4380
|
Se.warning("请在子组件实现并暴露refresh方法来实现刷新功能");
|
4381
4381
|
return;
|
4382
4382
|
}
|
4383
|
-
|
4384
|
-
}, I = (
|
4383
|
+
A();
|
4384
|
+
}, I = (A) => {
|
4385
4385
|
var b;
|
4386
4386
|
let q = (b = a.value) == null ? void 0 : b.beforeClose;
|
4387
|
-
q && q(
|
4388
|
-
}, C = (
|
4389
|
-
|
4390
|
-
},
|
4391
|
-
d.value = !0, m.value = q,
|
4392
|
-
let W = Z.getUrl(
|
4393
|
-
|
4387
|
+
q && q(A);
|
4388
|
+
}, C = (A, q) => {
|
4389
|
+
M = q, l("navigate", A);
|
4390
|
+
}, j = (A, q = !1, b = null) => {
|
4391
|
+
d.value = !0, m.value = q, f.value.title = null, f.value.content = null;
|
4392
|
+
let W = Z.getUrl(A, { schema: "" });
|
4393
|
+
ve.get(W).then((de) => {
|
4394
4394
|
u.value = de, m.value = !1, l("loaded", de.data), b && b(de);
|
4395
4395
|
}).catch((de) => {
|
4396
|
-
throw
|
4396
|
+
throw f.value.title = de.message, f.value.content = de.stack, b && b(), de;
|
4397
4397
|
}).finally(() => {
|
4398
4398
|
d.value = !1;
|
4399
4399
|
});
|
4400
|
-
}, k = (
|
4401
|
-
p.toBackUrl(), l("succeed",
|
4400
|
+
}, k = (A, q) => {
|
4401
|
+
p.toBackUrl(), l("succeed", A, q);
|
4402
4402
|
}, Q = () => {
|
4403
4403
|
p.toBackUrl(), l("close");
|
4404
|
-
}, J = (
|
4405
|
-
d.value = !1, l("loaded",
|
4406
|
-
}, ne = (
|
4404
|
+
}, J = (A) => {
|
4405
|
+
d.value = !1, l("loaded", A);
|
4406
|
+
}, ne = (A, q) => {
|
4407
4407
|
if (!a.value || !a.value.keyboard)
|
4408
4408
|
return !1;
|
4409
|
-
a.value.keyboard(
|
4410
|
-
}, L = (
|
4411
|
-
|
4412
|
-
},
|
4409
|
+
a.value.keyboard(A, q);
|
4410
|
+
}, L = (A) => {
|
4411
|
+
A[0].contentRect.width <= 650 ? r.value.classList.add("page--small") : r.value.classList.remove("page--small"), a.value && a.value.resize && a.value.resize(A[0]);
|
4412
|
+
}, F = (A) => {
|
4413
4413
|
var de;
|
4414
|
-
let q = c.getComponent(
|
4414
|
+
let q = c.getComponent(A, "view");
|
4415
4415
|
if (q) {
|
4416
|
-
|
4416
|
+
w.value.type = "custom", w.value.view = q, m.value = !1;
|
4417
4417
|
return;
|
4418
4418
|
}
|
4419
|
-
let b = ["insert", "copy", "update", "detail", "paging", "list", "delete"], W = (de = Z.getLastSegment(
|
4419
|
+
let b = ["insert", "copy", "update", "detail", "paging", "list", "delete"], W = (de = Z.getLastSegment(A)) == null ? void 0 : de.toLowerCase();
|
4420
4420
|
if (b.includes(W)) {
|
4421
|
-
if (
|
4422
|
-
|
4421
|
+
if (w.value.type = W, !a.value) {
|
4422
|
+
j(A, !0);
|
4423
4423
|
return;
|
4424
4424
|
}
|
4425
|
-
if (!a.value.shouldLoad || !a.value.shouldLoad(
|
4425
|
+
if (!a.value.shouldLoad || !a.value.shouldLoad(A))
|
4426
4426
|
return;
|
4427
|
-
let _e = a.value.shouldSpin && a.value.shouldSpin(
|
4428
|
-
|
4427
|
+
let _e = a.value.shouldSpin && a.value.shouldSpin(A);
|
4428
|
+
j(A, _e, M), M = null;
|
4429
4429
|
return;
|
4430
4430
|
}
|
4431
|
-
|
4431
|
+
w.value.type = "column", w.value.view = c.getComponent(A, "partial"), d.value = !1, m.value = !1;
|
4432
4432
|
};
|
4433
|
-
|
4434
|
-
c.addPage(T, {}),
|
4433
|
+
F(n.value), be(() => {
|
4434
|
+
c.addPage(T, {}), V.resize(r.value, L);
|
4435
4435
|
}), sl(() => {
|
4436
|
-
c.removePage(T),
|
4436
|
+
c.removePage(T), V.unresize(r.value);
|
4437
4437
|
});
|
4438
|
-
let G =
|
4439
|
-
let
|
4440
|
-
return
|
4438
|
+
let G = fe(() => {
|
4439
|
+
let A = Z.getRoute(n.value);
|
4440
|
+
return A.fullPath = n.value, A;
|
4441
4441
|
});
|
4442
|
-
return
|
4443
|
-
|
4444
|
-
}), e({ refresh: O, beforeClose: I, keyboard: ne }), (
|
4445
|
-
const b =
|
4446
|
-
return h(),
|
4442
|
+
return ge(() => n.value, (A, q) => {
|
4443
|
+
F(A);
|
4444
|
+
}), e({ refresh: O, beforeClose: I, keyboard: ne }), (A, q) => {
|
4445
|
+
const b = z("custom-page"), W = z("column-page");
|
4446
|
+
return h(), _("div", {
|
4447
4447
|
ref_key: "rootRef",
|
4448
4448
|
ref: r,
|
4449
4449
|
class: "ho-page"
|
4450
4450
|
}, [
|
4451
4451
|
S(o(Is), {
|
4452
4452
|
modelValue: o(d),
|
4453
|
-
"onUpdate:modelValue": q[0] || (q[0] = (de) =>
|
4453
|
+
"onUpdate:modelValue": q[0] || (q[0] = (de) => $e(d) ? d.value = de : d = de)
|
4454
4454
|
}, null, 8, ["modelValue"]),
|
4455
4455
|
o(m) ? (h(), P(o(zs), {
|
4456
4456
|
key: 0,
|
4457
|
-
title: o(
|
4458
|
-
content: o(
|
4457
|
+
title: o(f).title,
|
4458
|
+
content: o(f).content,
|
4459
4459
|
onRetry: o(O)
|
4460
|
-
}, null, 8, ["title", "content", "onRetry"])) : o(
|
4460
|
+
}, null, 8, ["title", "content", "onRetry"])) : o(w).type == "custom" ? (h(), P(b, {
|
4461
4461
|
key: 1,
|
4462
4462
|
ref_key: "pageRef",
|
4463
4463
|
ref: a,
|
4464
4464
|
url: o(n),
|
4465
|
-
view: o(
|
4465
|
+
view: o(w).view,
|
4466
4466
|
onLoaded: o(J),
|
4467
4467
|
onNavigate: o(C)
|
4468
|
-
}, null, 8, ["url", "view", "onLoaded", "onNavigate"])) : o(
|
4468
|
+
}, null, 8, ["url", "view", "onLoaded", "onNavigate"])) : o(w).type == "column" ? (h(), P(W, {
|
4469
4469
|
key: 2,
|
4470
4470
|
ref_key: "pageRef",
|
4471
4471
|
ref: a,
|
4472
4472
|
url: o(n),
|
4473
|
-
view: o(
|
4473
|
+
view: o(w).view,
|
4474
4474
|
onLoaded: o(J),
|
4475
4475
|
onNavigate: o(C)
|
4476
|
-
}, null, 8, ["url", "view", "onLoaded", "onNavigate"])) : (h(), P(nl(`${o(
|
4476
|
+
}, null, 8, ["url", "view", "onLoaded", "onNavigate"])) : (h(), P(nl(`${o(w).type}-page`), {
|
4477
4477
|
key: 3,
|
4478
4478
|
ref_key: "pageRef",
|
4479
4479
|
ref: a,
|
@@ -4481,7 +4481,7 @@ const yo = {
|
|
4481
4481
|
base: o(u),
|
4482
4482
|
route: o(G),
|
4483
4483
|
onNavigate: o(C),
|
4484
|
-
onLoad: o(
|
4484
|
+
onLoad: o(j),
|
4485
4485
|
onSucceed: o(k),
|
4486
4486
|
onClose: o(Q)
|
4487
4487
|
}, null, 40, ["url", "base", "route", "onNavigate", "onLoad", "onSucceed", "onClose"]))
|
@@ -4490,8 +4490,8 @@ const yo = {
|
|
4490
4490
|
}
|
4491
4491
|
});
|
4492
4492
|
var bo = /* @__PURE__ */ ((i) => (i[i.ctrlS = 0] = "ctrlS", i[i.ctrlEnter = 1] = "ctrlEnter", i))(bo || {});
|
4493
|
-
const
|
4494
|
-
__name: "
|
4493
|
+
const wi = /* @__PURE__ */ X({
|
4494
|
+
__name: "HaDrawer",
|
4495
4495
|
props: /* @__PURE__ */ ot({
|
4496
4496
|
to: {},
|
4497
4497
|
url: {}
|
@@ -4501,24 +4501,24 @@ const _i = /* @__PURE__ */ X({
|
|
4501
4501
|
}),
|
4502
4502
|
emits: /* @__PURE__ */ ot(["succeed", "navigate", "update:modelValue"], ["update:modelValue"]),
|
4503
4503
|
setup(i, { emit: e }) {
|
4504
|
-
let t = e, l = i, { to: s, url: n } =
|
4504
|
+
let t = e, l = i, { to: s, url: n } = ue(l), r = el(i, "modelValue"), a = x({ type: null, name: null }), u = x(800), c = (m) => {
|
4505
4505
|
a.value.type = m.module.type, a.value.name = m.module.name;
|
4506
4506
|
}, p = (m) => {
|
4507
4507
|
t("navigate", m);
|
4508
4508
|
}, d = (m) => {
|
4509
4509
|
t("update:modelValue", !1), t("succeed", m, a.value.name);
|
4510
4510
|
};
|
4511
|
-
return (m,
|
4512
|
-
const
|
4511
|
+
return (m, f) => {
|
4512
|
+
const w = z("el-drawer");
|
4513
4513
|
return h(), P(ll, {
|
4514
4514
|
to: o(s),
|
4515
4515
|
disabled: !o(s)
|
4516
4516
|
}, [
|
4517
|
-
S(
|
4517
|
+
S(w, {
|
4518
4518
|
title: m.$t_module(o(a).type, o(a).name),
|
4519
4519
|
size: o(Be).getDrawerWidth(o(u)),
|
4520
4520
|
modelValue: o(r),
|
4521
|
-
"onUpdate:modelValue":
|
4521
|
+
"onUpdate:modelValue": f[0] || (f[0] = (V) => $e(r) ? r.value = V : r = V)
|
4522
4522
|
}, {
|
4523
4523
|
default: y(() => [
|
4524
4524
|
o(n) ? (h(), P(o(at), {
|
@@ -4529,7 +4529,7 @@ const _i = /* @__PURE__ */ X({
|
|
4529
4529
|
onNavigate: o(p),
|
4530
4530
|
onSucceed: o(d),
|
4531
4531
|
onClose: o(d)
|
4532
|
-
}, null, 8, ["url", "onLoaded", "onNavigate", "onSucceed", "onClose"])) :
|
4532
|
+
}, null, 8, ["url", "onLoaded", "onNavigate", "onSucceed", "onClose"])) : N("", !0)
|
4533
4533
|
]),
|
4534
4534
|
_: 1
|
4535
4535
|
}, 8, ["title", "size", "modelValue"])
|
@@ -4540,12 +4540,12 @@ const _i = /* @__PURE__ */ X({
|
|
4540
4540
|
key: 0,
|
4541
4541
|
class: "desktop-feedback"
|
4542
4542
|
}, wo = /* @__PURE__ */ v("i", { class: "fa fa-plus" }, null, -1), ko = /* @__PURE__ */ v("i", { class: "fa fa-list" }, null, -1), $o = /* @__PURE__ */ X({
|
4543
|
-
__name: "
|
4543
|
+
__name: "HaFeedback",
|
4544
4544
|
props: {
|
4545
4545
|
bottom: Number
|
4546
4546
|
},
|
4547
4547
|
setup(i, { expose: e }) {
|
4548
|
-
let t = x({ visible: !1, current: "add", type: null, name: null, url: null }), l = x(), { $t_module: s } =
|
4548
|
+
let t = x({ visible: !1, current: "add", type: null, name: null, url: null }), l = x(), { $t_module: s } = je(), n = i, { bottom: r } = ue(n), a = (d) => {
|
4549
4549
|
t.value.url = d;
|
4550
4550
|
}, u = () => {
|
4551
4551
|
t.value.visible = !1;
|
@@ -4554,7 +4554,7 @@ const _i = /* @__PURE__ */ X({
|
|
4554
4554
|
};
|
4555
4555
|
return e({ show: (d, m) => {
|
4556
4556
|
t.value.current = d, t.value.url = m, t.value.visible = !0;
|
4557
|
-
} }), (d, m) => o(t).visible ? (h(),
|
4557
|
+
} }), (d, m) => o(t).visible ? (h(), _("div", _o, [
|
4558
4558
|
S(o(rl), {
|
4559
4559
|
ref_key: "feedbackRef",
|
4560
4560
|
ref: l,
|
@@ -4563,31 +4563,31 @@ const _i = /* @__PURE__ */ X({
|
|
4563
4563
|
bottom: o(r),
|
4564
4564
|
onClose: o(u),
|
4565
4565
|
modelValue: o(t).visible,
|
4566
|
-
"onUpdate:modelValue": m[3] || (m[3] = (
|
4566
|
+
"onUpdate:modelValue": m[3] || (m[3] = (f) => o(t).visible = f)
|
4567
4567
|
}, {
|
4568
4568
|
side: y(() => [
|
4569
4569
|
S(o(Nl), {
|
4570
4570
|
modelValue: o(t).current,
|
4571
|
-
"onUpdate:modelValue": m[2] || (m[2] = (
|
4571
|
+
"onUpdate:modelValue": m[2] || (m[2] = (f) => o(t).current = f)
|
4572
4572
|
}, {
|
4573
4573
|
default: y(() => [
|
4574
4574
|
S(o(Ot), {
|
4575
4575
|
name: "add",
|
4576
|
-
onClick: m[0] || (m[0] = (
|
4576
|
+
onClick: m[0] || (m[0] = (f) => o(a)("/ctl_feedback/insert"))
|
4577
4577
|
}, {
|
4578
4578
|
default: y(() => [
|
4579
4579
|
wo,
|
4580
|
-
Y(" " +
|
4580
|
+
Y(" " + D(d.$t("feedback.create")), 1)
|
4581
4581
|
]),
|
4582
4582
|
_: 1
|
4583
4583
|
}),
|
4584
4584
|
S(o(Ot), {
|
4585
4585
|
name: "my",
|
4586
|
-
onClick: m[1] || (m[1] = (
|
4586
|
+
onClick: m[1] || (m[1] = (f) => o(a)("/ctl_feedback/paging"))
|
4587
4587
|
}, {
|
4588
4588
|
default: y(() => [
|
4589
4589
|
ko,
|
4590
|
-
Y(" " +
|
4590
|
+
Y(" " + D(d.$t("feedback.my_feedback")), 1)
|
4591
4591
|
]),
|
4592
4592
|
_: 1
|
4593
4593
|
})
|
@@ -4601,53 +4601,94 @@ const _i = /* @__PURE__ */ X({
|
|
4601
4601
|
url: o(t).url,
|
4602
4602
|
onLoaded: o(c),
|
4603
4603
|
onClose: o(u)
|
4604
|
-
}, null, 8, ["url", "onLoaded", "onClose"])) :
|
4604
|
+
}, null, 8, ["url", "onLoaded", "onClose"])) : N("", !0)
|
4605
4605
|
]),
|
4606
4606
|
_: 1
|
4607
4607
|
}, 8, ["title", "bottom", "onClose", "modelValue"])
|
4608
|
-
])) :
|
4608
|
+
])) : N("", !0);
|
4609
|
+
}
|
4610
|
+
}), Co = {
|
4611
|
+
key: 0,
|
4612
|
+
class: "ho-layout-switch"
|
4613
|
+
}, ki = /* @__PURE__ */ X({
|
4614
|
+
__name: "HaSwitch",
|
4615
|
+
props: {
|
4616
|
+
table: { type: Object, required: !0 },
|
4617
|
+
layout: { type: Object, required: !0 }
|
4618
|
+
},
|
4619
|
+
emits: ["layout-change"],
|
4620
|
+
setup(i, { emit: e }) {
|
4621
|
+
let t = e, l = i, { table: s, layout: n } = ue(l), r = x(), a = (c) => {
|
4622
|
+
t("layout-change", c);
|
4623
|
+
};
|
4624
|
+
return (() => {
|
4625
|
+
r.value = n.value.type;
|
4626
|
+
})(), (c, p) => {
|
4627
|
+
const d = z("el-radio-button"), m = z("el-radio-group");
|
4628
|
+
return o(s).layouts.length > 1 ? (h(), _("div", Co, [
|
4629
|
+
S(m, {
|
4630
|
+
size: "small",
|
4631
|
+
onChange: o(a),
|
4632
|
+
modelValue: o(r),
|
4633
|
+
"onUpdate:modelValue": p[0] || (p[0] = (f) => $e(r) ? r.value = f : r = f)
|
4634
|
+
}, {
|
4635
|
+
default: y(() => [
|
4636
|
+
(h(!0), _(te, null, he(o(s).layouts, ({ type: f }) => (h(), P(d, {
|
4637
|
+
type: "primary",
|
4638
|
+
value: f
|
4639
|
+
}, {
|
4640
|
+
default: y(() => [
|
4641
|
+
Y(D(c.t(`sys.table.layout.${f}`)), 1)
|
4642
|
+
]),
|
4643
|
+
_: 2
|
4644
|
+
}, 1032, ["value"]))), 256))
|
4645
|
+
]),
|
4646
|
+
_: 1
|
4647
|
+
}, 8, ["onChange", "modelValue"])
|
4648
|
+
])) : N("", !0);
|
4649
|
+
};
|
4609
4650
|
}
|
4610
|
-
}),
|
4611
|
-
__name: "
|
4651
|
+
}), xo = { class: "welcome-tool" }, ul = /* @__PURE__ */ X({
|
4652
|
+
__name: "HaWelcome",
|
4612
4653
|
props: {
|
4613
4654
|
bottom: Number
|
4614
4655
|
},
|
4615
4656
|
emits: [],
|
4616
4657
|
setup(i, { emit: e }) {
|
4617
|
-
let t = x({ ref: null, never: !1 }), l = i, { bottom: s } =
|
4618
|
-
let
|
4619
|
-
c.value = u[
|
4658
|
+
let t = x({ ref: null, never: !1 }), l = i, { bottom: s } = ue(l), n = x({ width: 600, height: 400 }), r = Ee(), a = je(), u = [], c = x(), p = x(!0), d = () => {
|
4659
|
+
let f = Rt.random(0, u.length);
|
4660
|
+
c.value = u[f], De.remove(u, f);
|
4620
4661
|
}, m = () => {
|
4621
4662
|
p.value = !1, t.value.never && ee.setObject("welcomed", !0);
|
4622
4663
|
};
|
4623
4664
|
return be(() => {
|
4624
|
-
let
|
4625
|
-
|
4626
|
-
}), (
|
4627
|
-
const
|
4665
|
+
let f = a[r.language].tips;
|
4666
|
+
f && (u = Object.keys(f)), p.value = !ee.getObject("welcomed"), d();
|
4667
|
+
}), (f, w) => {
|
4668
|
+
const V = z("el-alert"), T = z("el-checkbox"), M = z("el-button");
|
4628
4669
|
return o(p) ? (h(), P(o(rl), {
|
4629
4670
|
key: 0,
|
4630
4671
|
ref: (O) => o(t).ref = O,
|
4631
4672
|
id: "welcome",
|
4632
4673
|
class: "ho-welcome",
|
4633
|
-
title:
|
4674
|
+
title: f.t("sys.tips_title"),
|
4634
4675
|
options: o(n),
|
4635
4676
|
bottom: o(s),
|
4636
4677
|
modelValue: o(p),
|
4637
|
-
"onUpdate:modelValue":
|
4678
|
+
"onUpdate:modelValue": w[1] || (w[1] = (O) => $e(p) ? p.value = O : p = O)
|
4638
4679
|
}, {
|
4639
4680
|
footer: y(() => [
|
4640
4681
|
S(T, {
|
4641
4682
|
modelValue: o(t).never,
|
4642
|
-
"onUpdate:modelValue":
|
4683
|
+
"onUpdate:modelValue": w[0] || (w[0] = (O) => o(t).never = O)
|
4643
4684
|
}, {
|
4644
4685
|
default: y(() => [
|
4645
4686
|
Y("不再提示")
|
4646
4687
|
]),
|
4647
4688
|
_: 1
|
4648
4689
|
}, 8, ["modelValue"]),
|
4649
|
-
v("div",
|
4650
|
-
o(u).length ? (h(), P(
|
4690
|
+
v("div", xo, [
|
4691
|
+
o(u).length ? (h(), P(M, {
|
4651
4692
|
key: 0,
|
4652
4693
|
type: "primary",
|
4653
4694
|
plain: "",
|
@@ -4657,8 +4698,8 @@ const _i = /* @__PURE__ */ X({
|
|
4657
4698
|
Y("下一条")
|
4658
4699
|
]),
|
4659
4700
|
_: 1
|
4660
|
-
}, 8, ["onClick"])) :
|
4661
|
-
S(
|
4701
|
+
}, 8, ["onClick"])) : N("", !0),
|
4702
|
+
S(M, { onClick: o(m) }, {
|
4662
4703
|
default: y(() => [
|
4663
4704
|
Y("关闭")
|
4664
4705
|
]),
|
@@ -4667,27 +4708,27 @@ const _i = /* @__PURE__ */ X({
|
|
4667
4708
|
])
|
4668
4709
|
]),
|
4669
4710
|
default: y(() => [
|
4670
|
-
S(
|
4671
|
-
title:
|
4711
|
+
S(V, {
|
4712
|
+
title: f.t("sys.welcome"),
|
4672
4713
|
type: "info",
|
4673
4714
|
style: { "margin-bottom": "10px" },
|
4674
4715
|
"show-icon": ""
|
4675
4716
|
}, null, 8, ["title"]),
|
4676
|
-
v("div", null,
|
4717
|
+
v("div", null, D(f.t(`tips.${o(c)}`)), 1)
|
4677
4718
|
]),
|
4678
4719
|
_: 1
|
4679
|
-
}, 8, ["title", "options", "bottom", "modelValue"])) :
|
4720
|
+
}, 8, ["title", "options", "bottom", "modelValue"])) : N("", !0);
|
4680
4721
|
};
|
4681
4722
|
}
|
4682
|
-
}),
|
4723
|
+
}), So = /* @__PURE__ */ v("i", { class: "far fa-bell" }, null, -1), Vo = {
|
4683
4724
|
key: 0,
|
4684
4725
|
class: "message-number"
|
4685
|
-
}, Uo = { class: "content" },
|
4726
|
+
}, Uo = { class: "content" }, Eo = { class: "title" }, Ro = {
|
4686
4727
|
key: 0,
|
4687
4728
|
class: "stack"
|
4688
|
-
},
|
4689
|
-
|
4690
|
-
],
|
4729
|
+
}, Io = { class: "time" }, Oo = ["onClick"], Lo = /* @__PURE__ */ v("i", { class: "el-icon-close" }, null, -1), Do = [
|
4730
|
+
Lo
|
4731
|
+
], jo = {
|
4691
4732
|
key: 1,
|
4692
4733
|
class: "empty"
|
4693
4734
|
}, Mo = /* @__PURE__ */ X({
|
@@ -4695,64 +4736,64 @@ const _i = /* @__PURE__ */ X({
|
|
4695
4736
|
setup(i) {
|
4696
4737
|
let e = Bt(), t = x(!1), l = x("all"), s = x(1), n = x(10), r = () => {
|
4697
4738
|
s.value = 1;
|
4698
|
-
}, a = (
|
4699
|
-
s.value =
|
4700
|
-
}, u = (
|
4701
|
-
t.value =
|
4702
|
-
}, c = async (
|
4703
|
-
e.remove(
|
4739
|
+
}, a = (f) => {
|
4740
|
+
s.value = f;
|
4741
|
+
}, u = (f) => {
|
4742
|
+
t.value = f;
|
4743
|
+
}, c = async (f) => {
|
4744
|
+
e.remove(f);
|
4704
4745
|
};
|
4705
|
-
|
4706
|
-
let p =
|
4707
|
-
let
|
4708
|
-
return m.value.filter((T,
|
4709
|
-
}), d =
|
4710
|
-
return (
|
4711
|
-
const
|
4712
|
-
return h(),
|
4746
|
+
fe(() => Math.ceil(m.value.length / n.value));
|
4747
|
+
let p = fe(() => {
|
4748
|
+
let f = (s.value - 1) * n.value, w = s.value * n.value;
|
4749
|
+
return m.value.filter((T, M) => M >= f && M < w);
|
4750
|
+
}), d = fe(() => e.logs.filter((f) => f.code != "Ok")), m = fe(() => l.value == "all" ? e.logs : l.value == "success" ? e.logs.filter((f) => f.code == "Ok") : e.logs.filter((f) => f.code != "Ok"));
|
4751
|
+
return (f, w) => {
|
4752
|
+
const V = z("el-radio"), T = z("el-radio-group"), M = z("el-form-item"), O = z("el-form"), I = z("el-scrollbar"), C = z("el-pagination"), j = z("el-drawer");
|
4753
|
+
return h(), _(te, null, [
|
4713
4754
|
v("div", {
|
4714
4755
|
class: "log-message",
|
4715
|
-
onClick:
|
4756
|
+
onClick: w[0] || (w[0] = (k) => $e(t) ? t.value = !0 : t = !0)
|
4716
4757
|
}, [
|
4717
|
-
|
4718
|
-
o(d).length > 0 ? (h(),
|
4758
|
+
So,
|
4759
|
+
o(d).length > 0 ? (h(), _("div", Vo, D(o(d).length), 1)) : N("", !0)
|
4719
4760
|
]),
|
4720
|
-
S(
|
4761
|
+
S(j, {
|
4721
4762
|
class: "logs",
|
4722
4763
|
size: "40%",
|
4723
4764
|
"append-to-body": "",
|
4724
|
-
title:
|
4725
|
-
onShow:
|
4726
|
-
onHide:
|
4765
|
+
title: f.t("common.log"),
|
4766
|
+
onShow: w[2] || (w[2] = (k) => o(u)(!0)),
|
4767
|
+
onHide: w[3] || (w[3] = (k) => o(u)(!1)),
|
4727
4768
|
modelValue: o(t),
|
4728
|
-
"onUpdate:modelValue":
|
4769
|
+
"onUpdate:modelValue": w[4] || (w[4] = (k) => $e(t) ? t.value = k : t = k)
|
4729
4770
|
}, {
|
4730
4771
|
default: y(() => [
|
4731
4772
|
S(O, null, {
|
4732
4773
|
default: y(() => [
|
4733
|
-
S(
|
4774
|
+
S(M, null, {
|
4734
4775
|
default: y(() => [
|
4735
4776
|
S(T, {
|
4736
4777
|
onChange: o(r),
|
4737
4778
|
modelValue: o(l),
|
4738
|
-
"onUpdate:modelValue":
|
4779
|
+
"onUpdate:modelValue": w[1] || (w[1] = (k) => $e(l) ? l.value = k : l = k)
|
4739
4780
|
}, {
|
4740
4781
|
default: y(() => [
|
4741
|
-
S(
|
4782
|
+
S(V, { value: "all" }, {
|
4742
4783
|
default: y(() => [
|
4743
|
-
Y(
|
4784
|
+
Y(D(f.t("common.all")), 1)
|
4744
4785
|
]),
|
4745
4786
|
_: 1
|
4746
4787
|
}),
|
4747
|
-
S(
|
4788
|
+
S(V, { value: "success" }, {
|
4748
4789
|
default: y(() => [
|
4749
|
-
Y(
|
4790
|
+
Y(D(f.t("common.success")), 1)
|
4750
4791
|
]),
|
4751
4792
|
_: 1
|
4752
4793
|
}),
|
4753
|
-
S(
|
4794
|
+
S(V, { value: "error" }, {
|
4754
4795
|
default: y(() => [
|
4755
|
-
Y(
|
4796
|
+
Y(D(f.t("common.error")), 1)
|
4756
4797
|
]),
|
4757
4798
|
_: 1
|
4758
4799
|
})
|
@@ -4770,24 +4811,24 @@ const _i = /* @__PURE__ */ X({
|
|
4770
4811
|
style: { height: "calc(100% - 61px)" }
|
4771
4812
|
}, {
|
4772
4813
|
default: y(() => [
|
4773
|
-
(h(!0),
|
4814
|
+
(h(!0), _(te, null, he(o(p), (k, Q) => (h(), _("div", {
|
4774
4815
|
class: ae(["log", k.code == "Ok" ? "success" : "error"]),
|
4775
4816
|
key: Q
|
4776
4817
|
}, [
|
4777
4818
|
v("div", Uo, [
|
4778
|
-
v("div",
|
4779
|
-
k.code != "Ok" ? (h(),
|
4780
|
-
v("div",
|
4819
|
+
v("div", Eo, D(k.message), 1),
|
4820
|
+
k.code != "Ok" ? (h(), _("div", Ro, D(k.stack), 1)) : N("", !0),
|
4821
|
+
v("div", Io, D(f.t("common.time")) + ":" + D(k.time) + " " + D(f.t("common.elapsed")) + ":" + D(k.elapsed) + "ms", 1)
|
4781
4822
|
]),
|
4782
4823
|
v("div", {
|
4783
4824
|
class: "operation",
|
4784
4825
|
onClick: (J) => o(c)(Q)
|
4785
|
-
},
|
4826
|
+
}, Do, 8, Oo)
|
4786
4827
|
], 2))), 128))
|
4787
4828
|
]),
|
4788
4829
|
_: 1
|
4789
|
-
})) :
|
4790
|
-
o(m).length == 0 ? (h(),
|
4830
|
+
})) : N("", !0),
|
4831
|
+
o(m).length == 0 ? (h(), _("div", jo, D(f.t("common.no_data")), 1)) : N("", !0),
|
4791
4832
|
S(C, {
|
4792
4833
|
small: "",
|
4793
4834
|
layout: "prev, pager, next, total",
|
@@ -4801,11 +4842,11 @@ const _i = /* @__PURE__ */ X({
|
|
4801
4842
|
], 64);
|
4802
4843
|
};
|
4803
4844
|
}
|
4804
|
-
}),
|
4845
|
+
}), To = /* @__PURE__ */ v("div", { class: "footer-left" }, null, -1), Po = { class: "footer-right" }, Bo = /* @__PURE__ */ X({
|
4805
4846
|
__name: "Setting",
|
4806
4847
|
emits: ["close"],
|
4807
4848
|
setup(i, { expose: e, emit: t }) {
|
4808
|
-
let l = Ge(), s =
|
4849
|
+
let l = Ge(), s = je(), n = Ee(), r = We(), a = x(!1), u = x({
|
4809
4850
|
function: "personal",
|
4810
4851
|
layout: n.layout,
|
4811
4852
|
theme: n.theme,
|
@@ -4815,19 +4856,19 @@ const _i = /* @__PURE__ */ X({
|
|
4815
4856
|
}), c = () => {
|
4816
4857
|
a.value = !0;
|
4817
4858
|
}, p = () => {
|
4818
|
-
let m = u.value.background,
|
4819
|
-
|
4820
|
-
document.documentElement.classList.remove(n.layout), document.documentElement.classList.add(
|
4859
|
+
let m = u.value.background, f = u.value.layout;
|
4860
|
+
f != n.layout && n.saveConfig("layout", f).then(() => {
|
4861
|
+
document.documentElement.classList.remove(n.layout), document.documentElement.classList.add(f), n.layout = f, n.setBackground(m), Se.success("布局切换完成");
|
4821
4862
|
});
|
4822
|
-
let
|
4823
|
-
|
4824
|
-
se.removeClass(document.documentElement, n.theme), se.addClass(document.documentElement,
|
4863
|
+
let w = u.value.theme;
|
4864
|
+
w != n.theme && n.saveConfig("theme", w).then(() => {
|
4865
|
+
se.removeClass(document.documentElement, n.theme), se.addClass(document.documentElement, w), n.theme = w, Xe.emit("theme", w), Se.success("主题切换完成");
|
4825
4866
|
}), m != n.background && n.saveConfig("background", m).then(() => {
|
4826
4867
|
n.setBackground(m), Xe.emit("background", m), Se.success("背景切换完成");
|
4827
4868
|
});
|
4828
|
-
let
|
4829
|
-
|
4830
|
-
n.language =
|
4869
|
+
let V = u.value.language;
|
4870
|
+
V != n.language && s.switchI18n(V).then(() => {
|
4871
|
+
n.language = V, n.saveConfig("language", V).then(() => {
|
4831
4872
|
Se.success("语言切换完成");
|
4832
4873
|
});
|
4833
4874
|
});
|
@@ -4838,9 +4879,9 @@ const _i = /* @__PURE__ */ X({
|
|
4838
4879
|
}, d = () => {
|
4839
4880
|
a.value = !1;
|
4840
4881
|
};
|
4841
|
-
return e({ show: c }), (m,
|
4842
|
-
const
|
4843
|
-
return h(), P(
|
4882
|
+
return e({ show: c }), (m, f) => {
|
4883
|
+
const w = z("el-form-item"), V = z("el-form"), T = z("el-tab-pane"), M = z("el-radio-button"), O = z("el-radio-group"), I = z("el-tabs"), C = z("el-button"), j = z("el-dialog");
|
4884
|
+
return h(), P(j, {
|
4844
4885
|
class: "setting",
|
4845
4886
|
width: "750px",
|
4846
4887
|
draggable: "",
|
@@ -4848,23 +4889,23 @@ const _i = /* @__PURE__ */ X({
|
|
4848
4889
|
"destroy-on-close": "",
|
4849
4890
|
title: m.t("common.setting"),
|
4850
4891
|
modelValue: o(a),
|
4851
|
-
"onUpdate:modelValue":
|
4892
|
+
"onUpdate:modelValue": f[6] || (f[6] = (k) => $e(a) ? a.value = k : a = k)
|
4852
4893
|
}, {
|
4853
4894
|
footer: y(() => [
|
4854
|
-
|
4855
|
-
v("div",
|
4895
|
+
To,
|
4896
|
+
v("div", Po, [
|
4856
4897
|
S(C, {
|
4857
4898
|
type: "primary",
|
4858
4899
|
onClick: o(p)
|
4859
4900
|
}, {
|
4860
4901
|
default: y(() => [
|
4861
|
-
Y(
|
4902
|
+
Y(D(m.t("common.confirm")), 1)
|
4862
4903
|
]),
|
4863
4904
|
_: 1
|
4864
4905
|
}, 8, ["onClick"]),
|
4865
4906
|
S(C, { onClick: o(d) }, {
|
4866
4907
|
default: y(() => [
|
4867
|
-
Y(
|
4908
|
+
Y(D(m.t("common.cancel")), 1)
|
4868
4909
|
]),
|
4869
4910
|
_: 1
|
4870
4911
|
}, 8, ["onClick"])
|
@@ -4874,7 +4915,7 @@ const _i = /* @__PURE__ */ X({
|
|
4874
4915
|
S(I, {
|
4875
4916
|
"tab-position": "left",
|
4876
4917
|
modelValue: o(u).function,
|
4877
|
-
"onUpdate:modelValue":
|
4918
|
+
"onUpdate:modelValue": f[5] || (f[5] = (k) => o(u).function = k)
|
4878
4919
|
}, {
|
4879
4920
|
default: y(() => [
|
4880
4921
|
S(T, {
|
@@ -4882,23 +4923,23 @@ const _i = /* @__PURE__ */ X({
|
|
4882
4923
|
label: m.t("common.personal")
|
4883
4924
|
}, {
|
4884
4925
|
default: y(() => [
|
4885
|
-
S(
|
4926
|
+
S(V, { "label-width": 100 }, {
|
4886
4927
|
default: y(() => [
|
4887
|
-
S(
|
4928
|
+
S(w, { label: "用户ID:" }, {
|
4888
4929
|
default: y(() => [
|
4889
|
-
Y(
|
4930
|
+
Y(D(o(r).user.userId), 1)
|
4890
4931
|
]),
|
4891
4932
|
_: 1
|
4892
4933
|
}),
|
4893
|
-
S(
|
4934
|
+
S(w, { label: "姓名:" }, {
|
4894
4935
|
default: y(() => [
|
4895
|
-
Y(
|
4936
|
+
Y(D(o(r).user.truename), 1)
|
4896
4937
|
]),
|
4897
4938
|
_: 1
|
4898
4939
|
}),
|
4899
|
-
S(
|
4940
|
+
S(w, { label: "调试权限:" }, {
|
4900
4941
|
default: y(() => [
|
4901
|
-
Y(
|
4942
|
+
Y(D(o(r).user.debugger), 1)
|
4902
4943
|
]),
|
4903
4944
|
_: 1
|
4904
4945
|
})
|
@@ -4913,23 +4954,23 @@ const _i = /* @__PURE__ */ X({
|
|
4913
4954
|
label: m.t("common.common")
|
4914
4955
|
}, {
|
4915
4956
|
default: y(() => [
|
4916
|
-
S(
|
4957
|
+
S(V, null, {
|
4917
4958
|
default: y(() => [
|
4918
|
-
o(l).layouts.length > 0 ? (h(), P(
|
4959
|
+
o(l).layouts.length > 0 ? (h(), P(w, {
|
4919
4960
|
key: 0,
|
4920
4961
|
label: m.t("common.layout")
|
4921
4962
|
}, {
|
4922
4963
|
default: y(() => [
|
4923
4964
|
S(O, {
|
4924
4965
|
modelValue: o(u).layout,
|
4925
|
-
"onUpdate:modelValue":
|
4966
|
+
"onUpdate:modelValue": f[0] || (f[0] = (k) => o(u).layout = k)
|
4926
4967
|
}, {
|
4927
4968
|
default: y(() => [
|
4928
|
-
(h(!0),
|
4969
|
+
(h(!0), _(te, null, he(o(l).layouts, (k) => (h(), P(M, {
|
4929
4970
|
value: k.value
|
4930
4971
|
}, {
|
4931
4972
|
default: y(() => [
|
4932
|
-
Y(
|
4973
|
+
Y(D(m.$t_enum("Layouts", k.value)), 1)
|
4933
4974
|
]),
|
4934
4975
|
_: 2
|
4935
4976
|
}, 1032, ["value"]))), 256))
|
@@ -4938,22 +4979,22 @@ const _i = /* @__PURE__ */ X({
|
|
4938
4979
|
}, 8, ["modelValue"])
|
4939
4980
|
]),
|
4940
4981
|
_: 1
|
4941
|
-
}, 8, ["label"])) :
|
4942
|
-
o(l).themes.length > 0 ? (h(), P(
|
4982
|
+
}, 8, ["label"])) : N("", !0),
|
4983
|
+
o(l).themes.length > 0 ? (h(), P(w, {
|
4943
4984
|
key: 1,
|
4944
4985
|
label: m.t("common.theme")
|
4945
4986
|
}, {
|
4946
4987
|
default: y(() => [
|
4947
4988
|
S(O, {
|
4948
4989
|
modelValue: o(u).theme,
|
4949
|
-
"onUpdate:modelValue":
|
4990
|
+
"onUpdate:modelValue": f[1] || (f[1] = (k) => o(u).theme = k)
|
4950
4991
|
}, {
|
4951
4992
|
default: y(() => [
|
4952
|
-
(h(!0),
|
4993
|
+
(h(!0), _(te, null, he(o(l).themes, (k) => (h(), P(M, {
|
4953
4994
|
value: k.value
|
4954
4995
|
}, {
|
4955
4996
|
default: y(() => [
|
4956
|
-
Y(
|
4997
|
+
Y(D(m.$t_enum("Themes", k.value)), 1)
|
4957
4998
|
]),
|
4958
4999
|
_: 2
|
4959
5000
|
}, 1032, ["value"]))), 256))
|
@@ -4962,22 +5003,22 @@ const _i = /* @__PURE__ */ X({
|
|
4962
5003
|
}, 8, ["modelValue"])
|
4963
5004
|
]),
|
4964
5005
|
_: 1
|
4965
|
-
}, 8, ["label"])) :
|
4966
|
-
o(l).backgrounds.length > 0 ? (h(), P(
|
5006
|
+
}, 8, ["label"])) : N("", !0),
|
5007
|
+
o(l).backgrounds.length > 0 ? (h(), P(w, {
|
4967
5008
|
key: 2,
|
4968
5009
|
label: m.t("common.background")
|
4969
5010
|
}, {
|
4970
5011
|
default: y(() => [
|
4971
5012
|
S(O, {
|
4972
5013
|
modelValue: o(u).background,
|
4973
|
-
"onUpdate:modelValue":
|
5014
|
+
"onUpdate:modelValue": f[2] || (f[2] = (k) => o(u).background = k)
|
4974
5015
|
}, {
|
4975
5016
|
default: y(() => [
|
4976
|
-
(h(!0),
|
5017
|
+
(h(!0), _(te, null, he(o(l).backgrounds, (k) => (h(), P(M, {
|
4977
5018
|
value: k.value
|
4978
5019
|
}, {
|
4979
5020
|
default: y(() => [
|
4980
|
-
Y(
|
5021
|
+
Y(D(m.$t_enum("Backgrounds", k.value)), 1)
|
4981
5022
|
]),
|
4982
5023
|
_: 2
|
4983
5024
|
}, 1032, ["value"]))), 256))
|
@@ -4986,22 +5027,22 @@ const _i = /* @__PURE__ */ X({
|
|
4986
5027
|
}, 8, ["modelValue"])
|
4987
5028
|
]),
|
4988
5029
|
_: 1
|
4989
|
-
}, 8, ["label"])) :
|
4990
|
-
o(l).locales.length > 0 ? (h(), P(
|
5030
|
+
}, 8, ["label"])) : N("", !0),
|
5031
|
+
o(l).locales.length > 0 ? (h(), P(w, {
|
4991
5032
|
key: 3,
|
4992
5033
|
label: m.t("common.language")
|
4993
5034
|
}, {
|
4994
5035
|
default: y(() => [
|
4995
5036
|
S(O, {
|
4996
5037
|
modelValue: o(u).language,
|
4997
|
-
"onUpdate:modelValue":
|
5038
|
+
"onUpdate:modelValue": f[3] || (f[3] = (k) => o(u).language = k)
|
4998
5039
|
}, {
|
4999
5040
|
default: y(() => [
|
5000
|
-
(h(!0),
|
5041
|
+
(h(!0), _(te, null, he(o(l).locales, (k) => (h(), P(M, {
|
5001
5042
|
value: k.value
|
5002
5043
|
}, {
|
5003
5044
|
default: y(() => [
|
5004
|
-
Y(
|
5045
|
+
Y(D(m.$t_enum("Locales", k.value)), 1)
|
5005
5046
|
]),
|
5006
5047
|
_: 2
|
5007
5048
|
}, 1032, ["value"]))), 256))
|
@@ -5010,22 +5051,22 @@ const _i = /* @__PURE__ */ X({
|
|
5010
5051
|
}, 8, ["modelValue"])
|
5011
5052
|
]),
|
5012
5053
|
_: 1
|
5013
|
-
}, 8, ["label"])) :
|
5014
|
-
o(l).fonts.length > 0 ? (h(), P(
|
5054
|
+
}, 8, ["label"])) : N("", !0),
|
5055
|
+
o(l).fonts.length > 0 ? (h(), P(w, {
|
5015
5056
|
key: 4,
|
5016
5057
|
label: m.t("common.font")
|
5017
5058
|
}, {
|
5018
5059
|
default: y(() => [
|
5019
5060
|
S(O, {
|
5020
5061
|
modelValue: o(u).font,
|
5021
|
-
"onUpdate:modelValue":
|
5062
|
+
"onUpdate:modelValue": f[4] || (f[4] = (k) => o(u).font = k)
|
5022
5063
|
}, {
|
5023
5064
|
default: y(() => [
|
5024
|
-
(h(!0),
|
5065
|
+
(h(!0), _(te, null, he(o(l).fonts, (k) => (h(), P(M, {
|
5025
5066
|
value: k.value
|
5026
5067
|
}, {
|
5027
5068
|
default: y(() => [
|
5028
|
-
Y(
|
5069
|
+
Y(D(m.$t_enum("Fonts", k.value)), 1)
|
5029
5070
|
]),
|
5030
5071
|
_: 2
|
5031
5072
|
}, 1032, ["value"]))), 256))
|
@@ -5034,7 +5075,7 @@ const _i = /* @__PURE__ */ X({
|
|
5034
5075
|
}, 8, ["modelValue"])
|
5035
5076
|
]),
|
5036
5077
|
_: 1
|
5037
|
-
}, 8, ["label"])) :
|
5078
|
+
}, 8, ["label"])) : N("", !0)
|
5038
5079
|
]),
|
5039
5080
|
_: 1
|
5040
5081
|
})
|
@@ -5047,7 +5088,7 @@ const _i = /* @__PURE__ */ X({
|
|
5047
5088
|
class: "setting-about"
|
5048
5089
|
}, {
|
5049
5090
|
default: y(() => [
|
5050
|
-
Y(
|
5091
|
+
Y(D(m.t("sys.description")) + ", " + D(m.$t("sys.version", [o(l).version])), 1)
|
5051
5092
|
]),
|
5052
5093
|
_: 1
|
5053
5094
|
}, 8, ["label"])
|
@@ -5059,11 +5100,11 @@ const _i = /* @__PURE__ */ X({
|
|
5059
5100
|
}, 8, ["title", "modelValue"]);
|
5060
5101
|
};
|
5061
5102
|
}
|
5062
|
-
}),
|
5103
|
+
}), zo = /* @__PURE__ */ X({
|
5063
5104
|
__name: "Debugger",
|
5064
5105
|
setup(i) {
|
5065
5106
|
let e = We(), t = Ge(), l = x({ text: null, conditions: [] }), s = x([]), n = x({ id: "", secret: "" }), r = x({ env: t.env, app: t.app }), a = () => {
|
5066
|
-
|
5107
|
+
ve.post("/dictionary/user", l.value).then(({ data: d }) => {
|
5067
5108
|
s.value = d;
|
5068
5109
|
}).finally(() => {
|
5069
5110
|
});
|
@@ -5073,21 +5114,21 @@ const _i = /* @__PURE__ */ X({
|
|
5073
5114
|
l.value.text = d, a();
|
5074
5115
|
}, p = (d) => {
|
5075
5116
|
let m = e.getSso();
|
5076
|
-
m && (n.value.id = m.userId), Ne.getSso("secret").login(n.value).then((
|
5077
|
-
Se.success(
|
5117
|
+
m && (n.value.id = m.userId), Ne.getSso("secret").login(n.value).then((w) => {
|
5118
|
+
Se.success(w.message);
|
5078
5119
|
});
|
5079
5120
|
};
|
5080
5121
|
return (d, m) => {
|
5081
|
-
const
|
5082
|
-
return h(),
|
5083
|
-
S(co, {
|
5122
|
+
const f = z("el-option"), w = z("el-select");
|
5123
|
+
return h(), _(te, null, [
|
5124
|
+
S(o(co), {
|
5084
5125
|
id: "debugger",
|
5085
5126
|
inline: "",
|
5086
5127
|
readonly: "",
|
5087
5128
|
form: o(r),
|
5088
5129
|
onChange: o(u)
|
5089
5130
|
}, null, 8, ["form", "onChange"]),
|
5090
|
-
o(e).debugger ? (h(), P(
|
5131
|
+
o(e).debugger ? (h(), P(w, {
|
5091
5132
|
key: 0,
|
5092
5133
|
filterable: "",
|
5093
5134
|
remote: "",
|
@@ -5096,32 +5137,32 @@ const _i = /* @__PURE__ */ X({
|
|
5096
5137
|
onFocus: o(a),
|
5097
5138
|
onChange: o(p),
|
5098
5139
|
modelValue: o(n).secret,
|
5099
|
-
"onUpdate:modelValue": m[0] || (m[0] = (
|
5140
|
+
"onUpdate:modelValue": m[0] || (m[0] = (V) => o(n).secret = V),
|
5100
5141
|
style: { width: "150px" }
|
5101
5142
|
}, {
|
5102
5143
|
default: y(() => [
|
5103
|
-
(h(!0),
|
5104
|
-
value:
|
5105
|
-
label: `${
|
5144
|
+
(h(!0), _(te, null, he(o(s), (V) => (h(), P(f, {
|
5145
|
+
value: V.value,
|
5146
|
+
label: `${V.text}(${V.value})`
|
5106
5147
|
}, {
|
5107
5148
|
default: y(() => [
|
5108
|
-
Y(
|
5149
|
+
Y(D(V.text) + "(" + D(V.value) + ") ", 1)
|
5109
5150
|
]),
|
5110
5151
|
_: 2
|
5111
5152
|
}, 1032, ["value", "label"]))), 256))
|
5112
5153
|
]),
|
5113
5154
|
_: 1
|
5114
|
-
}, 8, ["remote-method", "onFocus", "onChange", "modelValue"])) :
|
5155
|
+
}, 8, ["remote-method", "onFocus", "onChange", "modelValue"])) : N("", !0)
|
5115
5156
|
], 64);
|
5116
5157
|
};
|
5117
5158
|
}
|
5118
|
-
}),
|
5159
|
+
}), Ao = { class: "header-right" }, No = { class: "header-notice" }, Fo = { key: 0 }, Wo = {
|
5119
5160
|
key: 0,
|
5120
5161
|
class: "header-socket"
|
5121
|
-
},
|
5162
|
+
}, qo = /* @__PURE__ */ v("i", { class: "fa fa-warning" }, null, -1), Ko = { class: "avatar-wrapper" }, Yo = /* @__PURE__ */ v("i", { class: "fa fa-cog" }, null, -1), Xo = {
|
5122
5163
|
key: 0,
|
5123
5164
|
class: "user-name"
|
5124
|
-
},
|
5165
|
+
}, Qo = /* @__PURE__ */ v("i", { class: "fa fa-chevron-down" }, null, -1), Jo = { class: "header-right-title" }, cl = /* @__PURE__ */ X({
|
5125
5166
|
__name: "HeaderRight",
|
5126
5167
|
setup(i) {
|
5127
5168
|
let e = We(), t = al(), l = Fe(), s = x(), n = x(), r = bt(), a = (d) => {
|
@@ -5130,7 +5171,7 @@ const _i = /* @__PURE__ */ X({
|
|
5130
5171
|
let d = r.path;
|
5131
5172
|
l.to(`/login?return_url=${d}`);
|
5132
5173
|
}, c = () => {
|
5133
|
-
|
5174
|
+
ve.get("/app/cache/clear").then(({ message: d }) => {
|
5134
5175
|
Se.success(d);
|
5135
5176
|
});
|
5136
5177
|
}, p = () => {
|
@@ -5139,56 +5180,56 @@ const _i = /* @__PURE__ */ X({
|
|
5139
5180
|
});
|
5140
5181
|
};
|
5141
5182
|
return (d, m) => {
|
5142
|
-
const
|
5143
|
-
return h(),
|
5144
|
-
v("div",
|
5145
|
-
d.$t_exists("sys.notice") ? (h(),
|
5183
|
+
const f = z("el-dropdown-item"), w = z("el-dropdown-menu"), V = z("el-dropdown");
|
5184
|
+
return h(), _("div", Ao, [
|
5185
|
+
v("div", No, [
|
5186
|
+
d.$t_exists("sys.notice") ? (h(), _("div", Fo, [
|
5146
5187
|
v("div", {
|
5147
5188
|
ref_key: "marqueeRef",
|
5148
5189
|
ref: n,
|
5149
5190
|
class: "header-marquee",
|
5150
5191
|
onMouseover: m[0] || (m[0] = (T) => o(a)("paused")),
|
5151
5192
|
onMouseout: m[1] || (m[1] = (T) => o(a)("running"))
|
5152
|
-
},
|
5153
|
-
])) :
|
5193
|
+
}, D(d.t("sys.notice")), 545)
|
5194
|
+
])) : N("", !0)
|
5154
5195
|
]),
|
5155
|
-
o(t).connected == !1 ? (h(),
|
5156
|
-
|
5196
|
+
o(t).connected == !1 ? (h(), _("div", Wo, [
|
5197
|
+
qo,
|
5157
5198
|
Y(" Socket连接已断开 ")
|
5158
|
-
])) :
|
5159
|
-
S(
|
5199
|
+
])) : N("", !0),
|
5200
|
+
S(zo),
|
5160
5201
|
S(Mo),
|
5161
|
-
S(
|
5202
|
+
S(Bo, {
|
5162
5203
|
ref_key: "settingRef",
|
5163
5204
|
ref: s
|
5164
5205
|
}, null, 512),
|
5165
|
-
o(e).user ? (h(), P(
|
5206
|
+
o(e).user ? (h(), P(V, {
|
5166
5207
|
key: 1,
|
5167
5208
|
class: "avatar-container header-right-item",
|
5168
5209
|
trigger: "click"
|
5169
5210
|
}, {
|
5170
5211
|
dropdown: y(() => [
|
5171
|
-
S(
|
5212
|
+
S(w, {
|
5172
5213
|
class: ae({ "avatar-dropdown": !0 })
|
5173
5214
|
}, {
|
5174
5215
|
default: y(() => [
|
5175
|
-
S(
|
5216
|
+
S(f, {
|
5176
5217
|
onClick: m[2] || (m[2] = (T) => o(s).show())
|
5177
5218
|
}, {
|
5178
5219
|
default: y(() => [
|
5179
|
-
Y(
|
5220
|
+
Y(D(d.$t("common.setting")), 1)
|
5180
5221
|
]),
|
5181
5222
|
_: 1
|
5182
5223
|
}),
|
5183
|
-
S(
|
5224
|
+
S(f, { onClick: o(c) }, {
|
5184
5225
|
default: y(() => [
|
5185
|
-
Y(
|
5226
|
+
Y(D(d.$t("setting.clear_cache")), 1)
|
5186
5227
|
]),
|
5187
5228
|
_: 1
|
5188
5229
|
}, 8, ["onClick"]),
|
5189
|
-
S(
|
5230
|
+
S(f, { onClick: o(p) }, {
|
5190
5231
|
default: y(() => [
|
5191
|
-
Y(
|
5232
|
+
Y(D(d.$t("common.logout")), 1)
|
5192
5233
|
]),
|
5193
5234
|
_: 1
|
5194
5235
|
}, 8, ["onClick"])
|
@@ -5197,135 +5238,135 @@ const _i = /* @__PURE__ */ X({
|
|
5197
5238
|
})
|
5198
5239
|
]),
|
5199
5240
|
default: y(() => [
|
5200
|
-
v("div",
|
5201
|
-
|
5202
|
-
o(e).user ? (h(),
|
5203
|
-
|
5241
|
+
v("div", Ko, [
|
5242
|
+
Yo,
|
5243
|
+
o(e).user ? (h(), _("div", Xo, D(o(e).user.truename), 1)) : N("", !0),
|
5244
|
+
Qo
|
5204
5245
|
])
|
5205
5246
|
]),
|
5206
5247
|
_: 1
|
5207
|
-
})) : (h(),
|
5248
|
+
})) : (h(), _("div", {
|
5208
5249
|
key: 2,
|
5209
5250
|
class: "header-right-item",
|
5210
5251
|
onClick: m[3] || (m[3] = //@ts-ignore
|
5211
5252
|
(...T) => o(u) && o(u)(...T))
|
5212
5253
|
}, [
|
5213
|
-
v("div",
|
5254
|
+
v("div", Jo, D(d.$t("common.login")), 1)
|
5214
5255
|
]))
|
5215
5256
|
]);
|
5216
5257
|
};
|
5217
5258
|
}
|
5218
|
-
}),
|
5259
|
+
}), Go = ["href"], Zo = { class: "side-logo" }, Ho = { class: "side-title" }, dl = /* @__PURE__ */ X({
|
5219
5260
|
__name: "Logo",
|
5220
5261
|
emits: ["click"],
|
5221
5262
|
setup(i, { emit: e }) {
|
5222
|
-
let t = e, l = Ge(), s =
|
5263
|
+
let t = e, l = Ge(), s = je(), n = Fe(), r = (a) => {
|
5223
5264
|
t("click", a), n.to(a, !1);
|
5224
5265
|
};
|
5225
5266
|
return (a, u) => {
|
5226
5267
|
var c;
|
5227
|
-
return h(),
|
5268
|
+
return h(), _("a", {
|
5228
5269
|
class: "logo",
|
5229
5270
|
href: o(l).home,
|
5230
5271
|
onClick: u[0] || (u[0] = st((p) => o(r)(o(l).home), ["prevent"]))
|
5231
5272
|
}, [
|
5232
|
-
v("div",
|
5233
|
-
v("div",
|
5234
|
-
(h(!0),
|
5235
|
-
style:
|
5236
|
-
},
|
5273
|
+
v("div", Zo, D((c = o(s).$t_sys("title")) == null ? void 0 : c.substring(0, 1)), 1),
|
5274
|
+
v("div", Ho, [
|
5275
|
+
(h(!0), _(te, null, he(o(s).$t_sys("title"), (p, d) => (h(), _("div", {
|
5276
|
+
style: xe({ animationDelay: d * 0.1 + "s" })
|
5277
|
+
}, D(p), 5))), 256))
|
5237
5278
|
])
|
5238
|
-
], 8,
|
5279
|
+
], 8, Go);
|
5239
5280
|
};
|
5240
5281
|
}
|
5241
|
-
}),
|
5282
|
+
}), er = { class: "desktop-tools nav-bar" }, tr = /* @__PURE__ */ v("div", { class: "header-middle" }, null, -1), lr = {
|
5242
5283
|
key: 0,
|
5243
5284
|
class: "desktop-main"
|
5244
|
-
},
|
5285
|
+
}, sr = {
|
5245
5286
|
key: 0,
|
5246
5287
|
class: "desktop-icon"
|
5247
|
-
},
|
5288
|
+
}, nr = /* @__PURE__ */ v("i", { class: "fa fa-hourglass-empty" }, null, -1), or = { class: "title" }, rr = ["href", "title", "onClick"], ir = { class: "title" }, ar = { class: "desktop-tasks" }, ur = ["onClick"], cr = ["onClick"], dr = { key: 1 }, mr = ["onClick"], pr = {
|
5248
5289
|
key: 1,
|
5249
5290
|
class: "side-tab-suffix fa fa-chevron-right"
|
5250
|
-
},
|
5291
|
+
}, hr = /* @__PURE__ */ X({
|
5251
5292
|
__name: "Desktop",
|
5252
5293
|
setup(i) {
|
5253
|
-
let e = We(), t = Ee(), { $t: l, $t_module: s } =
|
5254
|
-
$.dialogRef =
|
5255
|
-
},
|
5256
|
-
$.pageRef =
|
5257
|
-
}, T = (
|
5294
|
+
let e = We(), t = Ee(), { $t: l, $t_module: s } = je(), n = Fe(), r = x([]), a = x(), u = x(), c = new Pt(), p = new il(), d = x({ height: 36 }), m = bt(), f, w = (U, $) => {
|
5295
|
+
$.dialogRef = U;
|
5296
|
+
}, V = (U, $) => {
|
5297
|
+
$.pageRef = U;
|
5298
|
+
}, T = (U, $ = null) => {
|
5258
5299
|
if (!$)
|
5259
5300
|
return;
|
5260
|
-
$.bodyUrl =
|
5261
|
-
let
|
5262
|
-
if (!
|
5301
|
+
$.bodyUrl = U;
|
5302
|
+
let g = Z.getM(U).m;
|
5303
|
+
if (!g)
|
5263
5304
|
return;
|
5264
|
-
let E = Te.getParentsById(
|
5265
|
-
E.length > 1 ? $.sideMenuId = E[1].id : $.sideMenuId =
|
5266
|
-
},
|
5305
|
+
let E = Te.getParentsById(g, "id", e.menus, "children");
|
5306
|
+
E.length > 1 ? $.sideMenuId = E[1].id : $.sideMenuId = g, $.headerMenuId = g;
|
5307
|
+
}, M = (U, $, g, E) => {
|
5267
5308
|
if (E) {
|
5268
|
-
q(
|
5309
|
+
q(U, $);
|
5269
5310
|
return;
|
5270
5311
|
}
|
5271
|
-
|
5272
|
-
let
|
5273
|
-
$ ==
|
5274
|
-
}, O = (
|
5312
|
+
g.sideMenuId = $, g.headerMenuId = $;
|
5313
|
+
let ce;
|
5314
|
+
$ == g.sideMenu.id ? (ce = g.sideMenu, g.headerMenu = null) : (ce = g.sideMenu.children.find((we) => we.id == $), g.headerMenu = ce), g.menu = ce, g.bodyUrl = W($), n.to(g.bodyUrl, !1);
|
5315
|
+
}, O = (U, $, g, E) => {
|
5275
5316
|
if (E) {
|
5276
|
-
q(
|
5317
|
+
q(U, $);
|
5277
5318
|
return;
|
5278
5319
|
}
|
5279
|
-
|
5280
|
-
let
|
5281
|
-
$ ==
|
5282
|
-
}, I = (
|
5283
|
-
|
5284
|
-
}, C = (
|
5285
|
-
let $ = Z.base64({ Module:
|
5320
|
+
g.headerMenuId = $;
|
5321
|
+
let ce;
|
5322
|
+
$ == g.headerMenu.id ? ce = g.headerMenu : ce = g.headerMenu.children.find((we) => we.id == $), g.menu = ce, g.bodyUrl = W($), n.to(g.bodyUrl, !1);
|
5323
|
+
}, I = (U) => {
|
5324
|
+
U.pageRef.refresh();
|
5325
|
+
}, C = (U) => {
|
5326
|
+
let $ = Z.base64({ Module: U.bodyUrl });
|
5286
5327
|
u.value.show("add", "/ctl_feedback/insert?default=" + $);
|
5287
|
-
},
|
5288
|
-
|
5289
|
-
}, k = (
|
5290
|
-
let $ = Z.getM(
|
5291
|
-
n.to(
|
5292
|
-
}, Q = (
|
5328
|
+
}, j = (U) => {
|
5329
|
+
U.focus = !0;
|
5330
|
+
}, k = (U) => {
|
5331
|
+
let $ = Z.getM(U.bodyUrl), g = Z.getUrl(U.bodyUrl, { m: `${$.m};min` });
|
5332
|
+
n.to(g, !1);
|
5333
|
+
}, Q = (U) => {
|
5293
5334
|
let $ = Z.getBackUrl();
|
5294
|
-
$ && (
|
5295
|
-
}, J = (
|
5335
|
+
$ && (U.bodyUrl = $, n.to($, !1));
|
5336
|
+
}, J = (U) => {
|
5296
5337
|
let $ = Z.getBackUrl();
|
5297
|
-
$ && (
|
5298
|
-
}, ne = (
|
5299
|
-
De.remove(r.value,
|
5300
|
-
}, L = (
|
5301
|
-
G("ctrlS",
|
5302
|
-
},
|
5303
|
-
G("ctrlEnter",
|
5304
|
-
}, G = (
|
5305
|
-
let
|
5306
|
-
!
|
5307
|
-
},
|
5308
|
-
|
5309
|
-
}, q = (
|
5310
|
-
|
5311
|
-
let
|
5312
|
-
|
5313
|
-
}, b = (
|
5314
|
-
let
|
5315
|
-
return De.max(
|
5316
|
-
}, W = (
|
5317
|
-
let $ = Te.getById(
|
5338
|
+
$ && (U.bodyUrl = $, n.to($, !1));
|
5339
|
+
}, ne = (U) => {
|
5340
|
+
De.remove(r.value, U);
|
5341
|
+
}, L = (U) => {
|
5342
|
+
G("ctrlS", U);
|
5343
|
+
}, F = (U) => {
|
5344
|
+
G("ctrlEnter", U);
|
5345
|
+
}, G = (U, $) => {
|
5346
|
+
let g = b(r.value, (E) => E.dialogRef.options.state != "min");
|
5347
|
+
!g.pageRef || !g.pageRef.keyboard || g.pageRef.keyboard(U, $);
|
5348
|
+
}, A = (U) => {
|
5349
|
+
U.dialogRef.toggleShow();
|
5350
|
+
}, q = (U, $) => {
|
5351
|
+
U.preventDefault();
|
5352
|
+
let g = de($);
|
5353
|
+
g.bodyUrl = W($), r.value.push(g), n.to(g.bodyUrl, !1);
|
5354
|
+
}, b = (U, $ = null) => {
|
5355
|
+
let g = $ ? U.filter($) : U;
|
5356
|
+
return De.max(g, (ce) => ce.dialogRef.options.index);
|
5357
|
+
}, W = (U) => {
|
5358
|
+
let $ = Te.getById(U, "id", e.menus, "children");
|
5318
5359
|
if (!$)
|
5319
5360
|
return null;
|
5320
|
-
let
|
5321
|
-
return ut.value.max ?
|
5322
|
-
}, de = (
|
5323
|
-
if (!
|
5361
|
+
let g = { m: $.id };
|
5362
|
+
return ut.value.max ? g.m += ";max" : ut.value.min && (g.m += ";min"), Z.getUrl($.url, g);
|
5363
|
+
}, de = (U) => {
|
5364
|
+
if (!U)
|
5324
5365
|
return null;
|
5325
|
-
let $ = Te.getParentsById(
|
5366
|
+
let $ = Te.getParentsById(U, "id", e.menus, "children", !0);
|
5326
5367
|
if ($.length == 0)
|
5327
5368
|
return null;
|
5328
|
-
let
|
5369
|
+
let g = {
|
5329
5370
|
visible: !0,
|
5330
5371
|
menu: null,
|
5331
5372
|
//当前激活菜单
|
@@ -5343,172 +5384,172 @@ const _i = /* @__PURE__ */ X({
|
|
5343
5384
|
//显示内容的url
|
5344
5385
|
bodyUrl: null
|
5345
5386
|
};
|
5346
|
-
return
|
5347
|
-
}, _e = (
|
5348
|
-
if (!
|
5387
|
+
return g.menu = $[$.length - 1], g.sideMenu = $[0], g.headerMenu = $[1], $.length == 1 ? (g.sideMenuId = $[0].id, g) : (g.sideMenuId = $[1].id, $.length == 2 ? (g.headerMenuId = $[1].id, g) : (g.headerMenuId = $[2].id, g));
|
5388
|
+
}, _e = (U, $) => {
|
5389
|
+
if (!U)
|
5349
5390
|
return;
|
5350
|
-
me.isObject(
|
5351
|
-
let
|
5352
|
-
Be.setTitle(
|
5353
|
-
}, nt = (
|
5391
|
+
me.isObject(U) ? ($.type = U.module.type, $.name = U.module.name, $.env = U.module.env, $.i18n_title = null) : me.isString(U) && ($.i18n_title = U);
|
5392
|
+
let g = nt($.i18n_title, $.type, $.type);
|
5393
|
+
Be.setTitle(g);
|
5394
|
+
}, nt = (U, $, g) => U ? l(U) : s($, g);
|
5354
5395
|
be(async () => {
|
5355
|
-
p.ctrlS(document, L), p.ctrlEnter(document,
|
5356
|
-
let
|
5357
|
-
if (
|
5358
|
-
for (let $ = 0; $ <
|
5359
|
-
let
|
5360
|
-
E.id =
|
5396
|
+
p.ctrlS(document, L), p.ctrlEnter(document, F), f = await Ne.getProviderAsync("IndexedDb", "desktop");
|
5397
|
+
let U = await f.getAsync("taskbars");
|
5398
|
+
if (U)
|
5399
|
+
for (let $ = 0; $ < U.length; $++) {
|
5400
|
+
let g = U[$], E = de(g.menu);
|
5401
|
+
E.id = g.id, E.bodyUrl = g.url, r.value.push(E);
|
5361
5402
|
}
|
5362
5403
|
c.resize(a.value, ($) => {
|
5363
|
-
for (let
|
5364
|
-
let E = r.value[
|
5404
|
+
for (let g = 0; g < r.value.length; g++) {
|
5405
|
+
let E = r.value[g].dialogRef;
|
5365
5406
|
E.options.state == "max" ? (E.restore(), E.max()) : (E.options.state == "left" || E.options.state == "right") && E.affix();
|
5366
5407
|
}
|
5367
5408
|
});
|
5368
5409
|
}), sl(() => {
|
5369
5410
|
p.removeCtrlS(document), p.removeCtrlEnter(document), a.value && c.unresize(a.value);
|
5370
|
-
}),
|
5371
|
-
for (let
|
5372
|
-
let E = r.value[
|
5411
|
+
}), ge(() => t.language, (U, $) => {
|
5412
|
+
for (let g = 0; g < r.value.length; g++) {
|
5413
|
+
let E = r.value[g], ce = E.headerMenuId ?? E.sideMenuId, we = Te.getParentsById(ce, "id", e.menus, "children", !0);
|
5373
5414
|
E.sideMenu = we[0], E.headerMenu = we[1];
|
5374
5415
|
}
|
5375
|
-
}),
|
5416
|
+
}), ge(() => r.value.find((U) => {
|
5376
5417
|
var $;
|
5377
|
-
return (($ =
|
5378
|
-
}) != null, (
|
5379
|
-
Xe.emit("maximize",
|
5380
|
-
}),
|
5381
|
-
let
|
5382
|
-
for (let E = 0; E <
|
5383
|
-
let
|
5384
|
-
|
5418
|
+
return (($ = U.dialogRef) == null ? void 0 : $.options.state) == "max";
|
5419
|
+
}) != null, (U, $) => {
|
5420
|
+
Xe.emit("maximize", U);
|
5421
|
+
}), ge(() => r.value, (U, $) => {
|
5422
|
+
let g = [];
|
5423
|
+
for (let E = 0; E < U.length; E++) {
|
5424
|
+
let ce = U[E], we = { id: ce.id, menu: ce.menu.id, url: ce.bodyUrl };
|
5425
|
+
g.push(we);
|
5385
5426
|
}
|
5386
|
-
|
5427
|
+
f && f.saveAsync("taskbars", g);
|
5387
5428
|
}, { deep: !0 });
|
5388
|
-
let ut =
|
5389
|
-
return (
|
5429
|
+
let ut = fe(() => Z.getM(m.fullPath));
|
5430
|
+
return (U, $) => (h(), _("div", {
|
5390
5431
|
ref_key: "appRef",
|
5391
5432
|
ref: a,
|
5392
5433
|
class: "app-wrapper"
|
5393
5434
|
}, [
|
5394
|
-
v("div",
|
5395
|
-
|
5435
|
+
v("div", er, [
|
5436
|
+
tr,
|
5396
5437
|
S(o(cl))
|
5397
5438
|
]),
|
5398
|
-
o(e).menus ? (h(),
|
5399
|
-
o(e).menus.length == 0 ? (h(),
|
5400
|
-
|
5401
|
-
v("div",
|
5402
|
-
])) : (h(!0),
|
5403
|
-
href: o(Z).getAnchor(
|
5439
|
+
o(e).menus ? (h(), _("div", lr, [
|
5440
|
+
o(e).menus.length == 0 ? (h(), _("a", sr, [
|
5441
|
+
nr,
|
5442
|
+
v("div", or, D(o(l)("common.no_permission")), 1)
|
5443
|
+
])) : (h(!0), _(te, { key: 1 }, he(o(e).menus, (g) => (h(), _("a", {
|
5444
|
+
href: o(Z).getAnchor(g.url, { m: g.id }).href,
|
5404
5445
|
class: "desktop-icon",
|
5405
|
-
title:
|
5406
|
-
style:
|
5407
|
-
onClick: (E) => o(q)(E,
|
5446
|
+
title: U.$t_menu(g.id),
|
5447
|
+
style: xe(`color:${g.color}`),
|
5448
|
+
onClick: (E) => o(q)(E, g.id)
|
5408
5449
|
}, [
|
5409
5450
|
v("i", {
|
5410
|
-
class: ae(
|
5451
|
+
class: ae(g.icon)
|
5411
5452
|
}, null, 2),
|
5412
|
-
v("div",
|
5413
|
-
], 12,
|
5414
|
-
])) :
|
5415
|
-
v("div",
|
5453
|
+
v("div", ir, D(U.$t_menu(g.id)), 1)
|
5454
|
+
], 12, rr))), 256))
|
5455
|
+
])) : N("", !0),
|
5456
|
+
v("div", ar, [
|
5416
5457
|
S(o(dl), {
|
5417
|
-
onClick: $[0] || ($[0] = (
|
5458
|
+
onClick: $[0] || ($[0] = (g) => o(T)(g, o(r)[o(r).length - 1]))
|
5418
5459
|
}),
|
5419
|
-
(h(!0),
|
5420
|
-
class: ae(["desktop-task", { focus:
|
5421
|
-
onClick: (E) => o(
|
5460
|
+
(h(!0), _(te, null, he(o(r), (g) => (h(), _("div", {
|
5461
|
+
class: ae(["desktop-task", { focus: g.focus }]),
|
5462
|
+
onClick: (E) => o(A)(g)
|
5422
5463
|
}, [
|
5423
5464
|
v("i", {
|
5424
|
-
class: ae(`icon ${
|
5465
|
+
class: ae(`icon ${g.menu.icon}`)
|
5425
5466
|
}, null, 2),
|
5426
|
-
Y(
|
5427
|
-
], 10,
|
5467
|
+
Y(D(o(nt)(g.i18n_title, g.type, g.name)), 1)
|
5468
|
+
], 10, ur))), 256))
|
5428
5469
|
]),
|
5429
|
-
(h(!0),
|
5470
|
+
(h(!0), _(te, null, he(o(r), (g) => (h(), P(o(rl), {
|
5430
5471
|
ref_for: !0,
|
5431
|
-
ref: (E) => o(
|
5432
|
-
id:
|
5472
|
+
ref: (E) => o(w)(E, g),
|
5473
|
+
id: g.id,
|
5433
5474
|
bottom: o(d).height,
|
5434
|
-
options:
|
5435
|
-
onMin: (E) => o(k)(
|
5436
|
-
onClose: (E) => o(ne)(
|
5437
|
-
onFocus: (E) => o(
|
5438
|
-
key:
|
5439
|
-
modelValue:
|
5440
|
-
"onUpdate:modelValue": (E) =>
|
5475
|
+
options: g.options,
|
5476
|
+
onMin: (E) => o(k)(g),
|
5477
|
+
onClose: (E) => o(ne)(g),
|
5478
|
+
onFocus: (E) => o(j)(g),
|
5479
|
+
key: g.id,
|
5480
|
+
modelValue: g.visible,
|
5481
|
+
"onUpdate:modelValue": (E) => g.visible = E
|
5441
5482
|
}, Gl({
|
5442
5483
|
shortcut: y(() => [
|
5443
5484
|
v("i", {
|
5444
5485
|
class: "shortcut-refresh fa fa-refresh",
|
5445
|
-
onClick: (E) => o(I)(
|
5446
|
-
}, null, 8,
|
5486
|
+
onClick: (E) => o(I)(g)
|
5487
|
+
}, null, 8, cr)
|
5447
5488
|
]),
|
5448
5489
|
title: y(() => [
|
5449
|
-
|
5490
|
+
g.menu.icon ? (h(), _("i", {
|
5450
5491
|
key: 0,
|
5451
|
-
class: ae(`icon ${
|
5452
|
-
}, null, 2)) :
|
5453
|
-
Y(" " +
|
5454
|
-
|
5492
|
+
class: ae(`icon ${g.menu.icon}`)
|
5493
|
+
}, null, 2)) : N("", !0),
|
5494
|
+
Y(" " + D(o(nt)(g.i18n_title, g.type, g.name)) + " ", 1),
|
5495
|
+
g.env ? (h(), _("span", dr, "[" + D(g.env) + "]", 1)) : N("", !0)
|
5455
5496
|
]),
|
5456
5497
|
toolbar: y(() => [
|
5457
5498
|
v("i", {
|
5458
5499
|
class: "toolbar-question",
|
5459
|
-
onClick: (E) => o(C)(
|
5460
|
-
}, null, 8,
|
5500
|
+
onClick: (E) => o(C)(g)
|
5501
|
+
}, null, 8, mr)
|
5461
5502
|
]),
|
5462
5503
|
default: y(() => [
|
5463
|
-
|
5504
|
+
g.bodyUrl ? (h(), P(o(at), {
|
5464
5505
|
key: 0,
|
5465
5506
|
ref_for: !0,
|
5466
|
-
ref: (E) => o(
|
5467
|
-
url:
|
5468
|
-
onNavigate: (E) => o(T)(E,
|
5469
|
-
onLoaded: (E) => o(_e)(E,
|
5470
|
-
onSucceed: (E) => o(Q)(
|
5471
|
-
onClose: (E) => o(J)(
|
5472
|
-
}, null, 8, ["url", "onNavigate", "onLoaded", "onSucceed", "onClose"])) :
|
5507
|
+
ref: (E) => o(V)(E, g),
|
5508
|
+
url: g.bodyUrl,
|
5509
|
+
onNavigate: (E) => o(T)(E, g),
|
5510
|
+
onLoaded: (E) => o(_e)(E, g),
|
5511
|
+
onSucceed: (E) => o(Q)(g),
|
5512
|
+
onClose: (E) => o(J)(g)
|
5513
|
+
}, null, 8, ["url", "onNavigate", "onLoaded", "onSucceed", "onClose"])) : N("", !0)
|
5473
5514
|
]),
|
5474
5515
|
_: 2
|
5475
5516
|
}, [
|
5476
|
-
|
5517
|
+
g.sideMenu.children.length ? {
|
5477
5518
|
name: "side",
|
5478
5519
|
fn: y(() => [
|
5479
5520
|
S(o(Nl), {
|
5480
|
-
modelValue:
|
5481
|
-
"onUpdate:modelValue": (E) =>
|
5521
|
+
modelValue: g.sideMenuId,
|
5522
|
+
"onUpdate:modelValue": (E) => g.sideMenuId = E
|
5482
5523
|
}, {
|
5483
5524
|
default: y(() => [
|
5484
5525
|
S(o(Ot), {
|
5485
|
-
name:
|
5486
|
-
url:
|
5487
|
-
title:
|
5488
|
-
onClick: (E,
|
5526
|
+
name: g.sideMenu.id,
|
5527
|
+
url: g.sideMenu.url,
|
5528
|
+
title: U.$t_menu(g.sideMenu.id),
|
5529
|
+
onClick: (E, ce, we) => o(M)(E, g.sideMenu.id, g, we)
|
5489
5530
|
}, {
|
5490
5531
|
default: y(() => [
|
5491
|
-
|
5532
|
+
g.sideMenu.icon ? (h(), _("i", {
|
5492
5533
|
key: 0,
|
5493
|
-
class: ae(`prefix ${
|
5494
|
-
}, null, 2)) :
|
5495
|
-
Y(" " +
|
5534
|
+
class: ae(`prefix ${g.sideMenu.icon}`)
|
5535
|
+
}, null, 2)) : N("", !0),
|
5536
|
+
Y(" " + D(U.$t_menu(g.sideMenu.id)), 1)
|
5496
5537
|
]),
|
5497
5538
|
_: 2
|
5498
5539
|
}, 1032, ["name", "url", "title", "onClick"]),
|
5499
|
-
(h(!0),
|
5540
|
+
(h(!0), _(te, null, he(g.sideMenu.children, (E) => (h(), P(o(Ot), {
|
5500
5541
|
name: E.id,
|
5501
5542
|
url: E.url,
|
5502
|
-
title:
|
5503
|
-
onClick: (
|
5543
|
+
title: U.$t_menu(E.id),
|
5544
|
+
onClick: (ce, we, Ve) => o(M)(ce, E.id, g, Ve)
|
5504
5545
|
}, {
|
5505
5546
|
default: y(() => [
|
5506
|
-
E.icon ? (h(),
|
5547
|
+
E.icon ? (h(), _("i", {
|
5507
5548
|
key: 0,
|
5508
5549
|
class: ae(`prefix ${E.icon}`)
|
5509
|
-
}, null, 2)) :
|
5510
|
-
Y(" " +
|
5511
|
-
E.children.length ? (h(),
|
5550
|
+
}, null, 2)) : N("", !0),
|
5551
|
+
Y(" " + D(U.$t_menu(E.id)) + " ", 1),
|
5552
|
+
E.children.length ? (h(), _("i", pr)) : N("", !0)
|
5512
5553
|
]),
|
5513
5554
|
_: 2
|
5514
5555
|
}, 1032, ["name", "url", "title", "onClick"]))), 256))
|
@@ -5518,37 +5559,37 @@ const _i = /* @__PURE__ */ X({
|
|
5518
5559
|
]),
|
5519
5560
|
key: "0"
|
5520
5561
|
} : void 0,
|
5521
|
-
|
5562
|
+
g.headerMenu && g.headerMenu.children.length ? {
|
5522
5563
|
name: "header",
|
5523
5564
|
fn: y(() => [
|
5524
5565
|
S(o(qs), {
|
5525
|
-
modelValue:
|
5526
|
-
"onUpdate:modelValue": (E) =>
|
5566
|
+
modelValue: g.headerMenuId,
|
5567
|
+
"onUpdate:modelValue": (E) => g.headerMenuId = E
|
5527
5568
|
}, {
|
5528
5569
|
default: y(() => [
|
5529
5570
|
S(o(Rl), {
|
5530
|
-
name:
|
5531
|
-
url:
|
5532
|
-
onClick: (E,
|
5571
|
+
name: g.headerMenu.id,
|
5572
|
+
url: g.headerMenu.url,
|
5573
|
+
onClick: (E, ce, we) => o(O)(E, g.headerMenu.id, g, we)
|
5533
5574
|
}, {
|
5534
5575
|
default: y(() => [
|
5535
5576
|
v("i", {
|
5536
|
-
class: ae(
|
5577
|
+
class: ae(g.headerMenu.icon)
|
5537
5578
|
}, null, 2),
|
5538
|
-
Y(" " +
|
5579
|
+
Y(" " + D(U.$t_menu(g.headerMenu.id)), 1)
|
5539
5580
|
]),
|
5540
5581
|
_: 2
|
5541
5582
|
}, 1032, ["name", "url", "onClick"]),
|
5542
|
-
(h(!0),
|
5583
|
+
(h(!0), _(te, null, he(g.headerMenu.children, (E) => (h(), P(o(Rl), {
|
5543
5584
|
name: E.id,
|
5544
5585
|
url: E.url,
|
5545
|
-
onClick: (
|
5586
|
+
onClick: (ce, we, Ve) => o(O)(ce, E.id, g, Ve)
|
5546
5587
|
}, {
|
5547
5588
|
default: y(() => [
|
5548
5589
|
v("i", {
|
5549
5590
|
class: ae(E.icon)
|
5550
5591
|
}, null, 2),
|
5551
|
-
Y(" " +
|
5592
|
+
Y(" " + D(U.$t_menu(E.id)), 1)
|
5552
5593
|
]),
|
5553
5594
|
_: 2
|
5554
5595
|
}, 1032, ["name", "url", "onClick"]))), 256))
|
@@ -5569,10 +5610,10 @@ const _i = /* @__PURE__ */ X({
|
|
5569
5610
|
}, null, 8, ["bottom"])
|
5570
5611
|
], 512));
|
5571
5612
|
}
|
5572
|
-
}),
|
5613
|
+
}), fr = {
|
5573
5614
|
key: 0,
|
5574
5615
|
class: "no-redirect"
|
5575
|
-
},
|
5616
|
+
}, gr = ["onClick"], vr = /* @__PURE__ */ X({
|
5576
5617
|
__name: "Breadcrumb",
|
5577
5618
|
setup(i) {
|
5578
5619
|
let e = null, t = bt(), l = ns(), s = () => {
|
@@ -5592,22 +5633,22 @@ const _i = /* @__PURE__ */ X({
|
|
5592
5633
|
};
|
5593
5634
|
return be(() => {
|
5594
5635
|
s();
|
5595
|
-
}),
|
5636
|
+
}), ge(t, (a) => {
|
5596
5637
|
a.path.startsWith("/redirect/") || s();
|
5597
5638
|
}), (a, u) => {
|
5598
|
-
const c =
|
5639
|
+
const c = z("el-breadcrumb-item"), p = z("el-breadcrumb");
|
5599
5640
|
return h(), P(p, { separator: "/" }, {
|
5600
5641
|
default: y(() => [
|
5601
5642
|
S(Zl, { name: "breadcrumb" }, {
|
5602
5643
|
default: y(() => [
|
5603
|
-
(h(!0),
|
5644
|
+
(h(!0), _(te, null, he(o(e), (d, m) => (h(), P(c, {
|
5604
5645
|
key: d.path
|
5605
5646
|
}, {
|
5606
5647
|
default: y(() => [
|
5607
|
-
d.redirect == "noRedirect" || d == o(e)[o(e).length - 1] ? (h(),
|
5648
|
+
d.redirect == "noRedirect" || d == o(e)[o(e).length - 1] ? (h(), _("span", fr, D(d.meta.title), 1)) : (h(), _("a", {
|
5608
5649
|
key: 1,
|
5609
|
-
onClick: st((
|
5610
|
-
},
|
5650
|
+
onClick: st((f) => o(r)(d), ["prevent"])
|
5651
|
+
}, D(d.meta.title), 9, gr))
|
5611
5652
|
]),
|
5612
5653
|
_: 2
|
5613
5654
|
}, 1024))), 128))
|
@@ -5619,13 +5660,13 @@ const _i = /* @__PURE__ */ X({
|
|
5619
5660
|
});
|
5620
5661
|
};
|
5621
5662
|
}
|
5622
|
-
}),
|
5663
|
+
}), yr = {
|
5623
5664
|
key: 0,
|
5624
5665
|
class: "fa fa-outdent"
|
5625
|
-
},
|
5666
|
+
}, br = {
|
5626
5667
|
key: 1,
|
5627
5668
|
class: "fa fa-indent"
|
5628
|
-
},
|
5669
|
+
}, _r = /* @__PURE__ */ X({
|
5629
5670
|
__name: "Hamburger",
|
5630
5671
|
props: {
|
5631
5672
|
isActive: { type: Boolean, default: !1 }
|
@@ -5635,30 +5676,30 @@ const _i = /* @__PURE__ */ X({
|
|
5635
5676
|
let t = e, l = () => {
|
5636
5677
|
t("toggleClick");
|
5637
5678
|
};
|
5638
|
-
return (s, n) => (h(),
|
5679
|
+
return (s, n) => (h(), _("div", {
|
5639
5680
|
class: "hamburger",
|
5640
5681
|
onClick: n[0] || (n[0] = //@ts-ignore
|
5641
5682
|
(...r) => o(l) && o(l)(...r))
|
5642
5683
|
}, [
|
5643
|
-
i.isActive ? (h(),
|
5684
|
+
i.isActive ? (h(), _("i", yr)) : (h(), _("i", br))
|
5644
5685
|
]));
|
5645
5686
|
}
|
5646
|
-
}),
|
5647
|
-
|
5648
|
-
],
|
5687
|
+
}), wr = /* @__PURE__ */ v("i", { class: "fa fa-sync" }, null, -1), kr = [
|
5688
|
+
wr
|
5689
|
+
], $r = /* @__PURE__ */ X({
|
5649
5690
|
__name: "Refresh",
|
5650
5691
|
emits: ["refresh"],
|
5651
5692
|
setup(i, { emit: e }) {
|
5652
5693
|
let t = e, l = () => {
|
5653
5694
|
t("refresh");
|
5654
5695
|
};
|
5655
|
-
return (s, n) => (h(),
|
5696
|
+
return (s, n) => (h(), _("div", {
|
5656
5697
|
class: ae(["btn-refresh", { loading: !1 }]),
|
5657
5698
|
onClick: n[0] || (n[0] = //@ts-ignore
|
5658
5699
|
(...r) => o(l) && o(l)(...r))
|
5659
|
-
},
|
5700
|
+
}, kr));
|
5660
5701
|
}
|
5661
|
-
}),
|
5702
|
+
}), Cr = { class: "header-left" }, xr = { class: "header-middle" }, Wl = /* @__PURE__ */ X({
|
5662
5703
|
__name: "Index",
|
5663
5704
|
emits: ["refresh"],
|
5664
5705
|
setup(i, { emit: e }) {
|
@@ -5670,34 +5711,34 @@ const _i = /* @__PURE__ */ X({
|
|
5670
5711
|
gs().start();
|
5671
5712
|
}, 100);
|
5672
5713
|
});
|
5673
|
-
let r =
|
5674
|
-
return (a, u) => (h(),
|
5675
|
-
v("div",
|
5676
|
-
S(
|
5714
|
+
let r = fe(() => l.getComponent("/", "header"));
|
5715
|
+
return (a, u) => (h(), _(te, null, [
|
5716
|
+
v("div", Cr, [
|
5717
|
+
S(_r, {
|
5677
5718
|
"is-active": o(s).sidebar.opened,
|
5678
5719
|
onToggleClick: o(n)
|
5679
5720
|
}, null, 8, ["is-active", "onToggleClick"]),
|
5680
|
-
S(
|
5721
|
+
S($r, {
|
5681
5722
|
onRefresh: u[0] || (u[0] = (c) => o(t)("refresh"))
|
5682
5723
|
}),
|
5683
|
-
S(
|
5724
|
+
S(vr)
|
5684
5725
|
]),
|
5685
|
-
v("div",
|
5726
|
+
v("div", xr, [
|
5686
5727
|
(h(), P(nl(o(r))))
|
5687
5728
|
]),
|
5688
5729
|
S(cl)
|
5689
5730
|
], 64));
|
5690
5731
|
}
|
5691
|
-
}),
|
5732
|
+
}), Sr = { class: "side-header" }, Vr = /* @__PURE__ */ v("i", { class: "fa fa-search" }, null, -1), Ur = { class: "side-body" }, Er = {
|
5692
5733
|
key: 1,
|
5693
5734
|
class: "ho-empty"
|
5694
|
-
},
|
5735
|
+
}, Rr = ["innerHTML"], Ir = { class: "main-container" }, Or = {
|
5695
5736
|
key: 0,
|
5696
5737
|
class: "nav-bar"
|
5697
|
-
},
|
5738
|
+
}, Lr = {
|
5698
5739
|
components: { HeaderIndex: Wl }
|
5699
|
-
},
|
5700
|
-
...
|
5740
|
+
}, Dr = /* @__PURE__ */ X({
|
5741
|
+
...Lr,
|
5701
5742
|
__name: "Side",
|
5702
5743
|
setup(i) {
|
5703
5744
|
let e = We(), t = it(), l = Fe(), s = x(), n = bt(), r = x(), a = x(), u = x(), c = new il(), p = () => {
|
@@ -5706,51 +5747,51 @@ const _i = /* @__PURE__ */ X({
|
|
5706
5747
|
s.value.beforeClose(C);
|
5707
5748
|
}, m = (C) => {
|
5708
5749
|
typeof C == "string" && Be.setI18nTitle(C);
|
5709
|
-
},
|
5750
|
+
}, f = (C) => {
|
5710
5751
|
l.to(C, !1);
|
5711
|
-
},
|
5752
|
+
}, w = (C) => {
|
5712
5753
|
T("ctrlS", C);
|
5713
|
-
},
|
5754
|
+
}, V = (C) => {
|
5714
5755
|
T("ctrlEnter", C);
|
5715
|
-
}, T = (C,
|
5756
|
+
}, T = (C, j) => {
|
5716
5757
|
if (!s.value || !s.value.keyboard)
|
5717
5758
|
return !1;
|
5718
|
-
s.value.keyboard(C,
|
5719
|
-
},
|
5759
|
+
s.value.keyboard(C, j);
|
5760
|
+
}, M = (C) => {
|
5720
5761
|
t.setSidebarWidth(C);
|
5721
5762
|
}, O = () => {
|
5722
5763
|
a.value = n.fullPath, u.value = n.query.m;
|
5723
5764
|
};
|
5724
5765
|
O(), be(() => {
|
5725
|
-
rt.bind(["beforeunload"], window, d), c.ctrlS(document,
|
5766
|
+
rt.bind(["beforeunload"], window, d), c.ctrlS(document, w), c.ctrlEnter(document, V);
|
5726
5767
|
}), Tt(() => {
|
5727
5768
|
rt.unbind(["beforeunload"], window, d), c.removeCtrlS(document), c.removeCtrlEnter(document);
|
5728
5769
|
});
|
5729
|
-
let I =
|
5730
|
-
return
|
5770
|
+
let I = fe(() => Te.searchTree(r.value, e.menus, "children", ["name", "url"]));
|
5771
|
+
return ge(() => n.fullPath, (C, j) => {
|
5731
5772
|
O();
|
5732
|
-
}), (C,
|
5733
|
-
const k =
|
5773
|
+
}), (C, j) => {
|
5774
|
+
const k = z("el-input"), Q = z("el-backtop");
|
5734
5775
|
return h(), P(o(Pl), {
|
5735
5776
|
class: "app-wrapper",
|
5736
5777
|
width: o(t).sidebar.width,
|
5737
|
-
onResize: o(
|
5778
|
+
onResize: o(M)
|
5738
5779
|
}, {
|
5739
5780
|
left: y(() => [
|
5740
5781
|
v("div", {
|
5741
5782
|
class: ae(["side-nav", { hide: !o(t).sidebar.opened }])
|
5742
5783
|
}, [
|
5743
|
-
v("div",
|
5744
|
-
S(dl, { onClick: o(
|
5784
|
+
v("div", Sr, [
|
5785
|
+
S(dl, { onClick: o(f) }, null, 8, ["onClick"]),
|
5745
5786
|
S(k, {
|
5746
5787
|
type: "text",
|
5747
5788
|
clearable: "",
|
5748
5789
|
placeholder: C.t("common.search_menu"),
|
5749
5790
|
modelValue: o(r),
|
5750
|
-
"onUpdate:modelValue":
|
5791
|
+
"onUpdate:modelValue": j[0] || (j[0] = (J) => $e(r) ? r.value = J : r = J)
|
5751
5792
|
}, {
|
5752
5793
|
prefix: y(() => [
|
5753
|
-
|
5794
|
+
Vr
|
5754
5795
|
]),
|
5755
5796
|
_: 1
|
5756
5797
|
}, 8, ["placeholder", "modelValue"])
|
@@ -5761,32 +5802,32 @@ const _i = /* @__PURE__ */ X({
|
|
5761
5802
|
menus: o(I),
|
5762
5803
|
direction: "vertical",
|
5763
5804
|
"expand-active": "",
|
5764
|
-
onClick: o(
|
5805
|
+
onClick: o(f),
|
5765
5806
|
modelValue: o(u),
|
5766
|
-
"onUpdate:modelValue":
|
5767
|
-
}, null, 8, ["menus", "onClick", "modelValue"])) : (h(),
|
5807
|
+
"onUpdate:modelValue": j[1] || (j[1] = (J) => $e(u) ? u.value = J : u = J)
|
5808
|
+
}, null, 8, ["menus", "onClick", "modelValue"])) : (h(), _("div", Er, D(C.t("common.no_permission")), 1))
|
5768
5809
|
]),
|
5769
5810
|
v("div", {
|
5770
5811
|
class: "side-footer",
|
5771
5812
|
innerHTML: C.t("sys.powered_by")
|
5772
|
-
}, null, 8,
|
5813
|
+
}, null, 8, Rr)
|
5773
5814
|
], 2)
|
5774
5815
|
]),
|
5775
5816
|
default: y(() => [
|
5776
|
-
v("div",
|
5777
|
-
o(t).hideNav ?
|
5817
|
+
v("div", Ir, [
|
5818
|
+
o(t).hideNav ? N("", !0) : (h(), _("div", Or, [
|
5778
5819
|
S(Wl, { onRefresh: o(p) }, null, 8, ["onRefresh"])
|
5779
5820
|
])),
|
5780
5821
|
v("section", {
|
5781
5822
|
class: "ho-main",
|
5782
|
-
style:
|
5823
|
+
style: xe({ height: o(t).hideNav ? "100vh" : "calc(100vh - 49px)" })
|
5783
5824
|
}, [
|
5784
5825
|
S(o(at), {
|
5785
5826
|
ref_key: "mainRef",
|
5786
5827
|
ref: s,
|
5787
5828
|
url: o(a),
|
5788
5829
|
onLoaded: o(m),
|
5789
|
-
onNavigate: o(
|
5830
|
+
onNavigate: o(f)
|
5790
5831
|
}, null, 8, ["url", "onLoaded", "onNavigate"]),
|
5791
5832
|
S(Q, { target: ".ho-main" })
|
5792
5833
|
], 4),
|
@@ -5797,41 +5838,41 @@ const _i = /* @__PURE__ */ X({
|
|
5797
5838
|
}, 8, ["width", "onResize"]);
|
5798
5839
|
};
|
5799
5840
|
}
|
5800
|
-
}),
|
5841
|
+
}), jr = { class: "top-nav-header" }, Mr = { class: "top-nav-menu" }, Tr = /* @__PURE__ */ v("div", { class: "header-middle" }, null, -1), Pr = { class: "main-container" }, Br = { class: "ho-main" }, zr = /* @__PURE__ */ X({
|
5801
5842
|
__name: "Top",
|
5802
5843
|
setup(i) {
|
5803
5844
|
let e = We(), t = Fe(), l = x(), s = x(), n = x(), r = x(), a = bt(), u = x(), c = new Pt(), p = new il(), d = (O) => {
|
5804
5845
|
typeof O == "string" && Be.setI18nTitle(O);
|
5805
5846
|
}, m = (O) => {
|
5806
5847
|
t.to(O, !1);
|
5807
|
-
},
|
5808
|
-
|
5809
|
-
},
|
5810
|
-
|
5811
|
-
},
|
5848
|
+
}, f = (O) => {
|
5849
|
+
V("ctrlS", O);
|
5850
|
+
}, w = (O) => {
|
5851
|
+
V("ctrlEnter", O);
|
5852
|
+
}, V = (O, I) => {
|
5812
5853
|
if (!l.value || !l.value.keyboard)
|
5813
5854
|
return !1;
|
5814
5855
|
l.value.keyboard(O, I);
|
5815
5856
|
}, T = (O) => {
|
5816
5857
|
var I;
|
5817
5858
|
(I = r.value) == null || I.resize(O[0]);
|
5818
|
-
},
|
5859
|
+
}, M = () => {
|
5819
5860
|
s.value = a.fullPath, u.value = a.query.m;
|
5820
5861
|
};
|
5821
|
-
return
|
5822
|
-
c.resize(n.value, T), p.ctrlS(document,
|
5862
|
+
return M(), be(() => {
|
5863
|
+
c.resize(n.value, T), p.ctrlS(document, f), p.ctrlEnter(document, w);
|
5823
5864
|
}), sl(() => {
|
5824
5865
|
p.removeCtrlS(document), p.removeCtrlEnter(document), n.value && c.unresize(n.value);
|
5825
|
-
}),
|
5826
|
-
|
5866
|
+
}), ge(() => a.fullPath, (O, I) => {
|
5867
|
+
M();
|
5827
5868
|
}), (O, I) => {
|
5828
|
-
const C =
|
5829
|
-
return h(),
|
5869
|
+
const C = z("el-backtop");
|
5870
|
+
return h(), _("div", {
|
5830
5871
|
ref_key: "appRef",
|
5831
5872
|
ref: n,
|
5832
5873
|
class: "app-wrapper"
|
5833
5874
|
}, [
|
5834
|
-
v("div",
|
5875
|
+
v("div", jr, [
|
5835
5876
|
v("div", Mr, [
|
5836
5877
|
S(dl, { onClick: o(m) }, null, 8, ["onClick"]),
|
5837
5878
|
S(o(Al), {
|
@@ -5839,15 +5880,15 @@ const _i = /* @__PURE__ */ X({
|
|
5839
5880
|
ref: r,
|
5840
5881
|
menus: o(e).menus,
|
5841
5882
|
modelValue: o(u),
|
5842
|
-
"onUpdate:modelValue": I[0] || (I[0] = (
|
5883
|
+
"onUpdate:modelValue": I[0] || (I[0] = (j) => $e(u) ? u.value = j : u = j),
|
5843
5884
|
onClick: o(m)
|
5844
5885
|
}, null, 8, ["menus", "modelValue", "onClick"]),
|
5845
|
-
|
5886
|
+
Tr,
|
5846
5887
|
S(cl)
|
5847
5888
|
])
|
5848
5889
|
]),
|
5849
|
-
v("div",
|
5850
|
-
v("section",
|
5890
|
+
v("div", Pr, [
|
5891
|
+
v("section", Br, [
|
5851
5892
|
S(o(at), {
|
5852
5893
|
ref_key: "mainRef",
|
5853
5894
|
ref: l,
|
@@ -5862,10 +5903,10 @@ const _i = /* @__PURE__ */ X({
|
|
5862
5903
|
], 512);
|
5863
5904
|
};
|
5864
5905
|
}
|
5865
|
-
}),
|
5866
|
-
components: { DesktopLayout:
|
5867
|
-
},
|
5868
|
-
...
|
5906
|
+
}), Ar = {
|
5907
|
+
components: { DesktopLayout: hr, SideLayout: Dr, TopLayout: zr }
|
5908
|
+
}, $i = /* @__PURE__ */ X({
|
5909
|
+
...Ar,
|
5869
5910
|
__name: "Index",
|
5870
5911
|
setup(i) {
|
5871
5912
|
let e = Ge(), t = Ee(), l = () => {
|
@@ -5874,7 +5915,7 @@ const _i = /* @__PURE__ */ X({
|
|
5874
5915
|
return be(() => {
|
5875
5916
|
l();
|
5876
5917
|
}), (s, n) => {
|
5877
|
-
const r =
|
5918
|
+
const r = z("el-watermark");
|
5878
5919
|
return h(), P(r, {
|
5879
5920
|
class: "ho-watermark",
|
5880
5921
|
"z-index": 99,
|
@@ -5883,7 +5924,7 @@ const _i = /* @__PURE__ */ X({
|
|
5883
5924
|
default: y(() => [
|
5884
5925
|
(h(), P(nl(`${o(t).layout}-layout`), null, {
|
5885
5926
|
default: y(() => [
|
5886
|
-
Y(" 未实现的布局方式:" +
|
5927
|
+
Y(" 未实现的布局方式:" + D(o(t).layout), 1)
|
5887
5928
|
]),
|
5888
5929
|
_: 1
|
5889
5930
|
}))
|
@@ -5893,66 +5934,67 @@ const _i = /* @__PURE__ */ X({
|
|
5893
5934
|
};
|
5894
5935
|
}
|
5895
5936
|
});
|
5896
|
-
let
|
5897
|
-
|
5937
|
+
let Nr = Hl(Xn);
|
5938
|
+
Nr.use(es());
|
5898
5939
|
export {
|
5899
|
-
|
5940
|
+
Yn as $,
|
5900
5941
|
De as A,
|
5901
|
-
|
5942
|
+
oi as B,
|
5902
5943
|
Il as C,
|
5903
5944
|
se as D,
|
5904
5945
|
gt as E,
|
5905
5946
|
vt as F,
|
5906
|
-
|
5907
|
-
|
5947
|
+
$i as G,
|
5948
|
+
ve as H,
|
5908
5949
|
Sl as I,
|
5909
|
-
|
5910
|
-
|
5911
|
-
|
5950
|
+
Nr as J,
|
5951
|
+
Dl as K,
|
5952
|
+
co as L,
|
5912
5953
|
Se as M,
|
5913
|
-
|
5954
|
+
wi as N,
|
5914
5955
|
pe as O,
|
5915
5956
|
Be as P,
|
5916
|
-
|
5917
|
-
|
5957
|
+
so as Q,
|
5958
|
+
$o as R,
|
5918
5959
|
Pe as S,
|
5919
5960
|
Te as T,
|
5920
5961
|
Ll as U,
|
5921
|
-
|
5922
|
-
|
5923
|
-
|
5924
|
-
|
5925
|
-
|
5926
|
-
|
5962
|
+
ul as V,
|
5963
|
+
bo as W,
|
5964
|
+
_i as X,
|
5965
|
+
Bt as Y,
|
5966
|
+
al as Z,
|
5967
|
+
ci as _,
|
5927
5968
|
Qe as a,
|
5928
5969
|
ii as a0,
|
5929
|
-
|
5930
|
-
|
5931
|
-
|
5970
|
+
ai as a1,
|
5971
|
+
di as a2,
|
5972
|
+
Es as a3,
|
5932
5973
|
mi as a4,
|
5933
|
-
|
5934
|
-
|
5935
|
-
|
5936
|
-
|
5937
|
-
|
5938
|
-
|
5939
|
-
|
5940
|
-
|
5941
|
-
|
5942
|
-
|
5943
|
-
|
5944
|
-
|
5945
|
-
|
5946
|
-
|
5947
|
-
|
5948
|
-
|
5949
|
-
|
5950
|
-
|
5951
|
-
|
5952
|
-
|
5953
|
-
|
5954
|
-
|
5955
|
-
|
5974
|
+
pi as a5,
|
5975
|
+
Is as a6,
|
5976
|
+
zs as a7,
|
5977
|
+
Rl as a8,
|
5978
|
+
qs as a9,
|
5979
|
+
Al as aa,
|
5980
|
+
Ot as ab,
|
5981
|
+
Nl as ac,
|
5982
|
+
rl as ad,
|
5983
|
+
vi as ae,
|
5984
|
+
Ns as af,
|
5985
|
+
hi as ag,
|
5986
|
+
rt as ah,
|
5987
|
+
Xe as ai,
|
5988
|
+
Vl as aj,
|
5989
|
+
It as ak,
|
5990
|
+
Ul as al,
|
5991
|
+
ee as am,
|
5992
|
+
Fs as an,
|
5993
|
+
zl as ao,
|
5994
|
+
_n as ap,
|
5995
|
+
ui as aq,
|
5996
|
+
il as ar,
|
5997
|
+
Pt as as,
|
5956
5998
|
ol as b,
|
5957
5999
|
me as c,
|
5958
6000
|
Ge as d,
|
@@ -5961,21 +6003,21 @@ export {
|
|
5961
6003
|
Z as g,
|
5962
6004
|
Ee as h,
|
5963
6005
|
Ol as i,
|
5964
|
-
|
6006
|
+
ri as j,
|
5965
6007
|
xl as k,
|
5966
6008
|
Lt as l,
|
5967
6009
|
Pl as m,
|
5968
|
-
|
6010
|
+
gi as n,
|
5969
6011
|
at as o,
|
5970
|
-
|
6012
|
+
bi as p,
|
5971
6013
|
Ne as q,
|
5972
|
-
|
5973
|
-
|
5974
|
-
|
5975
|
-
|
5976
|
-
|
5977
|
-
|
5978
|
-
|
5979
|
-
|
5980
|
-
|
6014
|
+
ki as r,
|
6015
|
+
it as s,
|
6016
|
+
yi as t,
|
6017
|
+
je as u,
|
6018
|
+
Rt as v,
|
6019
|
+
Zt as w,
|
6020
|
+
El as x,
|
6021
|
+
fi as y,
|
6022
|
+
Fe as z
|
5981
6023
|
};
|