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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "halo-pc",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Halo pc framework",
5
5
  "scripts": {
6
6
  "halo-pc:tsc": "vue-tsc",
@@ -34,7 +34,7 @@
34
34
  "echarts": "5.5.1",
35
35
  "element-plus": "2.7.6",
36
36
  "intro.js": "7.2.0",
37
- "halo-fe": "1.0.4",
37
+ "halo-fe": "1.0.5",
38
38
  "monaco-editor": "0.50.0",
39
39
  "pinia": "2.1.7",
40
40
  "quill": "2.0.2",
@@ -1,49 +0,0 @@
1
- import { defineComponent as v, toRefs as _, ref as V, computed as x, resolveComponent as B, openBlock as C, createBlock as b, unref as u, isRef as k } from "vue";
2
- import { B as R, j } from "./main-QtNG6p7a.js";
3
- const S = /* @__PURE__ */ v({
4
- __name: "Autocomplete",
5
- props: {
6
- schema: {},
7
- table: {},
8
- field: {},
9
- set: {},
10
- row: {},
11
- modelValue: {}
12
- },
13
- emits: ["submit", "change", "update:modelValue"],
14
- setup(d, { emit: p }) {
15
- let r = p, i = d, { table: c, field: s, set: w, modelValue: f } = _(i), o = V([]), g = null, h = (e, t) => {
16
- if (o.value.length) {
17
- let l = o.value.filter((m) => R.containsIgnoreCase(e, m.value));
18
- t(l);
19
- return;
20
- }
21
- let n = { text: g, conditions: [] };
22
- j.post(s.value.control.data.route, n).then(({ data: l }) => {
23
- o.value = l.map((m) => ({ value: m.text })), t(o.value);
24
- }).catch(() => {
25
- t([]);
26
- });
27
- }, a = x({
28
- get() {
29
- return f.value;
30
- },
31
- set(e) {
32
- r("update:modelValue", e), r("change", e);
33
- }
34
- });
35
- return (e, t) => {
36
- const n = B("el-autocomplete");
37
- return C(), b(n, {
38
- clearable: "",
39
- placeholder: e.t_field_placeholder(u(c).name, u(s).name),
40
- "fetch-suggestions": u(h),
41
- modelValue: u(a),
42
- "onUpdate:modelValue": t[0] || (t[0] = (l) => k(a) ? a.value = l : a = l)
43
- }, null, 8, ["placeholder", "fetch-suggestions", "modelValue"]);
44
- };
45
- }
46
- });
47
- export {
48
- S as default
49
- };
@@ -1,48 +0,0 @@
1
- import { defineComponent as v, toRefs as _, ref as V, computed as x, resolveComponent as B, openBlock as C, createBlock as b, unref as u, isRef as k } from "vue";
2
- import { B as D, j as R } from "./main-QtNG6p7a.js";
3
- const S = /* @__PURE__ */ v({
4
- __name: "Autocomplete",
5
- props: {
6
- schema: {},
7
- table: {},
8
- field: {},
9
- searchData: {},
10
- modelValue: {}
11
- },
12
- emits: ["submit", "change", "update:modelValue"],
13
- setup(d, { emit: p }) {
14
- let m = p, c = d, { table: i, field: s, searchData: j, modelValue: f } = _(c), a = V([]), h = null, g = (e, t) => {
15
- if (a.value.length) {
16
- let l = a.value.filter((r) => D.containsIgnoreCase(e, r.value));
17
- t(l);
18
- return;
19
- }
20
- let n = { text: h, conditions: [] };
21
- R.post(s.value.control.data.route, n).then(({ data: l }) => {
22
- a.value = l.map((r) => ({ value: r.text })), t(a.value);
23
- }).catch(() => {
24
- t([]);
25
- });
26
- }, o = x({
27
- get() {
28
- return f.value;
29
- },
30
- set(e) {
31
- m("update:modelValue", e), m("change", e);
32
- }
33
- });
34
- return (e, t) => {
35
- const n = B("el-autocomplete");
36
- return C(), b(n, {
37
- clearable: "",
38
- placeholder: e.t_field_placeholder(u(i).name, u(s).name),
39
- "fetch-suggestions": u(g),
40
- modelValue: u(o),
41
- "onUpdate:modelValue": t[0] || (t[0] = (l) => k(o) ? o.value = l : o = l)
42
- }, null, 8, ["placeholder", "fetch-suggestions", "modelValue"]);
43
- };
44
- }
45
- });
46
- export {
47
- S as default
48
- };
@@ -1,20 +0,0 @@
1
- import { defineComponent as o } from "vue";
2
- import { useRouter as i, useRoute as n } from "vue-router";
3
- import { m as s, T as u } from "./main-QtNG6p7a.js";
4
- const y = /* @__PURE__ */ o({
5
- __name: "Callback",
6
- setup(a) {
7
- let r = i(), t = n().query;
8
- return (async () => {
9
- if (!t.type) {
10
- s.error("缺失type参数");
11
- return;
12
- }
13
- let e = await u.create(t.type.toString());
14
- t.identity = JSON.parse(t.identity.toString()), e.login(t), r.push(t.return_url.toString());
15
- })(), (e, m) => " 登录完毕,处理回调中... ";
16
- }
17
- });
18
- export {
19
- y as default
20
- };
@@ -1,80 +0,0 @@
1
- import { defineComponent as B, toRefs as E, ref as w, computed as N, resolveComponent as R, openBlock as i, createBlock as S, unref as r, isRef as j, withCtx as D, createElementVNode as I, createTextVNode as P, toDisplayString as c, createElementBlock as m, createCommentVNode as f } from "vue";
2
- import { C as h, j as q } from "./main-QtNG6p7a.js";
3
- const T = {
4
- key: 0,
5
- class: "cascader-suffix"
6
- }, U = {
7
- key: 0,
8
- class: "cascader-length"
9
- }, J = /* @__PURE__ */ B({
10
- __name: "Cascader",
11
- props: {
12
- schema: {},
13
- table: {},
14
- field: {},
15
- set: {},
16
- row: {},
17
- modelValue: {}
18
- },
19
- emits: ["submit", "change", "update:modelValue"],
20
- setup(v, { emit: g }) {
21
- let d = g, V = v, { table: z, field: t, set: A, row: F, modelValue: b } = E(V), s = w(), p = null, _ = () => {
22
- s.value || (s.value = t.value.control.data.data);
23
- let e = b.value, l = [];
24
- return t.value.control.multiple ? (e ? e.toString().split(",") : [e]).forEach((o) => {
25
- let a = h.getParentsById(o, "value", s.value, "children", !0);
26
- a.length > 0 && l.push(a.map((k) => k.value));
27
- }) : h.getParentsById(e, "value", s.value, "children", !0).forEach((o) => {
28
- l.push(o.value);
29
- }), l;
30
- }, x = (e) => {
31
- let l;
32
- t.value.control.multiple ? l = e.map((n) => n[n.length - 1]).join(",") : l = e[e.length - 1], d("update:modelValue", l), d("change", l);
33
- }, C = (e) => {
34
- e && (p = null, y());
35
- }, y = () => {
36
- let e = { text: p, conditions: [] };
37
- t.value.control.data.conditions.forEach((l) => {
38
- e.conditions.push({ name: l.name, value: null });
39
- }), q.post(t.value.control.data.route, e).then(({ data: l }) => {
40
- s.value = l;
41
- });
42
- }, u = N({
43
- get() {
44
- return _();
45
- },
46
- set(e) {
47
- x(e);
48
- }
49
- });
50
- return (e, l) => {
51
- const n = R("el-cascader");
52
- return i(), S(n, {
53
- ref: "cascaderRef",
54
- filterable: "",
55
- "collapse-tags": "",
56
- "collapse-tags-tooltip": "",
57
- "max-collapse-tags": 6,
58
- options: r(s),
59
- disabled: r(t).readonly,
60
- props: { label: "text", checkStrictly: !0, multiple: r(t).control.multiple },
61
- clearable: !r(t).control.required,
62
- onVisibleChange: r(C),
63
- modelValue: r(u),
64
- "onUpdate:modelValue": l[0] || (l[0] = (o) => j(u) ? u.value = o : u = o)
65
- }, {
66
- default: D(({ node: o, data: a }) => [
67
- I("span", null, [
68
- P(c(a.text), 1),
69
- a.suffix ? (i(), m("span", T, "(" + c(a.suffix) + ")", 1)) : f("", !0)
70
- ]),
71
- a.children ? (i(), m("span", U, c(a.children.length), 1)) : f("", !0)
72
- ]),
73
- _: 1
74
- }, 8, ["options", "disabled", "props", "clearable", "onVisibleChange", "modelValue"]);
75
- };
76
- }
77
- });
78
- export {
79
- J as default
80
- };
@@ -1,41 +0,0 @@
1
- import { defineComponent as y, toRefs as C, computed as p, openBlock as e, createElementBlock as t, Fragment as d, renderList as m, unref as f, normalizeStyle as k, toDisplayString as h, createCommentVNode as x } from "vue";
2
- import { C as b } from "./main-QtNG6p7a.js";
3
- const B = { class: "text-cascader" }, S = {
4
- key: 0,
5
- class: "cascader-seperator"
6
- }, I = /* @__PURE__ */ y({
7
- __name: "Cascader",
8
- props: {
9
- schema: {},
10
- table: {},
11
- field: {},
12
- set: {},
13
- row: {},
14
- modelValue: {}
15
- },
16
- emits: ["submit", "change"],
17
- setup(_, { emit: V }) {
18
- let v = _, { table: w, field: s, set: E, row: z, modelValue: a } = C(v), u = p(() => s.value.control.multiple ? a.value ? a.value.toString().split(",") : [] : a.value), c = p(() => {
19
- if (u.value.length > 0) {
20
- let i = s.value.control.data.data, n = [];
21
- return u.value.forEach((r) => {
22
- let l = b.getParentsById(r, "value", i, "children", !0);
23
- l.length > 0 && n.push(l);
24
- }), n;
25
- }
26
- return [];
27
- });
28
- return (i, n) => (e(), t("div", B, [
29
- (e(!0), t(d, null, m(f(c), (r, l) => (e(), t("span", null, [
30
- (e(!0), t(d, null, m(r, (o, g) => (e(), t("span", {
31
- style: k({ color: o.color }),
32
- key: o.value
33
- }, h(o.text) + h(g == r.length - 1 ? "" : " / "), 5))), 128)),
34
- l != f(c).length - 1 ? (e(), t("span", S, ",")) : x("", !0)
35
- ]))), 256))
36
- ]));
37
- }
38
- });
39
- export {
40
- I as default
41
- };
@@ -1,4 +0,0 @@
1
- import { _ as f } from "./Code.vue_vue_type_style_index_0_lang-nX113anq.js";
2
- export {
3
- f as default
4
- };
@@ -1,36 +0,0 @@
1
- import { defineComponent as v, toRefs as h, ref as i, openBlock as V, createBlock as y, unref as n, normalizeStyle as x, isRef as F } from "vue";
2
- import { R } from "./main-QtNG6p7a.js";
3
- const B = /* @__PURE__ */ v({
4
- __name: "Code",
5
- props: {
6
- schema: {},
7
- table: {},
8
- field: {},
9
- set: {},
10
- row: {},
11
- modelValue: {}
12
- },
13
- setup(s) {
14
- let f = s, { table: g, field: t, set: _, row: d, modelValue: a } = h(f), o = i(), r = i({ language: null, readonly: !0, lineNumbers: "off" }), m = () => t.value.control.height ? `height: ${t.value.control.height}px` : "min-height: 200px;", c = (e) => e ? g.value.fields.find((u) => u.name == e) : null, p = (e) => {
15
- let l = c(e);
16
- return l ? d.value[l.name] : null;
17
- };
18
- return (() => {
19
- if (o.value = m(), t.value.control.languageField == null)
20
- r.value.language = t.value.control.language;
21
- else {
22
- let e = p(t.value.control.languageField);
23
- e && (r.value.language = e);
24
- }
25
- })(), (e, l) => (V(), y(n(R), {
26
- class: "text-code",
27
- config: n(r),
28
- style: x(n(o)),
29
- modelValue: n(a),
30
- "onUpdate:modelValue": l[0] || (l[0] = (u) => F(a) ? a.value = u : a = u)
31
- }, null, 8, ["config", "style", "modelValue"]));
32
- }
33
- });
34
- export {
35
- B as default
36
- };
@@ -1,54 +0,0 @@
1
- import { defineComponent as b, toRefs as h, ref as F, computed as T, watch as R, openBlock as _, createBlock as w, unref as n, isRef as N } from "vue";
2
- import { R as k } from "./main-QtNG6p7a.js";
3
- const C = /* @__PURE__ */ b({
4
- __name: "Code",
5
- props: {
6
- schema: {},
7
- table: {},
8
- field: {},
9
- set: {},
10
- row: {},
11
- modelValue: {}
12
- },
13
- emits: ["submit", "change", "update:modelValue"],
14
- setup(d, { emit: g }) {
15
- let c = g, f = d, { table: s, field: a, set: x, row: i, modelValue: p } = h(f), o = F({ language: null, scrollTop: 0, lineNumbers: null, schema: null, category: null }), v = (e) => {
16
- let l = m(a.value.control.scrollTop);
17
- l && (i.value[l.name] = e);
18
- }, V = () => {
19
- let e = r(a.value.control.scrollTop);
20
- if (e && (o.value.scrollTop = parseInt(e)), o.value.lineNumbers = a.value.control.lineNumbers, a.value.control.languageField == null)
21
- o.value.language = a.value.control.language;
22
- else {
23
- let l = r(a.value.control.languageField);
24
- l && (o.value.language = l);
25
- }
26
- a.value.control.schema && (o.value.schema = a.value.control.schema, o.value.category = `${s.value.name}.${a.value.name}`);
27
- }, r = (e) => {
28
- let l = m(e);
29
- return l ? i.value[l.name] : null;
30
- }, m = (e) => e ? s.value.fields.find((u) => u.name == e) : null;
31
- V();
32
- let t = T({
33
- get() {
34
- return p.value ?? "";
35
- },
36
- set(e) {
37
- c("update:modelValue", e), c("change", e);
38
- }
39
- });
40
- return R(() => r(a.value.control.languageField), (e, l) => {
41
- o.value.language = e;
42
- }), (e, l) => (_(), w(n(k), {
43
- class: "control-code",
44
- border: "",
45
- config: n(o),
46
- onScroll: n(v),
47
- modelValue: n(t),
48
- "onUpdate:modelValue": l[0] || (l[0] = (u) => N(t) ? t.value = u : t = u)
49
- }, null, 8, ["config", "onScroll", "modelValue"]));
50
- }
51
- });
52
- export {
53
- C as default
54
- };
@@ -1,59 +0,0 @@
1
- import { defineComponent as C, toRefs as h, ref as d, onMounted as b, resolveComponent as m, openBlock as n, createElementBlock as u, createVNode as i, unref as e, isRef as k, withCtx as p, Fragment as c, renderList as R, createBlock as B, createTextVNode as f, toDisplayString as _, createCommentVNode as E } from "vue";
2
- import { R as L } from "./main-QtNG6p7a.js";
3
- import { Q as N } from "./QueryApi-CbP5cCyH.js";
4
- const Q = { class: "ha-code-layout" }, q = /* @__PURE__ */ C({
5
- __name: "Code",
6
- props: {
7
- route: {},
8
- validateErrors: {},
9
- module: {},
10
- schema: {},
11
- table: {},
12
- layout: {},
13
- next: {},
14
- set: {}
15
- },
16
- emits: ["submit", "change"],
17
- setup(g, { emit: U }) {
18
- let V = g, { module: w, schema: A, table: D, layout: l, next: F, set: M } = h(V), r = d({}), t = d(), v = () => {
19
- t.value = l.value.languages[0];
20
- };
21
- return b(() => {
22
- v(), N.loadCodeLanguage().then((s) => {
23
- s.forEach((a) => {
24
- r.value[a.text] = a.suffix;
25
- });
26
- });
27
- }), (s, a) => {
28
- const x = m("el-radio"), y = m("el-radio-group");
29
- return n(), u("div", Q, [
30
- i(y, {
31
- modelValue: e(t),
32
- "onUpdate:modelValue": a[0] || (a[0] = (o) => k(t) ? t.value = o : t = o)
33
- }, {
34
- default: p(() => [
35
- (n(!0), u(c, null, R(e(l).languages, (o) => (n(), B(x, { value: o }, {
36
- default: p(() => [
37
- f(_(o) + " ", 1),
38
- e(r)[o] ? (n(), u(c, { key: 0 }, [
39
- f("(" + _(e(r)[o]) + ")", 1)
40
- ], 64)) : E("", !0)
41
- ]),
42
- _: 2
43
- }, 1032, ["value"]))), 256))
44
- ]),
45
- _: 1
46
- }, 8, ["modelValue"]),
47
- i(e(L), {
48
- border: "",
49
- config: { language: e(r)[e(t)] },
50
- modelValue: e(l).codes[e(t)],
51
- "onUpdate:modelValue": a[1] || (a[1] = (o) => e(l).codes[e(t)] = o)
52
- }, null, 8, ["config", "modelValue"])
53
- ]);
54
- };
55
- }
56
- });
57
- export {
58
- q as _
59
- };
@@ -1,67 +0,0 @@
1
- import { defineComponent as M, toRefs as S, onMounted as b, computed as h, openBlock as l, createBlock as f, unref as e, withCtx as k, createElementBlock as o, Fragment as D, renderList as E, normalizeClass as L, createCommentVNode as u, createElementVNode as a, toDisplayString as i, resolveDynamicComponent as F, createVNode as H, createTextVNode as s } from "vue";
2
- import { c as I, I as C, z as P, x as R } from "./main-QtNG6p7a.js";
3
- import "vue-router";
4
- import "./vendor-intro.js-DwWqhM1v.js";
5
- const T = {
6
- key: 0,
7
- class: "menus"
8
- }, $ = ["onClick"], j = { class: "title" }, q = {
9
- key: 1,
10
- class: "column-empty"
11
- }, A = /* @__PURE__ */ a("br", null, null, -1), G = /* @__PURE__ */ a("br", null, null, -1), X = /* @__PURE__ */ M({
12
- __name: "Column",
13
- props: {
14
- url: {},
15
- view: {}
16
- },
17
- emits: ["loaded", "navigate"],
18
- setup(x, { expose: y, emit: g }) {
19
- let c = g, w = x, { url: m, view: d } = S(w), B = I(), N = (t) => !0, U = (t) => !0, V = () => {
20
- p();
21
- }, p = () => {
22
- c("loaded", r.value.title);
23
- }, z = (t) => {
24
- let v = C.getUrl(t.url, { m: t.id });
25
- c("navigate", v);
26
- };
27
- b(() => {
28
- p();
29
- });
30
- let r = h(() => B.getMenuByUrl(m.value)), _ = h(() => C.getPath(m.value));
31
- return y({ shouldLoad: N, shouldSpin: U, refresh: V }), (t, v) => (l(), f(e(P), null, {
32
- default: k(() => [
33
- e(r) ? (l(), o("div", T, [
34
- (l(!0), o(D, null, E(e(r).children, (n) => (l(), o("div", {
35
- class: "menu",
36
- key: n.id,
37
- onClick: (J) => e(z)(n)
38
- }, [
39
- n.icon ? (l(), o("i", {
40
- key: 0,
41
- class: L(n.icon)
42
- }, null, 2)) : u("", !0),
43
- a("div", j, i(n.title), 1)
44
- ], 8, $))), 128))
45
- ])) : u("", !0),
46
- (l(), f(F(e(d)))),
47
- (!e(r) || e(r).children == 0) && !e(d) ? (l(), o("div", q, [
48
- H(e(R), null, {
49
- default: k(() => [
50
- s(" 此栏目页不存在子菜单或自定义部分视图,无内容可展示 ")
51
- ]),
52
- _: 1
53
- }),
54
- s(" 可考虑以下任一选项:"),
55
- A,
56
- s(" 1. 在 src/views 中实现自定义页面:" + i(e(_)), 1),
57
- G,
58
- s(" 2. 在 src/components/partials 中实现自定义首页部分视图:" + i(e(_)), 1)
59
- ])) : u("", !0)
60
- ]),
61
- _: 1
62
- }));
63
- }
64
- });
65
- export {
66
- X as default
67
- };
@@ -1,98 +0,0 @@
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 { I as D } from "./main-QtNG6p7a.js";
3
- const F = { class: "ha-comment-layout" }, L = { class: "comment-add" }, M = { class: "add-footer" }, R = { class: "footer-title" }, U = /* @__PURE__ */ t("i", { class: "el-icon-s-comment" }, null, -1), $ = { class: "comment-user" }, A = { class: "avatar" }, G = /* @__PURE__ */ t("img", {
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
- alt: ""
6
- }, null, -1), H = { class: "comment-body" }, J = { class: "comment-time" }, K = { class: "comment-content" }, O = /* @__PURE__ */ t("div", { class: "content-footer" }, [
7
- /* @__PURE__ */ t("span", null, [
8
- /* @__PURE__ */ t("i", { class: "fa fa-thumbs-up" }),
9
- /* @__PURE__ */ a("20")
10
- ]),
11
- /* @__PURE__ */ t("span", null, [
12
- /* @__PURE__ */ t("i", { class: "el-icon-s-comment" }),
13
- /* @__PURE__ */ a("回复")
14
- ])
15
- ], -1), P = { class: "comment-footer" }, Z = /* @__PURE__ */ E({
16
- __name: "Comment",
17
- props: {
18
- route: {},
19
- validateErrors: {},
20
- module: {},
21
- schema: {},
22
- table: {},
23
- layout: {},
24
- next: {},
25
- set: {}
26
- },
27
- setup(C) {
28
- let x = C, { schema: Q, table: r, layout: o, set: _, validateErrors: W } = N(x), c = S(1), k = (n) => {
29
- c.value = n;
30
- }, w = y(() => {
31
- let n = (c.value - 1) * o.value.pageSize, i = c.value * o.value.pageSize - 1;
32
- return _.value[r.value.name].filter((f, d) => d >= n && d <= i);
33
- }), h = y(() => r.value.fields.find((i) => i.name == o.value.userId));
34
- return (n, i) => {
35
- const g = u("el-input"), f = u("el-button"), d = u("router-link"), I = u("el-pagination");
36
- return m(), p("div", F, [
37
- t("div", L, [
38
- v(g, { type: "textarea" }),
39
- t("div", M, [
40
- t("div", R, [
41
- U,
42
- a("全部评论 (" + l(e(_)[e(r).name].length) + ")", 1)
43
- ]),
44
- v(f, {
45
- type: "primary",
46
- class: "btn-comment",
47
- icon: "el-icon-s-promotion"
48
- }, {
49
- default: b(() => [
50
- a("评论")
51
- ]),
52
- _: 1
53
- })
54
- ])
55
- ]),
56
- (m(!0), p(j, null, B(e(w), (s, z) => (m(), p("div", {
57
- class: "comment",
58
- key: z
59
- }, [
60
- t("div", $, [
61
- t("div", A, [
62
- G,
63
- a(" " + l(s[e(o).avatar]), 1)
64
- ])
65
- ]),
66
- t("div", H, [
67
- e(h) ? (m(), T(d, {
68
- key: 0,
69
- class: "comment-name",
70
- to: e(D).getUrl("/sys_user/detail", { id: s[e(o).userId], m: n.$route.query.m })
71
- }, {
72
- default: b(() => [
73
- a(l(e(h).control.data.data.find((V) => V.value == s[e(o).userId]).text), 1)
74
- ]),
75
- _: 2
76
- }, 1032, ["to"])) : q("", !0),
77
- t("div", J, l(s[e(o).commentTime]), 1),
78
- t("div", K, l(s[e(o).content]), 1),
79
- O
80
- ])
81
- ]))), 128)),
82
- t("div", P, [
83
- v(I, {
84
- background: "",
85
- layout: "total, prev, pager, next, jumper",
86
- "current-page": e(c),
87
- "page-size": e(o).pageSize,
88
- total: e(_)[e(r).name].length,
89
- onCurrentChange: e(k)
90
- }, null, 8, ["current-page", "page-size", "total", "onCurrentChange"])
91
- ])
92
- ]);
93
- };
94
- }
95
- });
96
- export {
97
- Z as default
98
- };
@@ -1,56 +0,0 @@
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 { J as z } from "./main-QtNG6p7a.js";
3
- const T = /* @__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: E }) {
15
- let m = E, M = V, { table: y, field: o, set: J, row: n, modelValue: c } = k(M), r = null, f = null, g = null, l = null, t = null, p = h(), s = h(), _ = (e) => {
16
- s.value = C(), W(() => {
17
- let a = n.value[d.value.name], i = o.value.control.language;
18
- f = e.editor.createModel(c.value, i), g = e.editor.createModel(a, i), r = e.editor.createDiffEditor(p.value, {
19
- originalEditable: !0,
20
- automaticLayout: !0,
21
- renderSideBySide: !o.value.control.inline
22
- //是否启用行内模式
23
- }), r.setModel({ original: f, modified: g }), l = r.getOriginalEditor(), l.onDidChangeModelContent((x) => {
24
- let u = l.getValue();
25
- m("update:modelValue", u), m("change", u);
26
- }), t = r.getModifiedEditor(), t.onDidChangeModelContent((x) => {
27
- let u = t.getValue();
28
- n.value[d.value.name] = u;
29
- });
30
- });
31
- }, C = () => o.value.control.height ? `height: ${o.value.control.height}px` : "min-height: 200px;";
32
- z.init().then((e) => {
33
- _(e);
34
- });
35
- let d = S(() => y.value.fields.find((a) => a.name == o.value.control.compareWith));
36
- return v(() => c.value, (e, a) => {
37
- if (!l)
38
- return;
39
- let i = l.getValue();
40
- e != i && l.setValue(e ?? "");
41
- }), v(() => n.value[d.value.name], (e, a) => {
42
- if (!t)
43
- return;
44
- let i = t.getValue();
45
- e != i && t.setValue(e ?? "");
46
- }), (e, a) => (w(), B("div", {
47
- ref_key: "compareRef",
48
- ref: p,
49
- class: "control-compare",
50
- style: D(R(s))
51
- }, null, 4));
52
- }
53
- });
54
- export {
55
- T as default
56
- };
@@ -1,26 +0,0 @@
1
- import { defineComponent as d, toRefs as i, computed as l, unref as a, openBlock as f, createElementBlock as v, normalizeClass as _, createCommentVNode as C } from "vue";
2
- import { J as x } from "./main-QtNG6p7a.js";
3
- const V = /* @__PURE__ */ d({
4
- __name: "Compare",
5
- props: {
6
- schema: {},
7
- table: {},
8
- field: {},
9
- set: {},
10
- row: {},
11
- modelValue: {}
12
- },
13
- setup(o) {
14
- let r = o, { table: e, field: t, set: m, row: n, modelValue: u } = i(r), s = e.value.name + "-" + t.value.name + "-" + m.value[e.value.name].indexOf(n.value);
15
- x.init().then((p) => {
16
- });
17
- let c = l(() => u || "");
18
- return l(() => t.value.control.type.toLowerCase()), (p, h) => a(c) ? (f(), v("div", {
19
- key: 0,
20
- class: _(`text-compare ${a(s)}`)
21
- }, null, 2)) : C("", !0);
22
- }
23
- });
24
- export {
25
- V as default
26
- };