halo-pc 1.0.39 → 1.0.40

Sign up to get free protection for your applications and to get access to all the features.
Files changed (173) hide show
  1. package/dist/{Article-DZlstqWL.js → Article-CqtkXVmQ.js} +37 -36
  2. package/dist/{ArticleFooter-BkduiKh8.js → ArticleFooter-DeJdTtZD.js} +12 -13
  3. package/dist/{Autocomplete-DMKnFezN.js → Autocomplete-0fxB2_FC.js} +1 -1
  4. package/dist/Autocomplete-BfhYwZ5G.js +49 -0
  5. package/dist/{Autocomplete-0Yf6lJQ7.js → Autocomplete-LQiKcvz1.js} +10 -11
  6. package/dist/{CSharp-q8eOBm4y.js → CSharp-BIFRQLaK.js} +1 -1
  7. package/dist/{Calender-CseGNCuW.js → Calender-DPNTn-S4.js} +2 -2
  8. package/dist/Callback-Ci5KrWOC.js +20 -0
  9. package/dist/Cascader-CnOEgPDf.js +41 -0
  10. package/dist/{Cascader-BG5ev35M.js → Cascader-Vhc81TDV.js} +17 -18
  11. package/dist/{Checkbox-CsCA6iQb.js → Checkbox-CIim5NiB.js} +1 -1
  12. package/dist/{Checkbox-dw8RNAGt.js → Checkbox-D9Sp6ZGQ.js} +11 -12
  13. package/dist/Code-BEjqqeFZ.js +54 -0
  14. package/dist/Code-BSrEPuXk.js +4 -0
  15. package/dist/Code-Dp1-k8sW.js +36 -0
  16. package/dist/{Code-BE8YLGaE.js → Code-yDKaH1uF.js} +10 -8
  17. package/dist/Code.vue_vue_type_style_index_0_lang-CmkomJXY.js +59 -0
  18. package/dist/Column-B0ViSver.js +69 -0
  19. package/dist/{Comment-kTmfTlbF.js → Comment-tU2wBvGO.js} +22 -26
  20. package/dist/{Compare-DlyQBCat.js → Compare-D7Gz-lE9.js} +10 -11
  21. package/dist/{Compare-DVWaiCUC.js → Compare-DqvGyQWA.js} +8 -9
  22. package/dist/Copy-Dm1LH9qB.js +43 -0
  23. package/dist/Custom-CLKAPWEo.js +49 -0
  24. package/dist/{DataExport-Um1wXyRe.js → DataExport-BDftKI0U.js} +1 -1
  25. package/dist/{DataExport.vue_vue_type_script_setup_true_lang-2YoqwEmA.js → DataExport.vue_vue_type_script_setup_true_lang-Dzy9UC11.js} +27 -28
  26. package/dist/{DataImport-CPMLup4P.js → DataImport-CRYaaQfA.js} +1 -1
  27. package/dist/{DataImport.vue_vue_type_script_setup_true_lang-DsCp0vWo.js → DataImport.vue_vue_type_script_setup_true_lang-D7UdCnBM.js} +30 -31
  28. package/dist/{Date-BhZ8ltgp.js → Date-DPPiYLWw.js} +7 -8
  29. package/dist/{Date-Cj9lCW_Y.js → Date-Dlh1_S7p.js} +1 -1
  30. package/dist/{DateRange-Bw_Oyawz.js → DateRange-BgF_T3ls.js} +5 -6
  31. package/dist/{DateTime-Cv-SRE88.js → DateTime-CNjPeK9t.js} +1 -1
  32. package/dist/{DateTime-BU6JaBPk.js → DateTime-DP-VfmtN.js} +7 -8
  33. package/dist/{DateTimeRange-B4Ah6LQY.js → DateTimeRange-DbEpW4nB.js} +9 -10
  34. package/dist/{Daterange-CSZe4XGO.js → Daterange-DHVjhrK9.js} +4 -5
  35. package/dist/{Decimal-DSDuwW9Z.js → Decimal-BDEWVSsK.js} +1 -1
  36. package/dist/{Delete-CjPgg-5G.js → Delete-Bl0GmthL.js} +19 -20
  37. package/dist/{Detail-gj--ICe8.js → Detail-BozyhOTt.js} +10 -11
  38. package/dist/{Dictionary-Ck_02mWa.js → Dictionary-CJwZPQz6.js} +9 -15
  39. package/dist/{Email-BSQbDvh1.js → Email-D5X1SzuJ.js} +11 -12
  40. package/dist/{File-FW4usX43.js → File-DixK0K7p.js} +44 -43
  41. package/dist/Image-BrelhCGo.js +9 -0
  42. package/dist/Index-BeM6hKX9.js +4 -0
  43. package/dist/Index-BkfLyqpm.js +173 -0
  44. package/dist/{Index-MUgqP8jJ.js → Index-D2FOeoNQ.js} +1 -1
  45. package/dist/Index-D8UVsXwf.js +4 -0
  46. package/dist/{Index-Dq5Vp-ts.js → Index-DbXgnBz6.js} +15 -16
  47. package/dist/Index-FL-dxfFB.js +4 -0
  48. package/dist/Index-fWOqfFkG.js +4 -0
  49. package/dist/{Index-BibWDRoP.js → Index-j15c7lwJ.js} +1 -1
  50. package/dist/Index.vue_vue_type_script_setup_true_lang-ByxBNAdg.js +80 -0
  51. package/dist/{Index.vue_vue_type_script_setup_true_lang-CiBvC9Cu.js → Index.vue_vue_type_script_setup_true_lang-DT7eOyjs.js} +21 -22
  52. package/dist/{Install-Cpp3BDCS.js → Install-WR3b4IfI.js} +13 -14
  53. package/dist/{Int-Ck1SvK7R.js → Int-CWsDtoxE.js} +9 -10
  54. package/dist/{Int-DcQsipaO.js → Int-GGWiUqO2.js} +13 -14
  55. package/dist/List-kRCsHp6d.js +71 -0
  56. package/dist/Maintaince-BG8MUi3A.js +14 -0
  57. package/dist/{Markdown-BEUz4VZ7.js → Markdown-nVfQs7kc.js} +1 -1
  58. package/dist/Month-B1icZmL4.js +37 -0
  59. package/dist/{Month-DmUiyF1G.js → Month-CxKMP4kO.js} +1 -1
  60. package/dist/{Month-DJGGGrZr.js → Month-DnYlAi7k.js} +10 -11
  61. package/dist/{Normal-ACcTHsXb.js → Normal-RcqEyIFN.js} +47 -46
  62. package/dist/Paging-DrdGzxeP.js +94 -0
  63. package/dist/{PagingHeader-DDkmqv98.js → PagingHeader-C8UpM9Kj.js} +18 -17
  64. package/dist/{PagingRow-B4Nfa2Vk.js → PagingRow-oQWCofO4.js} +13 -14
  65. package/dist/{Racebar-LfnPLNOY.js → Racebar-CvoF2ySW.js} +32 -36
  66. package/dist/{Radio-DcEZI4m7.js → Radio-DhjfkC14.js} +1 -1
  67. package/dist/{Register-B4x_zgyH.js → Register-B0Vx60wY.js} +55 -56
  68. package/dist/RichText-4wrLw9cy.js +41 -0
  69. package/dist/{SearchForm-DU5QLTbe.js → SearchForm-BHVnQaSL.js} +1 -1
  70. package/dist/{SearchForm.vue_vue_type_style_index_0_lang-BHZrYG6_.js → SearchForm.vue_vue_type_style_index_0_lang-ByICIL6w.js} +50 -51
  71. package/dist/SearchHeader-C9yovXli.js +4 -0
  72. package/dist/SearchHeader.vue_vue_type_style_index_0_lang-CHAg97-Y.js +60 -0
  73. package/dist/{Select-C3gUeHmu.js → Select-BDoCqD3I.js} +10 -11
  74. package/dist/{Select-CMxubJIV.js → Select-CX4i5KPQ.js} +1 -1
  75. package/dist/{Select-DrDDVJtz.js → Select-vgwpegBi.js} +20 -21
  76. package/dist/{Single-De-YyuVk.js → Single-C3629BdC.js} +127 -128
  77. package/dist/{Statistic-CTxHNeof.js → Statistic-Dxa-CZ8G.js} +10 -8
  78. package/dist/{Statistic-SvjQ7uGI.js → Statistic-WPezAlUn.js} +34 -33
  79. package/dist/{Stock-C2b9p3-N.js → Stock-BD5Acf8y.js} +8 -6
  80. package/dist/{Stock-XZkBSQw1.js → Stock-EPM3j2f_.js} +1 -1
  81. package/dist/{Stock.vue_vue_type_style_index_0_lang-DwxyyM7p.js → Stock.vue_vue_type_style_index_0_lang-D5RR2MRP.js} +22 -21
  82. package/dist/{Switch-PJT-5dDt.js → Switch-B0XN4K-9.js} +1 -1
  83. package/dist/{Table-Dy1H2IHN.js → Table-BklK1hSh.js} +142 -136
  84. package/dist/{Table-CkoZ8OjZ.js → Table-JFdOXuME.js} +61 -60
  85. package/dist/Text-CNtHdodK.js +4 -0
  86. package/dist/{Text-CytgR_l_.js → Text-DrJkdxZF.js} +12 -13
  87. package/dist/Text-KAuEjP7I.js +48 -0
  88. package/dist/Text.vue_vue_type_style_index_0_lang-BJIbv4kF.js +53 -0
  89. package/dist/{TextLink-DINdFWzs.js → TextLink-BnijIoEJ.js} +8 -9
  90. package/dist/{Textarea-DakZXfN6.js → Textarea-3SWLqQvO.js} +1 -1
  91. package/dist/{Time-Bn1Av2wo.js → Time-C3qlNZkJ.js} +9 -10
  92. package/dist/{Timeline-B32cUvwI.js → Timeline-B6hUIYhL.js} +11 -15
  93. package/dist/{Tree-BGfHm4k_.js → Tree-DBvFF4Rj.js} +77 -76
  94. package/dist/{Tree-BItAXuSC.js → Tree-JexLPBXX.js} +38 -42
  95. package/dist/{TreeNode-DmiM_a2n.js → TreeNode-BOWB2WN9.js} +9 -10
  96. package/dist/{Update-DSTmaeT8.js → Update-CDLYYwgj.js} +5 -6
  97. package/dist/{UpdateChild-BgBJJwT3.js → UpdateChild-DUG7pAuO.js} +19 -20
  98. package/dist/{Upload-DMqlcxCt.js → Upload-B2hbxDsT.js} +46 -47
  99. package/dist/Upload-mlk6Y4Po.js +65 -0
  100. package/dist/{Year-DckBNPK_.js → Year-BRsJ7b1J.js} +1 -1
  101. package/dist/{Year-Cv92J5pF.js → Year-BUF60NmB.js} +7 -8
  102. package/dist/assets/{clipboard-DjQPoCBJ.js → clipboard-ClN4QccS.js} +1 -3
  103. package/dist/main-DymfKjqO.js +16480 -0
  104. package/dist/main.js +144 -142
  105. package/dist/style.css +1 -1
  106. package/esm/coms/commons/Table.vue.d.ts +1 -1
  107. package/esm/coms/drivers/Index.vue.d.ts +2 -2
  108. package/esm/coms/globals/Menu.vue.d.ts +1 -1
  109. package/esm/coms/globals/MenuItem.vue.d.ts +1 -1
  110. package/esm/coms/headers/@types/HeaderProps.d.ts +1 -1
  111. package/esm/coms/headers/Index.vue.d.ts +1 -1
  112. package/esm/coms/layouts/Index.vue.d.ts +3 -3
  113. package/esm/coms/layouts/Side.vue.d.ts +2 -2
  114. package/esm/coms/layouts/Top.vue.d.ts +1 -1
  115. package/esm/coms/lists/Racebar.vue.d.ts +1 -1
  116. package/esm/coms/lists/Statistic.vue.d.ts +1 -1
  117. package/esm/coms/lists/Tree.vue.d.ts +3 -3
  118. package/esm/coms/pages/@types/SchemaProps.d.ts +2 -1
  119. package/esm/coms/pages/Column.vue.d.ts +1 -1
  120. package/esm/coms/pages/Custom.vue.d.ts +6 -6
  121. package/esm/coms/pages/List.vue.d.ts +5 -3
  122. package/esm/coms/pages/Paging.vue.d.ts +5 -3
  123. package/esm/coms/pages/Single.vue.d.ts +3 -3
  124. package/esm/coms/pagings/@types/SearchHeaderProps.d.ts +9 -0
  125. package/esm/coms/pagings/@types/index.d.ts +2 -2
  126. package/esm/coms/pagings/Article.vue.d.ts +2 -2
  127. package/esm/coms/pagings/Index.vue.d.ts +4 -2
  128. package/esm/coms/pagings/SearchForm.vue.d.ts +1 -1
  129. package/esm/coms/pagings/SearchHeader.vue.d.ts +19 -0
  130. package/esm/coms/pagings/Table.vue.d.ts +4 -2
  131. package/esm/coms/partials/@types/PagingHeaderProps.d.ts +2 -1
  132. package/esm/coms/singles/Index.vue.d.ts +1 -1
  133. package/esm/coms/singles/Normal.vue.d.ts +1 -1
  134. package/esm/coms/singles/Table.vue.d.ts +1 -1
  135. package/esm/coms/singles/Tree.vue.d.ts +1 -1
  136. package/package.json +6 -6
  137. package/dist/Autocomplete-bc-9LfGa.js +0 -50
  138. package/dist/Callback-D_dFJlfv.js +0 -21
  139. package/dist/Cascader-Dzeoz7ss.js +0 -47
  140. package/dist/Code-BRe68AIa.js +0 -42
  141. package/dist/Code-C5QfTMNw.js +0 -60
  142. package/dist/Code-_XoN6vQE.js +0 -4
  143. package/dist/Code.vue_vue_type_style_index_0_lang-D2hJ7lYF.js +0 -63
  144. package/dist/Column-C-NHhT2v.js +0 -75
  145. package/dist/Copy-DQFJy3uX.js +0 -44
  146. package/dist/Custom-D5HoD0nQ.js +0 -59
  147. package/dist/Image-DiAw_6jM.js +0 -9
  148. package/dist/Index-B_5hshjJ.js +0 -4
  149. package/dist/Index-BtlD6ocN.js +0 -4
  150. package/dist/Index-C3f38zw0.js +0 -4
  151. package/dist/Index-CB_TnEaw.js +0 -4
  152. package/dist/Index-hgTZyQps.js +0 -174
  153. package/dist/Index.vue_vue_type_script_setup_true_lang-BzPCaYCg.js +0 -82
  154. package/dist/List-hWB41wF_.js +0 -72
  155. package/dist/Maintaince-l-Tdveur.js +0 -20
  156. package/dist/Month-DkafiRHq.js +0 -38
  157. package/dist/Paging-Vfz2RDBo.js +0 -93
  158. package/dist/RichText-B1Iogpgr.js +0 -47
  159. package/dist/SearchFooter-CmM8qnxP.js +0 -4
  160. package/dist/SearchFooter.vue_vue_type_style_index_0_lang-fRS96yRX.js +0 -55
  161. package/dist/Text-Bt5jL_KV.js +0 -49
  162. package/dist/Text-vHouxGHU.js +0 -4
  163. package/dist/Text.vue_vue_type_style_index_0_lang-CgxtY5ch.js +0 -59
  164. package/dist/Upload-DpQu3z1T.js +0 -71
  165. package/dist/assets/clone-BZn0cTAu.js +0 -134
  166. package/dist/assets/file-saver-CwlpTZSc.js +0 -74
  167. package/dist/assets/liquidjs-C2HVw1Ra.js +0 -2901
  168. package/dist/assets/moment-h96o7c8I.js +0 -2578
  169. package/dist/assets/sprintf-js-BPTdvBYM.js +0 -148
  170. package/dist/assets/underscore-B0BCaBxV.js +0 -1070
  171. package/dist/assets/underscore.string-DVXD2SZo.js +0 -425
  172. package/dist/assets/util-deprecate-Dzun97re.js +0 -28
  173. package/dist/main-KNkwb0pq.js +0 -10515
