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
@@ -1,43 +0,0 @@
1
- import { defineComponent as y, toRefs as _, computed as g, unref as l, renderSlot as n, openBlock as v, createElementBlock as b, createElementVNode as c } from "vue";
2
- import { m as a } from "./main-QtNG6p7a.js";
3
- import { C } from "./vendor-clipboard-DjQPoCBJ.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), h = [
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(p) {
23
- let u = p, { table: w, field: r, set: N, row: S, modelValue: i } = _(u), d = (e) => JSON.stringify(JSON.parse(e), null, 2), m = () => o.value && r.value.control.type == "Json" ? d(o.value).replace(/"/g, "'") : o.value, s = () => {
24
- let e = new C(".btn-copy", { text: () => m() });
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 = g(() => i.value);
31
- return (e, t) => l(r).control.copy ? (v(), b("div", k, [
32
- c("i", {
33
- class: "btn-copy",
34
- onClick: t[0] || (t[0] = //@ts-ignore
35
- (...f) => l(s) && l(s)(...f))
36
- }, h),
37
- n(e.$slots, "default")
38
- ])) : n(e.$slots, "default", { key: 0 });
39
- }
40
- });
41
- export {
42
- E as default
43
- };
@@ -1,49 +0,0 @@
1
- import { defineComponent as x, toRefs as w, ref as z, openBlock as n, createBlock as s, KeepAlive as L, resolveDynamicComponent as R, unref as o } from "vue";
2
- import { c as B, u as I, I as N, m as S } from "./main-QtNG6p7a.js";
3
- const D = /* @__PURE__ */ x({
4
- __name: "Custom",
5
- props: {
6
- url: {},
7
- view: {}
8
- },
9
- emits: ["loaded", "navigate"],
10
- setup(u, { expose: i, emit: f }) {
11
- let a = f, m = u, { url: d, view: v } = w(m), t = z();
12
- B();
13
- let { t: p } = I(), c = (e, r) => {
14
- if (!t.value || !t.value.keyboard)
15
- return !1;
16
- t.value.keyboard(e, r);
17
- }, h = (e) => !0, g = (e) => !0, _ = () => {
18
- var r;
19
- let e = (r = t.value) == null ? void 0 : r.refresh;
20
- if (!e) {
21
- let l = N.getPath(d.value);
22
- S.notify(p("common.tips"), `要实现自定义刷新功能,请在组件 ${l} 内部定义并暴露refresh方法即可`, "warning");
23
- return;
24
- }
25
- e();
26
- }, b = (e) => {
27
- var l;
28
- let r = (l = t.value) == null ? void 0 : l.beforeClose;
29
- r && r(e);
30
- }, k = (e) => {
31
- t.value && t.value.resize && t.value.resize(e);
32
- }, y = (e) => {
33
- a("loaded", e);
34
- }, C = (e) => {
35
- a("navigate", e);
36
- };
37
- return i({ shouldLoad: h, shouldSpin: g, refresh: _, beforeClose: b, keyboard: c, resize: k }), (e, r) => (n(), s(L, null, [
38
- (n(), s(R(o(v)), {
39
- ref_key: "customRef",
40
- ref: t,
41
- onLoaded: o(y),
42
- onNavigate: o(C)
43
- }, null, 40, ["onLoaded", "onNavigate"]))
44
- ], 1024));
45
- }
46
- });
47
- export {
48
- D as default
49
- };
@@ -1,55 +0,0 @@
1
- import { defineComponent as g, toRefs as x, ref as y, resolveComponent as B, openBlock as D, createElementBlock as N, createElementVNode as c, toDisplayString as t, createVNode as r, unref as a, withCtx as i, createTextVNode as d } from "vue";
2
- import { A as S, j as V, m as E } from "./main-QtNG6p7a.js";
3
- const R = { class: "delete" }, j = { class: "delete-title" }, q = { class: "delete-buttons" }, U = /* @__PURE__ */ g({
4
- __name: "Delete",
5
- props: {
6
- base: {},
7
- route: {},
8
- url: {}
9
- },
10
- emits: ["navigate", "succeed", "close"],
11
- setup(m, { emit: u }) {
12
- let o = u, p = m, { base: _, route: f } = x(p), v = S(), l = y(), k = (e) => {
13
- l.value = e.next;
14
- };
15
- (() => {
16
- k(_.value.data);
17
- })();
18
- let C = () => {
19
- let e = [f.value.query.id];
20
- V.post(l.value.delete.route, e).then((n) => {
21
- E.success(n.message), b();
22
- });
23
- }, b = () => {
24
- v.toBackUrl(), o("succeed", "delete");
25
- }, h = () => {
26
- o("close");
27
- };
28
- return (e, n) => {
29
- const s = B("el-button");
30
- return D(), N("div", R, [
31
- c("div", j, t(e.t("common.confirm_delete")), 1),
32
- c("div", q, [
33
- r(s, {
34
- type: "danger",
35
- onClick: a(C)
36
- }, {
37
- default: i(() => [
38
- d(t(e.t("common.confirm")), 1)
39
- ]),
40
- _: 1
41
- }, 8, ["onClick"]),
42
- r(s, { onClick: a(h) }, {
43
- default: i(() => [
44
- d(t(e.t("common.cancel")), 1)
45
- ]),
46
- _: 1
47
- }, 8, ["onClick"])
48
- ])
49
- ]);
50
- };
51
- }
52
- });
53
- export {
54
- U as default
55
- };
@@ -1,55 +0,0 @@
1
- import { defineComponent as x, toRefs as g, computed as o, resolveComponent as h, openBlock as r, createElementBlock as a, Fragment as V, renderList as k, unref as B, createBlock as b, normalizeStyle as C, withCtx as N, createTextVNode as S, toDisplayString as n, createCommentVNode as w } from "vue";
2
- import { k as s, B as D, r as E } from "./main-QtNG6p7a.js";
3
- const z = { class: "text-dictionary" }, F = {
4
- key: 0,
5
- class: "suffix"
6
- }, A = /* @__PURE__ */ x({
7
- __name: "Dictionary",
8
- props: {
9
- schema: {},
10
- table: {},
11
- field: {},
12
- set: {},
13
- row: {},
14
- modelValue: { type: [String, Number, Boolean] }
15
- },
16
- emits: ["submit", "change", "update:modelValue"],
17
- setup(i, { emit: c }) {
18
- let u = c, m = i, { table: L, field: d, set: R, modelValue: f } = g(m), t = o({
19
- get() {
20
- return f.value;
21
- },
22
- set(e) {
23
- u("update:modelValue", e), u("change", e);
24
- }
25
- }), p = o(() => {
26
- if (t.value == null)
27
- return [];
28
- if (s.isNumber(t.value))
29
- return [t.value];
30
- if (s.isBoolean(t.value))
31
- return [t.value];
32
- let e = t.value.toString();
33
- return D.isEmpty(e) ? [] : e.split(",");
34
- }), _ = o(() => E.fromValues(p.value, d.value.control.data.data, "value", "text"));
35
- return (e, T) => {
36
- const v = h("el-tag");
37
- return r(), a("div", z, [
38
- (r(!0), a(V, null, k(B(_), (l, y) => (r(), b(v, {
39
- type: "info",
40
- style: C({ color: l.color }),
41
- key: y
42
- }, {
43
- default: N(() => [
44
- S(n(l.text) + " ", 1),
45
- l.suffix ? (r(), a("span", F, "(" + n(l.suffix) + ")", 1)) : w("", !0)
46
- ]),
47
- _: 2
48
- }, 1032, ["style"]))), 128))
49
- ]);
50
- };
51
- }
52
- });
53
- export {
54
- A as default
55
- };
@@ -1,4 +0,0 @@
1
- import { h as f } from "./main-QtNG6p7a.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { E as f } from "./main-QtNG6p7a.js";
2
- export {
3
- f as default
4
- };
@@ -1,72 +0,0 @@
1
- import { defineComponent as I, toRefs as E, ref as o, watch as F, openBlock as T, createBlock as U, resolveDynamicComponent as V, unref as t, withCtx as $, createElementVNode as j, toDisplayString as A } from "vue";
2
- import { u as G, I as r, o as H, d } from "./main-QtNG6p7a.js";
3
- const J = { class: "not-support" }, Q = /* @__PURE__ */ I({
4
- __name: "List",
5
- props: {
6
- base: {},
7
- route: {},
8
- url: {}
9
- },
10
- emits: ["load", "navigate"],
11
- setup(_, { expose: b, emit: P }) {
12
- let h = P, k = _, { url: m, base: p, route: n } = E(k), f = o(), i = o(), s = o(), y = o(), g = o(), u = o(), c = o(), { t_module: q } = G(), C = (e) => {
13
- let l = r.getPath(e), a = r.getPath(m.value);
14
- return l != a;
15
- }, R = (e) => {
16
- let l = r.getPath(m.value), a = r.getPath(e);
17
- return l != a;
18
- }, x = (e) => {
19
- var a;
20
- let l = q(e.module.type, e.module.name);
21
- H.setTitle(l, e.module.env), f.value = e.module, i.value = d.expandSchema(e.schema), s.value = (a = i.value) == null ? void 0 : a[0], y.value = e.next, g.value = d.expandSet(e.schema, e.set), c.value = d.getConditionForm(i.value, n.value.query.condition);
22
- }, v = (e = null, l = null) => {
23
- let a = e ?? n.value.query, B = r.getUrl(n.value.path, a);
24
- h("load", B, !1, l);
25
- }, D = (e) => {
26
- v(null, e);
27
- }, w = (e) => {
28
- h("navigate", e);
29
- }, z = (e) => {
30
- let l = n.value.query;
31
- l.condition = r.base64(c.value), v(l, e);
32
- }, S = () => {
33
- v();
34
- }, L = (e, l) => {
35
- if (!u.value || !u.value.keyboard)
36
- return !1;
37
- u.value.keyboard(e, l);
38
- }, N = (e) => {
39
- if (!u.value || !u.value.resize)
40
- return !1;
41
- u.value.resize(e);
42
- };
43
- return (() => {
44
- x(p.value.data);
45
- })(), F(() => p.value, (e) => {
46
- x(e.data);
47
- }), b({ shouldLoad: C, shouldSpin: R, refresh: S, keyboard: L, resize: N }), (e, l) => (T(), U(V(`list-${t(s).layouts[0].type.toLowerCase()}`), {
48
- ref_key: "listRef",
49
- ref: u,
50
- route: t(n),
51
- module: t(f),
52
- schema: t(i),
53
- table: t(s),
54
- layout: t(s).layouts[0],
55
- next: t(y),
56
- set: t(g),
57
- "search-data": t(c),
58
- onSucceed: t(D),
59
- onSearch: t(z),
60
- onNavigate: t(w),
61
- onRefresh: t(S)
62
- }, {
63
- default: $(() => [
64
- j("div", J, "未支持的列表布局方式:" + A(t(s).layouts[0].type), 1)
65
- ]),
66
- _: 1
67
- }, 40, ["route", "module", "schema", "table", "layout", "next", "set", "search-data", "onSucceed", "onSearch", "onNavigate", "onRefresh"]));
68
- }
69
- });
70
- export {
71
- Q as default
72
- };
@@ -1,15 +0,0 @@
1
- import { defineComponent as n, openBlock as o, createElementBlock as s, createElementVNode as e, toDisplayString as i, unref as c } from "vue";
2
- import { b as a } from "./main-QtNG6p7a.js";
3
- const r = { class: "maintenance" }, _ = /* @__PURE__ */ e("div", { class: "title" }, "系统维护中", -1), l = { class: "description" }, h = /* @__PURE__ */ n({
4
- __name: "Maintaince",
5
- setup(d) {
6
- let t = a();
7
- return (m, p) => (o(), s("div", r, [
8
- _,
9
- e("div", l, i(c(t)), 1)
10
- ]));
11
- }
12
- });
13
- export {
14
- h as default
15
- };
@@ -1,90 +0,0 @@
1
- import { defineComponent as j, toRefs as A, ref as r, watch as G, openBlock as H, createBlock as M, unref as t } from "vue";
2
- import { u as Q, v as V, I as o, o as W, d, K as X } from "./main-QtNG6p7a.js";
3
- import { _ as Y } from "./Index.vue_vue_type_script_setup_true_lang-DjiARPz7.js";
4
- const le = /* @__PURE__ */ j({
5
- __name: "Paging",
6
- props: {
7
- base: {},
8
- route: {},
9
- url: {}
10
- },
11
- emits: ["navigate", "load"],
12
- setup(b, { expose: U, emit: P }) {
13
- let m = P, z = b, { url: p, base: y, route: u } = A(z), f = r(), v = r(), g = r(), h = r(), S = r(), x = r(), c = r(), s = r(), { t_module: k } = Q(), B = V.getEncoder().getBase64(), L = (e) => !0, N = (e) => {
14
- let a = o.getPath(p.value), l = o.getPath(e);
15
- return a != l;
16
- }, R = (e = null) => {
17
- q(e);
18
- }, D = () => {
19
- }, C = (e) => {
20
- var l;
21
- let a = k(e.module.type, e.module.name);
22
- W.setTitle(a, e.module.env), f.value = e.module, S.value = e.next, x.value = d.expandSet(e.schema, e.set), v.value = d.expandSchema(e.schema), g.value = (l = v.value) == null ? void 0 : l[0], h.value = g.value.layouts[0], c.value = d.getConditionForm(v.value, u.value.query.condition);
23
- }, _ = (e = null, a = null) => {
24
- let l = e ?? u.value.query, n = o.getUrl(u.value.path, l);
25
- m("load", n, !1, ($) => {
26
- a && a($);
27
- });
28
- }, i = (e, a) => {
29
- m("navigate", e, a);
30
- }, I = (e) => {
31
- let a = u.value.query;
32
- a.page = 1;
33
- let l = X.pure(c.value);
34
- a.condition = o.base64(l);
35
- let n = o.getUrl(u.value.path, a);
36
- n == p.value ? _(a, e) : i(n, e);
37
- }, w = (e, a) => {
38
- let l = u.value.query;
39
- l.order_by = B.encode(JSON.stringify(e));
40
- let n = o.getUrl(u.value.path, l);
41
- i(n, a);
42
- }, E = (e, a = null) => {
43
- let l = u.value.query;
44
- l.page = e;
45
- let n = o.getUrl(u.value.path, l);
46
- i(n, a);
47
- }, F = (e, a = null) => {
48
- let l = u.value.query;
49
- l.size = e;
50
- let n = o.getUrl(u.value.path, l);
51
- i(n, a);
52
- }, J = (e) => {
53
- h.value = g.value.layouts.find((a) => a.type == e);
54
- }, K = () => {
55
- C(y.value.data);
56
- }, q = (e = null) => _(null, e), O = (e) => {
57
- if (!s.value || !s.value.resize)
58
- return !1;
59
- s.value.resize(e);
60
- }, T = (e, a) => {
61
- if (!s.value || !s.value.keyboard)
62
- return !1;
63
- s.value.keyboard(e, a);
64
- };
65
- return K(), G(() => y.value, (e) => {
66
- C(e.data);
67
- }), U({ shouldLoad: L, shouldSpin: N, refresh: q, keyboard: T, resize: O }), (e, a) => (H(), M(Y, {
68
- ref_key: "pagingRef",
69
- ref: s,
70
- module: t(f),
71
- next: t(S),
72
- set: t(x),
73
- schema: t(v),
74
- table: t(g),
75
- layout: t(h),
76
- "search-data": t(c),
77
- onNavigate: t(i),
78
- onSort: t(w),
79
- onSearch: t(I),
80
- onPageChange: t(E),
81
- onSizeChange: t(F),
82
- onLayoutChange: t(J),
83
- onSucceed: t(R),
84
- onClose: t(D)
85
- }, null, 8, ["module", "next", "set", "schema", "table", "layout", "search-data", "onNavigate", "onSort", "onSearch", "onPageChange", "onSizeChange", "onLayoutChange", "onSucceed", "onClose"]));
86
- }
87
- });
88
- export {
89
- le as default
90
- };
@@ -1,13 +0,0 @@
1
- import { j as t } from "./main-QtNG6p7a.js";
2
- class e {
3
- /**
4
- * 查询代码语言和文本语言映射关系
5
- */
6
- static async loadCodeLanguage() {
7
- return t.post("/dictionary/code_language").then((a) => a.data);
8
- }
9
- }
10
- const n = e;
11
- export {
12
- n as Q
13
- };
@@ -1,52 +0,0 @@
1
- import { defineComponent as x, toRefs as v, ref as f, computed as V, resolveComponent as y, openBlock as r, createElementBlock as s, Fragment as B, unref as l, createBlock as C, isRef as d, createCommentVNode as R, nextTick as T, createElementVNode as g } from "vue";
2
- import { G as H } from "./main-QtNG6p7a.js";
3
- const b = ["innerHTML"], w = /* @__PURE__ */ g("i", { class: "fa fa-edit" }, null, -1), E = [
4
- w
5
- ], U = /* @__PURE__ */ x({
6
- __name: "Text",
7
- props: {
8
- schema: {},
9
- table: {},
10
- field: {},
11
- set: {},
12
- row: {},
13
- modelValue: {}
14
- },
15
- setup(p) {
16
- let c = p, { table: G, field: u, set: L, row: M, modelValue: _ } = v(c), t = f(!1), a = f(), i = () => {
17
- t.value = !0, T(() => {
18
- a.value.focus();
19
- });
20
- }, o = V(() => {
21
- let m = H.getHtml(_.value);
22
- return (u.value.control.prefix || "") + (m || "") + (u.value.control.suffix || "");
23
- });
24
- return (m, e) => {
25
- const k = y("el-input");
26
- return r(), s(B, null, [
27
- l(t) ? (r(), C(k, {
28
- key: 1,
29
- ref_key: "editRef",
30
- ref: a,
31
- type: "text",
32
- onBlur: e[0] || (e[0] = (n) => d(t) ? t.value = !1 : t = !1),
33
- modelValue: l(o),
34
- "onUpdate:modelValue": e[1] || (e[1] = (n) => d(o) ? o.value = n : o = n)
35
- }, null, 8, ["modelValue"])) : (r(), s("span", {
36
- key: 0,
37
- class: "text-text",
38
- innerHTML: l(o)
39
- }, null, 8, b)),
40
- l(t) ? R("", !0) : (r(), s("span", {
41
- key: 2,
42
- class: "edit-inline",
43
- onClick: e[2] || (e[2] = //@ts-ignore
44
- (...n) => l(i) && l(i)(...n))
45
- }, E))
46
- ], 64);
47
- };
48
- }
49
- });
50
- export {
51
- U as _
52
- };
@@ -1,62 +0,0 @@
1
- import { defineComponent as b, toRefs as y, ref as E, computed as s, resolveComponent as w, unref as o, openBlock as i, createElementBlock as d, renderSlot as u, createBlock as B, withCtx as R } from "vue";
2
- import { useRoute as $ } from "vue-router";
3
- import { I as m, v as x } from "./main-QtNG6p7a.js";
4
- const C = { key: 0 }, O = ["href", "target"], V = /* @__PURE__ */ b({
5
- __name: "TextLink",
6
- props: {
7
- schema: {},
8
- table: {},
9
- field: {},
10
- set: {},
11
- row: {}
12
- },
13
- emits: ["submit", "change", "update:modelValue"],
14
- setup(h, { emit: L }) {
15
- let p = h, { table: S, field: t, set: T, row: c } = y(p);
16
- $();
17
- let k = E(), a = s(() => {
18
- let e = t.value.link.href;
19
- return t.value.link.values.forEach((r) => {
20
- e = e.replace(`{${r}}`, c.value[r]);
21
- }), e;
22
- }), _ = s(() => m.httpOrHttps(a.value)), v = s(async () => {
23
- let e = a.value;
24
- if (t.value.link.tables.length > 0) {
25
- let l = {};
26
- t.value.link.tables.forEach((n) => {
27
- l[n.name] = {}, n.search.forEach((f) => {
28
- l[n.name][f.name] = c.value[f.value];
29
- });
30
- });
31
- let g = (await x.getEncoder().getBase64()).encode(JSON.stringify(l));
32
- e += "&condition=" + g;
33
- }
34
- return m.getToRoute(e);
35
- });
36
- return (e, r) => {
37
- const l = w("router-link");
38
- return o(k) ? (i(), d("div", C, [
39
- u(e.$slots, "default")
40
- ])) : o(_) ? (i(), d("a", {
41
- key: 1,
42
- class: "text-link",
43
- href: o(a),
44
- target: o(t).link.target
45
- }, [
46
- u(e.$slots, "default")
47
- ], 8, O)) : (i(), B(l, {
48
- key: 2,
49
- class: "text-link",
50
- to: o(v)
51
- }, {
52
- default: R(() => [
53
- u(e.$slots, "default")
54
- ]),
55
- _: 3
56
- }, 8, ["to"]));
57
- };
58
- }
59
- });
60
- export {
61
- V as default
62
- };
@@ -1,117 +0,0 @@
1
- import { defineComponent as Q, toRefs as U, ref as m, onMounted as X, watch as Y, nextTick as K, resolveComponent as N, openBlock as k, createElementBlock as w, unref as d, Fragment as L, renderList as B, createBlock as M, withCtx as b, createVNode as Z, createElementVNode as ee, toDisplayString as S, createCommentVNode as T } from "vue";
2
- import { V as le, r as _, C as F, d as P } from "./main-QtNG6p7a.js";
3
- const te = { class: "option-text" }, ae = {
4
- key: 0,
5
- class: "option-suffix"
6
- }, de = /* @__PURE__ */ Q({
7
- __name: "Tree",
8
- props: {
9
- route: {},
10
- validateErrors: {},
11
- module: {},
12
- schema: {},
13
- table: {},
14
- layout: {},
15
- next: {},
16
- set: {}
17
- },
18
- setup($, { expose: z }) {
19
- let D = $, { module: W, schema: ne, table: s, layout: l, set: f } = U(D), E = m(), V = m([]), x = m(), y = m(0), C = m([]), R = m(!0), j = (e, n, o) => {
20
- let a = f.value[s.value.name].find((r) => r.PermissionId == e[l.value.id]);
21
- a && (a[l.value.expand] = !0);
22
- }, q = (e, n, o) => {
23
- let a = f.value[s.value.name].find((r) => r.PermissionId == e[l.value.id]);
24
- a && (a[l.value.expand] = !1);
25
- }, A = (e, n, o) => {
26
- let a = n.checkedKeys, r = e[l.value.id], i = _.contains(a, r), c = [], u = [], h = F.getChildren(e, "Children").map((t) => t[l.value.id]), p = f.value[s.value.name].map((t) => t[l.value.checked]), v = _.intersect(h, p);
27
- if (i) {
28
- c.push(e[l.value.id]);
29
- let t = _.except(h, v);
30
- t.length && (a.push(...t), c.push(...t));
31
- } else
32
- u.push(r), v.length == h.length && (u.push(...h), _.remove(a, h));
33
- c.length && G(c), u.length && H(u);
34
- }, G = (e) => {
35
- for (let n = 0; n < e.length; n++) {
36
- let o = P.getDefaultRow(s.value);
37
- o[l.value.checked] = e[n], f.value[s.value.name].push(o);
38
- }
39
- }, H = (e) => {
40
- let n = f.value[s.value.name];
41
- for (let o = 0; o < e.length; o++) {
42
- let a = n.find((r) => r[l.value.checked] == e[o]);
43
- _.remove(n, a);
44
- }
45
- }, J = (e) => {
46
- x.value = e.contentRect.width, y.value = Math.ceil(x.value / 300), I(s.value, l.value, f.value);
47
- }, I = (e, n, o) => {
48
- C.value = P.getLines(n.data, y.value, (a) => [a], () => 1), K(() => {
49
- let a = o[e.name].map((i) => i[n.checked]), r = 0;
50
- for (let i = 0; i < C.value.length; i++) {
51
- let c = C.value[i];
52
- for (let u = 0; u < c.length; u++) {
53
- let g = V.value[r], h = c[u].data, p = F.getFlat(h, "Children").map((t) => t[n.id]), v = _.intersect(p, a);
54
- if (!(v.length == 1 && p.length > 1)) for (let t = 0; t < v.length; t++) {
55
- let O = v[t];
56
- g.setChecked(O, !0, !1);
57
- }
58
- r++;
59
- }
60
- }
61
- });
62
- };
63
- return X(() => {
64
- x.value = le.getWidth(E.value), y.value = Math.ceil(x.value / 300), I(s.value, l.value, f.value);
65
- }), Y(() => s.value, (e, n) => {
66
- R.value = !1, K(() => {
67
- R.value = !0, I(e, l.value, f.value);
68
- });
69
- }), z({ resize: J }), (e, n) => {
70
- const o = N("el-tree"), a = N("el-col"), r = N("el-row");
71
- return k(), w("div", {
72
- ref_key: "layoutRef",
73
- ref: E,
74
- class: "ha-tree-layout"
75
- }, [
76
- d(R) ? (k(!0), w(L, { key: 0 }, B(d(C), (i, c) => (k(), M(r, null, {
77
- default: b(() => [
78
- (k(!0), w(L, null, B(i, ({ data: u, span: g, index: h }, p) => (k(), M(a, {
79
- span: g,
80
- key: `${c}.${p}`
81
- }, {
82
- default: b(() => [
83
- Z(o, {
84
- ref_for: !0,
85
- ref_key: "treeRefs",
86
- ref: V,
87
- "show-checkbox": "",
88
- "highlight-current": "",
89
- "default-expand-all": !1,
90
- "expand-on-click-node": !1,
91
- "node-key": d(l).id,
92
- data: u,
93
- props: { children: "Children", label: d(l).text },
94
- disabled: d(W).type == "Detail",
95
- onNodeExpand: d(j),
96
- onNodeCollapse: d(q),
97
- onCheck: (v, t) => d(A)(v, t, h)
98
- }, {
99
- default: b(({ node: v, data: t }) => [
100
- ee("div", te, S(t[d(l).text]), 1),
101
- d(l).suffix ? (k(), w("div", ae, S(t[d(l).suffix]), 1)) : T("", !0)
102
- ]),
103
- _: 2
104
- }, 1032, ["node-key", "data", "props", "disabled", "onNodeExpand", "onNodeCollapse", "onCheck"])
105
- ]),
106
- _: 2
107
- }, 1032, ["span"]))), 128))
108
- ]),
109
- _: 2
110
- }, 1024))), 256)) : T("", !0)
111
- ], 512);
112
- };
113
- }
114
- });
115
- export {
116
- de as default
117
- };
@@ -1,34 +0,0 @@
1
- import { defineComponent as h, toRefs as x, computed as C, openBlock as a, createElementBlock as i, unref as e, createElementVNode as N, toDisplayString as l, createTextVNode as b, createCommentVNode as s } from "vue";
2
- import { B as y } from "./main-QtNG6p7a.js";
3
- const g = ["title"], k = { class: "number" }, v = {
4
- key: 0,
5
- class: "option-suffix"
6
- }, B = {
7
- key: 1,
8
- class: "count"
9
- }, F = /* @__PURE__ */ h({
10
- __name: "TreeNode",
11
- props: {
12
- table: {},
13
- layout: {},
14
- row: {},
15
- node: {}
16
- },
17
- setup(d) {
18
- let u = d, { table: c, layout: n, row: t, node: p } = x(u), f = (o, r) => {
19
- let _ = (o.parent.data.Children ? o.parent.data.Children.indexOf(r) : o.parent.data.indexOf(r)) + 1;
20
- return y.padLeft(_, 2, "0");
21
- }, m = C(() => c.value.fields.find((r) => r.name == n.value.text).control.i18N);
22
- return (o, r) => (a(), i("div", {
23
- title: e(t)[e(n).title]
24
- }, [
25
- N("span", k, l(e(f)(e(p), e(t))), 1),
26
- b(" " + l(e(m) ? o.t(e(t)[e(n).text]) : e(t)[e(n).text]) + " ", 1),
27
- e(n).suffix ? (a(), i("span", v, l(e(t)[e(n).suffix]), 1)) : s("", !0),
28
- e(t).Children && e(t).Children.length > 0 ? (a(), i("span", B, "(" + l(e(t).Children.length) + ")", 1)) : s("", !0)
29
- ], 8, g));
30
- }
31
- });
32
- export {
33
- F as default
34
- };