halo-pc 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (150) hide show
  1. package/dist/{Article-7pMF1N-k.js → Article-BbJTCOkX.js} +66 -62
  2. package/dist/{Autocomplete-CEjjKXwo.js → Autocomplete-A0m1RW7z.js} +1 -1
  3. package/dist/Autocomplete-C3d_yunJ.js +52 -0
  4. package/dist/Autocomplete-H0_xgWsN.js +53 -0
  5. package/dist/{CSharp-DatSqpip.js → CSharp-Bwl97exE.js} +1 -1
  6. package/dist/{Calender-B1HoFiQg.js → Calender-C3vbVYIN.js} +1 -1
  7. package/dist/Callback-oU2ap8v9.js +24 -0
  8. package/dist/Cascader-ClSabtOx.js +45 -0
  9. package/dist/Cascader-DRErYyH6.js +84 -0
  10. package/dist/{Checkbox-B6IkMrWB.js → Checkbox-BJS0a1NT.js} +1 -1
  11. package/dist/{Code-SZuIImtp.js → Code-9I77CMRV.js} +1 -1
  12. package/dist/Code-B2DrYXDa.js +58 -0
  13. package/dist/Code-BgqGTky1.js +40 -0
  14. package/dist/Code-Cv1pm18C.js +4 -0
  15. package/dist/Code.vue_vue_type_style_index_0_lang-IHZepbsi.js +63 -0
  16. package/dist/Column-Dgs0SdWX.js +71 -0
  17. package/dist/Comment-Cy6lpmqk.js +102 -0
  18. package/dist/Compare-5cTiHEdo.js +30 -0
  19. package/dist/Compare-CWeuLw9n.js +60 -0
  20. package/dist/Copy-C6WEtRhC.js +47 -0
  21. package/dist/Custom-QDHQJoxC.js +53 -0
  22. package/dist/{DataExport-I9iG4oEo.js → DataExport-BHh7NvbT.js} +1 -1
  23. package/dist/{DataExport.vue_vue_type_script_setup_true_lang-BgKetUGv.js → DataExport.vue_vue_type_script_setup_true_lang-C9t5j7Gi.js} +37 -33
  24. package/dist/{DataImport-2KtOy-of.js → DataImport-CtBsCyNb.js} +1 -1
  25. package/dist/{DataImport.vue_vue_type_script_setup_true_lang-DgzKdC2g.js → DataImport.vue_vue_type_script_setup_true_lang-bI0HP38b.js} +59 -55
  26. package/dist/{Date-PERpDDy_.js → Date-IV1FwqTW.js} +1 -1
  27. package/dist/{DateRange-BaxHMjcx.js → DateRange-IWmDLSuy.js} +11 -7
  28. package/dist/{DateTime-B7gHENiu.js → DateTime-Di6sr-tq.js} +1 -1
  29. package/dist/{DateTimeRange-yI9Y2qgC.js → DateTimeRange-BNUGYgWf.js} +14 -10
  30. package/dist/{Daterange-DqvBvK-B.js → Daterange-rrlMT4tD.js} +17 -13
  31. package/dist/{Decimal-AXwMeqBW.js → Decimal-D9TVQqyS.js} +1 -1
  32. package/dist/Delete-B-k4PTWk.js +59 -0
  33. package/dist/{Detail-aWACqVnM.js → Detail-HAblGKTY.js} +20 -16
  34. package/dist/Dictionary-BUmany6B.js +59 -0
  35. package/dist/{File--NsXL6XX.js → File-MF1QgEQX.js} +45 -41
  36. package/dist/{Image-CuwfJLKW.js → Image-Dps_vfcZ.js} +1 -1
  37. package/dist/{Index-BNOFdDjW.js → Index-7cTFT9Xb.js} +19 -15
  38. package/dist/{Index-CQ9S2R9b.js → Index-C_mfWEwr.js} +1 -1
  39. package/dist/Index-Cgets8DK.js +4 -0
  40. package/dist/Index-DGnHsBz4.js +4 -0
  41. package/dist/{Index-Cewv4-Ik.js → Index-DupYRMRj.js} +45 -41
  42. package/dist/{Index-DA2wAurY.js → Index-XBFHPLbK.js} +1 -1
  43. package/dist/{Index-Cj79dCuO.js → Index-hgpg_5ma.js} +1 -1
  44. package/dist/{Index.vue_vue_type_script_setup_true_lang-D6_VOLX-.js → Index.vue_vue_type_script_setup_true_lang-C1Bw7evJ.js} +15 -11
  45. package/dist/{Index.vue_vue_type_script_setup_true_lang-DjiARPz7.js → Index.vue_vue_type_script_setup_true_lang-yOf2ubuo.js} +16 -12
  46. package/dist/{Index.vue_vue_type_style_index_0_lang-DApNHvNX.js → Index.vue_vue_type_style_index_0_lang-DBERwM_v.js} +31 -27
  47. package/dist/{Install-BWdNbtVx.js → Install-A9qs4Vg-.js} +20 -16
  48. package/dist/{Int-nmVkFRqG.js → Int-B3L54Gcc.js} +16 -12
  49. package/dist/List-Om6OdbbR.js +76 -0
  50. package/dist/Maintaince-CrfEX-5B.js +19 -0
  51. package/dist/{Markdown-DD6ufwhM.js → Markdown-wcGRlabe.js} +1 -1
  52. package/dist/{Month-BqbTFGgo.js → Month-C1tCQKvO.js} +1 -1
  53. package/dist/{Normal-f4HN1ciI.js → Normal-HoU_elKy.js} +51 -47
  54. package/dist/Paging-C_StoYuZ.js +94 -0
  55. package/dist/QueryApi-BrYyIwqV.js +18 -0
  56. package/dist/{Racebar-Bou-XNCm.js → Racebar-BXuP1N9F.js} +27 -23
  57. package/dist/{Radio-BmikzeCv.js → Radio-D6W9guyM.js} +1 -1
  58. package/dist/{Register-CgbRZH9W.js → Register-DGhIjRDD.js} +79 -75
  59. package/dist/{RichText-BeK3zZam.js → RichText-B3Br1uzj.js} +22 -18
  60. package/dist/{SearchFooter-C4PeAkaR.js → SearchFooter-D3-9GTr1.js} +1 -1
  61. package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-BaO7vJ-n.js → SearchFooter.vue_vue_type_style_index_0_lang-DP32ZjvQ.js} +1 -1
  62. package/dist/{SearchForm-C7fZiQaW.js → SearchForm-rWozLa4B.js} +1 -1
  63. package/dist/{SearchForm.vue_vue_type_style_index_0_lang-BumSLQVy.js → SearchForm.vue_vue_type_style_index_0_lang-F2we6KP-.js} +30 -26
  64. package/dist/{Select-C1-NVZdG.js → Select-64nQiHNA.js} +21 -17
  65. package/dist/{Select-DR5fQH0d.js → Select-CAmBUDp3.js} +40 -36
  66. package/dist/{Select-DlbQvxQu.js → Select-qCdhL7vC.js} +1 -1
  67. package/dist/{Single-BLRyJKB-.js → Single-Bnrt5Hxb.js} +81 -77
  68. package/dist/{Statistic-BOtmYiRA.js → Statistic-BTbwlH9l.js} +35 -31
  69. package/dist/{Stock-Dnwof0R1.js → Stock-Br_02hsI.js} +1 -1
  70. package/dist/{Stock-BqQ6lM5B.js → Stock-DbExd680.js} +1 -1
  71. package/dist/{Stock.vue_vue_type_style_index_0_lang-Az2jx3JN.js → Stock.vue_vue_type_style_index_0_lang-MTvhmHlz.js} +26 -22
  72. package/dist/{Switch-DuMBV0AX.js → Switch-J2GIv4Wa.js} +1 -1
  73. package/dist/{Table-Be-rPXr_.js → Table-DjBx2UGm.js} +68 -64
  74. package/dist/{Table-RMVT0hlE.js → Table-X4vTHlpm.js} +52 -48
  75. package/dist/{Text-DSXRKFPa.js → Text-BFZc81F2.js} +1 -1
  76. package/dist/Text.vue_vue_type_style_index_0_lang-Cw7QQbFk.js +56 -0
  77. package/dist/TextLink-C_lFWaZv.js +66 -0
  78. package/dist/{Textarea-3ypOGE1S.js → Textarea-Dw_qLc3Y.js} +1 -1
  79. package/dist/{Timeline-CLezCcgQ.js → Timeline-DaaRGmGd.js} +21 -17
  80. package/dist/Tree-CDD2Nd6q.js +121 -0
  81. package/dist/{Tree-B6RBRT1y.js → Tree-Cmp10DWw.js} +85 -81
  82. package/dist/TreeNode-BM8-GyIc.js +38 -0
  83. package/dist/{Update-Dc3Tdkn0.js → Update-PffbXMXH.js} +17 -13
  84. package/dist/Upload-F6HXe76H.js +71 -0
  85. package/dist/Upload-kwwpaDe6.js +147 -0
  86. package/dist/{UploadApi-Bs507D0w.js → UploadApi-D2W_aGKA.js} +8 -3
  87. package/dist/{Year-DKxOQNyS.js → Year-Dr5ST0Pk.js} +1 -1
  88. package/dist/main-B8RC13GR.js +6528 -0
  89. package/dist/main.js +113 -113
  90. package/dist/style.css +1 -1
  91. package/dist/vendor-@monaco-editor-DKC4UNw_.js +258 -0
  92. package/dist/{vendor-clipboard-DjQPoCBJ.js → vendor-clipboard-BqjesuiY.js} +130 -110
  93. package/dist/vendor-clone-BPtCWdXG.js +134 -0
  94. package/dist/vendor-crypto-js-ftX_aBC-.js +4995 -0
  95. package/dist/vendor-file-saver-CytTIJ-3.js +74 -0
  96. package/dist/{vendor-intro.js-DwWqhM1v.js → vendor-intro.js-CZkClzQO.js} +1 -1
  97. package/dist/vendor-moment-h96o7c8I.js +2578 -0
  98. package/dist/vendor-sprintf-js-BPTdvBYM.js +148 -0
  99. package/dist/vendor-state-local-CEworIRt.js +131 -0
  100. package/dist/vendor-underscore-DVTek3G4.js +1070 -0
  101. package/dist/vendor-underscore.string-BEHfJwHl.js +425 -0
  102. package/dist/vendor-util-deprecate-DzpNkCzj.js +28 -0
  103. package/esm/coms/controls/Text.vue.d.ts +1 -1
  104. package/esm/coms/globals/HaMenu.vue.d.ts +1 -1
  105. package/esm/coms/globals/HaWindow.vue.d.ts +1 -1
  106. package/esm/coms/pages/Delete.vue.d.ts +2 -2
  107. package/esm/coms/pages/Single.vue.d.ts +2 -2
  108. package/esm/coms/pagings/Article.vue.d.ts +2 -2
  109. package/esm/coms/pagings/DataExport.vue.d.ts +2 -2
  110. package/esm/coms/pagings/DataImport.vue.d.ts +2 -2
  111. package/esm/coms/pagings/Index.vue.d.ts +2 -2
  112. package/esm/coms/pagings/SearchFooter.vue.d.ts +1 -1
  113. package/esm/coms/pagings/Table.vue.d.ts +2 -2
  114. package/esm/main.d.ts +4 -3
  115. package/esm/services/ServiceFactory.d.ts +3 -0
  116. package/esm/types/PcOptions.d.ts +18 -0
  117. package/esm/types/index.d.ts +2 -0
  118. package/package.json +2 -2
  119. package/dist/Autocomplete-DqKo5NiJ.js +0 -49
  120. package/dist/Autocomplete-K5ipzchR.js +0 -48
  121. package/dist/Callback-PyCjejiv.js +0 -20
  122. package/dist/Cascader-B9lLRKjA.js +0 -80
  123. package/dist/Cascader-BNvlqc5t.js +0 -41
  124. package/dist/Code-BdK547kD.js +0 -4
  125. package/dist/Code-DfFF-84i.js +0 -36
  126. package/dist/Code-LFQVJotC.js +0 -54
  127. package/dist/Code.vue_vue_type_style_index_0_lang-nX113anq.js +0 -59
  128. package/dist/Column-DVjYrrr7.js +0 -67
  129. package/dist/Comment-Do7Mjpjr.js +0 -98
  130. package/dist/Compare-C_iDn27Q.js +0 -56
  131. package/dist/Compare-CrX3yfD4.js +0 -26
  132. package/dist/Copy-_sbdQvHJ.js +0 -43
  133. package/dist/Custom-DarpQFG8.js +0 -49
  134. package/dist/Delete-BY3vAVWa.js +0 -55
  135. package/dist/Dictionary-DpQuFYQ5.js +0 -55
  136. package/dist/Index-B_a_HzsB.js +0 -4
  137. package/dist/Index-Cx2J_P37.js +0 -4
  138. package/dist/List-BjdY1rMk.js +0 -72
  139. package/dist/Maintaince-DzYzyrAc.js +0 -15
  140. package/dist/Paging-BMPtLi8P.js +0 -90
  141. package/dist/QueryApi-CbP5cCyH.js +0 -13
  142. package/dist/Text.vue_vue_type_style_index_0_lang-CeDusQl6.js +0 -52
  143. package/dist/TextLink-BZW-y_FS.js +0 -62
  144. package/dist/Tree-CLpCeirT.js +0 -117
  145. package/dist/TreeNode-C16N8jqm.js +0 -34
  146. package/dist/Upload-DvWyjK3a.js +0 -143
  147. package/dist/Upload-SEu1V1yX.js +0 -67
  148. package/dist/main-QtNG6p7a.js +0 -16673
  149. package/dist/vendor-pinia-yrN6kSxh.js +0 -861
  150. package/dist/vendor-vue-demi-CIhrFbpB.js +0 -17
