@jeecg/online 3.5.3-beta3 → 3.6.0-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 (163) hide show
  1. package/AuthButtonConfig-b6a674fa.mjs +125 -0
  2. package/AuthButtonTree-09e57bc4.mjs +156 -0
  3. package/AuthDataConfig-6e7e61ec.mjs +212 -0
  4. package/AuthDataTree-e83286c5.mjs +139 -0
  5. package/AuthFieldConfig-f1ec2708.mjs +139 -0
  6. package/AuthFieldTree-bb72e21f.mjs +232 -0
  7. package/AuthManagerDrawer-28a2d108.mjs +114 -0
  8. package/AuthSetterModal-2990d553.mjs +261 -0
  9. package/CgformCopyList-36a4cbf0.mjs +246 -0
  10. package/CgformModal-7399a5ac.mjs +611 -0
  11. package/CgreportModal-2eb9c9e1.mjs +13 -0
  12. package/CgreportModal.vue_vue_type_script_setup_true_lang-c2ceb064.mjs +566 -0
  13. package/CheckDictTable-3a8a54b3.mjs +211 -0
  14. package/CodeFileListModal-72f0d3bb.mjs +158 -0
  15. package/CodeFileViewModal-9eb88c47.mjs +244 -0
  16. package/CodeGeneratorModal-a89958f5.mjs +233 -0
  17. package/CustomButtonList-c44aec5a.mjs +363 -0
  18. package/DBAttributeTable-7d285e8d.mjs +473 -0
  19. package/DbToOnlineModal-d23cbeb1.mjs +160 -0
  20. package/DetailForm-2901d215.mjs +461 -0
  21. package/EnhanceJavaModal-153899a9.mjs +264 -0
  22. package/EnhanceJsHistory-7f5db3b1.mjs +184 -0
  23. package/EnhanceJsModal-c2fb75b8.mjs +311 -0
  24. package/EnhanceSqlModal-965e9b0a.mjs +268 -0
  25. package/ExtendConfigModal-8f08466f.mjs +111 -0
  26. package/FieldExtendJsonModal-adfcf5a7.mjs +219 -0
  27. package/FileSelectModal-432d4521.mjs +103 -0
  28. package/ForeignKeyTable-faab7ccf.mjs +69 -0
  29. package/IndexTable-0a2d3718.mjs +89 -0
  30. package/JModalTip-e1938b49.mjs +46 -0
  31. package/JOnlineSearchSelect-7e908492.mjs +95 -0
  32. package/LeftDepart-54f245b3.mjs +82 -0
  33. package/LeftRole-c138f892.mjs +86 -0
  34. package/LeftUser-9c812f8a.mjs +105 -0
  35. package/LinkTableConfigModal-c2c5c7e6.mjs +230 -0
  36. package/LinkTableFieldConfigModal-a3553b1f.mjs +176 -0
  37. package/LinkTableListPiece-7f793b08.mjs +34 -0
  38. package/ModalFormDemo-65685b0e.mjs +78 -0
  39. package/OnlCgformErpList-52c87ed3.mjs +449 -0
  40. package/OnlCgformErpSubTable-6e7fb17b.mjs +398 -0
  41. package/OnlCgformInnerSubTable-f0727b8f.mjs +248 -0
  42. package/OnlCgformInnerTableList-9f89c173.mjs +430 -0
  43. package/OnlCgformTabList-15516315.mjs +390 -0
  44. package/OnlineAutoList-63a0224f.mjs +474 -0
  45. package/OnlineAutoModal-ffe19c3f.mjs +206 -0
  46. package/OnlineAutoTreeList-317c7105.mjs +495 -0
  47. package/OnlineCustomModal-3939ce78.mjs +227 -0
  48. package/OnlineDetailModal-bfb1375f.mjs +177 -0
  49. package/OnlineForm-069f6092.mjs +749 -0
  50. package/OnlineFormDetail-ad5735fb.mjs +296 -0
  51. package/OnlineQueryForm-0771c80f.mjs +385 -0
  52. package/OnlineSearchFormItem-0db5834f.mjs +348 -0
  53. package/OnlineSelectCascade-a05c30f4.mjs +159 -0
  54. package/OnlineSubFormDetail-583d01eb.mjs +142 -0
  55. package/OnlineTabAutoModal-747e071d.mjs +253 -0
  56. package/OnlineTabDetailModal-887f0174.mjs +222 -0
  57. package/OnlineTabForm-b1dcd4b4.mjs +765 -0
  58. package/OnlineTabFormDetail-8e494a96.mjs +323 -0
  59. package/PageAttributeTable-5966b201.mjs +404 -0
  60. package/ProcessOnlineForm-4382bea7.mjs +177 -0
  61. package/QueryTable-6e8053ad.mjs +115 -0
  62. package/README.md +2 -1
  63. package/SuperQuery-78db6998.mjs +841 -0
  64. package/SuperQueryValComponent-471110b5.mjs +8 -0
  65. package/SuperQueryValComponent.vue_vue_type_script_lang-e3ad7ee8.mjs +101 -0
  66. package/auth.api-d3a6c4b3.mjs +39 -0
  67. package/auth.data-8be5c9e3.mjs +141 -0
  68. package/{cgform.data.js → cgform.data-cbdd88c3.mjs} +93 -62
  69. package/constant-754f1a9d.mjs +9 -0
  70. package/enhance.api-138e6826.mjs +104 -0
  71. package/enhance.data-efc7e155.mjs +175 -0
  72. package/index-0a93652b.mjs +237 -0
  73. package/index-7e9a23f2.mjs +1494 -0
  74. package/index-b70302f2.mjs +56 -0
  75. package/main.index.js +7 -1
  76. package/package.json +1 -1
  77. package/style.css +1 -1
  78. package/useCgformList-0c603af1.mjs +424 -0
  79. package/useCustomHook-acb00837.mjs +53 -0
  80. package/useExtendComponent-aa1cdfc8.mjs +3917 -0
  81. package/useListButton-0f18bf6a.mjs +671 -0
  82. package/useOnlinePopEvent-687070b7.mjs +19 -0
  83. package/useOnlineTest-e4bd8be3.mjs +42 -0
  84. package/useSchemas-43429d80.mjs +685 -0
  85. package/useTableSync-774c3774.mjs +87 -0
  86. package/AuthButtonConfig.js +0 -147
  87. package/AuthButtonTree.js +0 -183
  88. package/AuthDataConfig.js +0 -246
  89. package/AuthDataTree.js +0 -160
  90. package/AuthFieldConfig.js +0 -170
  91. package/AuthFieldTree.js +0 -281
  92. package/AuthManagerDrawer.js +0 -125
  93. package/AuthSetterModal.js +0 -316
  94. package/CgformCopyList.js +0 -266
  95. package/CgformModal.js +0 -780
  96. package/CgreportModal.js +0 -667
  97. package/CheckDictTable.js +0 -242
  98. package/CodeFileListModal.js +0 -175
  99. package/CodeFileViewModal.js +0 -325
  100. package/CodeGeneratorModal.js +0 -297
  101. package/CustomButtonList.js +0 -410
  102. package/DBAttributeTable.js +0 -526
  103. package/DbToOnlineModal.js +0 -192
  104. package/DetailForm.js +0 -608
  105. package/EnhanceJavaModal.js +0 -298
  106. package/EnhanceJsHistory.js +0 -229
  107. package/EnhanceJsModal.js +0 -293
  108. package/EnhanceSqlModal.js +0 -299
  109. package/ExtendConfigModal.js +0 -151
  110. package/FieldExtendJsonModal.js +0 -283
  111. package/FileSelectModal.js +0 -102
  112. package/ForeignKeyTable.js +0 -79
  113. package/IndexTable.js +0 -97
  114. package/JModalTip.js +0 -54
  115. package/JOnlineSearchSelect.js +0 -115
  116. package/LICENSE +0 -9
  117. package/LeftDepart.js +0 -96
  118. package/LeftRole.js +0 -98
  119. package/LeftUser.js +0 -117
  120. package/LinkTableConfigModal.js +0 -289
  121. package/LinkTableFieldConfigModal.js +0 -218
  122. package/LinkTableListPiece.js +0 -36
  123. package/ModalFormDemo.js +0 -85
  124. package/OnlineAutoList.js +0 -523
  125. package/OnlineAutoModal.js +0 -226
  126. package/OnlineAutoTreeList.js +0 -552
  127. package/OnlineCustomModal.js +0 -286
  128. package/OnlineDetailModal.js +0 -190
  129. package/OnlineForm.js +0 -1016
  130. package/OnlineFormDetail.js +0 -347
  131. package/OnlineQueryForm.js +0 -484
  132. package/OnlineSearchFormItem.js +0 -436
  133. package/OnlineSelectCascade.js +0 -228
  134. package/OnlineSubFormDetail.js +0 -166
  135. package/PageAttributeTable.js +0 -486
  136. package/ProcessOnlineForm.js +0 -208
  137. package/QueryTable.js +0 -129
  138. package/SuperQuery.js +0 -1020
  139. package/SuperQueryValComponent.js +0 -8
  140. package/SuperQueryValComponent.vue_vue_type_script_lang.js +0 -168
  141. package/_arrayPush.js +0 -278
  142. package/_baseClone.js +0 -471
  143. package/_baseSlice.js +0 -18
  144. package/_commonjsHelpers.js +0 -5
  145. package/_flatRest.js +0 -174
  146. package/auth.api.js +0 -43
  147. package/auth.data.js +0 -142
  148. package/clipboard.js +0 -565
  149. package/enhance.api.js +0 -129
  150. package/enhance.data.js +0 -196
  151. package/index.js +0 -87
  152. package/index2.js +0 -340
  153. package/index3.js +0 -264
  154. package/isArray.js +0 -47
  155. package/omit.js +0 -60
  156. package/pick.js +0 -68
  157. package/toString.js +0 -31
  158. package/useCgformList.js +0 -470
  159. package/useExtendComponent.js +0 -5205
  160. package/useListButton.js +0 -923
  161. package/useOnlineTest.js +0 -44
  162. package/useSchemas.js +0 -653
  163. package/useTableSync.js +0 -117
