@jeecg/online 3.7.1-RC → 3.7.4-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 (143) hide show
  1. package/AccountLoginForm-84cbd344.mjs +254 -0
  2. package/AiModal-26903538.mjs +84 -0
  3. package/AppForgetPassword-52443f23.mjs +310 -0
  4. package/AppLogin-ecf798fa.mjs +287 -0
  5. package/AppLoginHeader-4432c584.mjs +27 -0
  6. package/AppNameEmail-3303a037.mjs +180 -0
  7. package/AppRegister-79a62c59.mjs +303 -0
  8. package/AppTenant-f0bef7ca.mjs +373 -0
  9. package/AppThirdForm-fd8b4604.mjs +189 -0
  10. package/AuthButtonConfig-d5bffca0.mjs +156 -0
  11. package/AuthButtonTree-b0bd6c40.mjs +165 -0
  12. package/{AuthDataConfig-5c3a8e6b.mjs → AuthDataConfig-d3b7afa4.mjs} +23 -23
  13. package/{AuthDataTree-dd7a1240.mjs → AuthDataTree-f14a98d9.mjs} +43 -43
  14. package/{AuthFieldConfig-9f6fa06c.mjs → AuthFieldConfig-f1e224cc.mjs} +71 -71
  15. package/AuthFieldTree-5cc0da05.mjs +232 -0
  16. package/{AuthManagerDrawer-76f15e8d.mjs → AuthManagerDrawer-32556109.mjs} +6 -6
  17. package/{AuthSetterModal-f5d2e87f.mjs → AuthSetterModal-364f1f67.mjs} +9 -9
  18. package/BuiltInButtonList-bb6cf95c.mjs +10 -0
  19. package/BuiltInButtonList.vue_vue_type_script_setup_true_lang-07d0b7d0.mjs +338 -0
  20. package/CgformAddressModal-1131274c.mjs +260 -0
  21. package/CgformCopyList-5fba0810.mjs +252 -0
  22. package/{CgformModal-21c5c387.mjs → CgformModal-c4a4e0c2.mjs} +190 -194
  23. package/{CgreportModal-edefa8e3.mjs → CgreportModal-8a84aae5.mjs} +181 -168
  24. package/{CheckDictTable-1bc8322d.mjs → CheckDictTable-8a938e3a.mjs} +3 -3
  25. package/CodeFileListModal-a924902a.mjs +159 -0
  26. package/{CodeFileViewModal-2fe911f4.mjs → CodeFileViewModal-405e2b58.mjs} +66 -66
  27. package/CodeGeneratorModal-2e1dc13d.mjs +281 -0
  28. package/CustomButtonList-c453b654.mjs +274 -0
  29. package/{DBAttributeTable-285d40db.mjs → DBAttributeTable-1a45c7b7.mjs} +3 -3
  30. package/{DbToOnlineModal-5dcb67c3.mjs → DbToOnlineModal-f28ff0a3.mjs} +53 -54
  31. package/{DetailForm-deecbf3d.mjs → DetailForm-c592b8d8.mjs} +5 -5
  32. package/DropMenuItem-1e49abea.mjs +44 -0
  33. package/{EnhanceJavaModal-45c66cd5.mjs → EnhanceJavaModal-d5a93f2a.mjs} +62 -62
  34. package/{EnhanceJsHistory-fab3102e.mjs → EnhanceJsHistory-8ddb0657.mjs} +35 -35
  35. package/{EnhanceJsModal-175357a1.mjs → EnhanceJsModal-dc4f9ade.mjs} +104 -104
  36. package/{EnhanceSqlModal-7ea1b300.mjs → EnhanceSqlModal-984f045d.mjs} +67 -67
  37. package/ErrorTip-bb616e32.mjs +7 -0
  38. package/ErrorTip.vue_vue_type_script_setup_true_lang-49d35987.mjs +60 -0
  39. package/{ExtendConfigModal-a89ae052.mjs → ExtendConfigModal-7d70f362.mjs} +2 -2
  40. package/{FieldExtendJsonModal-32135634.mjs → FieldExtendJsonModal-bf04d70e.mjs} +2 -2
  41. package/{FileSelectModal-1643c8b9.mjs → FileSelectModal-ffc69d4a.mjs} +23 -23
  42. package/{ForeignKeyTable-7f7e28a7.mjs → ForeignKeyTable-92decaea.mjs} +3 -3
  43. package/{IndexTable-cdcc2b48.mjs → IndexTable-2ded2014.mjs} +3 -3
  44. package/JModalTip-a927f85d.mjs +49 -0
  45. package/{JOnlineSearchSelect-22aae934.mjs → JOnlineSearchSelect-04ec87d0.mjs} +1 -1
  46. package/{LeftDepart-d5615ed9.mjs → LeftDepart-52cb6743.mjs} +1 -1
  47. package/LeftRole-b0e0b496.mjs +86 -0
  48. package/{LeftUser-22baa378.mjs → LeftUser-dd4b10e2.mjs} +30 -30
  49. package/{LinkTableConfigModal-9242d750.mjs → LinkTableConfigModal-7eeb3e58.mjs} +43 -31
  50. package/{LinkTableFieldConfigModal-24adc50c.mjs → LinkTableFieldConfigModal-b078fcef.mjs} +1 -1
  51. package/{LinkTableListPiece-f3a8e0d7.mjs → LinkTableListPiece-e016b8e6.mjs} +1 -1
  52. package/{ModalFormDemo-711418db.mjs → ModalFormDemo-aaa719a7.mjs} +1 -1
  53. package/OnlCgformErpList-5c5acdaa.mjs +488 -0
  54. package/OnlCgformErpSubTable-e1b88312.mjs +441 -0
  55. package/{OnlCgformInnerSubTable-6c23781f.mjs → OnlCgformInnerSubTable-6b6fa15a.mjs} +38 -38
  56. package/OnlCgformInnerTableList-b283a525.mjs +474 -0
  57. package/OnlCgformTabList-91e3dd78.mjs +424 -0
  58. package/OnlineAutoList-84475f1b.mjs +513 -0
  59. package/OnlineAutoModal-95f46901.mjs +260 -0
  60. package/OnlineAutoTreeList-20b9ce04.mjs +523 -0
  61. package/OnlineCustomModal-c8b1e780.mjs +232 -0
  62. package/{OnlineDetailModal-d5895734.mjs → OnlineDetailModal-5b412bb9.mjs} +74 -65
  63. package/OnlineForm-58282699.mjs +1012 -0
  64. package/{OnlineFormDetail-022ca117.mjs → OnlineFormDetail-fc087725.mjs} +7 -7
  65. package/{OnlineFormUrlAdd-9715d70a.mjs → OnlineFormUrlAdd-bc9105bb.mjs} +9 -9
  66. package/{OnlineFormUrlDetail-8f864b1a.mjs → OnlineFormUrlDetail-ad912560.mjs} +11 -11
  67. package/{OnlineFormUrlEdit-ac985b36.mjs → OnlineFormUrlEdit-f2fa79ff.mjs} +9 -9
  68. package/OnlineFormUrlSuccess-76813d45.mjs +59 -0
  69. package/OnlineQueryForm-9248341f.mjs +484 -0
  70. package/{OnlineSearchFormItem-6c557343.mjs → OnlineSearchFormItem-1e437bd3.mjs} +82 -82
  71. package/{OnlineSelectCascade-05c40fef.mjs → OnlineSelectCascade-d631ed72.mjs} +1 -1
  72. package/{OnlineSubFormDetail-58e896ce.mjs → OnlineSubFormDetail-8be879b9.mjs} +52 -53
  73. package/{OnlineTabAutoModal-47b18ad6.mjs → OnlineTabAutoModal-c9ca3c24.mjs} +108 -95
  74. package/{OnlineTabDetailModal-82de1465.mjs → OnlineTabDetailModal-fd4c9a72.mjs} +36 -36
  75. package/OnlineTabForm-1940e88b.mjs +814 -0
  76. package/{OnlineTabFormDetail-8d0c40c0.mjs → OnlineTabFormDetail-2aa67564.mjs} +17 -17
  77. package/{PageAttributeTable-25e3b7da.mjs → PageAttributeTable-66e7b485.mjs} +108 -108
  78. package/PhoneLoginForm-86437a9d.mjs +214 -0
  79. package/{ProcessOnlineForm-148632fe.mjs → ProcessOnlineForm-98ede18d.mjs} +32 -32
  80. package/{QueryTable-f7bfca7f.mjs → QueryTable-65d3f54f.mjs} +3 -3
  81. package/SetSwitchOptions-f914bc17.mjs +62 -0
  82. package/ShareAddView-657f0f8b.mjs +86 -0
  83. package/ShareEditView-1b945fd3.mjs +92 -0
  84. package/ShareView-222ed3d8.mjs +80 -0
  85. package/ShareView.vue_vue_type_script_setup_true_lang-44fbeaff.mjs +162 -0
  86. package/SingleView-23b0cb4e.mjs +68 -0
  87. package/SingleView.vue_vue_type_style_index_0_lang-e0f2f6c0.mjs +131 -0
  88. package/SuperQuery-46032e66.mjs +974 -0
  89. package/{SuperQueryValComponent-7ad86d4b.mjs → SuperQueryValComponent-5a9ccfd4.mjs} +1 -1
  90. package/{SuperQueryValComponent.vue_vue_type_script_lang-e9196096.mjs → SuperQueryValComponent.vue_vue_type_script_lang-8fe34917.mjs} +11 -11
  91. package/{auth.api-ea1d33d4.mjs → auth.api-53df4c33.mjs} +17 -17
  92. package/{auth.data-511e5197.mjs → auth.data-626c5083.mjs} +16 -12
  93. package/button.data-fe45d43b.mjs +12 -0
  94. package/{cgform.data-475d4984.mjs → cgform.data-0ca62d09.mjs} +4 -1
  95. package/{enhance.data-a67572e1.mjs → enhance.data-6601ff44.mjs} +1 -1
  96. package/index-19eaef11.mjs +11 -0
  97. package/index-1a2e8832.mjs +135 -0
  98. package/{index-f30613d1.mjs → index-2fb8e07f.mjs} +59 -59
  99. package/index-5e89258d.mjs +8 -0
  100. package/index-9e1e1e53.mjs +57 -0
  101. package/{index-30e0e923.mjs → index-a039036e.mjs} +272 -262
  102. package/index-c5a79b0b.mjs +219 -0
  103. package/index-cce225be.mjs +110 -0
  104. package/index-f2c2d1cf.mjs +74 -0
  105. package/main.index.js +1 -1
  106. package/package.json +1 -1
  107. package/shareStore-7de6c7a6.mjs +67 -0
  108. package/style.css +1 -1
  109. package/useCgformList-f3cb9156.mjs +378 -0
  110. package/useExtendComponent-bb98e568.mjs +4460 -0
  111. package/useListButton-98908683.mjs +719 -0
  112. package/{useSchemas-a9c75b0f.mjs → useSchemas-b074f3a1.mjs} +33 -0
  113. package/{useTableSync-d7e9f18d.mjs → useTableSync-075826a1.mjs} +1 -1
  114. package/utils-9fce7606.mjs +16 -0
  115. package/AiModal-6de335e3.mjs +0 -84
  116. package/AuthButtonConfig-89763932.mjs +0 -154
  117. package/AuthButtonTree-2d87d0b3.mjs +0 -157
  118. package/AuthFieldTree-e326fc38.mjs +0 -232
  119. package/CgformCopyList-365b3e8f.mjs +0 -251
  120. package/CodeFileListModal-24601898.mjs +0 -159
  121. package/CodeGeneratorModal-f09fe903.mjs +0 -282
  122. package/CustomButtonList-f07bc695.mjs +0 -397
  123. package/JModalTip-b055ab60.mjs +0 -49
  124. package/LeftRole-2ed8a2bf.mjs +0 -86
  125. package/OnlCgformErpList-58acdfa0.mjs +0 -470
  126. package/OnlCgformErpSubTable-9b1e1938.mjs +0 -426
  127. package/OnlCgformInnerTableList-4b5e14ed.mjs +0 -458
  128. package/OnlCgformTabList-019ad753.mjs +0 -408
  129. package/OnlineAutoList-48589d09.mjs +0 -493
  130. package/OnlineAutoModal-c2928847.mjs +0 -239
  131. package/OnlineAutoTreeList-3baa1d00.mjs +0 -503
  132. package/OnlineCustomModal-9e17b6ce.mjs +0 -232
  133. package/OnlineForm-9f1153ba.mjs +0 -985
  134. package/OnlineFormUrlSuccess-3dfc54ab.mjs +0 -59
  135. package/OnlineQueryForm-eedb9a60.mjs +0 -466
  136. package/OnlineTabForm-27655c83.mjs +0 -817
  137. package/SetSwitchOptions-b2af757f.mjs +0 -62
  138. package/SuperQuery-a8592995.mjs +0 -967
  139. package/index-1d1a6e56.mjs +0 -57
  140. package/useCgformList-f41d4dc1.mjs +0 -426
  141. package/useExtendComponent-dcae5c78.mjs +0 -4399
  142. package/useListButton-bfac4ecf.mjs +0 -697
  143. /package/{OnlineForm.vue_vue_type_style_index_0_scoped_4657b304_lang-4ed993c7.mjs → OnlineForm.vue_vue_type_style_index_0_scoped_3f26e7bd_lang-4ed993c7.mjs} +0 -0
