halo-pc 1.0.5 → 1.0.6

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-7pMF1N-k.js → Article-BbJTCOkX.js} +66 -62
  2. package/dist/{Autocomplete-CEjjKXwo.js → Autocomplete-A0m1RW7z.js} +1 -1
  3. package/dist/Autocomplete-C3d_yunJ.js +52 -0
  4. package/dist/Autocomplete-H0_xgWsN.js +53 -0
  5. package/dist/{CSharp-DatSqpip.js → CSharp-Bwl97exE.js} +1 -1
  6. package/dist/{Calender-B1HoFiQg.js → Calender-C3vbVYIN.js} +1 -1
  7. package/dist/Callback-oU2ap8v9.js +24 -0
  8. package/dist/Cascader-ClSabtOx.js +45 -0
  9. package/dist/Cascader-DRErYyH6.js +84 -0
  10. package/dist/{Checkbox-B6IkMrWB.js → Checkbox-BJS0a1NT.js} +1 -1
  11. package/dist/{Code-SZuIImtp.js → Code-9I77CMRV.js} +1 -1
  12. package/dist/Code-B2DrYXDa.js +58 -0
  13. package/dist/Code-BgqGTky1.js +40 -0
  14. package/dist/Code-Cv1pm18C.js +4 -0
  15. package/dist/Code.vue_vue_type_style_index_0_lang-IHZepbsi.js +63 -0
  16. package/dist/Column-Dgs0SdWX.js +71 -0
  17. package/dist/Comment-Cy6lpmqk.js +102 -0
  18. package/dist/Compare-5cTiHEdo.js +30 -0
  19. package/dist/Compare-CWeuLw9n.js +60 -0
  20. package/dist/Copy-C6WEtRhC.js +47 -0
  21. package/dist/Custom-QDHQJoxC.js +53 -0
  22. package/dist/{DataExport-I9iG4oEo.js → DataExport-BHh7NvbT.js} +1 -1
  23. package/dist/{DataExport.vue_vue_type_script_setup_true_lang-BgKetUGv.js → DataExport.vue_vue_type_script_setup_true_lang-C9t5j7Gi.js} +37 -33
  24. package/dist/{DataImport-2KtOy-of.js → DataImport-CtBsCyNb.js} +1 -1
  25. package/dist/{DataImport.vue_vue_type_script_setup_true_lang-DgzKdC2g.js → DataImport.vue_vue_type_script_setup_true_lang-bI0HP38b.js} +59 -55
  26. package/dist/{Date-PERpDDy_.js → Date-IV1FwqTW.js} +1 -1
  27. package/dist/{DateRange-BaxHMjcx.js → DateRange-IWmDLSuy.js} +11 -7
  28. package/dist/{DateTime-B7gHENiu.js → DateTime-Di6sr-tq.js} +1 -1
  29. package/dist/{DateTimeRange-yI9Y2qgC.js → DateTimeRange-BNUGYgWf.js} +14 -10
  30. package/dist/{Daterange-DqvBvK-B.js → Daterange-rrlMT4tD.js} +17 -13
  31. package/dist/{Decimal-AXwMeqBW.js → Decimal-D9TVQqyS.js} +1 -1
  32. package/dist/Delete-B-k4PTWk.js +59 -0
  33. package/dist/{Detail-aWACqVnM.js → Detail-HAblGKTY.js} +20 -16
  34. package/dist/Dictionary-BUmany6B.js +59 -0
  35. package/dist/{File--NsXL6XX.js → File-MF1QgEQX.js} +45 -41
  36. package/dist/{Image-CuwfJLKW.js → Image-Dps_vfcZ.js} +1 -1
  37. package/dist/{Index-BNOFdDjW.js → Index-7cTFT9Xb.js} +19 -15
  38. package/dist/{Index-CQ9S2R9b.js → Index-C_mfWEwr.js} +1 -1
  39. package/dist/Index-Cgets8DK.js +4 -0
  40. package/dist/Index-DGnHsBz4.js +4 -0
  41. package/dist/{Index-Cewv4-Ik.js → Index-DupYRMRj.js} +45 -41
  42. package/dist/{Index-DA2wAurY.js → Index-XBFHPLbK.js} +1 -1
  43. package/dist/{Index-Cj79dCuO.js → Index-hgpg_5ma.js} +1 -1
  44. package/dist/{Index.vue_vue_type_script_setup_true_lang-D6_VOLX-.js → Index.vue_vue_type_script_setup_true_lang-C1Bw7evJ.js} +15 -11
  45. package/dist/{Index.vue_vue_type_script_setup_true_lang-DjiARPz7.js → Index.vue_vue_type_script_setup_true_lang-yOf2ubuo.js} +16 -12
  46. package/dist/{Index.vue_vue_type_style_index_0_lang-DApNHvNX.js → Index.vue_vue_type_style_index_0_lang-DBERwM_v.js} +31 -27
  47. package/dist/{Install-BWdNbtVx.js → Install-A9qs4Vg-.js} +20 -16
  48. package/dist/{Int-nmVkFRqG.js → Int-B3L54Gcc.js} +16 -12
  49. package/dist/List-Om6OdbbR.js +76 -0
  50. package/dist/Maintaince-CrfEX-5B.js +19 -0
  51. package/dist/{Markdown-DD6ufwhM.js → Markdown-wcGRlabe.js} +1 -1
  52. package/dist/{Month-BqbTFGgo.js → Month-C1tCQKvO.js} +1 -1
  53. package/dist/{Normal-f4HN1ciI.js → Normal-HoU_elKy.js} +51 -47
  54. package/dist/Paging-C_StoYuZ.js +94 -0
  55. package/dist/QueryApi-BrYyIwqV.js +18 -0
  56. package/dist/{Racebar-Bou-XNCm.js → Racebar-BXuP1N9F.js} +27 -23
  57. package/dist/{Radio-BmikzeCv.js → Radio-D6W9guyM.js} +1 -1
  58. package/dist/{Register-CgbRZH9W.js → Register-DGhIjRDD.js} +79 -75
  59. package/dist/{RichText-BeK3zZam.js → RichText-B3Br1uzj.js} +22 -18
  60. package/dist/{SearchFooter-C4PeAkaR.js → SearchFooter-D3-9GTr1.js} +1 -1
  61. package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-BaO7vJ-n.js → SearchFooter.vue_vue_type_style_index_0_lang-DP32ZjvQ.js} +1 -1
  62. package/dist/{SearchForm-C7fZiQaW.js → SearchForm-rWozLa4B.js} +1 -1
  63. package/dist/{SearchForm.vue_vue_type_style_index_0_lang-BumSLQVy.js → SearchForm.vue_vue_type_style_index_0_lang-F2we6KP-.js} +30 -26
  64. package/dist/{Select-C1-NVZdG.js → Select-64nQiHNA.js} +21 -17
  65. package/dist/{Select-DR5fQH0d.js → Select-CAmBUDp3.js} +40 -36
  66. package/dist/{Select-DlbQvxQu.js → Select-qCdhL7vC.js} +1 -1
  67. package/dist/{Single-BLRyJKB-.js → Single-Bnrt5Hxb.js} +81 -77
  68. package/dist/{Statistic-BOtmYiRA.js → Statistic-BTbwlH9l.js} +35 -31
  69. package/dist/{Stock-Dnwof0R1.js → Stock-Br_02hsI.js} +1 -1
  70. package/dist/{Stock-BqQ6lM5B.js → Stock-DbExd680.js} +1 -1
  71. package/dist/{Stock.vue_vue_type_style_index_0_lang-Az2jx3JN.js → Stock.vue_vue_type_style_index_0_lang-MTvhmHlz.js} +26 -22
  72. package/dist/{Switch-DuMBV0AX.js → Switch-J2GIv4Wa.js} +1 -1
  73. package/dist/{Table-Be-rPXr_.js → Table-DjBx2UGm.js} +68 -64
  74. package/dist/{Table-RMVT0hlE.js → Table-X4vTHlpm.js} +52 -48
  75. package/dist/{Text-DSXRKFPa.js → Text-BFZc81F2.js} +1 -1
  76. package/dist/Text.vue_vue_type_style_index_0_lang-Cw7QQbFk.js +56 -0
  77. package/dist/TextLink-C_lFWaZv.js +66 -0
  78. package/dist/{Textarea-3ypOGE1S.js → Textarea-Dw_qLc3Y.js} +1 -1
  79. package/dist/{Timeline-CLezCcgQ.js → Timeline-DaaRGmGd.js} +21 -17
  80. package/dist/Tree-CDD2Nd6q.js +121 -0
  81. package/dist/{Tree-B6RBRT1y.js → Tree-Cmp10DWw.js} +85 -81
  82. package/dist/TreeNode-BM8-GyIc.js +38 -0
  83. package/dist/{Update-Dc3Tdkn0.js → Update-PffbXMXH.js} +17 -13
  84. package/dist/Upload-F6HXe76H.js +71 -0
  85. package/dist/Upload-kwwpaDe6.js +147 -0
  86. package/dist/{UploadApi-Bs507D0w.js → UploadApi-D2W_aGKA.js} +8 -3
  87. package/dist/{Year-DKxOQNyS.js → Year-Dr5ST0Pk.js} +1 -1
  88. package/dist/main-B8RC13GR.js +6528 -0
  89. package/dist/main.js +113 -113
  90. package/dist/style.css +1 -1
  91. package/dist/vendor-@monaco-editor-DKC4UNw_.js +258 -0
  92. package/dist/{vendor-clipboard-DjQPoCBJ.js → vendor-clipboard-BqjesuiY.js} +130 -110
  93. package/dist/vendor-clone-BPtCWdXG.js +134 -0
  94. package/dist/vendor-crypto-js-ftX_aBC-.js +4995 -0
  95. package/dist/vendor-file-saver-CytTIJ-3.js +74 -0
  96. package/dist/{vendor-intro.js-DwWqhM1v.js → vendor-intro.js-CZkClzQO.js} +1 -1
  97. package/dist/vendor-moment-h96o7c8I.js +2578 -0
  98. package/dist/vendor-sprintf-js-BPTdvBYM.js +148 -0
  99. package/dist/vendor-state-local-CEworIRt.js +131 -0
  100. package/dist/vendor-underscore-DVTek3G4.js +1070 -0
  101. package/dist/vendor-underscore.string-BEHfJwHl.js +425 -0
  102. package/dist/vendor-util-deprecate-DzpNkCzj.js +28 -0
  103. package/esm/coms/controls/Text.vue.d.ts +1 -1
  104. package/esm/coms/globals/HaMenu.vue.d.ts +1 -1
  105. package/esm/coms/globals/HaWindow.vue.d.ts +1 -1
  106. package/esm/coms/pages/Delete.vue.d.ts +2 -2
  107. package/esm/coms/pages/Single.vue.d.ts +2 -2
  108. package/esm/coms/pagings/Article.vue.d.ts +2 -2
  109. package/esm/coms/pagings/DataExport.vue.d.ts +2 -2
  110. package/esm/coms/pagings/DataImport.vue.d.ts +2 -2
  111. package/esm/coms/pagings/Index.vue.d.ts +2 -2
  112. package/esm/coms/pagings/SearchFooter.vue.d.ts +1 -1
  113. package/esm/coms/pagings/Table.vue.d.ts +2 -2
  114. package/esm/main.d.ts +4 -3
  115. package/esm/services/ServiceFactory.d.ts +3 -0
  116. package/esm/types/PcOptions.d.ts +18 -0
  117. package/esm/types/index.d.ts +2 -0
  118. package/package.json +2 -2
  119. package/dist/Autocomplete-DqKo5NiJ.js +0 -49
  120. package/dist/Autocomplete-K5ipzchR.js +0 -48
  121. package/dist/Callback-PyCjejiv.js +0 -20
  122. package/dist/Cascader-B9lLRKjA.js +0 -80
  123. package/dist/Cascader-BNvlqc5t.js +0 -41
  124. package/dist/Code-BdK547kD.js +0 -4
  125. package/dist/Code-DfFF-84i.js +0 -36
  126. package/dist/Code-LFQVJotC.js +0 -54
  127. package/dist/Code.vue_vue_type_style_index_0_lang-nX113anq.js +0 -59
  128. package/dist/Column-DVjYrrr7.js +0 -67
  129. package/dist/Comment-Do7Mjpjr.js +0 -98
  130. package/dist/Compare-C_iDn27Q.js +0 -56
  131. package/dist/Compare-CrX3yfD4.js +0 -26
  132. package/dist/Copy-_sbdQvHJ.js +0 -43
  133. package/dist/Custom-DarpQFG8.js +0 -49
  134. package/dist/Delete-BY3vAVWa.js +0 -55
  135. package/dist/Dictionary-DpQuFYQ5.js +0 -55
  136. package/dist/Index-B_a_HzsB.js +0 -4
  137. package/dist/Index-Cx2J_P37.js +0 -4
  138. package/dist/List-BjdY1rMk.js +0 -72
  139. package/dist/Maintaince-DzYzyrAc.js +0 -15
  140. package/dist/Paging-BMPtLi8P.js +0 -90
  141. package/dist/QueryApi-CbP5cCyH.js +0 -13
  142. package/dist/Text.vue_vue_type_style_index_0_lang-CeDusQl6.js +0 -52
  143. package/dist/TextLink-BZW-y_FS.js +0 -62
  144. package/dist/Tree-CLpCeirT.js +0 -117
  145. package/dist/TreeNode-C16N8jqm.js +0 -34
  146. package/dist/Upload-DvWyjK3a.js +0 -143
  147. package/dist/Upload-SEu1V1yX.js +0 -67
  148. package/dist/main-QtNG6p7a.js +0 -16673
  149. package/dist/vendor-pinia-yrN6kSxh.js +0 -861
  150. package/dist/vendor-vue-demi-CIhrFbpB.js +0 -17