@@ -0,0 +1,264 @@
1
+ var W = Object.defineProperty;
2
+ var A = Object.getOwnPropertySymbols;
3
+ var X = Object.prototype.hasOwnProperty, Y = Object.prototype.propertyIsEnumerable;
4
+ var E = (e, t, o) => t in e ? W(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o, R = (e, t) => {
5
+ for (var o in t || (t = {}))
6
+ X.call(t, o) && E(e, o, t[o]);
7
+ if (A)
8
+ for (var o of A(t))
9
+ Y.call(t, o) && E(e, o, t[o]);
10
+ return e;
11
+ };
12
+ var p = (e, t, o) => new Promise((_, f) => {
13
+ var h = (r) => {
14
+ try {
15
+ l(o.next(r));
16
+ } catch (u) {
17
+ f(u);
18
+ }
19
+ }, c = (r) => {
20
+ try {
21
+ l(o.throw(r));
22
+ } catch (u) {
23
+ f(u);
24
+ }
25
+ }, l = (r) => r.done ? _(r.value) : Promise.resolve(r.value).then(h, c);
26
+ l((o = o.apply(e, t)).next());
27
+ });
28
+ import { defineComponent as Z, ref as k, reactive as x, computed as ee, nextTick as oe, resolveComponent as s, openBlock as D, createBlock as J, withCtx as a, createVNode as i, createTextVNode as g, createElementBlock as ne, createCommentVNode as S, normalizeProps as te, guardReactiveProps as ae } from "vue";
29
+ import { BasicModal as ie, useModalInner as re, useModal as se } from "/@/components/Modal";
30
+ import { BasicForm as le, useForm as ce } from "/@/components/Form";
31
+ import { BasicTable as ue, TableAction as me } from "/@/components/Table";
32
+ import { useListPage as de } from "/@/hooks/system/useListPage";
33
+ import { u as pe } from "./useOnlineTest-e4bd8be3.mjs";
34
+ import { u as fe, a as ge } from "./enhance.data-efc7e155.mjs";
35
+ import { a as _e, b as he, d as L } from "./enhance.api-138e6826.mjs";
36
+ import { _ as be } from "./index-b70302f2.mjs";
37
+ import "./cgform.data-cbdd88c3.mjs";
38
+ import "/@/utils/dict";
39
+ import "/@/utils/dict/JDictSelectUtil";
40
+ import "/@/utils/uuid";
41
+ import "/@/utils/http/axios";
42
+ import "/@/utils/is";
43
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
44
+ import "/@/hooks/web/useMessage";
45
+ import "vue-router";
46
+ const Ce = Z({
47
+ name: "EnhanceJavaModal",
48
+ components: { BasicModal: ie, BasicTable: ue, BasicForm: le, TableAction: me },
49
+ emits: ["register"],
50
+ setup() {
51
+ const e = k(""), t = k([]), { columns: o } = ge(t), { doRequest: _, doDeleteRecord: f, tableContext: h } = de({
52
+ tableProps: {
53
+ api: (n) => p(this, null, function* () {
54
+ let { dataSource: b, btnList: Q } = yield _e(e.value, n);
55
+ return t.value = Q, b;
56
+ }),
57
+ columns: o,
58
+ canResize: !1,
59
+ useSearchForm: !1,
60
+ beforeFetch(n) {
61
+ return Object.assign(n, { column: "orderNum", order: "asc" });
62
+ }
63
+ }
64
+ }), [c, { reload: l }, { rowSelection: r, selectedRowKeys: u }] = h, [C, { closeModal: v }] = re((n) => p(this, null, function* () {
65
+ e.value = n.row.id, l();
66
+ })), { aiTestMode: w, genEnhanceJavaData: y } = pe(), [M, d] = se(), m = k(!1), B = x({
67
+ onRegister: M,
68
+ title: ee(() => m != null && m.value ? "修改" : "新增"),
69
+ width: 800,
70
+ confirmLoading: !1,
71
+ bodyStyle: { height: "350px" },
72
+ onOk: U,
73
+ onCancel: d.closeModal
74
+ });
75
+ let F = {};
76
+ const { formSchemas: P } = fe(t), [V, { resetFields: $, setFieldsValue: N, validate: O }] = ce({
77
+ schemas: P,
78
+ showActionButtonGroup: !1,
79
+ // update-begin--author:liaozhiyang---date:20231017---for:【issues/790】弹窗内文本框不居中问题
80
+ labelCol: { xs: 24, sm: 5 },
81
+ wrapperCol: { xs: 24, sm: 16 }
82
+ // update-end--author:liaozhiyang---date:20231017---for:【issues/790】弹窗内文本框不居中问题
83
+ });
84
+ function G() {
85
+ v();
86
+ }
87
+ function T(n) {
88
+ return p(this, null, function* () {
89
+ var b;
90
+ m.value = n.isUpdate, F = R({}, (b = n.record) != null ? b : {}), d.openModal(), yield oe(), yield $(), N(F);
91
+ });
92
+ }
93
+ function j() {
94
+ T({ isUpdate: !1 });
95
+ }
96
+ function z(n) {
97
+ T({ isUpdate: !0, record: n });
98
+ }
99
+ function I() {
100
+ y(e.value);
101
+ }
102
+ function K() {
103
+ return p(this, null, function* () {
104
+ _(() => L(u.value));
105
+ });
106
+ }
107
+ function U() {
108
+ return p(this, null, function* () {
109
+ try {
110
+ B.confirmLoading = !0;
111
+ let n = yield O();
112
+ n = Object.assign({}, F, n), yield he(e.value, n, m.value), l(), d.closeModal();
113
+ } finally {
114
+ B.confirmLoading = !1;
115
+ }
116
+ });
117
+ }
118
+ function q(n) {
119
+ return [
120
+ {
121
+ label: "编辑",
122
+ onClick: () => z(n)
123
+ }
124
+ ];
125
+ }
126
+ function H(n) {
127
+ return [
128
+ {
129
+ label: "删除",
130
+ popConfirm: {
131
+ title: "确定删除吗?",
132
+ placement: "left",
133
+ confirm: () => f(() => L([n.id]))
134
+ }
135
+ }
136
+ ];
137
+ }
138
+ return {
139
+ rowSelection: r,
140
+ selectedRowKeys: u,
141
+ aiTestMode: w,
142
+ onCancel: G,
143
+ onAdd: j,
144
+ onGenEnhanceJavaData: I,
145
+ onBatchDelete: K,
146
+ getTableAction: q,
147
+ getDropDownAction: H,
148
+ formModalProps: B,
149
+ registerModal: C,
150
+ registerTable: c,
151
+ registerForm: V
152
+ };
153
+ },
154
+ computed: {
155
+ tableScroll() {
156
+ return {
157
+ y: window.innerHeight - 320
158
+ };
159
+ }
160
+ }
161
+ }), ve = {
162
+ key: 0,
163
+ style: { float: "left" }
164
+ };
165
+ function we(e, t, o, _, f, h) {
166
+ const c = s("a-button"), l = s("a-icon"), r = s("a-menu-item"), u = s("a-menu"), C = s("a-dropdown"), v = s("TableAction"), w = s("BasicTable"), y = s("BasicForm"), M = s("a-spin"), d = s("BasicModal");
167
+ return D(), J(d, {
168
+ onRegister: e.registerModal,
169
+ title: "JAVA增强",
170
+ width: 1200,
171
+ defaultFullscreen: "",
172
+ onCancel: e.onCancel
173
+ }, {
174
+ footer: a(() => [
175
+ i(c, { onClick: e.onCancel }, {
176
+ default: a(() => [
177
+ g("关闭")
178
+ ]),
179
+ _: 1
180
+ }, 8, ["onClick"]),
181
+ e.aiTestMode ? (D(), ne("div", ve, [
182
+ i(c, { onClick: e.onGenEnhanceJavaData }, {
183
+ default: a(() => [
184
+ g("生成测试数据")
185
+ ]),
186
+ _: 1
187
+ }, 8, ["onClick"])
188
+ ])) : S("", !0)
189
+ ]),
190
+ default: a(() => [
191
+ i(w, {
192
+ onRegister: e.registerTable,
193
+ rowSelection: e.rowSelection
194
+ }, {
195
+ tableTitle: a(() => [
196
+ i(c, {
197
+ onClick: e.onAdd,
198
+ type: "primary",
199
+ preIcon: "ant-design:plus"
200
+ }, {
201
+ default: a(() => [
202
+ g("新增")
203
+ ]),
204
+ _: 1
205
+ }, 8, ["onClick"]),
206
+ e.selectedRowKeys.length > 0 ? (D(), J(C, { key: 0 }, {
207
+ overlay: a(() => [
208
+ i(u, null, {
209
+ default: a(() => [
210
+ i(r, {
211
+ key: "1",
212
+ onClick: e.onBatchDelete
213
+ }, {
214
+ default: a(() => [
215
+ i(l, { type: "delete" }),
216
+ g(" 删除 ")
217
+ ]),
218
+ _: 1
219
+ }, 8, ["onClick"])
220
+ ]),
221
+ _: 1
222
+ })
223
+ ]),
224
+ default: a(() => [
225
+ i(c, { style: { "margin-left": "8px" } }, {
226
+ default: a(() => [
227
+ g(" 批量操作 "),
228
+ i(l, { type: "down" })
229
+ ]),
230
+ _: 1
231
+ })
232
+ ]),
233
+ _: 1
234
+ })) : S("", !0)
235
+ ]),
236
+ action: a(({ record: m }) => [
237
+ i(v, {
238
+ actions: e.getTableAction(m),
239
+ dropDownActions: e.getDropDownAction(m)
240
+ }, null, 8, ["actions", "dropDownActions"])
241
+ ]),
242
+ _: 1
243
+ }, 8, ["onRegister", "rowSelection"]),
244
+ i(d, te(ae(e.formModalProps)), {
245
+ default: a(() => [
246
+ i(M, {
247
+ spinning: e.formModalProps.confirmLoading
248
+ }, {
249
+ default: a(() => [
250
+ i(y, { onRegister: e.registerForm }, null, 8, ["onRegister"])
251
+ ]),
252
+ _: 1
253
+ }, 8, ["spinning"])
254
+ ]),
255
+ _: 1
256
+ }, 16)
257
+ ]),
258
+ _: 1
259
+ }, 8, ["onRegister", "onCancel"]);
260
+ }
261
+ const je = /* @__PURE__ */ be(Ce, [["render", we]]);
262
+ export {
263
+ je as default
264
+ };
@@ -0,0 +1,184 @@
1
+ var x = Object.defineProperty;
2
+ var b = Object.getOwnPropertySymbols;
3
+ var N = Object.prototype.hasOwnProperty, $ = Object.prototype.propertyIsEnumerable;
4
+ var S = (e, n, t) => n in e ? x(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, v = (e, n) => {
5
+ for (var t in n || (n = {}))
6
+ N.call(n, t) && S(e, t, n[t]);
7
+ if (b)
8
+ for (var t of b(n))
9
+ $.call(n, t) && S(e, t, n[t]);
10
+ return e;
11
+ };
12
+ var M = (e, n, t) => new Promise((u, _) => {
13
+ var m = (s) => {
14
+ try {
15
+ r(t.next(s));
16
+ } catch (d) {
17
+ _(d);
18
+ }
19
+ }, p = (s) => {
20
+ try {
21
+ r(t.throw(s));
22
+ } catch (d) {
23
+ _(d);
24
+ }
25
+ }, r = (s) => s.done ? u(s.value) : Promise.resolve(s.value).then(m, p);
26
+ r((t = t.apply(e, n)).next());
27
+ });
28
+ import { formatToDate as j } from "/@/utils/dateUtil";
29
+ import { defineComponent as I, ref as g, nextTick as R, resolveComponent as c, openBlock as w, createBlock as T, withCtx as a, createVNode as i, createTextVNode as k, normalizeClass as D, createElementVNode as F, toDisplayString as V } from "vue";
30
+ import { BasicModal as A, useModalInner as O } from "/@/components/Modal";
31
+ import { JCodeEditor as z } from "/@/components/Form";
32
+ import "/@/store";
33
+ import { defineStore as P } from "pinia";
34
+ import { createLocalStorage as q } from "/@/utils/cache";
35
+ import { _ as G } from "./index-b70302f2.mjs";
36
+ const B = q(), H = "enhance_", K = P({
37
+ id: "online-cgform-enhance",
38
+ state: () => ({
39
+ enhanceJs: {}
40
+ }),
41
+ getters: {},
42
+ actions: {
43
+ getEnhanceJs(e) {
44
+ return this.enhanceJs[e] = B.get(H + e), this.enhanceJs[e];
45
+ },
46
+ addEnhanceJs(e) {
47
+ this.enhanceJs[e.code] ? this.enhanceJs[e.code].push(v({}, e)) : this.enhanceJs[e.code] = [v({}, e)];
48
+ let n = this.enhanceJs[e.code];
49
+ for (; n.length > 16; )
50
+ n.shift();
51
+ B.set(H + e.code, n);
52
+ }
53
+ }
54
+ }), Q = I({
55
+ name: "EnhanceJsHistory",
56
+ components: { BasicModal: A, JCodeEditor: z },
57
+ setup() {
58
+ const e = K(), n = g(), t = g(!1), u = g([]), _ = g(""), m = g(0), [p, { closeModal: r }] = O((o) => M(this, null, function* () {
59
+ s(o.code, o.type);
60
+ }));
61
+ function s(o, E) {
62
+ _.value = "", u.value = [];
63
+ let J = e.getEnhanceJs(o), l = [], f = 0;
64
+ for (let h of J)
65
+ h.type === E && (f++, l.push(Object.assign({}, h, { index: f })));
66
+ l && l.length > 0 && l.sort((h, L) => L.date - h.date), u.value = [...l], R(() => y(l[0]));
67
+ }
68
+ function d() {
69
+ r();
70
+ }
71
+ function C(o) {
72
+ return j(o, "yyyy-MM-DD HH:mm:ss");
73
+ }
74
+ function y(o) {
75
+ m.value = o.index, n.value.setValue(o.str);
76
+ }
77
+ return {
78
+ codeEditorRef: n,
79
+ fullCode: y,
80
+ registerModal: p,
81
+ getFormatDate: C,
82
+ onCancel: d,
83
+ confirmLoading: t,
84
+ dataList: u,
85
+ jsStr: _,
86
+ activeIndex: m
87
+ };
88
+ }
89
+ });
90
+ const U = ["onClick"];
91
+ function W(e, n, t, u, _, m) {
92
+ const p = c("a-divider"), r = c("a-list-item"), s = c("a-list"), d = c("a-layout-sider"), C = c("JCodeEditor"), y = c("a-layout-content"), o = c("a-layout"), E = c("a-spin"), J = c("a-button"), l = c("BasicModal");
93
+ return w(), T(l, {
94
+ onRegister: e.registerModal,
95
+ title: "JS增强历史记录",
96
+ width: 1200,
97
+ maskClosable: !1,
98
+ confirmLoading: e.confirmLoading,
99
+ defaultFullscreen: "",
100
+ onCancel: e.onCancel
101
+ }, {
102
+ footer: a(() => [
103
+ i(J, { onClick: e.onCancel }, {
104
+ default: a(() => [
105
+ k("关闭")
106
+ ]),
107
+ _: 1
108
+ }, 8, ["onClick"])
109
+ ]),
110
+ default: a(() => [
111
+ i(E, { spinning: e.confirmLoading }, {
112
+ default: a(() => [
113
+ i(o, null, {
114
+ default: a(() => [
115
+ i(d, { theme: "light" }, {
116
+ default: a(() => [
117
+ i(s, {
118
+ bordered: "",
119
+ dataSource: e.dataList,
120
+ class: D("enhance-list")
121
+ }, {
122
+ header: a(() => [
123
+ F("div", null, [
124
+ i(p, { style: { margin: "0" } }, {
125
+ default: a(() => [
126
+ k("保存时间")
127
+ ]),
128
+ _: 1
129
+ })
130
+ ])
131
+ ]),
132
+ renderItem: a(({ item: f }) => [
133
+ i(r, {
134
+ class: D(e.activeIndex === f.index ? "bg-blue" : "")
135
+ }, {
136
+ default: a(() => [
137
+ F("a", {
138
+ onClick: (h) => e.fullCode(f)
139
+ }, V(e.getFormatDate(f.date)), 9, U)
140
+ ]),
141
+ _: 2
142
+ }, 1032, ["class"])
143
+ ]),
144
+ _: 1
145
+ }, 8, ["dataSource"])
146
+ ]),
147
+ _: 1
148
+ }),
149
+ i(o, null, {
150
+ default: a(() => [
151
+ i(y, { style: { margin: "8px 8px", padding: "8px", background: "#fff", minHeight: "280px" } }, {
152
+ default: a(() => [
153
+ i(C, {
154
+ ref: "codeEditorRef",
155
+ language: "javascript",
156
+ fullScreen: !0,
157
+ lineNumbers: !1,
158
+ "language-change": !1
159
+ }, null, 512)
160
+ ]),
161
+ _: 1
162
+ })
163
+ ]),
164
+ _: 1
165
+ })
166
+ ]),
167
+ _: 1
168
+ })
169
+ ]),
170
+ _: 1
171
+ }, 8, ["spinning"])
172
+ ]),
173
+ _: 1
174
+ }, 8, ["onRegister", "confirmLoading", "onCancel"]);
175
+ }
176
+ const X = /* @__PURE__ */ G(Q, [["render", W], ["__scopeId", "data-v-b15e9c26"]]), ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
177
+ __proto__: null,
178
+ default: X
179
+ }, Symbol.toStringTag, { value: "Module" }));
180
+ export {
181
+ X as E,
182
+ ie as a,
183
+ K as u
184
+ };