@@ -12,12 +12,12 @@ var V = (e, t, a) => t in e ? D(e, t, { enumerable: !0, configurable: !0, writab
12
12
  }, R = (e, t) => I(e, M(t));
13
13
  import { defineComponent as S, ref as E, computed as $, resolveComponent as s, openBlock as H, createBlock as J, mergeProps as q, withCtx as c, createVNode as i, normalizeClass as N, createElementVNode as T, withDirectives as z, vShow as j } from "vue";
14
14
  import { JVxeTypes as n } from "/@/components/jeecg/JVxeTable/types";
15
- import { u as K } from "./useTableSync-d7e9f18d.mjs";
15
+ import { u as K } from "./useTableSync-075826a1.mjs";
16
16
  import { useMessage as G } from "/@/hooks/web/useMessage";
17
17
  import { useJPrompt as L } from "/@/components/jeecg/JPrompt";
18
18
  import { useDesign as Q } from "/@/hooks/web/useDesign";
19
- import { _ as U } from "./index-1d1a6e56.mjs";
20
- import "./cgform.data-475d4984.mjs";
19
+ import { _ as U } from "./index-9e1e1e53.mjs";
20
+ import "./cgform.data-0ca62d09.mjs";
21
21
  import "/@/utils/dict";
22
22
  import "/@/utils/dict/JDictSelectUtil";
23
23
  import "/@/utils/uuid";
@@ -0,0 +1,159 @@
1
+ var h = (m, e, i) => new Promise((o, c) => {
2
+ var p = (n) => {
3
+ try {
4
+ t(i.next(n));
5
+ } catch (a) {
6
+ c(a);
7
+ }
8
+ }, r = (n) => {
9
+ try {
10
+ t(i.throw(n));
11
+ } catch (a) {
12
+ c(a);
13
+ }
14
+ }, t = (n) => n.done ? o(n.value) : Promise.resolve(n.value).then(p, r);
15
+ t((i = i.apply(m, e)).next());
16
+ });
17
+ import { ref as u, reactive as x, resolveComponent as g, openBlock as _, createElementBlock as v, Fragment as y, createVNode as s, withCtx as d, createTextVNode as f, createElementVNode as M, normalizeStyle as F, renderList as B, toDisplayString as N } from "vue";
18
+ import { defHttp as R } from "/@/utils/http/axios";
19
+ import "/@/components/Form";
20
+ import { BasicModal as T, useModalInner as z, useModal as G } from "/@/components/Modal";
21
+ import { InfoCircleTwoTone as K } from "@ant-design/icons-vue";
22
+ import S from "./CodeFileViewModal-405e2b58.mjs";
23
+ import { useMessage as H } from "/@/hooks/web/useMessage";
24
+ import { downloadByData as I } from "/@/utils/file/download";
25
+ import { _ as E } from "./index-9e1e1e53.mjs";
26
+ import "ant-design-vue";
27
+ import "/@/hooks/web/useDesign";
28
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
29
+ import "vue-router";
30
+ const j = {
31
+ name: "CodeFileListModal",
32
+ components: {
33
+ BasicModal: T,
34
+ InfoCircleTwoTone: K,
35
+ CodeFileViewModal: S
36
+ },
37
+ emits: ["register"],
38
+ setup() {
39
+ const { createMessage: m } = H(), e = u([]), i = window.innerHeight - 150, o = x({
40
+ overflowY: "auto",
41
+ maxHeight: i + "px"
42
+ }), c = u(!1), p = u(""), r = u(""), [t, { closeModal: n }] = z((l) => h(this, null, function* () {
43
+ e.value = l.codeList, p.value = l.tableName, r.value = l.pathKey;
44
+ }));
45
+ function a() {
46
+ n();
47
+ }
48
+ function w() {
49
+ let l = e.value;
50
+ if (!l || l.length == 0) {
51
+ m.warning("无代码!");
52
+ return;
53
+ }
54
+ let V = l.join(",");
55
+ return R.post(
56
+ {
57
+ url: "/online/cgform/api/downGenerateCode",
58
+ params: {
59
+ fileList: encodeURI(V),
60
+ pathKey: r.value
61
+ },
62
+ responseType: "blob"
63
+ },
64
+ { isTransformResponse: !1 }
65
+ ).then((C) => {
66
+ if (!C || C.size == 0) {
67
+ m.warning("导出代码失败!");
68
+ return;
69
+ }
70
+ let b = "导到生成代码_" + p.value + "_" + (/* @__PURE__ */ new Date()).getTime() + ".zip";
71
+ I(C, b, "application/zip");
72
+ });
73
+ }
74
+ const [L, { openModal: k }] = G();
75
+ function D() {
76
+ let l = e.value;
77
+ k(!0, {
78
+ codeList: l,
79
+ pathKey: r.value
80
+ });
81
+ }
82
+ return {
83
+ registerModal: t,
84
+ registerCodeViewModal: L,
85
+ divStyle: o,
86
+ codeList: e,
87
+ onDownloadGenerateCode: w,
88
+ handleClose: a,
89
+ handleView: D,
90
+ loading: c
91
+ };
92
+ }
93
+ };
94
+ function U(m, e, i, o, c, p) {
95
+ const r = g("info-circle-two-tone"), t = g("a-button"), n = g("BasicModal"), a = g("code-file-view-modal");
96
+ return _(), v(y, null, [
97
+ s(n, {
98
+ onRegister: o.registerModal,
99
+ width: 1200,
100
+ defaultFullscreen: !1,
101
+ canFullscreen: !1
102
+ }, {
103
+ title: d(() => [
104
+ s(r),
105
+ e[0] || (e[0] = f(" 代码生成结果 "))
106
+ ]),
107
+ footer: d(() => [
108
+ s(t, { onClick: o.handleClose }, {
109
+ default: d(() => e[2] || (e[2] = [
110
+ f("关闭")
111
+ ])),
112
+ _: 1
113
+ }, 8, ["onClick"]),
114
+ s(t, {
115
+ type: "primary",
116
+ ghost: "",
117
+ onClick: o.handleView
118
+ }, {
119
+ default: d(() => e[3] || (e[3] = [
120
+ f("在线预览")
121
+ ])),
122
+ _: 1
123
+ }, 8, ["onClick"]),
124
+ s(t, {
125
+ type: "primary",
126
+ onClick: o.onDownloadGenerateCode,
127
+ loading: o.loading
128
+ }, {
129
+ default: d(() => e[4] || (e[4] = [
130
+ f("下载到本地")
131
+ ])),
132
+ _: 1
133
+ }, 8, ["onClick", "loading"])
134
+ ]),
135
+ default: d(() => [
136
+ M("div", {
137
+ style: F(o.divStyle)
138
+ }, [
139
+ M("p", null, [
140
+ (_(!0), v(y, null, B(o.codeList, (w) => (_(), v(y, null, [
141
+ f(N(w), 1),
142
+ e[1] || (e[1] = M("br", null, null, -1))
143
+ ], 64))), 256))
144
+ ])
145
+ ], 4)
146
+ ]),
147
+ _: 1
148
+ }, 8, ["onRegister"]),
149
+ s(a, {
150
+ onRegister: o.registerCodeViewModal,
151
+ onDownload: o.onDownloadGenerateCode,
152
+ onClose: o.handleClose
153
+ }, null, 8, ["onRegister", "onDownload", "onClose"])
154
+ ], 64);
155
+ }
156
+ const te = /* @__PURE__ */ E(j, [["render", U]]);
157
+ export {
158
+ te as default
159
+ };
@@ -1,27 +1,27 @@
1
- var F = (o, h, s) => new Promise((w, m) => {
2
- var _ = (i) => {
1
+ var F = (o, r, u) => new Promise((w, g) => {
2
+ var v = (i) => {
3
3
  try {
4
- u(s.next(i));
5
- } catch (r) {
6
- m(r);
4
+ d(u.next(i));
5
+ } catch (s) {
6
+ g(s);
7
7
  }
8
- }, v = (i) => {
8
+ }, y = (i) => {
9
9
  try {
10
- u(s.throw(i));
11
- } catch (r) {
12
- m(r);
10
+ d(u.throw(i));
11
+ } catch (s) {
12
+ g(s);
13
13
  }
14
- }, u = (i) => i.done ? w(i.value) : Promise.resolve(i.value).then(_, v);
15
- u((s = s.apply(o, h)).next());
14
+ }, d = (i) => i.done ? w(i.value) : Promise.resolve(i.value).then(v, y);
15
+ d((u = u.apply(o, r)).next());
16
16
  });
17
- import { defineComponent as P, ref as g, reactive as H, resolveComponent as f, openBlock as k, createBlock as x, withCtx as p, createVNode as C, createTextVNode as V, createElementVNode as W, normalizeStyle as j, createCommentVNode as q } from "vue";
17
+ import { defineComponent as P, ref as h, reactive as H, resolveComponent as p, openBlock as k, createBlock as x, withCtx as m, createVNode as C, createTextVNode as V, createElementVNode as W, normalizeStyle as j, createCommentVNode as q } from "vue";
18
18
  import { defHttp as z } from "/@/utils/http/axios";
19
19
  import { BasicModal as U, useModalInner as Y } from "/@/components/Modal";
20
20
  import { InfoCircleTwoTone as Q } from "@ant-design/icons-vue";
21
21
  import { message as $ } from "ant-design-vue";
22
22
  import { JCodeEditor as X } from "/@/components/Form";
23
23
  import { useDesign as Z } from "/@/hooks/web/useDesign";
24
- import { _ as ee } from "./index-1d1a6e56.mjs";
24
+ import { _ as ee } from "./index-9e1e1e53.mjs";
25
25
  import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
26
26
  import "/@/hooks/web/useMessage";
27
27
  import "vue-router";
@@ -33,23 +33,23 @@ const te = P({
33
33
  JCodeEditor: X
34
34
  },
35
35
  emits: ["download", "register", "close"],
36
- setup(o, { emit: h }) {
37
- const s = g([]), w = g(""), m = g([]), _ = g(!1), v = window.innerHeight - 142, u = g("java"), i = g("");
38
- let r = H({});
36
+ setup(o, { emit: r }) {
37
+ const u = h([]), w = h(""), g = h([]), v = h(!1), y = window.innerHeight - 142, d = h("java"), i = h("");
38
+ let s = H({});
39
39
  const [D, { closeModal: M }] = Y((t) => F(this, null, function* () {
40
- r = H({}), i.value = "", s.value = t.codeList, w.value = t.pathKey, T(), _.value = !0;
41
- })), { prefixCls: y } = Z("online-codeFileViewModal");
40
+ s = H({}), i.value = "", u.value = t.codeList, w.value = t.pathKey, T(), v.value = !0;
41
+ })), { prefixCls: _ } = Z("online-codeFileViewModal");
42
42
  function T() {
43
43
  let t = G(), l = t[0];
44
44
  N(l, t);
45
45
  let n = [];
46
- const e = function(d) {
47
- if (d.children) {
48
- let a = d.children;
49
- a.length == 1 ? e(a[0]) : a.length > 1 && n.push(d);
46
+ const e = function(c) {
47
+ if (c.children) {
48
+ let a = c.children;
49
+ a.length == 1 ? e(a[0]) : a.length > 1 && n.push(c);
50
50
  }
51
51
  };
52
- e(l), m.value = n, setTimeout(() => {
52
+ e(l), g.value = n, setTimeout(() => {
53
53
  b(l);
54
54
  }, 300);
55
55
  }
@@ -64,7 +64,7 @@ const te = P({
64
64
  let n = l(t);
65
65
  if (n && n.isLeaf === !0) {
66
66
  let e = n.path;
67
- r[e] || (yield K(e)), u.value = A(e), i.value = r[e];
67
+ s[e] || (yield K(e)), d.value = A(e), i.value = s[e];
68
68
  }
69
69
  });
70
70
  }
@@ -79,23 +79,23 @@ const te = P({
79
79
  return e;
80
80
  }
81
81
  function G() {
82
- let t = [], l = [], n = s.value;
82
+ let t = [], l = [], n = u.value;
83
83
  for (let e of n) {
84
- let d = e.replace(new RegExp("\\\\", "g"), "/").replace("生成成功:", "").trim();
85
- if (d) {
86
- let a = d.split("/");
87
- for (let c = 0; c < a.length; c++) {
88
- let B = a[c], L = R(a, c);
84
+ let c = e.replace(new RegExp("\\\\", "g"), "/").replace("生成成功:", "").trim();
85
+ if (c) {
86
+ let a = c.split("/");
87
+ for (let f = 0; f < a.length; f++) {
88
+ let B = a[f], L = R(a, f);
89
89
  if (B) {
90
90
  let E = {
91
91
  title: B,
92
92
  key: L
93
93
  };
94
94
  if (B != 0) {
95
- let S = R(a, c - 1);
95
+ let S = R(a, f - 1);
96
96
  S && (E.pid = S);
97
97
  }
98
- c == a.length - 1 && (E.isLeaf = !0, E.path = d), (l.indexOf(L) < 0 || c == a.length - 1) && (t.push(E), l.push(L));
98
+ f == a.length - 1 && (E.isLeaf = !0, E.path = c), (l.indexOf(L) < 0 || f == a.length - 1) && (t.push(E), l.push(L));
99
99
  }
100
100
  }
101
101
  }
@@ -103,10 +103,10 @@ const te = P({
103
103
  return t;
104
104
  }
105
105
  function I() {
106
- M(), h("close");
106
+ M(), r("close");
107
107
  }
108
108
  function J() {
109
- h("download");
109
+ r("download");
110
110
  }
111
111
  function A(t) {
112
112
  return t.endsWith("xml") ? "application/xml" : t.endsWith("sql") ? "text/x-sql" : t.endsWith("vue") ? "text/x-vue" : t.endsWith("ts") ? "text/typescript" : "text/x-java";
@@ -116,7 +116,7 @@ const te = P({
116
116
  let n = l.node.dataRef;
117
117
  if (n.isLeaf) {
118
118
  let e = n.path;
119
- r[e] || (yield K(e)), u.value = A(e), i.value = r[e];
119
+ s[e] || (yield K(e)), d.value = A(e), i.value = s[e];
120
120
  }
121
121
  });
122
122
  }
@@ -134,32 +134,32 @@ const te = P({
134
134
  $.warning(e.message);
135
135
  return;
136
136
  }
137
- let d = new Blob([e]), a = new FileReader();
138
- a.readAsText(d, "utf8"), a.onload = function() {
139
- let c = this.result;
140
- r[t] = c, l(1);
137
+ let c = new Blob([e]), a = new FileReader();
138
+ a.readAsText(c, "utf8"), a.onload = function() {
139
+ let f = this.result;
140
+ s[t] = f, l(1);
141
141
  };
142
142
  });
143
143
  });
144
144
  }
145
145
  return {
146
146
  registerModal: D,
147
- codeList: s,
147
+ codeList: u,
148
148
  onDownloadGenerateCode: J,
149
149
  handleClose: I,
150
- treeData: m,
150
+ treeData: g,
151
151
  showCodeContent: O,
152
152
  activeCodeContent: i,
153
- expandStatus: _,
154
- height: v,
155
- language: u,
156
- prefixCls: y,
153
+ expandStatus: v,
154
+ height: y,
155
+ language: d,
156
+ prefixCls: _,
157
157
  modalHeight: 1e3
158
158
  };
159
159
  }
160
160
  });
161
- function ne(o, h, s, w, m, _) {
162
- const v = f("info-circle-two-tone"), u = f("a-directory-tree"), i = f("a-col"), r = f("JCodeEditor"), D = f("a-empty"), M = f("a-row"), y = f("a-button"), T = f("BasicModal");
161
+ function ne(o, r, u, w, g, v) {
162
+ const y = p("info-circle-two-tone"), d = p("a-directory-tree"), i = p("a-col"), s = p("JCodeEditor"), D = p("a-empty"), M = p("a-row"), _ = p("a-button"), T = p("BasicModal");
163
163
  return k(), x(T, {
164
164
  height: o.modalHeight,
165
165
  onRegister: o.registerModal,
@@ -171,41 +171,41 @@ function ne(o, h, s, w, m, _) {
171
171
  onOk: o.onDownloadGenerateCode,
172
172
  wrapClassName: o.prefixCls
173
173
  }, {
174
- title: p(() => [
175
- C(v),
176
- V(" 代码在线预览 ")
174
+ title: m(() => [
175
+ C(y),
176
+ r[1] || (r[1] = V(" 代码在线预览 "))
177
177
  ]),
178
- footer: p(() => [
179
- C(y, { onClick: o.handleClose }, {
180
- default: p(() => [
178
+ footer: m(() => [
179
+ C(_, { onClick: o.handleClose }, {
180
+ default: m(() => r[2] || (r[2] = [
181
181
  V("关闭")
182
- ]),
182
+ ])),
183
183
  _: 1
184
184
  }, 8, ["onClick"]),
185
- C(y, {
185
+ C(_, {
186
186
  type: "primary",
187
187
  onClick: o.onDownloadGenerateCode
188
188
  }, {
189
- default: p(() => [
189
+ default: m(() => r[3] || (r[3] = [
190
190
  V("下载到本地")
191
- ]),
191
+ ])),
192
192
  _: 1
193
193
  }, 8, ["onClick"])
194
194
  ]),
195
- default: p(() => [
195
+ default: m(() => [
196
196
  W("div", null, [
197
197
  C(M, null, {
198
- default: p(() => [
198
+ default: m(() => [
199
199
  C(i, {
200
200
  span: 6,
201
201
  gutter: 3,
202
202
  style: { "border-right": "1px solid #eee" }
203
203
  }, {
204
- default: p(() => [
204
+ default: m(() => [
205
205
  W("div", {
206
206
  style: j({ height: o.height + "px", overflowY: "auto" })
207
207
  }, [
208
- o.treeData.length ? (k(), x(u, {
208
+ o.treeData.length ? (k(), x(d, {
209
209
  key: 0,
210
210
  defaultExpandAll: !0,
211
211
  "tree-data": o.treeData,
@@ -219,11 +219,11 @@ function ne(o, h, s, w, m, _) {
219
219
  span: 18,
220
220
  gutter: 3
221
221
  }, {
222
- default: p(() => [
223
- o.activeCodeContent ? (k(), x(r, {
222
+ default: m(() => [
223
+ o.activeCodeContent ? (k(), x(s, {
224
224
  key: 0,
225
225
  value: o.activeCodeContent,
226
- "onUpdate:value": h[0] || (h[0] = (b) => o.activeCodeContent = b),
226
+ "onUpdate:value": r[0] || (r[0] = (b) => o.activeCodeContent = b),
227
227
  theme: "idea",
228
228
  language: o.language,
229
229
  fullScreen: !1,
@@ -247,7 +247,7 @@ function ne(o, h, s, w, m, _) {
247
247
  _: 1
248
248
  }, 8, ["height", "onRegister", "onOk", "wrapClassName"]);
249
249
  }
250
- const me = /* @__PURE__ */ ee(te, [["render", ne]]);
250
+ const ge = /* @__PURE__ */ ee(te, [["render", ne]]);
251
251
  export {
252
- me as default
252
+ ge as default
253
253
  };