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
@@ -1,7 +1,6 @@
1
- import { defineComponent as F, toRefs as R, ref as T, onMounted as B, openBlock as E, createBlock as G, unref as f, withCtx as P, createElementVNode as A, createTextVNode as V, toDisplayString as b } from "vue";
2
- import { C as O, p as K, _ as N, U } from "./main-KNkwb0pq.js";
3
- import "./assets/moment-h96o7c8I.js";
4
- const J = /* @__PURE__ */ F({
1
+ import { defineComponent as _, toRefs as R, ref as T, onMounted as B, openBlock as E, createBlock as G, unref as f, withCtx as P, createElementVNode as A, createTextVNode as V, toDisplayString as b } from "vue";
2
+ import { n as z, e as O, z as K, d as N } from "./main-DymfKjqO.js";
3
+ const Q = /* @__PURE__ */ _({
5
4
  __name: "Stock",
6
5
  props: {
7
6
  searchData: {},
@@ -11,21 +10,23 @@ const J = /* @__PURE__ */ F({
11
10
  table: {},
12
11
  layout: {},
13
12
  next: {},
14
- set: {}
13
+ set: {},
14
+ url: {},
15
+ win: {}
15
16
  },
16
17
  setup(k) {
17
- let L = k, { module: j, schema: z, table: v, layout: n, next: W, set: h } = R(L), p = null, c = null, y = "#04aa4e", x = "#ff5945", w = T(), u = { history: null, week: null, month: null }, { app: S } = O.sys, M = (t) => {
18
- let o = U.array.orderBy(t, (i) => i[n.value.time], !1), e = [], l = [], r = [];
18
+ let L = k, { module: j, schema: W, table: v, layout: n, next: q, set: h } = R(L), y = null, c = null, p = "#04aa4e", x = "#ff5945", w = T(), u = { history: null, week: null, month: null }, { app: S } = z.sys, M = (t) => {
19
+ let o = N.array.orderBy(t, (i) => i[n.value.time], !1), e = [], l = [], r = [];
19
20
  for (let i = 0; i < o.length; i++) {
20
21
  let a = o[i];
21
22
  e.push(a[n.value.time]);
22
23
  let d = parseFloat(a[n.value.open]), s = parseFloat(a[n.value.close]);
23
24
  l.push([d, s, parseFloat(a[n.value.low]), parseFloat(a[n.value.high])]);
24
- let C = {
25
+ let F = {
25
26
  value: parseFloat(a[n.value.volumn]),
26
- itemStyle: { color: s > d ? y : x }
27
+ itemStyle: { color: s > d ? p : x }
27
28
  };
28
- r.push(C);
29
+ r.push(F);
29
30
  }
30
31
  return { times: e, values: l, volumes: r };
31
32
  }, m = (t, o) => {
@@ -41,7 +42,7 @@ const J = /* @__PURE__ */ F({
41
42
  e.push(i / o);
42
43
  }
43
44
  return e;
44
- }, _ = (t) => {
45
+ }, I = (t) => {
45
46
  let o = n.value.trade, e = {
46
47
  animation: !1,
47
48
  //关闭动画,提升性能
@@ -146,9 +147,9 @@ const J = /* @__PURE__ */ F({
146
147
  //网格索引,表示使用第2个网格的配置
147
148
  data: t.values,
148
149
  itemStyle: {
149
- color: y,
150
+ color: p,
150
151
  color0: x,
151
- borderColor: y,
152
+ borderColor: p,
152
153
  borderColor0: x
153
154
  },
154
155
  markPoint: {
@@ -266,18 +267,18 @@ const J = /* @__PURE__ */ F({
266
267
  let r = Math.max(e[0] - e[2], e[3] - e[0]) / e[0];
267
268
  o += r;
268
269
  }), o / t.length * 100;
269
- }, I = (t) => {
270
- let o = _(t);
271
- p || (p = c.init(w.value)), p.setOption(o);
270
+ }, Z = (t) => {
271
+ let o = I(t);
272
+ y || (y = c.init(w.value)), y.setOption(o);
272
273
  let e = t.values, l = e.reverse();
273
274
  u.history = g(e), u.week = g(l.slice(0, 7)), u.month = g(l.slice(0, 30));
274
- }, Z = () => {
275
+ }, C = () => {
275
276
  let t = h.value[v.value.name];
276
- t.length > 0 && I(M(t));
277
+ t.length > 0 && Z(M(t));
277
278
  };
278
279
  return B(async () => {
279
- c = await K.getECharts(), Z();
280
- }), (t, o) => (E(), G(f(N), null, {
280
+ c = await O.getECharts(), C();
281
+ }), (t, o) => (E(), G(f(K), null, {
281
282
  default: P(() => [
282
283
  A("div", {
283
284
  ref_key: "chartRef",
@@ -293,5 +294,5 @@ const J = /* @__PURE__ */ F({
293
294
  }
294
295
  });
295
296
  export {
296
- J as _
297
+ Q as _
297
298
  };
@@ -10,7 +10,7 @@ const x = /* @__PURE__ */ u({
10
10
  modelValue: { type: [String, Number, Boolean] }
11
11
  },
12
12
  setup(a) {
13
- let r = f(() => import("./Dictionary-Ck_02mWa.js")), n = a, { schema: m, table: s, field: i, set: d, row: p, modelValue: t } = c(n);
13
+ let r = f(() => import("./Dictionary-CJwZPQz6.js")), n = a, { schema: m, table: s, field: i, set: d, row: p, modelValue: t } = c(n);
14
14
  return (h, l) => (b(), w(e(r), {
15
15
  schema: e(m),
16
16
  table: e(s),
@@ -1,16 +1,15 @@
1
- import { defineComponent as Be, toRefs as He, ref as i, onMounted as Ue, nextTick as j, computed as ae, resolveComponent as k, openBlock as f, createElementBlock as H, createVNode as v, unref as e, isRef as x, normalizeClass as Te, withCtx as h, createTextVNode as le, toDisplayString as S, Fragment as De, renderList as Ee, createBlock as z, createCommentVNode as $, createElementVNode as U, resolveDynamicComponent as Le } from "vue";
2
- import { U as b, f as Ne, I as Me, t as A, j as je, k as Ae, w as Ke, J as Pe, L as oe, b as qe, S as Ie, h as Oe, m as Fe, c as Je, a as Ge } from "./main-KNkwb0pq.js";
3
- import "./assets/moment-h96o7c8I.js";
4
- import { _ as Qe } from "./SearchForm.vue_vue_type_style_index_0_lang-BHZrYG6_.js";
5
- import { _ as Xe } from "./DataImport.vue_vue_type_script_setup_true_lang-DsCp0vWo.js";
6
- import { _ as Ye } from "./DataExport.vue_vue_type_script_setup_true_lang-2YoqwEmA.js";
1
+ import { defineComponent as Ue, toRefs as Ee, ref as u, onMounted as Ne, nextTick as A, computed as oe, resolveComponent as k, openBlock as h, createElementBlock as D, createVNode as v, unref as e, isRef as x, normalizeClass as Ke, withCtx as f, createTextVNode as ne, toDisplayString as S, Fragment as Le, renderList as Me, createBlock as z, createCommentVNode as $, createElementVNode as T, resolveDynamicComponent as Ae } from "vue";
2
+ import { x as Pe, d as b, c as je, y as qe, p as P, C as Oe, b as Fe, h as Ge, D as Ie, G as re, a as Je, _ as Qe, l as Xe, $ as Ye, S as j } from "./main-DymfKjqO.js";
3
+ import { _ as Ze } from "./SearchForm.vue_vue_type_style_index_0_lang-ByICIL6w.js";
4
+ import { _ as et } from "./DataImport.vue_vue_type_script_setup_true_lang-D7UdCnBM.js";
5
+ import { _ as tt } from "./DataExport.vue_vue_type_script_setup_true_lang-Dzy9UC11.js";
7
6
  import "vue-router";
8
7
  import "./assets/intro.js-Cg1adLK7.js";
9
- import { _ as Ze } from "./SearchFooter.vue_vue_type_style_index_0_lang-fRS96yRX.js";
10
- const et = {
8
+ import { _ as at } from "./SearchHeader.vue_vue_type_style_index_0_lang-CHAg97-Y.js";
9
+ const lt = {
11
10
  key: 0,
12
11
  class: "required"
13
- }, tt = ["onMouseenter"], at = { class: "el-drawer__title" }, lt = { key: 0 }, ot = ["href"], vt = /* @__PURE__ */ Be({
12
+ }, ot = ["onMouseenter"], nt = { class: "el-drawer__title" }, rt = { key: 0 }, st = ["href"], ft = /* @__PURE__ */ Ue({
14
13
  __name: "Table",
15
14
  props: {
16
15
  searchData: {},
@@ -19,47 +18,49 @@ const et = {
19
18
  table: {},
20
19
  layout: {},
21
20
  next: {},
22
- set: {}
21
+ set: {},
22
+ url: {},
23
+ win: {}
23
24
  },
24
25
  emits: ["search", "navigate", "sort", "page-change", "size-change", "succeed", "close"],
25
- setup(ne, { expose: re, emit: se }) {
26
- let w = se, ie = ne, { module: ue, schema: T, table: r, layout: u, next: p, set: C, searchData: K } = He(ie), D = i([]), V = i(), E = i(), L = i(), P = i(), q = i(), I = i(), m = i(!1), g = i(!1), O = i(), F = i("120px"), J = i({}), y = i({ layout: "prev, pager, next", count: 5, sizes: [20, 50, 200, 500, 2e3] }), W = i(), n = i({ title: null, env: null, page: null, url: null, row: null, visible: !1, appendToBody: !1 }), de = new Ie(), pe = (t) => {
26
+ setup(se, { expose: ue, emit: ie }) {
27
+ let w = ie, de = se, { url: pe, win: me, module: q, schema: H, table: r, layout: i, next: p, set: C, searchData: O } = Ee(de), U = u([]), V = u(), E = u(), N = u(), K = u(), F = u(), G = u(), m = u(!1), g = u(!1), I = u(), J = u("120px"), Q = u({}), y = u({ layout: "prev, pager, next", count: 5, sizes: [20, 50, 200, 500, 2e3] }), W = u(), n = u({ title: null, env: null, page: null, url: null, row: null, visible: !1, appendToBody: !1 }), ge = new Pe(), ce = (t) => {
27
28
  R("insert", null, t);
28
- }, me = (t, a) => {
29
+ }, ve = (t, a) => {
29
30
  R("detail", t, a);
30
- }, ge = (t, a) => {
31
+ }, he = (t, a) => {
31
32
  R("update", t, a);
32
- }, ce = (t, a) => {
33
+ }, fe = (t, a) => {
33
34
  R("copy", t, a);
34
- }, ve = (t, a) => {
35
+ }, ye = (t, a) => {
35
36
  R("delete", t, a);
36
- }, G = async (t) => {
37
+ }, X = async (t) => {
37
38
  let a = t.map((o) => o[r.value.key.name]);
38
- await Oe.post(p.value.delete.route, a).then((o) => {
39
- Fe.success(o.message), N();
39
+ await Qe.post(p.value.delete.route, a).then((o) => {
40
+ Xe.success(o.message), L();
40
41
  });
41
42
  }, R = (t, a, o) => {
42
- let s = fe(t, a);
43
+ let s = we(t, a);
43
44
  o.ctrlKey ? (n.value.row = null, w("navigate", s)) : (n.value.appendToBody = o.altKey, n.value.page = t, n.value.url = s, n.value.row = a, n.value.visible = !0);
44
- }, fe = (t, a = null) => {
45
+ }, we = (t, a = null) => {
45
46
  let o = `${p.value[t].route}`;
46
47
  if (a != null) {
47
48
  let s = a[r.value.key.name];
48
49
  o += `?id=${s}`;
49
50
  }
50
51
  return o;
51
- }, he = () => {
52
+ }, be = () => {
52
53
  n.value.visible = !1, w("close");
53
- }, ye = (t) => {
54
- n.value.title = Je(t.module.type, t.module.name), n.value.env = t.module.env;
55
- }, N = () => {
54
+ }, _e = (t) => {
55
+ n.value.title = Ye(t.module.type, t.module.name), n.value.env = t.module.env;
56
+ }, L = () => {
56
57
  n.value.visible = !1;
57
- let t = D.value;
58
+ let t = U.value;
58
59
  w("succeed", async (a) => {
59
60
  let o = a.data.set[r.value.name];
60
61
  if (!o.length)
61
62
  return;
62
- await j();
63
+ await A();
63
64
  let s = r.value.key, c = n.value.row;
64
65
  if (c != null) {
65
66
  let d = o.find((_) => _[s.name] == c[s.name]);
@@ -71,163 +72,168 @@ const et = {
71
72
  _ != null && E.value.toggleRowSelection(_, !0);
72
73
  }
73
74
  });
74
- }, Q = (t) => {
75
+ }, Y = (t) => {
75
76
  w("search", t);
76
- }, we = (t) => {
77
+ }, xe = (t) => {
77
78
  w("page-change", t);
78
- }, be = (t) => {
79
+ }, Ce = (t) => {
79
80
  w("size-change", t);
80
- }, _e = (t, a) => {
81
+ }, Re = (t, a) => {
81
82
  let o = { [a.name]: { [t.prop]: t.order != "descending" ? "asc" : "desc" } };
82
83
  w("sort", o);
83
- }, xe = (t, a, o, s, c) => {
84
- }, Ce = (t) => {
85
- F.value = t;
86
- }, Re = (t, a) => {
87
- D.value = t;
88
- }, ke = (t, a, o) => {
84
+ }, ke = (t, a, o, s, c) => {
85
+ }, Se = (t) => {
86
+ J.value = t;
87
+ }, ze = (t, a) => {
88
+ U.value = t;
89
+ }, $e = (t, a, o) => {
89
90
  let s = t.target.children[0], c = b.dom.getWidth(s) + 16 + 14, d = a.realWidth || a.width;
90
91
  o._headerTooltip = c > d;
91
- }, Se = async (t, a, o, s) => {
92
- await oe.setColumnWidth(p.value.paging.route, r.value.name, o.property, t);
93
- }, X = () => {
92
+ }, Ve = async (t, a, o, s) => {
93
+ await re.setColumnWidth(p.value.paging.route, r.value.name, o.property, t);
94
+ }, Z = () => {
94
95
  var s, c, d;
95
- let t = b.dom.getHeight(V.value), a = b.dom.getHeight([(s = L.value) == null ? void 0 : s.$el, (c = P.value) == null ? void 0 : c.$el, (d = q.value) == null ? void 0 : d.$el]), o = t - a;
96
- O.value = `${o}px`;
97
- }, Y = () => {
96
+ let t = b.dom.getHeight(V.value), a = b.dom.getHeight([(s = N.value) == null ? void 0 : s.$el, (c = K.value) == null ? void 0 : c.$el, (d = F.value) == null ? void 0 : d.$el]), o = t - a;
97
+ I.value = `${o}px`;
98
+ }, ee = () => {
98
99
  let t = W.value;
99
100
  t <= 690 ? y.value.count = 5 : y.value.count = 7, t <= 300 ? y.value.layout = "pager" : t <= 620 ? y.value.layout = "prev, pager, next" : y.value.layout = "sizes, total, prev, pager, next, jumper";
100
- }, ze = (t, a) => {
101
- Ge.triggerKeyboardHandler(I.value, t, a);
102
- }, $e = (t) => {
103
- L.value.resize(t), W.value = b.dom.getWidth(V.value), Y(), j(() => {
104
- X();
101
+ }, We = (t, a) => {
102
+ j.triggerKeyboard(G.value, t, a);
103
+ }, Be = (t) => {
104
+ j.triggerSocket(K.value, t);
105
+ }, De = (t) => {
106
+ j.triggerResize(N.value, t), W.value = b.dom.getWidth(V.value), ee(), A(() => {
107
+ Z();
105
108
  });
106
109
  };
107
- Ue(async () => {
108
- await de.openAsync("sys", "page", J.value), W.value = b.dom.getWidth(V.value), Y(), await j(), X();
110
+ Ne(async () => {
111
+ await ge.openAsync("sys", "page", Q.value), W.value = b.dom.getWidth(V.value), ee(), await A(), Z();
109
112
  });
110
- let Ve = ae(() => {
111
- let a = Object.keys(u.value.orderBys)[0], o = u.value.orderBys[a];
113
+ let Te = oe(() => {
114
+ let a = Object.keys(i.value.orderBys)[0], o = i.value.orderBys[a];
112
115
  return { prop: a, order: o ? "ascending" : "descending" };
113
- }), We = ae(() => {
116
+ }), He = oe(() => {
114
117
  let t = `/${r.value.name}/paging-row`;
115
- return Ne.getComponent(t, "partial", "paging-row");
118
+ return je.getComponent(t, "partial", "paging-row");
116
119
  });
117
- return re({ keyboardHandler: ze, resize: $e }), (t, a) => {
120
+ return ue({ onKeyboard: We, onSocket: Be, onResize: De }), (t, a) => {
118
121
  const o = k("el-table-column"), s = k("el-tooltip"), c = k("el-table"), d = k("el-pagination"), _ = k("el-drawer");
119
- return f(), H("div", {
122
+ return h(), D("div", {
120
123
  ref_key: "pagingRef",
121
124
  ref: V,
122
125
  class: "paging-table"
123
126
  }, [
124
- v(Qe, {
127
+ v(Ze, {
125
128
  ref_key: "searchRef",
126
- ref: L,
127
- schema: e(T),
129
+ ref: N,
130
+ schema: e(H),
128
131
  table: e(r),
129
- layout: e(u),
130
- "search-data": e(K),
131
- onSubmit: e(Q)
132
+ layout: e(i),
133
+ "search-data": e(O),
134
+ onSubmit: e(Y)
132
135
  }, null, 8, ["schema", "table", "layout", "search-data", "onSubmit"]),
133
- v(Ze, {
136
+ v(at, {
134
137
  ref_key: "headerRef",
135
- ref: P,
136
- schema: e(T),
138
+ ref: K,
139
+ url: e(pe),
140
+ win: e(me),
141
+ module: e(q),
142
+ schema: e(H),
137
143
  table: e(r),
138
- layout: e(u),
144
+ layout: e(i),
139
145
  set: e(C),
140
146
  next: e(p),
141
- selection: e(D),
142
- "search-data": e(K),
143
- onAdd: e(pe),
144
- onRemove: e(G),
147
+ selection: e(U),
148
+ "search-data": e(O),
149
+ onAdd: e(ce),
150
+ onRemove: e(X),
145
151
  onShowImport: a[0] || (a[0] = (l) => x(m) ? m.value = !0 : m = !0),
146
152
  onShowExport: a[1] || (a[1] = (l) => x(g) ? g.value = !0 : g = !0),
147
- onSearch: e(Q)
148
- }, null, 8, ["schema", "table", "layout", "set", "next", "selection", "search-data", "onAdd", "onRemove", "onSearch"]),
153
+ onSearch: e(Y)
154
+ }, null, 8, ["url", "win", "module", "schema", "table", "layout", "set", "next", "selection", "search-data", "onAdd", "onRemove", "onSearch"]),
149
155
  v(c, {
150
156
  ref_key: "tableRef",
151
157
  ref: E,
152
- class: Te([{ "hide-nav": e(Me).hideNav }, "table-default table-paging"]),
158
+ class: Ke([{ "hide-nav": e(qe).hideNav }, "table-default table-paging"]),
153
159
  size: "small",
154
160
  border: "",
155
161
  "highlight-current-row": "",
156
- "max-height": e(O),
162
+ "max-height": e(I),
157
163
  data: e(C)[e(r).name],
158
- "default-sort": e(Ve),
159
- onSelectionChange: a[2] || (a[2] = (l) => e(Re)(l, e(r))),
160
- onSortChange: a[3] || (a[3] = (l) => e(_e)(l, e(r))),
161
- onHeaderDragend: e(Se)
164
+ "default-sort": e(Te),
165
+ onSelectionChange: a[2] || (a[2] = (l) => e(ze)(l, e(r))),
166
+ onSortChange: a[3] || (a[3] = (l) => e(Re)(l, e(r))),
167
+ onHeaderDragend: e(Ve)
162
168
  }, {
163
- empty: h(() => [
164
- le(S(e(A)("common.no_data")), 1)
169
+ empty: f(() => [
170
+ ne(S(e(P)("common.no_data")), 1)
165
171
  ]),
166
- default: h(() => [
172
+ default: f(() => [
167
173
  v(o, {
168
174
  type: "selection",
169
175
  width: "30"
170
176
  }),
171
- (f(!0), H(De, null, Ee(e(r).show, (l, nt) => {
172
- var Z, ee, te;
173
- return f(), z(o, {
177
+ (h(!0), D(Le, null, Me(e(r).show, (l, ut) => {
178
+ var te, ae, le;
179
+ return h(), z(o, {
174
180
  sortable: e(r) ? "custom" : !1,
175
181
  prop: l.name,
176
182
  "sort-orders": ["descending", "ascending"],
177
- fixed: e(u).fixed.indexOf(l.name) > -1,
178
- "min-width": ((te = (ee = (Z = e(J)) == null ? void 0 : Z[e(p).paging.route]) == null ? void 0 : ee[e(r).name]) == null ? void 0 : te[l.name]) ?? l.control.width,
183
+ fixed: e(i).fixed.indexOf(l.name) > -1,
184
+ "min-width": ((le = (ae = (te = e(Q)) == null ? void 0 : te[e(p).paging.route]) == null ? void 0 : ae[e(r).name]) == null ? void 0 : le[l.name]) ?? l.control.width,
179
185
  label: `${l.label}${l.control.prefix || l.suffix ? "(" + (l.control.prefix || l.suffix) + ")" : ""}`,
180
186
  key: `${e(r).name}.${l.name}`
181
187
  }, {
182
- header: h((B) => [
183
- l.control.required && l.control.editable ? (f(), H("i", et)) : $("", !0),
188
+ header: f((B) => [
189
+ l.control.required && l.control.editable ? (h(), D("i", lt)) : $("", !0),
184
190
  v(s, {
185
191
  placement: "top",
186
192
  content: l.label,
187
193
  disabled: !l._headerTooltip
188
194
  }, {
189
- default: h(() => [
190
- U("span", {
191
- onMouseenter: (M) => e(ke)(M, B.column, l)
195
+ default: f(() => [
196
+ T("span", {
197
+ onMouseenter: (M) => e($e)(M, B.column, l)
192
198
  }, [
193
- U("span", null, S(e(je)(e(r).name, l.name)), 1)
194
- ], 40, tt)
199
+ T("span", null, S(e(Oe)(e(r).name, l.name)), 1)
200
+ ], 40, ot)
195
201
  ]),
196
202
  _: 2
197
203
  }, 1032, ["content", "disabled"])
198
204
  ]),
199
- default: h((B) => [
200
- v(Ae, {
201
- schema: e(T),
205
+ default: f((B) => [
206
+ v(Fe, {
207
+ schema: e(H),
202
208
  table: e(r),
203
209
  field: l,
204
210
  set: e(C),
205
211
  row: B.row,
206
- config: e(Ke).getConfig(l, e(ue).type, e(u).type),
207
- onChange: (M) => e(xe)(M, e(r), l, e(C), B.row)
212
+ config: e(Ge).getConfig(l, e(q).type, e(i).type),
213
+ onChange: (M) => e(ke)(M, e(r), l, e(C), B.row)
208
214
  }, null, 8, ["schema", "table", "field", "set", "row", "config", "onChange"])
209
215
  ]),
210
216
  _: 2
211
217
  }, 1032, ["sortable", "prop", "fixed", "min-width", "label"]);
212
218
  }), 128)),
213
219
  v(o, {
214
- label: e(A)("common.operation"),
220
+ label: e(P)("common.operation"),
215
221
  fixed: "right",
216
222
  "show-overflow-tooltip": "",
217
- "min-width": e(F)
223
+ "min-width": e(J)
218
224
  }, {
219
- default: h((l) => [
220
- (f(), z(Le(e(We)), {
225
+ default: f((l) => [
226
+ (h(), z(Ae(e(He)), {
221
227
  table: e(r),
222
228
  next: e(p),
223
229
  set: e(C),
224
230
  row: l.row,
225
- onPreview: e(me),
226
- onEdit: e(ge),
227
- onCopy: e(ce),
228
- onBeforeRemove: e(ve),
229
- onRemove: e(G),
230
- onChangeWidth: e(Ce)
231
+ onPreview: e(ve),
232
+ onEdit: e(he),
233
+ onCopy: e(fe),
234
+ onBeforeRemove: e(ye),
235
+ onRemove: e(X),
236
+ onChangeWidth: e(Se)
231
237
  }, null, 40, ["table", "next", "set", "row", "onPreview", "onEdit", "onCopy", "onBeforeRemove", "onRemove", "onChangeWidth"]))
232
238
  ]),
233
239
  _: 1
@@ -235,69 +241,69 @@ const et = {
235
241
  ]),
236
242
  _: 1
237
243
  }, 8, ["class", "max-height", "data", "default-sort", "onHeaderDragend"]),
238
- v(e(Pe), {
244
+ v(e(Ie), {
239
245
  ref_key: "footerRef",
240
- ref: q,
246
+ ref: F,
241
247
  class: "list-toolbar"
242
248
  }, {
243
- default: h(() => [
249
+ default: f(() => [
244
250
  v(d, {
245
251
  background: "",
246
252
  layout: e(y).layout,
247
- "current-page": e(u).page,
253
+ "current-page": e(i).page,
248
254
  "pager-count": e(y).count,
249
- total: e(u).count,
255
+ total: e(i).count,
250
256
  "page-sizes": e(y).sizes,
251
- onCurrentChange: e(we),
252
- onSizeChange: e(be),
253
- "page-size": e(u).size,
254
- "onUpdate:pageSize": a[4] || (a[4] = (l) => e(u).size = l)
257
+ onCurrentChange: e(xe),
258
+ onSizeChange: e(Ce),
259
+ "page-size": e(i).size,
260
+ "onUpdate:pageSize": a[4] || (a[4] = (l) => e(i).size = l)
255
261
  }, null, 8, ["layout", "current-page", "pager-count", "total", "page-sizes", "onCurrentChange", "onSizeChange", "page-size"])
256
262
  ]),
257
263
  _: 1
258
264
  }, 512),
259
- e(p).import ? (f(), z(Xe, {
265
+ e(p).import ? (h(), z(et, {
260
266
  key: 0,
261
267
  next: e(p),
262
268
  onClose: a[5] || (a[5] = (l) => x(m) ? m.value = !1 : m = !1),
263
- onSucceed: e(N),
269
+ onSucceed: e(L),
264
270
  modelValue: e(m),
265
271
  "onUpdate:modelValue": a[6] || (a[6] = (l) => x(m) ? m.value = l : m = l)
266
272
  }, null, 8, ["next", "onSucceed", "modelValue"])) : $("", !0),
267
- e(p).export ? (f(), z(Ye, {
273
+ e(p).export ? (h(), z(tt, {
268
274
  key: 1,
269
275
  route: e(p).export.route,
270
- "page-count": e(b).math.pageCount(e(u).count, e(u).size),
276
+ "page-count": e(b).math.pageCount(e(i).count, e(i).size),
271
277
  onClose: a[7] || (a[7] = (l) => x(g) ? g.value = !1 : g = !1),
272
278
  modelValue: e(g),
273
279
  "onUpdate:modelValue": a[8] || (a[8] = (l) => x(g) ? g.value = l : g = l)
274
280
  }, null, 8, ["route", "page-count", "modelValue"])) : $("", !0),
275
- e(n).page ? (f(), z(_, {
281
+ e(n).page ? (h(), z(_, {
276
282
  key: 2,
277
283
  "destroy-on-close": "",
278
284
  "append-to-body": e(n).appendToBody,
279
- size: e(oe).getDrawerWidth(e(W)),
285
+ size: e(re).getDrawerWidth(e(W)),
280
286
  modelValue: e(n).visible,
281
287
  "onUpdate:modelValue": a[9] || (a[9] = (l) => e(n).visible = l)
282
288
  }, {
283
- header: h(() => [
284
- U("div", at, [
285
- le(S(e(n).title) + " ", 1),
286
- e(n).env ? (f(), H("span", lt, "[" + S(e(n).env) + "]", 1)) : $("", !0),
287
- U("a", {
289
+ header: f(() => [
290
+ T("div", nt, [
291
+ ne(S(e(n).title) + " ", 1),
292
+ e(n).env ? (h(), D("span", rt, "[" + S(e(n).env) + "]", 1)) : $("", !0),
293
+ T("a", {
288
294
  class: "drawer-copy",
289
295
  href: e(b).url.getToUrl(e(n).url)
290
- }, S(e(A)("common.link")), 9, ot)
296
+ }, S(e(P)("common.link")), 9, st)
291
297
  ])
292
298
  ]),
293
- default: h(() => [
294
- v(e(qe), {
299
+ default: f(() => [
300
+ v(e(Je), {
295
301
  ref_key: "pageRef",
296
- ref: I,
302
+ ref: G,
297
303
  url: e(n).url,
298
- onLoaded: e(ye),
299
- onSucceed: e(N),
300
- onClose: e(he)
304
+ onLoaded: e(_e),
305
+ onSucceed: e(L),
306
+ onClose: e(be)
301
307
  }, null, 8, ["url", "onLoaded", "onSucceed", "onClose"])
302
308
  ]),
303
309
  _: 1
@@ -307,5 +313,5 @@ const et = {
307
313
  }
308
314
  });
309
315
  export {
310
- vt as default
316
+ ft as default
311
317
  };