halo-pc 1.0.15 → 1.0.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (176) hide show
  1. package/dist/Article-DASEvkfO.js +194 -0
  2. package/dist/{ArticleFooter-BFYDplbW.js → ArticleFooter-BSesl8iy.js} +17 -24
  3. package/dist/{Autocomplete-CIXGPZaG.js → Autocomplete-ClAQY5V5.js} +1 -1
  4. package/dist/Autocomplete-CzfOoMve.js +48 -0
  5. package/dist/Autocomplete-DToic2Cg.js +49 -0
  6. package/dist/{CSharp-BGzxI5QJ.js → CSharp-23QccebX.js} +1 -1
  7. package/dist/{Calender-DkBPl9bM.js → Calender-DZkQaIeV.js} +3 -3
  8. package/dist/Callback-CWBDUe_C.js +20 -0
  9. package/dist/Cascader-BDfFyqiv.js +41 -0
  10. package/dist/Cascader-CpD_hbhQ.js +81 -0
  11. package/dist/Checkbox--gCBkIuI.js +70 -0
  12. package/dist/{Checkbox-CuRjXSPc.js → Checkbox-SLi7MK1r.js} +1 -1
  13. package/dist/Code-BVTjF5rW.js +54 -0
  14. package/dist/{Code-BlwPnx9J.js → Code-C4hdU4t4.js} +1 -1
  15. package/dist/Code-CO4WPAe_.js +4 -0
  16. package/dist/Code-nrn4wOhB.js +36 -0
  17. package/dist/Code.vue_vue_type_style_index_0_lang-BgAnkZ3j.js +59 -0
  18. package/dist/Column-DcMAu4JL.js +68 -0
  19. package/dist/Comment-CPxVIapg.js +98 -0
  20. package/dist/Compare-C2oFy0EZ.js +56 -0
  21. package/dist/Compare-P9zOBC1v.js +26 -0
  22. package/dist/Copy-B5vrho98.js +43 -0
  23. package/dist/Custom-BETJLilj.js +51 -0
  24. package/dist/{DataExport-C0jItlVY.js → DataExport-YTc4EX6l.js} +1 -1
  25. package/dist/{DataExport.vue_vue_type_script_setup_true_lang-Dx7mLyuz.js → DataExport.vue_vue_type_script_setup_true_lang-amvVzv4A.js} +34 -40
  26. package/dist/{DataImport-BfBkneEy.js → DataImport-ByV8MQkV.js} +1 -1
  27. package/dist/{DataImport.vue_vue_type_script_setup_true_lang-C9qjFakZ.js → DataImport.vue_vue_type_script_setup_true_lang-CYwCKg5Z.js} +61 -66
  28. package/dist/{Date-B8b9JXpP.js → Date-DbTzQla9.js} +1 -1
  29. package/dist/Date-DpiWNuFs.js +37 -0
  30. package/dist/DateRange-Su0Q2cwY.js +57 -0
  31. package/dist/{DateTime-DjhuyxFC.js → DateTime-C3NrioJi.js} +1 -1
  32. package/dist/DateTime-QyKfqaVG.js +38 -0
  33. package/dist/{DateTimeRange-D01wtitk.js → DateTimeRange-lytkhCjC.js} +11 -18
  34. package/dist/Daterange-D7ZHkOmo.js +57 -0
  35. package/dist/{Decimal-DqMMTfvl.js → Decimal-CTTT98BQ.js} +1 -1
  36. package/dist/Delete-MfXy7gUi.js +56 -0
  37. package/dist/{Detail-C-OFWPso.js → Detail-CUiSzyT7.js} +16 -23
  38. package/dist/Dictionary-Dd_IU-Hn.js +55 -0
  39. package/dist/Email-BzN4JpJv.js +48 -0
  40. package/dist/{File-C2fLmTcj.js → File-Ckh37Ne2.js} +42 -49
  41. package/dist/Image-Dkd69DoD.js +9 -0
  42. package/dist/Index-CGJLRExG.js +4 -0
  43. package/dist/Index-CLzHDG05.js +4 -0
  44. package/dist/Index-DJJcNPgN.js +173 -0
  45. package/dist/{Index-B90giDWQ.js → Index-DlrpDUD3.js} +1 -1
  46. package/dist/Index-DxvVjg9S.js +70 -0
  47. package/dist/{Index-CQURvmzd.js → Index-G36KYPCK.js} +1 -1
  48. package/dist/Index-dTIwhIau.js +4 -0
  49. package/dist/{Index-D7DerkIw.js → Index-x4c71OJZ.js} +1 -1
  50. package/dist/{Index.vue_vue_type_script_setup_true_lang-DZdvfweh.js → Index.vue_vue_type_script_setup_true_lang-8g0L1e0O.js} +16 -23
  51. package/dist/{Index.vue_vue_type_script_setup_true_lang-B93cecQQ.js → Index.vue_vue_type_script_setup_true_lang-oQyBcgPa.js} +16 -23
  52. package/dist/{Index.vue_vue_type_style_index_0_lang-DYwz3Eu2.js → Index.vue_vue_type_style_index_0_lang-DVYceMeD.js} +30 -36
  53. package/dist/{Install-Cqj44p9F.js → Install-BW_ulT9I.js} +20 -27
  54. package/dist/Int-BRqYiJo7.js +41 -0
  55. package/dist/{Int-Bj3Gagp5.js → Int-BYSjwPG_.js} +9 -16
  56. package/dist/List-DAFqVlam.js +73 -0
  57. package/dist/Maintaince-B8mM4PEp.js +14 -0
  58. package/dist/{Markdown-COY9enBf.js → Markdown-BXKlgSON.js} +1 -1
  59. package/dist/Month-BHvq72xE.js +37 -0
  60. package/dist/Month-BiW1DL44.js +38 -0
  61. package/dist/{Month-B7jIGlKI.js → Month-DKeTzNrD.js} +1 -1
  62. package/dist/{Normal-B8YL2DeI.js → Normal-CgSREifM.js} +52 -58
  63. package/dist/Paging-D02YApLL.js +94 -0
  64. package/dist/{PagingHeader-c1vaXeWH.js → PagingHeader-DJ7MmfGl.js} +37 -44
  65. package/dist/{PagingRow-CHDlm8UI.js → PagingRow-BM1GMtrr.js} +21 -28
  66. package/dist/QueryApi-ChpV_S8J.js +13 -0
  67. package/dist/{Racebar-ClsuYbRj.js → Racebar-CZlaC5Gm.js} +43 -49
  68. package/dist/{Radio-C6j5nvI9.js → Radio-BPq3WJa4.js} +1 -1
  69. package/dist/{Register-BnwfjjXP.js → Register-ByxrZyWq.js} +74 -80
  70. package/dist/RichText-BtQDAhn9.js +41 -0
  71. package/dist/{SearchFooter-D10vYX7H.js → SearchFooter-B61gsy3w.js} +1 -1
  72. package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-B3AD4sx-.js → SearchFooter.vue_vue_type_style_index_0_lang-CZv7EteY.js} +1 -1
  73. package/dist/{SearchForm-BRKHMJRS.js → SearchForm-CLvZoPGQ.js} +1 -1
  74. package/dist/{SearchForm.vue_vue_type_style_index_0_lang-B-YCROWC.js → SearchForm.vue_vue_type_style_index_0_lang-DnjtHyTb.js} +34 -40
  75. package/dist/Select-C_afSAvf.js +111 -0
  76. package/dist/{Select-Z8b2t5QQ.js → Select-DGXJMnE9.js} +19 -26
  77. package/dist/{Select-BiFIpc5-.js → Select-Nb9K2FMY.js} +1 -1
  78. package/dist/{Single-DdcVVH9V.js → Single-C-2qA2MU.js} +111 -117
  79. package/dist/{Statistic-B7niMPBf.js → Statistic-B1K-qIZb.js} +30 -36
  80. package/dist/{Stock-CRsu1vcy.js → Stock-C560McFR.js} +1 -1
  81. package/dist/{Stock-xm8v4vDf.js → Stock-_rnn0B8I.js} +1 -1
  82. package/dist/{Stock.vue_vue_type_style_index_0_lang-Cb3jPDk8.js → Stock.vue_vue_type_style_index_0_lang-BEwvRtU6.js} +26 -32
  83. package/dist/{Switch-BaER4xWy.js → Switch-BadvkLSw.js} +1 -1
  84. package/dist/{Table-a5uj25Nj.js → Table-B46N43V3.js} +69 -74
  85. package/dist/{Table-C2dYPoGi.js → Table-Dk48tQ1r.js} +59 -66
  86. package/dist/Text-CNF204mx.js +53 -0
  87. package/dist/Text-DblKaz4m.js +52 -0
  88. package/dist/Text-y-q7UXlg.js +4 -0
  89. package/dist/Text.vue_vue_type_style_index_0_lang-DtnGWes5.js +53 -0
  90. package/dist/TextLink-B4Q0zX1K.js +59 -0
  91. package/dist/{Textarea-DAICkidp.js → Textarea-D1BOQFgK.js} +1 -1
  92. package/dist/Time-DZQxglEi.js +37 -0
  93. package/dist/Timeline-8QaD9H_I.js +53 -0
  94. package/dist/Tree-BUcyK0i_.js +117 -0
  95. package/dist/{Tree-BwQkDP2T.js → Tree-DVeTdmmL.js} +66 -72
  96. package/dist/TreeNode-BScAFHPZ.js +37 -0
  97. package/dist/{Update-BZe92EwV.js → Update-BbU5H_Qf.js} +14 -21
  98. package/dist/{UpdateChild-DN6pwrUK.js → UpdateChild-BbXuXfOR.js} +19 -26
  99. package/dist/Upload-C1obfZui.js +146 -0
  100. package/dist/Upload-CmtHETKR.js +67 -0
  101. package/dist/UploadApi-2sfpKCMa.js +13 -0
  102. package/dist/Year-CRd3PkNx.js +41 -0
  103. package/dist/{Year-2tcz8PDF.js → Year-CTo-9KjE.js} +1 -1
  104. package/dist/main-65efBfek.js +19835 -0
  105. package/dist/main.js +53 -54
  106. package/dist/style.css +1 -1
  107. package/esm/coms/partials/ArticleFooter.vue.d.ts +1 -1
  108. package/esm/coms/partials/PagingRow.vue.d.ts +1 -1
  109. package/esm/vite.config.d.ts +6 -0
  110. package/package.json +1 -1
  111. package/dist/Article-BH4dl6Bf.js +0 -201
  112. package/dist/Autocomplete-DYxWYClO.js +0 -55
  113. package/dist/Autocomplete-SOenNkH4.js +0 -54
  114. package/dist/Callback-B57W83N1.js +0 -27
  115. package/dist/Cascader-BI6T7N-q.js +0 -88
  116. package/dist/Cascader-BoN_F8v4.js +0 -48
  117. package/dist/Checkbox-DdolP6wO.js +0 -77
  118. package/dist/Code--y8oCkjX.js +0 -43
  119. package/dist/Code-C48Gf7gU.js +0 -61
  120. package/dist/Code-DiOQvIZv.js +0 -4
  121. package/dist/Code.vue_vue_type_style_index_0_lang-DlLh3JlB.js +0 -66
  122. package/dist/Column-BNGw36Iq.js +0 -75
  123. package/dist/Comment-D37SdQb6.js +0 -105
  124. package/dist/Compare-C09T8aaU.js +0 -33
  125. package/dist/Compare-CnnCTG12.js +0 -63
  126. package/dist/Copy-DNrXXJRQ.js +0 -50
  127. package/dist/Custom--I04Jyzr.js +0 -58
  128. package/dist/Date-TKW4HbCJ.js +0 -44
  129. package/dist/DateRange-JCP1Eokf.js +0 -64
  130. package/dist/DateTime-DVOVXS_f.js +0 -45
  131. package/dist/Daterange-CqHXC9JN.js +0 -64
  132. package/dist/Delete-PcTE_3Cp.js +0 -63
  133. package/dist/Dictionary-Cfhmc2OQ.js +0 -60
  134. package/dist/Email-Rj-ZvdfJ.js +0 -55
  135. package/dist/Image-zgBgvAup.js +0 -9
  136. package/dist/Index-9fyKz8TT.js +0 -4
  137. package/dist/Index-CAlWNb2l.js +0 -179
  138. package/dist/Index-CjFLlnmH.js +0 -4
  139. package/dist/Index-Cr2WAY6Z.js +0 -76
  140. package/dist/Index-Izl4chSJ.js +0 -4
  141. package/dist/Int-dlbcQ6_t.js +0 -47
  142. package/dist/List-BsAOvgmQ.js +0 -80
  143. package/dist/Maintaince-DjSvIfbu.js +0 -21
  144. package/dist/Month-BhNUuzcc.js +0 -44
  145. package/dist/Month-KDuTRSA0.js +0 -45
  146. package/dist/Paging-BlFnu-w0.js +0 -100
  147. package/dist/QueryApi-Bc_kmvgs.js +0 -21
  148. package/dist/RichText-BImFNkHQ.js +0 -48
  149. package/dist/Select-f15Y0Ko-.js +0 -118
  150. package/dist/Text-CMEzogZ8.js +0 -4
  151. package/dist/Text-CqKE2xDo.js +0 -59
  152. package/dist/Text-DfqLW_KH.js +0 -60
  153. package/dist/Text.vue_vue_type_style_index_0_lang-BNpeGb1c.js +0 -60
  154. package/dist/TextLink-XJurKE8Q.js +0 -66
  155. package/dist/Time-BmdIHgOY.js +0 -44
  156. package/dist/Timeline-BOPAiaK-.js +0 -60
  157. package/dist/Tree-BR8gmBBa.js +0 -123
  158. package/dist/TreeNode-CdBVgaRW.js +0 -43
  159. package/dist/Upload-BtErvzEO.js +0 -151
  160. package/dist/Upload-vPTA8ndw.js +0 -73
  161. package/dist/UploadApi-CpwS4Kf1.js +0 -21
  162. package/dist/Year-CVqwpSLR.js +0 -48
  163. package/dist/assets/@intlify-BISCQg1h.js +0 -2189
  164. package/dist/assets/@monaco-editor-BCDRi0Ti.js +0 -258
  165. package/dist/assets/@vue-aVYGocXp.js +0 -93
  166. package/dist/assets/clone-BZn0cTAu.js +0 -134
  167. package/dist/assets/file-saver-CwlpTZSc.js +0 -74
  168. package/dist/assets/liquidjs-C-LVcoaY.js +0 -2893
  169. package/dist/assets/moment-h96o7c8I.js +0 -2578
  170. package/dist/assets/sprintf-js-BPTdvBYM.js +0 -148
  171. package/dist/assets/state-local-CEworIRt.js +0 -131
  172. package/dist/assets/underscore-B0BCaBxV.js +0 -1070
  173. package/dist/assets/underscore.string-DVXD2SZo.js +0 -425
  174. package/dist/assets/util-deprecate-Dzun97re.js +0 -28
  175. package/dist/assets/vue-i18n-CLr3brPz.js +0 -1670
  176. package/dist/main-BS_9gx1M.js +0 -8937
