halo-pc 1.0.38 → 1.0.40

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-H_clf90b.js → Article-CqtkXVmQ.js} +29 -27
  2. package/dist/{ArticleFooter-BLi4TNA7.js → ArticleFooter-DeJdTtZD.js} +10 -10
  3. package/dist/{Autocomplete-DMm6oI1g.js → Autocomplete-0fxB2_FC.js} +1 -1
  4. package/dist/{Autocomplete-BF9x0F4f.js → Autocomplete-BfhYwZ5G.js} +7 -7
  5. package/dist/{Autocomplete-CcIzTPSr.js → Autocomplete-LQiKcvz1.js} +6 -6
  6. package/dist/{CSharp-CZOchOE-.js → CSharp-BIFRQLaK.js} +1 -1
  7. package/dist/{Calender-BoQV7bhA.js → Calender-DPNTn-S4.js} +4 -4
  8. package/dist/{Callback-79Bw4RwY.js → Callback-Ci5KrWOC.js} +6 -6
  9. package/dist/{Cascader-D1Ou5OSg.js → Cascader-CnOEgPDf.js} +1 -1
  10. package/dist/{Cascader-DMhl98vw.js → Cascader-Vhc81TDV.js} +14 -14
  11. package/dist/{Checkbox-C6t6S7ii.js → Checkbox-CIim5NiB.js} +1 -1
  12. package/dist/{Checkbox-DtrXMDBR.js → Checkbox-D9Sp6ZGQ.js} +7 -7
  13. package/dist/{Code-B8ISTTYK.js → Code-BEjqqeFZ.js} +3 -3
  14. package/dist/Code-BSrEPuXk.js +4 -0
  15. package/dist/{Code-DIGn8Raz.js → Code-Dp1-k8sW.js} +1 -1
  16. package/dist/{Code-DDacfgvl.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-DjA11efs.js → Column-B0ViSver.js} +20 -20
  19. package/dist/{Comment-Ixu0gPk3.js → Comment-tU2wBvGO.js} +4 -2
  20. package/dist/{Compare-NN40QJWm.js → Compare-D7Gz-lE9.js} +1 -1
  21. package/dist/{Compare-C1uq4lgK.js → Compare-DqvGyQWA.js} +5 -5
  22. package/dist/{Copy-BcfSvyWG.js → Copy-Dm1LH9qB.js} +3 -3
  23. package/dist/Custom-CLKAPWEo.js +49 -0
  24. package/dist/{DataExport-DNGgWqsx.js → DataExport-BDftKI0U.js} +1 -1
  25. package/dist/{DataExport.vue_vue_type_script_setup_true_lang-tTTDFXQV.js → DataExport.vue_vue_type_script_setup_true_lang-Dzy9UC11.js} +8 -8
  26. package/dist/{DataImport-CI9eM5T1.js → DataImport-CRYaaQfA.js} +1 -1
  27. package/dist/{DataImport.vue_vue_type_script_setup_true_lang-BCMd1s45.js → DataImport.vue_vue_type_script_setup_true_lang-D7UdCnBM.js} +37 -37
  28. package/dist/{Date-CZGbZKjB.js → Date-DPPiYLWw.js} +4 -4
  29. package/dist/{Date-CGyzi8yX.js → Date-Dlh1_S7p.js} +1 -1
  30. package/dist/{DateRange-MbbkmZ_Y.js → DateRange-BgF_T3ls.js} +7 -7
  31. package/dist/{DateTime-DHrHmRLL.js → DateTime-CNjPeK9t.js} +1 -1
  32. package/dist/{DateTime-DqUOXGWH.js → DateTime-DP-VfmtN.js} +6 -6
  33. package/dist/{DateTimeRange-DgXQkZLx.js → DateTimeRange-DbEpW4nB.js} +5 -5
  34. package/dist/{Daterange-DLHJuRur.js → Daterange-DHVjhrK9.js} +5 -5
  35. package/dist/{Decimal-BUJuuvfr.js → Decimal-BDEWVSsK.js} +1 -1
  36. package/dist/{Delete-BGMk0orl.js → Delete-Bl0GmthL.js} +1 -1
  37. package/dist/{Detail-D4KzWdHQ.js → Detail-BozyhOTt.js} +12 -12
  38. package/dist/{Dictionary-Esd3ERAq.js → Dictionary-CJwZPQz6.js} +1 -1
  39. package/dist/{Email-C9K09hwC.js → Email-D5X1SzuJ.js} +8 -8
  40. package/dist/{File-ai1eYO7v.js → File-DixK0K7p.js} +34 -32
  41. package/dist/Image-BrelhCGo.js +9 -0
  42. package/dist/Index-BeM6hKX9.js +4 -0
  43. package/dist/{Index-DsZPtDYE.js → Index-BkfLyqpm.js} +34 -34
  44. package/dist/{Index-DYHrSEZ5.js → Index-D2FOeoNQ.js} +1 -1
  45. package/dist/Index-D8UVsXwf.js +4 -0
  46. package/dist/{Index-B5o7uf36.js → Index-DbXgnBz6.js} +2 -2
  47. package/dist/Index-FL-dxfFB.js +4 -0
  48. package/dist/Index-fWOqfFkG.js +4 -0
  49. package/dist/{Index-S1btGSGD.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-BjE0VeTO.js → Index.vue_vue_type_script_setup_true_lang-DT7eOyjs.js} +23 -23
  52. package/dist/{Install-D-MgafyF.js → Install-WR3b4IfI.js} +1 -1
  53. package/dist/{Int-CnvfCxgn.js → Int-CWsDtoxE.js} +7 -7
  54. package/dist/{Int-D3RqVcmN.js → Int-GGWiUqO2.js} +4 -4
  55. package/dist/List-kRCsHp6d.js +71 -0
  56. package/dist/{Maintaince-BIgEbjrq.js → Maintaince-BG8MUi3A.js} +1 -1
  57. package/dist/{Markdown-hax8By5O.js → Markdown-nVfQs7kc.js} +1 -1
  58. package/dist/{Month-5lTUiWin.js → Month-B1icZmL4.js} +4 -4
  59. package/dist/{Month-CnVTSnyK.js → Month-CxKMP4kO.js} +1 -1
  60. package/dist/{Month-BDkwv-vc.js → Month-DnYlAi7k.js} +4 -4
  61. package/dist/{Normal-DoE9t7d7.js → Normal-RcqEyIFN.js} +23 -21
  62. package/dist/Paging-DrdGzxeP.js +94 -0
  63. package/dist/{PagingHeader-BFtE6jSy.js → PagingHeader-C8UpM9Kj.js} +27 -25
  64. package/dist/{PagingRow-CSB-kwMz.js → PagingRow-oQWCofO4.js} +8 -8
  65. package/dist/{Racebar-Bc-dDRss.js → Racebar-CvoF2ySW.js} +24 -22
  66. package/dist/{Radio-CMGOtMnx.js → Radio-DhjfkC14.js} +1 -1
  67. package/dist/{Register-8wi0uixs.js → Register-B0Vx60wY.js} +33 -33
  68. package/dist/{RichText-BR4Kvx0J.js → RichText-4wrLw9cy.js} +7 -7
  69. package/dist/{SearchForm-BMTSPce_.js → SearchForm-BHVnQaSL.js} +1 -1
  70. package/dist/{SearchForm.vue_vue_type_style_index_0_lang-wiTxKu-H.js → SearchForm.vue_vue_type_style_index_0_lang-ByICIL6w.js} +35 -35
  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-DAxdpZlO.js → Select-BDoCqD3I.js} +10 -10
  74. package/dist/{Select-MBD4Simw.js → Select-CX4i5KPQ.js} +1 -1
  75. package/dist/{Select-DnFyey0n.js → Select-vgwpegBi.js} +12 -12
  76. package/dist/Single-C3629BdC.js +317 -0
  77. package/dist/{Statistic-CTxHNeof.js → Statistic-Dxa-CZ8G.js} +10 -8
  78. package/dist/{Statistic-BS_DA72m.js → Statistic-WPezAlUn.js} +32 -30
  79. package/dist/{Stock-CtmevqBK.js → Stock-BD5Acf8y.js} +8 -6
  80. package/dist/{Stock-CbucObTu.js → Stock-EPM3j2f_.js} +1 -1
  81. package/dist/{Stock.vue_vue_type_style_index_0_lang-LfsWg1Ps.js → Stock.vue_vue_type_style_index_0_lang-D5RR2MRP.js} +14 -12
  82. package/dist/{Switch-BlXAy9qH.js → Switch-B0XN4K-9.js} +1 -1
  83. package/dist/Table-BklK1hSh.js +317 -0
  84. package/dist/{Table-Da9gan1Y.js → Table-JFdOXuME.js} +42 -40
  85. package/dist/Text-CNtHdodK.js +4 -0
  86. package/dist/{Text-CbZlEVTJ.js → Text-DrJkdxZF.js} +6 -6
  87. package/dist/{Text-C72NLZMt.js → Text-KAuEjP7I.js} +3 -3
  88. package/dist/{Text.vue_vue_type_style_index_0_lang-aMaBccpg.js → Text.vue_vue_type_style_index_0_lang-BJIbv4kF.js} +1 -1
  89. package/dist/{TextLink-SAnZ7BfX.js → TextLink-BnijIoEJ.js} +7 -7
  90. package/dist/{Textarea-DphCUpXp.js → Textarea-3SWLqQvO.js} +1 -1
  91. package/dist/{Time-DjE8yYdK.js → Time-C3qlNZkJ.js} +7 -7
  92. package/dist/{Timeline-D11vjkpZ.js → Timeline-B6hUIYhL.js} +12 -10
  93. package/dist/{Tree-kich05vY.js → Tree-DBvFF4Rj.js} +77 -75
  94. package/dist/{Tree-DK73Ou_F.js → Tree-JexLPBXX.js} +5 -3
  95. package/dist/{TreeNode-Dx6cZ31Z.js → TreeNode-BOWB2WN9.js} +4 -4
  96. package/dist/{Update-D2Plm_AG.js → Update-CDLYYwgj.js} +10 -10
  97. package/dist/{UpdateChild-BXV7QqaP.js → UpdateChild-DUG7pAuO.js} +11 -11
  98. package/dist/{Upload-B87EDynn.js → Upload-B2hbxDsT.js} +49 -49
  99. package/dist/{Upload-CHPjMGFZ.js → Upload-mlk6Y4Po.js} +13 -13
  100. package/dist/{Year-BPFmIiPX.js → Year-BRsJ7b1J.js} +1 -1
  101. package/dist/{Year-C93IJgc8.js → Year-BUF60NmB.js} +4 -4
  102. package/dist/{main-nvsTmKXH.js → main-DymfKjqO.js} +4363 -4204
  103. package/dist/main.js +144 -141
  104. package/esm/coms/commons/Table.vue.d.ts +1 -1
  105. package/esm/coms/drivers/Index.vue.d.ts +2 -2
  106. package/esm/coms/globals/Menu.vue.d.ts +1 -1
  107. package/esm/coms/globals/MenuItem.vue.d.ts +1 -1
  108. package/esm/coms/headers/@types/HeaderProps.d.ts +1 -1
  109. package/esm/coms/headers/Index.vue.d.ts +1 -1
  110. package/esm/coms/layouts/Index.vue.d.ts +3 -3
  111. package/esm/coms/layouts/Side.vue.d.ts +2 -2
  112. package/esm/coms/layouts/Top.vue.d.ts +1 -1
  113. package/esm/coms/lists/Racebar.vue.d.ts +1 -1
  114. package/esm/coms/lists/Statistic.vue.d.ts +1 -1
  115. package/esm/coms/lists/Tree.vue.d.ts +3 -3
  116. package/esm/coms/pages/@types/SchemaProps.d.ts +2 -1
  117. package/esm/coms/pages/Column.vue.d.ts +1 -1
  118. package/esm/coms/pages/Custom.vue.d.ts +6 -6
  119. package/esm/coms/pages/List.vue.d.ts +5 -3
  120. package/esm/coms/pages/Paging.vue.d.ts +5 -3
  121. package/esm/coms/pages/Single.vue.d.ts +3 -3
  122. package/esm/coms/pagings/@types/SearchHeaderProps.d.ts +9 -0
  123. package/esm/coms/pagings/@types/index.d.ts +2 -2
  124. package/esm/coms/pagings/Article.vue.d.ts +2 -2
  125. package/esm/coms/pagings/Index.vue.d.ts +4 -2
  126. package/esm/coms/pagings/SearchForm.vue.d.ts +1 -1
  127. package/esm/coms/pagings/SearchHeader.vue.d.ts +19 -0
  128. package/esm/coms/pagings/Table.vue.d.ts +4 -2
  129. package/esm/coms/partials/@types/PagingHeaderProps.d.ts +2 -1
  130. package/esm/coms/singles/Index.vue.d.ts +1 -1
  131. package/esm/coms/singles/Normal.vue.d.ts +1 -1
  132. package/esm/coms/singles/Table.vue.d.ts +1 -1
  133. package/esm/coms/singles/Tree.vue.d.ts +1 -1
  134. package/package.json +6 -6
  135. package/dist/Code-BMlBvnqa.js +0 -4
  136. package/dist/Code.vue_vue_type_style_index_0_lang-hHYTH50F.js +0 -57
  137. package/dist/Custom-Dn9_vPuD.js +0 -58
  138. package/dist/Image-CfY4G1Yn.js +0 -9
  139. package/dist/Index-CH3nwnPZ.js +0 -4
  140. package/dist/Index-CTjDkp7e.js +0 -4
  141. package/dist/Index-DSZ8wa7U.js +0 -4
  142. package/dist/Index-DVdiF3gr.js +0 -4
  143. package/dist/Index.vue_vue_type_script_setup_true_lang-H8ogKL2I.js +0 -76
  144. package/dist/List-DA4SO_le.js +0 -71
  145. package/dist/Paging-5qsCTRWy.js +0 -92
  146. package/dist/SearchFooter-DOC21dmS.js +0 -4
  147. package/dist/SearchFooter.vue_vue_type_style_index_0_lang-CoJZtP84.js +0 -55
  148. package/dist/Single-D6x6VV_B.js +0 -317
  149. package/dist/Table-CqsfAMh7.js +0 -310
  150. package/dist/Text-CHvsKR9H.js +0 -4