@@ -1,7 +1,11 @@
1
- import { defineComponent as H, toRefs as I, ref as p, onMounted as J, nextTick as P, computed as j, watch as Q, resolveComponent as m, openBlock as r, createBlock as i, withCtx as n, unref as a, withModifiers as X, createElementBlock as v, Fragment as g, renderList as y, createVNode as x, createTextVNode as B, toDisplayString as Y, createCommentVNode as Z } from "vue";
2
- import { K as ee, d as D } from "./main-QtNG6p7a.js";
1
+ import { defineComponent as I, toRefs as J, ref as p, onMounted as K, nextTick as P, computed as q, watch as Q, resolveComponent as m, openBlock as r, createBlock as i, withCtx as n, unref as a, withModifiers as X, createElementBlock as v, Fragment as g, renderList as y, createVNode as x, createTextVNode as B, toDisplayString as Y, createCommentVNode as Z } from "vue";
2
+ import "./vendor-@monaco-editor-DKC4UNw_.js";
3
+ import "./vendor-moment-h96o7c8I.js";
4
+ import "xlsx-js-style";
5
+ import { O as ee, j as D } from "./main-B8RC13GR.js";
6
+ import "./vendor-crypto-js-ftX_aBC-.js";
3
7
  import { _ as te } from "./Index.vue_vue_type_script_setup_true_lang-B-sM48XO.js";
