halo-pc 1.0.38 → 1.0.40

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-H_clf90b.js → Article-CqtkXVmQ.js} +29 -27
  2. package/dist/{ArticleFooter-BLi4TNA7.js → ArticleFooter-DeJdTtZD.js} +10 -10
  3. package/dist/{Autocomplete-DMm6oI1g.js → Autocomplete-0fxB2_FC.js} +1 -1
  4. package/dist/{Autocomplete-BF9x0F4f.js → Autocomplete-BfhYwZ5G.js} +7 -7
  5. package/dist/{Autocomplete-CcIzTPSr.js → Autocomplete-LQiKcvz1.js} +6 -6
  6. package/dist/{CSharp-CZOchOE-.js → CSharp-BIFRQLaK.js} +1 -1
  7. package/dist/{Calender-BoQV7bhA.js → Calender-DPNTn-S4.js} +4 -4
  8. package/dist/{Callback-79Bw4RwY.js → Callback-Ci5KrWOC.js} +6 -6
  9. package/dist/{Cascader-D1Ou5OSg.js → Cascader-CnOEgPDf.js} +1 -1
  10. package/dist/{Cascader-DMhl98vw.js → Cascader-Vhc81TDV.js} +14 -14
  11. package/dist/{Checkbox-C6t6S7ii.js → Checkbox-CIim5NiB.js} +1 -1
  12. package/dist/{Checkbox-DtrXMDBR.js → Checkbox-D9Sp6ZGQ.js} +7 -7
  13. package/dist/{Code-B8ISTTYK.js → Code-BEjqqeFZ.js} +3 -3
  14. package/dist/Code-BSrEPuXk.js +4 -0
  15. package/dist/{Code-DIGn8Raz.js → Code-Dp1-k8sW.js} +1 -1
  16. package/dist/{Code-DDacfgvl.js → Code-yDKaH1uF.js} +10 -8
  17. package/dist/Code.vue_vue_type_style_index_0_lang-CmkomJXY.js +59 -0
  18. package/dist/{Column-DjA11efs.js → Column-B0ViSver.js} +20 -20
  19. package/dist/{Comment-Ixu0gPk3.js → Comment-tU2wBvGO.js} +4 -2
  20. package/dist/{Compare-NN40QJWm.js → Compare-D7Gz-lE9.js} +1 -1
  21. package/dist/{Compare-C1uq4lgK.js → Compare-DqvGyQWA.js} +5 -5
  22. package/dist/{Copy-BcfSvyWG.js → Copy-Dm1LH9qB.js} +3 -3
  23. package/dist/Custom-CLKAPWEo.js +49 -0
  24. package/dist/{DataExport-DNGgWqsx.js → DataExport-BDftKI0U.js} +1 -1
  25. package/dist/{DataExport.vue_vue_type_script_setup_true_lang-tTTDFXQV.js → DataExport.vue_vue_type_script_setup_true_lang-Dzy9UC11.js} +8 -8
  26. package/dist/{DataImport-CI9eM5T1.js → DataImport-CRYaaQfA.js} +1 -1
  27. package/dist/{DataImport.vue_vue_type_script_setup_true_lang-BCMd1s45.js → DataImport.vue_vue_type_script_setup_true_lang-D7UdCnBM.js} +37 -37
  28. package/dist/{Date-CZGbZKjB.js → Date-DPPiYLWw.js} +4 -4
  29. package/dist/{Date-CGyzi8yX.js → Date-Dlh1_S7p.js} +1 -1
  30. package/dist/{DateRange-MbbkmZ_Y.js → DateRange-BgF_T3ls.js} +7 -7
  31. package/dist/{DateTime-DHrHmRLL.js → DateTime-CNjPeK9t.js} +1 -1
  32. package/dist/{DateTime-DqUOXGWH.js → DateTime-DP-VfmtN.js} +6 -6
  33. package/dist/{DateTimeRange-DgXQkZLx.js → DateTimeRange-DbEpW4nB.js} +5 -5
  34. package/dist/{Daterange-DLHJuRur.js → Daterange-DHVjhrK9.js} +5 -5
  35. package/dist/{Decimal-BUJuuvfr.js → Decimal-BDEWVSsK.js} +1 -1
  36. package/dist/{Delete-BGMk0orl.js → Delete-Bl0GmthL.js} +1 -1
  37. package/dist/{Detail-D4KzWdHQ.js → Detail-BozyhOTt.js} +12 -12
  38. package/dist/{Dictionary-Esd3ERAq.js → Dictionary-CJwZPQz6.js} +1 -1
  39. package/dist/{Email-C9K09hwC.js → Email-D5X1SzuJ.js} +8 -8
  40. package/dist/{File-ai1eYO7v.js → File-DixK0K7p.js} +34 -32
  41. package/dist/Image-BrelhCGo.js +9 -0
  42. package/dist/Index-BeM6hKX9.js +4 -0
  43. package/dist/{Index-DsZPtDYE.js → Index-BkfLyqpm.js} +34 -34
  44. package/dist/{Index-DYHrSEZ5.js → Index-D2FOeoNQ.js} +1 -1
  45. package/dist/Index-D8UVsXwf.js +4 -0
  46. package/dist/{Index-B5o7uf36.js → Index-DbXgnBz6.js} +2 -2
  47. package/dist/Index-FL-dxfFB.js +4 -0
  48. package/dist/Index-fWOqfFkG.js +4 -0
  49. package/dist/{Index-S1btGSGD.js → Index-j15c7lwJ.js} +1 -1
  50. package/dist/Index.vue_vue_type_script_setup_true_lang-ByxBNAdg.js +80 -0
  51. package/dist/{Index.vue_vue_type_script_setup_true_lang-BjE0VeTO.js → Index.vue_vue_type_script_setup_true_lang-DT7eOyjs.js} +23 -23
  52. package/dist/{Install-D-MgafyF.js → Install-WR3b4IfI.js} +1 -1
  53. package/dist/{Int-CnvfCxgn.js → Int-CWsDtoxE.js} +7 -7
  54. package/dist/{Int-D3RqVcmN.js → Int-GGWiUqO2.js} +4 -4
  55. package/dist/List-kRCsHp6d.js +71 -0
  56. package/dist/{Maintaince-BIgEbjrq.js → Maintaince-BG8MUi3A.js} +1 -1
  57. package/dist/{Markdown-hax8By5O.js → Markdown-nVfQs7kc.js} +1 -1
  58. package/dist/{Month-5lTUiWin.js → Month-B1icZmL4.js} +4 -4
  59. package/dist/{Month-CnVTSnyK.js → Month-CxKMP4kO.js} +1 -1
  60. package/dist/{Month-BDkwv-vc.js → Month-DnYlAi7k.js} +4 -4
  61. package/dist/{Normal-DoE9t7d7.js → Normal-RcqEyIFN.js} +23 -21
  62. package/dist/Paging-DrdGzxeP.js +94 -0
  63. package/dist/{PagingHeader-BFtE6jSy.js → PagingHeader-C8UpM9Kj.js} +27 -25
  64. package/dist/{PagingRow-CSB-kwMz.js → PagingRow-oQWCofO4.js} +8 -8
  65. package/dist/{Racebar-Bc-dDRss.js → Racebar-CvoF2ySW.js} +24 -22
  66. package/dist/{Radio-CMGOtMnx.js → Radio-DhjfkC14.js} +1 -1
  67. package/dist/{Register-8wi0uixs.js → Register-B0Vx60wY.js} +33 -33
  68. package/dist/{RichText-BR4Kvx0J.js → RichText-4wrLw9cy.js} +7 -7
  69. package/dist/{SearchForm-BMTSPce_.js → SearchForm-BHVnQaSL.js} +1 -1
  70. package/dist/{SearchForm.vue_vue_type_style_index_0_lang-wiTxKu-H.js → SearchForm.vue_vue_type_style_index_0_lang-ByICIL6w.js} +35 -35
  71. package/dist/SearchHeader-C9yovXli.js +4 -0
  72. package/dist/SearchHeader.vue_vue_type_style_index_0_lang-CHAg97-Y.js +60 -0
  73. package/dist/{Select-DAxdpZlO.js → Select-BDoCqD3I.js} +10 -10
  74. package/dist/{Select-MBD4Simw.js → Select-CX4i5KPQ.js} +1 -1
  75. package/dist/{Select-DnFyey0n.js → Select-vgwpegBi.js} +12 -12
  76. package/dist/Single-C3629BdC.js +317 -0
  77. package/dist/{Statistic-CTxHNeof.js → Statistic-Dxa-CZ8G.js} +10 -8
  78. package/dist/{Statistic-BS_DA72m.js → Statistic-WPezAlUn.js} +32 -30
  79. package/dist/{Stock-CtmevqBK.js → Stock-BD5Acf8y.js} +8 -6
  80. package/dist/{Stock-CbucObTu.js → Stock-EPM3j2f_.js} +1 -1
  81. package/dist/{Stock.vue_vue_type_style_index_0_lang-LfsWg1Ps.js → Stock.vue_vue_type_style_index_0_lang-D5RR2MRP.js} +14 -12
  82. package/dist/{Switch-BlXAy9qH.js → Switch-B0XN4K-9.js} +1 -1
  83. package/dist/Table-BklK1hSh.js +317 -0
  84. package/dist/{Table-Da9gan1Y.js → Table-JFdOXuME.js} +42 -40
  85. package/dist/Text-CNtHdodK.js +4 -0
  86. package/dist/{Text-CbZlEVTJ.js → Text-DrJkdxZF.js} +6 -6
  87. package/dist/{Text-C72NLZMt.js → Text-KAuEjP7I.js} +3 -3
  88. package/dist/{Text.vue_vue_type_style_index_0_lang-aMaBccpg.js → Text.vue_vue_type_style_index_0_lang-BJIbv4kF.js} +1 -1
  89. package/dist/{TextLink-SAnZ7BfX.js → TextLink-BnijIoEJ.js} +7 -7
  90. package/dist/{Textarea-DphCUpXp.js → Textarea-3SWLqQvO.js} +1 -1
  91. package/dist/{Time-DjE8yYdK.js → Time-C3qlNZkJ.js} +7 -7
  92. package/dist/{Timeline-D11vjkpZ.js → Timeline-B6hUIYhL.js} +12 -10
  93. package/dist/{Tree-kich05vY.js → Tree-DBvFF4Rj.js} +77 -75
  94. package/dist/{Tree-DK73Ou_F.js → Tree-JexLPBXX.js} +5 -3
  95. package/dist/{TreeNode-Dx6cZ31Z.js → TreeNode-BOWB2WN9.js} +4 -4
  96. package/dist/{Update-D2Plm_AG.js → Update-CDLYYwgj.js} +10 -10
  97. package/dist/{UpdateChild-BXV7QqaP.js → UpdateChild-DUG7pAuO.js} +11 -11
  98. package/dist/{Upload-B87EDynn.js → Upload-B2hbxDsT.js} +49 -49
  99. package/dist/{Upload-CHPjMGFZ.js → Upload-mlk6Y4Po.js} +13 -13
  100. package/dist/{Year-BPFmIiPX.js → Year-BRsJ7b1J.js} +1 -1
  101. package/dist/{Year-C93IJgc8.js → Year-BUF60NmB.js} +4 -4
  102. package/dist/{main-nvsTmKXH.js → main-DymfKjqO.js} +4363 -4204
  103. package/dist/main.js +144 -141
  104. package/esm/coms/commons/Table.vue.d.ts +1 -1
  105. package/esm/coms/drivers/Index.vue.d.ts +2 -2
  106. package/esm/coms/globals/Menu.vue.d.ts +1 -1
  107. package/esm/coms/globals/MenuItem.vue.d.ts +1 -1
  108. package/esm/coms/headers/@types/HeaderProps.d.ts +1 -1
  109. package/esm/coms/headers/Index.vue.d.ts +1 -1
  110. package/esm/coms/layouts/Index.vue.d.ts +3 -3
  111. package/esm/coms/layouts/Side.vue.d.ts +2 -2
  112. package/esm/coms/layouts/Top.vue.d.ts +1 -1
  113. package/esm/coms/lists/Racebar.vue.d.ts +1 -1
  114. package/esm/coms/lists/Statistic.vue.d.ts +1 -1
  115. package/esm/coms/lists/Tree.vue.d.ts +3 -3
  116. package/esm/coms/pages/@types/SchemaProps.d.ts +2 -1
  117. package/esm/coms/pages/Column.vue.d.ts +1 -1
  118. package/esm/coms/pages/Custom.vue.d.ts +6 -6
  119. package/esm/coms/pages/List.vue.d.ts +5 -3
  120. package/esm/coms/pages/Paging.vue.d.ts +5 -3
  121. package/esm/coms/pages/Single.vue.d.ts +3 -3
  122. package/esm/coms/pagings/@types/SearchHeaderProps.d.ts +9 -0
  123. package/esm/coms/pagings/@types/index.d.ts +2 -2
  124. package/esm/coms/pagings/Article.vue.d.ts +2 -2
  125. package/esm/coms/pagings/Index.vue.d.ts +4 -2
  126. package/esm/coms/pagings/SearchForm.vue.d.ts +1 -1
  127. package/esm/coms/pagings/SearchHeader.vue.d.ts +19 -0
  128. package/esm/coms/pagings/Table.vue.d.ts +4 -2
  129. package/esm/coms/partials/@types/PagingHeaderProps.d.ts +2 -1
  130. package/esm/coms/singles/Index.vue.d.ts +1 -1
  131. package/esm/coms/singles/Normal.vue.d.ts +1 -1
  132. package/esm/coms/singles/Table.vue.d.ts +1 -1
  133. package/esm/coms/singles/Tree.vue.d.ts +1 -1
  134. package/package.json +6 -6
  135. package/dist/Code-BMlBvnqa.js +0 -4
  136. package/dist/Code.vue_vue_type_style_index_0_lang-hHYTH50F.js +0 -57
  137. package/dist/Custom-Dn9_vPuD.js +0 -58
  138. package/dist/Image-CfY4G1Yn.js +0 -9
  139. package/dist/Index-CH3nwnPZ.js +0 -4
  140. package/dist/Index-CTjDkp7e.js +0 -4
  141. package/dist/Index-DSZ8wa7U.js +0 -4
  142. package/dist/Index-DVdiF3gr.js +0 -4
  143. package/dist/Index.vue_vue_type_script_setup_true_lang-H8ogKL2I.js +0 -76
  144. package/dist/List-DA4SO_le.js +0 -71
  145. package/dist/Paging-5qsCTRWy.js +0 -92
  146. package/dist/SearchFooter-DOC21dmS.js +0 -4
  147. package/dist/SearchFooter.vue_vue_type_style_index_0_lang-CoJZtP84.js +0 -55
  148. package/dist/Single-D6x6VV_B.js +0 -317
  149. package/dist/Table-CqsfAMh7.js +0 -310
  150. package/dist/Text-CHvsKR9H.js +0 -4
