halo-pc 1.0.36 → 1.0.38
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{Article-CSL7LnKj.js → Article-H_clf90b.js} +56 -59
- package/dist/{ArticleFooter-_CUySAZu.js → ArticleFooter-BLi4TNA7.js} +3 -4
- package/dist/Autocomplete-BF9x0F4f.js +49 -0
- package/dist/{Autocomplete-BTBqlR6B.js → Autocomplete-CcIzTPSr.js} +11 -12
- package/dist/{Autocomplete-CIRk6M3c.js → Autocomplete-DMm6oI1g.js} +1 -1
- package/dist/{CSharp-CMmXPS2i.js → CSharp-CZOchOE-.js} +1 -1
- package/dist/Calender-BoQV7bhA.js +10 -0
- package/dist/Callback-79Bw4RwY.js +20 -0
- package/dist/Cascader-D1Ou5OSg.js +41 -0
- package/dist/{Cascader-CeQ0jUxU.js → Cascader-DMhl98vw.js} +25 -26
- package/dist/{Checkbox-Fddc4Zgy.js → Checkbox-C6t6S7ii.js} +1 -1
- package/dist/{Checkbox--pNX7Slb.js → Checkbox-DtrXMDBR.js} +13 -14
- package/dist/Code-B8ISTTYK.js +54 -0
- package/dist/Code-BMlBvnqa.js +4 -0
- package/dist/{Code-C6A3DOQp.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-T5XWLthu.js → Comment-Ixu0gPk3.js} +29 -35
- package/dist/{Compare-KV2Q7Tb7.js → Compare-C1uq4lgK.js} +7 -8
- package/dist/{Compare-jjtb6UdZ.js → Compare-NN40QJWm.js} +9 -10
- package/dist/{Copy-Ck1HeTdy.js → Copy-BcfSvyWG.js} +11 -12
- package/dist/Custom-Dn9_vPuD.js +58 -0
- package/dist/{DataExport-BY1fIwSd.js → DataExport-DNGgWqsx.js} +1 -1
- package/dist/{DataExport.vue_vue_type_script_setup_true_lang-Bv4Pc10r.js → DataExport.vue_vue_type_script_setup_true_lang-tTTDFXQV.js} +24 -25
- package/dist/{DataImport--xUxoWAq.js → DataImport-CI9eM5T1.js} +1 -1
- package/dist/{DataImport.vue_vue_type_script_setup_true_lang-BhPGLJCz.js → DataImport.vue_vue_type_script_setup_true_lang-BCMd1s45.js} +39 -40
- package/dist/{Date-C3H04U5q.js → Date-CGyzi8yX.js} +1 -1
- package/dist/{Date-DRk7BsnD.js → Date-CZGbZKjB.js} +8 -9
- package/dist/{DateRange-CICZ9gVp.js → DateRange-MbbkmZ_Y.js} +9 -10
- package/dist/{DateTime-DXHkaHtE.js → DateTime-DHrHmRLL.js} +1 -1
- package/dist/{DateTime-CjTCtAm4.js → DateTime-DqUOXGWH.js} +8 -9
- package/dist/{DateTimeRange-CuEYJBUE.js → DateTimeRange-DgXQkZLx.js} +11 -12
- package/dist/{Daterange-cmpjJVxl.js → Daterange-DLHJuRur.js} +8 -9
- package/dist/{Decimal-BzR8o8bv.js → Decimal-BUJuuvfr.js} +1 -1
- package/dist/{Delete-B2VzOnk8.js → Delete-BGMk0orl.js} +19 -20
- package/dist/{Detail-ayakHymC.js → Detail-D4KzWdHQ.js} +7 -8
- package/dist/Dictionary-Esd3ERAq.js +55 -0
- package/dist/{Email-BbipkOFP.js → Email-C9K09hwC.js} +9 -10
- package/dist/{File-B131KRit.js → File-ai1eYO7v.js} +49 -50
- package/dist/Image-CfY4G1Yn.js +9 -0
- package/dist/{Index-BnudlpyF.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-Bps1k5-m.js → Index-DYHrSEZ5.js} +1 -1
- package/dist/Index-DsZPtDYE.js +173 -0
- package/dist/{Index-B20QLMmF.js → Index-S1btGSGD.js} +1 -1
- package/dist/{Index.vue_vue_type_script_setup_true_lang-C-7l_RSt.js → Index.vue_vue_type_script_setup_true_lang-BjE0VeTO.js} +8 -9
- package/dist/{Index.vue_vue_type_script_setup_true_lang-IX-mfiEH.js → Index.vue_vue_type_script_setup_true_lang-H8ogKL2I.js} +19 -27
- package/dist/{Install-BnCA1XK8.js → Install-D-MgafyF.js} +13 -14
- package/dist/{Int-BSA4Srky.js → Int-CnvfCxgn.js} +9 -10
- package/dist/{Int-BlwraOyw.js → Int-D3RqVcmN.js} +13 -14
- package/dist/List-DA4SO_le.js +71 -0
- package/dist/Maintaince-BIgEbjrq.js +14 -0
- package/dist/{Markdown-Can2d8HC.js → Markdown-hax8By5O.js} +1 -1
- package/dist/Month-5lTUiWin.js +37 -0
- package/dist/{Month-ClTpaaAr.js → Month-BDkwv-vc.js} +12 -13
- package/dist/{Month-Dyt_wc8r.js → Month-CnVTSnyK.js} +1 -1
- package/dist/{Normal-DBRpkCNs.js → Normal-DoE9t7d7.js} +73 -74
- package/dist/Paging-5qsCTRWy.js +92 -0
- package/dist/{PagingHeader-BQ-8s0NC.js → PagingHeader-BFtE6jSy.js} +35 -36
- package/dist/{PagingRow-CqAYVjxH.js → PagingRow-CSB-kwMz.js} +19 -20
- package/dist/{Racebar-BhRmArVA.js → Racebar-Bc-dDRss.js} +26 -32
- package/dist/{Radio-DCVAYEgh.js → Radio-CMGOtMnx.js} +1 -1
- package/dist/{Register-Dr5HF0B6.js → Register-8wi0uixs.js} +54 -55
- package/dist/RichText-BR4Kvx0J.js +41 -0
- package/dist/{SearchFooter-D02JAZez.js → SearchFooter-DOC21dmS.js} +1 -1
- package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-dBZJFNo0.js → SearchFooter.vue_vue_type_style_index_0_lang-CoJZtP84.js} +3 -3
- package/dist/{SearchForm-DhrX5Akr.js → SearchForm-BMTSPce_.js} +1 -1
- package/dist/{SearchForm.vue_vue_type_style_index_0_lang-Dx26ti3G.js → SearchForm.vue_vue_type_style_index_0_lang-wiTxKu-H.js} +38 -41
- package/dist/{Select-ChwyjjbN.js → Select-DAxdpZlO.js} +8 -9
- package/dist/{Select-DK5-x-rC.js → Select-DnFyey0n.js} +23 -24
- package/dist/{Select-CaGb3SAi.js → Select-MBD4Simw.js} +1 -1
- package/dist/{Single-DIyLnILS.js → Single-D6x6VV_B.js} +85 -88
- package/dist/{Statistic-ArzDDFwp.js → Statistic-BS_DA72m.js} +22 -23
- package/dist/{Stock-DapT2McI.js → Stock-CbucObTu.js} +1 -1
- package/dist/{Stock-CsVIZtQ4.js → Stock-CtmevqBK.js} +1 -1
- package/dist/{Stock.vue_vue_type_style_index_0_lang-JABRw23-.js → Stock.vue_vue_type_style_index_0_lang-LfsWg1Ps.js} +12 -13
- package/dist/{Switch-B0VJc80B.js → Switch-BlXAy9qH.js} +1 -1
- package/dist/{Table-C5kHBVpV.js → Table-CqsfAMh7.js} +84 -87
- package/dist/{Table-Cwe8QuVi.js → Table-Da9gan1Y.js} +78 -79
- package/dist/Text-C72NLZMt.js +48 -0
- package/dist/Text-CHvsKR9H.js +4 -0
- package/dist/{Text-CK1PT6x8.js → Text-CbZlEVTJ.js} +10 -11
- package/dist/Text.vue_vue_type_style_index_0_lang-aMaBccpg.js +53 -0
- package/dist/{TextLink-Bn_Z4Ajl.js → TextLink-SAnZ7BfX.js} +10 -11
- package/dist/{Textarea-C6Pi4p9b.js → Textarea-DphCUpXp.js} +1 -1
- package/dist/{Time-DWG3pwjK.js → Time-DjE8yYdK.js} +10 -11
- package/dist/{Timeline-Bqq3rFbX.js → Timeline-D11vjkpZ.js} +13 -19
- package/dist/Tree-DK73Ou_F.js +117 -0
- package/dist/{Tree-CU2UHknq.js → Tree-kich05vY.js} +99 -102
- package/dist/{TreeNode-DD-YfbgL.js → TreeNode-Dx6cZ31Z.js} +10 -11
- package/dist/{Update-BdbT4B2n.js → Update-D2Plm_AG.js} +14 -15
- package/dist/{UpdateChild-CVgQs6_A.js → UpdateChild-BXV7QqaP.js} +20 -21
- package/dist/{Upload-CKHSikDI.js → Upload-B87EDynn.js} +44 -45
- package/dist/Upload-CHPjMGFZ.js +65 -0
- package/dist/{Year-nGY1S5_T.js → Year-BPFmIiPX.js} +1 -1
- package/dist/{Year-CnA4ZUPj.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 +137 -136
- package/dist/style.css +1 -1
- package/esm/coms/business/Form.vue.d.ts +2 -1
- package/esm/coms/drivers/@types/DriverEmit.d.ts +18 -0
- package/esm/coms/drivers/@types/DriverKindEmit.d.ts +18 -0
- package/esm/coms/drivers/@types/KindFormProps.d.ts +3 -6
- package/esm/coms/drivers/@types/index.d.ts +3 -1
- package/esm/coms/drivers/Index.vue.d.ts +26 -29
- package/esm/coms/drivers/Kind.vue.d.ts +8 -8
- package/esm/coms/layouts/Index.vue.d.ts +7 -3
- package/esm/coms/layouts/Side.vue.d.ts +5 -2
- package/esm/coms/layouts/Top.vue.d.ts +4 -1
- package/esm/coms/lists/Tree.vue.d.ts +2 -1
- package/esm/coms/pages/@types/index.d.ts +1 -2
- package/esm/coms/pages/Custom.vue.d.ts +2 -1
- package/esm/coms/pages/List.vue.d.ts +1 -1
- package/esm/coms/pages/Paging.vue.d.ts +2 -1
- package/esm/coms/pages/Single.vue.d.ts +2 -1
- package/esm/coms/pagings/Article.vue.d.ts +2 -1
- package/esm/coms/pagings/Index.vue.d.ts +2 -1
- package/esm/coms/pagings/Table.vue.d.ts +2 -1
- package/esm/coms/searches/Text.vue.d.ts +5 -7
- package/esm/svcs/ModuleSvc.d.ts +40 -0
- package/esm/svcs/index.d.ts +3 -3
- package/package.json +9 -9
- package/dist/Autocomplete-Buw1Hs35.js +0 -50
- package/dist/Calender-P8tmSbW2.js +0 -10
- package/dist/Callback-SEWVfpG_.js +0 -21
- package/dist/Cascader-DWNTommi.js +0 -47
- package/dist/Code-CQSTwwc4.js +0 -4
- package/dist/Code-CXMdFELH.js +0 -42
- package/dist/Code-THGJ7IzI.js +0 -60
- package/dist/Code.vue_vue_type_style_index_0_lang-BXOFkrGK.js +0 -63
- package/dist/Column-CucHIBYv.js +0 -75
- package/dist/Custom-CkyWaXAB.js +0 -61
- package/dist/Dictionary-BiSpx7nU.js +0 -61
- package/dist/Image-Cb1PzLpD.js +0 -9
- package/dist/Index-2vdi0Nq0.js +0 -4
- package/dist/Index-BOKSKn0N.js +0 -4
- package/dist/Index-CymZGuJo.js +0 -174
- package/dist/Index-Cz0Ti6rP.js +0 -4
- package/dist/Index-Dhg6Vts6.js +0 -4
- package/dist/List-BnT_8B_q.js +0 -74
- package/dist/Maintaince-CwL7tseR.js +0 -20
- package/dist/Month-CRmTCjQr.js +0 -38
- package/dist/Paging-ByJhfHCh.js +0 -95
- package/dist/RichText-Dj93TxtW.js +0 -47
- package/dist/Text-D2P-_cQT.js +0 -54
- package/dist/Text-oKVRjuSR.js +0 -4
- package/dist/Text.vue_vue_type_style_index_0_lang-epPB32IU.js +0 -59
- package/dist/Tree-DRUGEHR3.js +0 -123
- package/dist/Upload-BCGGzOTn.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-BLb5AIWJ.js +0 -10249
@@ -0,0 +1,54 @@
|
|
1
|
+
import { defineComponent as b, toRefs as h, ref as F, computed as T, watch as _, openBlock as w, createBlock as N, unref as n, isRef as k } from "vue";
|
2
|
+
import { j as x } from "./main-nvsTmKXH.js";
|
3
|
+
const R = /* @__PURE__ */ b({
|
4
|
+
__name: "Code",
|
5
|
+
props: {
|
6
|
+
schema: {},
|
7
|
+
table: {},
|
8
|
+
field: {},
|
9
|
+
set: {},
|
10
|
+
row: {},
|
11
|
+
modelValue: {}
|
12
|
+
},
|
13
|
+
emits: ["submit", "change", "update:modelValue"],
|
14
|
+
setup(d, { emit: g }) {
|
15
|
+
let s = g, p = d, { table: c, field: a, set: y, row: i, modelValue: f } = h(p), o = F({ language: null, scrollTop: 0, lineNumbers: null, schema: null, category: null }), v = (e) => {
|
16
|
+
let l = m(a.value.control.scrollTop);
|
17
|
+
l && (i.value[l.name] = e);
|
18
|
+
}, V = () => {
|
19
|
+
let e = r(a.value.control.scrollTop);
|
20
|
+
if (e && (o.value.scrollTop = parseInt(e)), o.value.lineNumbers = a.value.control.lineNumbers, a.value.control.languageField == null)
|
21
|
+
o.value.language = a.value.control.language;
|
22
|
+
else {
|
23
|
+
let l = r(a.value.control.languageField);
|
24
|
+
l && (o.value.language = l);
|
25
|
+
}
|
26
|
+
a.value.control.schema && (o.value.schema = a.value.control.schema, o.value.category = `${c.value.name}.${a.value.name}`);
|
27
|
+
}, r = (e) => {
|
28
|
+
let l = m(e);
|
29
|
+
return l ? i.value[l.name] : null;
|
30
|
+
}, m = (e) => e ? c.value.fields.find((u) => u.name == e) : null;
|
31
|
+
V();
|
32
|
+
let t = T({
|
33
|
+
get() {
|
34
|
+
return f.value ?? "";
|
35
|
+
},
|
36
|
+
set(e) {
|
37
|
+
s("update:modelValue", e), s("change", e);
|
38
|
+
}
|
39
|
+
});
|
40
|
+
return _(() => r(a.value.control.languageField), (e, l) => {
|
41
|
+
o.value.language = e;
|
42
|
+
}), (e, l) => (w(), N(n(x), {
|
43
|
+
class: "control-code",
|
44
|
+
border: "",
|
45
|
+
options: n(o),
|
46
|
+
onScroll: n(v),
|
47
|
+
modelValue: n(t),
|
48
|
+
"onUpdate:modelValue": l[0] || (l[0] = (u) => k(t) ? t.value = u : t = u)
|
49
|
+
}, null, 8, ["options", "onScroll", "modelValue"]));
|
50
|
+
}
|
51
|
+
});
|
52
|
+
export {
|
53
|
+
R as default
|
54
|
+
};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as r, toRefs as u, openBlock as p, createBlock as _, unref as e } from "vue";
|
2
|
-
import { _ as f } from "./Code.vue_vue_type_style_index_0_lang-
|
2
|
+
import { _ as f } from "./Code.vue_vue_type_style_index_0_lang-hHYTH50F.js";
|
3
3
|
const b = /* @__PURE__ */ r({
|
4
4
|
__name: "Code",
|
5
5
|
props: {
|
@@ -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
|
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 D = { class: "ha-comment-layout" }, F = { class: "comment-add" }, L = { class: "add-footer" }, M = { class: "footer-title" }, R = { 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,21 +13,21 @@ const D = { class: "ha-comment-layout" }, F = { class: "comment-add" }, L = { 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
|
26
|
-
return p.value[i.value.name].filter((h,
|
27
|
-
}),
|
28
|
-
return (
|
29
|
-
const
|
30
|
-
return
|
31
|
-
e("div",
|
32
|
-
v(
|
33
|
-
e("div",
|
34
|
-
e("div",
|
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);
|
21
|
+
}), f = y(() => i.value.fields.find((o) => o.name == n.value.userId));
|
22
|
+
return (s, o) => {
|
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, [
|
26
|
+
v(g, { type: "textarea" }),
|
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
|
]),
|
38
32
|
v(h, {
|
39
33
|
type: "primary",
|
@@ -41,46 +35,46 @@ const D = { class: "ha-comment-layout" }, F = { class: "comment-add" }, L = { cl
|
|
41
35
|
icon: "el-icon-s-promotion"
|
42
36
|
}, {
|
43
37
|
default: b(() => o[1] || (o[1] = [
|
44
|
-
|
38
|
+
a("评论")
|
45
39
|
])),
|
46
40
|
_: 1
|
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",
|
58
52
|
alt: ""
|
59
53
|
}, null, -1)),
|
60
|
-
|
54
|
+
a(" " + r(l[t(n).avatar]), 1)
|
61
55
|
])
|
62
56
|
]),
|
63
57
|
e("div", A, [
|
64
|
-
t(
|
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" }, [
|
77
71
|
e("span", null, [
|
78
72
|
e("i", { class: "fa fa-thumbs-up" }),
|
79
|
-
|
73
|
+
a("20")
|
80
74
|
]),
|
81
75
|
e("span", null, [
|
82
76
|
e("i", { class: "el-icon-s-comment" }),
|
83
|
-
|
77
|
+
a("回复")
|
84
78
|
])
|
85
79
|
], -1))
|
86
80
|
])
|
@@ -89,8 +83,8 @@ const D = { class: "ha-comment-layout" }, F = { class: "comment-add" }, L = { cl
|
|
89
83
|
v(I, {
|
90
84
|
background: "",
|
91
85
|
layout: "total, prev, pager, next, jumper",
|
92
|
-
"current-page": t(
|
93
|
-
"page-size": t(n).
|
86
|
+
"current-page": t(u),
|
87
|
+
"page-size": t(n).size,
|
94
88
|
total: t(p)[t(i).name].length,
|
95
89
|
onCurrentChange: t(k)
|
96
90
|
}, null, 8, ["current-page", "page-size", "total", "onCurrentChange"])
|
@@ -100,5 +94,5 @@ const D = { class: "ha-comment-layout" }, F = { class: "comment-add" }, L = { 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,
|
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) => {
|
17
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
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
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 {
|
3
|
-
|
4
|
-
const L = /* @__PURE__ */ x({
|
2
|
+
import { s as N } from "./main-nvsTmKXH.js";
|
3
|
+
const D = /* @__PURE__ */ x({
|
5
4
|
__name: "Compare",
|
6
5
|
props: {
|
7
6
|
schema: {},
|
@@ -12,13 +11,13 @@ const L = /* @__PURE__ */ x({
|
|
12
11
|
modelValue: {}
|
13
12
|
},
|
14
13
|
setup(p) {
|
15
|
-
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),
|
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
|
-
|
17
|
+
n = e.editor.createModel(c, m.value), i = e.editor.createModel(u.value, m.value);
|
19
18
|
let _ = document.getElementsByClassName(o)[0];
|
20
|
-
|
21
|
-
original:
|
19
|
+
r = e.editor.createDiffEditor(_, { originalEditable: !0 }), r.setModel({
|
20
|
+
original: n,
|
22
21
|
modified: i
|
23
22
|
});
|
24
23
|
});
|
@@ -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) => f(
|
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
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
|
};
|
@@ -0,0 +1,58 @@
|
|
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({
|
4
|
+
__name: "Custom",
|
5
|
+
props: {
|
6
|
+
view: {},
|
7
|
+
url: {},
|
8
|
+
win: {}
|
9
|
+
},
|
10
|
+
emits: ["loaded", "navigate"],
|
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;
|
15
|
+
l && l(e);
|
16
|
+
}, C = (e) => {
|
17
|
+
t.value == null || t.value.resize == null || t.value.resize(e);
|
18
|
+
}, _ = (e) => !0, b = (e) => !0, k = () => {
|
19
|
+
var l;
|
20
|
+
let e = (l = t.value) == null ? void 0 : l.refresh;
|
21
|
+
if (!e) {
|
22
|
+
let a = f.url.getPath(n.value);
|
23
|
+
N.notify(U("common.tips"), `要实现自定义刷新功能,请在组件 ${a} 内部定义并暴露refresh方法即可`, "warning");
|
24
|
+
return;
|
25
|
+
}
|
26
|
+
e();
|
27
|
+
}, x = (e, l) => {
|
28
|
+
D.triggerKeyboardHandler(t.value, e, l);
|
29
|
+
}, y = (e) => {
|
30
|
+
t.value.socketHandler(e);
|
31
|
+
}, H = (e) => {
|
32
|
+
if (e == null)
|
33
|
+
return;
|
34
|
+
let l = g.value;
|
35
|
+
if (l[n.value] != null) {
|
36
|
+
t.value = l[n.value];
|
37
|
+
return;
|
38
|
+
}
|
39
|
+
f.dictionary.containsValue(l, e) || (l[n.value] = e, t.value = e);
|
40
|
+
}, R = (e) => {
|
41
|
+
o("loaded", e);
|
42
|
+
}, z = (e) => {
|
43
|
+
o("navigate", e);
|
44
|
+
};
|
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),
|
48
|
+
url: r(n),
|
49
|
+
win: r(p),
|
50
|
+
onLoaded: r(R),
|
51
|
+
onNavigate: r(z)
|
52
|
+
}, null, 40, ["url", "win", "onLoaded", "onNavigate"]))
|
53
|
+
], 1024));
|
54
|
+
}
|
55
|
+
});
|
56
|
+
export {
|
57
|
+
V as default
|
58
|
+
};
|