halo-pc 1.0.39 → 1.0.41

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-DZlstqWL.js → Article-BMW_FzdK.js} +23 -21
  2. package/dist/{ArticleFooter-BkduiKh8.js → ArticleFooter-7iPkMQaX.js} +1 -1
  3. package/dist/{Autocomplete-bc-9LfGa.js → Autocomplete-B6Mwp9rT.js} +1 -1
  4. package/dist/{Autocomplete-DMKnFezN.js → Autocomplete-C-El55Lz.js} +1 -1
  5. package/dist/{Autocomplete-0Yf6lJQ7.js → Autocomplete-PZTjEBIx.js} +1 -1
  6. package/dist/{CSharp-q8eOBm4y.js → CSharp-BQUrQwua.js} +1 -1
  7. package/dist/{Calender-CseGNCuW.js → Calender-CJXR7uhM.js} +1 -1
  8. package/dist/{Callback-D_dFJlfv.js → Callback-CyDW9WU2.js} +1 -1
  9. package/dist/{Cascader-BG5ev35M.js → Cascader-CFc_8QSm.js} +1 -1
  10. package/dist/{Cascader-Dzeoz7ss.js → Cascader-DMQjalNv.js} +2 -2
  11. package/dist/{Checkbox-dw8RNAGt.js → Checkbox-aU8e779g.js} +1 -1
  12. package/dist/{Checkbox-CsCA6iQb.js → Checkbox-pV01os-T.js} +1 -1
  13. package/dist/Code-C0Kxulod.js +4 -0
  14. package/dist/{Code-C5QfTMNw.js → Code-C4pIa8BE.js} +2 -2
  15. package/dist/{Code-BRe68AIa.js → Code-CCJx9RSm.js} +2 -2
  16. package/dist/{Code-BE8YLGaE.js → Code-kDBbVC1W.js} +10 -8
  17. package/dist/{Code.vue_vue_type_style_index_0_lang-D2hJ7lYF.js → Code.vue_vue_type_style_index_0_lang-36NN7tgP.js} +12 -10
  18. package/dist/{Column-C-NHhT2v.js → Column-BebDf5Z9.js} +9 -9
  19. package/dist/{Comment-kTmfTlbF.js → Comment-BgfD9WtL.js} +5 -3
  20. package/dist/{Compare-DVWaiCUC.js → Compare-BZucuvFP.js} +1 -1
  21. package/dist/{Compare-DlyQBCat.js → Compare-D-Byn_Gq.js} +1 -1
  22. package/dist/{Copy-DQFJy3uX.js → Copy-DW4jSNQi.js} +1 -1
  23. package/dist/Custom-DIF-RYi3.js +55 -0
  24. package/dist/{DataExport-Um1wXyRe.js → DataExport-CyQy2xjO.js} +1 -1
  25. package/dist/{DataExport.vue_vue_type_script_setup_true_lang-2YoqwEmA.js → DataExport.vue_vue_type_script_setup_true_lang-C4n6xWcP.js} +1 -1
  26. package/dist/{DataImport-CPMLup4P.js → DataImport-BVF83UsQ.js} +1 -1
  27. package/dist/{DataImport.vue_vue_type_script_setup_true_lang-DsCp0vWo.js → DataImport.vue_vue_type_script_setup_true_lang-BZhFLOqB.js} +1 -1
  28. package/dist/{Date-Cj9lCW_Y.js → Date-CqpFvbYZ.js} +1 -1
  29. package/dist/{Date-BhZ8ltgp.js → Date-g1XKWU4b.js} +1 -1
  30. package/dist/{DateRange-Bw_Oyawz.js → DateRange-B2afkdbT.js} +1 -1
  31. package/dist/{DateTime-BU6JaBPk.js → DateTime-D_x_wBZR.js} +1 -1
  32. package/dist/{DateTime-Cv-SRE88.js → DateTime-Zi3vtH77.js} +1 -1
  33. package/dist/{DateTimeRange-B4Ah6LQY.js → DateTimeRange-BFWM_U7H.js} +1 -1
  34. package/dist/{Daterange-CSZe4XGO.js → Daterange-tXA0b0Ak.js} +1 -1
  35. package/dist/{Decimal-DSDuwW9Z.js → Decimal-DKQ38XS_.js} +1 -1
  36. package/dist/{Delete-CjPgg-5G.js → Delete-BOkBpAGN.js} +1 -1
  37. package/dist/{Detail-gj--ICe8.js → Detail-SWgERqKG.js} +1 -1
  38. package/dist/{Dictionary-Ck_02mWa.js → Dictionary-Xsj_Qorw.js} +2 -2
  39. package/dist/{Email-BSQbDvh1.js → Email-DILPnLkb.js} +1 -1
  40. package/dist/{File-FW4usX43.js → File-BDUTK7hV.js} +12 -10
  41. package/dist/{Image-DiAw_6jM.js → Image-Yx3ZHHJK.js} +1 -1
  42. package/dist/{Index-hgTZyQps.js → Index-BTa4YIN9.js} +1 -1
  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-MUgqP8jJ.js → Index-CiQQmYeA.js} +1 -1
  47. package/dist/Index-DG7Hovsx.js +4 -0
  48. package/dist/{Index-BibWDRoP.js → Index-DeYqTT9Q.js} +1 -1
  49. package/dist/{Index-Dq5Vp-ts.js → Index-WVLyjyqt.js} +2 -2
  50. package/dist/{Index.vue_vue_type_script_setup_true_lang-CiBvC9Cu.js → Index.vue_vue_type_script_setup_true_lang-42C0EEto.js} +21 -21
  51. package/dist/Index.vue_vue_type_script_setup_true_lang-DWMiv0dC.js +86 -0
  52. package/dist/{Install-Cpp3BDCS.js → Install-DW5uDsXF.js} +1 -1
  53. package/dist/{Int-DcQsipaO.js → Int-BM4sbZvh.js} +1 -1
  54. package/dist/{Int-Ck1SvK7R.js → Int-BrFE_Hmm.js} +1 -1
  55. package/dist/List-DWjTqrJR.js +72 -0
  56. package/dist/{Maintaince-l-Tdveur.js → Maintaince-DF3nu9Jd.js} +2 -2
  57. package/dist/{Markdown-BEUz4VZ7.js → Markdown-BC8l7O_U.js} +1 -1
  58. package/dist/{Month-DmUiyF1G.js → Month-DRa9o-WC.js} +1 -1
  59. package/dist/{Month-DJGGGrZr.js → Month-QG6OiiLU.js} +1 -1
  60. package/dist/{Month-DkafiRHq.js → Month-Y0kLXgV7.js} +1 -1
  61. package/dist/{Normal-ACcTHsXb.js → Normal-CSy3DFPH.js} +13 -11
  62. package/dist/Paging-BYccIXmC.js +95 -0
  63. package/dist/{PagingHeader-DDkmqv98.js → PagingHeader-U-oJ1TQE.js} +4 -2
  64. package/dist/{PagingRow-B4Nfa2Vk.js → PagingRow-BmokRXX3.js} +1 -1
  65. package/dist/{Racebar-LfnPLNOY.js → Racebar-BvFHNGb8.js} +24 -22
  66. package/dist/{Radio-DcEZI4m7.js → Radio-CjfXrTOE.js} +1 -1
  67. package/dist/{Register-B4x_zgyH.js → Register-BG-3_Q2E.js} +6 -6
  68. package/dist/{RichText-B1Iogpgr.js → RichText-C88f59ao.js} +2 -2
  69. package/dist/{SearchForm-DU5QLTbe.js → SearchForm-C0zqD7UP.js} +1 -1
  70. package/dist/{SearchForm.vue_vue_type_style_index_0_lang-BHZrYG6_.js → SearchForm.vue_vue_type_style_index_0_lang-Bv1_VqSl.js} +8 -8
  71. package/dist/SearchHeader-e2LOidgU.js +4 -0
  72. package/dist/SearchHeader.vue_vue_type_style_index_0_lang-DebuWiG6.js +60 -0
  73. package/dist/{Select-DrDDVJtz.js → Select-CfIvGDPS.js} +1 -1
  74. package/dist/{Select-CMxubJIV.js → Select-CvP_zGxM.js} +1 -1
  75. package/dist/{Select-C3gUeHmu.js → Select-Cz6MPDCC.js} +1 -1
  76. package/dist/Single-p-8OfzhQ.js +318 -0
  77. package/dist/{Statistic-SvjQ7uGI.js → Statistic-BIKfbZCI.js} +29 -27
  78. package/dist/{Statistic-CTxHNeof.js → Statistic-Dxa-CZ8G.js} +10 -8
  79. package/dist/{Stock-XZkBSQw1.js → Stock-B7RP-SuF.js} +1 -1
  80. package/dist/{Stock-C2b9p3-N.js → Stock-BhOP8J0c.js} +8 -6
  81. package/dist/{Stock.vue_vue_type_style_index_0_lang-DwxyyM7p.js → Stock.vue_vue_type_style_index_0_lang-Dpw8BlLu.js} +4 -2
  82. package/dist/{Switch-PJT-5dDt.js → Switch-BcDhe4_E.js} +1 -1
  83. package/dist/{Table-Dy1H2IHN.js → Table-Cy7FarYr.js} +128 -121
  84. package/dist/{Table-CkoZ8OjZ.js → Table-DK-TaejU.js} +6 -4
  85. package/dist/{Text-Bt5jL_KV.js → Text-B580p9od.js} +1 -1
  86. package/dist/Text-D89aQLxL.js +4 -0
  87. package/dist/{Text-CytgR_l_.js → Text-YNB0It4-.js} +1 -1
  88. package/dist/{Text.vue_vue_type_style_index_0_lang-CgxtY5ch.js → Text.vue_vue_type_style_index_0_lang-Dokzd_qM.js} +2 -2
  89. package/dist/{TextLink-DINdFWzs.js → TextLink-CI-AIgdm.js} +1 -1
  90. package/dist/{Textarea-DakZXfN6.js → Textarea-86C9lCtg.js} +1 -1
  91. package/dist/{Time-Bn1Av2wo.js → Time-BgArfSc6.js} +1 -1
  92. package/dist/{Timeline-B32cUvwI.js → Timeline-O_jWjdxT.js} +17 -15
  93. package/dist/{Tree-BItAXuSC.js → Tree-BfFRW-xZ.js} +6 -4
  94. package/dist/{Tree-BGfHm4k_.js → Tree-DayADkaC.js} +21 -19
  95. package/dist/{TreeNode-DmiM_a2n.js → TreeNode-BZp8w6M5.js} +1 -1
  96. package/dist/{Update-DSTmaeT8.js → Update-Bcdz87R4.js} +1 -1
  97. package/dist/{UpdateChild-BgBJJwT3.js → UpdateChild-YzPMnj_r.js} +1 -1
  98. package/dist/{Upload-DMqlcxCt.js → Upload-DU5VOqXj.js} +1 -1
  99. package/dist/{Upload-DpQu3z1T.js → Upload-Dj5nSsug.js} +2 -2
  100. package/dist/{Year-Cv92J5pF.js → Year-B3E0kOiA.js} +1 -1
  101. package/dist/{Year-DckBNPK_.js → Year-CcbzIuwy.js} +1 -1
  102. package/dist/assets/{liquidjs-C2HVw1Ra.js → liquidjs-BfOWWjtJ.js} +119 -113
  103. package/dist/{main-KNkwb0pq.js → main-DxH9UW19.js} +3580 -3372
  104. package/dist/main.js +155 -152
  105. package/dist/style.css +1 -1
  106. package/esm/coms/commons/Table.vue.d.ts +1 -1
  107. package/esm/coms/drivers/@types/CrudProps.d.ts +2 -2
  108. package/esm/coms/drivers/Index.vue.d.ts +2 -2
  109. package/esm/coms/globals/Menu.vue.d.ts +1 -1
  110. package/esm/coms/globals/MenuItem.vue.d.ts +1 -1
  111. package/esm/coms/headers/@types/HeaderProps.d.ts +1 -1
  112. package/esm/coms/headers/Index.vue.d.ts +1 -1
  113. package/esm/coms/layouts/Index.vue.d.ts +3 -3
  114. package/esm/coms/layouts/Side.vue.d.ts +2 -2
  115. package/esm/coms/layouts/Top.vue.d.ts +1 -1
  116. package/esm/coms/lists/Racebar.vue.d.ts +1 -1
  117. package/esm/coms/lists/Statistic.vue.d.ts +1 -1
  118. package/esm/coms/lists/Tree.vue.d.ts +3 -3
  119. package/esm/coms/pages/@types/SchemaProps.d.ts +2 -1
  120. package/esm/coms/pages/Column.vue.d.ts +1 -1
  121. package/esm/coms/pages/Custom.vue.d.ts +6 -6
  122. package/esm/coms/pages/List.vue.d.ts +5 -3
  123. package/esm/coms/pages/Paging.vue.d.ts +5 -3
  124. package/esm/coms/pages/Single.vue.d.ts +3 -3
  125. package/esm/coms/pagings/@types/SearchHeaderProps.d.ts +9 -0
  126. package/esm/coms/pagings/@types/index.d.ts +2 -2
  127. package/esm/coms/pagings/Article.vue.d.ts +2 -2
  128. package/esm/coms/pagings/Index.vue.d.ts +4 -2
  129. package/esm/coms/pagings/SearchForm.vue.d.ts +1 -1
  130. package/esm/coms/pagings/SearchHeader.vue.d.ts +19 -0
  131. package/esm/coms/pagings/Table.vue.d.ts +4 -2
  132. package/esm/coms/partials/@types/PagingHeaderProps.d.ts +2 -1
  133. package/esm/coms/singles/Index.vue.d.ts +1 -1
  134. package/esm/coms/singles/Normal.vue.d.ts +1 -1
  135. package/esm/coms/singles/Table.vue.d.ts +1 -1
  136. package/esm/coms/singles/Tree.vue.d.ts +1 -1
  137. package/package.json +6 -6
  138. package/dist/Code-_XoN6vQE.js +0 -4
  139. package/dist/Custom-D5HoD0nQ.js +0 -59
  140. package/dist/Index-B_5hshjJ.js +0 -4
  141. package/dist/Index-BtlD6ocN.js +0 -4
  142. package/dist/Index-C3f38zw0.js +0 -4
  143. package/dist/Index-CB_TnEaw.js +0 -4
  144. package/dist/Index.vue_vue_type_script_setup_true_lang-BzPCaYCg.js +0 -82
  145. package/dist/List-hWB41wF_.js +0 -72
  146. package/dist/Paging-Vfz2RDBo.js +0 -93
  147. package/dist/SearchFooter-CmM8qnxP.js +0 -4
  148. package/dist/SearchFooter.vue_vue_type_style_index_0_lang-fRS96yRX.js +0 -55
  149. package/dist/Single-De-YyuVk.js +0 -318
  150. package/dist/Text-vHouxGHU.js +0 -4
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as x, toRefs as y, resolveComponent as _, openBlock as r, createElementBlock as c, unref as e, createCommentVNode as a, createBlock as g, withCtx as B, createElementVNode as R } from "vue";
2
- import { t as p } from "./main-KNkwb0pq.js";
2
+ import { t as p } from "./main-DxH9UW19.js";
3
3
  import "./assets/moment-h96o7c8I.js";
