@jeecg/online 3.5.3-vite4 → 3.6.2-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/{AuthButtonConfig-2f71787c.mjs → AuthButtonConfig-244ec09f.mjs} +1 -1
  2. package/{AuthButtonTree-d73bccf5.mjs → AuthButtonTree-3aa0ed49.mjs} +1 -1
  3. package/{AuthDataConfig-32cf23d2.mjs → AuthDataConfig-83891eea.mjs} +1 -1
  4. package/{AuthDataTree-03d62d3f.mjs → AuthDataTree-94e026e3.mjs} +1 -1
  5. package/{AuthFieldConfig-b1217a0c.mjs → AuthFieldConfig-6b21915c.mjs} +1 -1
  6. package/{AuthFieldTree-888e04a9.mjs → AuthFieldTree-69864163.mjs} +1 -1
  7. package/{AuthManagerDrawer-f127b8a2.mjs → AuthManagerDrawer-300dd4e4.mjs} +4 -4
  8. package/{AuthSetterModal-37da78ed.mjs → AuthSetterModal-a414fb35.mjs} +58 -52
  9. package/{CgformCopyList-3adab58f.mjs → CgformCopyList-14b76108.mjs} +42 -39
  10. package/CgformModal-eccfc38e.mjs +611 -0
  11. package/{CgreportModal-77ec8c17.mjs → CgreportModal-2065f5a9.mjs} +2 -1
  12. package/{CgreportModal.vue_vue_type_script_setup_true_lang-52dcec5e.mjs → CgreportModal.vue_vue_type_script_setup_true_lang-c89d9222.mjs} +170 -171
  13. package/{CheckDictTable-414313f2.mjs → CheckDictTable-134cbb83.mjs} +3 -3
  14. package/{CodeFileListModal-4831ce3d.mjs → CodeFileListModal-a6d3290d.mjs} +2 -2
  15. package/{CodeFileViewModal-5990dac4.mjs → CodeFileViewModal-373e8058.mjs} +2 -2
  16. package/{CodeGeneratorModal-7df9e25d.mjs → CodeGeneratorModal-f08a89cd.mjs} +5 -6
  17. package/{CustomButtonList-1c9bd859.mjs → CustomButtonList-02e3d897.mjs} +2 -2
  18. package/{DBAttributeTable-cd1c41e5.mjs → DBAttributeTable-370de07b.mjs} +2 -2
  19. package/{DbToOnlineModal-dc5d2030.mjs → DbToOnlineModal-9f13956f.mjs} +35 -35
  20. package/{DetailForm-e4538e7a.mjs → DetailForm-424638eb.mjs} +179 -163
  21. package/{EnhanceJavaModal-7f53d2ca.mjs → EnhanceJavaModal-f63aa2d3.mjs} +17 -13
  22. package/{EnhanceJsHistory-c30805ce.mjs → EnhanceJsHistory-352b46b1.mjs} +1 -1
  23. package/EnhanceJsModal-05c73a59.mjs +311 -0
  24. package/{EnhanceSqlModal-33a94c83.mjs → EnhanceSqlModal-5e4ae84f.mjs} +55 -46
  25. package/{ExtendConfigModal-60f2cf86.mjs → ExtendConfigModal-1dde390a.mjs} +2 -2
  26. package/FieldExtendJsonModal-a70a9ccd.mjs +219 -0
  27. package/FileSelectModal-9a02560b.mjs +103 -0
  28. package/{ForeignKeyTable-cb1abd1d.mjs → ForeignKeyTable-6a843c4b.mjs} +2 -2
  29. package/{IndexTable-4e94cd1f.mjs → IndexTable-f8af9d44.mjs} +2 -2
  30. package/JModalTip-33c7dc44.mjs +49 -0
  31. package/{JOnlineSearchSelect-5608a5cf.mjs → JOnlineSearchSelect-c287af12.mjs} +17 -16
  32. package/{LeftDepart-ca7a7375.mjs → LeftDepart-fa85523d.mjs} +1 -1
  33. package/{LeftRole-d0fa8398.mjs → LeftRole-8b8dfe21.mjs} +1 -1
  34. package/{LeftUser-0c88c240.mjs → LeftUser-dc24ef2f.mjs} +1 -1
  35. package/{LinkTableConfigModal-77d7c0b9.mjs → LinkTableConfigModal-d4fbdef2.mjs} +23 -23
  36. package/{LinkTableFieldConfigModal-c5689ab0.mjs → LinkTableFieldConfigModal-787bc55c.mjs} +44 -46
  37. package/LinkTableListPiece-8499a318.mjs +34 -0
  38. package/{ModalFormDemo-0eeea994.mjs → ModalFormDemo-977a49eb.mjs} +1 -1
  39. package/OnlCgformErpList-db45e22b.mjs +454 -0
  40. package/OnlCgformErpSubTable-54b50eec.mjs +403 -0
  41. package/OnlCgformInnerSubTable-fbca73e0.mjs +253 -0
  42. package/OnlCgformInnerTableList-782eaf04.mjs +444 -0
  43. package/OnlCgformTabList-a9e1e36a.mjs +395 -0
  44. package/OnlineAutoList-0583a910.mjs +479 -0
  45. package/{OnlineAutoModal-2a146238.mjs → OnlineAutoModal-510991eb.mjs} +59 -58
  46. package/{OnlineAutoTreeList-f8d0e100.mjs → OnlineAutoTreeList-89265688.mjs} +158 -153
  47. package/{OnlineCustomModal-456a85a6.mjs → OnlineCustomModal-518ad33c.mjs} +67 -66
  48. package/{OnlineDetailModal-f967f080.mjs → OnlineDetailModal-9675390d.mjs} +40 -39
  49. package/OnlineForm-1fa2d893.mjs +750 -0
  50. package/{OnlineFormDetail-1b216792.mjs → OnlineFormDetail-0e7294ca.mjs} +56 -55
  51. package/OnlineQueryForm-1bfc8320.mjs +386 -0
  52. package/{OnlineSearchFormItem-7c2ea9ed.mjs → OnlineSearchFormItem-0cc85a8a.mjs} +83 -87
  53. package/{OnlineSelectCascade-c7baf52b.mjs → OnlineSelectCascade-4265c95d.mjs} +31 -32
  54. package/{OnlineSubFormDetail-0aa4966c.mjs → OnlineSubFormDetail-f0d2c016.mjs} +53 -50
  55. package/OnlineTabAutoModal-6f636ee2.mjs +254 -0
  56. package/OnlineTabDetailModal-7356d3a8.mjs +223 -0
  57. package/OnlineTabForm-512d3951.mjs +766 -0
  58. package/OnlineTabFormDetail-5a70219d.mjs +324 -0
  59. package/{PageAttributeTable-811185fd.mjs → PageAttributeTable-965dc58e.mjs} +20 -20
  60. package/{ProcessOnlineForm-27be6f6f.mjs → ProcessOnlineForm-67558898.mjs} +39 -38
  61. package/{QueryTable-4ba771ef.mjs → QueryTable-eb9a5b21.mjs} +2 -2
  62. package/README.md +5 -2
  63. package/{SuperQuery-3821f984.mjs → SuperQuery-5d1ca957.mjs} +171 -173
  64. package/{SuperQueryValComponent-471110b5.mjs → SuperQueryValComponent-7ad86d4b.mjs} +1 -1
  65. package/SuperQueryValComponent.vue_vue_type_script_lang-e9196096.mjs +101 -0
  66. package/cgformState-d9f8ec42.mjs +28 -0
  67. package/constant-754f1a9d.mjs +9 -0
  68. package/index-0e3ab3af.mjs +56 -0
  69. package/{index-074b92e5.mjs → index-49508cad.mjs} +4 -3
  70. package/index-b7a05eef.mjs +1496 -0
  71. package/main.index.js +1 -1
  72. package/package.json +1 -1
  73. package/style.css +1 -1
  74. package/useCgformList-423282b7.mjs +400 -0
  75. package/useCustomHook-acb00837.mjs +53 -0
  76. package/useExtendComponent-325fe3f1.mjs +3926 -0
  77. package/useListButton-cdbab702.mjs +676 -0
  78. package/useOnlinePopEvent-687070b7.mjs +19 -0
  79. package/useOnlineTest-e4bd8be3.mjs +42 -0
  80. package/{useSchemas-fc8d97ce.mjs → useSchemas-0433a403.mjs} +129 -109
  81. package/{useTableSync-dc333087.mjs → useTableSync-774c3774.mjs} +17 -13
  82. package/CgformModal-6938d8c2.mjs +0 -613
  83. package/EnhanceJsModal-0b133341.mjs +0 -233
  84. package/FieldExtendJsonModal-48f7d67f.mjs +0 -220
  85. package/FileSelectModal-64aaf623.mjs +0 -91
  86. package/JModalTip-abe1515a.mjs +0 -46
  87. package/LinkTableListPiece-34266919.mjs +0 -34
  88. package/OnlCgformErpList-7a0388d8.mjs +0 -425
  89. package/OnlCgformErpSubTable-fc6ade76.mjs +0 -388
  90. package/OnlineAutoList-85e6a30d.mjs +0 -472
  91. package/OnlineForm-630a22c2.mjs +0 -778
  92. package/OnlineQueryForm-1c5949a7.mjs +0 -378
  93. package/SuperQueryValComponent.vue_vue_type_script_lang-e3ad7ee8.mjs +0 -101
  94. package/constant-fe20103a.mjs +0 -6
  95. package/index-6a09a912.mjs +0 -58
  96. package/index-9d32ae88.mjs +0 -313
  97. package/useCgformList-2d6a5955.mjs +0 -388
  98. package/useExtendComponent-48d37d9b.mjs +0 -3919
  99. package/useListButton-cef1371a.mjs +0 -656
  100. package/useOnlinePopEvent-e9a042f8.mjs +0 -19
  101. package/useOnlineTest-0df0ae86.mjs +0 -43