@@ -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 "./vendor-@monaco-editor-DKC4UNw_.js";
3
+ import "./vendor-moment-h96o7c8I.js";
4
+ import "xlsx-js-style";
5
+ import { _ as N } from "./main-B8RC13GR.js";
6
+ import "./vendor-crypto-js-ftX_aBC-.js";
7
+ import { Q } from "./QueryApi-BrYyIwqV.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,71 @@
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 n, Fragment as E, renderList as H, normalizeClass as L, createCommentVNode as i, createElementVNode as a, toDisplayString as u, resolveDynamicComponent as $, createVNode as z, createTextVNode as s } from "vue";
2
+ import "./vendor-@monaco-editor-DKC4UNw_.js";
3
+ import "./vendor-moment-h96o7c8I.js";
4
+ import "xlsx-js-style";
5
+ import { e as F, g as C, k as P, B as R } from "./main-B8RC13GR.js";
6
+ import "./vendor-crypto-js-ftX_aBC-.js";
7
+ import "vue-router";
8
+ import "./vendor-intro.js-CZkClzQO.js";
9
+ const T = {
10
+ key: 0,
11
+ class: "menus"
12
+ }, j = ["onClick"], q = { class: "title" }, A = {
13
+ key: 1,
14
+ class: "column-empty"
15
+ }, G = /* @__PURE__ */ a("br", null, null, -1), I = /* @__PURE__ */ a("br", null, null, -1), te = /* @__PURE__ */ M({
16
+ __name: "Column",
17
+ props: {
18
+ url: {},
19
+ view: {}
20
+ },
21
+ emits: ["loaded", "navigate"],
22
+ setup(g, { expose: y, emit: x }) {
23
+ let c = x, U = g, { url: m, view: d } = b(U), B = F(), w = (t) => !0, N = (t) => !0, S = () => {
24
+ p();
25
+ }, p = () => {
26
+ c("loaded", r.value.title);
27
+ }, V = (t) => {
28
+ let v = C.getUrl(t.url, { m: t.id });
29
+ c("navigate", v);
30
+ };
31
+ D(() => {
32
+ p();
33
+ });
34
+ let r = f(() => B.getMenuByUrl(m.value)), _ = f(() => C.getPath(m.value));
35
+ return y({ shouldLoad: w, shouldSpin: N, refresh: S }), (t, v) => (l(), h(e(P), null, {
36
+ default: k(() => [
37
+ e(r) ? (l(), n("div", T, [
38
+ (l(!0), n(E, null, H(e(r).children, (o) => (l(), n("div", {
39
+ class: "menu",
40
+ key: o.id,
41
+ onClick: (J) => e(V)(o)
42
+ }, [
43
+ o.icon ? (l(), n("i", {
44
+ key: 0,
45
+ class: L(o.icon)
46
+ }, null, 2)) : i("", !0),
47
+ a("div", q, u(o.title), 1)
48
+ ], 8, j))), 128))
49
+ ])) : i("", !0),
50
+ (l(), h($(e(d)))),
51
+ (!e(r) || e(r).children == 0) && !e(d) ? (l(), n("div", A, [
52
+ z(e(R), null, {
53
+ default: k(() => [
54
+ s(" 此栏目页不存在子菜单或自定义部分视图,无内容可展示 ")
55
+ ]),
56
+ _: 1
57
+ }),
58
+ s(" 可考虑以下任一选项:"),
59
+ G,
60
+ s(" 1. 在 src/views 中实现自定义页面:" + u(e(_)), 1),
61
+ I,
62
+ s(" 2. 在 src/components/partials 中实现自定义首页部分视图:" + u(e(_)), 1)
63
+ ])) : i("", !0)
64
+ ]),
65
+ _: 1
66
+ }));
67
+ }
68
+ });
69
+ export {
70
+ te as default
71
+ };
@@ -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 "./vendor-@monaco-editor-DKC4UNw_.js";
3
+ import "./vendor-moment-h96o7c8I.js";
4
+ import "xlsx-js-style";
5
+ import { g as q } from "./main-B8RC13GR.js";
6
+ import "./vendor-crypto-js-ftX_aBC-.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,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 { l as x } from "./vendor-@monaco-editor-DKC4UNw_.js";
3
+ import "./vendor-moment-h96o7c8I.js";
4
+ import "xlsx-js-style";
5
+ import "./main-B8RC13GR.js";
6
+ import "./vendor-crypto-js-ftX_aBC-.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,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 { l as z } from "./vendor-@monaco-editor-DKC4UNw_.js";
3
+ import "./vendor-moment-h96o7c8I.js";
4
+ import "xlsx-js-style";
5
+ import "./main-B8RC13GR.js";
6
+ import "./vendor-crypto-js-ftX_aBC-.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,47 @@
1
+ import { defineComponent as y, toRefs as g, computed as _, unref as r, renderSlot as n, openBlock as v, createElementBlock as b, createElementVNode as p } from "vue";
2
+ import "./vendor-@monaco-editor-DKC4UNw_.js";
3
+ import "./vendor-moment-h96o7c8I.js";
4
+ import { m as a } from "./main-B8RC13GR.js";
5
+ import "xlsx-js-style";
6
+ import "./vendor-crypto-js-ftX_aBC-.js";
7
+ import { C } from "./vendor-clipboard-BqjesuiY.js";
8
+ const k = {
9
+ key: 1,
10
+ class: "copy-container"
11
+ }, J = /* @__PURE__ */ p("img", {
12
+ src: "/default/images/clippy.svg",
13
+ alt: "复制文本"
14
+ }, null, -1), h = [
15
+ J
16
+ ], T = /* @__PURE__ */ y({
17
+ __name: "Copy",
18
+ props: {
19
+ schema: {},
20
+ table: {},
21
+ field: {},
22
+ set: {},
23
+ row: {},
24
+ modelValue: {}
25
+ },
26
+ setup(c) {
27
+ let i = c, { table: w, field: l, set: N, row: S, modelValue: u } = g(i), m = (e) => JSON.stringify(JSON.parse(e), null, 2), d = () => o.value && l.value.control.type == "Json" ? m(o.value).replace(/"/g, "'") : o.value, s = () => {
28
+ let e = new C(".btn-copy", { text: () => d() });
29
+ e.on("success", function(t) {
30
+ a.success("复制成功"), e.destroy();
31
+ }), e.on("error", function(t) {
32
+ a.error("复制失败"), e.destroy();
33
+ });
34
+ }, o = _(() => u.value);
35
+ return (e, t) => r(l).control.copy ? (v(), b("div", k, [
36
+ p("i", {
37
+ class: "btn-copy",
38
+ onClick: t[0] || (t[0] = //@ts-ignore
39
+ (...f) => r(s) && r(s)(...f))
40
+ }, h),
41
+ n(e.$slots, "default")
42
+ ])) : n(e.$slots, "default", { key: 0 });
43
+ }
44
+ });
45
+ export {
46
+ T as default
47
+ };
@@ -0,0 +1,53 @@
1
+ import { defineComponent as x, toRefs as U, ref as w, openBlock as s, createBlock as n, KeepAlive as z, resolveDynamicComponent as L, unref as l } from "vue";
2
+ import "./vendor-@monaco-editor-DKC4UNw_.js";
3
+ import "./vendor-moment-h96o7c8I.js";
4
+ import { e as R, u as S, g as B, m as N } from "./main-B8RC13GR.js";
5
+ import "xlsx-js-style";
6
+ import "./vendor-crypto-js-ftX_aBC-.js";
7
+ const $ = /* @__PURE__ */ x({
8
+ __name: "Custom",
9
+ props: {
10
+ url: {},
11
+ view: {}
12
+ },
13
+ emits: ["loaded", "navigate"],
14
+ setup(u, { expose: i, emit: f }) {
15
+ let a = f, m = u, { url: p, view: d } = U(m), t = w();
16
+ R();
17
+ let { t: v } = S(), 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
+ N.notify(v("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 i({ shouldLoad: g, shouldSpin: h, refresh: _, beforeClose: b, keyboard: c, resize: k }), (e, r) => (s(), n(z, null, [
42
+ (s(), n(L(l(d)), {
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
+ $ as default
53
+ };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./DataExport.vue_vue_type_script_setup_true_lang-BgKetUGv.js";
1
+ import { _ as f } from "./DataExport.vue_vue_type_script_setup_true_lang-C9t5j7Gi.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,6 +1,10 @@
1
- import { defineComponent as U, toRefs as h, ref as g, resolveComponent as r, openBlock as q, createBlock as D, unref as e, isRef as R, withCtx as s, createElementVNode as f, toDisplayString as _, createVNode as a, createTextVNode as c } from "vue";
2
- import { j, S as T, m as z } from "./main-QtNG6p7a.js";
3
- const A = { class: "footer-content" }, H = /* @__PURE__ */ U({
1
+ import { defineComponent as U, toRefs as q, ref as g, resolveComponent as a, openBlock as D, createBlock as F, unref as e, isRef as R, withCtx as i, createElementVNode as f, toDisplayString as _, createVNode as r, createTextVNode as c } from "vue";
2
+ import "./vendor-@monaco-editor-DKC4UNw_.js";
3
+ import "./vendor-moment-h96o7c8I.js";
4
+ import { h as S, F as H, m as T } from "./main-B8RC13GR.js";
5
+ import "xlsx-js-style";
6
+ import "./vendor-crypto-js-ftX_aBC-.js";
7
+ const j = { class: "footer-content" }, L = /* @__PURE__ */ U({
4
8
  __name: "DataExport",
5
9
  props: {
6
10
  route: { type: String },
@@ -9,61 +13,61 @@ const A = { class: "footer-content" }, H = /* @__PURE__ */ U({
9
13
  },
10
14
  emits: ["close", "update:modelValue"],
11
15
  setup(v, { emit: V }) {
12
- let x = V, C = v, { route: y, pageCount: d, modelValue: u } = h(C), m = g(!1), o = g({ start: 1, end: 100 }), b = (l, t, i) => {
13
- o.value.end < o.value.start ? i(new Error("结束页不能小于起始页")) : i();
16
+ let x = V, C = v, { route: y, pageCount: m, modelValue: p } = q(C), u = g(!1), o = g({ start: 1, end: 100 }), b = (l, t, s) => {
17
+ o.value.end < o.value.start ? s(new Error("结束页不能小于起始页")) : s();
14
18
  }, E = () => {
15
19
  x("update:modelValue", !1);
16
- }, k = () => {
17
- m.value = !0, j.get(y.value, o.value).then(({ data: l, message: t }) => {
18
- T.save(l.content, l.name), z.success(t);
20
+ }, h = () => {
21
+ u.value = !0, S.get(y.value, o.value).then(({ data: l, message: t }) => {
22
+ H.save(l.content, l.name), T.success(t);
19
23
  }).finally(() => {
20
- m.value = !1;
24
+ u.value = !1;
21
25
  });
22
26
  };
23
27
  return (l, t) => {
24
- const i = r("el-input-number"), p = r("el-form-item"), N = r("el-form"), S = r("el-divider"), w = r("el-button"), B = r("el-dialog");
25
- return q(), D(B, {
28
+ const s = a("el-input-number"), d = a("el-form-item"), k = a("el-form"), N = a("el-divider"), w = a("el-button"), B = a("el-dialog");
29
+ return D(), F(B, {
26
30
  class: "data-export",
27
31
  draggable: "",
28
32
  "destroy-on-close": "",
29
33
  title: l.t("paging.data_export"),
30
34
  width: "350px",
31
35
  onClose: e(E),
32
- modelValue: e(u),
33
- "onUpdate:modelValue": t[3] || (t[3] = (n) => R(u) ? u.value = n : u = n)
36
+ modelValue: e(p),
37
+ "onUpdate:modelValue": t[3] || (t[3] = (n) => R(p) ? p.value = n : p = n)
34
38
  }, {
35
- footer: s(() => [
39
+ footer: i(() => [
36
40
  f("div", {
37
41
  class: "footer-operation",
38
- onClick: t[2] || (t[2] = (n) => e(o).end = e(d))
39
- }, _(l.t("paging.total_page", [e(d)])), 1),
40
- f("div", A, [
41
- a(w, {
42
+ onClick: t[2] || (t[2] = (n) => e(o).end = e(m))
43
+ }, _(l.t("paging.total_page", [e(m)])), 1),
44
+ f("div", j, [
45
+ r(w, {
42
46
  type: "primary",
43
47
  plain: "",
44
- loading: e(m),
45
- onClick: e(k)
48
+ loading: e(u),
49
+ onClick: e(h)
46
50
  }, {
47
- default: s(() => [
51
+ default: i(() => [
48
52
  c(_(l.t("paging.export")), 1)
49
53
  ]),
50
54
  _: 1
51
55
  }, 8, ["loading", "onClick"])
52
56
  ])
53
57
  ]),
54
- default: s(() => [
55
- a(N, {
58
+ default: i(() => [
59
+ r(k, {
56
60
  ref: "export",
57
61
  inline: "",
58
62
  model: e(o)
59
63
  }, {
60
- default: s(() => [
61
- a(p, {
64
+ default: i(() => [
65
+ r(d, {
62
66
  prop: "start",
63
67
  rules: [{ required: !0, message: "起始页不能为空", trigger: "change" }]
64
68
  }, {
65
- default: s(() => [
66
- a(i, {
69
+ default: i(() => [
70
+ r(s, {
67
71
  "controls-position": "right",
68
72
  min: 1,
69
73
  step: 100,
@@ -74,18 +78,18 @@ const A = { class: "footer-content" }, H = /* @__PURE__ */ U({
74
78
  _: 1
75
79
  }),
76
80
  c(" - "),
77
- a(p, {
81
+ r(d, {
78
82
  prop: "end",
79
83
  rules: [
80
84
  { required: !0, message: "结束页不能为空", trigger: "change" },
81
85
  { validator: e(b), trigger: "change" }
82
86
  ]
83
87
  }, {
84
- default: s(() => [
85
- a(i, {
88
+ default: i(() => [
89
+ r(s, {
86
90
  "controls-position": "right",
87
91
  min: e(o).start,
88
- max: e(d),
92
+ max: e(m),
89
93
  step: 100,
90
94
  modelValue: e(o).end,
91
95
  "onUpdate:modelValue": t[1] || (t[1] = (n) => e(o).end = n)
@@ -96,7 +100,7 @@ const A = { class: "footer-content" }, H = /* @__PURE__ */ U({
96
100
  ]),
97
101
  _: 1
98
102
  }, 8, ["model"]),
99
- a(S)
103
+ r(N)
100
104
  ]),
101
105
  _: 1
102
106
  }, 8, ["title", "onClose", "modelValue"]);
@@ -104,5 +108,5 @@ const A = { class: "footer-content" }, H = /* @__PURE__ */ U({
104
108
  }
105
109
  });
106
110
  export {
107
- H as _
111
+ L as _
108
112
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./DataImport.vue_vue_type_script_setup_true_lang-DgzKdC2g.js";
1
+ import { _ as f } from "./DataImport.vue_vue_type_script_setup_true_lang-bI0HP38b.js";
2
2
  export {
3
3
  f as default
4
4
  };