4
4
  const E = { class: "paging-row" }, z = /* @__PURE__ */ x({
5
5
  __name: "PagingRow",
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as H, toRefs as I, ref as y, onMounted as M, onUnmounted as $, openBlock as F, createElementBlock as N, createVNode as O, unref as d, createElementVNode as V, nextTick as P } from "vue";
2
2
  import * as T from "echarts";
3
- import { C as W, U as m } from "./main-KNkwb0pq.js";
4
- import "./assets/liquidjs-C2HVw1Ra.js";
3
+ import { C as W, U as m, m as j } from "./main-DxH9UW19.js";
4
+ import "./assets/liquidjs-BfOWWjtJ.js";
5
5
  import "./assets/underscore-B0BCaBxV.js";
6
6
  import "./assets/file-saver-CwlpTZSc.js";
7
7
  import "./assets/clone-BZn0cTAu.js";
8
8
  import "./assets/underscore.string-DVXD2SZo.js";
9
9
  import "./assets/moment-h96o7c8I.js";
10
- import { _ as j } from "./SearchForm.vue_vue_type_style_index_0_lang-BHZrYG6_.js";
11
- const re = /* @__PURE__ */ H({
10
+ import { _ as q } from "./SearchForm.vue_vue_type_style_index_0_lang-Bv1_VqSl.js";
11
+ const oe = /* @__PURE__ */ H({
12
12
  __name: "Racebar",
13
13
  props: {
14
14
  searchData: {},
@@ -18,27 +18,29 @@ const re = /* @__PURE__ */ H({
18
18
  table: {},
19
19
  layout: {},
20
20
  next: {},
21
- set: {}
21
+ set: {},
22
+ url: {},
23
+ win: {}
22
24
  },
23
25
  emits: ["search"],
24
- setup(R, { expose: k, emit: q }) {
25
- let w = R, { route: G, module: J, schema: A, table: D, layout: e, set: f, searchData: L } = I(w), h = y(), x = y(), b = y();
26
+ setup(z, { expose: k, emit: G }) {
27
+ let w = z, { route: J, module: K, schema: A, table: R, layout: e, set: f, searchData: L } = I(w), h = y(), x = y(), b = y();
26
28
  y({ width: null, height: null });
27
29
  let o = null, S = null, s = [], n = 0, a, { app: U } = W.sys, B = () => {
28
- }, z = () => {
30
+ }, D = () => {
29
31
  var t;
30
- let l = m.dom.getHeight(b.value), p = m.dom.getHeight((t = x.value) == null ? void 0 : t.$el), g = m.dom.getWidth(b.value);
31
- g && (h.value.style.width = Math.floor(g) + "px");
32
- let v = l - p - 1;
32
+ let l = m.dom.getHeight(b.value), g = m.dom.getHeight((t = x.value) == null ? void 0 : t.$el), p = m.dom.getWidth(b.value);
33
+ p && (h.value.style.width = Math.floor(p) + "px");
34
+ let v = l - g - 1;
33
35
  v && (h.value.style.height = v + "px");
34
36
  }, C = (l) => {
35
- x.value.resize(l), P(() => {
36
- z(), o == null || o.resize();
37
+ j.triggerResize(x.value, l), P(() => {
38
+ D(), o == null || o.resize();
37
39
  });
38
40
  }, E = () => {
39
- let l = m.array.distinct(f.value[D.value.name], (t) => t[e.value.legend]);
41
+ let l = m.array.distinct(f.value[R.value.name], (t) => t[e.value.legend]);
40
42
  s = m.array.distinct(f.value[e.value.table], (t) => t[e.value.date]);
41
- function p() {
43
+ function g() {
42
44
  let t = s[n], i = [];
43
45
  for (let r = 0; r < l.length; ++r) {
44
46
  let _ = l[r], u = f.value[e.value.table].find((c) => c[e.value.legend] == _ && c[e.value.date] == t);
@@ -46,7 +48,7 @@ const re = /* @__PURE__ */ H({
46
48
  }
47
49
  return i;
48
50
  }
49
- let g = p();
51
+ let p = g();
50
52
  a = {
51
53
  title: { textStyle: { color: "#777" } },
52
54
  tooltip: { axisPointer: { type: "shadow" } },
@@ -85,7 +87,7 @@ const re = /* @__PURE__ */ H({
85
87
  realtimeSort: !0,
86
88
  name: e.value.title,
87
89
  type: "bar",
88
- data: g,
90
+ data: p,
89
91
  label: {
90
92
  show: !0,
91
93
  precision: 0,
@@ -138,19 +140,19 @@ const re = /* @__PURE__ */ H({
138
140
  }, 3e3);
139
141
  };
140
142
  return M(() => {
141
- z(), o = T.init(h.value), E();
143
+ D(), o = T.init(h.value), E();
142
144
  }), $(() => {
143
145
  clearInterval(S), o.dispose();
144
- }), k({ resize: C }), (l, p) => (F(), N("div", {
146
+ }), k({ onResize: C }), (l, g) => (F(), N("div", {
145
147
  ref_key: "raceBarRef",
146
148
  ref: b,
147
149
  class: "race-bar-layout"
148
150
  }, [
149
- O(j, {
151
+ O(q, {
150
152
  ref_key: "searchRef",
151
153
  ref: x,
152
154
  schema: d(A),
153
- table: d(D),
155
+ table: d(R),
154
156
  layout: d(e),
155
157
  "search-data": d(L),
156
158
  onSearch: d(B)
@@ -164,5 +166,5 @@ const re = /* @__PURE__ */ H({
164
166
  }
165
167
  });
166
168
  export {
167
- re as default
169
+ oe as default
168
170
  };
@@ -10,7 +10,7 @@ const x = /* @__PURE__ */ p({
10
10
  modelValue: {}
11
11
  },
12
12
  setup(a) {
13
- let r = u(() => import("./Dictionary-Ck_02mWa.js")), s = a, { schema: m, table: n, field: d, set: i, row: f, modelValue: l } = c(s);
13
+ let r = u(() => import("./Dictionary-Xsj_Qorw.js")), s = a, { schema: m, table: n, field: d, set: i, row: f, modelValue: l } = c(s);
14
14
  return (_, o) => (V(), b(e(r), {
15
15
  schema: e(m),
16
16
  table: e(n),
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as I, ref as i, onMounted as Q, watch as Z, resolveComponent as m, openBlock as w, createElementBlock as F, createVNode as f, unref as l, withCtx as p, createElementVNode as r, toDisplayString as G, isRef as V, createBlock as y, withKeys as j, normalizeClass as T, withModifiers as J, createTextVNode as W, nextTick as U } from "vue";
2
2
  import { useRoute as X } from "vue-router";
3
- import { i as Y, O as ee, P as le, t as te, U as g, h as B, r as se } from "./main-KNkwb0pq.js";
3
+ import { i as Y, O as ee, P as le, t as te, U as g, h as B, r as se } from "./main-DxH9UW19.js";
4
4
  import "./assets/moment-h96o7c8I.js";
5
5
  import "./assets/intro.js-Cg1adLK7.js";
6
6
  const oe = { class: "login-container" }, ae = { class: "title-container" }, re = { class: "title" }, ne = ["innerHTML"], we = /* @__PURE__ */ I({
7
7
  __name: "Register",
8
8
  setup(ie) {
9
- let b = i(!1), n = i({ email: "", password: "", confirmPassword: "", position: 0 }), u = i("password"), a = i(!1), _ = i(!1), v = i({ jigsaw: null, content: null }), h = i(), R = i(), k = i(), C = i(), K = X(), q = (s, e, t) => {
9
+ let b = i(!1), n = i({ email: "", password: "", confirmPassword: "", position: 0 }), u = i("password"), a = i(!1), _ = i(!1), v = i({ jigsaw: null, content: null }), R = i(), h = i(), k = i(), C = i(), K = X(), q = (s, e, t) => {
10
10
  g.string.isEmail(e) ? t() : t(new Error("邮箱格式不正确"));
11
11
  }, M = (s, e, t) => {
12
12
  g.string.isPassword(e) ? t() : t(new Error("密码格式不正确"));
@@ -20,7 +20,7 @@ const oe = { class: "login-container" }, ae = { class: "title-container" }, re =
20
20
  k.value.focus();
21
21
  });
22
22
  }, L = () => {
23
- h.value.validate((s) => {
23
+ R.value.validate((s) => {
24
24
  if (!s)
25
25
  return !1;
26
26
  b.value = !0;
@@ -43,7 +43,7 @@ const oe = { class: "login-container" }, ae = { class: "title-container" }, re =
43
43
  });
44
44
  };
45
45
  return Q(() => {
46
- Y.setI18nTitle("common.register"), E(), n.value.email == "" ? R.value.focus() : n.value.password == "" && k.value.focus();
46
+ Y.setI18nTitle("common.register"), E(), n.value.email == "" ? h.value.focus() : n.value.password == "" && k.value.focus();
47
47
  }), Z(K, function(s) {
48
48
  const e = s.query;
49
49
  e && $(e);
@@ -52,7 +52,7 @@ const oe = { class: "login-container" }, ae = { class: "title-container" }, re =
52
52
  return w(), F("div", oe, [
53
53
  f(S, {
54
54
  ref_key: "formRef",
55
- ref: h,
55
+ ref: R,
56
56
  class: "login-form",
57
57
  autocomplete: "on",
58
58
  "label-position": "left",
@@ -72,7 +72,7 @@ const oe = { class: "login-container" }, ae = { class: "title-container" }, re =
72
72
  ], -1)),
73
73
  f(t, {
74
74
  ref_key: "emailRef",
75
- ref: R,
75
+ ref: h,
76
76
  modelValue: l(n).email,
77
77
  "onUpdate:modelValue": e[0] || (e[0] = (o) => l(n).email = o),
78
78
  placeholder: "邮箱",
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as g, mergeModels as x, toRefs as S, useModel as M, ref as d, onMounted as _, computed as c, watch as f, openBlock as w, createBlock as R, unref as r, normalizeStyle as b, isRef as k } from "vue";
2
- import { s as B } from "./main-KNkwb0pq.js";
3
- import "./assets/liquidjs-C2HVw1Ra.js";
2
+ import { s as B } from "./main-DxH9UW19.js";
3
+ import "./assets/liquidjs-BfOWWjtJ.js";
4
4
  import "./assets/underscore-B0BCaBxV.js";
5
5
  import "./assets/file-saver-CwlpTZSc.js";
6
6
  import "./assets/clone-BZn0cTAu.js";
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./SearchForm.vue_vue_type_style_index_0_lang-BHZrYG6_.js";
1
+ import { _ as f } from "./SearchForm.vue_vue_type_style_index_0_lang-Bv1_VqSl.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as I, toRefs as J, ref as p, onMounted as K, nextTick as P, computed as B, watch as Q, resolveComponent as m, openBlock as n, createBlock as i, withCtx as r, unref as a, withModifiers as X, createElementBlock as v, Fragment as g, renderList as x, createVNode as w, createTextVNode as M, toDisplayString as Y, createCommentVNode as Z } from "vue";
2
- import { U as ee, d as N, j as te, D as ae } from "./main-KNkwb0pq.js";
2
+ import { U as ee, d as N, j as te, D as ae } from "./main-DxH9UW19.js";
3
3
  import "./assets/moment-h96o7c8I.js";
4
4
  const ue = /* @__PURE__ */ I({
5
5
  __name: "SearchForm",
@@ -13,15 +13,15 @@ const ue = /* @__PURE__ */ I({
13
13
  setup(T, { expose: W, emit: j }) {
14
14
  let C = j, E = T, { schema: F, table: u, layout: V, searchData: b } = J(E), k = p(), y = p(), L = p(), d = p(), $ = (e) => {
15
15
  C("change", e);
16
- }, S = (e = null) => {
16
+ }, R = (e = null) => {
17
17
  C("submit");
18
18
  }, z = (e, t) => {
19
19
  let l = e == "*" ? null : e;
20
- b.value[u.value.name][t.name] = l, S();
21
- }, R = () => {
20
+ b.value[u.value.name][t.name] = l, R();
21
+ }, S = () => {
22
22
  k.value && (y.value = k.value.$el.clientWidth);
23
23
  }, O = (e) => {
24
- R();
24
+ S();
25
25
  }, D = () => {
26
26
  let e = V.value.tabs;
27
27
  if (e)
@@ -31,7 +31,7 @@ const ue = /* @__PURE__ */ I({
31
31
  }
32
32
  };
33
33
  d.value = ee.object.clone(b.value), D(), K(async () => {
34
- R(), await P(), C("mounted");
34
+ S(), await P(), C("mounted");
35
35
  });
36
36
  let q = B(() => {
37
37
  if (!y.value)
@@ -47,7 +47,7 @@ const ue = /* @__PURE__ */ I({
47
47
  });
48
48
  return Q(() => b.value, (e, t) => {
49
49
  D();
50
- }), W({ resize: O }), (e, t) => {
50
+ }), W({ onResize: O }), (e, t) => {
51
51
  const l = m("el-radio-button"), c = m("el-radio-group"), f = m("el-form-item"), _ = m("el-col"), A = m("el-row"), G = m("el-form"), H = m("el-scrollbar");
52
52
  return n(), i(H, {
53
53
  "max-height": "200px",
@@ -118,7 +118,7 @@ const ue = /* @__PURE__ */ I({
118
118
  field: h,
119
119
  "search-data": a(b),
120
120
  onChange: a($),
121
- onSubmit: a(S)
121
+ onSubmit: a(R)
122
122
  }, null, 8, ["schema", "table", "field", "search-data", "onChange", "onSubmit"])
123
123
  ]),
124
124
  _: 2
@@ -0,0 +1,4 @@
1
+ import { _ as f } from "./SearchHeader.vue_vue_type_style_index_0_lang-DebuWiG6.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,60 @@
1
+ import { defineComponent as C, toRefs as E, computed as k, openBlock as r, createElementBlock as B, createBlock as D, resolveDynamicComponent as I, unref as e } from "vue";
2
+ import { f as R } from "./main-DxH9UW19.js";
3
+ const A = { class: "search-footer" }, q = /* @__PURE__ */ C({
4
+ __name: "SearchHeader",
5
+ props: {
6
+ selection: {},
7
+ searchData: {},
8
+ module: {},
9
+ schema: {},
10
+ table: {},
11
+ layout: {},
12
+ next: {},
13
+ set: {},
14
+ url: {},
15
+ win: {}
16
+ },
17
+ emits: ["search", "succeed", "add", "remove", "copy", "show-import", "show-export"],
18
+ setup(a, { emit: c }) {
19
+ let t = c, s = a, { url: l, win: m, schema: p, table: n, layout: h, set: i, next: u, selection: d, searchData: H } = E(s), w = (o) => {
20
+ t("search", o);
21
+ }, x = () => {
22
+ t("succeed");
23
+ }, y = (o) => {
24
+ t("add", o);
25
+ }, S = (o) => {
26
+ t("remove", o);
27
+ }, v = () => {
28
+ t("copy");
29
+ }, _ = () => {
30
+ t("show-import");
31
+ }, f = () => {
32
+ t("show-export");
33
+ }, g = k(() => {
34
+ let o = `/${n.value.name}/paging-header`;
35
+ return R.getComponent(o, "partial", "paging-header");
36
+ });
37
+ return (o, b) => (r(), B("div", A, [
38
+ (r(), D(I(e(g)), {
39
+ url: e(l),
40
+ win: e(m),
41
+ schema: e(p),
42
+ table: e(n),
43
+ layout: e(h),
44
+ next: e(u),
45
+ set: e(i),
46
+ selection: e(d),
47
+ onAdd: e(y),
48
+ onRemove: e(S),
49
+ onCopy: e(v),
50
+ onShowImport: e(_),
51
+ onShowExport: e(f),
52
+ onSucceed: e(x),
53
+ onSubmit: e(w)
54
+ }, null, 40, ["url", "win", "schema", "table", "layout", "next", "set", "selection", "onAdd", "onRemove", "onCopy", "onShowImport", "onShowExport", "onSucceed", "onSubmit"]))
55
+ ]));
56
+ }
57
+ });
58
+ export {
59
+ q as _
60
+ };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as T, toRefs as A, ref as f, computed as D, resolveComponent as _, openBlock as c, createBlock as y, unref as n, withKeys as L, withModifiers as O, isRef as $, withCtx as V, createElementBlock as w, Fragment as q, renderList as z, createElementVNode as G, toDisplayString as k, createCommentVNode as H, nextTick as I } from "vue";
2
- import { n as J, U as P, w as Q, h as W } from "./main-KNkwb0pq.js";
2
+ import { n as J, U as P, w as Q, h as W } from "./main-DxH9UW19.js";
3
3
  import "./assets/moment-h96o7c8I.js";
4
4
  const X = { class: "option-text" }, Y = {
5
5
  key: 0,
@@ -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: d, set: i, row: p, modelValue: l } = c(n);
13
+ let r = f(() => import("./Dictionary-Xsj_Qorw.js")), n = a, { schema: m, table: s, field: d, set: i, row: p, modelValue: l } = c(n);
14
14
  return (_, t) => (b(), V(e(r), {
15
15
  schema: e(m),
16
16
  table: e(s),
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as K, toRefs as R, ref as d, computed as S, resolveComponent as c, openBlock as s, createBlock as p, unref as t, withKeys as M, withModifiers as N, isRef as j, withCtx as f, createElementBlock as h, Fragment as F, renderList as L, createElementVNode as U, toDisplayString as _, createCommentVNode as q } from "vue";
2
- import { t as z, j as A, h as G } from "./main-KNkwb0pq.js";
2
+ import { t as z, j as A, h as G } from "./main-DxH9UW19.js";
3
3
  import "./assets/moment-h96o7c8I.js";
4
4
  const H = { class: "option-text" }, I = {
5
5
  key: 0,
@@ -0,0 +1,318 @@
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({
6
+ __name: "Single",
7
+ props: {
8
+ base: {},
9
+ route: {},
10
+ url: {},
11
+ win: {}
12
+ },
13
+ emits: ["navigate", "load", "succeed", "close"],
14
+ setup(ie, { expose: de, emit: me }) {
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);
17
+ return t != a;
18
+ }, ye = () => {
19
+ Ee();
20
+ }, _e = (l, t) => {
21
+ H("copy", l, t);
22
+ }, ge = (l, t) => {
23
+ H("update", l, t);
24
+ }, he = () => {
25
+ i.value.visible = !1;
26
+ }, H = (l, t, a) => {
27
+ let n = we(l, t);
28
+ a.ctrlKey ? B("navigate", n) : (i.value.appendToBody = a.altKey, i.value.page = l, i.value.url = n, i.value.visible = !0);
29
+ }, we = (l, t = null) => {
30
+ let a = `${b.value[l].route}`;
31
+ if (t != null) {
32
+ let n = t[y.value.key.name];
33
+ a += `?id=${n}`;
34
+ }
35
+ return a;
36
+ }, Ce = (l, t, a) => {
37
+ (a.ctrlKey || C.value) && (q.value = l, x.value = K.object.clone(t), C.value = !0, x.value.fields.forEach((n) => {
38
+ n.control.textualize = !1;
39
+ }));
40
+ }, I = (l) => {
41
+ i.value.visible = !1, B("succeed", X.value, l);
42
+ }, Re = () => {
43
+ B("close");
44
+ }, J = (l, t, a, n, k) => {
45
+ }, Q = (l, t) => {
46
+ if (t) {
47
+ D.value = y.value.layouts.find((a) => a.type == l);
48
+ return;
49
+ }
50
+ v.value.layout = v.value.table.layouts.find((a) => a.type == l);
51
+ }, xe = (l) => {
52
+ let t = r.value.find((a) => a.name == l);
53
+ v.value.table = t, v.value.layout = t.layouts[0];
54
+ }, ke = (l) => {
55
+ let t = Object.keys(l)[0], a = t.substring(1, t.indexOf("]"));
56
+ r.value.find((k) => k.name == a).main || (w.value = a);
57
+ }, Se = (l, t = null, a = null) => {
58
+ oe(() => {
59
+ V.value.validate((n, k) => {
60
+ if (!n)
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 }) => {
66
+ if (z != "ValidateError")
67
+ return;
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);
72
+ _ && (w.value = _.name);
73
+ }
74
+ oe(() => {
75
+ V.value.clearValidate(), V.value.validate((_, o) => {
76
+ _ || (a && a(!1), L.value = []);
77
+ });
78
+ });
79
+ }).finally(() => {
80
+ a && a();
81
+ });
82
+ });
83
+ });
84
+ }, W = (l) => {
85
+ var a, n;
86
+ let t = Ge(l.module.type, l.module.name);
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]);
88
+ }, Te = (l) => {
89
+ O.triggerResize(N.value, l), O.triggerResize(E.value, l);
90
+ }, Ve = (l, t) => {
91
+ if (l == Ie.ctrlS) {
92
+ if (c.value.type == "Detail") {
93
+ O.triggerKeyboard(G.value, l, t);
94
+ return;
95
+ }
96
+ F(t);
97
+ }
98
+ }, Ee = () => {
99
+ let l = K.url.getUrl(T.value.path, T.value.query);
100
+ B("load", l, !1, (t) => {
101
+ });
102
+ };
103
+ (() => {
104
+ W(A.value.data);
105
+ })();
106
+ let F = (l) => {
107
+ if (!j.value.submit) {
108
+ re.notify("提示", "请在子组件暴露submit方法来实现快捷提交", "warning");
109
+ return;
110
+ }
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", {
121
+ ref_key: "singleRef",
122
+ ref: fe,
123
+ class: De(["ha-single-page", { [e(X) + "-page"]: !0, editing: e(C) }])
124
+ }, [
125
+ m("div", Je, [
126
+ g(z, { class: "main-scroller" }, {
127
+ default: s(() => [
128
+ g(U, {
129
+ ref_key: "formRef",
130
+ ref: V,
131
+ model: e(p),
132
+ onSubmit: t[3] || (t[3] = Le(() => {
133
+ }, ["prevent"]))
134
+ }, {
135
+ default: s(() => [
136
+ g(se, {
137
+ ref_key: "mainRef",
138
+ ref: N,
139
+ module: e(c),
140
+ schema: e(r),
141
+ table: e(y),
142
+ layout: e(D),
143
+ next: e(b),
144
+ set: e(p),
145
+ route: e(T),
146
+ "validate-errors": e(L),
147
+ onChange: e(J),
148
+ onLayoutChange: t[0] || (t[0] = (o) => e(Q)(o, !0)),
149
+ onSubmit: e(F)
150
+ }, null, 8, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onChange", "onSubmit"]),
151
+ e(r).length > 1 ? (d(), h(k, {
152
+ key: 0,
153
+ type: "border-card",
154
+ onTabChange: e(xe),
155
+ modelValue: e(w),
156
+ "onUpdate:modelValue": t[1] || (t[1] = (o) => ee(w) ? w.value = o : w = o)
157
+ }, {
158
+ default: s(() => [
159
+ (d(!0), M(le, null, te(e(r).filter((o, ze) => ze > 0), (o) => (d(), h(n, {
160
+ name: o.name,
161
+ key: o.name
162
+ }, {
163
+ label: s(() => [
164
+ g(a, {
165
+ placement: "top",
166
+ content: o.tooltip,
167
+ disabled: !o.tooltip
168
+ }, {
169
+ default: s(() => [
170
+ m("div", null, R(e(qe)(o.table)), 1)
171
+ ]),
172
+ _: 2
173
+ }, 1032, ["content", "disabled"])
174
+ ]),
175
+ _: 2
176
+ }, 1032, ["name"]))), 128))
177
+ ]),
178
+ _: 1
179
+ }, 8, ["onTabChange", "modelValue"])) : $("", !0),
180
+ e(v).table ? (d(), h(se, {
181
+ key: 1,
182
+ ref_key: "childRef",
183
+ ref: E,
184
+ module: e(c),
185
+ schema: e(r),
186
+ table: e(v).table,
187
+ layout: e(v).layout,
188
+ next: e(b),
189
+ set: e(p),
190
+ route: e(T),
191
+ "validate-errors": e(L),
192
+ onRowEdit: e(Ce),
193
+ onChange: e(J),
194
+ onLayoutChange: t[2] || (t[2] = (o) => e(Q)(o, !1)),
195
+ onSubmit: e(F)
196
+ }, null, 8, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onRowEdit", "onChange", "onSubmit"])) : $("", !0)
197
+ ]),
198
+ _: 1
199
+ }, 8, ["model"])
200
+ ]),
201
+ _: 1
202
+ }),
203
+ (d(), h(Ne(e(Ue)), {
204
+ ref_key: "updateRef",
205
+ ref: j,
206
+ class: "main-footer",
207
+ schema: e(r),
208
+ table: e(y),
209
+ layout: e(D),
210
+ next: e(b),
211
+ set: e(p),
212
+ route: e(T),
213
+ onCopy: e(_e),
214
+ onEdit: e(ge),
215
+ onSubmit: e(Se),
216
+ onClose: e(Re)
217
+ }, null, 40, ["schema", "table", "layout", "next", "set", "route", "onCopy", "onEdit", "onSubmit", "onClose"]))
218
+ ]),
219
+ e(C) ? (d(), h(P, {
220
+ key: 0,
221
+ class: "side-form"
222
+ }, {
223
+ header: s(() => [
224
+ m("div", Qe, [
225
+ m("div", We, R(e(ue)("common.modify")) + " " + R(e(q)[e(x).show[0].name]), 1),
226
+ m("div", {
227
+ class: "row-close",
228
+ onClick: t[4] || (t[4] = (o) => ee(C) ? C.value = !1 : C = !1)
229
+ }, t[6] || (t[6] = [
230
+ m("i", { class: "fa fa-close" }, null, -1)
231
+ ]))
232
+ ])
233
+ ]),
234
+ default: s(() => [
235
+ g(z, null, {
236
+ default: s(() => [
237
+ g(U, {
238
+ size: "small",
239
+ "label-width": "80px"
240
+ }, {
241
+ default: s(() => [
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;` : ""),
244
+ rules: o.rules
245
+ }, {
246
+ label: s(() => [
247
+ ae(R(e(Fe)(e(x).name, o.name)) + " ", 1),
248
+ o.control.tooltip ? (d(), h(S, {
249
+ key: 0,
250
+ trigger: "hover",
251
+ placement: "top",
252
+ width: "auto",
253
+ title: o.control.tooltip.title
254
+ }, {
255
+ reference: s(() => t[7] || (t[7] = [
256
+ m("i", { class: "fa fa-question-circle icon-question" }, null, -1)
257
+ ])),
258
+ default: s(() => [
259
+ m("pre", null, R(o.control.tooltip.content), 1)
260
+ ]),
261
+ _: 2
262
+ }, 1032, ["title"])) : $("", !0)
263
+ ]),
264
+ default: s(() => [
265
+ g(Me, {
266
+ schema: e(r),
267
+ table: e(x),
268
+ field: o,
269
+ set: e(p),
270
+ row: e(q)
271
+ }, null, 8, ["schema", "table", "field", "set", "row"])
272
+ ]),
273
+ _: 2
274
+ }, 1032, ["style", "rules"]))), 256))
275
+ ]),
276
+ _: 1
277
+ })
278
+ ]),
279
+ _: 1
280
+ })
281
+ ]),
282
+ _: 1
283
+ })) : $("", !0),
284
+ e(i).page ? (d(), h(_, {
285
+ key: 1,
286
+ "destroy-on-close": "",
287
+ "append-to-body": e(i).appendToBody,
288
+ size: `${e(c).width ?? "60%"}`,
289
+ modelValue: e(i).visible,
290
+ "onUpdate:modelValue": t[5] || (t[5] = (o) => e(i).visible = o)
291
+ }, {
292
+ header: s(() => [
293
+ m("div", Xe, [
294
+ ae(R(e(b)[e(i).page].title) + " ", 1),
295
+ m("a", {
296
+ class: "drawer-copy",
297
+ href: `${e(K).url.getToUrl(e(i).url)}`
298
+ }, R(e(ue)("common.link")), 9, Ye)
299
+ ])
300
+ ]),
301
+ default: s(() => [
302
+ g(e(Oe), {
303
+ ref_key: "pageRef",
304
+ ref: G,
305
+ url: e(i).url,
306
+ onSucceed: e(I),
307
+ onClose: e(he)
308
+ }, null, 8, ["url", "onSucceed", "onClose"])
309
+ ]),
310
+ _: 1
311
+ }, 8, ["append-to-body", "size", "modelValue"])) : $("", !0)
312
+ ], 2);
313
+ };
314
+ }
315
+ });
316
+ export {
317
+ ol as default
318
+ };