halo-pc 1.0.37 → 1.0.38
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{Article-DSuvpyeC.js → Article-H_clf90b.js} +31 -32
- package/dist/{ArticleFooter-Cx3OC7sV.js → ArticleFooter-BLi4TNA7.js} +3 -4
- package/dist/Autocomplete-BF9x0F4f.js +49 -0
- package/dist/{Autocomplete-DASTUS8d.js → Autocomplete-CcIzTPSr.js} +11 -12
- package/dist/{Autocomplete-1jt0wRMS.js → Autocomplete-DMm6oI1g.js} +1 -1
- package/dist/{CSharp-CebNTVPd.js → CSharp-CZOchOE-.js} +1 -1
- package/dist/{Calender-BBILvX8n.js → Calender-BoQV7bhA.js} +4 -4
- package/dist/Callback-79Bw4RwY.js +20 -0
- package/dist/Cascader-D1Ou5OSg.js +41 -0
- package/dist/{Cascader-DyQ312mS.js → Cascader-DMhl98vw.js} +27 -28
- package/dist/{Checkbox-CHmMU0Cs.js → Checkbox-C6t6S7ii.js} +1 -1
- package/dist/{Checkbox-CyC_mo50.js → Checkbox-DtrXMDBR.js} +13 -14
- package/dist/Code-B8ISTTYK.js +54 -0
- package/dist/Code-BMlBvnqa.js +4 -0
- package/dist/{Code-CIFJJJo3.js → Code-DDacfgvl.js} +1 -1
- package/dist/Code-DIGn8Raz.js +36 -0
- package/dist/Code.vue_vue_type_style_index_0_lang-hHYTH50F.js +57 -0
- package/dist/Column-DjA11efs.js +69 -0
- package/dist/{Comment-D78rr4-n.js → Comment-Ixu0gPk3.js} +19 -25
- package/dist/{Compare-DLiL32cA.js → Compare-C1uq4lgK.js} +9 -10
- package/dist/{Compare-Cb9vYPl5.js → Compare-NN40QJWm.js} +10 -11
- package/dist/{Copy-CH2_hawJ.js → Copy-BcfSvyWG.js} +11 -12
- package/dist/{Custom-D9qN9bwa.js → Custom-Dn9_vPuD.js} +21 -22
- package/dist/{DataExport-D8cqXPrh.js → DataExport-DNGgWqsx.js} +1 -1
- package/dist/{DataExport.vue_vue_type_script_setup_true_lang-DmB5AeGR.js → DataExport.vue_vue_type_script_setup_true_lang-tTTDFXQV.js} +24 -25
- package/dist/{DataImport-3KwXYYGw.js → DataImport-CI9eM5T1.js} +1 -1
- package/dist/{DataImport.vue_vue_type_script_setup_true_lang-C9xs1_ec.js → DataImport.vue_vue_type_script_setup_true_lang-BCMd1s45.js} +39 -40
- package/dist/{Date-OZxdofhB.js → Date-CGyzi8yX.js} +1 -1
- package/dist/{Date-yHlD-Lw2.js → Date-CZGbZKjB.js} +8 -9
- package/dist/{DateRange-BLSxDHKv.js → DateRange-MbbkmZ_Y.js} +9 -10
- package/dist/{DateTime-B7GzMj8Q.js → DateTime-DHrHmRLL.js} +1 -1
- package/dist/{DateTime-8tbpOKOK.js → DateTime-DqUOXGWH.js} +8 -9
- package/dist/{DateTimeRange-COFWmQoO.js → DateTimeRange-DgXQkZLx.js} +11 -12
- package/dist/{Daterange-Cy8l4CfJ.js → Daterange-DLHJuRur.js} +8 -9
- package/dist/{Decimal-Dw6EtZOm.js → Decimal-BUJuuvfr.js} +1 -1
- package/dist/{Delete-DjXSCUKp.js → Delete-BGMk0orl.js} +19 -20
- package/dist/{Detail-DU8mI4u2.js → Detail-D4KzWdHQ.js} +7 -8
- package/dist/Dictionary-Esd3ERAq.js +55 -0
- package/dist/{Email-AHWpz5Ck.js → Email-C9K09hwC.js} +11 -12
- package/dist/{File-DUxwHR5G.js → File-ai1eYO7v.js} +43 -44
- package/dist/{Image-BJ5q87B6.js → Image-CfY4G1Yn.js} +1 -1
- package/dist/{Index-Z8HW5XAm.js → Index-B5o7uf36.js} +15 -16
- package/dist/Index-CH3nwnPZ.js +4 -0
- package/dist/Index-CTjDkp7e.js +4 -0
- package/dist/Index-DSZ8wa7U.js +4 -0
- package/dist/Index-DVdiF3gr.js +4 -0
- package/dist/{Index-Jt1omrn-.js → Index-DYHrSEZ5.js} +1 -1
- package/dist/Index-DsZPtDYE.js +173 -0
- package/dist/{Index-KTv20XtO.js → Index-S1btGSGD.js} +1 -1
- package/dist/{Index.vue_vue_type_script_setup_true_lang-_8v_4G-B.js → Index.vue_vue_type_script_setup_true_lang-BjE0VeTO.js} +6 -7
- package/dist/{Index.vue_vue_type_script_setup_true_lang-BznVrY52.js → Index.vue_vue_type_script_setup_true_lang-H8ogKL2I.js} +14 -20
- package/dist/{Install-C-xxCx9D.js → Install-D-MgafyF.js} +13 -14
- package/dist/{Int-BsHpY5Gt.js → Int-CnvfCxgn.js} +9 -10
- package/dist/{Int-1QpMyTPB.js → Int-D3RqVcmN.js} +13 -14
- package/dist/{List-DW7FpMfd.js → List-DA4SO_le.js} +18 -19
- package/dist/Maintaince-BIgEbjrq.js +14 -0
- package/dist/{Markdown-BZhSwheI.js → Markdown-hax8By5O.js} +1 -1
- package/dist/Month-5lTUiWin.js +37 -0
- package/dist/{Month-IJnA7Kgl.js → Month-BDkwv-vc.js} +11 -12
- package/dist/{Month-BKXtBi6i.js → Month-CnVTSnyK.js} +1 -1
- package/dist/{Normal-CettIwbU.js → Normal-DoE9t7d7.js} +52 -53
- package/dist/Paging-5qsCTRWy.js +92 -0
- package/dist/{PagingHeader-irWrEKGQ.js → PagingHeader-BFtE6jSy.js} +35 -36
- package/dist/{PagingRow-Bft1brFD.js → PagingRow-CSB-kwMz.js} +19 -20
- package/dist/{Racebar-D3VFwM1V.js → Racebar-Bc-dDRss.js} +25 -31
- package/dist/{Radio-C-IwNXnz.js → Radio-CMGOtMnx.js} +1 -1
- package/dist/{Register-XTfqbbgr.js → Register-8wi0uixs.js} +60 -61
- package/dist/RichText-BR4Kvx0J.js +41 -0
- package/dist/{SearchFooter-hC7sQBez.js → SearchFooter-DOC21dmS.js} +1 -1
- package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-DgM6JntR.js → SearchFooter.vue_vue_type_style_index_0_lang-CoJZtP84.js} +3 -3
- package/dist/{SearchForm-BTux7Adt.js → SearchForm-BMTSPce_.js} +1 -1
- package/dist/{SearchForm.vue_vue_type_style_index_0_lang-Ddpe-p19.js → SearchForm.vue_vue_type_style_index_0_lang-wiTxKu-H.js} +31 -32
- package/dist/{Select-ClAK8aNJ.js → Select-DAxdpZlO.js} +15 -16
- package/dist/{Select-K1dU20i2.js → Select-DnFyey0n.js} +30 -31
- package/dist/{Select-DlM_C-60.js → Select-MBD4Simw.js} +1 -1
- package/dist/{Single-DYDwq041.js → Single-D6x6VV_B.js} +74 -75
- package/dist/{Statistic-CidgrAcU.js → Statistic-BS_DA72m.js} +29 -30
- package/dist/{Stock-BFszdaCn.js → Stock-CbucObTu.js} +1 -1
- package/dist/{Stock-BiuhsKPB.js → Stock-CtmevqBK.js} +1 -1
- package/dist/{Stock.vue_vue_type_style_index_0_lang-O1UAbsov.js → Stock.vue_vue_type_style_index_0_lang-LfsWg1Ps.js} +17 -18
- package/dist/{Switch-TI8J8-E2.js → Switch-BlXAy9qH.js} +1 -1
- package/dist/{Table-DJOSPNrn.js → Table-CqsfAMh7.js} +73 -74
- package/dist/{Table-DYELgaTY.js → Table-Da9gan1Y.js} +61 -62
- package/dist/Text-C72NLZMt.js +48 -0
- package/dist/Text-CHvsKR9H.js +4 -0
- package/dist/{Text-DEv-wMFU.js → Text-CbZlEVTJ.js} +11 -12
- package/dist/Text.vue_vue_type_style_index_0_lang-aMaBccpg.js +53 -0
- package/dist/{TextLink-CKPExcuj.js → TextLink-SAnZ7BfX.js} +10 -11
- package/dist/{Textarea-CEv7HYqY.js → Textarea-DphCUpXp.js} +1 -1
- package/dist/{Time-BeTq6Tq3.js → Time-DjE8yYdK.js} +10 -11
- package/dist/{Timeline-BI2o8Kug.js → Timeline-D11vjkpZ.js} +13 -19
- package/dist/{Tree-DlIrY3e2.js → Tree-DK73Ou_F.js} +35 -41
- package/dist/{Tree-BPeNz1X4.js → Tree-kich05vY.js} +79 -80
- package/dist/{TreeNode-CzM6Npi5.js → TreeNode-Dx6cZ31Z.js} +10 -11
- package/dist/{Update-Bv6Lp8LZ.js → Update-D2Plm_AG.js} +14 -15
- package/dist/{UpdateChild-mrF1t5G8.js → UpdateChild-BXV7QqaP.js} +20 -21
- package/dist/{Upload-BCdzJlzR.js → Upload-B87EDynn.js} +46 -47
- package/dist/Upload-CHPjMGFZ.js +65 -0
- package/dist/{Year-DLITl-_8.js → Year-BPFmIiPX.js} +1 -1
- package/dist/{Year-2hJSZcj_.js → Year-C93IJgc8.js} +8 -9
- package/dist/assets/{clipboard-DjQPoCBJ.js → clipboard-ClN4QccS.js} +1 -3
- package/dist/main-nvsTmKXH.js +16321 -0
- package/dist/main.js +43 -45
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/dist/Autocomplete-C7CYy8w6.js +0 -50
- package/dist/Callback-CLA9Ab9q.js +0 -21
- package/dist/Cascader-DY2zOwsa.js +0 -47
- package/dist/Code-B4Z7WuUc.js +0 -42
- package/dist/Code-BOTf1uZ5.js +0 -60
- package/dist/Code-Da4PjT9q.js +0 -4
- package/dist/Code.vue_vue_type_style_index_0_lang-ChjwMs7I.js +0 -63
- package/dist/Column-9A6-8_Y7.js +0 -75
- package/dist/Dictionary-CAAvUqf-.js +0 -61
- package/dist/Index-CF44rsZW.js +0 -4
- package/dist/Index-CnFjsuQV.js +0 -4
- package/dist/Index-D223MCYD.js +0 -174
- package/dist/Index-DCIDLocj.js +0 -4
- package/dist/Index-qIfIbiFH.js +0 -4
- package/dist/Maintaince-CjUfJUr7.js +0 -20
- package/dist/Month-m0FiTmBK.js +0 -38
- package/dist/Paging-J9vCBFzM.js +0 -93
- package/dist/RichText-D3aLlQph.js +0 -47
- package/dist/Text-DAliAA9U.js +0 -4
- package/dist/Text-Dy6uYSm3.js +0 -49
- package/dist/Text.vue_vue_type_style_index_0_lang-Cm-1AGNB.js +0 -59
- package/dist/Upload-B0dBN1oH.js +0 -71
- package/dist/assets/clone-BZn0cTAu.js +0 -134
- package/dist/assets/file-saver-CwlpTZSc.js +0 -74
- package/dist/assets/liquidjs-C2HVw1Ra.js +0 -2901
- package/dist/assets/moment-h96o7c8I.js +0 -2578
- package/dist/assets/sprintf-js-BPTdvBYM.js +0 -148
- package/dist/assets/underscore-B0BCaBxV.js +0 -1070
- package/dist/assets/underscore.string-DVXD2SZo.js +0 -425
- package/dist/assets/util-deprecate-Dzun97re.js +0 -28
- package/dist/main-SNlEeN01.js +0 -10337
@@ -0,0 +1,36 @@
|
|
1
|
+
import { defineComponent as v, toRefs as h, ref as i, openBlock as V, createBlock as y, unref as n, normalizeStyle as x, isRef as F } from "vue";
|
2
|
+
import { j as _ } from "./main-nvsTmKXH.js";
|
3
|
+
const C = /* @__PURE__ */ v({
|
4
|
+
__name: "Code",
|
5
|
+
props: {
|
6
|
+
schema: {},
|
7
|
+
table: {},
|
8
|
+
field: {},
|
9
|
+
set: {},
|
10
|
+
row: {},
|
11
|
+
modelValue: {}
|
12
|
+
},
|
13
|
+
setup(s) {
|
14
|
+
let f = s, { table: g, field: t, set: b, row: d, modelValue: a } = h(f), r = i(), o = i({ language: null, readonly: !0, lineNumbers: "off" }), m = () => t.value.control.height ? `height: ${t.value.control.height}px` : "min-height: 200px;", p = (e) => e ? g.value.fields.find((u) => u.name == e) : null, c = (e) => {
|
15
|
+
let l = p(e);
|
16
|
+
return l ? d.value[l.name] : null;
|
17
|
+
};
|
18
|
+
return (() => {
|
19
|
+
if (r.value = m(), t.value.control.languageField == null)
|
20
|
+
o.value.language = t.value.control.language;
|
21
|
+
else {
|
22
|
+
let e = c(t.value.control.languageField);
|
23
|
+
e && (o.value.language = e);
|
24
|
+
}
|
25
|
+
})(), (e, l) => (V(), y(n(_), {
|
26
|
+
class: "text-code",
|
27
|
+
options: n(o),
|
28
|
+
style: x(n(r)),
|
29
|
+
modelValue: n(a),
|
30
|
+
"onUpdate:modelValue": l[0] || (l[0] = (u) => F(a) ? a.value = u : a = u)
|
31
|
+
}, null, 8, ["options", "style", "modelValue"]));
|
32
|
+
}
|
33
|
+
});
|
34
|
+
export {
|
35
|
+
C as default
|
36
|
+
};
|
@@ -0,0 +1,57 @@
|
|
1
|
+
import { defineComponent as C, toRefs as b, ref as d, onMounted as k, resolveComponent as m, openBlock as r, createElementBlock as u, createVNode as i, unref as e, isRef as h, withCtx as p, Fragment as c, renderList as B, createBlock as L, createTextVNode as _, toDisplayString as f, createCommentVNode as N } from "vue";
|
2
|
+
import { C as w, j as E } from "./main-nvsTmKXH.js";
|
3
|
+
const R = { class: "ha-code-layout" }, T = /* @__PURE__ */ C({
|
4
|
+
__name: "Code",
|
5
|
+
props: {
|
6
|
+
route: {},
|
7
|
+
validateErrors: {},
|
8
|
+
module: {},
|
9
|
+
schema: {},
|
10
|
+
table: {},
|
11
|
+
layout: {},
|
12
|
+
next: {},
|
13
|
+
set: {}
|
14
|
+
},
|
15
|
+
emits: ["submit", "change"],
|
16
|
+
setup(g, { emit: S }) {
|
17
|
+
let V = g, { module: U, schema: j, table: A, layout: l, next: D, set: F } = b(V), n = d({}), t = d(), v = () => {
|
18
|
+
t.value = l.value.languages[0];
|
19
|
+
};
|
20
|
+
return k(async () => {
|
21
|
+
v();
|
22
|
+
let s = await w.loadCodeLanguageAsync();
|
23
|
+
for (let a of s)
|
24
|
+
n.value[a.text] = a.suffix;
|
25
|
+
}), (s, a) => {
|
26
|
+
const x = m("el-radio"), y = m("el-radio-group");
|
27
|
+
return r(), u("div", R, [
|
28
|
+
i(y, {
|
29
|
+
modelValue: e(t),
|
30
|
+
"onUpdate:modelValue": a[0] || (a[0] = (o) => h(t) ? t.value = o : t = o)
|
31
|
+
}, {
|
32
|
+
default: p(() => [
|
33
|
+
(r(!0), u(c, null, B(e(l).languages, (o) => (r(), L(x, { value: o }, {
|
34
|
+
default: p(() => [
|
35
|
+
_(f(o) + " ", 1),
|
36
|
+
e(n)[o] ? (r(), u(c, { key: 0 }, [
|
37
|
+
_("(" + f(e(n)[o]) + ")", 1)
|
38
|
+
], 64)) : N("", !0)
|
39
|
+
]),
|
40
|
+
_: 2
|
41
|
+
}, 1032, ["value"]))), 256))
|
42
|
+
]),
|
43
|
+
_: 1
|
44
|
+
}, 8, ["modelValue"]),
|
45
|
+
i(e(E), {
|
46
|
+
border: "",
|
47
|
+
options: { language: e(n)[e(t)] },
|
48
|
+
modelValue: e(l).codes[e(t)],
|
49
|
+
"onUpdate:modelValue": a[1] || (a[1] = (o) => e(l).codes[e(t)] = o)
|
50
|
+
}, null, 8, ["options", "modelValue"])
|
51
|
+
]);
|
52
|
+
};
|
53
|
+
}
|
54
|
+
});
|
55
|
+
export {
|
56
|
+
T as _
|
57
|
+
};
|
@@ -0,0 +1,69 @@
|
|
1
|
+
import { defineComponent as b, toRefs as D, onMounted as E, computed as k, openBlock as r, createBlock as C, unref as e, withCtx as y, createElementBlock as s, Fragment as H, renderList as L, normalizeClass as O, createCommentVNode as i, createElementVNode as a, toDisplayString as m, resolveDynamicComponent as S, createVNode as h, createTextVNode as u } from "vue";
|
2
|
+
import { O as z, d as _, B as F, H as P } from "./main-nvsTmKXH.js";
|
3
|
+
import "element-plus";
|
4
|
+
import "vue-router";
|
5
|
+
import "./assets/intro.js-Cg1adLK7.js";
|
6
|
+
const R = {
|
7
|
+
key: 0,
|
8
|
+
class: "menus"
|
9
|
+
}, T = ["onClick"], $ = { class: "title" }, j = {
|
10
|
+
key: 1,
|
11
|
+
class: "column-empty"
|
12
|
+
}, Q = /* @__PURE__ */ b({
|
13
|
+
__name: "Column",
|
14
|
+
props: {
|
15
|
+
view: {},
|
16
|
+
url: {},
|
17
|
+
win: {}
|
18
|
+
},
|
19
|
+
emits: ["loaded", "navigate"],
|
20
|
+
setup(g, { expose: x, emit: B }) {
|
21
|
+
let d = B, w = g, { url: p, view: c } = D(w), N = (l) => !0, U = (l) => !0, V = () => {
|
22
|
+
v();
|
23
|
+
}, v = () => {
|
24
|
+
d("loaded", n.value.title);
|
25
|
+
}, M = (l) => {
|
26
|
+
let t = _.url.getUrl(l.url, { m: l.id });
|
27
|
+
d("navigate", t);
|
28
|
+
};
|
29
|
+
E(() => {
|
30
|
+
v();
|
31
|
+
});
|
32
|
+
let n = k(() => z.getMenuByUrl(p.value)), f = k(() => _.url.getPath(p.value));
|
33
|
+
return x({ shouldLoad: N, shouldSpin: U, refresh: V }), (l, t) => (r(), C(e(F), null, {
|
34
|
+
default: y(() => [
|
35
|
+
e(n) ? (r(), s("div", R, [
|
36
|
+
(r(!0), s(H, null, L(e(n).children, (o) => (r(), s("div", {
|
37
|
+
class: "menu",
|
38
|
+
key: o.id,
|
39
|
+
onClick: (q) => e(M)(o)
|
40
|
+
}, [
|
41
|
+
o.icon ? (r(), s("i", {
|
42
|
+
key: 0,
|
43
|
+
class: O(o.icon)
|
44
|
+
}, null, 2)) : i("", !0),
|
45
|
+
a("div", $, m(o.title), 1)
|
46
|
+
], 8, T))), 128))
|
47
|
+
])) : i("", !0),
|
48
|
+
(r(), C(S(e(c)))),
|
49
|
+
(!e(n) || e(n).children == 0) && !e(c) ? (r(), s("div", j, [
|
50
|
+
h(e(P), null, {
|
51
|
+
default: y(() => t[0] || (t[0] = [
|
52
|
+
u(" 此栏目页不存在子菜单或自定义部分视图,无内容可展示 ")
|
53
|
+
])),
|
54
|
+
_: 1
|
55
|
+
}),
|
56
|
+
t[1] || (t[1] = u(" 可考虑以下任一选项:")),
|
57
|
+
t[2] || (t[2] = a("br", null, null, -1)),
|
58
|
+
u(" 1. 在 src/views 中实现自定义页面:" + m(e(f)), 1),
|
59
|
+
t[3] || (t[3] = a("br", null, null, -1)),
|
60
|
+
u(" 2. 在 src/coms/partials 中实现自定义首页部分视图:" + m(e(f)), 1)
|
61
|
+
])) : i("", !0)
|
62
|
+
]),
|
63
|
+
_: 1
|
64
|
+
}));
|
65
|
+
}
|
66
|
+
});
|
67
|
+
export {
|
68
|
+
Q as default
|
69
|
+
};
|
@@ -1,12 +1,6 @@
|
|
1
|
-
import { defineComponent as E, toRefs as N, ref as j, computed as y, resolveComponent as
|
2
|
-
import {
|
3
|
-
|
4
|
-
import "./assets/underscore-B0BCaBxV.js";
|
5
|
-
import "./assets/file-saver-CwlpTZSc.js";
|
6
|
-
import "./assets/clone-BZn0cTAu.js";
|
7
|
-
import "./assets/underscore.string-DVXD2SZo.js";
|
8
|
-
import "./assets/moment-h96o7c8I.js";
|
9
|
-
const F = { class: "ha-comment-layout" }, L = { class: "comment-add" }, M = { class: "add-footer" }, R = { class: "footer-title" }, S = { class: "comment-user" }, $ = { class: "avatar" }, A = { class: "comment-body" }, G = { class: "comment-time" }, H = { class: "comment-content" }, J = { class: "comment-footer" }, oe = /* @__PURE__ */ E({
|
1
|
+
import { defineComponent as E, toRefs as N, ref as j, computed as y, resolveComponent as c, openBlock as m, createElementBlock as _, createElementVNode as e, createVNode as v, createTextVNode as a, toDisplayString as r, unref as t, withCtx as b, Fragment as B, renderList as T, createBlock as q, createCommentVNode as D } from "vue";
|
2
|
+
import { d as F } from "./main-nvsTmKXH.js";
|
3
|
+
const L = { class: "ha-comment-layout" }, M = { class: "comment-add" }, R = { class: "add-footer" }, S = { class: "footer-title" }, U = { class: "comment-user" }, $ = { class: "avatar" }, A = { class: "comment-body" }, G = { class: "comment-time" }, H = { class: "comment-content" }, J = { class: "comment-footer" }, W = /* @__PURE__ */ E({
|
10
4
|
__name: "Comment",
|
11
5
|
props: {
|
12
6
|
route: {},
|
@@ -19,19 +13,19 @@ const F = { class: "ha-comment-layout" }, L = { class: "comment-add" }, M = { cl
|
|
19
13
|
set: {}
|
20
14
|
},
|
21
15
|
setup(C) {
|
22
|
-
let x = C, { schema: K, table: i, layout: n, set: p, validateErrors: O } = N(x),
|
23
|
-
|
16
|
+
let x = C, { schema: K, table: i, layout: n, set: p, validateErrors: O } = N(x), u = j(1), k = (s) => {
|
17
|
+
u.value = s;
|
24
18
|
}, w = y(() => {
|
25
|
-
let s = (
|
26
|
-
return p.value[i.value.name].filter((h,
|
19
|
+
let s = (u.value - 1) * n.value.size, o = u.value * n.value.size - 1;
|
20
|
+
return p.value[i.value.name].filter((h, d) => d >= s && d <= o);
|
27
21
|
}), f = y(() => i.value.fields.find((o) => o.name == n.value.userId));
|
28
22
|
return (s, o) => {
|
29
|
-
const g =
|
30
|
-
return
|
31
|
-
e("div",
|
23
|
+
const g = c("el-input"), h = c("el-button"), d = c("router-link"), I = c("el-pagination");
|
24
|
+
return m(), _("div", L, [
|
25
|
+
e("div", M, [
|
32
26
|
v(g, { type: "textarea" }),
|
33
|
-
e("div",
|
34
|
-
e("div",
|
27
|
+
e("div", R, [
|
28
|
+
e("div", S, [
|
35
29
|
o[0] || (o[0] = e("i", { class: "el-icon-s-comment" }, null, -1)),
|
36
30
|
a("全部评论 (" + r(t(p)[t(i).name].length) + ")", 1)
|
37
31
|
]),
|
@@ -47,11 +41,11 @@ const F = { class: "ha-comment-layout" }, L = { class: "comment-add" }, M = { cl
|
|
47
41
|
})
|
48
42
|
])
|
49
43
|
]),
|
50
|
-
(
|
44
|
+
(m(!0), _(B, null, T(t(w), (l, z) => (m(), _("div", {
|
51
45
|
class: "comment",
|
52
46
|
key: z
|
53
47
|
}, [
|
54
|
-
e("div",
|
48
|
+
e("div", U, [
|
55
49
|
e("div", $, [
|
56
50
|
o[2] || (o[2] = e("img", {
|
57
51
|
src: "https://upload.jianshu.io/users/upload_avatars/2859365/cce8943353eb.jpeg?imageMogr2/auto-orient/strip|imageView2/1/w/80/h/80/format/webp",
|
@@ -61,16 +55,16 @@ const F = { class: "ha-comment-layout" }, L = { class: "comment-add" }, M = { cl
|
|
61
55
|
])
|
62
56
|
]),
|
63
57
|
e("div", A, [
|
64
|
-
t(f) ? (
|
58
|
+
t(f) ? (m(), q(d, {
|
65
59
|
key: 0,
|
66
60
|
class: "comment-name",
|
67
|
-
to: t(
|
61
|
+
to: t(F).url.getUrl("/sys_user/detail", { id: l[t(n).userId], m: s.$route.query.m })
|
68
62
|
}, {
|
69
63
|
default: b(() => [
|
70
64
|
a(r(t(f).control.data.data.find((V) => V.value == l[t(n).userId]).text), 1)
|
71
65
|
]),
|
72
66
|
_: 2
|
73
|
-
}, 1032, ["to"])) :
|
67
|
+
}, 1032, ["to"])) : D("", !0),
|
74
68
|
e("div", G, r(l[t(n).commentTime]), 1),
|
75
69
|
e("div", H, r(l[t(n).content]), 1),
|
76
70
|
o[3] || (o[3] = e("div", { class: "content-footer" }, [
|
@@ -89,7 +83,7 @@ const F = { class: "ha-comment-layout" }, L = { class: "comment-add" }, M = { cl
|
|
89
83
|
v(I, {
|
90
84
|
background: "",
|
91
85
|
layout: "total, prev, pager, next, jumper",
|
92
|
-
"current-page": t(
|
86
|
+
"current-page": t(u),
|
93
87
|
"page-size": t(n).size,
|
94
88
|
total: t(p)[t(i).name].length,
|
95
89
|
onCurrentChange: t(k)
|
@@ -100,5 +94,5 @@ const F = { class: "ha-comment-layout" }, L = { class: "comment-add" }, M = { cl
|
|
100
94
|
}
|
101
95
|
});
|
102
96
|
export {
|
103
|
-
|
97
|
+
W as default
|
104
98
|
};
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import { defineComponent as b, toRefs as k, ref as h, onMounted as w, computed as S, watch as v, openBlock as B, createElementBlock as D, normalizeStyle as R, unref as W, nextTick as z } from "vue";
|
2
|
-
import {
|
3
|
-
|
4
|
-
const q = /* @__PURE__ */ b({
|
2
|
+
import { s as L } from "./main-nvsTmKXH.js";
|
3
|
+
const j = /* @__PURE__ */ b({
|
5
4
|
__name: "Compare",
|
6
5
|
props: {
|
7
6
|
schema: {},
|
@@ -13,15 +12,15 @@ const q = /* @__PURE__ */ b({
|
|
13
12
|
},
|
14
13
|
emits: ["submit", "change", "update:modelValue"],
|
15
14
|
setup(V, { emit: M }) {
|
16
|
-
let m = M, y = V, { table: E, field: i, set: O, row: u, modelValue: c } = k(y), r = null, f = null,
|
17
|
-
|
15
|
+
let m = M, y = V, { table: E, field: i, set: O, row: u, modelValue: c } = k(y), r = null, f = null, s = null, t = null, l = null, g = h(), p = h(), _ = (e) => {
|
16
|
+
p.value = C(), z(() => {
|
18
17
|
let a = u.value[d.value.name], o = i.value.control.language;
|
19
|
-
f = e.editor.createModel(c.value, o),
|
18
|
+
f = e.editor.createModel(c.value, o), s = e.editor.createModel(a, o), r = e.editor.createDiffEditor(g.value, {
|
20
19
|
originalEditable: !0,
|
21
20
|
automaticLayout: !0,
|
22
21
|
renderSideBySide: !i.value.control.inline
|
23
22
|
//是否启用行内模式
|
24
|
-
}), r.setModel({ original: f, modified:
|
23
|
+
}), r.setModel({ original: f, modified: s }), t = r.getOriginalEditor(), t.onDidChangeModelContent((x) => {
|
25
24
|
let n = t.getValue();
|
26
25
|
m("update:modelValue", n), m("change", n);
|
27
26
|
}), l = r.getModifiedEditor(), l.onDidChangeModelContent((x) => {
|
@@ -47,12 +46,12 @@ const q = /* @__PURE__ */ b({
|
|
47
46
|
e != o && l.setValue(e ?? "");
|
48
47
|
}), (e, a) => (B(), D("div", {
|
49
48
|
ref_key: "compareRef",
|
50
|
-
ref:
|
49
|
+
ref: g,
|
51
50
|
class: "control-compare",
|
52
|
-
style: R(W(
|
51
|
+
style: R(W(p))
|
53
52
|
}, null, 4));
|
54
53
|
}
|
55
54
|
});
|
56
55
|
export {
|
57
|
-
|
56
|
+
j as default
|
58
57
|
};
|
@@ -1,7 +1,6 @@
|
|
1
|
-
import { defineComponent as x, toRefs as E, onMounted as k, computed as s, unref as
|
2
|
-
import {
|
3
|
-
|
4
|
-
const L = /* @__PURE__ */ x({
|
1
|
+
import { defineComponent as x, toRefs as E, onMounted as k, computed as s, unref as f, openBlock as w, createElementBlock as y, normalizeClass as V, createCommentVNode as b, nextTick as B } from "vue";
|
2
|
+
import { s as N } from "./main-nvsTmKXH.js";
|
3
|
+
const D = /* @__PURE__ */ x({
|
5
4
|
__name: "Compare",
|
6
5
|
props: {
|
7
6
|
schema: {},
|
@@ -11,11 +10,11 @@ const L = /* @__PURE__ */ x({
|
|
11
10
|
row: {},
|
12
11
|
modelValue: {}
|
13
12
|
},
|
14
|
-
setup(
|
15
|
-
let v =
|
13
|
+
setup(p) {
|
14
|
+
let v = p, { table: l, field: t, set: g, row: a, modelValue: M } = E(v), o = l.value.name + "-" + t.value.name + "-" + g.value[l.value.name].indexOf(a.value), r = null, n = null, i = null, e = null, C = () => {
|
16
15
|
B(() => {
|
17
16
|
let d = l.value.fields.find((h) => h.name == t.value.control.compareWith), c = a.value[d.name];
|
18
|
-
n = e.editor.createModel(c,
|
17
|
+
n = e.editor.createModel(c, m.value), i = e.editor.createModel(u.value, m.value);
|
19
18
|
let _ = document.getElementsByClassName(o)[0];
|
20
19
|
r = e.editor.createDiffEditor(_, { originalEditable: !0 }), r.setModel({
|
21
20
|
original: n,
|
@@ -26,13 +25,13 @@ const L = /* @__PURE__ */ x({
|
|
26
25
|
k(async () => {
|
27
26
|
e = await N.getMonaco(), C();
|
28
27
|
});
|
29
|
-
let
|
30
|
-
return (d, c) =>
|
28
|
+
let u = s(() => M.value || ""), m = s(() => t.value.control.type.toLowerCase());
|
29
|
+
return (d, c) => f(u) ? (w(), y("div", {
|
31
30
|
key: 0,
|
32
|
-
class: V(`text-compare ${
|
31
|
+
class: V(`text-compare ${f(o)}`)
|
33
32
|
}, null, 2)) : b("", !0);
|
34
33
|
}
|
35
34
|
});
|
36
35
|
export {
|
37
|
-
|
36
|
+
D as default
|
38
37
|
};
|
@@ -1,11 +1,10 @@
|
|
1
|
-
import { defineComponent as y, toRefs as g, computed as v, unref as
|
2
|
-
import {
|
3
|
-
import "./assets/
|
4
|
-
import { C as k } from "./assets/clipboard-DjQPoCBJ.js";
|
1
|
+
import { defineComponent as y, toRefs as g, computed as v, unref as l, renderSlot as s, openBlock as b, createElementBlock as C, createElementVNode as a } from "vue";
|
2
|
+
import { i as p } from "./main-nvsTmKXH.js";
|
3
|
+
import { C as k } from "./assets/clipboard-ClN4QccS.js";
|
5
4
|
const J = {
|
6
5
|
key: 1,
|
7
6
|
class: "copy-container"
|
8
|
-
},
|
7
|
+
}, E = /* @__PURE__ */ y({
|
9
8
|
__name: "Copy",
|
10
9
|
props: {
|
11
10
|
schema: {},
|
@@ -16,29 +15,29 @@ const J = {
|
|
16
15
|
modelValue: {}
|
17
16
|
},
|
18
17
|
setup(u) {
|
19
|
-
let i = u, { table: w, field:
|
20
|
-
let e = new k(".btn-copy", { text: () =>
|
18
|
+
let i = u, { table: w, field: r, set: N, row: S, modelValue: c } = g(i), d = (e) => JSON.stringify(JSON.parse(e), null, 2), f = () => o.value && r.value.control.type == "Json" ? d(o.value).replace(/"/g, "'") : o.value, n = () => {
|
19
|
+
let e = new k(".btn-copy", { text: () => f() });
|
21
20
|
e.on("success", function(t) {
|
22
21
|
p.success("复制成功"), e.destroy();
|
23
22
|
}), e.on("error", function(t) {
|
24
23
|
p.error("复制失败"), e.destroy();
|
25
24
|
});
|
26
25
|
}, o = v(() => c.value);
|
27
|
-
return (e, t) => r
|
26
|
+
return (e, t) => l(r).control.copy ? (b(), C("div", J, [
|
28
27
|
a("i", {
|
29
28
|
class: "btn-copy",
|
30
29
|
onClick: t[0] || (t[0] = //@ts-ignore
|
31
|
-
(...
|
30
|
+
(...m) => l(n) && l(n)(...m))
|
32
31
|
}, t[1] || (t[1] = [
|
33
32
|
a("img", {
|
34
33
|
src: "/default/images/clippy.svg",
|
35
34
|
alt: "复制文本"
|
36
35
|
}, null, -1)
|
37
36
|
])),
|
38
|
-
|
39
|
-
])) :
|
37
|
+
s(e.$slots, "default")
|
38
|
+
])) : s(e.$slots, "default", { key: 0 });
|
40
39
|
}
|
41
40
|
});
|
42
41
|
export {
|
43
|
-
|
42
|
+
E as default
|
44
43
|
};
|
@@ -1,7 +1,6 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import {
|
3
|
-
|
4
|
-
const $ = /* @__PURE__ */ z({
|
1
|
+
import { defineComponent as A, toRefs as L, ref as u, openBlock as i, createBlock as s, KeepAlive as B, resolveDynamicComponent as K, unref as r } from "vue";
|
2
|
+
import { d as f, i as N, f as U, A as D } from "./main-nvsTmKXH.js";
|
3
|
+
const V = /* @__PURE__ */ A({
|
5
4
|
__name: "Custom",
|
6
5
|
props: {
|
7
6
|
view: {},
|
@@ -9,10 +8,10 @@ const $ = /* @__PURE__ */ z({
|
|
9
8
|
win: {}
|
10
9
|
},
|
11
10
|
emits: ["loaded", "navigate"],
|
12
|
-
setup(d, { expose:
|
13
|
-
let
|
14
|
-
var
|
15
|
-
let l = (
|
11
|
+
setup(d, { expose: v, emit: c }) {
|
12
|
+
let o = c, m = d, { url: n, win: p, view: h } = L(m), t = u(), g = u({}), w = (e) => {
|
13
|
+
var a;
|
14
|
+
let l = (a = t.value) == null ? void 0 : a.beforeClose;
|
16
15
|
l && l(e);
|
17
16
|
}, C = (e) => {
|
18
17
|
t.value == null || t.value.resize == null || t.value.resize(e);
|
@@ -20,8 +19,8 @@ const $ = /* @__PURE__ */ z({
|
|
20
19
|
var l;
|
21
20
|
let e = (l = t.value) == null ? void 0 : l.refresh;
|
22
21
|
if (!e) {
|
23
|
-
let
|
24
|
-
N.notify(
|
22
|
+
let a = f.url.getPath(n.value);
|
23
|
+
N.notify(U("common.tips"), `要实现自定义刷新功能,请在组件 ${a} 内部定义并暴露refresh方法即可`, "warning");
|
25
24
|
return;
|
26
25
|
}
|
27
26
|
e();
|
@@ -29,31 +28,31 @@ const $ = /* @__PURE__ */ z({
|
|
29
28
|
D.triggerKeyboardHandler(t.value, e, l);
|
30
29
|
}, y = (e) => {
|
31
30
|
t.value.socketHandler(e);
|
32
|
-
},
|
31
|
+
}, H = (e) => {
|
33
32
|
if (e == null)
|
34
33
|
return;
|
35
|
-
let l =
|
34
|
+
let l = g.value;
|
36
35
|
if (l[n.value] != null) {
|
37
36
|
t.value = l[n.value];
|
38
37
|
return;
|
39
38
|
}
|
40
39
|
f.dictionary.containsValue(l, e) || (l[n.value] = e, t.value = e);
|
41
|
-
},
|
42
|
-
|
43
|
-
},
|
44
|
-
|
40
|
+
}, R = (e) => {
|
41
|
+
o("loaded", e);
|
42
|
+
}, z = (e) => {
|
43
|
+
o("navigate", e);
|
45
44
|
};
|
46
|
-
return
|
47
|
-
(i(), s(K(r(
|
48
|
-
ref: r(
|
45
|
+
return v({ shouldLoad: _, shouldSpin: b, refresh: k, beforeClose: w, keyboardHandler: x, resize: C, socketHandler: y }), (e, l) => (i(), s(B, null, [
|
46
|
+
(i(), s(K(r(h)), {
|
47
|
+
ref: r(H),
|
49
48
|
url: r(n),
|
50
49
|
win: r(p),
|
51
|
-
onLoaded: r(
|
52
|
-
onNavigate: r(
|
50
|
+
onLoaded: r(R),
|
51
|
+
onNavigate: r(z)
|
53
52
|
}, null, 40, ["url", "win", "onLoaded", "onNavigate"]))
|
54
53
|
], 1024));
|
55
54
|
}
|
56
55
|
});
|
57
56
|
export {
|
58
|
-
|
57
|
+
V as default
|
59
58
|
};
|
@@ -1,7 +1,6 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import {
|
3
|
-
|
4
|
-
const F = { class: "footer-content" }, J = /* @__PURE__ */ q({
|
1
|
+
import { defineComponent as D, toRefs as R, ref as f, resolveComponent as r, openBlock as S, createBlock as T, unref as e, isRef as h, withCtx as a, createElementVNode as _, toDisplayString as c, createVNode as n, createTextVNode as v } from "vue";
|
2
|
+
import { f as m, _ as j, d as z, i as A } from "./main-nvsTmKXH.js";
|
3
|
+
const F = { class: "footer-content" }, I = /* @__PURE__ */ D({
|
5
4
|
__name: "DataExport",
|
6
5
|
props: {
|
7
6
|
route: { type: String },
|
@@ -10,28 +9,28 @@ const F = { class: "footer-content" }, J = /* @__PURE__ */ q({
|
|
10
9
|
},
|
11
10
|
emits: ["close", "update:modelValue"],
|
12
11
|
setup(V, { emit: x }) {
|
13
|
-
let C = x, y = V, { route: b, pageCount: u, modelValue:
|
14
|
-
o.value.end < o.value.start ?
|
15
|
-
}, U = () => {
|
16
|
-
C("update:modelValue", !1);
|
12
|
+
let C = x, y = V, { route: b, pageCount: u, modelValue: s } = R(y), p = f(!1), o = f({ start: 1, end: 100 }), E = (d, t, i) => {
|
13
|
+
o.value.end < o.value.start ? i(new Error("结束页不能小于起始页")) : i();
|
17
14
|
}, k = () => {
|
18
|
-
|
19
|
-
|
15
|
+
C("update:modelValue", !1);
|
16
|
+
}, N = () => {
|
17
|
+
p.value = !0, j.get(b.value, o.value).then(({ data: d, message: t }) => {
|
18
|
+
z.file.save(d.content, d.name), A.success(t);
|
20
19
|
}).finally(() => {
|
21
|
-
|
20
|
+
p.value = !1;
|
22
21
|
});
|
23
22
|
};
|
24
|
-
return (
|
25
|
-
const
|
26
|
-
return
|
23
|
+
return (d, t) => {
|
24
|
+
const i = r("el-input-number"), g = r("el-form-item"), w = r("el-form"), B = r("el-divider"), U = r("el-button"), q = r("el-dialog");
|
25
|
+
return S(), T(q, {
|
27
26
|
class: "data-export",
|
28
27
|
draggable: "",
|
29
28
|
"destroy-on-close": "",
|
30
29
|
title: e(m)("paging.data_export"),
|
31
30
|
width: "350px",
|
32
|
-
onClose: e(
|
33
|
-
modelValue: e(
|
34
|
-
"onUpdate:modelValue": t[3] || (t[3] = (l) =>
|
31
|
+
onClose: e(k),
|
32
|
+
modelValue: e(s),
|
33
|
+
"onUpdate:modelValue": t[3] || (t[3] = (l) => h(s) ? s.value = l : s = l)
|
35
34
|
}, {
|
36
35
|
footer: a(() => [
|
37
36
|
_("div", {
|
@@ -39,11 +38,11 @@ const F = { class: "footer-content" }, J = /* @__PURE__ */ q({
|
|
39
38
|
onClick: t[2] || (t[2] = (l) => e(o).end = e(u))
|
40
39
|
}, c(e(m)("paging.total_page", [e(u)])), 1),
|
41
40
|
_("div", F, [
|
42
|
-
n(
|
41
|
+
n(U, {
|
43
42
|
type: "primary",
|
44
43
|
plain: "",
|
45
|
-
loading: e(
|
46
|
-
onClick: e(
|
44
|
+
loading: e(p),
|
45
|
+
onClick: e(N)
|
47
46
|
}, {
|
48
47
|
default: a(() => [
|
49
48
|
v(c(e(m)("paging.export")), 1)
|
@@ -53,7 +52,7 @@ const F = { class: "footer-content" }, J = /* @__PURE__ */ q({
|
|
53
52
|
])
|
54
53
|
]),
|
55
54
|
default: a(() => [
|
56
|
-
n(
|
55
|
+
n(w, {
|
57
56
|
ref: "export",
|
58
57
|
inline: "",
|
59
58
|
model: e(o)
|
@@ -64,7 +63,7 @@ const F = { class: "footer-content" }, J = /* @__PURE__ */ q({
|
|
64
63
|
rules: [{ required: !0, message: "起始页不能为空", trigger: "change" }]
|
65
64
|
}, {
|
66
65
|
default: a(() => [
|
67
|
-
n(
|
66
|
+
n(i, {
|
68
67
|
"controls-position": "right",
|
69
68
|
min: 1,
|
70
69
|
step: 100,
|
@@ -83,7 +82,7 @@ const F = { class: "footer-content" }, J = /* @__PURE__ */ q({
|
|
83
82
|
]
|
84
83
|
}, {
|
85
84
|
default: a(() => [
|
86
|
-
n(
|
85
|
+
n(i, {
|
87
86
|
"controls-position": "right",
|
88
87
|
min: e(o).start,
|
89
88
|
max: e(u),
|
@@ -97,7 +96,7 @@ const F = { class: "footer-content" }, J = /* @__PURE__ */ q({
|
|
97
96
|
]),
|
98
97
|
_: 1
|
99
98
|
}, 8, ["model"]),
|
100
|
-
n(
|
99
|
+
n(B)
|
101
100
|
]),
|
102
101
|
_: 1
|
103
102
|
}, 8, ["title", "onClose", "modelValue"]);
|
@@ -105,5 +104,5 @@ const F = { class: "footer-content" }, J = /* @__PURE__ */ q({
|
|
105
104
|
}
|
106
105
|
});
|
107
106
|
export {
|
108
|
-
|
107
|
+
I as _
|
109
108
|
};
|