@@ -1,48 +1,50 @@
1
1
  var le = Object.defineProperty;
2
2
  var H = Object.getOwnPropertySymbols;
3
3
  var ie = Object.prototype.hasOwnProperty, ne = Object.prototype.propertyIsEnumerable;
4
- var J = (a, o, s) => o in a ? le(a, o, { enumerable: !0, configurable: !0, writable: !0, value: s }) : a[o] = s, U = (a, o) => {
5
- for (var s in o || (o = {}))
6
- ie.call(o, s) && J(a, s, o[s]);
4
+ var q = (a, o, d) => o in a ? le(a, o, { enumerable: !0, configurable: !0, writable: !0, value: d }) : a[o] = d, R = (a, o) => {
5
+ for (var d in o || (o = {}))
6
+ ie.call(o, d) && q(a, d, o[d]);
7
7
  if (H)
8
- for (var s of H(o))
9
- ne.call(o, s) && J(a, s, o[s]);
8
+ for (var d of H(o))
9
+ ne.call(o, d) && q(a, d, o[d]);
10
10
  return a;
11
11
  };
12
- var p = (a, o, s) => new Promise((h, w) => {
13
- var F = (f) => {
12
+ var _ = (a, o, d) => new Promise((w, y) => {
13
+ var C = (f) => {
14
14
  try {
15
- _(s.next(f));
16
- } catch (C) {
17
- w(C);
15
+ v(d.next(f));
16
+ } catch (p) {
17
+ y(p);
18
18
  }
19
19
  }, D = (f) => {
20
20
  try {
21
- _(s.throw(f));
22
- } catch (C) {
23
- w(C);
21
+ v(d.throw(f));
22
+ } catch (p) {
23
+ y(p);
24
24
  }
25
- }, _ = (f) => f.done ? h(f.value) : Promise.resolve(f.value).then(F, D);
26
- _((s = s.apply(a, o)).next());
25
+ }, v = (f) => f.done ? w(f.value) : Promise.resolve(f.value).then(C, D);
26
+ v((d = d.apply(a, o)).next());
27
27
  });
28
- import { ref as ae, computed as oe, watch as re, defineComponent as se, resolveComponent as x, openBlock as u, createElementBlock as m, normalizeClass as q, createVNode as T, withCtx as R, Fragment as N, renderList as B, createBlock as W, createElementVNode as c, toDisplayString as M } from "vue";
28
+ import { ref as ae, computed as oe, watch as re, defineComponent as se, resolveComponent as k, openBlock as u, createElementBlock as m, normalizeClass as N, createVNode as x, withCtx as W, Fragment as V, renderList as J, createBlock as P, createElementVNode as c, toDisplayString as B } from "vue";
29
29
  import { propTypes as O } from "/@/utils/propTypes";
30
30
  import { getDictItemsByCode as de } from "/@/utils/dict";
31
- import { filterMultiDictText as b, filterDictText as ce } from "/@/utils/dict/JDictSelectUtil";
32
- import { initDictOptions as V } from "/@/utils/dict/index";
31
+ import { filterMultiDictText as T, filterDictText as ce } from "/@/utils/dict/JDictSelectUtil";
32
+ import { initDictOptions as U } from "/@/utils/dict/index";
33
33
  import { loadDictItem as ue, queryDepartTreeSync as fe, getUserList as pe } from "/@/api/common/api";
34
34
  import { defHttp as me } from "/@/utils/http/axios";
35
35
  import { getAreaTextByCode as _e } from "/@/components/Form/src/utils/Area";
36
- import { getFileAccessHttpUrl as ge } from "/@/utils/common/compUtils";
37
- import { createImgPreview as he } from "/@/components/Preview/index";
36
+ import { getFileAccessHttpUrl as he } from "/@/utils/common/compUtils";
37
+ import { createImgPreview as ge } from "/@/components/Preview/index";
38
38
  import { useMessage as ve } from "/@/hooks/web/useMessage";
39
- import { DownloadOutlined as ye, EyeOutlined as we, PaperClipOutlined as De } from "@ant-design/icons-vue";
40
- import { q as Ce } from "./useExtendComponent-48d37d9b.mjs";
41
- import { _ as Fe } from "./index-6a09a912.mjs";
39
+ import { DownloadOutlined as we, EyeOutlined as ye, PaperClipOutlined as De } from "@ant-design/icons-vue";
40
+ import { q as Fe } from "./useExtendComponent-325fe3f1.mjs";
41
+ import { MarkdownViewer as ke } from "/@/components/Markdown";
42
+ import { _ as Ce } from "./index-0e3ab3af.mjs";
42
43
  import "/@/components/Form/src/componentMap";
43
44
  import "/@/components/Modal";
44
45
  import "/@/components/Form/index";
45
46
  import "lodash-es";
47
+ import "./constant-754f1a9d.mjs";
46
48
  import "/@/components/Form/src/jeecg/components/JUpload";
47
49
  import "/@/views/system/user/user.api";
48
50
  import "/@/store/modules/user";
@@ -52,20 +54,20 @@ import "/@/store/modules/permission";
52
54
  import "/@/components/Table";
53
55
  import "/@/hooks/system/useListPage";
54
56
  import "vue-router";
55
- import "./LinkTableListPiece-34266919.mjs";
57
+ import "./LinkTableListPiece-8499a318.mjs";
56
58
  import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
57
- import "./OnlineSelectCascade-c7baf52b.mjs";
59
+ import "./OnlineSelectCascade-4265c95d.mjs";
58
60
  import "/@/components/Loading";
59
61
  import "/@/utils/auth";
60
- import "./JModalTip-abe1515a.mjs";
62
+ import "./JModalTip-33c7dc44.mjs";
63
+ import "/@/hooks/web/useAppInject";
61
64
  import "ant-design-vue";
62
65
  import "@vueuse/core";
63
- function xe(a) {
64
- console.log(a);
65
- const o = {}, s = [], h = ae({}), { createMessage: w } = ve(), F = oe(() => a.containerClass ? `jeecg-detail-form ${a.containerClass}` : "jeecg-detail-form");
66
+ function be(a) {
67
+ const o = {}, d = [], w = ae({}), { createMessage: y } = ve(), C = oe(() => a.containerClass ? `jeecg-detail-form ${a.containerClass}` : "jeecg-detail-form");
66
68
  re(
67
69
  () => a.data,
68
- (e) => p(this, null, function* () {
70
+ (e) => _(this, null, function* () {
69
71
  if (e) {
70
72
  let n = a.schemas, i = {};
71
73
  if (n && n.length > 0)
@@ -74,16 +76,15 @@ function xe(a) {
74
76
  try {
75
77
  i[t] = yield D(l);
76
78
  } catch (r) {
77
- console.error("字段【" + t + "】文本获取失败", r);
78
79
  }
79
80
  }
80
- h.value = i;
81
+ w.value = i;
81
82
  }
82
83
  }),
83
84
  { deep: !0, immediate: !0 }
84
85
  );
85
86
  function D(e) {
86
- return p(this, null, function* () {
87
+ return _(this, null, function* () {
87
88
  let n = a.data;
88
89
  if (n) {
89
90
  let i = n[e.field];
@@ -91,48 +92,48 @@ function xe(a) {
91
92
  return "";
92
93
  let l = i, t = e.view;
93
94
  if (t == "list" || t == "radio" || t == "checkbox" || t == "list_multi")
94
- l = yield _(e, n);
95
+ l = yield v(e, n);
95
96
  else if (t == "sel_search")
96
- l = yield C(e, n);
97
+ l = yield p(e, n);
97
98
  else if (t == "cat_tree")
98
- l = yield S(e, n);
99
+ l = yield b(e, n);
99
100
  else if (t == "link_table")
100
101
  l = yield ee(e, n);
101
102
  else if (t == "sel_depart")
102
- l = yield j(e, n);
103
+ l = yield S(e, n);
103
104
  else if (t == "sel_user")
104
- l = yield d(e, n);
105
+ l = yield j(e, n);
105
106
  else if (t == "pca")
106
107
  l = _e(i);
107
108
  else if (t == "link_down")
108
- l = yield v(e, n);
109
+ l = yield E(e, n);
109
110
  else if (t == "sel_tree")
110
- l = yield I(e, n);
111
+ l = yield h(e, n);
111
112
  else if (t == "switch")
112
- l = yield P(e, n);
113
+ l = yield L(e, n);
113
114
  else if (t == "image" || t == "file")
114
115
  l = K(e, n);
115
- else if (s.indexOf(e.field) >= 0) {
116
+ else if (d.indexOf(e.field) >= 0) {
116
117
  let r = o[e.field];
117
- r && r.length > 0 && (l = b(r, i));
118
+ r && r.length > 0 && (l = T(r, i));
118
119
  }
119
120
  return l;
120
121
  }
121
122
  return "";
122
123
  });
123
124
  }
124
- function _(e, n) {
125
- return p(this, null, function* () {
125
+ function v(e, n) {
126
+ return _(this, null, function* () {
126
127
  let i = f(e), l = n[e.field];
127
128
  if (!i)
128
129
  return l;
129
130
  let t = de(i);
130
131
  if (t && t.length > 0)
131
- return b(t, l);
132
+ return T(t, l);
132
133
  {
133
134
  let r = [];
134
- if (o[i] ? r = o[i] : r = (yield V(i)) || [], r && r.length > 0)
135
- return o[i] = r, b(r, l);
135
+ if (o[i] ? r = o[i] : r = (yield U(i)) || [], r && r.length > 0)
136
+ return o[i] = r, T(r, l);
136
137
  }
137
138
  return "";
138
139
  });
@@ -141,8 +142,8 @@ function xe(a) {
141
142
  let n = "", { dictCode: i, dictTable: l, dictText: t } = e;
142
143
  return l ? n = encodeURI(`${l},${t},${i}`) : n = i, n;
143
144
  }
144
- function C(e, n) {
145
- return p(this, null, function* () {
145
+ function p(e, n) {
146
+ return _(this, null, function* () {
146
147
  let i = f(e), l = n[e.field];
147
148
  if (!l)
148
149
  return "";
@@ -150,8 +151,8 @@ function xe(a) {
150
151
  return o[i + l] ? t = o[i + l] : t = (yield me.get({ url: `/sys/dict/loadDictItem/${i}`, params: { key: l } })) || [], t && t.length > 0 ? (o[i + l] = t, t.join(",")) : "";
151
152
  });
152
153
  }
153
- function S(e, n) {
154
- return p(this, null, function* () {
154
+ function b(e, n) {
155
+ return _(this, null, function* () {
155
156
  let i = n[e.field];
156
157
  if (!i)
157
158
  return "";
@@ -159,86 +160,83 @@ function xe(a) {
159
160
  return l && l.length > 0 ? l.join(",") : "";
160
161
  });
161
162
  }
162
- function j(e, n) {
163
- return p(this, null, function* () {
163
+ function S(e, n) {
164
+ return _(this, null, function* () {
164
165
  let i = n[e.field];
165
166
  if (!i)
166
167
  return "";
167
- let t = k(e).store || "id", r = (yield fe({ ids: i, primaryKey: t })) || [];
168
+ let t = s(e).store || "id", r = (yield fe({ ids: i, primaryKey: t })) || [];
168
169
  if (r && r.length > 0) {
169
170
  let g = [];
170
- for (let y of r)
171
- g.push(y.title);
171
+ for (let F of r)
172
+ g.push(F.title);
172
173
  return g.join(",");
173
174
  }
174
175
  return "";
175
176
  });
176
177
  }
177
- function d(e, n) {
178
- return p(this, null, function* () {
178
+ function j(e, n) {
179
+ return _(this, null, function* () {
179
180
  let i = n[e.field];
180
181
  if (!i)
181
182
  return "";
182
- let l = k(e), r = {
183
+ let l = s(e), r = {
183
184
  [l.store || "username"]: i
184
- }, y = ((yield pe(r)) || {}).records || [];
185
- if (y && y.length > 0) {
186
- let $ = [];
187
- console.log("getUserDataText", y);
188
- let L = l.text || "realname";
189
- for (let E of y)
190
- $.push(E[L]);
191
- return $.join(",");
185
+ }, F = ((yield pe(r)) || {}).records || [];
186
+ if (F && F.length > 0) {
187
+ let I = [], $ = l.text || "realname";
188
+ for (let M of F)
189
+ I.push(M[$]);
190
+ return I.join(",");
192
191
  }
193
192
  return "";
194
193
  });
195
194
  }
196
- function k(e) {
195
+ function s(e) {
197
196
  let n = {}, { fieldExtendJson: i } = e;
198
197
  if (i && typeof i == "string")
199
198
  try {
200
199
  let l = JSON.parse(i);
201
- n = U({}, l);
200
+ n = R({}, l);
202
201
  } catch (l) {
203
- console.error(l);
204
202
  }
205
203
  return n;
206
204
  }
207
- function v(e, n) {
208
- return p(this, null, function* () {
205
+ function E(e, n) {
206
+ return _(this, null, function* () {
209
207
  let { dictTable: i, field: l } = e, t = [];
210
208
  if (o[l])
211
209
  t = o[l];
212
210
  else if (i) {
213
211
  let r = JSON.parse(i);
214
212
  if (r) {
215
- let { table: g, txt: y, key: $, linkField: L } = r, E = `${g},${y},${$}`;
216
- if (t = [...(yield V(E)) || []], t && t.length > 0 && (o[l] = t, L)) {
217
- let te = L.split(",");
213
+ let { table: g, txt: F, key: I, linkField: $ } = r, M = `${g},${F},${I}`;
214
+ if (t = [...(yield U(M)) || []], t && t.length > 0 && (o[l] = t, $)) {
215
+ let te = $.split(",");
218
216
  for (let A of te)
219
- o[A] = t, s.push(A);
217
+ o[A] = t, d.push(A);
220
218
  }
221
219
  }
222
220
  }
223
221
  if (t && t.length > 0) {
224
222
  let r = n[l];
225
- return b(t, r);
223
+ return T(t, r);
226
224
  }
227
225
  return "";
228
226
  });
229
227
  }
230
- function I(e, n) {
231
- return p(this, null, function* () {
228
+ function h(e, n) {
229
+ return _(this, null, function* () {
232
230
  let { dict: i, field: l } = e, t = [];
233
- if (o[l] ? t = o[l] : i && (t = yield V(i)), t && t.length > 0) {
231
+ if (o[l] ? t = o[l] : i && (t = yield U(i)), t && t.length > 0) {
234
232
  let r = n[l];
235
- return b(t, r);
233
+ return T(t, r);
236
234
  }
237
235
  return "";
238
236
  });
239
237
  }
240
- function P(e, n) {
241
- return p(this, null, function* () {
238
+ function L(e, n) {
239
+ return _(this, null, function* () {
242
240
  let { fieldExtendJson: i, field: l } = e, t = ["Y", "N"];
243
241
  i && (t = JSON.parse(i));
244
242
  let r = [
@@ -259,7 +257,7 @@ function xe(a) {
259
257
  return [];
260
258
  let l = i.split(","), t = [];
261
259
  for (let r of l) {
262
- let g = ge(r) || "";
260
+ let g = he(r) || "";
263
261
  g && t.push(g);
264
262
  }
265
263
  return t;
@@ -268,12 +266,12 @@ function xe(a) {
268
266
  e && window.open(e);
269
267
  }
270
268
  function G(e) {
271
- let n = h.value[e];
269
+ let n = w.value[e];
272
270
  if (!n || n.length == 0) {
273
- w.warning("无图片!");
271
+ y.warning("无图片!");
274
272
  return;
275
273
  }
276
- he({ imageList: n });
274
+ ge({ imageList: n });
277
275
  }
278
276
  function Q(e) {
279
277
  return e ? e.substring(e.lastIndexOf("/") + 1) : "";
@@ -283,14 +281,14 @@ function xe(a) {
283
281
  return X.indexOf(e.view) >= 0 ? a.span == 12 ? "span12" : a.span == 8 ? "span8" : a.span == 6 ? "span6" : "span24" : "";
284
282
  }
285
283
  function ee(e, n) {
286
- return p(this, null, function* () {
284
+ return _(this, null, function* () {
287
285
  let i = n[e.field];
288
- return k(e).showType == "select" ? i ? n[e.field + "_dictText"] : "" : i ? n[e.field] : "";
286
+ return s(e).showType == "select" ? i ? n[e.field + "_dictText"] : "" : i ? n[e.field] : "";
289
287
  });
290
288
  }
291
289
  return {
292
- formContainerClass: F,
293
- detailFormData: h,
290
+ formContainerClass: C,
291
+ detailFormData: w,
294
292
  getItemSpan: z,
295
293
  handleDownloadFile: Y,
296
294
  handleViewImage: G,
@@ -298,13 +296,14 @@ function xe(a) {
298
296
  getLabelWidthClass: Z
299
297
  };
300
298
  }
301
- const ke = se({
299
+ const xe = se({
302
300
  name: "DetailForm",
303
301
  components: {
304
- DownloadOutlined: ye,
305
- EyeOutlined: we,
302
+ DownloadOutlined: we,
303
+ EyeOutlined: ye,
306
304
  PaperClipOutlined: De,
307
- LinkTableCard: Ce
305
+ LinkTableCard: Fe,
306
+ MarkdownViewer: ke
308
307
  },
309
308
  props: {
310
309
  span: O.number.def(24),
@@ -315,113 +314,130 @@ const ke = se({
315
314
  containerClass: O.string.def("")
316
315
  },
317
316
  setup(a) {
318
- const { formContainerClass: o, detailFormData: s, getItemSpan: h, handleDownloadFile: w, handleViewImage: F, getFilename: D, getLabelWidthClass: _ } = xe(a);
317
+ const { formContainerClass: o, detailFormData: d, getItemSpan: w, handleDownloadFile: y, handleViewImage: C, getFilename: D, getLabelWidthClass: v } = be(a);
319
318
  return {
320
319
  formContainerClass: o,
321
- detailFormData: s,
322
- getItemSpan: h,
323
- handleDownloadFile: w,
324
- handleViewImage: F,
320
+ detailFormData: d,
321
+ getItemSpan: w,
322
+ handleDownloadFile: y,
323
+ handleViewImage: C,
325
324
  getFilename: D,
326
- getLabelWidthClass: _
325
+ getLabelWidthClass: v,
326
+ filterLable: (p) => {
327
+ if (p.fieldExtendJson) {
328
+ const b = JSON.parse(p.fieldExtendJson);
329
+ if (b.labelLength && p.label.length > 4)
330
+ return p.label.substr(0, b.labelLength);
331
+ }
332
+ return p.label;
333
+ }
327
334
  };
328
335
  }
329
336
  });
330
- const Te = { class: "detail-item" }, be = ["title"], Ie = ["innerHTML"], $e = {
331
- key: 1,
337
+ const Te = { class: "detail-item" }, Le = ["title"], Ie = {
338
+ key: 0,
339
+ class: "item-content"
340
+ }, $e = ["innerHTML"], Oe = {
341
+ key: 2,
332
342
  class: "item-content",
333
343
  style: { display: "block", "padding-top": "10px" }
334
- }, Le = { key: 0 }, Oe = {
335
- key: 2,
344
+ }, Se = { key: 0 }, je = {
345
+ key: 3,
336
346
  class: "item-content"
337
- }, Se = { class: "ant-upload-list ant-upload-list-picture-card" }, je = {
347
+ }, Ee = { class: "ant-upload-list ant-upload-list-picture-card" }, Me = {
338
348
  class: "ant-upload-list-picture-card-container",
339
349
  style: { "margin-top": "8px" }
340
- }, Ee = {
350
+ }, Ne = {
341
351
  class: "ant-upload-list-item ant-upload-list-item-done ant-upload-list-item-list-type-picture-card",
342
352
  "data-has-actions": "true"
343
- }, Ne = { class: "ant-upload-list-item-info" }, Be = ["src"], Me = { class: "ant-upload-list-item-actions" }, Ve = {
344
- key: 3,
345
- class: "item-content"
346
- }, Ae = { class: "ant-upload-list ant-upload-list-text" }, He = { class: "" }, Je = { class: "ant-upload-list-item ant-upload-list-item-done ant-upload-list-item-list-type-text" }, Ue = { class: "ant-upload-list-item-info" }, qe = { class: "ant-upload-span" }, Re = { class: "ant-upload-text-icon" }, We = ["href"], Pe = { class: "ant-upload-list-item-card-actions" }, ze = {
353
+ }, Ve = { class: "ant-upload-list-item-info" }, Je = ["src"], Be = { class: "ant-upload-list-item-actions" }, Ue = {
347
354
  key: 4,
348
355
  class: "item-content"
356
+ }, Ae = { class: "ant-upload-list ant-upload-list-text" }, He = { class: "" }, qe = { class: "ant-upload-list-item ant-upload-list-item-done ant-upload-list-item-list-type-text" }, Re = { class: "ant-upload-list-item-info" }, We = { class: "ant-upload-span" }, Pe = { class: "ant-upload-text-icon" }, ze = ["href"], Ke = { class: "ant-upload-list-item-card-actions" }, Ye = {
357
+ key: 5,
358
+ class: "item-content"
349
359
  };
350
- function Ke(a, o, s, h, w, F) {
351
- const D = x("link-table-card"), _ = x("download-outlined"), f = x("eye-outlined"), C = x("paper-clip-outlined"), S = x("a-col"), j = x("a-row");
360
+ function Ge(a, o, d, w, y, C) {
361
+ const D = k("MarkdownViewer"), v = k("link-table-card"), f = k("download-outlined"), p = k("eye-outlined"), b = k("paper-clip-outlined"), S = k("a-col"), j = k("a-row");
352
362
  return u(), m("div", {
353
- class: q(a.formContainerClass)
363
+ class: N(a.formContainerClass)
354
364
  }, [
355
- T(j, null, {
356
- default: R(() => [
357
- (u(!0), m(N, null, B(a.schemas, (d, k) => (u(), W(S, {
358
- key: k,
359
- span: a.getItemSpan(d)
365
+ x(j, null, {
366
+ default: W(() => [
367
+ (u(!0), m(V, null, J(a.schemas, (s, E) => (u(), P(S, {
368
+ key: E,
369
+ span: a.getItemSpan(s)
360
370
  }, {
361
- default: R(() => [
371
+ default: W(() => [
362
372
  c("div", Te, [
363
373
  c("div", {
364
- class: q(["item-title", a.getLabelWidthClass(d)]),
365
- title: d.label
366
- }, M(d.label) + ": ", 11, be),
367
- d.isHtml ? (u(), m("div", {
368
- key: 0,
369
- class: "item-content",
370
- innerHTML: a.detailFormData[d.field]
371
- }, null, 8, Ie)) : d.isCard ? (u(), m("div", $e, [
372
- a.detailFormData[d.field] ? (u(), W(D, {
374
+ class: N(["item-title", a.getLabelWidthClass(s)]),
375
+ title: s.label
376
+ }, B(a.filterLable(s)) + ": ", 11, Le),
377
+ s.view === "markdown" ? (u(), m("div", Ie, [
378
+ x(D, {
379
+ value: a.detailFormData[s.field],
380
+ "onUpdate:value": (h) => a.detailFormData[s.field] = h,
381
+ placeholder: ""
382
+ }, null, 8, ["value", "onUpdate:value"])
383
+ ])) : s.isHtml ? (u(), m("div", {
384
+ key: 1,
385
+ class: N(["item-content", s.view]),
386
+ innerHTML: a.detailFormData[s.field]
387
+ }, null, 10, $e)) : s.isCard ? (u(), m("div", Oe, [
388
+ a.detailFormData[s.field] ? (u(), P(v, {
373
389
  key: 1,
374
390
  disabled: "",
375
391
  detail: "",
376
- value: a.detailFormData[d.field],
377
- valueField: d.dictCode,
378
- textField: d.dictText,
379
- tableName: d.dictTable,
380
- multi: d.multi
381
- }, null, 8, ["value", "valueField", "textField", "tableName", "multi"])) : (u(), m("span", Le))
382
- ])) : d.isImage ? (u(), m("div", Oe, [
383
- c("div", Se, [
384
- (u(!0), m(N, null, B(a.detailFormData[d.field], (v) => (u(), m("div", je, [
392
+ value: a.detailFormData[s.field],
393
+ valueField: s.dictCode,
394
+ textField: s.dictText,
395
+ tableName: s.dictTable,
396
+ multi: s.multi
397
+ }, null, 8, ["value", "valueField", "textField", "tableName", "multi"])) : (u(), m("span", Se))
398
+ ])) : s.isImage ? (u(), m("div", je, [
399
+ c("div", Ee, [
400
+ (u(!0), m(V, null, J(a.detailFormData[s.field], (h) => (u(), m("div", Me, [
385
401
  c("span", null, [
386
- c("div", Ee, [
387
- c("div", Ne, [
402
+ c("div", Ne, [
403
+ c("div", Ve, [
388
404
  c("img", {
389
- src: v,
405
+ src: h,
390
406
  alt: "图片不存在",
391
407
  class: "ant-upload-list-item-image"
392
- }, null, 8, Be)
408
+ }, null, 8, Je)
393
409
  ]),
394
- c("span", Me, [
395
- T(_, {
396
- onClick: (I) => a.handleDownloadFile(v)
410
+ c("span", Be, [
411
+ x(f, {
412
+ onClick: (L) => a.handleDownloadFile(h)
397
413
  }, null, 8, ["onClick"]),
398
- T(f, {
399
- onClick: (I) => a.handleViewImage(d.field)
414
+ x(p, {
415
+ onClick: (L) => a.handleViewImage(s.field)
400
416
  }, null, 8, ["onClick"])
401
417
  ])
402
418
  ])
403
419
  ])
404
420
  ]))), 256))
405
421
  ])
406
- ])) : d.isFile ? (u(), m("div", Ve, [
422
+ ])) : s.isFile ? (u(), m("div", Ue, [
407
423
  c("div", Ae, [
408
- (u(!0), m(N, null, B(a.detailFormData[d.field], (v) => (u(), m("div", He, [
424
+ (u(!0), m(V, null, J(a.detailFormData[s.field], (h) => (u(), m("div", He, [
409
425
  c("span", null, [
410
- c("div", Je, [
411
- c("div", Ue, [
412
- c("span", qe, [
413
- c("div", Re, [
414
- T(C)
426
+ c("div", qe, [
427
+ c("div", Re, [
428
+ c("span", We, [
429
+ c("div", Pe, [
430
+ x(b)
415
431
  ]),
416
432
  c("a", {
417
- href: v,
433
+ href: h,
418
434
  target: "_blank",
419
435
  rel: "noopener noreferrer",
420
436
  class: "ant-upload-list-item-name"
421
- }, M(a.getFilename(v)), 9, We),
422
- c("span", Pe, [
423
- T(_, {
424
- onClick: (I) => a.handleDownloadFile(v)
437
+ }, B(a.getFilename(h)), 9, ze),
438
+ c("span", Ke, [
439
+ x(f, {
440
+ onClick: (L) => a.handleDownloadFile(h)
425
441
  }, null, 8, ["onClick"])
426
442
  ])
427
443
  ])
@@ -430,7 +446,7 @@ function Ke(a, o, s, h, w, F) {
430
446
  ])
431
447
  ]))), 256))
432
448
  ])
433
- ])) : (u(), m("div", ze, M(a.detailFormData[d.field]), 1))
449
+ ])) : (u(), m("div", Ye, B(a.detailFormData[s.field]), 1))
434
450
  ])
435
451
  ]),
436
452
  _: 2
@@ -440,7 +456,7 @@ function Ke(a, o, s, h, w, F) {
440
456
  })
441
457
  ], 2);
442
458
  }
443
- const St = /* @__PURE__ */ Fe(ke, [["render", Ke], ["__scopeId", "data-v-fd1939fd"]]);
459
+ const Vt = /* @__PURE__ */ Ce(xe, [["render", Ge], ["__scopeId", "data-v-fce737d0"]]);
444
460
  export {
445
- St as default
461
+ Vt as default
446
462
  };