@@ -1,9 +1,9 @@
1
- import { defineComponent as x, toRefs as E, ref as R, onMounted as k, openBlock as u, createElementBlock as z, Fragment as B, createVNode as L, unref as e, createBlock as S, resolveDynamicComponent as D, withCtx as N, createElementVNode as V, toDisplayString as $ } from "vue";
2
- import { n as F, f as I } from "./main-nvsTmKXH.js";
1
+ import { defineComponent as x, toRefs as E, ref as R, onMounted as S, openBlock as u, createElementBlock as k, Fragment as B, createVNode as L, unref as e, createBlock as z, resolveDynamicComponent as D, withCtx as N, createElementVNode as V, toDisplayString as $ } from "vue";
2
+ import { g as F, p as I, S as M } from "./main-DymfKjqO.js";
3
3
  import "element-plus";
4
4
  import "vue-router";
5
5
  import "./assets/intro.js-Cg1adLK7.js";
6
- const M = { class: "not-support" }, J = /* @__PURE__ */ x({
6
+ const j = { class: "not-support" }, K = /* @__PURE__ */ x({
7
7
  __name: "Index",
8
8
  props: {
9
9
  route: {},
@@ -13,48 +13,48 @@ const M = { class: "not-support" }, J = /* @__PURE__ */ x({
13
13
  table: {},
14
14
  layout: {},
15
15
  next: {},
16
- set: {}
16
+ set: {},
17
+ url: {},
18
+ win: {}
17
19
  },
18
20
  emits: ["layout-change", "row-edit", "change", "submit"],
19
21
  setup(s, { expose: i, emit: m }) {
20
- let o = m, d = s, { module: p, schema: c, table: r, layout: a, next: y, set: f } = E(d), l = R(), h = (t) => {
22
+ let o = m, p = s, { module: d, schema: c, table: l, layout: a, next: y, set: h } = E(p), n = R(), g = (t) => {
21
23
  o("layout-change", t);
22
- }, g = (t, n, w) => {
23
- o("row-edit", t, n, w);
24
+ }, f = (t, r, v) => {
25
+ o("row-edit", t, r, v);
24
26
  }, _ = () => {
25
27
  o("change");
26
28
  }, b = (t) => {
27
29
  o("submit", t);
28
- }, v = (t) => {
29
30
  }, C = (t) => {
30
- if (!l.value || !l.value.resize)
31
- return !1;
32
- l.value.resize(t);
31
+ }, w = (t) => {
32
+ M.triggerResize(n.value, t);
33
33
  };
34
- return k(() => {
35
- }), i({ update: v, resize: C }), (t, n) => (u(), z(B, null, [
34
+ return S(() => {
35
+ }), i({ update: C, onResize: w }), (t, r) => (u(), k(B, null, [
36
36
  L(e(F), {
37
37
  layout: e(a),
38
- table: e(r),
39
- onLayoutChange: e(h)
38
+ table: e(l),
39
+ onLayoutChange: e(g)
40
40
  }, null, 8, ["layout", "table", "onLayoutChange"]),
41
- (u(), S(D(`update-${e(a).type.toLowerCase()}`), {
41
+ (u(), z(D(`update-${e(a).type.toLowerCase()}`), {
42
42
  ref_key: "layoutRef",
43
- ref: l,
44
- module: e(p),
43
+ ref: n,
44
+ module: e(d),
45
45
  schema: e(c),
46
- table: e(r),
46
+ table: e(l),
47
47
  layout: e(a),
48
48
  next: e(y),
49
- set: e(f),
49
+ set: e(h),
50
50
  route: t.route,
51
51
  "validate-errors": t.validateErrors,
52
- onRowEdit: e(g),
52
+ onRowEdit: e(f),
53
53
  onChange: e(_),
54
54
  onSubmit: e(b)
55
55
  }, {
56
56
  default: N(() => [
57
- V("div", M, $(e(I)("single.not_supported_layout", e(a).type)), 1)
57
+ V("div", j, $(e(I)("single.not_supported_layout", e(a).type)), 1)
58
58
  ]),
59
59
  _: 1
60
60
  }, 40, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onRowEdit", "onChange", "onSubmit"]))
@@ -62,5 +62,5 @@ const M = { class: "not-support" }, J = /* @__PURE__ */ x({
62
62
  }
63
63
  });
64
64
  export {
65
- J as _
65
+ K as _
66
66
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as k, ref as m, onMounted as C, resolveComponent as r, openBlock as d, createBlock as _, unref as t, withCtx as a, createTextVNode as v, createVNode as o, createElementBlock as c, Fragment as M, renderList as N, createElementVNode as B, toDisplayString as x, createCommentVNode as T } from "vue";
2
- import { v as U, _ as w } from "./main-nvsTmKXH.js";
2
+ import { s as U, _ as w } from "./main-DymfKjqO.js";
3
3
  import "element-plus";
4
4
  import "vue-router";
5
5
  import "./assets/intro.js-Cg1adLK7.js";
@@ -1,6 +1,6 @@
1
- import { defineComponent as f, toRefs as _, computed as h, resolveComponent as b, openBlock as V, createBlock as g, unref as e, withKeys as w, isRef as y } from "vue";
2
- import { f as K, w as k } from "./main-nvsTmKXH.js";
3
- const D = /* @__PURE__ */ f({
1
+ import { defineComponent as f, toRefs as _, computed as h, resolveComponent as b, openBlock as V, createBlock as g, unref as e, withKeys as C, isRef as y } from "vue";
2
+ import { p as K, C as k } from "./main-DymfKjqO.js";
3
+ const N = /* @__PURE__ */ f({
4
4
  __name: "Int",
5
5
  props: {
6
6
  schema: {},
@@ -11,7 +11,7 @@ const D = /* @__PURE__ */ f({
11
11
  },
12
12
  emits: ["change", "submit", "update:modelValue"],
13
13
  setup(m, { emit: u }) {
14
- let l = u, s = m, { table: p, field: r, searchData: x, modelValue: i } = _(s), d = () => {
14
+ let l = u, p = m, { table: s, field: r, searchData: x, modelValue: i } = _(p), d = () => {
15
15
  l("submit");
16
16
  }, o = h({
17
17
  get() {
@@ -24,9 +24,9 @@ const D = /* @__PURE__ */ f({
24
24
  return (t, n) => {
25
25
  const c = b("el-input-number");
26
26
  return V(), g(c, {
27
- placeholder: e(K)("common.please_input") + e(k)(e(p).name, e(r).name),
27
+ placeholder: e(K)("common.please_input") + e(k)(e(s).name, e(r).name),
28
28
  "controls-position": "right",
29
- onKeyup: w(e(d), ["enter", "native"]),
29
+ onKeyup: C(e(d), ["enter", "native"]),
30
30
  modelValue: e(o),
31
31
  "onUpdate:modelValue": n[0] || (n[0] = (a) => y(o) ? o.value = a : o = a)
32
32
  }, null, 8, ["placeholder", "onKeyup", "modelValue"]);
@@ -34,5 +34,5 @@ const D = /* @__PURE__ */ f({
34
34
  }
35
35
  });
36
36
  export {
37
- D as default
37
+ N as default
38
38
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as c, toRefs as f, computed as _, resolveComponent as V, openBlock as g, createBlock as h, unref as e, withKeys as v, isRef as y } from "vue";
2
- import { d as x, h as K } from "./main-nvsTmKXH.js";
2
+ import { d as K, E as k } from "./main-DymfKjqO.js";
3
3
  const C = /* @__PURE__ */ c({
4
4
  __name: "Int",
5
5
  props: {
@@ -12,11 +12,11 @@ const C = /* @__PURE__ */ c({
12
12
  },
13
13
  emits: ["submit", "change", "update:modelValue"],
14
14
  setup(r, { emit: i }) {
15
- let l = i, s = r, { table: d, field: n, set: k, modelValue: a } = f(s), p = () => {
15
+ let l = i, s = r, { table: d, field: n, set: w, modelValue: a } = f(s), p = () => {
16
16
  l("submit");
17
17
  }, t = _({
18
18
  get() {
19
- if (x.string.isNumber(a.value))
19
+ if (K.string.isNumber(a.value))
20
20
  return a.value;
21
21
  },
22
22
  set(o) {
@@ -26,7 +26,7 @@ const C = /* @__PURE__ */ c({
26
26
  return (o, u) => {
27
27
  const b = V("el-input-number");
28
28
  return g(), h(b, {
29
- "aria-label": e(K)(e(d).name, e(n).name),
29
+ "aria-label": e(k)(e(d).name, e(n).name),
30
30
  "controls-position": "right",
31
31
  disabled: e(n).control.readonly,
32
32
  onKeyup: v(e(p), ["enter", "native"]),
@@ -0,0 +1,71 @@
1
+ import { defineComponent as K, toRefs as E, ref as o, watch as F, openBlock as T, createBlock as U, resolveDynamicComponent as V, unref as t, withCtx as j, createElementVNode as A, toDisplayString as G } from "vue";
2
+ import { d as n, $ as H, B as I, m, w as J, S as d } from "./main-DymfKjqO.js";
3
+ const M = { class: "not-support" }, X = /* @__PURE__ */ K({
4
+ __name: "List",
5
+ props: {
6
+ base: {},
7
+ route: {},
8
+ url: {},
9
+ win: {}
10
+ },
11
+ emits: ["load", "navigate"],
12
+ setup(b, { expose: P, emit: R }) {
13
+ let v = R, w = b, { url: p, base: g, route: u } = E(w), y = o(), s = o(), r = o(), f = o(), S = o(), i = o(), c = o(), k = (e) => {
14
+ let l = n.url.getPath(e), a = n.url.getPath(p.value);
15
+ return l != a;
16
+ }, q = (e) => {
17
+ let l = n.url.getPath(p.value), a = n.url.getPath(e);
18
+ return l != a;
19
+ }, x = (e) => {
20
+ var a;
21
+ let l = H(e.module.type, e.module.name);
22
+ I.setTitle(l, e.module.env), y.value = e.module, s.value = m.expandSchema(e.schema, e.set), r.value = (a = s.value) == null ? void 0 : a[0], f.value = e.next, S.value = m.expandSet(e.schema, e.set), c.value = m.getConditionForm(s.value, u.value.query.condition);
23
+ }, h = (e = null, l = null) => {
24
+ let a = e ?? u.value.query, z = n.url.getUrl(u.value.path, a);
25
+ v("load", z, !1, l);
26
+ }, C = (e) => {
27
+ h(null, e);
28
+ }, B = (e) => {
29
+ v("navigate", e);
30
+ }, D = async (e) => {
31
+ let l = u.value.query;
32
+ l.condition = J.encode(c.value), h(l, e);
33
+ }, _ = () => {
34
+ h();
35
+ }, L = (e, l) => {
36
+ d.triggerKeyboard(i.value, e, l);
37
+ }, N = (e) => {
38
+ d.triggerSocket(i.value, e);
39
+ }, $ = (e) => {
40
+ d.triggerResize(i.value, e);
41
+ };
42
+ return (() => {
43
+ x(g.value.data);
44
+ })(), F(() => g.value, (e) => {
45
+ x(e.data);
46
+ }), P({ shouldLoad: k, shouldSpin: q, onRefresh: _, onKeyboard: L, onSocket: N, onResize: $ }), (e, l) => (T(), U(V(`list-${t(r).layouts[0].type.toLowerCase()}`), {
47
+ ref_key: "listRef",
48
+ ref: i,
49
+ route: t(u),
50
+ module: t(y),
51
+ schema: t(s),
52
+ table: t(r),
53
+ layout: t(r).layouts[0],
54
+ next: t(f),
55
+ set: t(S),
56
+ "search-data": t(c),
57
+ onSucceed: t(C),
58
+ onSearch: t(D),
59
+ onNavigate: t(B),
60
+ onRefresh: t(_)
61
+ }, {
62
+ default: j(() => [
63
+ A("div", M, "未支持的列表布局方式:" + G(t(r).layouts[0].type), 1)
64
+ ]),
65
+ _: 1
66
+ }, 40, ["route", "module", "schema", "table", "layout", "next", "set", "search-data", "onSucceed", "onSearch", "onNavigate", "onRefresh"]));
67
+ }
68
+ });
69
+ export {
70
+ X as default
71
+ };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as n, openBlock as o, createElementBlock as s, createElementVNode as t, toDisplayString as i, unref as r } from "vue";
2
- import { Q as a } from "./main-nvsTmKXH.js";
2
+ import { X as a } from "./main-DymfKjqO.js";
3
3
  const c = { class: "maintenance" }, l = { class: "description" }, f = /* @__PURE__ */ n({
4
4
  __name: "Maintaince",
5
5
  setup(m) {
@@ -10,7 +10,7 @@ const h = /* @__PURE__ */ u({
10
10
  modelValue: {}
11
11
  },
12
12
  setup(a) {
13
- let r = i(() => import("./Text-CHvsKR9H.js")), s = a, { schema: m, table: n, field: d, set: f, row: p, modelValue: l } = c(s);
13
+ let r = i(() => import("./Text-CNtHdodK.js")), s = a, { schema: m, table: n, field: d, set: f, row: p, modelValue: l } = c(s);
14
14
  return (x, o) => (w(), V(e(r), {
15
15
  schema: e(m),
16
16
  table: e(n),
@@ -1,5 +1,5 @@
1
- import { defineComponent as i, toRefs as f, computed as h, resolveComponent as _, openBlock as V, createBlock as k, unref as e, isRef as b } from "vue";
2
- import { k as Y } from "./main-nvsTmKXH.js";
1
+ import { defineComponent as i, toRefs as f, computed as h, resolveComponent as _, openBlock as V, createBlock as b, unref as e, isRef as k } from "vue";
2
+ import { T as Y } from "./main-DymfKjqO.js";
3
3
  const x = /* @__PURE__ */ i({
4
4
  __name: "Month",
5
5
  props: {
@@ -21,13 +21,13 @@ const x = /* @__PURE__ */ i({
21
21
  });
22
22
  return (t, m) => {
23
23
  const c = _("el-date-picker");
24
- return V(), k(c, {
24
+ return V(), b(c, {
25
25
  type: "month",
26
26
  placeholder: e(Y)(e(u).name, e(o).name),
27
27
  "value-format": "YYYY-MM",
28
28
  disabled: e(o).control.readonly,
29
29
  modelValue: e(l),
30
- "onUpdate:modelValue": m[0] || (m[0] = (d) => b(l) ? l.value = d : l = d)
30
+ "onUpdate:modelValue": m[0] || (m[0] = (d) => k(l) ? l.value = d : l = d)
31
31
  }, null, 8, ["placeholder", "disabled", "modelValue"]);
32
32
  };
33
33
  }
@@ -10,7 +10,7 @@ const _ = /* @__PURE__ */ u({
10
10
  modelValue: {}
11
11
  },
12
12
  setup(a) {
13
- let s = i(() => import("./Text-CHvsKR9H.js")), m = a, { schema: n, table: r, field: d, set: f, row: p, modelValue: l } = c(m);
13
+ let s = i(() => import("./Text-CNtHdodK.js")), m = a, { schema: n, table: r, field: d, set: f, row: p, modelValue: l } = c(m);
14
14
  return (w, t) => (V(), b(e(s), {
15
15
  schema: e(n),
16
16
  table: e(r),
@@ -1,5 +1,5 @@
1
- import { defineComponent as i, toRefs as f, computed as _, resolveComponent as V, openBlock as h, createBlock as k, unref as e, isRef as b } from "vue";
2
- import { k as Y } from "./main-nvsTmKXH.js";
1
+ import { defineComponent as i, toRefs as f, computed as _, resolveComponent as V, openBlock as h, createBlock as b, unref as e, isRef as k } from "vue";
2
+ import { T as Y } from "./main-DymfKjqO.js";
3
3
  const x = /* @__PURE__ */ i({
4
4
  __name: "Month",
5
5
  props: {
@@ -22,13 +22,13 @@ const x = /* @__PURE__ */ i({
22
22
  });
23
23
  return (t, m) => {
24
24
  const c = V("el-date-picker");
25
- return h(), k(c, {
25
+ return h(), b(c, {
26
26
  type: "month",
27
27
  placeholder: e(Y)(e(u).name, e(a).name),
28
28
  "value-format": "YYYY-MM",
29
29
  disabled: e(a).control.readonly,
30
30
  modelValue: e(l),
31
- "onUpdate:modelValue": m[0] || (m[0] = (d) => b(l) ? l.value = d : l = d)
31
+ "onUpdate:modelValue": m[0] || (m[0] = (d) => k(l) ? l.value = d : l = d)
32
32
  }, null, 8, ["placeholder", "disabled", "modelValue"]);
33
33
  };
34
34
  }
@@ -1,5 +1,5 @@
1
- import { defineComponent as he, toRefs as fe, ref as x, onMounted as ge, computed as E, watch as B, resolveComponent as _, openBlock as n, createElementBlock as d, normalizeClass as K, unref as e, createBlock as g, withCtx as m, Fragment as R, renderList as S, createVNode as C, createCommentVNode as V, toDisplayString as I, createElementVNode as L, normalizeStyle as _e, createTextVNode as be, resolveDynamicComponent as ye } from "vue";
2
- import { o as P, m as F, c as Ce, d as Q, e as U, f as ke, w as we, F as xe } from "./main-nvsTmKXH.js";
1
+ import { defineComponent as he, toRefs as fe, ref as w, onMounted as ge, computed as E, watch as B, resolveComponent as _, openBlock as n, createElementBlock as d, normalizeClass as K, unref as e, createBlock as g, withCtx as m, Fragment as R, renderList as S, createVNode as C, createCommentVNode as V, toDisplayString as I, createElementVNode as L, normalizeStyle as _e, createTextVNode as be, resolveDynamicComponent as ye } from "vue";
2
+ import { h as P, m as D, c as Ce, d as Q, b as U, p as ke, C as xe, D as we } from "./main-DymfKjqO.js";
3
3
  import "vue-router";
4
4
  import "./assets/intro.js-Cg1adLK7.js";
5
5
  const Re = {
@@ -12,7 +12,7 @@ const Re = {
12
12
  }, $e = {
13
13
  key: 0,
14
14
  class: "normal-selection"
15
- }, ze = { class: "normal-content" }, De = /* @__PURE__ */ he({
15
+ }, ze = { class: "normal-content" }, Fe = /* @__PURE__ */ he({
16
16
  __name: "Normal",
17
17
  props: {
18
18
  route: {},
@@ -22,17 +22,19 @@ const Re = {
22
22
  table: {},
23
23
  layout: {},
24
24
  next: {},
25
- set: {}
25
+ set: {},
26
+ url: {},
27
+ win: {}
26
28
  },
27
29
  emits: ["change", "submit"],
28
30
  setup(X, { expose: Y, emit: Z }) {
29
- let M = Z, ee = X, { module: O, set: c, schema: N, table: t, layout: i, validateErrors: A } = fe(ee), p = x({ page: 1, count: c.value[t.value.name].length }), k = x([]), b = x(), T = x([]), j = x(), le = (l) => {
31
+ let M = Z, ee = X, { module: O, set: c, schema: N, table: t, layout: i, validateErrors: A } = fe(ee), p = w({ page: 1, count: c.value[t.value.name].length }), k = w([]), b = w(), T = w([]), j = w(), le = (l) => {
30
32
  T.value.push(l);
31
33
  }, te = () => {
32
34
  p.value.page = 1;
33
35
  }, ae = () => {
34
36
  b.value = G(t.value);
35
- let l = F.getDefaultRow(t.value);
37
+ let l = D.getDefaultRow(t.value);
36
38
  c.value[t.value.name].push(l);
37
39
  }, ne = () => {
38
40
  let l = c.value[t.value.name];
@@ -42,7 +44,7 @@ const Re = {
42
44
  a.model && (a.model = !1);
43
45
  });
44
46
  }, W = (l) => c.value[t.value.name].indexOf(l), oe = (l, a, o, u, v) => {
45
- F.updateTooltip(o, u, v), M("change", l, a, o, u, v);
47
+ D.updateTooltip(o, u, v), M("change", l, a, o, u, v);
46
48
  }, ue = (l, a) => {
47
49
  l ? k.value.push(a) : Q.array.remove(k.value, a);
48
50
  }, re = (l) => {
@@ -61,14 +63,14 @@ const Re = {
61
63
  }, H = (l) => {
62
64
  b.value = G(l);
63
65
  }, me = () => {
64
- D();
66
+ F();
65
67
  }, ce = (l) => {
66
68
  H(l.schema[0]);
67
- }, D = () => {
69
+ }, F = () => {
68
70
  let l = j.value.clientWidth;
69
71
  i.value.column = Math.ceil(l / 500);
70
72
  }, ie = () => {
71
- D(), H(t.value);
73
+ F(), H(t.value);
72
74
  };
73
75
  ge(() => {
74
76
  ie();
@@ -78,8 +80,8 @@ const Re = {
78
80
  return c.value[t.value.name];
79
81
  let l = b.value[t.value.name], a = (p.value.page - 1) * i.value.size, o = p.value.page * i.value.size - 1, u = c.value[t.value.name].filter(($) => {
80
82
  let f = !0;
81
- for (let w = 0; w < t.value.search.length; w++) {
82
- let y = t.value.search[w], s = $[y.name], h = l[y.name];
83
+ for (let x = 0; x < t.value.search.length; x++) {
84
+ let y = t.value.search[x], s = $[y.name], h = l[y.name];
83
85
  if (h) {
84
86
  if (y.search == "Equals") {
85
87
  if (s !== h) {
@@ -95,7 +97,7 @@ const Re = {
95
97
  return f;
96
98
  });
97
99
  return p.value.count = u.length, u.filter(($, f) => f >= a && f <= o);
98
- }), ve = E(() => F.getLines(t.value.show, i.value.column, (a) => a, (a) => a.colspan)), de = E(() => {
100
+ }), ve = E(() => D.getLines(t.value.show, i.value.column, (a) => a, (a) => a.colspan)), de = E(() => {
99
101
  let l = t.value.main ? `/${t.value.name}` : `/${N.value[0].name}/${t.value.name}`;
100
102
  return Ce.getComponent(`${l}/update-child`, "partial", "update-child");
101
103
  });
@@ -106,9 +108,9 @@ const Re = {
106
108
  let o = l.find((u) => u.table == t.value.name);
107
109
  o != null && (p.value.page = Math.ceil((o.index + 1) / i.value.size));
108
110
  }), B(t, (l, a) => {
109
- D();
110
- }), Y({ resize: me, update: ce }), (l, a) => {
111
- const o = _("el-form-item"), u = _("el-col"), v = _("el-row"), $ = _("el-form"), f = _("el-checkbox"), w = _("el-popover"), y = _("el-pagination");
111
+ F();
112
+ }), Y({ onResize: me, update: ce }), (l, a) => {
113
+ const o = _("el-form-item"), u = _("el-col"), v = _("el-row"), $ = _("el-form"), f = _("el-checkbox"), x = _("el-popover"), y = _("el-pagination");
112
114
  return n(), d("div", {
113
115
  ref_key: "normalRef",
114
116
  ref: j,
@@ -176,14 +178,14 @@ const Re = {
176
178
  C(o, {
177
179
  style: _e(e(P).getStyle(r, e(O).type, e(i).type)),
178
180
  label: r.label,
179
- rules: e(F).getRules(e(A), e(t), r, e(W)(s)),
181
+ rules: e(D).getRules(e(A), e(t), r, e(W)(s)),
180
182
  prop: `[${e(t).name}][${e(W)(s)}][${r.name}]`
181
183
  }, {
182
184
  label: m(() => {
183
185
  var z;
184
186
  return [
185
- be(I(e(we)(e(t).name, r.name)) + " ", 1),
186
- (z = r.control.tooltip) != null && z.content ? (n(), g(w, {
187
+ be(I(e(xe)(e(t).name, r.name)) + " ", 1),
188
+ (z = r.control.tooltip) != null && z.content ? (n(), g(x, {
187
189
  key: 0,
188
190
  trigger: "hover",
189
191
  placement: "top",
@@ -222,7 +224,7 @@ const Re = {
222
224
  ])
223
225
  ], 2))), 256))
224
226
  ], 512)) : (n(), d("div", Re, I(e(ke)("common.no_data")), 1)),
225
- e(t).main ? V("", !0) : (n(), g(e(xe), { key: 3 }, {
227
+ e(t).main ? V("", !0) : (n(), g(e(we), { key: 3 }, {
226
228
  left: m(() => [
227
229
  (n(), g(ye(e(de)), {
228
230
  module: e(O),
@@ -250,5 +252,5 @@ const Re = {
250
252
  }
251
253
  });
252
254
  export {
253
- De as default
255
+ Fe as default
254
256
  };
@@ -0,0 +1,94 @@
1
+ import { defineComponent as E, toRefs as G, ref as r, onMounted as H, watch as I, unref as t, openBlock as Q, createBlock as W, createCommentVNode as X } from "vue";
2
+ import { d as o, $ as Y, B as Z, m as d, w as b, S as p } from "./main-DymfKjqO.js";
3
+ import { _ as ee } from "./Index.vue_vue_type_script_setup_true_lang-ByxBNAdg.js";
4
+ const ue = /* @__PURE__ */ E({
5
+ __name: "Paging",
6
+ props: {
7
+ base: {},
8
+ route: {},
9
+ url: {},
10
+ win: {}
11
+ },
12
+ emits: ["navigate", "load"],
13
+ setup(w, { expose: P, emit: k }) {
14
+ let y = k, z = w, { url: h, win: R, base: f, route: u } = G(z), S = r(), i = r(), g = r(), c = r(), x = r(), C = r(), m = r(), v = r(), B = (e) => !0, N = (e) => {
15
+ let l = o.url.getPath(h.value), a = o.url.getPath(e);
16
+ return l != a;
17
+ }, L = (e = null) => {
18
+ U(e);
19
+ }, $ = () => {
20
+ }, q = (e) => {
21
+ var a;
22
+ let l = Y(e.module.type, e.module.name);
23
+ Z.setTitle(l, e.module.env), S.value = e.module, x.value = e.next, C.value = d.expandSet(e.schema, e.set), i.value = d.expandSchema(e.schema, e.set), g.value = (a = i.value) == null ? void 0 : a[0], c.value = g.value.layouts[0], m.value = d.getConditionForm(i.value, u.value.query.condition);
24
+ }, _ = (e = null, l = null) => {
25
+ let a = e ?? u.value.query, n = o.url.getUrl(u.value.path, a);
26
+ y("load", n, !1, (A) => {
27
+ l && l(A);
28
+ });
29
+ }, s = (e, l) => {
30
+ y("navigate", e, l);
31
+ }, D = async (e) => {
32
+ let l = u.value.query;
33
+ l.page = 1;
34
+ let a = o.object.pure(m.value);
35
+ l.condition = b.encode(a);
36
+ let n = o.url.getUrl(u.value.path, l);
37
+ n == h.value ? _(l, e) : s(n, e);
38
+ }, K = (e, l) => {
39
+ let a = u.value.query;
40
+ a.order_by = b.encode(JSON.stringify(e));
41
+ let n = o.url.getUrl(u.value.path, a);
42
+ s(n, l);
43
+ }, j = (e, l = null) => {
44
+ let a = u.value.query;
45
+ a.page = e;
46
+ let n = o.url.getUrl(u.value.path, a);
47
+ s(n, l);
48
+ }, F = (e, l = null) => {
49
+ let a = u.value.query;
50
+ a.size = e;
51
+ let n = o.url.getUrl(u.value.path, a);
52
+ s(n, l);
53
+ }, J = (e) => {
54
+ c.value = g.value.layouts.find((l) => l.type == e);
55
+ }, M = () => {
56
+ q(f.value.data);
57
+ }, U = (e = null) => _(null, e), O = (e, l) => {
58
+ p.triggerKeyboard(v.value, e, l);
59
+ }, T = (e) => {
60
+ p.triggerSocket(v.value, e);
61
+ }, V = (e) => {
62
+ p.triggerResize(v.value, e);
63
+ };
64
+ return H(async () => {
65
+ M();
66
+ }), I(() => f.value, (e) => {
67
+ q(e.data);
68
+ }), P({ shouldLoad: B, shouldSpin: N, onRefresh: U, onKeyboard: O, onSocket: T, onResize: V }), (e, l) => t(c) ? (Q(), W(ee, {
69
+ key: 0,
70
+ ref_key: "pagingRef",
71
+ ref: v,
72
+ url: t(h),
73
+ win: t(R),
74
+ module: t(S),
75
+ next: t(x),
76
+ set: t(C),
77
+ schema: t(i),
78
+ table: t(g),
79
+ layout: t(c),
80
+ "search-data": t(m),
81
+ onNavigate: t(s),
82
+ onSort: t(K),
83
+ onSearch: t(D),
84
+ onPageChange: t(j),
85
+ onSizeChange: t(F),
86
+ onLayoutChange: t(J),
87
+ onSucceed: t(L),
88
+ onClose: t($)
89
+ }, null, 8, ["url", "win", "module", "next", "set", "schema", "table", "layout", "search-data", "onNavigate", "onSort", "onSearch", "onPageChange", "onSizeChange", "onLayoutChange", "onSucceed", "onClose"])) : X("", !0);
90
+ }
91
+ });
92
+ export {
93
+ ue as default
94
+ };