4
- const oe = /* @__PURE__ */ H({
8
+ const ce = /* @__PURE__ */ I({
5
9
  __name: "SearchForm",
6
10
  props: {
7
11
  schema: { type: Array, required: !0 },
@@ -11,18 +15,18 @@ const oe = /* @__PURE__ */ H({
11
15
  },
12
16
  emits: ["change", "submit", "mounted"],
13
17
  setup(M, { expose: N, emit: T }) {
14
- let w = T, W = M, { schema: k, table: u, layout: C, searchData: b } = I(W), S = p(), V = p(), E = p(), d = p(), L = (e) => {
18
+ let w = T, W = M, { schema: k, table: u, layout: C, searchData: h } = J(W), S = p(), V = p(), E = p(), d = p(), L = (e) => {
15
19
  w("change", e);
16
20
  }, F = (e = null) => {
17
21
  w("submit");
18
22
  }, U = (e, t) => {
19
23
  let l = e == "*" ? null : e;
20
- b.value[u.value.name][t.name] = l, F();
21
- }, R = () => {
24
+ h.value[u.value.name][t.name] = l, F();
25
+ }, O = () => {
22
26
  S.value && (V.value = S.value.$el.clientWidth);
23
27
  }, $ = (e) => {
24
- R();
25
- }, q = () => {
28
+ O();
29
+ }, R = () => {
26
30
  let e = C.value.tabs;
27
31
  if (e)
28
32
  for (let t = 0; t < e.length; t++) {
@@ -30,33 +34,33 @@ const oe = /* @__PURE__ */ H({
30
34
  d.value[u.value.name][l] || (d.value[u.value.name][l] = "*");
31
35
  }
32
36
  };
33
- d.value = ee.clone(b.value), q(), J(() => {
34
- R(), P(() => {
37
+ d.value = ee.clone(h.value), R(), K(() => {
38
+ O(), P(() => {
35
39
  w("mounted");
36
40
  });
37
41
  });
38
- let z = j(() => {
42
+ let z = q(() => {
39
43
  if (!V.value)
40
44
  return [];
41
- let e = Math.ceil(V.value / 200), t = D.expandSearch(k.value), l = C.value.tabs ?? [], c = t.filter((f) => l.indexOf(f.name) == -1);
42
- return D.getLines(c, e, (f) => f, () => 1);
43
- }), O = j(() => {
45
+ let e = Math.ceil(V.value / 200), t = D.expandSearch(k.value), l = C.value.tabs ?? [], c = t.filter((b) => l.indexOf(b.name) == -1);
46
+ return D.getLines(c, e, (b) => b, () => 1);
47
+ }), j = q(() => {
44
48
  let e = [], t = C.value.tabs;
45
49
  return t && t.forEach((l) => {
46
50
  let c = u.value.fields.find((_) => _.name == l);
47
51
  e.push(c);
48
52
  }), e;
49
53
  });
50
- return Q(() => b.value, (e, t) => {
51
- q();
54
+ return Q(() => h.value, (e, t) => {
55
+ R();
52
56
  }), N({ resize: $ }), (e, t) => {
53
- const l = m("el-radio-button"), c = m("el-radio-group"), _ = m("el-form-item"), f = m("el-col"), A = m("el-row"), K = m("el-form"), G = m("el-scrollbar");
57
+ const l = m("el-radio-button"), c = m("el-radio-group"), _ = m("el-form-item"), b = m("el-col"), A = m("el-row"), H = m("el-form"), G = m("el-scrollbar");
54
58
  return r(), i(G, {
55
59
  "max-height": "200px",
56
60
  class: "search-form"
57
61
  }, {
58
62
  default: n(() => [
59
- a(u).search.length > 0 ? (r(), i(K, {
63
+ a(u).search.length > 0 ? (r(), i(H, {
60
64
  key: 0,
61
65
  ref_key: "searchFormRef",
62
66
  ref: S,
@@ -66,7 +70,7 @@ const oe = /* @__PURE__ */ H({
66
70
  }, ["prevent"]))
67
71
  }, {
68
72
  default: n(() => [
69
- (r(!0), v(g, null, y(a(O), (s, h) => (r(), i(_, {
73
+ (r(!0), v(g, null, y(a(j), (s, f) => (r(), i(_, {
70
74
  class: "search-tab",
71
75
  label: s.label,
72
76
  "label-width": 50
@@ -103,22 +107,22 @@ const oe = /* @__PURE__ */ H({
103
107
  }, 1032, ["label"]))), 256)),
104
108
  (r(!0), v(g, null, y(a(z), (s) => (r(), i(A, {
105
109
  class: "search-row",
106
- label: a(O).length ? "其它" : "",
110
+ label: a(j).length ? "其它" : "",
107
111
  "label-width": 50,
108
112
  gutter: 5
109
113
  }, {
110
114
  default: n(() => [
111
- (r(!0), v(g, null, y(s, ({ data: h, span: o }, ae) => (r(), i(f, { span: o }, {
115
+ (r(!0), v(g, null, y(s, ({ data: f, span: o }, ae) => (r(), i(b, { span: o }, {
112
116
  default: n(() => [
113
117
  x(_, {
114
- label: e.t_field(h.table.name, h.name)
118
+ label: e.t_field(f.table.name, f.name)
115
119
  }, {
116
120
  default: n(() => [
117
121
  x(te, {
118
122
  schema: a(k),
119
- table: h.table,
120
- field: h,
121
- "search-data": a(b),
123
+ table: f.table,
124
+ field: f,
125
+ "search-data": a(h),
122
126
  onChange: a(L),
123
127
  onSubmit: a(F)
124
128
  }, null, 8, ["schema", "table", "field", "search-data", "onChange", "onSubmit"])
@@ -141,5 +145,5 @@ const oe = /* @__PURE__ */ H({
141
145
  }
142
146
  });
143
147
  export {
144
- oe as _
148
+ ce as _
145
149
  };
@@ -1,9 +1,13 @@
1
- import { defineComponent as K, toRefs as R, ref as d, computed as S, resolveComponent as c, openBlock as s, createBlock as f, unref as l, withKeys as M, withModifiers as N, isRef as j, withCtx as p, createElementBlock as h, Fragment as F, renderList as L, createElementVNode as U, toDisplayString as v, createCommentVNode as q } from "vue";
2
- import { j as z } from "./main-QtNG6p7a.js";
1
+ import { defineComponent as K, toRefs as R, ref as i, computed as S, resolveComponent as p, openBlock as r, createBlock as c, unref as l, withKeys as M, withModifiers as N, isRef as F, withCtx as f, createElementBlock as h, Fragment as L, renderList as U, createElementVNode as j, toDisplayString as v, createCommentVNode as q } from "vue";
2
+ import "./vendor-@monaco-editor-DKC4UNw_.js";
3
+ import "./vendor-moment-h96o7c8I.js";
4
+ import "xlsx-js-style";
5
+ import { h as z } from "./main-B8RC13GR.js";
6
+ import "./vendor-crypto-js-ftX_aBC-.js";
3
7
  const A = { class: "option-text" }, G = {
4
8
  key: 0,
5
9
  class: "option-suffix"
6
- }, P = /* @__PURE__ */ K({
10
+ }, X = /* @__PURE__ */ K({
7
11
  __name: "Select",
8
12
  props: {
9
13
  schema: {},
@@ -14,13 +18,13 @@ const A = { class: "option-text" }, G = {
14
18
  },
15
19
  emits: ["change", "submit", "update:modelValue"],
16
20
  setup(_, { emit: x }) {
17
- let r = x, b = _, { schema: H, table: g, field: a, searchData: y, modelValue: V } = R(b), k = d(!1), i = d(), m = d(a.value.control.data.data), C = () => {
18
- r("submit");
21
+ let s = x, b = _, { schema: H, table: g, field: a, searchData: y, modelValue: V } = R(b), k = i(!1), d = i(), m = i(a.value.control.data.data), C = () => {
22
+ s("submit");
19
23
  }, w = () => {
20
24
  }, B = (t) => {
21
- i.value = t, D();
25
+ d.value = t, D();
22
26
  }, D = () => {
23
- let t = { text: i.value, conditions: [] };
27
+ let t = { text: d.value, conditions: [] };
24
28
  a.value.control.data.conditions.forEach((o) => {
25
29
  let u = y.value[o.table][o.field];
26
30
  t.conditions.push({ name: o.name, value: u });
@@ -34,12 +38,12 @@ const A = { class: "option-text" }, G = {
34
38
  return V.value;
35
39
  },
36
40
  set(t) {
37
- r("update:modelValue", t), r("change", t);
41
+ s("update:modelValue", t), s("change", t);
38
42
  }
39
43
  });
40
44
  return (t, o) => {
41
- const u = c("el-option"), E = c("el-select");
42
- return s(), f(E, {
45
+ const u = p("el-option"), E = p("el-select");
46
+ return r(), c(E, {
43
47
  ref: "selectRef",
44
48
  filterable: "",
45
49
  remote: "",
@@ -55,17 +59,17 @@ const A = { class: "option-text" }, G = {
55
59
  onKeyup: M(N(l(C), ["alt"]), ["enter", "native"]),
56
60
  onChange: l(w),
57
61
  modelValue: l(n),
58
- "onUpdate:modelValue": o[0] || (o[0] = (e) => j(n) ? n.value = e : n = e)
62
+ "onUpdate:modelValue": o[0] || (o[0] = (e) => F(n) ? n.value = e : n = e)
59
63
  }, {
60
- default: p(() => [
61
- (s(!0), h(F, null, L(l(m), (e, I) => (s(), f(u, {
64
+ default: f(() => [
65
+ (r(!0), h(L, null, U(l(m), (e, I) => (r(), c(u, {
62
66
  label: e.text + (e.suffix ? "(" + e.suffix + ")" : ""),
63
67
  value: e.value,
64
68
  key: e.value
65
69
  }, {
66
- default: p(() => [
67
- U("span", A, v(e.text), 1),
68
- e.suffix ? (s(), h("span", G, "(" + v(e.suffix) + ")", 1)) : q("", !0)
70
+ default: f(() => [
71
+ j("span", A, v(e.text), 1),
72
+ e.suffix ? (r(), h("span", G, "(" + v(e.suffix) + ")", 1)) : q("", !0)
69
73
  ]),
70
74
  _: 2
71
75
  }, 1032, ["label", "value"]))), 128))
@@ -76,5 +80,5 @@ const A = { class: "option-text" }, G = {
76
80
  }
77
81
  });
78
82
  export {
79
- P as default
83
+ X as default
80
84
  };
@@ -1,9 +1,13 @@
1
- import { defineComponent as A, toRefs as D, ref as f, computed as L, resolveComponent as _, openBlock as c, createBlock as y, unref as u, withKeys as O, withModifiers as U, isRef as $, withCtx as V, createElementBlock as k, Fragment as q, renderList as z, createElementVNode as G, toDisplayString as w, createCommentVNode as H, nextTick as I } from "vue";
2
- import { k as J, a as P, j as Q } from "./main-QtNG6p7a.js";
1
+ import { defineComponent as A, toRefs as D, ref as f, computed as H, resolveComponent as _, openBlock as c, createBlock as y, unref as r, withKeys as L, withModifiers as O, isRef as U, withCtx as V, createElementBlock as C, Fragment as $, renderList as q, createElementVNode as z, toDisplayString as k, createCommentVNode as G, nextTick as I } from "vue";
2
+ import "./vendor-@monaco-editor-DKC4UNw_.js";
3
+ import "./vendor-moment-h96o7c8I.js";
4
+ import "xlsx-js-style";
5
+ import { c as J, C as P, h as Q } from "./main-B8RC13GR.js";
6
+ import "./vendor-crypto-js-ftX_aBC-.js";
3
7
  const W = { class: "option-text" }, X = {
4
8
  key: 0,
5
9
  class: "option-suffix"
6
- }, ee = /* @__PURE__ */ A({
10
+ }, ae = /* @__PURE__ */ A({
7
11
  __name: "Select",
8
12
  props: {
9
13
  schema: {},
@@ -14,37 +18,37 @@ const W = { class: "option-text" }, X = {
14
18
  modelValue: { type: [String, Number, Boolean, Array] }
15
19
  },
16
20
  emits: ["submit", "change", "update:modelValue"],
17
- setup(C, { emit: E }) {
18
- let s = E, B = C, { schema: S, field: n, table: m, set: h, row: R, modelValue: p } = D(B), x = f(), g = f(), v = f(!1), d = f(n.value.control.data.data), j = (t) => {
21
+ setup(w, { emit: E }) {
22
+ let s = E, B = w, { schema: S, field: n, table: p, set: v, row: R, modelValue: m } = D(B), x = f(), g = f(), h = f(!1), d = f(n.value.control.data.data), K = (t) => {
19
23
  t == "" && (t = null);
20
24
  let e;
21
- if (J.isString(t) && n.value.control.multiple ? e = t.join(",") : e = t, r.value = e, n.value.control.text) {
22
- let a = m.value.fields.find((l) => l.name == n.value.control.text), o;
25
+ if (J.isString(t) && n.value.control.multiple ? e = t.join(",") : e = t, u.value = e, n.value.control.text) {
26
+ let a = p.value.fields.find((l) => l.name == n.value.control.text), o;
23
27
  e && (o = d.value.find((i) => i.value == e).text);
24
28
  debugger;
25
29
  R.value[a.name] = o;
26
30
  }
27
- b(m.value, n.value), s("change", t);
28
- }, K = () => {
29
- s("submit");
31
+ b(p.value, n.value), s("change", t);
30
32
  }, N = () => {
31
- }, F = () => {
32
- v.value = !0;
33
+ s("submit");
34
+ }, T = () => {
35
+ }, j = () => {
36
+ h.value = !0;
33
37
  let t = { text: g.value, conditions: [] };
34
38
  n.value.control.data.conditions.forEach((e) => {
35
- let a = h.value[e.table].filter((l) => l[e.field] != null).map((l) => l[e.field]), o = a.length == 0 ? null : a.join(",");
39
+ let a = v.value[e.table].filter((l) => l[e.field] != null).map((l) => l[e.field]), o = a.length == 0 ? null : a.join(",");
36
40
  t.conditions.push({ name: e.name, value: o });
37
41
  }), Q.post(n.value.control.data.route, t).then(({ data: e }) => {
38
42
  d.value = e;
39
43
  }).finally(() => {
40
- v.value = !1, I(() => {
41
- let e = d.value.find((a) => a.value == r.value);
44
+ h.value = !1, I(() => {
45
+ let e = d.value.find((a) => a.value == u.value);
42
46
  x.value.scrollToOption(e);
43
47
  });
44
48
  });
45
- }, M = (t) => {
46
- g.value = t, F();
47
- }, T = (t, e) => {
49
+ }, F = (t) => {
50
+ g.value = t, j();
51
+ }, M = (t, e) => {
48
52
  let a = [];
49
53
  return S.value.forEach((o) => {
50
54
  o.fields.forEach((l) => {
@@ -54,12 +58,12 @@ const W = { class: "option-text" }, X = {
54
58
  });
55
59
  }), a;
56
60
  }, b = (t, e) => {
57
- T(t, e).forEach((o) => {
58
- P.setRowsValue(null, h.value, o.table, o.field), b(o.table, o.field);
61
+ M(t, e).forEach((o) => {
62
+ P.setRowsValue(null, v.value, o.table, o.field), b(o.table, o.field);
59
63
  });
60
- }, r = L({
64
+ }, u = H({
61
65
  get() {
62
- return n.value.control.multiple ? p.value == null ? [] : p.value.toString().split(",") : p.value;
66
+ return n.value.control.multiple ? m.value == null ? [] : m.value.toString().split(",") : m.value;
63
67
  },
64
68
  set(t) {
65
69
  s("update:modelValue", t), s("change", t);
@@ -77,26 +81,26 @@ const W = { class: "option-text" }, X = {
77
81
  "remote-show-suffix": "",
78
82
  "loading-text": "加载中",
79
83
  clearable: "",
80
- placeholder: t.t_field_choose_placeholder(u(m).name, u(n).name),
81
- multiple: u(n).control.multiple,
82
- "remote-method": u(M),
83
- loading: u(v),
84
- disabled: u(n).control.readonly,
85
- onKeyup: O(U(u(K), ["alt"]), ["enter", "native"]),
86
- onBlur: u(N),
87
- onChange: u(j),
88
- modelValue: u(r),
89
- "onUpdate:modelValue": e[0] || (e[0] = (l) => $(r) ? r.value = l : r = l)
84
+ placeholder: t.t_field_choose_placeholder(r(p).name, r(n).name),
85
+ multiple: r(n).control.multiple,
86
+ "remote-method": r(F),
87
+ loading: r(h),
88
+ disabled: r(n).control.readonly,
89
+ onKeyup: L(O(r(N), ["alt"]), ["enter", "native"]),
90
+ onBlur: r(T),
91
+ onChange: r(K),
92
+ modelValue: r(u),
93
+ "onUpdate:modelValue": e[0] || (e[0] = (l) => U(u) ? u.value = l : u = l)
90
94
  }, {
91
95
  default: V(() => [
92
- (c(!0), k(q, null, z(u(d), (l, i) => (c(), y(a, {
96
+ (c(!0), C($, null, q(r(d), (l, i) => (c(), y(a, {
93
97
  label: `${l.text}${l.suffix ? "(" + l.suffix + ")" : ""}`,
94
98
  value: l.value,
95
99
  key: l.value
96
100
  }, {
97
101
  default: V(() => [
98
- G("span", W, w(l.text), 1),
99
- l.suffix ? (c(), k("span", X, "(" + w(l.suffix) + ")", 1)) : H("", !0)
102
+ z("span", W, k(l.text), 1),
103
+ l.suffix ? (c(), C("span", X, "(" + k(l.suffix) + ")", 1)) : G("", !0)
100
104
  ]),
101
105
  _: 2
102
106
  }, 1032, ["label", "value"]))), 128))
@@ -107,5 +111,5 @@ const W = { class: "option-text" }, X = {
107
111
  }
108
112
  });
109
113
  export {
110
- ee as default
114
+ ae as default
111
115
  };
@@ -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-DpQuFYQ5.js")), n = a, { schema: m, table: s, field: d, set: i, row: p, modelValue: l } = c(n);
13
+ let r = f(() => import("./Dictionary-BUmany6B.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),