@@ -1,12 +1,6 @@
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 x, createVNode as y, createTextVNode as B, toDisplayString as Y, createCommentVNode as Z } from "vue";
2
- import "./assets/underscore-B0BCaBxV.js";
3
- import "./assets/underscore.string-DVXD2SZo.js";
4
- import { O as ee, s as D, f as te, C as ae } from "./main-BS_9gx1M.js";
5
- import "./assets/file-saver-CwlpTZSc.js";
6
- import "./assets/@monaco-editor-BCDRi0Ti.js";
7
- import "./assets/moment-h96o7c8I.js";
8
- import "./assets/liquidjs-C-LVcoaY.js";
9
- const de = /* @__PURE__ */ I({
1
+ import { defineComponent as I, toRefs as J, ref as p, onMounted as K, nextTick as P, computed as j, watch as Q, resolveComponent as c, openBlock as r, createBlock as i, withCtx as n, unref as a, withModifiers as X, createElementBlock as v, Fragment as g, renderList as x, createVNode as y, createTextVNode as B, toDisplayString as Y, createCommentVNode as Z } from "vue";
2
+ import { t as ee, s as D, q as te, p as ae } from "./main-65efBfek.js";
3
+ const oe = /* @__PURE__ */ I({
10
4
  __name: "SearchForm",
11
5
  props: {
12
6
  schema: { type: Array, required: !0 },
@@ -16,52 +10,52 @@ const de = /* @__PURE__ */ I({
16
10
  },
17
11
  emits: ["change", "submit", "mounted"],
18
12
  setup(M, { expose: N, emit: T }) {
19
- let C = T, W = M, { schema: F, table: u, layout: w, searchData: h } = J(W), V = p(), k = p(), E = p(), d = p(), L = (e) => {
20
- C("change", e);
13
+ let w = T, W = M, { schema: F, table: u, layout: C, searchData: f } = J(W), V = p(), k = p(), E = p(), d = p(), L = (e) => {
14
+ w("change", e);
21
15
  }, S = (e = null) => {
22
- C("submit");
16
+ w("submit");
23
17
  }, U = (e, t) => {
24
18
  let l = e == "*" ? null : e;
25
- h.value[u.value.name][t.name] = l, S();
26
- }, O = () => {
19
+ f.value[u.value.name][t.name] = l, S();
20
+ }, q = () => {
27
21
  V.value && (k.value = V.value.$el.clientWidth);
28
22
  }, $ = (e) => {
29
- O();
23
+ q();
30
24
  }, R = () => {
31
- let e = w.value.tabs;
25
+ let e = C.value.tabs;
32
26
  if (e)
33
27
  for (let t = 0; t < e.length; t++) {
34
28
  let l = e[t];
35
29
  d.value[u.value.name][l] || (d.value[u.value.name][l] = "*");
36
30
  }
37
31
  };
38
- d.value = ee.clone(h.value), R(), K(() => {
39
- O(), P(() => {
40
- C("mounted");
32
+ d.value = ee.clone(f.value), R(), K(() => {
33
+ q(), P(() => {
34
+ w("mounted");
41
35
  });
42
36
  });
43
- let z = q(() => {
37
+ let z = j(() => {
44
38
  if (!k.value)
45
39
  return [];
46
- let e = Math.ceil(k.value / 200), t = D.expandSearch(F.value), l = w.value.tabs ?? [], c = t.filter((b) => l.indexOf(b.name) == -1);
47
- return D.getLines(c, e, (b) => b, () => 1);
48
- }), j = q(() => {
49
- let e = [], t = w.value.tabs;
40
+ let e = Math.ceil(k.value / 200), t = D.expandSearch(F.value), l = C.value.tabs ?? [], m = t.filter((_) => l.indexOf(_.name) == -1);
41
+ return D.getLines(m, e, (_) => _, () => 1);
42
+ }), O = j(() => {
43
+ let e = [], t = C.value.tabs;
50
44
  return t && t.forEach((l) => {
51
- let c = u.value.fields.find((_) => _.name == l);
52
- e.push(c);
45
+ let m = u.value.fields.find((h) => h.name == l);
46
+ e.push(m);
53
47
  }), e;
54
48
  });
55
- return Q(() => h.value, (e, t) => {
49
+ return Q(() => f.value, (e, t) => {
56
50
  R();
57
51
  }), N({ resize: $ }), (e, t) => {
58
- 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");
59
- return r(), i(G, {
52
+ const l = c("el-radio-button"), m = c("el-radio-group"), h = c("el-form-item"), _ = c("el-col"), A = c("el-row"), G = c("el-form"), H = c("el-scrollbar");
53
+ return r(), i(H, {
60
54
  "max-height": "200px",
61
55
  class: "search-form"
62
56
  }, {
63
57
  default: n(() => [
64
- a(u).search.length > 0 ? (r(), i(H, {
58
+ a(u).search.length > 0 ? (r(), i(G, {
65
59
  key: 0,
66
60
  ref_key: "searchFormRef",
67
61
  ref: V,
@@ -71,13 +65,13 @@ const de = /* @__PURE__ */ I({
71
65
  }, ["prevent"]))
72
66
  }, {
73
67
  default: n(() => [
74
- (r(!0), v(g, null, x(a(j), (s, f) => (r(), i(_, {
68
+ (r(!0), v(g, null, x(a(O), (s, b) => (r(), i(h, {
75
69
  class: "search-tab",
76
70
  label: s.label,
77
71
  "label-width": 50
78
72
  }, {
79
73
  default: n(() => [
80
- y(c, {
74
+ y(m, {
81
75
  ref_for: !0,
82
76
  ref_key: "tabRefs",
83
77
  ref: E,
@@ -108,22 +102,22 @@ const de = /* @__PURE__ */ I({
108
102
  }, 1032, ["label"]))), 256)),
109
103
  (r(!0), v(g, null, x(a(z), (s) => (r(), i(A, {
110
104
  class: "search-row",
111
- label: a(j).length ? "其它" : "",
105
+ label: a(O).length ? "其它" : "",
112
106
  "label-width": 50,
113
107
  gutter: 5
114
108
  }, {
115
109
  default: n(() => [
116
- (r(!0), v(g, null, x(s, ({ data: f, span: o }, le) => (r(), i(b, { span: o }, {
110
+ (r(!0), v(g, null, x(s, ({ data: b, span: o }, le) => (r(), i(_, { span: o }, {
117
111
  default: n(() => [
118
- y(_, {
119
- label: a(te)(f.table.name, f.name)
112
+ y(h, {
113
+ label: a(te)(b.table.name, b.name)
120
114
  }, {
121
115
  default: n(() => [
122
116
  y(ae, {
123
117
  schema: a(F),
124
- table: f.table,
125
- field: f,
126
- "search-data": a(h),
118
+ table: b.table,
119
+ field: b,
120
+ "search-data": a(f),
127
121
  onChange: a(L),
128
122
  onSubmit: a(S)
129
123
  }, null, 8, ["schema", "table", "field", "search-data", "onChange", "onSubmit"])
@@ -146,5 +140,5 @@ const de = /* @__PURE__ */ I({
146
140
  }
147
141
  });
148
142
  export {
149
- de as _
143
+ oe as _
150
144
  };
@@ -0,0 +1,111 @@
1
+ import { defineComponent as T, toRefs as U, ref as d, computed as A, resolveComponent as _, openBlock as c, createBlock as y, unref as n, withKeys as D, withModifiers as O, 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 { V as J, f as P, i as Q, L as W } from "./main-65efBfek.js";
3
+ const X = { class: "option-text" }, Y = {
4
+ key: 0,
5
+ class: "option-suffix"
6
+ }, le = /* @__PURE__ */ T({
7
+ __name: "Select",
8
+ props: {
9
+ schema: {},
10
+ table: {},
11
+ field: {},
12
+ set: {},
13
+ row: {},
14
+ modelValue: { type: [String, Number, Boolean, Array] }
15
+ },
16
+ emits: ["submit", "change", "update:modelValue"],
17
+ setup(C, { emit: E }) {
18
+ let s = E, B = C, { schema: S, field: u, table: m, set: h, row: R, modelValue: p } = U(B), x = d(), g = d(), v = d(!1), f = d(u.value.control.data.data), K = (t) => {
19
+ t == "" && (t = null);
20
+ let e;
21
+ if (P.isString(t) && u.value.control.multiple ? e = t.join(",") : e = t, r.value = e, u.value.control.text) {
22
+ let a = m.value.fields.find((l) => l.name == u.value.control.text), o;
23
+ e && (o = f.value.find((i) => i.value == e).text);
24
+ debugger;
25
+ R.value[a.name] = o;
26
+ }
27
+ b(m.value, u.value), s("change", t);
28
+ }, N = () => {
29
+ s("submit");
30
+ }, j = () => {
31
+ }, F = () => {
32
+ v.value = !0;
33
+ let t = { text: g.value, conditions: [] };
34
+ u.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(",");
36
+ t.conditions.push({ name: e.name, value: o });
37
+ }), W.post(u.value.control.data.route, t).then(({ data: e }) => {
38
+ f.value = e;
39
+ }).finally(() => {
40
+ v.value = !1, I(() => {
41
+ let e = f.value.find((a) => a.value == r.value);
42
+ x.value.scrollToOption(e);
43
+ });
44
+ });
45
+ }, L = (t) => {
46
+ g.value = t, F();
47
+ }, M = (t, e) => {
48
+ let a = [];
49
+ return S.value.forEach((o) => {
50
+ o.fields.forEach((l) => {
51
+ l.dictionary && l.dictionary.conditions.forEach((i) => {
52
+ i.table == t.name && i.field == e.name && a.push({ table: o, field: l });
53
+ });
54
+ });
55
+ }), a;
56
+ }, b = (t, e) => {
57
+ M(t, e).forEach((o) => {
58
+ Q.setRowsValue(null, h.value, o.table, o.field), b(o.table, o.field);
59
+ });
60
+ }, r = A({
61
+ get() {
62
+ return u.value.control.multiple ? p.value == null ? [] : p.value.toString().split(",") : p.value;
63
+ },
64
+ set(t) {
65
+ s("update:modelValue", t), s("change", t);
66
+ }
67
+ });
68
+ return (t, e) => {
69
+ const a = _("el-option"), o = _("el-select");
70
+ return c(), y(o, {
71
+ ref_key: "selectRef",
72
+ ref: x,
73
+ filterable: "",
74
+ remote: "",
75
+ "reserve-keyword": "",
76
+ "default-first-option": "",
77
+ "remote-show-suffix": "",
78
+ "loading-text": "加载中",
79
+ clearable: "",
80
+ placeholder: n(J)(n(m).name, n(u).name),
81
+ multiple: n(u).control.multiple,
82
+ "remote-method": n(L),
83
+ loading: n(v),
84
+ disabled: n(u).control.readonly,
85
+ onKeyup: D(O(n(N), ["alt"]), ["enter", "native"]),
86
+ onBlur: n(j),
87
+ onChange: n(K),
88
+ modelValue: n(r),
89
+ "onUpdate:modelValue": e[0] || (e[0] = (l) => $(r) ? r.value = l : r = l)
90
+ }, {
91
+ default: V(() => [
92
+ (c(!0), k(q, null, z(n(f), (l, i) => (c(), y(a, {
93
+ label: `${l.text}${l.suffix ? "(" + l.suffix + ")" : ""}`,
94
+ value: l.value,
95
+ key: l.value
96
+ }, {
97
+ default: V(() => [
98
+ G("span", X, w(l.text), 1),
99
+ l.suffix ? (c(), k("span", Y, "(" + w(l.suffix) + ")", 1)) : H("", !0)
100
+ ]),
101
+ _: 2
102
+ }, 1032, ["label", "value"]))), 128))
103
+ ]),
104
+ _: 1
105
+ }, 8, ["placeholder", "multiple", "remote-method", "loading", "disabled", "onKeyup", "onBlur", "onChange", "modelValue"]);
106
+ };
107
+ }
108
+ });
109
+ export {
110
+ le as default
111
+ };
@@ -1,16 +1,9 @@
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 t, 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 _, createCommentVNode as q } from "vue";
2
- import "./assets/underscore-B0BCaBxV.js";
3
- import "./assets/underscore.string-DVXD2SZo.js";
4
- import "./assets/clone-BZn0cTAu.js";
5
- import "./assets/file-saver-CwlpTZSc.js";
6
- import "./assets/@monaco-editor-BCDRi0Ti.js";
7
- import "./assets/moment-h96o7c8I.js";
8
- import { t as z, f as A, h as G } from "./main-BS_9gx1M.js";
9
- import "./assets/liquidjs-C-LVcoaY.js";
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 t, withKeys as U, withModifiers as q, isRef as L, withCtx as p, createElementBlock as h, Fragment as M, renderList as N, createElementVNode as F, toDisplayString as _, createCommentVNode as j } from "vue";
2
+ import { U as z, q as A, L as G } from "./main-65efBfek.js";
10
3
  const H = { class: "option-text" }, I = {
11
4
  key: 0,
12
5
  class: "option-suffix"
13
- }, te = /* @__PURE__ */ K({
6
+ }, T = /* @__PURE__ */ K({
14
7
  __name: "Select",
15
8
  props: {
16
9
  schema: {},
@@ -21,18 +14,18 @@ const H = { class: "option-text" }, I = {
21
14
  },
22
15
  emits: ["change", "submit", "update:modelValue"],
23
16
  setup(v, { emit: x }) {
24
- let s = x, b = v, { schema: J, table: g, field: a, searchData: y, modelValue: V } = R(b), k = i(!1), m = i(), d = i(a.value.control.data.data), C = () => {
25
- s("submit");
17
+ let r = x, b = v, { schema: J, 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");
26
19
  }, w = () => {
27
20
  }, B = (l) => {
28
- m.value = l, D();
21
+ i.value = l, D();
29
22
  }, D = () => {
30
- let l = { text: m.value, conditions: [] };
23
+ let l = { text: i.value, conditions: [] };
31
24
  a.value.control.data.conditions.forEach((o) => {
32
25
  let u = y.value[o.table][o.field];
33
26
  l.conditions.push({ name: o.name, value: u });
34
27
  }), G.post(a.value.control.data.route, l).then(({ data: o }) => {
35
- d.value = o;
28
+ m.value = o;
36
29
  }).finally(() => {
37
30
  k.value = !1;
38
31
  });
@@ -41,12 +34,12 @@ const H = { class: "option-text" }, I = {
41
34
  return V.value;
42
35
  },
43
36
  set(l) {
44
- s("update:modelValue", l), s("change", l);
37
+ r("update:modelValue", l), r("change", l);
45
38
  }
46
39
  });
47
40
  return (l, o) => {
48
- const u = p("el-option"), E = p("el-select");
49
- return r(), c(E, {
41
+ const u = c("el-option"), E = c("el-select");
42
+ return s(), f(E, {
50
43
  ref: "selectRef",
51
44
  filterable: "",
52
45
  remote: "",
@@ -59,20 +52,20 @@ const H = { class: "option-text" }, I = {
59
52
  "loading-text": "加载中",
60
53
  "remote-method": t(B),
61
54
  disabled: t(a).control.readonly,
62
- onKeyup: M(N(t(C), ["alt"]), ["enter", "native"]),
55
+ onKeyup: U(q(t(C), ["alt"]), ["enter", "native"]),
63
56
  onChange: t(w),
64
57
  modelValue: t(n),
65
- "onUpdate:modelValue": o[0] || (o[0] = (e) => F(n) ? n.value = e : n = e)
58
+ "onUpdate:modelValue": o[0] || (o[0] = (e) => L(n) ? n.value = e : n = e)
66
59
  }, {
67
- default: f(() => [
68
- (r(!0), h(L, null, U(t(d), (e, O) => (r(), c(u, {
60
+ default: p(() => [
61
+ (s(!0), h(M, null, N(t(m), (e, O) => (s(), f(u, {
69
62
  label: e.text + (e.suffix ? "(" + e.suffix + ")" : ""),
70
63
  value: e.value,
71
64
  key: e.value
72
65
  }, {
73
- default: f(() => [
74
- j("span", H, _(e.text), 1),
75
- e.suffix ? (r(), h("span", I, "(" + _(e.suffix) + ")", 1)) : q("", !0)
66
+ default: p(() => [
67
+ F("span", H, _(e.text), 1),
68
+ e.suffix ? (s(), h("span", I, "(" + _(e.suffix) + ")", 1)) : j("", !0)
76
69
  ]),
77
70
  _: 2
78
71
  }, 1032, ["label", "value"]))), 128))
@@ -83,5 +76,5 @@ const H = { class: "option-text" }, I = {
83
76
  }
84
77
  });
85
78
  export {
86
- te as default
79
+ T as default
87
80
  };
@@ -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-Cfhmc2OQ.js")), n = a, { schema: m, table: s, field: d, set: i, row: p, modelValue: l } = c(n);
13
+ let r = f(() => import("./Dictionary-Dd_IU-Hn.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),