halo-pc 1.0.40 → 1.0.41

Sign up to get free protection for your applications and to get access to all the features.
Files changed (139) hide show
  1. package/dist/{Article-CqtkXVmQ.js → Article-BMW_FzdK.js} +32 -31
  2. package/dist/{ArticleFooter-DeJdTtZD.js → ArticleFooter-7iPkMQaX.js} +13 -12
  3. package/dist/Autocomplete-B6Mwp9rT.js +50 -0
  4. package/dist/{Autocomplete-0fxB2_FC.js → Autocomplete-C-El55Lz.js} +1 -1
  5. package/dist/{Autocomplete-LQiKcvz1.js → Autocomplete-PZTjEBIx.js} +11 -10
  6. package/dist/{CSharp-BIFRQLaK.js → CSharp-BQUrQwua.js} +1 -1
  7. package/dist/{Calender-DPNTn-S4.js → Calender-CJXR7uhM.js} +2 -2
  8. package/dist/Callback-CyDW9WU2.js +21 -0
  9. package/dist/{Cascader-Vhc81TDV.js → Cascader-CFc_8QSm.js} +18 -17
  10. package/dist/Cascader-DMQjalNv.js +47 -0
  11. package/dist/{Checkbox-D9Sp6ZGQ.js → Checkbox-aU8e779g.js} +12 -11
  12. package/dist/{Checkbox-CIim5NiB.js → Checkbox-pV01os-T.js} +1 -1
  13. package/dist/Code-C0Kxulod.js +4 -0
  14. package/dist/Code-C4pIa8BE.js +60 -0
  15. package/dist/Code-CCJx9RSm.js +42 -0
  16. package/dist/{Code-yDKaH1uF.js → Code-kDBbVC1W.js} +1 -1
  17. package/dist/Code.vue_vue_type_style_index_0_lang-36NN7tgP.js +65 -0
  18. package/dist/Column-BebDf5Z9.js +75 -0
  19. package/dist/{Comment-tU2wBvGO.js → Comment-BgfD9WtL.js} +25 -19
  20. package/dist/{Compare-DqvGyQWA.js → Compare-BZucuvFP.js} +9 -8
  21. package/dist/{Compare-D7Gz-lE9.js → Compare-D-Byn_Gq.js} +11 -10
  22. package/dist/Copy-DW4jSNQi.js +44 -0
  23. package/dist/Custom-DIF-RYi3.js +55 -0
  24. package/dist/{DataExport-BDftKI0U.js → DataExport-CyQy2xjO.js} +1 -1
  25. package/dist/{DataExport.vue_vue_type_script_setup_true_lang-Dzy9UC11.js → DataExport.vue_vue_type_script_setup_true_lang-C4n6xWcP.js} +28 -27
  26. package/dist/{DataImport-CRYaaQfA.js → DataImport-BVF83UsQ.js} +1 -1
  27. package/dist/{DataImport.vue_vue_type_script_setup_true_lang-D7UdCnBM.js → DataImport.vue_vue_type_script_setup_true_lang-BZhFLOqB.js} +31 -30
  28. package/dist/{Date-Dlh1_S7p.js → Date-CqpFvbYZ.js} +1 -1
  29. package/dist/{Date-DPPiYLWw.js → Date-g1XKWU4b.js} +8 -7
  30. package/dist/{DateRange-BgF_T3ls.js → DateRange-B2afkdbT.js} +6 -5
  31. package/dist/{DateTime-DP-VfmtN.js → DateTime-D_x_wBZR.js} +8 -7
  32. package/dist/{DateTime-CNjPeK9t.js → DateTime-Zi3vtH77.js} +1 -1
  33. package/dist/{DateTimeRange-DbEpW4nB.js → DateTimeRange-BFWM_U7H.js} +10 -9
  34. package/dist/{Daterange-DHVjhrK9.js → Daterange-tXA0b0Ak.js} +5 -4
  35. package/dist/{Decimal-BDEWVSsK.js → Decimal-DKQ38XS_.js} +1 -1
  36. package/dist/{Delete-Bl0GmthL.js → Delete-BOkBpAGN.js} +20 -19
  37. package/dist/{Detail-BozyhOTt.js → Detail-SWgERqKG.js} +11 -10
  38. package/dist/{Dictionary-CJwZPQz6.js → Dictionary-Xsj_Qorw.js} +15 -9
  39. package/dist/{Email-D5X1SzuJ.js → Email-DILPnLkb.js} +12 -11
  40. package/dist/{File-DixK0K7p.js → File-BDUTK7hV.js} +40 -39
  41. package/dist/Image-Yx3ZHHJK.js +9 -0
  42. package/dist/Index-BTa4YIN9.js +174 -0
  43. package/dist/Index-BWukqxQl.js +4 -0
  44. package/dist/Index-BahY1OIJ.js +4 -0
  45. package/dist/Index-C9ffFYsl.js +4 -0
  46. package/dist/{Index-j15c7lwJ.js → Index-CiQQmYeA.js} +1 -1
  47. package/dist/Index-DG7Hovsx.js +4 -0
  48. package/dist/{Index-D2FOeoNQ.js → Index-DeYqTT9Q.js} +1 -1
  49. package/dist/{Index-DbXgnBz6.js → Index-WVLyjyqt.js} +16 -15
  50. package/dist/{Index.vue_vue_type_script_setup_true_lang-DT7eOyjs.js → Index.vue_vue_type_script_setup_true_lang-42C0EEto.js} +13 -12
  51. package/dist/{Index.vue_vue_type_script_setup_true_lang-ByxBNAdg.js → Index.vue_vue_type_script_setup_true_lang-DWMiv0dC.js} +21 -15
  52. package/dist/{Install-WR3b4IfI.js → Install-DW5uDsXF.js} +14 -13
  53. package/dist/{Int-GGWiUqO2.js → Int-BM4sbZvh.js} +14 -13
  54. package/dist/{Int-CWsDtoxE.js → Int-BrFE_Hmm.js} +10 -9
  55. package/dist/List-DWjTqrJR.js +72 -0
  56. package/dist/Maintaince-DF3nu9Jd.js +20 -0
  57. package/dist/{Markdown-nVfQs7kc.js → Markdown-BC8l7O_U.js} +1 -1
  58. package/dist/{Month-CxKMP4kO.js → Month-DRa9o-WC.js} +1 -1
  59. package/dist/{Month-DnYlAi7k.js → Month-QG6OiiLU.js} +11 -10
  60. package/dist/Month-Y0kLXgV7.js +38 -0
  61. package/dist/{Normal-RcqEyIFN.js → Normal-CSy3DFPH.js} +50 -49
  62. package/dist/{Paging-DrdGzxeP.js → Paging-BYccIXmC.js} +43 -42
  63. package/dist/{PagingHeader-C8UpM9Kj.js → PagingHeader-U-oJ1TQE.js} +16 -15
  64. package/dist/{PagingRow-oQWCofO4.js → PagingRow-BmokRXX3.js} +14 -13
  65. package/dist/{Racebar-CvoF2ySW.js → Racebar-BvFHNGb8.js} +28 -22
  66. package/dist/{Radio-DhjfkC14.js → Radio-CjfXrTOE.js} +1 -1
  67. package/dist/{Register-B0Vx60wY.js → Register-BG-3_Q2E.js} +55 -54
  68. package/dist/RichText-C88f59ao.js +47 -0
  69. package/dist/{SearchForm-BHVnQaSL.js → SearchForm-C0zqD7UP.js} +1 -1
  70. package/dist/{SearchForm.vue_vue_type_style_index_0_lang-ByICIL6w.js → SearchForm.vue_vue_type_style_index_0_lang-Bv1_VqSl.js} +46 -45
  71. package/dist/{SearchHeader-C9yovXli.js → SearchHeader-e2LOidgU.js} +1 -1
  72. package/dist/{SearchHeader.vue_vue_type_style_index_0_lang-CHAg97-Y.js → SearchHeader.vue_vue_type_style_index_0_lang-DebuWiG6.js} +1 -1
  73. package/dist/{Select-vgwpegBi.js → Select-CfIvGDPS.js} +21 -20
  74. package/dist/{Select-CX4i5KPQ.js → Select-CvP_zGxM.js} +1 -1
  75. package/dist/{Select-BDoCqD3I.js → Select-Cz6MPDCC.js} +11 -10
  76. package/dist/{Single-C3629BdC.js → Single-p-8OfzhQ.js} +101 -100
  77. package/dist/{Statistic-WPezAlUn.js → Statistic-BIKfbZCI.js} +32 -31
  78. package/dist/{Stock-EPM3j2f_.js → Stock-B7RP-SuF.js} +1 -1
  79. package/dist/{Stock-BD5Acf8y.js → Stock-BhOP8J0c.js} +1 -1
  80. package/dist/{Stock.vue_vue_type_style_index_0_lang-D5RR2MRP.js → Stock.vue_vue_type_style_index_0_lang-Dpw8BlLu.js} +20 -19
  81. package/dist/{Switch-B0XN4K-9.js → Switch-BcDhe4_E.js} +1 -1
  82. package/dist/{Table-BklK1hSh.js → Table-Cy7FarYr.js} +71 -70
  83. package/dist/{Table-JFdOXuME.js → Table-DK-TaejU.js} +58 -57
  84. package/dist/Text-B580p9od.js +49 -0
  85. package/dist/Text-D89aQLxL.js +4 -0
  86. package/dist/{Text-DrJkdxZF.js → Text-YNB0It4-.js} +13 -12
  87. package/dist/Text.vue_vue_type_style_index_0_lang-Dokzd_qM.js +59 -0
  88. package/dist/{TextLink-BnijIoEJ.js → TextLink-CI-AIgdm.js} +9 -8
  89. package/dist/{Textarea-3SWLqQvO.js → Textarea-86C9lCtg.js} +1 -1
  90. package/dist/{Time-C3qlNZkJ.js → Time-BgArfSc6.js} +10 -9
  91. package/dist/{Timeline-B6hUIYhL.js → Timeline-O_jWjdxT.js} +19 -13
  92. package/dist/{Tree-JexLPBXX.js → Tree-BfFRW-xZ.js} +41 -35
  93. package/dist/{Tree-DBvFF4Rj.js → Tree-DayADkaC.js} +73 -72
  94. package/dist/{TreeNode-BOWB2WN9.js → TreeNode-BZp8w6M5.js} +10 -9
  95. package/dist/{Update-CDLYYwgj.js → Update-Bcdz87R4.js} +6 -5
  96. package/dist/{UpdateChild-DUG7pAuO.js → UpdateChild-YzPMnj_r.js} +20 -19
  97. package/dist/{Upload-B2hbxDsT.js → Upload-DU5VOqXj.js} +47 -46
  98. package/dist/Upload-Dj5nSsug.js +71 -0
  99. package/dist/{Year-BUF60NmB.js → Year-B3E0kOiA.js} +8 -7
  100. package/dist/{Year-BRsJ7b1J.js → Year-CcbzIuwy.js} +1 -1
  101. package/dist/assets/{clipboard-ClN4QccS.js → clipboard-DjQPoCBJ.js} +3 -1
  102. package/dist/assets/clone-BZn0cTAu.js +134 -0
  103. package/dist/assets/file-saver-CwlpTZSc.js +74 -0
  104. package/dist/assets/liquidjs-BfOWWjtJ.js +2907 -0
  105. package/dist/assets/moment-h96o7c8I.js +2578 -0
  106. package/dist/assets/sprintf-js-BPTdvBYM.js +148 -0
  107. package/dist/assets/underscore-B0BCaBxV.js +1070 -0
  108. package/dist/assets/underscore.string-DVXD2SZo.js +425 -0
  109. package/dist/assets/util-deprecate-Dzun97re.js +28 -0
  110. package/dist/main-DxH9UW19.js +10723 -0
  111. package/dist/main.js +60 -59
  112. package/dist/style.css +1 -1
  113. package/esm/coms/drivers/@types/CrudProps.d.ts +2 -2
  114. package/package.json +1 -1
  115. package/dist/Autocomplete-BfhYwZ5G.js +0 -49
  116. package/dist/Callback-Ci5KrWOC.js +0 -20
  117. package/dist/Cascader-CnOEgPDf.js +0 -41
  118. package/dist/Code-BEjqqeFZ.js +0 -54
  119. package/dist/Code-BSrEPuXk.js +0 -4
  120. package/dist/Code-Dp1-k8sW.js +0 -36
  121. package/dist/Code.vue_vue_type_style_index_0_lang-CmkomJXY.js +0 -59
  122. package/dist/Column-B0ViSver.js +0 -69
  123. package/dist/Copy-Dm1LH9qB.js +0 -43
  124. package/dist/Custom-CLKAPWEo.js +0 -49
  125. package/dist/Image-BrelhCGo.js +0 -9
  126. package/dist/Index-BeM6hKX9.js +0 -4
  127. package/dist/Index-BkfLyqpm.js +0 -173
  128. package/dist/Index-D8UVsXwf.js +0 -4
  129. package/dist/Index-FL-dxfFB.js +0 -4
  130. package/dist/Index-fWOqfFkG.js +0 -4
  131. package/dist/List-kRCsHp6d.js +0 -71
  132. package/dist/Maintaince-BG8MUi3A.js +0 -14
  133. package/dist/Month-B1icZmL4.js +0 -37
  134. package/dist/RichText-4wrLw9cy.js +0 -41
  135. package/dist/Text-CNtHdodK.js +0 -4
  136. package/dist/Text-KAuEjP7I.js +0 -48
  137. package/dist/Text.vue_vue_type_style_index_0_lang-BJIbv4kF.js +0 -53
  138. package/dist/Upload-mlk6Y4Po.js +0 -65
  139. package/dist/main-DymfKjqO.js +0 -16480