@@ -0,0 +1,36 @@
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 { M as _ } from "./main-DymfKjqO.js";
3
+ const C = /* @__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: b, row: d, modelValue: a } = h(f), r = i(), o = i({ language: null, readonly: !0, lineNumbers: "off" }), m = () => t.value.control.height ? `height: ${t.value.control.height}px` : "min-height: 200px;", p = (e) => e ? g.value.fields.find((u) => u.name == e) : null, c = (e) => {
15
+ let l = p(e);
16
+ return l ? d.value[l.name] : null;
17
+ };
18
+ return (() => {
19
+ if (r.value = m(), t.value.control.languageField == null)
20
+ o.value.language = t.value.control.language;
21
+ else {
22
+ let e = c(t.value.control.languageField);
23
+ e && (o.value.language = e);
24
+ }
25
+ })(), (e, l) => (V(), y(n(_), {
26
+ class: "text-code",
27
+ options: n(o),
28
+ style: x(n(r)),
29
+ modelValue: n(a),
30
+ "onUpdate:modelValue": l[0] || (l[0] = (u) => F(a) ? a.value = u : a = u)
31
+ }, null, 8, ["options", "style", "modelValue"]));
32
+ }
33
+ });
34
+ export {
35
+ C as default
36
+ };
@@ -1,6 +1,6 @@
1
- import { defineComponent as r, toRefs as u, openBlock as p, createBlock as _, unref as e } from "vue";
2
- import { _ as f } from "./Code.vue_vue_type_style_index_0_lang-D2hJ7lYF.js";
3
- const b = /* @__PURE__ */ r({
1
+ import { defineComponent as u, toRefs as c, openBlock as p, createBlock as _, unref as e } from "vue";
2
+ import { _ as f } from "./Code.vue_vue_type_style_index_0_lang-CmkomJXY.js";
3
+ const b = /* @__PURE__ */ u({
4
4
  __name: "Code",
5
5
  props: {
6
6
  searchData: {},
@@ -9,17 +9,19 @@ const b = /* @__PURE__ */ r({
9
9
  table: {},
10
10
  layout: {},
11
11
  next: {},
12
- set: {}
12
+ set: {},
13
+ url: {},
14
+ win: {}
13
15
  },
14
16
  setup(t) {
15
- let a = t, { module: o, schema: l, table: s, layout: m, next: n, set: c } = u(a);
17
+ let a = t, { module: o, schema: l, table: s, layout: n, next: m, set: r } = c(a);
16
18
  return (d, h) => (p(), _(f, {
17
19
  module: e(o),
18
20
  schema: e(l),
19
21
  table: e(s),
20
- layout: e(m),
21
- next: e(n),
22
- set: e(c)
22
+ layout: e(n),
23
+ next: e(m),
24
+ set: e(r)
23
25
  }, null, 8, ["module", "schema", "table", "layout", "next", "set"]));
24
26
  }
25
27
  });
@@ -0,0 +1,59 @@
1
+ import { defineComponent as C, toRefs as b, ref as d, onMounted as k, resolveComponent as i, openBlock as r, createElementBlock as u, createVNode as m, unref as e, isRef as h, withCtx as p, Fragment as c, renderList as w, createBlock as B, createTextVNode as _, toDisplayString as f, createCommentVNode as L } from "vue";
2
+ import { v as M, M as N } from "./main-DymfKjqO.js";
3
+ const E = { class: "ha-code-layout" }, q = /* @__PURE__ */ C({
4
+ __name: "Code",
5
+ props: {
6
+ route: {},
7
+ validateErrors: {},
8
+ module: {},
9
+ schema: {},
10
+ table: {},
11
+ layout: {},
12
+ next: {},
13
+ set: {},
14
+ url: {},
15
+ win: {}
16
+ },
17
+ emits: ["submit", "change"],
18
+ setup(g, { emit: R }) {
19
+ let v = g, { module: U, schema: A, table: D, layout: a, next: F, set: S } = b(v), n = d({}), t = d(), V = () => {
20
+ t.value = a.value.languages[0];
21
+ };
22
+ return k(async () => {
23
+ V();
24
+ let s = await M.loadCodeLanguageAsync();
25
+ for (let l of s)
26
+ n.value[l.text] = l.suffix;
27
+ }), (s, l) => {
28
+ const x = i("el-radio"), y = i("el-radio-group");
29
+ return r(), u("div", E, [
30
+ m(y, {
31
+ modelValue: e(t),
32
+ "onUpdate:modelValue": l[0] || (l[0] = (o) => h(t) ? t.value = o : t = o)
33
+ }, {
34
+ default: p(() => [
35
+ (r(!0), u(c, null, w(e(a).languages, (o) => (r(), B(x, { value: o }, {
36
+ default: p(() => [
37
+ _(f(o) + " ", 1),
38
+ e(n)[o] ? (r(), u(c, { key: 0 }, [
39
+ _("(" + f(e(n)[o]) + ")", 1)
40
+ ], 64)) : L("", !0)
41
+ ]),
42
+ _: 2
43
+ }, 1032, ["value"]))), 256))
44
+ ]),
45
+ _: 1
46
+ }, 8, ["modelValue"]),
47
+ m(e(N), {
48
+ border: "",
49
+ options: { language: e(n)[e(t)] },
50
+ modelValue: e(a).codes[e(t)],
51
+ "onUpdate:modelValue": l[1] || (l[1] = (o) => e(a).codes[e(t)] = o)
52
+ }, null, 8, ["options", "modelValue"])
53
+ ]);
54
+ };
55
+ }
56
+ });
57
+ export {
58
+ q as _
59
+ };
@@ -0,0 +1,69 @@
1
+ import { defineComponent as M, toRefs as b, onMounted as D, computed as k, openBlock as r, createBlock as C, unref as e, withCtx as y, createElementBlock as s, Fragment as E, renderList as H, normalizeClass as L, createCommentVNode as i, createElementVNode as a, toDisplayString as m, resolveDynamicComponent as R, createVNode as S, createTextVNode as u } from "vue";
2
+ import { U as h, d as _, z as F, H as P } from "./main-DymfKjqO.js";
3
+ import "element-plus";
4
+ import "vue-router";
5
+ import "./assets/intro.js-Cg1adLK7.js";
6
+ const T = {
7
+ key: 0,
8
+ class: "menus"
9
+ }, $ = ["onClick"], j = { class: "title" }, q = {
10
+ key: 1,
11
+ class: "column-empty"
12
+ }, Q = /* @__PURE__ */ M({
13
+ __name: "Column",
14
+ props: {
15
+ view: {},
16
+ url: {},
17
+ win: {}
18
+ },
19
+ emits: ["loaded", "navigate"],
20
+ setup(g, { expose: x, emit: U }) {
21
+ let d = U, w = g, { url: p, view: c } = b(w), B = (l) => !0, N = (l) => !0, V = () => {
22
+ v();
23
+ }, v = () => {
24
+ d("loaded", n.value.title);
25
+ }, z = (l) => {
26
+ let t = _.url.getUrl(l.url, { m: l.id });
27
+ d("navigate", t);
28
+ };
29
+ D(() => {
30
+ v();
31
+ });
32
+ let n = k(() => h.getMenuByUrl(p.value)), f = k(() => _.url.getPath(p.value));
33
+ return x({ shouldLoad: B, shouldSpin: N, onRefresh: V }), (l, t) => (r(), C(e(F), null, {
34
+ default: y(() => [
35
+ e(n) ? (r(), s("div", T, [
36
+ (r(!0), s(E, null, H(e(n).children, (o) => (r(), s("div", {
37
+ class: "menu",
38
+ key: o.id,
39
+ onClick: (A) => e(z)(o)
40
+ }, [
41
+ o.icon ? (r(), s("i", {
42
+ key: 0,
43
+ class: L(o.icon)
44
+ }, null, 2)) : i("", !0),
45
+ a("div", j, m(o.title), 1)
46
+ ], 8, $))), 128))
47
+ ])) : i("", !0),
48
+ (r(), C(R(e(c)))),
49
+ (!e(n) || e(n).children == 0) && !e(c) ? (r(), s("div", q, [
50
+ S(e(P), null, {
51
+ default: y(() => t[0] || (t[0] = [
52
+ u(" 此栏目页不存在子菜单或自定义部分视图,无内容可展示 ")
53
+ ])),
54
+ _: 1
55
+ }),
56
+ t[1] || (t[1] = u(" 可考虑以下任一选项:")),
57
+ t[2] || (t[2] = a("br", null, null, -1)),
58
+ u(" 1. 在 src/views 中实现自定义页面:" + m(e(f)), 1),
59
+ t[3] || (t[3] = a("br", null, null, -1)),
60
+ u(" 2. 在 src/coms/partials 中实现自定义首页部分视图:" + m(e(f)), 1)
61
+ ])) : i("", !0)
62
+ ]),
63
+ _: 1
64
+ }));
65
+ }
66
+ });
67
+ export {
68
+ Q as default
69
+ };
@@ -1,12 +1,6 @@
1
- import { defineComponent as E, toRefs as N, ref as j, computed as y, resolveComponent as d, openBlock as c, createElementBlock as _, createElementVNode as e, createVNode as v, createTextVNode as a, toDisplayString as r, unref as t, withCtx as b, Fragment as B, renderList as U, createBlock as T, createCommentVNode as q } from "vue";
2
- import { U as D } from "./main-KNkwb0pq.js";
3
- import "./assets/liquidjs-C2HVw1Ra.js";
4
- import "./assets/underscore-B0BCaBxV.js";
5
- import "./assets/file-saver-CwlpTZSc.js";
6
- import "./assets/clone-BZn0cTAu.js";
7
- import "./assets/underscore.string-DVXD2SZo.js";
8
- import "./assets/moment-h96o7c8I.js";
9
- const F = { class: "ha-comment-layout" }, L = { class: "comment-add" }, M = { class: "add-footer" }, R = { class: "footer-title" }, S = { class: "comment-user" }, $ = { class: "avatar" }, A = { class: "comment-body" }, G = { class: "comment-time" }, H = { class: "comment-content" }, J = { class: "comment-footer" }, oe = /* @__PURE__ */ E({
1
+ import { defineComponent as E, toRefs as N, ref as j, computed as y, resolveComponent as c, openBlock as m, createElementBlock as _, createElementVNode as e, createVNode as v, createTextVNode as a, toDisplayString as r, unref as t, withCtx as b, Fragment as B, renderList as T, createBlock as q, createCommentVNode as D } from "vue";
2
+ import { d as F } from "./main-DymfKjqO.js";
3
+ const L = { class: "ha-comment-layout" }, M = { class: "comment-add" }, R = { class: "add-footer" }, S = { class: "footer-title" }, U = { class: "comment-user" }, $ = { class: "avatar" }, A = { class: "comment-body" }, G = { class: "comment-time" }, H = { class: "comment-content" }, J = { class: "comment-footer" }, W = /* @__PURE__ */ E({
10
4
  __name: "Comment",
11
5
  props: {
12
6
  route: {},
@@ -16,22 +10,24 @@ const F = { class: "ha-comment-layout" }, L = { class: "comment-add" }, M = { cl
16
10
  table: {},
17
11
  layout: {},
18
12
  next: {},
19
- set: {}
13
+ set: {},
14
+ url: {},
15
+ win: {}
20
16
  },
21
17
  setup(C) {
22
- let x = C, { schema: K, table: i, layout: n, set: p, validateErrors: O } = N(x), m = j(1), k = (s) => {
23
- m.value = s;
18
+ let x = C, { schema: K, table: i, layout: n, set: p, validateErrors: O } = N(x), u = j(1), k = (s) => {
19
+ u.value = s;
24
20
  }, w = y(() => {
25
- let s = (m.value - 1) * n.value.size, o = m.value * n.value.size - 1;
26
- return p.value[i.value.name].filter((h, u) => u >= s && u <= o);
21
+ let s = (u.value - 1) * n.value.size, o = u.value * n.value.size - 1;
22
+ return p.value[i.value.name].filter((h, d) => d >= s && d <= o);
27
23
  }), f = y(() => i.value.fields.find((o) => o.name == n.value.userId));
28
24
  return (s, o) => {
29
- const g = d("el-input"), h = d("el-button"), u = d("router-link"), I = d("el-pagination");
30
- return c(), _("div", F, [
31
- e("div", L, [
25
+ const g = c("el-input"), h = c("el-button"), d = c("router-link"), I = c("el-pagination");
26
+ return m(), _("div", L, [
27
+ e("div", M, [
32
28
  v(g, { type: "textarea" }),
33
- e("div", M, [
34
- e("div", R, [
29
+ e("div", R, [
30
+ e("div", S, [
35
31
  o[0] || (o[0] = e("i", { class: "el-icon-s-comment" }, null, -1)),
36
32
  a("全部评论 (" + r(t(p)[t(i).name].length) + ")", 1)
37
33
  ]),
@@ -47,11 +43,11 @@ const F = { class: "ha-comment-layout" }, L = { class: "comment-add" }, M = { cl
47
43
  })
48
44
  ])
49
45
  ]),
50
- (c(!0), _(B, null, U(t(w), (l, z) => (c(), _("div", {
46
+ (m(!0), _(B, null, T(t(w), (l, z) => (m(), _("div", {
51
47
  class: "comment",
52
48
  key: z
53
49
  }, [
54
- e("div", S, [
50
+ e("div", U, [
55
51
  e("div", $, [
56
52
  o[2] || (o[2] = e("img", {
57
53
  src: "https://upload.jianshu.io/users/upload_avatars/2859365/cce8943353eb.jpeg?imageMogr2/auto-orient/strip|imageView2/1/w/80/h/80/format/webp",
@@ -61,16 +57,16 @@ const F = { class: "ha-comment-layout" }, L = { class: "comment-add" }, M = { cl
61
57
  ])
62
58
  ]),
63
59
  e("div", A, [
64
- t(f) ? (c(), T(u, {
60
+ t(f) ? (m(), q(d, {
65
61
  key: 0,
66
62
  class: "comment-name",
67
- to: t(D).url.getUrl("/sys_user/detail", { id: l[t(n).userId], m: s.$route.query.m })
63
+ to: t(F).url.getUrl("/sys_user/detail", { id: l[t(n).userId], m: s.$route.query.m })
68
64
  }, {
69
65
  default: b(() => [
70
66
  a(r(t(f).control.data.data.find((V) => V.value == l[t(n).userId]).text), 1)
71
67
  ]),
72
68
  _: 2
73
- }, 1032, ["to"])) : q("", !0),
69
+ }, 1032, ["to"])) : D("", !0),
74
70
  e("div", G, r(l[t(n).commentTime]), 1),
75
71
  e("div", H, r(l[t(n).content]), 1),
76
72
  o[3] || (o[3] = e("div", { class: "content-footer" }, [
@@ -89,7 +85,7 @@ const F = { class: "ha-comment-layout" }, L = { class: "comment-add" }, M = { cl
89
85
  v(I, {
90
86
  background: "",
91
87
  layout: "total, prev, pager, next, jumper",
92
- "current-page": t(m),
88
+ "current-page": t(u),
93
89
  "page-size": t(n).size,
94
90
  total: t(p)[t(i).name].length,
95
91
  onCurrentChange: t(k)
@@ -100,5 +96,5 @@ const F = { class: "ha-comment-layout" }, L = { class: "comment-add" }, M = { cl
100
96
  }
101
97
  });
102
98
  export {
103
- oe as default
99
+ W as default
104
100
  };
@@ -1,7 +1,6 @@
1
- import { defineComponent as x, toRefs as E, onMounted as k, computed as s, unref as p, openBlock as w, createElementBlock as y, normalizeClass as V, createCommentVNode as b, nextTick as B } from "vue";
2
- import { p as N } from "./main-KNkwb0pq.js";
3
- import "./assets/moment-h96o7c8I.js";
4
- const L = /* @__PURE__ */ x({
1
+ import { defineComponent as x, toRefs as E, onMounted as k, computed as s, unref as f, openBlock as w, createElementBlock as y, normalizeClass as V, createCommentVNode as b, nextTick as B } from "vue";
2
+ import { e as N } from "./main-DymfKjqO.js";
3
+ const D = /* @__PURE__ */ x({
5
4
  __name: "Compare",
6
5
  props: {
7
6
  schema: {},
@@ -11,11 +10,11 @@ const L = /* @__PURE__ */ x({
11
10
  row: {},
12
11
  modelValue: {}
13
12
  },
14
- setup(f) {
15
- let v = f, { table: l, field: t, set: g, row: a, modelValue: M } = E(v), o = l.value.name + "-" + t.value.name + "-" + g.value[l.value.name].indexOf(a.value), r = null, n = null, i = null, e = null, C = () => {
13
+ setup(p) {
14
+ let v = p, { table: l, field: t, set: g, row: a, modelValue: M } = E(v), o = l.value.name + "-" + t.value.name + "-" + g.value[l.value.name].indexOf(a.value), r = null, n = null, i = null, e = null, C = () => {
16
15
  B(() => {
17
16
  let d = l.value.fields.find((h) => h.name == t.value.control.compareWith), c = a.value[d.name];
18
- n = e.editor.createModel(c, u.value), i = e.editor.createModel(m.value, u.value);
17
+ n = e.editor.createModel(c, m.value), i = e.editor.createModel(u.value, m.value);
19
18
  let _ = document.getElementsByClassName(o)[0];
20
19
  r = e.editor.createDiffEditor(_, { originalEditable: !0 }), r.setModel({
21
20
  original: n,
@@ -26,13 +25,13 @@ const L = /* @__PURE__ */ x({
26
25
  k(async () => {
27
26
  e = await N.getMonaco(), C();
28
27
  });
29
- let m = s(() => M.value || ""), u = s(() => t.value.control.type.toLowerCase());
30
- return (d, c) => p(m) ? (w(), y("div", {
28
+ let u = s(() => M.value || ""), m = s(() => t.value.control.type.toLowerCase());
29
+ return (d, c) => f(u) ? (w(), y("div", {
31
30
  key: 0,
32
- class: V(`text-compare ${p(o)}`)
31
+ class: V(`text-compare ${f(o)}`)
33
32
  }, null, 2)) : b("", !0);
34
33
  }
35
34
  });
36
35
  export {
37
- L as default
36
+ D as default
38
37
  };
@@ -1,7 +1,6 @@
1
1
  import { defineComponent as b, toRefs as k, ref as h, onMounted as w, computed as S, watch as v, openBlock as B, createElementBlock as D, normalizeStyle as R, unref as W, nextTick as z } from "vue";
2
- import { p as L } from "./main-KNkwb0pq.js";
3
- import "./assets/moment-h96o7c8I.js";
4
- const q = /* @__PURE__ */ b({
2
+ import { e as L } from "./main-DymfKjqO.js";
3
+ const j = /* @__PURE__ */ b({
5
4
  __name: "Compare",
6
5
  props: {
7
6
  schema: {},
@@ -13,10 +12,10 @@ const q = /* @__PURE__ */ b({
13
12
  },
14
13
  emits: ["submit", "change", "update:modelValue"],
15
14
  setup(V, { emit: M }) {
16
- let m = M, y = V, { table: E, field: i, set: O, row: u, modelValue: c } = k(y), r = null, f = null, g = null, t = null, l = null, p = h(), s = h(), _ = (e) => {
17
- s.value = C(), z(() => {
15
+ let m = M, y = V, { table: E, field: i, set: O, row: u, modelValue: c } = k(y), r = null, f = null, g = null, t = null, l = null, s = h(), p = h(), _ = (e) => {
16
+ p.value = C(), z(() => {
18
17
  let a = u.value[d.value.name], o = i.value.control.language;
19
- f = e.editor.createModel(c.value, o), g = e.editor.createModel(a, o), r = e.editor.createDiffEditor(p.value, {
18
+ f = e.editor.createModel(c.value, o), g = e.editor.createModel(a, o), r = e.editor.createDiffEditor(s.value, {
20
19
  originalEditable: !0,
21
20
  automaticLayout: !0,
22
21
  renderSideBySide: !i.value.control.inline
@@ -47,12 +46,12 @@ const q = /* @__PURE__ */ b({
47
46
  e != o && l.setValue(e ?? "");
48
47
  }), (e, a) => (B(), D("div", {
49
48
  ref_key: "compareRef",
50
- ref: p,
49
+ ref: s,
51
50
  class: "control-compare",
52
- style: R(W(s))
51
+ style: R(W(p))
53
52
  }, null, 4));
54
53
  }
55
54
  });
56
55
  export {
57
- q as default
56
+ j as default
58
57
  };
@@ -0,0 +1,43 @@
1
+ import { defineComponent as y, toRefs as g, computed as v, unref as l, renderSlot as s, openBlock as b, createElementBlock as C, createElementVNode as a } from "vue";
2
+ import { l as p } from "./main-DymfKjqO.js";
3
+ import { C as k } from "./assets/clipboard-ClN4QccS.js";
4
+ const J = {
5
+ key: 1,
6
+ class: "copy-container"
7
+ }, E = /* @__PURE__ */ y({
8
+ __name: "Copy",
9
+ props: {
10
+ schema: {},
11
+ table: {},
12
+ field: {},
13
+ set: {},
14
+ row: {},
15
+ modelValue: {}
16
+ },
17
+ setup(u) {
18
+ let c = u, { table: w, field: r, set: N, row: S, modelValue: i } = g(c), d = (e) => JSON.stringify(JSON.parse(e), null, 2), f = () => o.value && r.value.control.type == "Json" ? d(o.value).replace(/"/g, "'") : o.value, n = () => {
19
+ let e = new k(".btn-copy", { text: () => f() });
20
+ e.on("success", function(t) {
21
+ p.success("复制成功"), e.destroy();
22
+ }), e.on("error", function(t) {
23
+ p.error("复制失败"), e.destroy();
24
+ });
25
+ }, o = v(() => i.value);
26
+ return (e, t) => l(r).control.copy ? (b(), C("div", J, [
27
+ a("i", {
28
+ class: "btn-copy",
29
+ onClick: t[0] || (t[0] = //@ts-ignore
30
+ (...m) => l(n) && l(n)(...m))
31
+ }, t[1] || (t[1] = [
32
+ a("img", {
33
+ src: "/default/images/clippy.svg",
34
+ alt: "复制文本"
35
+ }, null, -1)
36
+ ])),
37
+ s(e.$slots, "default")
38
+ ])) : s(e.$slots, "default", { key: 0 });
39
+ }
40
+ });
41
+ export {
42
+ E as default
43
+ };
@@ -0,0 +1,49 @@
1
+ import { defineComponent as L, toRefs as b, ref as u, openBlock as i, createBlock as s, KeepAlive as z, resolveDynamicComponent as B, unref as r } from "vue";
2
+ import { S as o, d as N } from "./main-DymfKjqO.js";
3
+ const D = /* @__PURE__ */ L({
4
+ __name: "Custom",
5
+ props: {
6
+ view: {},
7
+ url: {},
8
+ win: {}
9
+ },
10
+ emits: ["loaded", "navigate"],
11
+ setup(d, { expose: c, emit: f }) {
12
+ let a = f, v = d, { url: n, win: m, view: g } = b(v), t = u(), p = u({}), R = (e) => {
13
+ o.triggerClose(t.value, e);
14
+ }, h = (e) => {
15
+ o.triggerResize(t.value, e);
16
+ }, w = (e) => !0, C = (e) => !0, _ = () => {
17
+ o.triggerRefresh(t.value);
18
+ }, x = (e, l) => {
19
+ o.triggerKeyboard(t.value, e, l);
20
+ }, S = (e) => {
21
+ o.triggerSocket(t.value, e);
22
+ }, k = (e) => {
23
+ if (e == null)
24
+ return;
25
+ let l = p.value;
26
+ if (l[n.value] != null) {
27
+ t.value = l[n.value];
28
+ return;
29
+ }
30
+ N.dictionary.containsValue(l, e) || (l[n.value] = e, t.value = e);
31
+ }, y = (e) => {
32
+ a("loaded", e);
33
+ }, K = (e) => {
34
+ a("navigate", e);
35
+ };
36
+ return c({ shouldLoad: w, shouldSpin: C, onRefresh: _, onClose: R, onKeyboard: x, onResize: h, onSocket: S }), (e, l) => (i(), s(z, null, [
37
+ (i(), s(B(r(g)), {
38
+ ref: r(k),
39
+ url: r(n),
40
+ win: r(m),
41
+ onLoaded: r(y),
42
+ onNavigate: r(K)
43
+ }, null, 40, ["url", "win", "onLoaded", "onNavigate"]))
44
+ ], 1024));
45
+ }
46
+ });
47
+ export {
48
+ D as default
49
+ };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./DataExport.vue_vue_type_script_setup_true_lang-2YoqwEmA.js";
1
+ import { _ as f } from "./DataExport.vue_vue_type_script_setup_true_lang-Dzy9UC11.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,7 +1,6 @@
1
- import { defineComponent as q, toRefs as D, ref as f, resolveComponent as r, openBlock as R, createBlock as S, unref as e, isRef as T, withCtx as a, createElementVNode as _, toDisplayString as c, createVNode as n, createTextVNode as v } from "vue";
2
- import { t as m, h as j, U as z, m as A } from "./main-KNkwb0pq.js";
3
- import "./assets/moment-h96o7c8I.js";
4
- const F = { class: "footer-content" }, J = /* @__PURE__ */ q({
1
+ import { defineComponent as D, toRefs as R, ref as f, resolveComponent as r, openBlock as S, createBlock as T, unref as e, isRef as h, withCtx as a, createElementVNode as _, toDisplayString as c, createVNode as n, createTextVNode as v } from "vue";
2
+ import { p as m, _ as j, d as z, l as A } from "./main-DymfKjqO.js";
3
+ const F = { class: "footer-content" }, I = /* @__PURE__ */ D({
5
4
  __name: "DataExport",
6
5
  props: {
7
6
  route: { type: String },
@@ -10,40 +9,40 @@ const F = { class: "footer-content" }, J = /* @__PURE__ */ q({
10
9
  },
11
10
  emits: ["close", "update:modelValue"],
12
11
  setup(V, { emit: x }) {
13
- let C = x, y = V, { route: b, pageCount: u, modelValue: i } = D(y), d = f(!1), o = f({ start: 1, end: 100 }), E = (p, t, s) => {
14
- o.value.end < o.value.start ? s(new Error("结束页不能小于起始页")) : s();
15
- }, U = () => {
16
- C("update:modelValue", !1);
12
+ let C = x, y = V, { route: b, pageCount: p, modelValue: s } = R(y), u = f(!1), o = f({ start: 1, end: 100 }), E = (d, t, i) => {
13
+ o.value.end < o.value.start ? i(new Error("结束页不能小于起始页")) : i();
17
14
  }, k = () => {
18
- d.value = !0, j.get(b.value, o.value).then(({ data: p, message: t }) => {
19
- z.file.save(p.content, p.name), A.success(t);
15
+ C("update:modelValue", !1);
16
+ }, N = () => {
17
+ u.value = !0, j.get(b.value, o.value).then(({ data: d, message: t }) => {
18
+ z.file.save(d.content, d.name), A.success(t);
20
19
  }).finally(() => {
21
- d.value = !1;
20
+ u.value = !1;
22
21
  });
23
22
  };
24
- return (p, t) => {
25
- const s = r("el-input-number"), g = r("el-form-item"), N = r("el-form"), w = r("el-divider"), B = r("el-button"), h = r("el-dialog");
26
- return R(), S(h, {
23
+ return (d, t) => {
24
+ const i = r("el-input-number"), g = r("el-form-item"), w = r("el-form"), B = r("el-divider"), U = r("el-button"), q = r("el-dialog");
25
+ return S(), T(q, {
27
26
  class: "data-export",
28
27
  draggable: "",
29
28
  "destroy-on-close": "",
30
29
  title: e(m)("paging.data_export"),
31
30
  width: "350px",
32
- onClose: e(U),
33
- modelValue: e(i),
34
- "onUpdate:modelValue": t[3] || (t[3] = (l) => T(i) ? i.value = l : i = l)
31
+ onClose: e(k),
32
+ modelValue: e(s),
33
+ "onUpdate:modelValue": t[3] || (t[3] = (l) => h(s) ? s.value = l : s = l)
35
34
  }, {
36
35
  footer: a(() => [
37
36
  _("div", {
38
37
  class: "footer-operation",
39
- onClick: t[2] || (t[2] = (l) => e(o).end = e(u))
40
- }, c(e(m)("paging.total_page", [e(u)])), 1),
38
+ onClick: t[2] || (t[2] = (l) => e(o).end = e(p))
39
+ }, c(e(m)("paging.total_page", [e(p)])), 1),
41
40
  _("div", F, [
42
- n(B, {
41
+ n(U, {
43
42
  type: "primary",
44
43
  plain: "",
45
- loading: e(d),
46
- onClick: e(k)
44
+ loading: e(u),
45
+ onClick: e(N)
47
46
  }, {
48
47
  default: a(() => [
49
48
  v(c(e(m)("paging.export")), 1)
@@ -53,7 +52,7 @@ const F = { class: "footer-content" }, J = /* @__PURE__ */ q({
53
52
  ])
54
53
  ]),
55
54
  default: a(() => [
56
- n(N, {
55
+ n(w, {
57
56
  ref: "export",
58
57
  inline: "",
59
58
  model: e(o)
@@ -64,7 +63,7 @@ const F = { class: "footer-content" }, J = /* @__PURE__ */ q({
64
63
  rules: [{ required: !0, message: "起始页不能为空", trigger: "change" }]
65
64
  }, {
66
65
  default: a(() => [
67
- n(s, {
66
+ n(i, {
68
67
  "controls-position": "right",
69
68
  min: 1,
70
69
  step: 100,
@@ -83,10 +82,10 @@ const F = { class: "footer-content" }, J = /* @__PURE__ */ q({
83
82
  ]
84
83
  }, {
85
84
  default: a(() => [
86
- n(s, {
85
+ n(i, {
87
86
  "controls-position": "right",
88
87
  min: e(o).start,
89
- max: e(u),
88
+ max: e(p),
90
89
  step: 100,
91
90
  modelValue: e(o).end,
92
91
  "onUpdate:modelValue": t[1] || (t[1] = (l) => e(o).end = l)
@@ -97,7 +96,7 @@ const F = { class: "footer-content" }, J = /* @__PURE__ */ q({
97
96
  ]),
98
97
  _: 1
99
98
  }, 8, ["model"]),
100
- n(w)
99
+ n(B)
101
100
  ]),
102
101
  _: 1
103
102
  }, 8, ["title", "onClose", "modelValue"]);
@@ -105,5 +104,5 @@ const F = { class: "footer-content" }, J = /* @__PURE__ */ q({
105
104
  }
106
105
  });
107
106
  export {
108
- J as _
107
+ I as _
109
108
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./DataImport.vue_vue_type_script_setup_true_lang-DsCp0vWo.js";
1
+ import { _ as f } from "./DataImport.vue_vue_type_script_setup_true_lang-D7UdCnBM.js";
2
2
  export {
3
3
  f as default
4
4
  };