halo-pc 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Article-CjlnxF__.js +196 -0
- package/dist/ArticleFooter-BAf1rKUX.js +78 -0
- package/dist/Autocomplete-BnQpnnyK.js +27 -0
- package/dist/Autocomplete-C2FkoM3g.js +52 -0
- package/dist/Autocomplete-Da3h7NqJ.js +53 -0
- package/dist/CSharp-Dxc7debp.js +27 -0
- package/dist/Calender-CZajLEjs.js +10 -0
- package/dist/Callback-txUuqwa4.js +24 -0
- package/dist/Cascader-Bm6ZjZBu.js +84 -0
- package/dist/Cascader-CWljbVzB.js +45 -0
- package/dist/Checkbox-CYpA0Abh.js +69 -0
- package/dist/Checkbox-DvjA_jtM.js +27 -0
- package/dist/Code--QwKtfhx.js +4 -0
- package/dist/Code-BO3eZKLy.js +58 -0
- package/dist/Code-Dh_cfHCX.js +40 -0
- package/dist/Code-Dn68YB2V.js +28 -0
- package/dist/Code.vue_vue_type_style_index_0_lang-DcAjaZOQ.js +63 -0
- package/dist/Color-CfXtJFUo.js +22 -0
- package/dist/Color-Da69pnQg.js +34 -0
- package/dist/Column-DGnsLHim.js +69 -0
- package/dist/Comment--Tr_kWBl.js +102 -0
- package/dist/Compare-C3rlbp4P.js +60 -0
- package/dist/Compare-DaSyOFIe.js +30 -0
- package/dist/Copy-C5yEC9dX.js +43 -0
- package/dist/Custom-K9vfVRxn.js +53 -0
- package/dist/DataExport-GCZvxEp5.js +4 -0
- package/dist/DataExport.vue_vue_type_script_setup_true_lang-CqT0RHF6.js +112 -0
- package/dist/DataImport-BofV1eCR.js +4 -0
- package/dist/DataImport.vue_vue_type_script_setup_true_lang-WCH5ToC7.js +174 -0
- package/dist/Date-BeHsQ2Ow.js +36 -0
- package/dist/Date-DgpsRJon.js +27 -0
- package/dist/DateRange-DrYK_l0Y.js +19 -0
- package/dist/DateRange-UHosLXP9.js +61 -0
- package/dist/DateTime-BfNjKDfI.js +37 -0
- package/dist/DateTime-CHn5T-FB.js +27 -0
- package/dist/DateTimeRange-6TctUiMd.js +65 -0
- package/dist/Daterange-DISQqOFM.js +61 -0
- package/dist/Decimal-BB2w4V2o.js +27 -0
- package/dist/Decimal-C38-N54B.js +36 -0
- package/dist/Delete-C7gIYWP8.js +59 -0
- package/dist/Detail-D-6vJTGF.js +70 -0
- package/dist/Dictionary-DfEacdox.js +59 -0
- package/dist/Email-BKW9GRcH.js +19 -0
- package/dist/Email-ME_MU94C.js +47 -0
- package/dist/File-CMCYSg30.js +158 -0
- package/dist/Image-BL458jPH.js +9 -0
- package/dist/Index-8lbvVECt.js +4 -0
- package/dist/Index-B1ZfzgLV.js +4 -0
- package/dist/Index-C_HCipwv.js +4 -0
- package/dist/Index-Ch59SxF3.js +74 -0
- package/dist/Index-CopnEHli.js +4 -0
- package/dist/Index-Cp7EDm0u.js +173 -0
- package/dist/Index-DZkeSKKp.js +4 -0
- package/dist/Index-tbCW5R6_.js +4 -0
- package/dist/Index.vue_vue_type_script_setup_true_lang-B-sM48XO.js +36 -0
- package/dist/Index.vue_vue_type_script_setup_true_lang-DOibFo1_.js +70 -0
- package/dist/Index.vue_vue_type_script_setup_true_lang-Dwm5MQ9l.js +82 -0
- package/dist/Index.vue_vue_type_style_index_0_lang-D9Jt6Of_.js +113 -0
- package/dist/Install-CJbpeRw0.js +130 -0
- package/dist/Int-B-t8edhd.js +19 -0
- package/dist/Int-C-0RMDmy.js +37 -0
- package/dist/Int-CkzuFSk2.js +45 -0
- package/dist/List-V1uPlNfP.js +77 -0
- package/dist/Maintaince-BM4tthS_.js +19 -0
- package/dist/Markdown-BzMP3m7o.js +37 -0
- package/dist/Markdown-Dq7L9EMQ.js +27 -0
- package/dist/Month-B_SzKf02.js +36 -0
- package/dist/Month-CUX-EnU_.js +27 -0
- package/dist/Month-DfemgHac.js +37 -0
- package/dist/Normal-B2w0Isvm.js +255 -0
- package/dist/Paging-Bnpq9uSh.js +95 -0
- package/dist/PagingHeader-CBXHiUXR.js +140 -0
- package/dist/PagingRow-tny-wHwu.js +66 -0
- package/dist/Password-DuyYEgzR.js +55 -0
- package/dist/Password-yHtlY-Qa.js +24 -0
- package/dist/Progress-C3D821AQ.js +34 -0
- package/dist/Progress-CKVzMO-W.js +25 -0
- package/dist/QueryApi-BLc_au6L.js +18 -0
- package/dist/Racebar-DqWtIQm-.js +166 -0
- package/dist/Radio-DkcBKBvX.js +47 -0
- package/dist/Radio-xLd4l78I.js +27 -0
- package/dist/Rate-B7jKTFKT.js +34 -0
- package/dist/Rate-BmC4gw_0.js +34 -0
- package/dist/Register-Bio0HxyZ.js +203 -0
- package/dist/RichText-BYNi_iMx.js +105 -0
- package/dist/RichText-Bk0Msyhl.js +22 -0
- package/dist/SearchFooter-BAPlMiuj.js +4 -0
- package/dist/SearchFooter.vue_vue_type_style_index_0_lang-Bp7M7_IY.js +55 -0
- package/dist/SearchForm-BaPwWOch.js +4 -0
- package/dist/SearchForm.vue_vue_type_style_index_0_lang-BJeXUISp.js +150 -0
- package/dist/Select-DMDcHdlD.js +116 -0
- package/dist/Select-Dlx4Tg2X.js +27 -0
- package/dist/Select-Doyr8ioF.js +84 -0
- package/dist/Single-B4EEi5Bm.js +323 -0
- package/dist/Statistic-AY1NP5tM.js +161 -0
- package/dist/Statistic-CTxHNeof.js +76 -0
- package/dist/Stock-CcBqUgOB.js +28 -0
- package/dist/Stock-Sh2UHojP.js +4 -0
- package/dist/Stock.vue_vue_type_style_index_0_lang-CcHVxdzc.js +302 -0
- package/dist/Switch-BOsRzAW-.js +27 -0
- package/dist/Switch-DhFaku5L.js +50 -0
- package/dist/Table-C9IrdZEj.js +241 -0
- package/dist/Table-CrMo5L6q.js +318 -0
- package/dist/Text-BRRmmXYV.js +52 -0
- package/dist/Text-DKpPIUcY.js +51 -0
- package/dist/Text-vz76Xb4X.js +4 -0
- package/dist/Text.vue_vue_type_style_index_0_lang-BMxOYNEI.js +56 -0
- package/dist/TextLink-DKm6XbeF.js +66 -0
- package/dist/Textarea-D9TgF9ig.js +37 -0
- package/dist/Textarea-WPLyT7XC.js +28 -0
- package/dist/Time-BcQzBDX-.js +36 -0
- package/dist/Timeline-Dolubd-b.js +57 -0
- package/dist/Tree-Bv5eVC8s.js +122 -0
- package/dist/Tree-KwP6ais4.js +295 -0
- package/dist/TreeNode-rHeuE2ot.js +38 -0
- package/dist/Tree_Old-h__WmqFA.js +11 -0
- package/dist/Update-C5bPCalk.js +65 -0
- package/dist/UpdateChild-B2A3hP6m.js +85 -0
- package/dist/Upload-BSbIQu56.js +147 -0
- package/dist/Upload-heb0FQTh.js +72 -0
- package/dist/UploadApi-vYU0Jda6.js +18 -0
- package/dist/Year-1ug2_a1g.js +40 -0
- package/dist/Year-Dlp5PKhI.js +27 -0
- package/dist/main-Bs5Q5ZLl.js +6535 -0
- package/dist/main.js +110 -0
- package/dist/style.css +1 -0
- package/dist/vendor-@intlify-BISCQg1h.js +2189 -0
- package/dist/vendor-@monaco-editor-DKC4UNw_.js +258 -0
- package/dist/vendor-@vue-aVYGocXp.js +93 -0
- package/dist/vendor-clipboard-BqjesuiY.js +521 -0
- package/dist/vendor-clone-BPtCWdXG.js +134 -0
- package/dist/vendor-crypto-js-ftX_aBC-.js +4995 -0
- package/dist/vendor-element-plus-Z7vJFrsh.js +456 -0
- package/dist/vendor-file-saver-CytTIJ-3.js +74 -0
- package/dist/vendor-intro.js-CZkClzQO.js +1695 -0
- package/dist/vendor-moment-h96o7c8I.js +2578 -0
- package/dist/vendor-pinia-C-_fm-ER.js +1167 -0
- package/dist/vendor-sprintf-js-BPTdvBYM.js +148 -0
- package/dist/vendor-state-local-CEworIRt.js +131 -0
- package/dist/vendor-underscore-DVTek3G4.js +1070 -0
- package/dist/vendor-underscore.string-BEHfJwHl.js +425 -0
- package/dist/vendor-util-deprecate-DzpNkCzj.js +28 -0
- package/dist/vendor-vue-demi-DdR-Jw7p.js +31 -0
- package/dist/vendor-vue-i18n-C3KH15Qn.js +1670 -0
- package/package.json +1 -1
@@ -0,0 +1,27 @@
|
|
1
|
+
import { defineComponent as p, defineAsyncComponent as u, toRefs as c, openBlock as b, createBlock as V, unref as e, isRef as h } from "vue";
|
2
|
+
const _ = /* @__PURE__ */ p({
|
3
|
+
__name: "Checkbox",
|
4
|
+
props: {
|
5
|
+
schema: {},
|
6
|
+
table: {},
|
7
|
+
field: {},
|
8
|
+
set: {},
|
9
|
+
row: {},
|
10
|
+
modelValue: {}
|
11
|
+
},
|
12
|
+
setup(a) {
|
13
|
+
let r = u(() => import("./Dictionary-DfEacdox.js")), s = a, { schema: m, table: n, field: d, set: f, row: i, modelValue: l } = c(s);
|
14
|
+
return (w, o) => (b(), V(e(r), {
|
15
|
+
schema: e(m),
|
16
|
+
table: e(n),
|
17
|
+
field: e(d),
|
18
|
+
row: e(i),
|
19
|
+
set: e(f),
|
20
|
+
modelValue: e(l),
|
21
|
+
"onUpdate:modelValue": o[0] || (o[0] = (t) => h(l) ? l.value = t : l = t)
|
22
|
+
}, null, 8, ["schema", "table", "field", "row", "set", "modelValue"]));
|
23
|
+
}
|
24
|
+
});
|
25
|
+
export {
|
26
|
+
_ as default
|
27
|
+
};
|
@@ -0,0 +1,58 @@
|
|
1
|
+
import { defineComponent as b, toRefs as h, ref as _, computed as F, watch as T, openBlock as w, createBlock as N, unref as r, isRef as k } from "vue";
|
2
|
+
import { _ as x } from "./main-Bs5Q5ZLl.js";
|
3
|
+
import "xlsx-js-style";
|
4
|
+
import "./vendor-crypto-js-ftX_aBC-.js";
|
5
|
+
import "./vendor-@monaco-editor-DKC4UNw_.js";
|
6
|
+
import "./vendor-moment-h96o7c8I.js";
|
7
|
+
const U = /* @__PURE__ */ b({
|
8
|
+
__name: "Code",
|
9
|
+
props: {
|
10
|
+
schema: {},
|
11
|
+
table: {},
|
12
|
+
field: {},
|
13
|
+
set: {},
|
14
|
+
row: {},
|
15
|
+
modelValue: {}
|
16
|
+
},
|
17
|
+
emits: ["submit", "change", "update:modelValue"],
|
18
|
+
setup(d, { emit: g }) {
|
19
|
+
let c = g, f = d, { table: i, field: a, set: y, row: s, modelValue: p } = h(f), o = _({ language: null, scrollTop: 0, lineNumbers: null, schema: null, category: null }), v = (e) => {
|
20
|
+
let l = m(a.value.control.scrollTop);
|
21
|
+
l && (s.value[l.name] = e);
|
22
|
+
}, V = () => {
|
23
|
+
let e = n(a.value.control.scrollTop);
|
24
|
+
if (e && (o.value.scrollTop = parseInt(e)), o.value.lineNumbers = a.value.control.lineNumbers, a.value.control.languageField == null)
|
25
|
+
o.value.language = a.value.control.language;
|
26
|
+
else {
|
27
|
+
let l = n(a.value.control.languageField);
|
28
|
+
l && (o.value.language = l);
|
29
|
+
}
|
30
|
+
a.value.control.schema && (o.value.schema = a.value.control.schema, o.value.category = `${i.value.name}.${a.value.name}`);
|
31
|
+
}, n = (e) => {
|
32
|
+
let l = m(e);
|
33
|
+
return l ? s.value[l.name] : null;
|
34
|
+
}, m = (e) => e ? i.value.fields.find((u) => u.name == e) : null;
|
35
|
+
V();
|
36
|
+
let t = F({
|
37
|
+
get() {
|
38
|
+
return p.value ?? "";
|
39
|
+
},
|
40
|
+
set(e) {
|
41
|
+
c("update:modelValue", e), c("change", e);
|
42
|
+
}
|
43
|
+
});
|
44
|
+
return T(() => n(a.value.control.languageField), (e, l) => {
|
45
|
+
o.value.language = e;
|
46
|
+
}), (e, l) => (w(), N(r(x), {
|
47
|
+
class: "control-code",
|
48
|
+
border: "",
|
49
|
+
config: r(o),
|
50
|
+
onScroll: r(v),
|
51
|
+
modelValue: r(t),
|
52
|
+
"onUpdate:modelValue": l[0] || (l[0] = (u) => k(t) ? t.value = u : t = u)
|
53
|
+
}, null, 8, ["config", "onScroll", "modelValue"]));
|
54
|
+
}
|
55
|
+
});
|
56
|
+
export {
|
57
|
+
U as default
|
58
|
+
};
|
@@ -0,0 +1,40 @@
|
|
1
|
+
import { defineComponent as v, toRefs as h, ref as i, openBlock as V, createBlock as _, unref as n, normalizeStyle as y, isRef as x } from "vue";
|
2
|
+
import { _ as F } from "./main-Bs5Q5ZLl.js";
|
3
|
+
import "xlsx-js-style";
|
4
|
+
import "./vendor-crypto-js-ftX_aBC-.js";
|
5
|
+
import "./vendor-@monaco-editor-DKC4UNw_.js";
|
6
|
+
import "./vendor-moment-h96o7c8I.js";
|
7
|
+
const N = /* @__PURE__ */ v({
|
8
|
+
__name: "Code",
|
9
|
+
props: {
|
10
|
+
schema: {},
|
11
|
+
table: {},
|
12
|
+
field: {},
|
13
|
+
set: {},
|
14
|
+
row: {},
|
15
|
+
modelValue: {}
|
16
|
+
},
|
17
|
+
setup(f) {
|
18
|
+
let s = f, { table: g, field: t, set: b, row: m, modelValue: a } = h(s), o = i(), r = i({ language: null, readonly: !0, lineNumbers: "off" }), d = () => 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) => {
|
19
|
+
let l = p(e);
|
20
|
+
return l ? m.value[l.name] : null;
|
21
|
+
};
|
22
|
+
return (() => {
|
23
|
+
if (o.value = d(), t.value.control.languageField == null)
|
24
|
+
r.value.language = t.value.control.language;
|
25
|
+
else {
|
26
|
+
let e = c(t.value.control.languageField);
|
27
|
+
e && (r.value.language = e);
|
28
|
+
}
|
29
|
+
})(), (e, l) => (V(), _(n(F), {
|
30
|
+
class: "text-code",
|
31
|
+
config: n(r),
|
32
|
+
style: y(n(o)),
|
33
|
+
modelValue: n(a),
|
34
|
+
"onUpdate:modelValue": l[0] || (l[0] = (u) => x(a) ? a.value = u : a = u)
|
35
|
+
}, null, 8, ["config", "style", "modelValue"]));
|
36
|
+
}
|
37
|
+
});
|
38
|
+
export {
|
39
|
+
N as default
|
40
|
+
};
|
@@ -0,0 +1,28 @@
|
|
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-DcAjaZOQ.js";
|
3
|
+
const b = /* @__PURE__ */ r({
|
4
|
+
__name: "Code",
|
5
|
+
props: {
|
6
|
+
searchData: {},
|
7
|
+
module: {},
|
8
|
+
schema: {},
|
9
|
+
table: {},
|
10
|
+
layout: {},
|
11
|
+
next: {},
|
12
|
+
set: {}
|
13
|
+
},
|
14
|
+
setup(t) {
|
15
|
+
let a = t, { module: o, schema: l, table: s, layout: m, next: n, set: c } = u(a);
|
16
|
+
return (d, h) => (p(), _(f, {
|
17
|
+
module: e(o),
|
18
|
+
schema: e(l),
|
19
|
+
table: e(s),
|
20
|
+
layout: e(m),
|
21
|
+
next: e(n),
|
22
|
+
set: e(c)
|
23
|
+
}, null, 8, ["module", "schema", "table", "layout", "next", "set"]));
|
24
|
+
}
|
25
|
+
});
|
26
|
+
export {
|
27
|
+
b as default
|
28
|
+
};
|
@@ -0,0 +1,63 @@
|
|
1
|
+
import { defineComponent as C, toRefs as h, ref as i, onMounted as b, resolveComponent as s, openBlock as n, createElementBlock as u, createVNode as d, unref as e, isRef as k, withCtx as p, Fragment as c, renderList as B, createBlock as E, createTextVNode as _, toDisplayString as f, createCommentVNode as L } from "vue";
|
2
|
+
import { _ as N } from "./main-Bs5Q5ZLl.js";
|
3
|
+
import "xlsx-js-style";
|
4
|
+
import "./vendor-crypto-js-ftX_aBC-.js";
|
5
|
+
import "./vendor-@monaco-editor-DKC4UNw_.js";
|
6
|
+
import "./vendor-moment-h96o7c8I.js";
|
7
|
+
import { Q } from "./QueryApi-BLc_au6L.js";
|
8
|
+
const R = { class: "ha-code-layout" }, I = /* @__PURE__ */ C({
|
9
|
+
__name: "Code",
|
10
|
+
props: {
|
11
|
+
route: {},
|
12
|
+
validateErrors: {},
|
13
|
+
module: {},
|
14
|
+
schema: {},
|
15
|
+
table: {},
|
16
|
+
layout: {},
|
17
|
+
next: {},
|
18
|
+
set: {}
|
19
|
+
},
|
20
|
+
emits: ["submit", "change"],
|
21
|
+
setup(g, { emit: U }) {
|
22
|
+
let V = g, { module: w, schema: A, table: D, layout: r, next: F, set: M } = h(V), l = i({}), t = i(), v = () => {
|
23
|
+
t.value = r.value.languages[0];
|
24
|
+
};
|
25
|
+
return b(() => {
|
26
|
+
v(), Q.loadCodeLanguage().then((m) => {
|
27
|
+
m.forEach((a) => {
|
28
|
+
l.value[a.text] = a.suffix;
|
29
|
+
});
|
30
|
+
});
|
31
|
+
}), (m, a) => {
|
32
|
+
const x = s("el-radio"), y = s("el-radio-group");
|
33
|
+
return n(), u("div", R, [
|
34
|
+
d(y, {
|
35
|
+
modelValue: e(t),
|
36
|
+
"onUpdate:modelValue": a[0] || (a[0] = (o) => k(t) ? t.value = o : t = o)
|
37
|
+
}, {
|
38
|
+
default: p(() => [
|
39
|
+
(n(!0), u(c, null, B(e(r).languages, (o) => (n(), E(x, { value: o }, {
|
40
|
+
default: p(() => [
|
41
|
+
_(f(o) + " ", 1),
|
42
|
+
e(l)[o] ? (n(), u(c, { key: 0 }, [
|
43
|
+
_("(" + f(e(l)[o]) + ")", 1)
|
44
|
+
], 64)) : L("", !0)
|
45
|
+
]),
|
46
|
+
_: 2
|
47
|
+
}, 1032, ["value"]))), 256))
|
48
|
+
]),
|
49
|
+
_: 1
|
50
|
+
}, 8, ["modelValue"]),
|
51
|
+
d(e(N), {
|
52
|
+
border: "",
|
53
|
+
config: { language: e(l)[e(t)] },
|
54
|
+
modelValue: e(r).codes[e(t)],
|
55
|
+
"onUpdate:modelValue": a[1] || (a[1] = (o) => e(r).codes[e(t)] = o)
|
56
|
+
}, null, 8, ["config", "modelValue"])
|
57
|
+
]);
|
58
|
+
};
|
59
|
+
}
|
60
|
+
});
|
61
|
+
export {
|
62
|
+
I as _
|
63
|
+
};
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { defineComponent as r, toRefs as a, openBlock as s, createElementBlock as n, normalizeStyle as c, unref as o, toDisplayString as m } from "vue";
|
2
|
+
const y = /* @__PURE__ */ r({
|
3
|
+
__name: "Color",
|
4
|
+
props: {
|
5
|
+
schema: {},
|
6
|
+
table: {},
|
7
|
+
field: {},
|
8
|
+
set: {},
|
9
|
+
row: {},
|
10
|
+
modelValue: {}
|
11
|
+
},
|
12
|
+
setup(t) {
|
13
|
+
let l = t, { table: p, field: i, set: f, row: d, modelValue: e } = a(l);
|
14
|
+
return (u, _) => (s(), n("div", {
|
15
|
+
class: "text-color",
|
16
|
+
style: c({ color: o(e) })
|
17
|
+
}, m(o(e)), 5));
|
18
|
+
}
|
19
|
+
});
|
20
|
+
export {
|
21
|
+
y as default
|
22
|
+
};
|
@@ -0,0 +1,34 @@
|
|
1
|
+
import { defineComponent as c, toRefs as i, computed as f, resolveComponent as _, openBlock as V, createBlock as b, unref as d, isRef as k } from "vue";
|
2
|
+
const x = /* @__PURE__ */ c({
|
3
|
+
__name: "Color",
|
4
|
+
props: {
|
5
|
+
schema: {},
|
6
|
+
table: {},
|
7
|
+
field: {},
|
8
|
+
set: {},
|
9
|
+
row: {},
|
10
|
+
modelValue: {}
|
11
|
+
},
|
12
|
+
emits: ["submit", "change", "update:modelValue"],
|
13
|
+
setup(m, { emit: r }) {
|
14
|
+
let o = r, n = m, { table: g, field: u, set: C, modelValue: s } = i(n), e = f({
|
15
|
+
get() {
|
16
|
+
return s.value;
|
17
|
+
},
|
18
|
+
set(l) {
|
19
|
+
o("update:modelValue", l), o("change", l);
|
20
|
+
}
|
21
|
+
});
|
22
|
+
return (l, t) => {
|
23
|
+
const p = _("el-color-picker");
|
24
|
+
return V(), b(p, {
|
25
|
+
disabled: d(u).readonly,
|
26
|
+
modelValue: d(e),
|
27
|
+
"onUpdate:modelValue": t[0] || (t[0] = (a) => k(e) ? e.value = a : e = a)
|
28
|
+
}, null, 8, ["disabled", "modelValue"]);
|
29
|
+
};
|
30
|
+
}
|
31
|
+
});
|
32
|
+
export {
|
33
|
+
x as default
|
34
|
+
};
|
@@ -0,0 +1,69 @@
|
|
1
|
+
import { defineComponent as M, toRefs as b, onMounted as D, computed as f, openBlock as l, createBlock as h, unref as e, withCtx as k, createElementBlock as o, Fragment as E, renderList as H, normalizeClass as L, createCommentVNode as u, createElementVNode as a, toDisplayString as i, resolveDynamicComponent as $, createVNode as z, createTextVNode as s } from "vue";
|
2
|
+
import { e as F, g as y, k as P, y as R } from "./main-Bs5Q5ZLl.js";
|
3
|
+
import "xlsx-js-style";
|
4
|
+
import "./vendor-crypto-js-ftX_aBC-.js";
|
5
|
+
import "./vendor-@monaco-editor-DKC4UNw_.js";
|
6
|
+
import "./vendor-moment-h96o7c8I.js";
|
7
|
+
const T = {
|
8
|
+
key: 0,
|
9
|
+
class: "menus"
|
10
|
+
}, j = ["onClick"], q = { class: "title" }, A = {
|
11
|
+
key: 1,
|
12
|
+
class: "column-empty"
|
13
|
+
}, G = /* @__PURE__ */ a("br", null, null, -1), I = /* @__PURE__ */ a("br", null, null, -1), Z = /* @__PURE__ */ M({
|
14
|
+
__name: "Column",
|
15
|
+
props: {
|
16
|
+
url: {},
|
17
|
+
view: {}
|
18
|
+
},
|
19
|
+
emits: ["loaded", "navigate"],
|
20
|
+
setup(C, { expose: g, emit: x }) {
|
21
|
+
let c = x, U = C, { url: m, view: d } = b(U), w = F(), B = (t) => !0, N = (t) => !0, S = () => {
|
22
|
+
p();
|
23
|
+
}, p = () => {
|
24
|
+
c("loaded", r.value.title);
|
25
|
+
}, V = (t) => {
|
26
|
+
let v = y.getUrl(t.url, { m: t.id });
|
27
|
+
c("navigate", v);
|
28
|
+
};
|
29
|
+
D(() => {
|
30
|
+
p();
|
31
|
+
});
|
32
|
+
let r = f(() => w.getMenuByUrl(m.value)), _ = f(() => y.getPath(m.value));
|
33
|
+
return g({ shouldLoad: B, shouldSpin: N, refresh: S }), (t, v) => (l(), h(e(P), null, {
|
34
|
+
default: k(() => [
|
35
|
+
e(r) ? (l(), o("div", T, [
|
36
|
+
(l(!0), o(E, null, H(e(r).children, (n) => (l(), o("div", {
|
37
|
+
class: "menu",
|
38
|
+
key: n.id,
|
39
|
+
onClick: (J) => e(V)(n)
|
40
|
+
}, [
|
41
|
+
n.icon ? (l(), o("i", {
|
42
|
+
key: 0,
|
43
|
+
class: L(n.icon)
|
44
|
+
}, null, 2)) : u("", !0),
|
45
|
+
a("div", q, i(n.title), 1)
|
46
|
+
], 8, j))), 128))
|
47
|
+
])) : u("", !0),
|
48
|
+
(l(), h($(e(d)))),
|
49
|
+
(!e(r) || e(r).children == 0) && !e(d) ? (l(), o("div", A, [
|
50
|
+
z(e(R), null, {
|
51
|
+
default: k(() => [
|
52
|
+
s(" 此栏目页不存在子菜单或自定义部分视图,无内容可展示 ")
|
53
|
+
]),
|
54
|
+
_: 1
|
55
|
+
}),
|
56
|
+
s(" 可考虑以下任一选项:"),
|
57
|
+
G,
|
58
|
+
s(" 1. 在 src/views 中实现自定义页面:" + i(e(_)), 1),
|
59
|
+
I,
|
60
|
+
s(" 2. 在 src/components/partials 中实现自定义首页部分视图:" + i(e(_)), 1)
|
61
|
+
])) : u("", !0)
|
62
|
+
]),
|
63
|
+
_: 1
|
64
|
+
}));
|
65
|
+
}
|
66
|
+
});
|
67
|
+
export {
|
68
|
+
Z as default
|
69
|
+
};
|
@@ -0,0 +1,102 @@
|
|
1
|
+
import { defineComponent as E, toRefs as N, ref as S, computed as y, resolveComponent as m, openBlock as u, createElementBlock as _, createElementVNode as t, createVNode as v, createTextVNode as n, toDisplayString as l, unref as e, withCtx as b, Fragment as j, renderList as B, createBlock as T, createCommentVNode as U } from "vue";
|
2
|
+
import { g as q } from "./main-Bs5Q5ZLl.js";
|
3
|
+
import "xlsx-js-style";
|
4
|
+
import "./vendor-crypto-js-ftX_aBC-.js";
|
5
|
+
import "./vendor-@monaco-editor-DKC4UNw_.js";
|
6
|
+
import "./vendor-moment-h96o7c8I.js";
|
7
|
+
const D = { class: "ha-comment-layout" }, F = { class: "comment-add" }, H = { class: "add-footer" }, L = { class: "footer-title" }, M = /* @__PURE__ */ t("i", { class: "el-icon-s-comment" }, null, -1), R = { class: "comment-user" }, $ = { class: "avatar" }, A = /* @__PURE__ */ t("img", {
|
8
|
+
src: "https://upload.jianshu.io/users/upload_avatars/2859365/cce8943353eb.jpeg?imageMogr2/auto-orient/strip|imageView2/1/w/80/h/80/format/webp",
|
9
|
+
alt: ""
|
10
|
+
}, null, -1), G = { class: "comment-body" }, J = { class: "comment-time" }, K = { class: "comment-content" }, O = /* @__PURE__ */ t("div", { class: "content-footer" }, [
|
11
|
+
/* @__PURE__ */ t("span", null, [
|
12
|
+
/* @__PURE__ */ t("i", { class: "fa fa-thumbs-up" }),
|
13
|
+
/* @__PURE__ */ n("20")
|
14
|
+
]),
|
15
|
+
/* @__PURE__ */ t("span", null, [
|
16
|
+
/* @__PURE__ */ t("i", { class: "el-icon-s-comment" }),
|
17
|
+
/* @__PURE__ */ n("回复")
|
18
|
+
])
|
19
|
+
], -1), P = { class: "comment-footer" }, ae = /* @__PURE__ */ E({
|
20
|
+
__name: "Comment",
|
21
|
+
props: {
|
22
|
+
route: {},
|
23
|
+
validateErrors: {},
|
24
|
+
module: {},
|
25
|
+
schema: {},
|
26
|
+
table: {},
|
27
|
+
layout: {},
|
28
|
+
next: {},
|
29
|
+
set: {}
|
30
|
+
},
|
31
|
+
setup(C) {
|
32
|
+
let x = C, { schema: Q, table: r, layout: o, set: p, validateErrors: W } = N(x), i = S(1), k = (a) => {
|
33
|
+
i.value = a;
|
34
|
+
}, w = y(() => {
|
35
|
+
let a = (i.value - 1) * o.value.pageSize, c = i.value * o.value.pageSize - 1;
|
36
|
+
return p.value[r.value.name].filter((f, d) => d >= a && d <= c);
|
37
|
+
}), g = y(() => r.value.fields.find((c) => c.name == o.value.userId));
|
38
|
+
return (a, c) => {
|
39
|
+
const h = m("el-input"), f = m("el-button"), d = m("router-link"), I = m("el-pagination");
|
40
|
+
return u(), _("div", D, [
|
41
|
+
t("div", F, [
|
42
|
+
v(h, { type: "textarea" }),
|
43
|
+
t("div", H, [
|
44
|
+
t("div", L, [
|
45
|
+
M,
|
46
|
+
n("全部评论 (" + l(e(p)[e(r).name].length) + ")", 1)
|
47
|
+
]),
|
48
|
+
v(f, {
|
49
|
+
type: "primary",
|
50
|
+
class: "btn-comment",
|
51
|
+
icon: "el-icon-s-promotion"
|
52
|
+
}, {
|
53
|
+
default: b(() => [
|
54
|
+
n("评论")
|
55
|
+
]),
|
56
|
+
_: 1
|
57
|
+
})
|
58
|
+
])
|
59
|
+
]),
|
60
|
+
(u(!0), _(j, null, B(e(w), (s, z) => (u(), _("div", {
|
61
|
+
class: "comment",
|
62
|
+
key: z
|
63
|
+
}, [
|
64
|
+
t("div", R, [
|
65
|
+
t("div", $, [
|
66
|
+
A,
|
67
|
+
n(" " + l(s[e(o).avatar]), 1)
|
68
|
+
])
|
69
|
+
]),
|
70
|
+
t("div", G, [
|
71
|
+
e(g) ? (u(), T(d, {
|
72
|
+
key: 0,
|
73
|
+
class: "comment-name",
|
74
|
+
to: e(q).getUrl("/sys_user/detail", { id: s[e(o).userId], m: a.$route.query.m })
|
75
|
+
}, {
|
76
|
+
default: b(() => [
|
77
|
+
n(l(e(g).control.data.data.find((V) => V.value == s[e(o).userId]).text), 1)
|
78
|
+
]),
|
79
|
+
_: 2
|
80
|
+
}, 1032, ["to"])) : U("", !0),
|
81
|
+
t("div", J, l(s[e(o).commentTime]), 1),
|
82
|
+
t("div", K, l(s[e(o).content]), 1),
|
83
|
+
O
|
84
|
+
])
|
85
|
+
]))), 128)),
|
86
|
+
t("div", P, [
|
87
|
+
v(I, {
|
88
|
+
background: "",
|
89
|
+
layout: "total, prev, pager, next, jumper",
|
90
|
+
"current-page": e(i),
|
91
|
+
"page-size": e(o).pageSize,
|
92
|
+
total: e(p)[e(r).name].length,
|
93
|
+
onCurrentChange: e(k)
|
94
|
+
}, null, 8, ["current-page", "page-size", "total", "onCurrentChange"])
|
95
|
+
])
|
96
|
+
]);
|
97
|
+
};
|
98
|
+
}
|
99
|
+
});
|
100
|
+
export {
|
101
|
+
ae as default
|
102
|
+
};
|
@@ -0,0 +1,60 @@
|
|
1
|
+
import { defineComponent as b, toRefs as k, ref as h, computed as S, watch as v, openBlock as w, createElementBlock as B, normalizeStyle as D, unref as R, nextTick as W } from "vue";
|
2
|
+
import "./main-Bs5Q5ZLl.js";
|
3
|
+
import "xlsx-js-style";
|
4
|
+
import "./vendor-crypto-js-ftX_aBC-.js";
|
5
|
+
import { l as z } from "./vendor-@monaco-editor-DKC4UNw_.js";
|
6
|
+
import "./vendor-moment-h96o7c8I.js";
|
7
|
+
const F = /* @__PURE__ */ b({
|
8
|
+
__name: "Compare",
|
9
|
+
props: {
|
10
|
+
schema: {},
|
11
|
+
table: {},
|
12
|
+
field: {},
|
13
|
+
set: {},
|
14
|
+
row: {},
|
15
|
+
modelValue: {}
|
16
|
+
},
|
17
|
+
emits: ["submit", "change", "update:modelValue"],
|
18
|
+
setup(V, { emit: E }) {
|
19
|
+
let m = E, M = V, { table: y, field: i, set: L, row: n, modelValue: c } = k(M), r = null, f = null, p = null, t = null, l = null, g = h(), s = h(), _ = (e) => {
|
20
|
+
s.value = C(), W(() => {
|
21
|
+
let o = n.value[d.value.name], a = i.value.control.language;
|
22
|
+
f = e.editor.createModel(c.value, a), p = e.editor.createModel(o, a), r = e.editor.createDiffEditor(g.value, {
|
23
|
+
originalEditable: !0,
|
24
|
+
automaticLayout: !0,
|
25
|
+
renderSideBySide: !i.value.control.inline
|
26
|
+
//是否启用行内模式
|
27
|
+
}), r.setModel({ original: f, modified: p }), t = r.getOriginalEditor(), t.onDidChangeModelContent((x) => {
|
28
|
+
let u = t.getValue();
|
29
|
+
m("update:modelValue", u), m("change", u);
|
30
|
+
}), l = r.getModifiedEditor(), l.onDidChangeModelContent((x) => {
|
31
|
+
let u = l.getValue();
|
32
|
+
n.value[d.value.name] = u;
|
33
|
+
});
|
34
|
+
});
|
35
|
+
}, C = () => i.value.control.height ? `height: ${i.value.control.height}px` : "min-height: 200px;";
|
36
|
+
z.init().then((e) => {
|
37
|
+
_(e);
|
38
|
+
});
|
39
|
+
let d = S(() => y.value.fields.find((o) => o.name == i.value.control.compareWith));
|
40
|
+
return v(() => c.value, (e, o) => {
|
41
|
+
if (!t)
|
42
|
+
return;
|
43
|
+
let a = t.getValue();
|
44
|
+
e != a && t.setValue(e ?? "");
|
45
|
+
}), v(() => n.value[d.value.name], (e, o) => {
|
46
|
+
if (!l)
|
47
|
+
return;
|
48
|
+
let a = l.getValue();
|
49
|
+
e != a && l.setValue(e ?? "");
|
50
|
+
}), (e, o) => (w(), B("div", {
|
51
|
+
ref_key: "compareRef",
|
52
|
+
ref: g,
|
53
|
+
class: "control-compare",
|
54
|
+
style: D(R(s))
|
55
|
+
}, null, 4));
|
56
|
+
}
|
57
|
+
});
|
58
|
+
export {
|
59
|
+
F as default
|
60
|
+
};
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import { defineComponent as i, toRefs as d, computed as o, unref as l, openBlock as f, createElementBlock as v, normalizeClass as _, createCommentVNode as C } from "vue";
|
2
|
+
import "./main-Bs5Q5ZLl.js";
|
3
|
+
import "xlsx-js-style";
|
4
|
+
import "./vendor-crypto-js-ftX_aBC-.js";
|
5
|
+
import { l as x } from "./vendor-@monaco-editor-DKC4UNw_.js";
|
6
|
+
import "./vendor-moment-h96o7c8I.js";
|
7
|
+
const N = /* @__PURE__ */ i({
|
8
|
+
__name: "Compare",
|
9
|
+
props: {
|
10
|
+
schema: {},
|
11
|
+
table: {},
|
12
|
+
field: {},
|
13
|
+
set: {},
|
14
|
+
row: {},
|
15
|
+
modelValue: {}
|
16
|
+
},
|
17
|
+
setup(a) {
|
18
|
+
let r = a, { table: e, field: t, set: m, row: n, modelValue: p } = d(r), s = e.value.name + "-" + t.value.name + "-" + m.value[e.value.name].indexOf(n.value);
|
19
|
+
x.init().then((c) => {
|
20
|
+
});
|
21
|
+
let u = o(() => p || "");
|
22
|
+
return o(() => t.value.control.type.toLowerCase()), (c, h) => l(u) ? (f(), v("div", {
|
23
|
+
key: 0,
|
24
|
+
class: _(`text-compare ${l(s)}`)
|
25
|
+
}, null, 2)) : C("", !0);
|
26
|
+
}
|
27
|
+
});
|
28
|
+
export {
|
29
|
+
N as default
|
30
|
+
};
|
@@ -0,0 +1,43 @@
|
|
1
|
+
import { defineComponent as y, toRefs as g, computed as v, unref as l, renderSlot as n, openBlock as _, createElementBlock as b, createElementVNode as c } from "vue";
|
2
|
+
import { M as a } from "./main-Bs5Q5ZLl.js";
|
3
|
+
import { C } from "./vendor-clipboard-BqjesuiY.js";
|
4
|
+
const k = {
|
5
|
+
key: 1,
|
6
|
+
class: "copy-container"
|
7
|
+
}, J = /* @__PURE__ */ c("img", {
|
8
|
+
src: "/default/images/clippy.svg",
|
9
|
+
alt: "复制文本"
|
10
|
+
}, null, -1), S = [
|
11
|
+
J
|
12
|
+
], E = /* @__PURE__ */ y({
|
13
|
+
__name: "Copy",
|
14
|
+
props: {
|
15
|
+
schema: {},
|
16
|
+
table: {},
|
17
|
+
field: {},
|
18
|
+
set: {},
|
19
|
+
row: {},
|
20
|
+
modelValue: {}
|
21
|
+
},
|
22
|
+
setup(i) {
|
23
|
+
let p = i, { table: h, field: r, set: w, row: N, modelValue: u } = g(p), d = (e) => JSON.stringify(JSON.parse(e), null, 2), f = () => o.value && r.value.control.type == "Json" ? d(o.value).replace(/"/g, "'") : o.value, s = () => {
|
24
|
+
let e = new C(".btn-copy", { text: () => f() });
|
25
|
+
e.on("success", function(t) {
|
26
|
+
a.success("复制成功"), e.destroy();
|
27
|
+
}), e.on("error", function(t) {
|
28
|
+
a.error("复制失败"), e.destroy();
|
29
|
+
});
|
30
|
+
}, o = v(() => u.value);
|
31
|
+
return (e, t) => l(r).control.copy ? (_(), b("div", k, [
|
32
|
+
c("i", {
|
33
|
+
class: "btn-copy",
|
34
|
+
onClick: t[0] || (t[0] = //@ts-ignore
|
35
|
+
(...m) => l(s) && l(s)(...m))
|
36
|
+
}, S),
|
37
|
+
n(e.$slots, "default")
|
38
|
+
])) : n(e.$slots, "default", { key: 0 });
|
39
|
+
}
|
40
|
+
});
|
41
|
+
export {
|
42
|
+
E as default
|
43
|
+
};
|
@@ -0,0 +1,53 @@
|
|
1
|
+
import { defineComponent as x, toRefs as S, ref as U, openBlock as s, createBlock as n, KeepAlive as w, resolveDynamicComponent as z, unref as l } from "vue";
|
2
|
+
import { e as L, u as R, g as B, M } from "./main-Bs5Q5ZLl.js";
|
3
|
+
import "xlsx-js-style";
|
4
|
+
import "./vendor-crypto-js-ftX_aBC-.js";
|
5
|
+
import "./vendor-@monaco-editor-DKC4UNw_.js";
|
6
|
+
import "./vendor-moment-h96o7c8I.js";
|
7
|
+
const P = /* @__PURE__ */ x({
|
8
|
+
__name: "Custom",
|
9
|
+
props: {
|
10
|
+
url: {},
|
11
|
+
view: {}
|
12
|
+
},
|
13
|
+
emits: ["loaded", "navigate"],
|
14
|
+
setup(i, { expose: u, emit: f }) {
|
15
|
+
let a = f, m = i, { url: p, view: v } = S(m), t = U();
|
16
|
+
L();
|
17
|
+
let { t: d } = R(), c = (e, r) => {
|
18
|
+
if (!t.value || !t.value.keyboard)
|
19
|
+
return !1;
|
20
|
+
t.value.keyboard(e, r);
|
21
|
+
}, g = (e) => !0, h = (e) => !0, _ = () => {
|
22
|
+
var r;
|
23
|
+
let e = (r = t.value) == null ? void 0 : r.refresh;
|
24
|
+
if (!e) {
|
25
|
+
let o = B.getPath(p.value);
|
26
|
+
M.notify(d("common.tips"), `要实现自定义刷新功能,请在组件 ${o} 内部定义并暴露refresh方法即可`, "warning");
|
27
|
+
return;
|
28
|
+
}
|
29
|
+
e();
|
30
|
+
}, b = (e) => {
|
31
|
+
var o;
|
32
|
+
let r = (o = t.value) == null ? void 0 : o.beforeClose;
|
33
|
+
r && r(e);
|
34
|
+
}, k = (e) => {
|
35
|
+
t.value && t.value.resize && t.value.resize(e);
|
36
|
+
}, y = (e) => {
|
37
|
+
a("loaded", e);
|
38
|
+
}, C = (e) => {
|
39
|
+
a("navigate", e);
|
40
|
+
};
|
41
|
+
return u({ shouldLoad: g, shouldSpin: h, refresh: _, beforeClose: b, keyboard: c, resize: k }), (e, r) => (s(), n(w, null, [
|
42
|
+
(s(), n(z(l(v)), {
|
43
|
+
ref_key: "customRef",
|
44
|
+
ref: t,
|
45
|
+
onLoaded: l(y),
|
46
|
+
onNavigate: l(C)
|
47
|
+
}, null, 40, ["onLoaded", "onNavigate"]))
|
48
|
+
], 1024));
|
49
|
+
}
|
50
|
+
});
|
51
|
+
export {
|
52
|
+
P as default
|
53
|
+
};
|