@@ -1,6 +1,6 @@
1
- import { defineComponent as I, toRefs as J, ref as p, onMounted as K, nextTick as P, computed as M, 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 w, createVNode as x, createTextVNode as N, toDisplayString as Y, createCommentVNode as Z } from "vue";
2
- import { d as ee, m as T, w as te, p as ae } from "./main-nvsTmKXH.js";
3
- const oe = /* @__PURE__ */ I({
1
+ import { defineComponent as I, toRefs as J, ref as p, onMounted as K, nextTick as P, computed as M, watch as Q, resolveComponent as m, openBlock as n, createBlock as i, withCtx as o, unref as a, withModifiers as X, createElementBlock as v, Fragment as g, renderList as x, createVNode as C, createTextVNode as N, toDisplayString as Y, createCommentVNode as Z } from "vue";
2
+ import { d as ee, m as T, C as te, o as ae } from "./main-DymfKjqO.js";
3
+ const re = /* @__PURE__ */ I({
4
4
  __name: "SearchForm",
5
5
  props: {
6
6
  schema: {},
@@ -10,17 +10,17 @@ const oe = /* @__PURE__ */ I({
10
10
  },
11
11
  emits: ["change", "submit", "mounted"],
12
12
  setup(W, { expose: E, emit: L }) {
13
- let C = L, U = W, { schema: F, table: u, layout: V, searchData: b } = J(U), k = p(), y = p(), $ = p(), d = p(), j = (e) => {
14
- C("change", e);
15
- }, S = (e = null) => {
16
- C("submit");
13
+ let w = L, U = W, { schema: F, table: u, layout: V, searchData: b } = J(U), k = p(), y = p(), $ = p(), d = p(), j = (e) => {
14
+ w("change", e);
15
+ }, R = (e = null) => {
16
+ w("submit");
17
17
  }, z = (e, t) => {
18
18
  let l = e == "*" ? null : e;
19
- b.value[u.value.name][t.name] = l, S();
20
- }, R = () => {
19
+ b.value[u.value.name][t.name] = l, R();
20
+ }, S = () => {
21
21
  k.value && (y.value = k.value.$el.clientWidth);
22
22
  }, O = (e) => {
23
- R();
23
+ S();
24
24
  }, B = () => {
25
25
  let e = V.value.tabs;
26
26
  if (e)
@@ -30,7 +30,7 @@ const oe = /* @__PURE__ */ I({
30
30
  }
31
31
  };
32
32
  d.value = ee.object.clone(b.value), B(), K(async () => {
33
- R(), await P(), C("mounted");
33
+ S(), await P(), w("mounted");
34
34
  });
35
35
  let q = M(() => {
36
36
  if (!y.value)
@@ -46,13 +46,13 @@ const oe = /* @__PURE__ */ I({
46
46
  });
47
47
  return Q(() => b.value, (e, t) => {
48
48
  B();
49
- }), E({ resize: O }), (e, t) => {
49
+ }), E({ onResize: O }), (e, t) => {
50
50
  const l = m("el-radio-button"), c = m("el-radio-group"), f = m("el-form-item"), h = m("el-col"), A = m("el-row"), G = m("el-form"), H = m("el-scrollbar");
51
51
  return n(), i(H, {
52
52
  "max-height": "200px",
53
53
  class: "search-form"
54
54
  }, {
55
- default: r(() => [
55
+ default: o(() => [
56
56
  a(u).search.length > 0 ? (n(), i(G, {
57
57
  key: 0,
58
58
  ref_key: "searchFormRef",
@@ -62,33 +62,33 @@ const oe = /* @__PURE__ */ I({
62
62
  onSubmit: t[0] || (t[0] = X(() => {
63
63
  }, ["prevent"]))
64
64
  }, {
65
- default: r(() => [
66
- (n(!0), v(g, null, w(a(D), (s, _) => (n(), i(f, {
65
+ default: o(() => [
66
+ (n(!0), v(g, null, x(a(D), (s, _) => (n(), i(f, {
67
67
  class: "search-tab",
68
68
  label: s.label,
69
69
  "label-width": 50
70
70
  }, {
71
- default: r(() => [
72
- x(c, {
71
+ default: o(() => [
72
+ C(c, {
73
73
  ref_for: !0,
74
74
  ref_key: "tabRefs",
75
75
  ref: $,
76
- onChange: (o) => a(z)(o, s),
76
+ onChange: (r) => a(z)(r, s),
77
77
  modelValue: a(d)[a(u).name][s.name],
78
- "onUpdate:modelValue": (o) => a(d)[a(u).name][s.name] = o
78
+ "onUpdate:modelValue": (r) => a(d)[a(u).name][s.name] = r
79
79
  }, {
80
- default: r(() => [
81
- x(l, { value: "*" }, {
82
- default: r(() => t[1] || (t[1] = [
80
+ default: o(() => [
81
+ C(l, { value: "*" }, {
82
+ default: o(() => t[1] || (t[1] = [
83
83
  N("全部")
84
84
  ])),
85
85
  _: 1
86
86
  }),
87
- (n(!0), v(g, null, w(s.control.data.data, (o) => (n(), i(l, {
88
- value: o.value
87
+ (n(!0), v(g, null, x(s.control.data.data, (r) => (n(), i(l, {
88
+ value: r.value
89
89
  }, {
90
- default: r(() => [
91
- N(Y(o.text), 1)
90
+ default: o(() => [
91
+ N(Y(r.text), 1)
92
92
  ]),
93
93
  _: 2
94
94
  }, 1032, ["value"]))), 256))
@@ -98,26 +98,26 @@ const oe = /* @__PURE__ */ I({
98
98
  ]),
99
99
  _: 2
100
100
  }, 1032, ["label"]))), 256)),
101
- (n(!0), v(g, null, w(a(q), (s) => (n(), i(A, {
101
+ (n(!0), v(g, null, x(a(q), (s) => (n(), i(A, {
102
102
  class: "search-row",
103
103
  label: a(D).length ? "其它" : "",
104
104
  "label-width": 50,
105
105
  gutter: 5
106
106
  }, {
107
- default: r(() => [
108
- (n(!0), v(g, null, w(s, ({ data: _, span: o }, le) => (n(), i(h, { span: o }, {
109
- default: r(() => [
110
- x(f, {
107
+ default: o(() => [
108
+ (n(!0), v(g, null, x(s, ({ data: _, span: r }, le) => (n(), i(h, { span: r }, {
109
+ default: o(() => [
110
+ C(f, {
111
111
  label: a(te)(_.table.name, _.name)
112
112
  }, {
113
- default: r(() => [
114
- x(a(ae), {
113
+ default: o(() => [
114
+ C(a(ae), {
115
115
  schema: a(F),
116
116
  table: _.table,
117
117
  field: _,
118
118
  "search-data": a(b),
119
119
  onChange: a(j),
120
- onSubmit: a(S)
120
+ onSubmit: a(R)
121
121
  }, null, 8, ["schema", "table", "field", "search-data", "onChange", "onSubmit"])
122
122
  ]),
123
123
  _: 2
@@ -138,5 +138,5 @@ const oe = /* @__PURE__ */ I({
138
138
  }
139
139
  });
140
140
  export {
141
- oe as _
141
+ re as _
142
142
  };
@@ -0,0 +1,4 @@
1
+ import { _ as f } from "./SearchHeader.vue_vue_type_style_index_0_lang-CHAg97-Y.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 { c as R } from "./main-DymfKjqO.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
- 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 M, withModifiers as N, isRef as F, withCtx as p, createElementBlock as h, Fragment as L, renderList as U, createElementVNode as j, toDisplayString as _, createCommentVNode as q } from "vue";
2
- import { f as z, w as A, _ as G } from "./main-nvsTmKXH.js";
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 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 { p as z, C as A, _ as G } from "./main-DymfKjqO.js";
3
3
  const H = { class: "option-text" }, I = {
4
4
  key: 0,
5
5
  class: "option-suffix"
@@ -14,9 +14,9 @@ const H = { class: "option-text" }, I = {
14
14
  },
15
15
  emits: ["change", "submit", "update:modelValue"],
16
16
  setup(v, { emit: x }) {
17
- let r = x, b = v, { schema: J, table: g, field: a, searchData: y, modelValue: V } = R(b), w = d(!1), i = d(), m = d(a.value.control.data.data), k = () => {
17
+ let r = x, b = v, { schema: J, table: g, field: a, searchData: y, modelValue: V } = R(b), C = d(!1), i = d(), m = d(a.value.control.data.data), k = () => {
18
18
  r("submit");
19
- }, C = () => {
19
+ }, w = () => {
20
20
  }, B = (l) => {
21
21
  i.value = l, D();
22
22
  }, D = () => {
@@ -27,7 +27,7 @@ const H = { class: "option-text" }, I = {
27
27
  }), G.post(a.value.control.data.route, l).then(({ data: o }) => {
28
28
  m.value = o;
29
29
  }).finally(() => {
30
- w.value = !1;
30
+ C.value = !1;
31
31
  });
32
32
  }, n = S({
33
33
  get() {
@@ -39,7 +39,7 @@ const H = { class: "option-text" }, I = {
39
39
  });
40
40
  return (l, o) => {
41
41
  const u = c("el-option"), E = c("el-select");
42
- return s(), f(E, {
42
+ return s(), p(E, {
43
43
  ref: "selectRef",
44
44
  filterable: "",
45
45
  remote: "",
@@ -53,17 +53,17 @@ const H = { class: "option-text" }, I = {
53
53
  "remote-method": t(B),
54
54
  disabled: t(a).control.readonly,
55
55
  onKeyup: M(N(t(k), ["alt"]), ["enter", "native"]),
56
- onChange: t(C),
56
+ onChange: t(w),
57
57
  modelValue: t(n),
58
58
  "onUpdate:modelValue": o[0] || (o[0] = (e) => F(n) ? n.value = e : n = e)
59
59
  }, {
60
- default: p(() => [
61
- (s(!0), h(L, null, U(t(m), (e, O) => (s(), f(u, {
60
+ default: f(() => [
61
+ (s(!0), h(L, null, U(t(m), (e, O) => (s(), p(u, {
62
62
  label: e.text + (e.suffix ? "(" + e.suffix + ")" : ""),
63
63
  value: e.value,
64
64
  key: e.value
65
65
  }, {
66
- default: p(() => [
66
+ default: f(() => [
67
67
  j("span", H, _(e.text), 1),
68
68
  e.suffix ? (s(), h("span", I, "(" + _(e.suffix) + ")", 1)) : q("", !0)
69
69
  ]),
@@ -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-Esd3ERAq.js")), n = a, { schema: m, table: s, field: d, set: i, row: p, modelValue: l } = c(n);
13
+ let r = f(() => import("./Dictionary-CJwZPQz6.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 A, toRefs as D, ref as f, computed as L, resolveComponent as _, openBlock as c, createBlock as y, unref as n, 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, d as P, o as Q, _ as W } from "./main-nvsTmKXH.js";
2
+ import { T as J, d as P, h as Q, _ as W } from "./main-DymfKjqO.js";
3
3
  const X = { class: "option-text" }, Y = {
4
4
  key: 0,
5
5
  class: "option-suffix"
@@ -15,7 +15,7 @@ const X = { class: "option-text" }, Y = {
15
15
  },
16
16
  emits: ["submit", "change", "update:modelValue"],
17
17
  setup(C, { emit: E }) {
18
- let s = E, B = C, { schema: S, field: u, table: m, set: h, row: R, modelValue: p } = D(B), x = f(), b = f(), v = f(!1), d = f(u.value.control.data.data), j = (t) => {
18
+ let s = E, B = C, { schema: S, field: u, table: m, set: h, row: R, modelValue: p } = D(B), x = f(), b = f(), v = f(!1), d = f(u.value.control.data.data), T = (t) => {
19
19
  t == "" && (t = null);
20
20
  let e;
21
21
  if (P.object.isString(t) && u.value.control.multiple ? e = t.join(",") : e = t, r.value = e, u.value.control.text) {
@@ -25,10 +25,10 @@ const X = { class: "option-text" }, Y = {
25
25
  R.value[a.name] = o;
26
26
  }
27
27
  g(m.value, u.value), s("change", t);
28
- }, K = () => {
28
+ }, j = () => {
29
29
  s("submit");
30
+ }, K = () => {
30
31
  }, N = () => {
31
- }, F = () => {
32
32
  v.value = !0;
33
33
  let t = { text: b.value, conditions: [] };
34
34
  u.value.control.data.conditions.forEach((e) => {
@@ -42,9 +42,9 @@ const X = { class: "option-text" }, Y = {
42
42
  x.value.scrollToOption(e);
43
43
  });
44
44
  });
45
- }, M = (t) => {
46
- b.value = t, F();
47
- }, T = (t, e) => {
45
+ }, F = (t) => {
46
+ b.value = t, N();
47
+ }, M = (t, e) => {
48
48
  let a = [];
49
49
  return S.value.forEach((o) => {
50
50
  o.fields.forEach((l) => {
@@ -54,7 +54,7 @@ const X = { class: "option-text" }, Y = {
54
54
  });
55
55
  }), a;
56
56
  }, g = (t, e) => {
57
- T(t, e).forEach((o) => {
57
+ M(t, e).forEach((o) => {
58
58
  Q.setRowsValue(null, h.value, o.table, o.field), g(o.table, o.field);
59
59
  });
60
60
  }, r = L({
@@ -79,12 +79,12 @@ const X = { class: "option-text" }, Y = {
79
79
  clearable: "",
80
80
  placeholder: n(J)(n(m).name, n(u).name),
81
81
  multiple: n(u).control.multiple,
82
- "remote-method": n(M),
82
+ "remote-method": n(F),
83
83
  loading: n(v),
84
84
  disabled: n(u).control.readonly,
85
- onKeyup: O(U(n(K), ["alt"]), ["enter", "native"]),
86
- onBlur: n(N),
87
- onChange: n(j),
85
+ onKeyup: O(U(n(j), ["alt"]), ["enter", "native"]),
86
+ onBlur: n(K),
87
+ onChange: n(T),
88
88
  modelValue: n(r),
89
89
  "onUpdate:modelValue": e[0] || (e[0] = (l) => $(r) ? r.value = l : r = l)
90
90
  }, {
@@ -0,0 +1,317 @@
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({
5
+ __name: "Single",
6
+ props: {
7
+ base: {},
8
+ route: {},
9
+ url: {},
10
+ win: {}
11
+ },
12
+ emits: ["navigate", "load", "succeed", "close"],
13
+ 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);
16
+ return t != a;
17
+ }, ye = () => {
18
+ Ee();
19
+ }, _e = (l, t) => {
20
+ H("copy", l, t);
21
+ }, ge = (l, t) => {
22
+ H("update", l, t);
23
+ }, he = () => {
24
+ i.value.visible = !1;
25
+ }, H = (l, t, a) => {
26
+ 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
+ }, we = (l, t = null) => {
29
+ let a = `${b.value[l].route}`;
30
+ if (t != null) {
31
+ let n = t[y.value.key.name];
32
+ a += `?id=${n}`;
33
+ }
34
+ return a;
35
+ }, 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
+ n.control.textualize = !1;
38
+ }));
39
+ }, I = (l) => {
40
+ i.value.visible = !1, D("succeed", X.value, l);
41
+ }, xe = () => {
42
+ D("close");
43
+ }, J = (l, t, a, n, S) => {
44
+ }, Q = (l, t) => {
45
+ if (t) {
46
+ L.value = y.value.layouts.find((a) => a.type == l);
47
+ return;
48
+ }
49
+ p.value.layout = p.value.table.layouts.find((a) => a.type == l);
50
+ }, Re = (l) => {
51
+ let t = r.value.find((a) => a.name == l);
52
+ p.value.table = t, p.value.layout = t.layouts[0];
53
+ }, Se = (l) => {
54
+ 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) => {
57
+ oe(() => {
58
+ V.value.validate((n, S) => {
59
+ 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 }) => {
65
+ if (z != "ValidateError")
66
+ 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);
71
+ _ && (w.value = _.name);
72
+ }
73
+ oe(() => {
74
+ V.value.clearValidate(), V.value.validate((_, o) => {
75
+ _ || (a && a(!1), K.value = []);
76
+ });
77
+ });
78
+ }).finally(() => {
79
+ a && a();
80
+ });
81
+ });
82
+ });
83
+ }, W = (l) => {
84
+ var a, n;
85
+ 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
+ }, Te = (l) => {
88
+ M.triggerResize(j.value, l), M.triggerResize(E.value, l);
89
+ }, Ve = (l, t) => {
90
+ if (l == Ie.ctrlS) {
91
+ if (f.value.type == "Detail") {
92
+ M.triggerKeyboard(G.value, l, t);
93
+ return;
94
+ }
95
+ A(t);
96
+ }
97
+ }, Ee = () => {
98
+ let l = U.url.getUrl(T.value.path, T.value.query);
99
+ D("load", l, !1, (t) => {
100
+ });
101
+ };
102
+ (() => {
103
+ W(O.value.data);
104
+ })();
105
+ let A = (l) => {
106
+ if (!P.value.submit) {
107
+ re.notify("提示", "请在子组件暴露submit方法来实现快捷提交", "warning");
108
+ return;
109
+ }
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", {
120
+ ref_key: "singleRef",
121
+ ref: ce,
122
+ class: Le(["ha-single-page", { [e(X) + "-page"]: !0, editing: e(C) }])
123
+ }, [
124
+ m("div", Je, [
125
+ g(z, { class: "main-scroller" }, {
126
+ default: s(() => [
127
+ g($, {
128
+ ref_key: "formRef",
129
+ ref: V,
130
+ model: e(v),
131
+ onSubmit: t[3] || (t[3] = Ke(() => {
132
+ }, ["prevent"]))
133
+ }, {
134
+ default: s(() => [
135
+ g(se, {
136
+ ref_key: "mainRef",
137
+ ref: j,
138
+ module: e(f),
139
+ schema: e(r),
140
+ table: e(y),
141
+ layout: e(L),
142
+ next: e(b),
143
+ set: e(v),
144
+ route: e(T),
145
+ "validate-errors": e(K),
146
+ onChange: e(J),
147
+ onLayoutChange: t[0] || (t[0] = (o) => e(Q)(o, !0)),
148
+ onSubmit: e(A)
149
+ }, null, 8, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onChange", "onSubmit"]),
150
+ e(r).length > 1 ? (d(), h(S, {
151
+ key: 0,
152
+ type: "border-card",
153
+ onTabChange: e(Re),
154
+ modelValue: e(w),
155
+ "onUpdate:modelValue": t[1] || (t[1] = (o) => ee(w) ? w.value = o : w = o)
156
+ }, {
157
+ default: s(() => [
158
+ (d(!0), F(le, null, te(e(r).filter((o, ze) => ze > 0), (o) => (d(), h(n, {
159
+ name: o.name,
160
+ key: o.name
161
+ }, {
162
+ label: s(() => [
163
+ g(a, {
164
+ placement: "top",
165
+ content: o.tooltip,
166
+ disabled: !o.tooltip
167
+ }, {
168
+ default: s(() => [
169
+ m("div", null, x(e(qe)(o.table)), 1)
170
+ ]),
171
+ _: 2
172
+ }, 1032, ["content", "disabled"])
173
+ ]),
174
+ _: 2
175
+ }, 1032, ["name"]))), 128))
176
+ ]),
177
+ _: 1
178
+ }, 8, ["onTabChange", "modelValue"])) : B("", !0),
179
+ e(p).table ? (d(), h(se, {
180
+ key: 1,
181
+ ref_key: "childRef",
182
+ ref: E,
183
+ module: e(f),
184
+ schema: e(r),
185
+ table: e(p).table,
186
+ layout: e(p).layout,
187
+ next: e(b),
188
+ set: e(v),
189
+ route: e(T),
190
+ "validate-errors": e(K),
191
+ onRowEdit: e(Ce),
192
+ onChange: e(J),
193
+ 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)
196
+ ]),
197
+ _: 1
198
+ }, 8, ["model"])
199
+ ]),
200
+ _: 1
201
+ }),
202
+ (d(), h(je(e($e)), {
203
+ ref_key: "updateRef",
204
+ ref: P,
205
+ class: "main-footer",
206
+ schema: e(r),
207
+ table: e(y),
208
+ layout: e(L),
209
+ next: e(b),
210
+ set: e(v),
211
+ route: e(T),
212
+ onCopy: e(_e),
213
+ onEdit: e(ge),
214
+ onSubmit: e(ke),
215
+ onClose: e(xe)
216
+ }, null, 40, ["schema", "table", "layout", "next", "set", "route", "onCopy", "onEdit", "onSubmit", "onClose"]))
217
+ ]),
218
+ e(C) ? (d(), h(N, {
219
+ key: 0,
220
+ class: "side-form"
221
+ }, {
222
+ header: s(() => [
223
+ m("div", Qe, [
224
+ m("div", We, x(e(ue)("common.modify")) + " " + x(e(q)[e(R).show[0].name]), 1),
225
+ m("div", {
226
+ class: "row-close",
227
+ onClick: t[4] || (t[4] = (o) => ee(C) ? C.value = !1 : C = !1)
228
+ }, t[6] || (t[6] = [
229
+ m("i", { class: "fa fa-close" }, null, -1)
230
+ ]))
231
+ ])
232
+ ]),
233
+ default: s(() => [
234
+ g(z, null, {
235
+ default: s(() => [
236
+ g($, {
237
+ size: "small",
238
+ "label-width": "80px"
239
+ }, {
240
+ 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;` : ""),
243
+ rules: o.rules
244
+ }, {
245
+ label: s(() => [
246
+ ae(x(e(Ae)(e(R).name, o.name)) + " ", 1),
247
+ o.control.tooltip ? (d(), h(k, {
248
+ key: 0,
249
+ trigger: "hover",
250
+ placement: "top",
251
+ width: "auto",
252
+ title: o.control.tooltip.title
253
+ }, {
254
+ reference: s(() => t[7] || (t[7] = [
255
+ m("i", { class: "fa fa-question-circle icon-question" }, null, -1)
256
+ ])),
257
+ default: s(() => [
258
+ m("pre", null, x(o.control.tooltip.content), 1)
259
+ ]),
260
+ _: 2
261
+ }, 1032, ["title"])) : B("", !0)
262
+ ]),
263
+ default: s(() => [
264
+ g(Fe, {
265
+ schema: e(r),
266
+ table: e(R),
267
+ field: o,
268
+ set: e(v),
269
+ row: e(q)
270
+ }, null, 8, ["schema", "table", "field", "set", "row"])
271
+ ]),
272
+ _: 2
273
+ }, 1032, ["style", "rules"]))), 256))
274
+ ]),
275
+ _: 1
276
+ })
277
+ ]),
278
+ _: 1
279
+ })
280
+ ]),
281
+ _: 1
282
+ })) : B("", !0),
283
+ e(i).page ? (d(), h(_, {
284
+ key: 1,
285
+ "destroy-on-close": "",
286
+ "append-to-body": e(i).appendToBody,
287
+ size: `${e(f).width ?? "60%"}`,
288
+ modelValue: e(i).visible,
289
+ "onUpdate:modelValue": t[5] || (t[5] = (o) => e(i).visible = o)
290
+ }, {
291
+ header: s(() => [
292
+ m("div", Xe, [
293
+ ae(x(e(b)[e(i).page].title) + " ", 1),
294
+ m("a", {
295
+ class: "drawer-copy",
296
+ href: `${e(U).url.getToUrl(e(i).url)}`
297
+ }, x(e(ue)("common.link")), 9, Ye)
298
+ ])
299
+ ]),
300
+ default: s(() => [
301
+ g(e(Me), {
302
+ ref_key: "pageRef",
303
+ ref: G,
304
+ url: e(i).url,
305
+ onSucceed: e(I),
306
+ onClose: e(he)
307
+ }, null, 8, ["url", "onSucceed", "onClose"])
308
+ ]),
309
+ _: 1
310
+ }, 8, ["append-to-body", "size", "modelValue"])) : B("", !0)
311
+ ], 2);
312
+ };
313
+ }
314
+ });
315
+ export {
316
+ al as default
317
+ };