@@ -1,7 +1,8 @@
1
- import { defineComponent as Be, toRefs as Ue, ref as u, computed as Z, watch as De, resolveComponent as c, openBlock as d, createElementBlock as F, normalizeClass as Le, unref as e, createElementVNode as m, createVNode as g, withCtx as s, withModifiers as Ke, createBlock as h, isRef as ee, Fragment as le, renderList as te, toDisplayString as x, createCommentVNode as B, resolveDynamicComponent as je, normalizeStyle as Ne, createTextVNode as ae, nextTick as oe } from "vue";
2
- import { c as Pe, j as qe, p as ue, C as Ae, b as Fe, d as U, a as Me, _ as Oe, l as re, $ as Ge, B as He, m as ne, S as M, A as Ie } from "./main-DymfKjqO.js";
3
- import { _ as se } from "./Index.vue_vue_type_script_setup_true_lang-DT7eOyjs.js";
4
- const Je = { class: "ha-main-form" }, Qe = { class: "row-header" }, We = { class: "row-title" }, Xe = { class: "el-drawer__title" }, Ye = ["href"], al = /* @__PURE__ */ Be({
1
+ import { defineComponent as $e, toRefs as Ke, ref as u, computed as Z, watch as Be, resolveComponent as f, openBlock as d, createElementBlock as M, normalizeClass as De, unref as e, createElementVNode as m, createVNode as g, withCtx as s, withModifiers as Le, createBlock as h, isRef as ee, Fragment as le, renderList as te, toDisplayString as R, createCommentVNode as $, resolveDynamicComponent as Ne, normalizeStyle as Pe, createTextVNode as ae, nextTick as oe } from "vue";
2
+ import { f as je, g as qe, t as ue, j as Fe, k as Me, U as K, b as Oe, h as Ae, a as re, c as Ge, i as He, d as ne, m as O, K as Ie } from "./main-DxH9UW19.js";
3
+ import "./assets/moment-h96o7c8I.js";
4
+ import { _ as se } from "./Index.vue_vue_type_script_setup_true_lang-42C0EEto.js";
5
+ const Je = { class: "ha-main-form" }, Qe = { class: "row-header" }, We = { class: "row-title" }, Xe = { class: "el-drawer__title" }, Ye = ["href"], ol = /* @__PURE__ */ $e({
5
6
  __name: "Single",
6
7
  props: {
7
8
  base: {},
@@ -11,8 +12,8 @@ const Je = { class: "ha-main-form" }, Qe = { class: "row-header" }, We = { class
11
12
  },
12
13
  emits: ["navigate", "load", "succeed", "close"],
13
14
  setup(ie, { expose: de, emit: me }) {
14
- let D = me, ve = ie, { url: pe, base: O, route: T } = Ue(ve), f = u(), b = u(), v = u(), r = u(), y = u(), L = u(), p = u({ table: null, layout: null }), w = u(), K = u([]), ce = u(), V = u(), j = u(), P = u(), E = u(), G = u(), i = u({ page: null, url: null, visible: !1, appendToBody: !1 }), C = u(!1), q = u(), R = u(), fe = (l) => !0, be = (l) => {
15
- let t = U.url.getPath(pe.value), a = U.url.getPath(l);
15
+ let B = me, pe = ie, { url: ve, base: A, route: T } = Ke(pe), c = u(), b = u(), p = u(), r = u(), y = u(), D = u(), v = u({ table: null, layout: null }), w = u(), L = u([]), fe = u(), V = u(), N = u(), j = u(), E = u(), G = u(), i = u({ page: null, url: null, visible: !1, appendToBody: !1 }), C = u(!1), q = u(), x = u(), ce = (l) => !0, be = (l) => {
16
+ let t = K.url.getPath(ve.value), a = K.url.getPath(l);
16
17
  return t != a;
17
18
  }, ye = () => {
18
19
  Ee();
@@ -24,7 +25,7 @@ const Je = { class: "ha-main-form" }, Qe = { class: "row-header" }, We = { class
24
25
  i.value.visible = !1;
25
26
  }, H = (l, t, a) => {
26
27
  let n = we(l, t);
27
- a.ctrlKey ? D("navigate", n) : (i.value.appendToBody = a.altKey, i.value.page = l, i.value.url = n, i.value.visible = !0);
28
+ a.ctrlKey ? B("navigate", n) : (i.value.appendToBody = a.altKey, i.value.page = l, i.value.url = n, i.value.visible = !0);
28
29
  }, we = (l, t = null) => {
29
30
  let a = `${b.value[l].route}`;
30
31
  if (t != null) {
@@ -33,46 +34,46 @@ const Je = { class: "ha-main-form" }, Qe = { class: "row-header" }, We = { class
33
34
  }
34
35
  return a;
35
36
  }, Ce = (l, t, a) => {
36
- (a.ctrlKey || C.value) && (q.value = l, R.value = U.object.clone(t), C.value = !0, R.value.fields.forEach((n) => {
37
+ (a.ctrlKey || C.value) && (q.value = l, x.value = K.object.clone(t), C.value = !0, x.value.fields.forEach((n) => {
37
38
  n.control.textualize = !1;
38
39
  }));
39
40
  }, I = (l) => {
40
- i.value.visible = !1, D("succeed", X.value, l);
41
- }, xe = () => {
42
- D("close");
43
- }, J = (l, t, a, n, S) => {
41
+ i.value.visible = !1, B("succeed", X.value, l);
42
+ }, Re = () => {
43
+ B("close");
44
+ }, J = (l, t, a, n, k) => {
44
45
  }, Q = (l, t) => {
45
46
  if (t) {
46
- L.value = y.value.layouts.find((a) => a.type == l);
47
+ D.value = y.value.layouts.find((a) => a.type == l);
47
48
  return;
48
49
  }
49
- p.value.layout = p.value.table.layouts.find((a) => a.type == l);
50
- }, Re = (l) => {
50
+ v.value.layout = v.value.table.layouts.find((a) => a.type == l);
51
+ }, xe = (l) => {
51
52
  let t = r.value.find((a) => a.name == l);
52
- p.value.table = t, p.value.layout = t.layouts[0];
53
- }, Se = (l) => {
53
+ v.value.table = t, v.value.layout = t.layouts[0];
54
+ }, ke = (l) => {
54
55
  let t = Object.keys(l)[0], a = t.substring(1, t.indexOf("]"));
55
- r.value.find((S) => S.name == a).main || (w.value = a);
56
- }, ke = (l, t = null, a = null) => {
56
+ r.value.find((k) => k.name == a).main || (w.value = a);
57
+ }, Se = (l, t = null, a = null) => {
57
58
  oe(() => {
58
- V.value.validate((n, S) => {
59
+ V.value.validate((n, k) => {
59
60
  if (!n)
60
- return Se(S), a && a(!1), !1;
61
- let $ = f.value.type == "Update" ? b.value.update.route : b.value.insert.route;
62
- t && t($, v.value), Oe.post($, v.value).then(({ data: z, message: k }) => {
63
- V.value.clearValidate(), re.success(k), I(v.value);
64
- }).catch(({ code: z, data: k, message: Y }) => {
61
+ return ke(k), a && a(!1), !1;
62
+ let U = c.value.type == "Update" ? b.value.update.route : b.value.insert.route;
63
+ t && t(U, p.value), Ae.post(U, p.value).then(({ data: z, message: S }) => {
64
+ V.value.clearValidate(), re.success(S), I(p.value);
65
+ }).catch(({ code: z, data: S, message: Y }) => {
65
66
  if (z != "ValidateError")
66
67
  return;
67
- K.value = k;
68
- let N = k.find((_) => _.table !== y.value.name);
69
- if (N) {
70
- let _ = r.value.find((o) => o.name == N.table);
68
+ L.value = S;
69
+ let P = S.find((_) => _.table !== y.value.name);
70
+ if (P) {
71
+ let _ = r.value.find((o) => o.name == P.table);
71
72
  _ && (w.value = _.name);
72
73
  }
73
74
  oe(() => {
74
75
  V.value.clearValidate(), V.value.validate((_, o) => {
75
- _ || (a && a(!1), K.value = []);
76
+ _ || (a && a(!1), L.value = []);
76
77
  });
77
78
  });
78
79
  }).finally(() => {
@@ -83,79 +84,79 @@ const Je = { class: "ha-main-form" }, Qe = { class: "row-header" }, We = { class
83
84
  }, W = (l) => {
84
85
  var a, n;
85
86
  let t = Ge(l.module.type, l.module.name);
86
- He.setTitle(t, l.module.env), f.value = l.module, b.value = l.next, v.value = ne.expandSet(l.schema, l.set), r.value = ne.expandSchema(l.schema, l.set), y.value = (a = r.value) == null ? void 0 : a[0], L.value = y.value.layouts[0], ((n = r.value) == null ? void 0 : n.length) > 1 && (w.value = r.value[1].name, p.value.table = r.value[1], p.value.layout = r.value[1].layouts[0]);
87
+ He.setTitle(t, l.module.env), c.value = l.module, b.value = l.next, p.value = ne.expandSet(l.schema, l.set), r.value = ne.expandSchema(l.schema, l.set), y.value = (a = r.value) == null ? void 0 : a[0], D.value = y.value.layouts[0], ((n = r.value) == null ? void 0 : n.length) > 1 && (w.value = r.value[1].name, v.value.table = r.value[1], v.value.layout = r.value[1].layouts[0]);
87
88
  }, Te = (l) => {
88
- M.triggerResize(j.value, l), M.triggerResize(E.value, l);
89
+ O.triggerResize(N.value, l), O.triggerResize(E.value, l);
89
90
  }, Ve = (l, t) => {
90
91
  if (l == Ie.ctrlS) {
91
- if (f.value.type == "Detail") {
92
- M.triggerKeyboard(G.value, l, t);
92
+ if (c.value.type == "Detail") {
93
+ O.triggerKeyboard(G.value, l, t);
93
94
  return;
94
95
  }
95
- A(t);
96
+ F(t);
96
97
  }
97
98
  }, Ee = () => {
98
- let l = U.url.getUrl(T.value.path, T.value.query);
99
- D("load", l, !1, (t) => {
99
+ let l = K.url.getUrl(T.value.path, T.value.query);
100
+ B("load", l, !1, (t) => {
100
101
  });
101
102
  };
102
103
  (() => {
103
- W(O.value.data);
104
+ W(A.value.data);
104
105
  })();
105
- let A = (l) => {
106
- if (!P.value.submit) {
106
+ let F = (l) => {
107
+ if (!j.value.submit) {
107
108
  re.notify("提示", "请在子组件暴露submit方法来实现快捷提交", "warning");
108
109
  return;
109
110
  }
110
- P.value.submit(l);
111
- }, $e = Z(() => {
112
- let l = `/${y.value.name}/update`, t = f.value.type == "Detail" ? "detail" : "update";
113
- return Pe.getComponent(l, "partial", t);
114
- }), X = Z(() => f.value.type.toLowerCase());
115
- return De(() => O.value, (l) => {
116
- W(l.data), j.value.update && j.value.update(l.data), E.value && E.value.update && E.value.update(l.data);
117
- }), de({ shouldLoad: fe, shouldSpin: be, onKeyboard: Ve, onRefresh: ye, onResize: Te }), (l, t) => {
118
- const a = c("el-tooltip"), n = c("el-tab-pane"), S = c("el-tabs"), $ = c("el-form"), z = c("el-scrollbar"), k = c("el-popover"), Y = c("el-form-item"), N = c("el-card"), _ = c("el-drawer");
119
- return d(), F("div", {
111
+ j.value.submit(l);
112
+ }, Ue = Z(() => {
113
+ let l = `/${y.value.name}/update`, t = c.value.type == "Detail" ? "detail" : "update";
114
+ return je.getComponent(l, "partial", t);
115
+ }), X = Z(() => c.value.type.toLowerCase());
116
+ return Be(() => A.value, (l) => {
117
+ W(l.data), N.value.update && N.value.update(l.data), E.value && E.value.update && E.value.update(l.data);
118
+ }), de({ shouldLoad: ce, shouldSpin: be, onKeyboard: Ve, onRefresh: ye, onResize: Te }), (l, t) => {
119
+ const a = f("el-tooltip"), n = f("el-tab-pane"), k = f("el-tabs"), U = f("el-form"), z = f("el-scrollbar"), S = f("el-popover"), Y = f("el-form-item"), P = f("el-card"), _ = f("el-drawer");
120
+ return d(), M("div", {
120
121
  ref_key: "singleRef",
121
- ref: ce,
122
- class: Le(["ha-single-page", { [e(X) + "-page"]: !0, editing: e(C) }])
122
+ ref: fe,
123
+ class: De(["ha-single-page", { [e(X) + "-page"]: !0, editing: e(C) }])
123
124
  }, [
124
125
  m("div", Je, [
125
126
  g(z, { class: "main-scroller" }, {
126
127
  default: s(() => [
127
- g($, {
128
+ g(U, {
128
129
  ref_key: "formRef",
129
130
  ref: V,
130
- model: e(v),
131
- onSubmit: t[3] || (t[3] = Ke(() => {
131
+ model: e(p),
132
+ onSubmit: t[3] || (t[3] = Le(() => {
132
133
  }, ["prevent"]))
133
134
  }, {
134
135
  default: s(() => [
135
136
  g(se, {
136
137
  ref_key: "mainRef",
137
- ref: j,
138
- module: e(f),
138
+ ref: N,
139
+ module: e(c),
139
140
  schema: e(r),
140
141
  table: e(y),
141
- layout: e(L),
142
+ layout: e(D),
142
143
  next: e(b),
143
- set: e(v),
144
+ set: e(p),
144
145
  route: e(T),
145
- "validate-errors": e(K),
146
+ "validate-errors": e(L),
146
147
  onChange: e(J),
147
148
  onLayoutChange: t[0] || (t[0] = (o) => e(Q)(o, !0)),
148
- onSubmit: e(A)
149
+ onSubmit: e(F)
149
150
  }, null, 8, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onChange", "onSubmit"]),
150
- e(r).length > 1 ? (d(), h(S, {
151
+ e(r).length > 1 ? (d(), h(k, {
151
152
  key: 0,
152
153
  type: "border-card",
153
- onTabChange: e(Re),
154
+ onTabChange: e(xe),
154
155
  modelValue: e(w),
155
156
  "onUpdate:modelValue": t[1] || (t[1] = (o) => ee(w) ? w.value = o : w = o)
156
157
  }, {
157
158
  default: s(() => [
158
- (d(!0), F(le, null, te(e(r).filter((o, ze) => ze > 0), (o) => (d(), h(n, {
159
+ (d(!0), M(le, null, te(e(r).filter((o, ze) => ze > 0), (o) => (d(), h(n, {
159
160
  name: o.name,
160
161
  key: o.name
161
162
  }, {
@@ -166,7 +167,7 @@ const Je = { class: "ha-main-form" }, Qe = { class: "row-header" }, We = { class
166
167
  disabled: !o.tooltip
167
168
  }, {
168
169
  default: s(() => [
169
- m("div", null, x(e(qe)(o.table)), 1)
170
+ m("div", null, R(e(qe)(o.table)), 1)
170
171
  ]),
171
172
  _: 2
172
173
  }, 1032, ["content", "disabled"])
@@ -175,53 +176,53 @@ const Je = { class: "ha-main-form" }, Qe = { class: "row-header" }, We = { class
175
176
  }, 1032, ["name"]))), 128))
176
177
  ]),
177
178
  _: 1
178
- }, 8, ["onTabChange", "modelValue"])) : B("", !0),
179
- e(p).table ? (d(), h(se, {
179
+ }, 8, ["onTabChange", "modelValue"])) : $("", !0),
180
+ e(v).table ? (d(), h(se, {
180
181
  key: 1,
181
182
  ref_key: "childRef",
182
183
  ref: E,
183
- module: e(f),
184
+ module: e(c),
184
185
  schema: e(r),
185
- table: e(p).table,
186
- layout: e(p).layout,
186
+ table: e(v).table,
187
+ layout: e(v).layout,
187
188
  next: e(b),
188
- set: e(v),
189
+ set: e(p),
189
190
  route: e(T),
190
- "validate-errors": e(K),
191
+ "validate-errors": e(L),
191
192
  onRowEdit: e(Ce),
192
193
  onChange: e(J),
193
194
  onLayoutChange: t[2] || (t[2] = (o) => e(Q)(o, !1)),
194
- onSubmit: e(A)
195
- }, null, 8, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onRowEdit", "onChange", "onSubmit"])) : B("", !0)
195
+ onSubmit: e(F)
196
+ }, null, 8, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onRowEdit", "onChange", "onSubmit"])) : $("", !0)
196
197
  ]),
197
198
  _: 1
198
199
  }, 8, ["model"])
199
200
  ]),
200
201
  _: 1
201
202
  }),
202
- (d(), h(je(e($e)), {
203
+ (d(), h(Ne(e(Ue)), {
203
204
  ref_key: "updateRef",
204
- ref: P,
205
+ ref: j,
205
206
  class: "main-footer",
206
207
  schema: e(r),
207
208
  table: e(y),
208
- layout: e(L),
209
+ layout: e(D),
209
210
  next: e(b),
210
- set: e(v),
211
+ set: e(p),
211
212
  route: e(T),
212
213
  onCopy: e(_e),
213
214
  onEdit: e(ge),
214
- onSubmit: e(ke),
215
- onClose: e(xe)
215
+ onSubmit: e(Se),
216
+ onClose: e(Re)
216
217
  }, null, 40, ["schema", "table", "layout", "next", "set", "route", "onCopy", "onEdit", "onSubmit", "onClose"]))
217
218
  ]),
218
- e(C) ? (d(), h(N, {
219
+ e(C) ? (d(), h(P, {
219
220
  key: 0,
220
221
  class: "side-form"
221
222
  }, {
222
223
  header: s(() => [
223
224
  m("div", Qe, [
224
- m("div", We, x(e(ue)("common.modify")) + " " + x(e(q)[e(R).show[0].name]), 1),
225
+ m("div", We, R(e(ue)("common.modify")) + " " + R(e(q)[e(x).show[0].name]), 1),
225
226
  m("div", {
226
227
  class: "row-close",
227
228
  onClick: t[4] || (t[4] = (o) => ee(C) ? C.value = !1 : C = !1)
@@ -233,18 +234,18 @@ const Je = { class: "ha-main-form" }, Qe = { class: "row-header" }, We = { class
233
234
  default: s(() => [
234
235
  g(z, null, {
235
236
  default: s(() => [
236
- g($, {
237
+ g(U, {
237
238
  size: "small",
238
239
  "label-width": "80px"
239
240
  }, {
240
241
  default: s(() => [
241
- (d(!0), F(le, null, te(e(R).show, (o) => (d(), h(Y, {
242
- style: Ne(o.control.height ? `height: ${o.control.height}px;` : ""),
242
+ (d(!0), M(le, null, te(e(x).show, (o) => (d(), h(Y, {
243
+ style: Pe(o.control.height ? `height: ${o.control.height}px;` : ""),
243
244
  rules: o.rules
244
245
  }, {
245
246
  label: s(() => [
246
- ae(x(e(Ae)(e(R).name, o.name)) + " ", 1),
247
- o.control.tooltip ? (d(), h(k, {
247
+ ae(R(e(Fe)(e(x).name, o.name)) + " ", 1),
248
+ o.control.tooltip ? (d(), h(S, {
248
249
  key: 0,
249
250
  trigger: "hover",
250
251
  placement: "top",
@@ -255,17 +256,17 @@ const Je = { class: "ha-main-form" }, Qe = { class: "row-header" }, We = { class
255
256
  m("i", { class: "fa fa-question-circle icon-question" }, null, -1)
256
257
  ])),
257
258
  default: s(() => [
258
- m("pre", null, x(o.control.tooltip.content), 1)
259
+ m("pre", null, R(o.control.tooltip.content), 1)
259
260
  ]),
260
261
  _: 2
261
- }, 1032, ["title"])) : B("", !0)
262
+ }, 1032, ["title"])) : $("", !0)
262
263
  ]),
263
264
  default: s(() => [
264
- g(Fe, {
265
+ g(Me, {
265
266
  schema: e(r),
266
- table: e(R),
267
+ table: e(x),
267
268
  field: o,
268
- set: e(v),
269
+ set: e(p),
269
270
  row: e(q)
270
271
  }, null, 8, ["schema", "table", "field", "set", "row"])
271
272
  ]),
@@ -279,26 +280,26 @@ const Je = { class: "ha-main-form" }, Qe = { class: "row-header" }, We = { class
279
280
  })
280
281
  ]),
281
282
  _: 1
282
- })) : B("", !0),
283
+ })) : $("", !0),
283
284
  e(i).page ? (d(), h(_, {
284
285
  key: 1,
285
286
  "destroy-on-close": "",
286
287
  "append-to-body": e(i).appendToBody,
287
- size: `${e(f).width ?? "60%"}`,
288
+ size: `${e(c).width ?? "60%"}`,
288
289
  modelValue: e(i).visible,
289
290
  "onUpdate:modelValue": t[5] || (t[5] = (o) => e(i).visible = o)
290
291
  }, {
291
292
  header: s(() => [
292
293
  m("div", Xe, [
293
- ae(x(e(b)[e(i).page].title) + " ", 1),
294
+ ae(R(e(b)[e(i).page].title) + " ", 1),
294
295
  m("a", {
295
296
  class: "drawer-copy",
296
- href: `${e(U).url.getToUrl(e(i).url)}`
297
- }, x(e(ue)("common.link")), 9, Ye)
297
+ href: `${e(K).url.getToUrl(e(i).url)}`
298
+ }, R(e(ue)("common.link")), 9, Ye)
298
299
  ])
299
300
  ]),
300
301
  default: s(() => [
301
- g(e(Me), {
302
+ g(e(Oe), {
302
303
  ref_key: "pageRef",
303
304
  ref: G,
304
305
  url: e(i).url,
@@ -307,11 +308,11 @@ const Je = { class: "ha-main-form" }, Qe = { class: "row-header" }, We = { class
307
308
  }, null, 8, ["url", "onSucceed", "onClose"])
308
309
  ]),
309
310
  _: 1
310
- }, 8, ["append-to-body", "size", "modelValue"])) : B("", !0)
311
+ }, 8, ["append-to-body", "size", "modelValue"])) : $("", !0)
311
312
  ], 2);
312
313
  };
313
314
  }
314
315
  });
315
316
  export {
316
- al as default
317
+ ol as default
317
318
  };
@@ -1,7 +1,8 @@
1
- import { defineComponent as q, toRefs as G, ref as c, onMounted as M, watch as O, openBlock as I, createElementBlock as J, createVNode as K, unref as i, createElementVNode as P, normalizeStyle as Q, nextTick as L } from "vue";
2
- import { n as U, m as W, e as X, d as C, l as Y, S as Z } from "./main-DymfKjqO.js";
3
- import { _ as ee } from "./SearchForm.vue_vue_type_style_index_0_lang-ByICIL6w.js";
4
- const ie = /* @__PURE__ */ q({
1
+ import { defineComponent as j, toRefs as q, ref as c, onMounted as G, watch as M, openBlock as O, createElementBlock as I, createVNode as J, unref as r, createElementVNode as K, normalizeStyle as P, nextTick as L } from "vue";
2
+ import { C as Q, d as W, p as X, U as C, a as Y, m as Z } from "./main-DxH9UW19.js";
3
+ import "./assets/moment-h96o7c8I.js";
4
+ import { _ as ee } from "./SearchForm.vue_vue_type_style_index_0_lang-Bv1_VqSl.js";
5
+ const se = /* @__PURE__ */ j({
5
6
  __name: "Statistic",
6
7
  props: {
7
8
  searchData: {},
@@ -17,12 +18,12 @@ const ie = /* @__PURE__ */ q({
17
18
  },
18
19
  emits: ["search"],
19
20
  setup(A, { expose: F, emit: z }) {
20
- let H = z, B = A, { route: E, module: T, schema: y, table: m, layout: l, next: te, set: u, searchData: x } = G(B), s = null, g = null, p = c(), d = c(), v = c(), S = c(), { app: b } = U.sys, V = (t) => {
21
+ let H = z, B = A, { route: E, module: T, schema: m, table: y, layout: l, next: te, set: u, searchData: p } = q(B), s = null, g = null, x = c(), d = c(), v = c(), b = c(), { app: S } = Q.sys, V = (t) => {
21
22
  D("search");
22
23
  }, D = (t, e = null) => {
23
- H(t, (r) => {
24
+ H(t, (i) => {
24
25
  L(() => {
25
- f(), e == null || e(r);
26
+ f(), e == null || e(i);
26
27
  });
27
28
  });
28
29
  }, f = () => {
@@ -60,8 +61,8 @@ const ie = /* @__PURE__ */ q({
60
61
  //坐标
61
62
  series: []
62
63
  };
63
- b.theme == "dark" && (e.title.textStyle.color = "rgba(255,255,255,0.8)", e.legend.textStyle.color = "rgba(255,255,255,.72)", e.xAxis.axisLabel.color = "rgba(255,255,255,.72)", e.yAxis.splitLine.lineStyle.color = "rgba(110,117,130,0.2)", e.yAxis.axisLabel.color = "rgba(255,255,255,.72)");
64
- let r = l.value.fields.find((a) => a.group && a.name != l.value.date), k = m.value.fields.find((a) => a.name == r.name).control.data.data;
64
+ S.theme == "dark" && (e.title.textStyle.color = "rgba(255,255,255,0.8)", e.legend.textStyle.color = "rgba(255,255,255,.72)", e.xAxis.axisLabel.color = "rgba(255,255,255,.72)", e.yAxis.splitLine.lineStyle.color = "rgba(110,117,130,0.2)", e.yAxis.axisLabel.color = "rgba(255,255,255,.72)");
65
+ let i = l.value.fields.find((a) => a.group && a.name != l.value.date), k = y.value.fields.find((a) => a.name == i.name).control.data.data;
65
66
  for (let a = 0; a < k.length; a++) {
66
67
  let o = k[a];
67
68
  o.color || Y.error("颜色字段不能为空");
@@ -90,7 +91,7 @@ const ie = /* @__PURE__ */ q({
90
91
  }
91
92
  }
92
93
  };
93
- b.theme == "dark" && (n.areaStyle.color = {
94
+ S.theme == "dark" && (n.areaStyle.color = {
94
95
  type: "linear",
95
96
  x: 0,
96
97
  y: 0,
@@ -105,49 +106,49 @@ const ie = /* @__PURE__ */ q({
105
106
  global: !0
106
107
  });
107
108
  for (let h = 0; h < t.length; h++) {
108
- let j = t[h], _ = u.value[l.value.table].find((R) => R[r.name] == o.value && R[l.value.date] == j);
109
- _ == null ? n.data.push(null) : n.data.push(_[l.value.value]);
109
+ let $ = t[h], R = u.value[l.value.table].find((_) => _[i.name] == o.value && _[l.value.date] == $);
110
+ R == null ? n.data.push(null) : n.data.push(R[l.value.value]);
110
111
  }
111
112
  e.series.push(n), e.legend.data.push(o.text);
112
113
  }
113
114
  e.xAxis.data.push(...t), s.setOption(e);
114
115
  }, w = async () => {
115
- var r;
116
- let t = C.dom.getHeight([(r = d.value) == null ? void 0 : r.$el]), e = S.value.getBoundingClientRect();
117
- p.value = e.height - t - 10 - 1, await L();
116
+ var i;
117
+ let t = C.dom.getHeight([(i = d.value) == null ? void 0 : i.$el]), e = b.value.getBoundingClientRect();
118
+ x.value = e.height - t - 10 - 1, await L();
118
119
  }, N = async (t) => {
119
120
  Z.triggerResize(d.value, t), await w(), s == null || s.resize();
120
- }, $ = async () => {
121
+ }, U = async () => {
121
122
  await w(), s = g.init(v.value), f();
122
123
  };
123
- return M(async () => {
124
- x.value = W.getConditionForm(y.value, E.value.query.condition), g = await X.getECharts(), await $();
125
- }), O(() => l.value, (t, e) => {
124
+ return G(async () => {
125
+ p.value = W.getConditionForm(m.value, E.value.query.condition), g = await X.getECharts(), await U();
126
+ }), M(() => l.value, (t, e) => {
126
127
  f();
127
- }), F({ onResize: N }), (t, e) => (I(), J("div", {
128
+ }), F({ onResize: N }), (t, e) => (O(), I("div", {
128
129
  ref_key: "statisticRef",
129
- ref: S,
130
+ ref: b,
130
131
  class: "ha-statistic-layout"
131
132
  }, [
132
- K(ee, {
133
+ J(ee, {
133
134
  ref_key: "searchRef",
134
135
  ref: d,
135
- schema: i(y),
136
- table: i(m),
137
- layout: i(l),
138
- set: i(u),
139
- "search-data": i(x),
140
- onChange: i(V)
136
+ schema: r(m),
137
+ table: r(y),
138
+ layout: r(l),
139
+ set: r(u),
140
+ "search-data": r(p),
141
+ onChange: r(V)
141
142
  }, null, 8, ["schema", "table", "layout", "set", "search-data", "onChange"]),
142
- P("div", {
143
+ K("div", {
143
144
  ref_key: "chartRef",
144
145
  ref: v,
145
146
  class: "chart",
146
- style: Q({ height: i(p) + "px" })
147
+ style: P({ height: r(x) + "px" })
147
148
  }, null, 4)
148
149
  ], 512));
149
150
  }
150
151
  });
151
152
  export {
152
- ie as default
153
+ se as default
153
154
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./Stock.vue_vue_type_style_index_0_lang-D5RR2MRP.js";
1
+ import { _ as f } from "./Stock.vue_vue_type_style_index_0_lang-Dpw8BlLu.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as c, toRefs as m, openBlock as u, createBlock as p, unref as e } from "vue";
2
- import { _ } from "./Stock.vue_vue_type_style_index_0_lang-D5RR2MRP.js";
2
+ import { _ } from "./Stock.vue_vue_type_style_index_0_lang-Dpw8BlLu.js";
3
3
  const b = /* @__PURE__ */ c({
4
4
  __name: "Stock",
5
5
  props: {
@@ -1,6 +1,7 @@
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__ */ _({
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-DxH9UW19.js";
3
+ import "./assets/moment-h96o7c8I.js";
4
+ const J = /* @__PURE__ */ F({
4
5
  __name: "Stock",
5
6
  props: {
6
7
  searchData: {},
@@ -15,18 +16,18 @@ const Q = /* @__PURE__ */ _({
15
16
  win: {}
16
17
  },
17
18
  setup(k) {
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
+ 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) => {
20
+ let o = U.array.orderBy(t, (i) => i[n.value.time], !1), e = [], l = [], r = [];
20
21
  for (let i = 0; i < o.length; i++) {
21
22
  let a = o[i];
22
23
  e.push(a[n.value.time]);
23
24
  let d = parseFloat(a[n.value.open]), s = parseFloat(a[n.value.close]);
24
25
  l.push([d, s, parseFloat(a[n.value.low]), parseFloat(a[n.value.high])]);
25
- let F = {
26
+ let C = {
26
27
  value: parseFloat(a[n.value.volumn]),
27
- itemStyle: { color: s > d ? p : x }
28
+ itemStyle: { color: s > d ? y : x }
28
29
  };
29
- r.push(F);
30
+ r.push(C);
30
31
  }
31
32
  return { times: e, values: l, volumes: r };
32
33
  }, m = (t, o) => {
@@ -42,7 +43,7 @@ const Q = /* @__PURE__ */ _({
42
43
  e.push(i / o);
43
44
  }
44
45
  return e;
45
- }, I = (t) => {
46
+ }, _ = (t) => {
46
47
  let o = n.value.trade, e = {
47
48
  animation: !1,
48
49
  //关闭动画,提升性能
@@ -147,9 +148,9 @@ const Q = /* @__PURE__ */ _({
147
148
  //网格索引,表示使用第2个网格的配置
148
149
  data: t.values,
149
150
  itemStyle: {
150
- color: p,
151
+ color: y,
151
152
  color0: x,
152
- borderColor: p,
153
+ borderColor: y,
153
154
  borderColor0: x
154
155
  },
155
156
  markPoint: {
@@ -267,18 +268,18 @@ const Q = /* @__PURE__ */ _({
267
268
  let r = Math.max(e[0] - e[2], e[3] - e[0]) / e[0];
268
269
  o += r;
269
270
  }), o / t.length * 100;
270
- }, Z = (t) => {
271
- let o = I(t);
272
- y || (y = c.init(w.value)), y.setOption(o);
271
+ }, I = (t) => {
272
+ let o = _(t);
273
+ p || (p = c.init(w.value)), p.setOption(o);
273
274
  let e = t.values, l = e.reverse();
274
275
  u.history = g(e), u.week = g(l.slice(0, 7)), u.month = g(l.slice(0, 30));
275
- }, C = () => {
276
+ }, Z = () => {
276
277
  let t = h.value[v.value.name];
277
- t.length > 0 && Z(M(t));
278
+ t.length > 0 && I(M(t));
278
279
  };
279
280
  return B(async () => {
280
- c = await O.getECharts(), C();
281
- }), (t, o) => (E(), G(f(K), null, {
281
+ c = await K.getECharts(), Z();
282
+ }), (t, o) => (E(), G(f(N), null, {
282
283
  default: P(() => [
283
284
  A("div", {
284
285
  ref_key: "chartRef",
@@ -294,5 +295,5 @@ const Q = /* @__PURE__ */ _({
294
295
  }
295
296
  });
296
297
  export {
297
- Q as _
298
+ J as _
298
299
  };
@@ -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-CJwZPQz6.js")), n = a, { schema: m, table: s, field: i, set: d, row: p, modelValue: t } = c(n);
13
+ let r = f(() => import("./Dictionary-Xsj_Qorw.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),