halo-pc 1.0.19 → 1.0.21
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{Article-C00dDtgQ.js → Article-D3N6eVpH.js} +52 -51
- package/dist/{ArticleFooter-jAlMJJ0Z.js → ArticleFooter-CbvmQHCn.js} +5 -5
- package/dist/{Autocomplete-DYgdzQEa.js → Autocomplete-BrKsj5vx.js} +1 -1
- package/dist/{Autocomplete-BYlz8Q3t.js → Autocomplete-C1Q-qo5y.js} +9 -9
- package/dist/{Autocomplete-CQ-UuksH.js → Autocomplete-C_t_3Onz.js} +9 -9
- package/dist/{CSharp-ouau54_s.js → CSharp-DGmv2biT.js} +1 -1
- package/dist/{Calender-iu_I3vcU.js → Calender-dCiW7eIK.js} +2 -2
- package/dist/{Callback-bRXyRBO2.js → Callback-BcjLHYz6.js} +3 -3
- package/dist/{Cascader-BJs2FXbQ.js → Cascader-BMs1Kw-s.js} +10 -10
- package/dist/{Cascader-ljR17aOe.js → Cascader-BoZLMQjq.js} +5 -5
- package/dist/{Checkbox-C2OWgiE1.js → Checkbox-DeuCkQ_E.js} +12 -12
- package/dist/{Checkbox-Cy5zNH7D.js → Checkbox-DklZD5ff.js} +1 -1
- package/dist/{Code-Cruabofi.js → Code-CmB3ZGnM.js} +10 -10
- package/dist/{Code-DTvIe3kd.js → Code-DVZ9QWgE.js} +1 -1
- package/dist/{Code-B9oyIhEo.js → Code-Q9ETcIfA.js} +1 -1
- package/dist/Code-hiW76EUm.js +4 -0
- package/dist/{Code.vue_vue_type_style_index_0_lang-BmQDWq2q.js → Code.vue_vue_type_style_index_0_lang-DJO46RBx.js} +4 -4
- package/dist/{Column-ClHvuVuz.js → Column-K0p0pVuf.js} +26 -25
- package/dist/{Comment-D292jtJC.js → Comment-B_jDWUXE.js} +12 -12
- package/dist/Compare-CziDSVLD.js +37 -0
- package/dist/Compare-DFDzyQIR.js +57 -0
- package/dist/{Copy-CvgX-bKU.js → Copy-gHXEFE58.js} +5 -5
- package/dist/{Custom-4bEXZx8t.js → Custom-DS1OrDHT.js} +11 -11
- package/dist/{DataExport-DH0oVaJf.js → DataExport-DAk1d4uG.js} +1 -1
- package/dist/{DataExport.vue_vue_type_script_setup_true_lang-BV2aSpcq.js → DataExport.vue_vue_type_script_setup_true_lang-Clh4Jvxi.js} +19 -19
- package/dist/{DataImport-D73iWOit.js → DataImport-BLOSIbQ2.js} +1 -1
- package/dist/{DataImport.vue_vue_type_script_setup_true_lang-B39IZpM3.js → DataImport.vue_vue_type_script_setup_true_lang-D5J7e_59.js} +19 -19
- package/dist/{Date-DCtZ8VpD.js → Date-BOrgXdKV.js} +4 -4
- package/dist/{Date-BJ2vBWIM.js → Date-D1KihBir.js} +1 -1
- package/dist/{DateRange-BWXik5I2.js → DateRange-Clg_We_d.js} +1 -1
- package/dist/{DateTime-BBHPa2zE.js → DateTime-Ba-L9NIq.js} +4 -4
- package/dist/{DateTime-D_GCbnKC.js → DateTime-Dwg6aUf3.js} +1 -1
- package/dist/{DateTimeRange-C4-4mq77.js → DateTimeRange-Cir1-Js8.js} +1 -1
- package/dist/{Daterange-CPVrg_r8.js → Daterange-Gaj6hNOK.js} +3 -3
- package/dist/{Decimal-Bv5A7-xm.js → Decimal-tv9vqaXk.js} +1 -1
- package/dist/{Delete-lSTmw_3a.js → Delete-HzVURBlh.js} +18 -17
- package/dist/{Detail-Dfvzkkw6.js → Detail-B2rtvufA.js} +6 -5
- package/dist/{Dictionary-thXsHbOo.js → Dictionary-DKnp-UJn.js} +3 -3
- package/dist/{Email-BDg7Qf9f.js → Email-CpOxaSSw.js} +4 -4
- package/dist/{File-TEaB_uIR.js → File-C63qevce.js} +42 -41
- package/dist/Image-DRIunv3_.js +9 -0
- package/dist/{Index-DapcfeaN.js → Index-B6Ec8rbl.js} +1 -1
- package/dist/{Index-ld-kC6ij.js → Index-BD6O3A9N.js} +7 -7
- package/dist/{Index-Cn5Qex6Q.js → Index-Cc_CDbUJ.js} +1 -1
- package/dist/{Index-BuhrNqZE.js → Index-Cev7Nudv.js} +1 -1
- package/dist/Index-DSKuNKCT.js +4 -0
- package/dist/Index-QIBRYf1L.js +4 -0
- package/dist/Index-ZOfKMgat.js +4 -0
- package/dist/{Index-BQKjFLbE.js → Index-bxLda8lZ.js} +29 -28
- package/dist/{Index.vue_vue_type_script_setup_true_lang-BKPwS2s9.js → Index.vue_vue_type_script_setup_true_lang-DaoT5edv.js} +4 -3
- package/dist/{Index.vue_vue_type_script_setup_true_lang-zlsTcQ-k.js → Index.vue_vue_type_script_setup_true_lang-xNPG8cCE.js} +10 -9
- package/dist/{Index.vue_vue_type_style_index_0_lang-CqjK1AVM.js → Index.vue_vue_type_style_index_0_lang-F7HqBnCS.js} +11 -11
- package/dist/{Install-BQ_rGQFg.js → Install-CTAGNKPW.js} +13 -12
- package/dist/{Int-DRcbQElJ.js → Int-DmNjhEfK.js} +8 -8
- package/dist/{Int-C33TxFtW.js → Int-nUzbSSOv.js} +11 -11
- package/dist/{List-CSkx_cTr.js → List-gNI3y_wH.js} +14 -13
- package/dist/{Maintaince-D0JZ-9mL.js → Maintaince-pTASKuMA.js} +1 -1
- package/dist/{Markdown-DjbgXlE6.js → Markdown-BJB6rQY8.js} +1 -1
- package/dist/{Month-C_sIkUIo.js → Month-CHfaIo8p.js} +4 -4
- package/dist/{Month-unY9f1-N.js → Month-DgztqRaq.js} +5 -5
- package/dist/{Month-68Hi85T_.js → Month-ui1XorBW.js} +1 -1
- package/dist/{Normal-BAoQvNjn.js → Normal-Cf7kP6RU.js} +61 -60
- package/dist/{Paging-BNVKLCCy.js → Paging-CBgVct8q.js} +9 -8
- package/dist/{PagingHeader-CkESvHSg.js → PagingHeader-BkFBl-r_.js} +18 -18
- package/dist/{PagingRow-DrMTqBj9.js → PagingRow-eXCadgdO.js} +7 -7
- package/dist/{QueryApi-D410WxrU.js → QueryApi-Wf86Sm6m.js} +1 -1
- package/dist/{Racebar-BhPT9MdU.js → Racebar-ClXzi9hV.js} +16 -16
- package/dist/{Radio-D1AcW1pn.js → Radio-llyoK7PI.js} +1 -1
- package/dist/{Register-jgIuWNwI.js → Register-BaHhaZMu.js} +49 -48
- package/dist/{RichText-BgLtVFup.js → RichText-Cc_jptgY.js} +8 -8
- package/dist/{SearchFooter-CAWhmjR2.js → SearchFooter-BgJxQrMo.js} +1 -1
- package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-ClaSxScx.js → SearchFooter.vue_vue_type_style_index_0_lang-C6DtjpFD.js} +1 -1
- package/dist/{SearchForm--aMZLLx4.js → SearchForm-CroUQ_3K.js} +1 -1
- package/dist/{SearchForm.vue_vue_type_style_index_0_lang-_rdBTvY_.js → SearchForm.vue_vue_type_style_index_0_lang-DEu6hHys.js} +28 -27
- package/dist/{Select-DU_6d_Ob.js → Select-BYw63gZy.js} +17 -16
- package/dist/{Select-CVnXZcZi.js → Select-BtNeUq9h.js} +1 -1
- package/dist/{Select-JFUTkpkm.js → Select-wxKjwxJj.js} +17 -17
- package/dist/{Single-B0g3q0uZ.js → Single-CCVi3Pcj.js} +83 -82
- package/dist/{Statistic-XTBdaF7E.js → Statistic-g3nQvsbW.js} +30 -29
- package/dist/{Stock-nsqld-XR.js → Stock-C6Fxo31l.js} +1 -1
- package/dist/{Stock-CWU3inQY.js → Stock-CNqLeSld.js} +1 -1
- package/dist/{Stock.vue_vue_type_style_index_0_lang-B7HB-me6.js → Stock.vue_vue_type_style_index_0_lang-BqXBN6CJ.js} +11 -11
- package/dist/{Switch-BqHPuFzA.js → Switch-NMkH-rhl.js} +1 -1
- package/dist/{Table-l0km2rz7.js → Table-Cdd_tPoL.js} +57 -56
- package/dist/{Table-xRltYWjc.js → Table-DpA4dO4P.js} +51 -50
- package/dist/{Text-DOTMUPPm.js → Text-DanSgaL9.js} +7 -7
- package/dist/Text-DgZjeg-u.js +4 -0
- package/dist/{Text-alXcFJHa.js → Text-GuLK7BYX.js} +6 -6
- package/dist/{Text.vue_vue_type_style_index_0_lang-1wF_kb3u.js → Text.vue_vue_type_style_index_0_lang-CYGKr6vh.js} +8 -8
- package/dist/{TextLink-BUpIHKqh.js → TextLink-B_Ur1pg0.js} +3 -3
- package/dist/{Textarea-IFX_g2SZ.js → Textarea-HhP_VFJV.js} +1 -1
- package/dist/{Time-CHadluUL.js → Time-CmyrAm3i.js} +8 -8
- package/dist/{Timeline-B7xPAwXh.js → Timeline-B85T2wBn.js} +11 -11
- package/dist/{Tree-qvL1DgaM.js → Tree-Ck_7r3nf.js} +85 -84
- package/dist/{Tree-DoXqyUpn.js → Tree-OqvNLgYj.js} +15 -14
- package/dist/{TreeNode-CUSAKhTp.js → TreeNode-Ba2f55wK.js} +1 -1
- package/dist/{Update-eETfPmHB.js → Update-DrmLFoty.js} +9 -8
- package/dist/{UpdateChild-DbbXDvCz.js → UpdateChild-CGCn-Eh4.js} +6 -6
- package/dist/{Upload-CAUGBT7A.js → Upload-D9HeSZCg.js} +18 -17
- package/dist/{Upload-DMfKIPRu.js → Upload-DXADyB6r.js} +49 -48
- package/dist/{UploadApi-FEbSWkVM.js → UploadApi-DAT-xdsM.js} +1 -1
- package/dist/{Year-CAxdMb2V.js → Year-Dx_qNPrz.js} +5 -5
- package/dist/{Year-CnHHib5-.js → Year-RGAEzf_V.js} +1 -1
- package/dist/assets/halo-fe-idvmXC0t.js +15923 -0
- package/dist/main-COiaaxGk.js +3542 -0
- package/dist/main.js +129 -129
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/dist/Code-C8zrvj8s.js +0 -4
- package/dist/Compare-CGW1IWLh.js +0 -56
- package/dist/Compare-DjrTKaz2.js +0 -26
- package/dist/Image-BqCjtyvc.js +0 -9
- package/dist/Index-BCku46lC.js +0 -4
- package/dist/Index-BLoAow8U.js +0 -4
- package/dist/Index-C3Dtv0ze.js +0 -4
- package/dist/Text-CFZ1y9Xn.js +0 -4
- package/dist/main-DArl7gFs.js +0 -19837
@@ -1,14 +1,15 @@
|
|
1
|
-
import { defineComponent as M, toRefs as b, onMounted as D, computed as
|
2
|
-
import {
|
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 S, createVNode as z, createTextVNode as s } from "vue";
|
2
|
+
import { _ as F, K as C, a3 as K } from "./assets/halo-fe-idvmXC0t.js";
|
3
|
+
import { H as P } from "./main-COiaaxGk.js";
|
3
4
|
import "vue-router";
|
4
5
|
import "./assets/intro.js-DxWjEdp_.js";
|
5
|
-
const
|
6
|
+
const R = {
|
6
7
|
key: 0,
|
7
8
|
class: "menus"
|
8
|
-
},
|
9
|
+
}, T = ["onClick"], $ = { class: "title" }, j = {
|
9
10
|
key: 1,
|
10
11
|
class: "column-empty"
|
11
|
-
}, q = /* @__PURE__ */ a("br", null, null, -1), A = /* @__PURE__ */ a("br", null, null, -1),
|
12
|
+
}, q = /* @__PURE__ */ a("br", null, null, -1), A = /* @__PURE__ */ a("br", null, null, -1), X = /* @__PURE__ */ M({
|
12
13
|
__name: "Column",
|
13
14
|
props: {
|
14
15
|
view: {},
|
@@ -16,38 +17,38 @@ const T = {
|
|
16
17
|
win: {}
|
17
18
|
},
|
18
19
|
emits: ["loaded", "navigate"],
|
19
|
-
setup(
|
20
|
-
let c = x,
|
20
|
+
setup(y, { expose: g, emit: x }) {
|
21
|
+
let c = x, w = y, { url: m, view: d } = b(w), B = (t) => !0, N = (t) => !0, U = () => {
|
21
22
|
p();
|
22
23
|
}, p = () => {
|
23
|
-
c("loaded",
|
24
|
+
c("loaded", r.value.title);
|
24
25
|
}, V = (t) => {
|
25
|
-
let v =
|
26
|
+
let v = C.getUrl(t.url, { m: t.id });
|
26
27
|
c("navigate", v);
|
27
28
|
};
|
28
29
|
D(() => {
|
29
30
|
p();
|
30
31
|
});
|
31
|
-
let
|
32
|
-
return g({ shouldLoad:
|
33
|
-
default:
|
34
|
-
e(
|
35
|
-
(l(!0), o(E, null, H(e(
|
32
|
+
let r = f(() => F.getMenuByUrl(m.value)), _ = f(() => C.getPath(m.value));
|
33
|
+
return g({ shouldLoad: B, shouldSpin: N, refresh: U }), (t, v) => (l(), h(e(K), null, {
|
34
|
+
default: k(() => [
|
35
|
+
e(r) ? (l(), o("div", R, [
|
36
|
+
(l(!0), o(E, null, H(e(r).children, (n) => (l(), o("div", {
|
36
37
|
class: "menu",
|
37
|
-
key:
|
38
|
-
onClick: (G) => e(V)(
|
38
|
+
key: n.id,
|
39
|
+
onClick: (G) => e(V)(n)
|
39
40
|
}, [
|
40
|
-
|
41
|
+
n.icon ? (l(), o("i", {
|
41
42
|
key: 0,
|
42
|
-
class: L(
|
43
|
+
class: L(n.icon)
|
43
44
|
}, null, 2)) : u("", !0),
|
44
|
-
a("div", $, i(
|
45
|
-
], 8,
|
45
|
+
a("div", $, i(n.title), 1)
|
46
|
+
], 8, T))), 128))
|
46
47
|
])) : u("", !0),
|
47
|
-
(l(),
|
48
|
-
(!e(
|
49
|
-
z(e(
|
50
|
-
default:
|
48
|
+
(l(), h(S(e(d)))),
|
49
|
+
(!e(r) || e(r).children == 0) && !e(d) ? (l(), o("div", j, [
|
50
|
+
z(e(P), null, {
|
51
|
+
default: k(() => [
|
51
52
|
s(" 此栏目页不存在子菜单或自定义部分视图,无内容可展示 ")
|
52
53
|
]),
|
53
54
|
_: 1
|
@@ -64,5 +65,5 @@ const T = {
|
|
64
65
|
}
|
65
66
|
});
|
66
67
|
export {
|
67
|
-
|
68
|
+
X as default
|
68
69
|
};
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { defineComponent as E, toRefs as N, ref as S, computed as y, resolveComponent as u, openBlock as m, createElementBlock as p, createElementVNode as t, createVNode as v, createTextVNode as a, toDisplayString as l, unref as e, withCtx as b, Fragment as j, renderList as B, createBlock as T, createCommentVNode as q } from "vue";
|
2
|
-
import {
|
3
|
-
const F = { class: "ha-comment-layout" },
|
2
|
+
import { K as D } from "./assets/halo-fe-idvmXC0t.js";
|
3
|
+
const F = { class: "ha-comment-layout" }, K = { class: "comment-add" }, L = { class: "add-footer" }, M = { class: "footer-title" }, R = /* @__PURE__ */ t("i", { class: "el-icon-s-comment" }, null, -1), U = { class: "comment-user" }, $ = { class: "avatar" }, A = /* @__PURE__ */ t("img", {
|
4
4
|
src: "https://upload.jianshu.io/users/upload_avatars/2859365/cce8943353eb.jpeg?imageMogr2/auto-orient/strip|imageView2/1/w/80/h/80/format/webp",
|
5
5
|
alt: ""
|
6
|
-
}, null, -1), G = { class: "comment-body" }, H = { class: "comment-time" }, J = { class: "comment-content" },
|
6
|
+
}, null, -1), G = { class: "comment-body" }, H = { class: "comment-time" }, J = { class: "comment-content" }, O = /* @__PURE__ */ t("div", { class: "content-footer" }, [
|
7
7
|
/* @__PURE__ */ t("span", null, [
|
8
8
|
/* @__PURE__ */ t("i", { class: "fa fa-thumbs-up" }),
|
9
9
|
/* @__PURE__ */ a("20")
|
@@ -12,7 +12,7 @@ const F = { class: "ha-comment-layout" }, L = { class: "comment-add" }, M = { cl
|
|
12
12
|
/* @__PURE__ */ t("i", { class: "el-icon-s-comment" }),
|
13
13
|
/* @__PURE__ */ a("回复")
|
14
14
|
])
|
15
|
-
], -1),
|
15
|
+
], -1), P = { class: "comment-footer" }, Z = /* @__PURE__ */ E({
|
16
16
|
__name: "Comment",
|
17
17
|
props: {
|
18
18
|
route: {},
|
@@ -25,7 +25,7 @@ const F = { class: "ha-comment-layout" }, L = { class: "comment-add" }, M = { cl
|
|
25
25
|
set: {}
|
26
26
|
},
|
27
27
|
setup(C) {
|
28
|
-
let x = C, { schema:
|
28
|
+
let x = C, { schema: Q, table: r, layout: o, set: _, validateErrors: W } = N(x), c = S(1), k = (n) => {
|
29
29
|
c.value = n;
|
30
30
|
}, w = y(() => {
|
31
31
|
let n = (c.value - 1) * o.value.pageSize, i = c.value * o.value.pageSize - 1;
|
@@ -34,11 +34,11 @@ const F = { class: "ha-comment-layout" }, L = { class: "comment-add" }, M = { cl
|
|
34
34
|
return (n, i) => {
|
35
35
|
const g = u("el-input"), f = u("el-button"), d = u("router-link"), I = u("el-pagination");
|
36
36
|
return m(), p("div", F, [
|
37
|
-
t("div",
|
37
|
+
t("div", K, [
|
38
38
|
v(g, { type: "textarea" }),
|
39
|
-
t("div",
|
40
|
-
t("div",
|
41
|
-
|
39
|
+
t("div", L, [
|
40
|
+
t("div", M, [
|
41
|
+
R,
|
42
42
|
a("全部评论 (" + l(e(_)[e(r).name].length) + ")", 1)
|
43
43
|
]),
|
44
44
|
v(f, {
|
@@ -57,7 +57,7 @@ const F = { class: "ha-comment-layout" }, L = { class: "comment-add" }, M = { cl
|
|
57
57
|
class: "comment",
|
58
58
|
key: z
|
59
59
|
}, [
|
60
|
-
t("div",
|
60
|
+
t("div", U, [
|
61
61
|
t("div", $, [
|
62
62
|
A,
|
63
63
|
a(" " + l(s[e(o).avatar]), 1)
|
@@ -76,10 +76,10 @@ const F = { class: "ha-comment-layout" }, L = { class: "comment-add" }, M = { cl
|
|
76
76
|
}, 1032, ["to"])) : q("", !0),
|
77
77
|
t("div", H, l(s[e(o).commentTime]), 1),
|
78
78
|
t("div", J, l(s[e(o).content]), 1),
|
79
|
-
|
79
|
+
O
|
80
80
|
])
|
81
81
|
]))), 128)),
|
82
|
-
t("div",
|
82
|
+
t("div", P, [
|
83
83
|
v(I, {
|
84
84
|
background: "",
|
85
85
|
layout: "total, prev, pager, next, jumper",
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import { defineComponent as h, toRefs as y, onMounted as E, computed as s, unref as f, openBlock as k, createElementBlock as w, normalizeClass as V, createCommentVNode as b, nextTick as B } from "vue";
|
2
|
+
import { x as N } from "./assets/halo-fe-idvmXC0t.js";
|
3
|
+
const D = /* @__PURE__ */ h({
|
4
|
+
__name: "Compare",
|
5
|
+
props: {
|
6
|
+
schema: {},
|
7
|
+
table: {},
|
8
|
+
field: {},
|
9
|
+
set: {},
|
10
|
+
row: {},
|
11
|
+
modelValue: {}
|
12
|
+
},
|
13
|
+
setup(p) {
|
14
|
+
let v = p, { table: l, field: t, set: g, row: a, modelValue: M } = y(v), o = l.value.name + "-" + t.value.name + "-" + g.value[l.value.name].indexOf(a.value), r = null, n = null, i = null, e = null, x = () => {
|
15
|
+
B(() => {
|
16
|
+
let d = l.value.fields.find((_) => _.name == t.value.control.compareWith), c = a.value[d.name];
|
17
|
+
n = e.editor.createModel(c, u.value), i = e.editor.createModel(m.value, u.value);
|
18
|
+
let C = document.getElementsByClassName(o)[0];
|
19
|
+
r = e.editor.createDiffEditor(C, { originalEditable: !0 }), r.setModel({
|
20
|
+
original: n,
|
21
|
+
modified: i
|
22
|
+
});
|
23
|
+
});
|
24
|
+
};
|
25
|
+
E(async () => {
|
26
|
+
e = await N.getMonaco(), x();
|
27
|
+
});
|
28
|
+
let m = s(() => M || ""), u = s(() => t.value.control.type.toLowerCase());
|
29
|
+
return (d, c) => f(m) ? (k(), w("div", {
|
30
|
+
key: 0,
|
31
|
+
class: V(`text-compare ${f(o)}`)
|
32
|
+
}, null, 2)) : b("", !0);
|
33
|
+
}
|
34
|
+
});
|
35
|
+
export {
|
36
|
+
D as default
|
37
|
+
};
|
@@ -0,0 +1,57 @@
|
|
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 { x as L } from "./assets/halo-fe-idvmXC0t.js";
|
3
|
+
const j = /* @__PURE__ */ b({
|
4
|
+
__name: "Compare",
|
5
|
+
props: {
|
6
|
+
schema: {},
|
7
|
+
table: {},
|
8
|
+
field: {},
|
9
|
+
set: {},
|
10
|
+
row: {},
|
11
|
+
modelValue: {}
|
12
|
+
},
|
13
|
+
emits: ["submit", "change", "update:modelValue"],
|
14
|
+
setup(V, { emit: M }) {
|
15
|
+
let m = M, y = V, { table: E, field: i, set: O, row: u, modelValue: c } = k(y), r = null, f = null, g = null, t = null, l = null, s = h(), p = h(), _ = (e) => {
|
16
|
+
p.value = x(), z(() => {
|
17
|
+
let a = u.value[d.value.name], o = i.value.control.language;
|
18
|
+
f = e.editor.createModel(c.value, o), g = e.editor.createModel(a, o), r = e.editor.createDiffEditor(s.value, {
|
19
|
+
originalEditable: !0,
|
20
|
+
automaticLayout: !0,
|
21
|
+
renderSideBySide: !i.value.control.inline
|
22
|
+
//是否启用行内模式
|
23
|
+
}), r.setModel({ original: f, modified: g }), t = r.getOriginalEditor(), t.onDidChangeModelContent((C) => {
|
24
|
+
let n = t.getValue();
|
25
|
+
m("update:modelValue", n), m("change", n);
|
26
|
+
}), l = r.getModifiedEditor(), l.onDidChangeModelContent((C) => {
|
27
|
+
let n = l.getValue();
|
28
|
+
u.value[d.value.name] = n;
|
29
|
+
});
|
30
|
+
});
|
31
|
+
}, x = () => i.value.control.height ? `height: ${i.value.control.height}px` : "min-height: 200px;";
|
32
|
+
w(async () => {
|
33
|
+
let e = await L.getMonaco();
|
34
|
+
_(e);
|
35
|
+
});
|
36
|
+
let d = S(() => E.value.fields.find((a) => a.name == i.value.control.compareWith));
|
37
|
+
return v(() => c.value, (e, a) => {
|
38
|
+
if (!t)
|
39
|
+
return;
|
40
|
+
let o = t.getValue();
|
41
|
+
e != o && t.setValue(e ?? "");
|
42
|
+
}), v(() => u.value[d.value.name], (e, a) => {
|
43
|
+
if (!l)
|
44
|
+
return;
|
45
|
+
let o = l.getValue();
|
46
|
+
e != o && l.setValue(e ?? "");
|
47
|
+
}), (e, a) => (B(), D("div", {
|
48
|
+
ref_key: "compareRef",
|
49
|
+
ref: s,
|
50
|
+
class: "control-compare",
|
51
|
+
style: R(W(p))
|
52
|
+
}, null, 4));
|
53
|
+
}
|
54
|
+
});
|
55
|
+
export {
|
56
|
+
j as default
|
57
|
+
};
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { defineComponent as y, toRefs as
|
2
|
-
import {
|
1
|
+
import { defineComponent as y, toRefs as _, computed as b, unref as l, renderSlot as n, openBlock as g, createElementBlock as v, createElementVNode as c } from "vue";
|
2
|
+
import { f as a } from "./assets/halo-fe-idvmXC0t.js";
|
3
3
|
import { C } from "./assets/clipboard-DjQPoCBJ.js";
|
4
4
|
const k = {
|
5
5
|
key: 1,
|
@@ -20,15 +20,15 @@ const k = {
|
|
20
20
|
modelValue: {}
|
21
21
|
},
|
22
22
|
setup(p) {
|
23
|
-
let u = p, { table: w, field: r, set: N, row: S, modelValue: i } =
|
23
|
+
let u = p, { table: w, field: r, set: N, row: S, modelValue: i } = _(u), 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
24
|
let e = new C(".btn-copy", { text: () => f() });
|
25
25
|
e.on("success", function(t) {
|
26
26
|
a.success("复制成功"), e.destroy();
|
27
27
|
}), e.on("error", function(t) {
|
28
28
|
a.error("复制失败"), e.destroy();
|
29
29
|
});
|
30
|
-
}, o =
|
31
|
-
return (e, t) => l(r).control.copy ? (g(),
|
30
|
+
}, o = b(() => i.value);
|
31
|
+
return (e, t) => l(r).control.copy ? (g(), v("div", k, [
|
32
32
|
c("i", {
|
33
33
|
class: "btn-copy",
|
34
34
|
onClick: t[0] || (t[0] = //@ts-ignore
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { defineComponent as x, toRefs as
|
2
|
-
import {
|
3
|
-
const
|
1
|
+
import { defineComponent as x, toRefs as z, ref as L, openBlock as n, createBlock as i, KeepAlive as P, resolveDynamicComponent as R, unref as o } from "vue";
|
2
|
+
import { K as B, f as K, P as N } from "./assets/halo-fe-idvmXC0t.js";
|
3
|
+
const D = /* @__PURE__ */ x({
|
4
4
|
__name: "Custom",
|
5
5
|
props: {
|
6
6
|
view: {},
|
@@ -9,24 +9,24 @@ const P = /* @__PURE__ */ x({
|
|
9
9
|
},
|
10
10
|
emits: ["loaded", "navigate"],
|
11
11
|
setup(s, { expose: u, emit: f }) {
|
12
|
-
let a = f,
|
12
|
+
let a = f, d = s, { url: v, view: m, win: p } = z(d), t = L(), c = (e, r) => {
|
13
13
|
if (!t.value || !t.value.keyboard)
|
14
14
|
return !1;
|
15
15
|
t.value.keyboard(e, r);
|
16
|
-
}, h = (e) => !0,
|
16
|
+
}, h = (e) => !0, b = (e) => !0, g = () => {
|
17
17
|
var r;
|
18
18
|
let e = (r = t.value) == null ? void 0 : r.refresh;
|
19
19
|
if (!e) {
|
20
|
-
let l = B.getPath(
|
21
|
-
|
20
|
+
let l = B.getPath(v.value);
|
21
|
+
K.notify(N("common.tips"), `要实现自定义刷新功能,请在组件 ${l} 内部定义并暴露refresh方法即可`, "warning");
|
22
22
|
return;
|
23
23
|
}
|
24
24
|
e();
|
25
|
-
},
|
25
|
+
}, w = (e) => {
|
26
26
|
var l;
|
27
27
|
let r = (l = t.value) == null ? void 0 : l.beforeClose;
|
28
28
|
r && r(e);
|
29
|
-
},
|
29
|
+
}, _ = (e) => {
|
30
30
|
t.value && t.value.resize && t.value.resize(e);
|
31
31
|
}, k = (e) => {
|
32
32
|
t.value.handler(e);
|
@@ -35,7 +35,7 @@ const P = /* @__PURE__ */ x({
|
|
35
35
|
}, C = (e) => {
|
36
36
|
a("navigate", e);
|
37
37
|
};
|
38
|
-
return u({ shouldLoad: h, shouldSpin:
|
38
|
+
return u({ shouldLoad: h, shouldSpin: b, refresh: g, beforeClose: w, keyboard: c, resize: _, handler: k }), (e, r) => (n(), i(P, null, [
|
39
39
|
(n(), i(R(o(m)), {
|
40
40
|
ref_key: "customRef",
|
41
41
|
ref: t,
|
@@ -47,5 +47,5 @@ const P = /* @__PURE__ */ x({
|
|
47
47
|
}
|
48
48
|
});
|
49
49
|
export {
|
50
|
-
|
50
|
+
D as default
|
51
51
|
};
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import {
|
3
|
-
const
|
1
|
+
import { defineComponent as q, toRefs as D, ref as f, resolveComponent as a, openBlock as O, createBlock as P, unref as e, isRef as R, withCtx as r, createElementVNode as _, toDisplayString as c, createVNode as n, createTextVNode as v } from "vue";
|
2
|
+
import { P as m, L as S, O as L, f as T } from "./assets/halo-fe-idvmXC0t.js";
|
3
|
+
const j = { class: "footer-content" }, F = /* @__PURE__ */ q({
|
4
4
|
__name: "DataExport",
|
5
5
|
props: {
|
6
6
|
route: { type: String },
|
@@ -9,40 +9,40 @@ const A = { class: "footer-content" }, H = /* @__PURE__ */ h({
|
|
9
9
|
},
|
10
10
|
emits: ["close", "update:modelValue"],
|
11
11
|
setup(V, { emit: x }) {
|
12
|
-
let C = x, y = V, { route: b, pageCount: d, modelValue: i } =
|
12
|
+
let C = x, y = V, { route: b, pageCount: d, modelValue: i } = D(y), p = f(!1), o = f({ start: 1, end: 100 }), E = (u, t, s) => {
|
13
13
|
o.value.end < o.value.start ? s(new Error("结束页不能小于起始页")) : s();
|
14
|
-
}, U = () => {
|
15
|
-
C("update:modelValue", !1);
|
16
14
|
}, k = () => {
|
17
|
-
|
18
|
-
|
15
|
+
C("update:modelValue", !1);
|
16
|
+
}, N = () => {
|
17
|
+
p.value = !0, S.get(b.value, o.value).then(({ data: u, message: t }) => {
|
18
|
+
L.save(u.content, u.name), T.success(t);
|
19
19
|
}).finally(() => {
|
20
20
|
p.value = !1;
|
21
21
|
});
|
22
22
|
};
|
23
23
|
return (u, t) => {
|
24
|
-
const s = a("el-input-number"), g = a("el-form-item"),
|
25
|
-
return
|
24
|
+
const s = a("el-input-number"), g = a("el-form-item"), w = a("el-form"), B = a("el-divider"), U = a("el-button"), h = a("el-dialog");
|
25
|
+
return O(), P(h, {
|
26
26
|
class: "data-export",
|
27
27
|
draggable: "",
|
28
28
|
"destroy-on-close": "",
|
29
29
|
title: e(m)("paging.data_export"),
|
30
30
|
width: "350px",
|
31
|
-
onClose: e(
|
31
|
+
onClose: e(k),
|
32
32
|
modelValue: e(i),
|
33
|
-
"onUpdate:modelValue": t[3] || (t[3] = (l) =>
|
33
|
+
"onUpdate:modelValue": t[3] || (t[3] = (l) => R(i) ? i.value = l : i = l)
|
34
34
|
}, {
|
35
35
|
footer: r(() => [
|
36
|
-
|
36
|
+
_("div", {
|
37
37
|
class: "footer-operation",
|
38
38
|
onClick: t[2] || (t[2] = (l) => e(o).end = e(d))
|
39
39
|
}, c(e(m)("paging.total_page", [e(d)])), 1),
|
40
|
-
|
41
|
-
n(
|
40
|
+
_("div", j, [
|
41
|
+
n(U, {
|
42
42
|
type: "primary",
|
43
43
|
plain: "",
|
44
44
|
loading: e(p),
|
45
|
-
onClick: e(
|
45
|
+
onClick: e(N)
|
46
46
|
}, {
|
47
47
|
default: r(() => [
|
48
48
|
v(c(e(m)("paging.export")), 1)
|
@@ -52,7 +52,7 @@ const A = { class: "footer-content" }, H = /* @__PURE__ */ h({
|
|
52
52
|
])
|
53
53
|
]),
|
54
54
|
default: r(() => [
|
55
|
-
n(
|
55
|
+
n(w, {
|
56
56
|
ref: "export",
|
57
57
|
inline: "",
|
58
58
|
model: e(o)
|
@@ -96,7 +96,7 @@ const A = { class: "footer-content" }, H = /* @__PURE__ */ h({
|
|
96
96
|
]),
|
97
97
|
_: 1
|
98
98
|
}, 8, ["model"]),
|
99
|
-
n(
|
99
|
+
n(B)
|
100
100
|
]),
|
101
101
|
_: 1
|
102
102
|
}, 8, ["title", "onClose", "modelValue"]);
|
@@ -104,5 +104,5 @@ const A = { class: "footer-content" }, H = /* @__PURE__ */ h({
|
|
104
104
|
}
|
105
105
|
});
|
106
106
|
export {
|
107
|
-
|
107
|
+
F as _
|
108
108
|
};
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { defineComponent as X, toRefs as Y, ref as i, resolveComponent as s, openBlock as b, createBlock as x, unref as e, isRef as
|
2
|
-
import {
|
1
|
+
import { defineComponent as X, toRefs as Y, ref as i, resolveComponent as s, openBlock as b, createBlock as x, unref as e, isRef as F, withCtx as t, createElementVNode as g, createVNode as r, createTextVNode as m, toDisplayString as u, createCommentVNode as Z, createElementBlock as $, Fragment as ee, renderList as le } from "vue";
|
2
|
+
import { P as v, c as oe, ai as te, L as k, O as L, f as C, g as ae } from "./assets/halo-fe-idvmXC0t.js";
|
3
3
|
const ne = /* @__PURE__ */ g("i", { class: "fa fa-upload" }, null, -1), re = { style: { color: "red" } }, se = { class: "footer-operation" }, ue = { class: "footer-content" }, ie = /* @__PURE__ */ g("i", { class: "fa fa-download" }, null, -1), pe = /* @__PURE__ */ X({
|
4
4
|
__name: "DataImport",
|
5
5
|
props: {
|
@@ -7,28 +7,28 @@ const ne = /* @__PURE__ */ g("i", { class: "fa fa-upload" }, null, -1), re = { s
|
|
7
7
|
modelValue: Boolean
|
8
8
|
},
|
9
9
|
emits: ["close", "succeed", "update:modelValue"],
|
10
|
-
setup(
|
11
|
-
let B =
|
10
|
+
setup(N, { emit: O }) {
|
11
|
+
let B = O, T = N, { next: P, modelValue: h } = Y(T), V = i(!1), E = i(), R = {}, w = i([]), d = i([]), c = i(), _ = i(), y = i({ clear: !1 }), U = () => {
|
12
12
|
B("close");
|
13
13
|
}, A = async (a) => {
|
14
|
-
let l =
|
14
|
+
let l = P.value.import.route;
|
15
15
|
E.value = oe.api.url + l;
|
16
16
|
let n = new te();
|
17
17
|
n.path = l, n.method = "POST", await k.onRequest(n);
|
18
18
|
let p = n.getHeader("Authorization");
|
19
|
-
return R.Authorization = p,
|
20
|
-
},
|
21
|
-
},
|
19
|
+
return R.Authorization = p, L.isExcel(a.name) ? Promise.resolve() : (C.error("请上传正确的Excel文件"), Promise.reject());
|
20
|
+
}, j = (a, l) => !0, q = (a) => {
|
21
|
+
}, z = (a, l, n) => {
|
22
22
|
w.value = [l], k.handleResponseBody(a, !0).then((p) => {
|
23
23
|
p.code == "ValidateError" ? (d.value = ae.groupByArray(p.data, (f) => f.table), _.value = d.value[0], c.value = d.value[0].key) : (d.value = [], _.value = null, c.value = null);
|
24
24
|
}).catch(() => {
|
25
25
|
w.value = [];
|
26
26
|
});
|
27
|
-
},
|
27
|
+
}, D = (a, l, n) => (C.error(a.message), Promise.resolve()), I = (a) => {
|
28
28
|
_.value = d.value[a];
|
29
29
|
}, S = () => {
|
30
|
-
V.value = !0, k.get(
|
31
|
-
|
30
|
+
V.value = !0, k.get(P.value.import.route).then(({ data: a, message: l }) => {
|
31
|
+
L.save(a.content, a.name), C.success(l);
|
32
32
|
}).finally(() => {
|
33
33
|
V.value = !1;
|
34
34
|
});
|
@@ -41,9 +41,9 @@ const ne = /* @__PURE__ */ g("i", { class: "fa fa-upload" }, null, -1), re = { s
|
|
41
41
|
draggable: "",
|
42
42
|
"destroy-on-close": "",
|
43
43
|
title: e(v)("paging.data_import"),
|
44
|
-
onClose: e(
|
44
|
+
onClose: e(U),
|
45
45
|
modelValue: e(h),
|
46
|
-
"onUpdate:modelValue": l[2] || (l[2] = (o) =>
|
46
|
+
"onUpdate:modelValue": l[2] || (l[2] = (o) => F(h) ? h.value = o : h = o)
|
47
47
|
}, {
|
48
48
|
footer: t(() => [
|
49
49
|
g("div", se, [
|
@@ -89,10 +89,10 @@ const ne = /* @__PURE__ */ g("i", { class: "fa fa-upload" }, null, -1), re = { s
|
|
89
89
|
data: e(y),
|
90
90
|
"file-list": e(w),
|
91
91
|
"before-upload": e(A),
|
92
|
-
"before-remove": e(
|
93
|
-
"on-preview": e(
|
94
|
-
"on-success": e(
|
95
|
-
"on-error": e(
|
92
|
+
"before-remove": e(j),
|
93
|
+
"on-preview": e(q),
|
94
|
+
"on-success": e(z),
|
95
|
+
"on-error": e(D)
|
96
96
|
}, {
|
97
97
|
default: t(() => [
|
98
98
|
r(n, null, {
|
@@ -143,9 +143,9 @@ const ne = /* @__PURE__ */ g("i", { class: "fa fa-upload" }, null, -1), re = { s
|
|
143
143
|
_: 1
|
144
144
|
}, 8, ["data"])) : Z("", !0),
|
145
145
|
r(K, {
|
146
|
-
onChange: e(
|
146
|
+
onChange: e(I),
|
147
147
|
modelValue: e(c),
|
148
|
-
"onUpdate:modelValue": l[0] || (l[0] = (o) =>
|
148
|
+
"onUpdate:modelValue": l[0] || (l[0] = (o) => F(c) ? c.value = o : c = o),
|
149
149
|
style: { "margin-top": "10px" }
|
150
150
|
}, {
|
151
151
|
default: t(() => [
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { defineComponent as i, toRefs as f, computed as
|
2
|
-
import {
|
1
|
+
import { defineComponent as i, toRefs as f, computed as _, resolveComponent as V, openBlock as b, createBlock as h, unref as e, isRef as k } from "vue";
|
2
|
+
import { aL as g } from "./assets/halo-fe-idvmXC0t.js";
|
3
3
|
const C = /* @__PURE__ */ i({
|
4
4
|
__name: "Date",
|
5
5
|
props: {
|
@@ -12,7 +12,7 @@ const C = /* @__PURE__ */ i({
|
|
12
12
|
},
|
13
13
|
emits: ["submit", "change", "update:modelValue"],
|
14
14
|
setup(n, { emit: r }) {
|
15
|
-
let o = r, p = n, { table: s, field: a, set: x, modelValue: u } = f(p), l =
|
15
|
+
let o = r, p = n, { table: s, field: a, set: x, modelValue: u } = f(p), l = _({
|
16
16
|
get() {
|
17
17
|
return u.value;
|
18
18
|
},
|
@@ -21,7 +21,7 @@ const C = /* @__PURE__ */ i({
|
|
21
21
|
}
|
22
22
|
});
|
23
23
|
return (t, d) => {
|
24
|
-
const c =
|
24
|
+
const c = V("el-date-picker");
|
25
25
|
return b(), h(c, {
|
26
26
|
type: "date",
|
27
27
|
placeholder: e(g)(e(s).name, e(a).name),
|
@@ -10,7 +10,7 @@ const h = /* @__PURE__ */ u({
|
|
10
10
|
modelValue: {}
|
11
11
|
},
|
12
12
|
setup(a) {
|
13
|
-
let s = i(() => import("./Text-
|
13
|
+
let s = i(() => import("./Text-DgZjeg-u.js")), m = a, { schema: r, table: n, field: d, set: f, row: p, modelValue: l } = c(m);
|
14
14
|
return (x, t) => (V(), b(e(s), {
|
15
15
|
schema: e(r),
|
16
16
|
table: e(n),
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as f, toRefs as h, ref as k, computed as V, resolveComponent as b, openBlock as g, createBlock as v, unref as o, isRef as x } from "vue";
|
2
|
-
import { b as e,
|
2
|
+
import { b as e, P as l } from "./assets/halo-fe-idvmXC0t.js";
|
3
3
|
const R = /* @__PURE__ */ f({
|
4
4
|
__name: "DateRange",
|
5
5
|
props: {
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { defineComponent as c, toRefs as f, computed as
|
2
|
-
import {
|
1
|
+
import { defineComponent as c, toRefs as f, computed as _, resolveComponent as V, openBlock as b, createBlock as h, unref as e, isRef as k } from "vue";
|
2
|
+
import { aL as Y } from "./assets/halo-fe-idvmXC0t.js";
|
3
3
|
const v = /* @__PURE__ */ c({
|
4
4
|
__name: "DateTime",
|
5
5
|
props: {
|
@@ -12,7 +12,7 @@ const v = /* @__PURE__ */ c({
|
|
12
12
|
},
|
13
13
|
emits: ["submit", "change", "update:modelValue"],
|
14
14
|
setup(r, { emit: n }) {
|
15
|
-
let o = n, s = r, { table: p, field: a, set: g, modelValue: u } = f(s), l =
|
15
|
+
let o = n, s = r, { table: p, field: a, set: g, modelValue: u } = f(s), l = _({
|
16
16
|
get() {
|
17
17
|
return u.value;
|
18
18
|
},
|
@@ -21,7 +21,7 @@ const v = /* @__PURE__ */ c({
|
|
21
21
|
}
|
22
22
|
});
|
23
23
|
return (t, m) => {
|
24
|
-
const i =
|
24
|
+
const i = V("el-date-picker");
|
25
25
|
return b(), h(i, {
|
26
26
|
type: "datetime",
|
27
27
|
"value-format": "YYYY-MM-DD HH:mm:ss SSS",
|
@@ -10,7 +10,7 @@ const h = /* @__PURE__ */ u({
|
|
10
10
|
modelValue: {}
|
11
11
|
},
|
12
12
|
setup(a) {
|
13
|
-
let m = i(() => import("./Text-
|
13
|
+
let m = i(() => import("./Text-DgZjeg-u.js")), s = a, { schema: r, table: n, field: d, set: f, row: p, modelValue: l } = c(s);
|
14
14
|
return (x, t) => (V(), b(e(m), {
|
15
15
|
schema: e(r),
|
16
16
|
table: e(n),
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as f, toRefs as _, ref as D, computed as h, resolveComponent as V, openBlock as b, createBlock as g, unref as l, isRef as w } from "vue";
|
2
|
-
import { b as r,
|
2
|
+
import { b as r, P as s } from "./assets/halo-fe-idvmXC0t.js";
|
3
3
|
const H = /* @__PURE__ */ f({
|
4
4
|
__name: "DateTimeRange",
|
5
5
|
props: {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { defineComponent as i, toRefs as g, ref as V, computed as b, resolveComponent as k, openBlock as v, createBlock as x, unref as o, isRef as C } from "vue";
|
2
|
-
import { b as t,
|
3
|
-
const
|
2
|
+
import { b as t, P as l } from "./assets/halo-fe-idvmXC0t.js";
|
3
|
+
const B = /* @__PURE__ */ i({
|
4
4
|
__name: "Daterange",
|
5
5
|
props: {
|
6
6
|
schema: {},
|
@@ -53,5 +53,5 @@ const w = /* @__PURE__ */ i({
|
|
53
53
|
}
|
54
54
|
});
|
55
55
|
export {
|
56
|
-
|
56
|
+
B as default
|
57
57
|
};
|
@@ -10,7 +10,7 @@ const h = /* @__PURE__ */ u({
|
|
10
10
|
modelValue: {}
|
11
11
|
},
|
12
12
|
setup(a) {
|
13
|
-
let m = i(() => import("./Text-
|
13
|
+
let m = i(() => import("./Text-DgZjeg-u.js")), s = a, { schema: r, table: n, field: d, set: f, row: p, modelValue: l } = c(s);
|
14
14
|
return (x, t) => (V(), b(e(m), {
|
15
15
|
schema: e(r),
|
16
16
|
table: e(n),
|