@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.
- package/AccountLoginForm-84cbd344.mjs +254 -0
- package/AiModal-26903538.mjs +84 -0
- package/AppForgetPassword-52443f23.mjs +310 -0
- package/AppLogin-ecf798fa.mjs +287 -0
- package/AppLoginHeader-4432c584.mjs +27 -0
- package/AppNameEmail-3303a037.mjs +180 -0
- package/AppRegister-79a62c59.mjs +303 -0
- package/AppTenant-f0bef7ca.mjs +373 -0
- package/AppThirdForm-fd8b4604.mjs +189 -0
- package/AuthButtonConfig-d5bffca0.mjs +156 -0
- package/AuthButtonTree-b0bd6c40.mjs +165 -0
- package/{AuthDataConfig-5c3a8e6b.mjs → AuthDataConfig-d3b7afa4.mjs} +23 -23
- package/{AuthDataTree-dd7a1240.mjs → AuthDataTree-f14a98d9.mjs} +43 -43
- package/{AuthFieldConfig-9f6fa06c.mjs → AuthFieldConfig-f1e224cc.mjs} +71 -71
- package/AuthFieldTree-5cc0da05.mjs +232 -0
- package/{AuthManagerDrawer-76f15e8d.mjs → AuthManagerDrawer-32556109.mjs} +6 -6
- package/{AuthSetterModal-f5d2e87f.mjs → AuthSetterModal-364f1f67.mjs} +9 -9
- package/BuiltInButtonList-bb6cf95c.mjs +10 -0
- package/BuiltInButtonList.vue_vue_type_script_setup_true_lang-07d0b7d0.mjs +338 -0
- package/CgformAddressModal-1131274c.mjs +260 -0
- package/CgformCopyList-5fba0810.mjs +252 -0
- package/{CgformModal-21c5c387.mjs → CgformModal-c4a4e0c2.mjs} +190 -194
- package/{CgreportModal-edefa8e3.mjs → CgreportModal-8a84aae5.mjs} +181 -168
- package/{CheckDictTable-1bc8322d.mjs → CheckDictTable-8a938e3a.mjs} +3 -3
- package/CodeFileListModal-a924902a.mjs +159 -0
- package/{CodeFileViewModal-2fe911f4.mjs → CodeFileViewModal-405e2b58.mjs} +66 -66
- package/CodeGeneratorModal-2e1dc13d.mjs +281 -0
- package/CustomButtonList-c453b654.mjs +274 -0
- package/{DBAttributeTable-285d40db.mjs → DBAttributeTable-1a45c7b7.mjs} +3 -3
- package/{DbToOnlineModal-5dcb67c3.mjs → DbToOnlineModal-f28ff0a3.mjs} +53 -54
- package/{DetailForm-deecbf3d.mjs → DetailForm-c592b8d8.mjs} +5 -5
- package/DropMenuItem-1e49abea.mjs +44 -0
- package/{EnhanceJavaModal-45c66cd5.mjs → EnhanceJavaModal-d5a93f2a.mjs} +62 -62
- package/{EnhanceJsHistory-fab3102e.mjs → EnhanceJsHistory-8ddb0657.mjs} +35 -35
- package/{EnhanceJsModal-175357a1.mjs → EnhanceJsModal-dc4f9ade.mjs} +104 -104
- package/{EnhanceSqlModal-7ea1b300.mjs → EnhanceSqlModal-984f045d.mjs} +67 -67
- package/ErrorTip-bb616e32.mjs +7 -0
- package/ErrorTip.vue_vue_type_script_setup_true_lang-49d35987.mjs +60 -0
- package/{ExtendConfigModal-a89ae052.mjs → ExtendConfigModal-7d70f362.mjs} +2 -2
- package/{FieldExtendJsonModal-32135634.mjs → FieldExtendJsonModal-bf04d70e.mjs} +2 -2
- package/{FileSelectModal-1643c8b9.mjs → FileSelectModal-ffc69d4a.mjs} +23 -23
- package/{ForeignKeyTable-7f7e28a7.mjs → ForeignKeyTable-92decaea.mjs} +3 -3
- package/{IndexTable-cdcc2b48.mjs → IndexTable-2ded2014.mjs} +3 -3
- package/JModalTip-a927f85d.mjs +49 -0
- package/{JOnlineSearchSelect-22aae934.mjs → JOnlineSearchSelect-04ec87d0.mjs} +1 -1
- package/{LeftDepart-d5615ed9.mjs → LeftDepart-52cb6743.mjs} +1 -1
- package/LeftRole-b0e0b496.mjs +86 -0
- package/{LeftUser-22baa378.mjs → LeftUser-dd4b10e2.mjs} +30 -30
- package/{LinkTableConfigModal-9242d750.mjs → LinkTableConfigModal-7eeb3e58.mjs} +43 -31
- package/{LinkTableFieldConfigModal-24adc50c.mjs → LinkTableFieldConfigModal-b078fcef.mjs} +1 -1
- package/{LinkTableListPiece-f3a8e0d7.mjs → LinkTableListPiece-e016b8e6.mjs} +1 -1
- package/{ModalFormDemo-711418db.mjs → ModalFormDemo-aaa719a7.mjs} +1 -1
- package/OnlCgformErpList-5c5acdaa.mjs +488 -0
- package/OnlCgformErpSubTable-e1b88312.mjs +441 -0
- package/{OnlCgformInnerSubTable-6c23781f.mjs → OnlCgformInnerSubTable-6b6fa15a.mjs} +38 -38
- package/OnlCgformInnerTableList-b283a525.mjs +474 -0
- package/OnlCgformTabList-91e3dd78.mjs +424 -0
- package/OnlineAutoList-84475f1b.mjs +513 -0
- package/OnlineAutoModal-95f46901.mjs +260 -0
- package/OnlineAutoTreeList-20b9ce04.mjs +523 -0
- package/OnlineCustomModal-c8b1e780.mjs +232 -0
- package/{OnlineDetailModal-d5895734.mjs → OnlineDetailModal-5b412bb9.mjs} +74 -65
- package/OnlineForm-58282699.mjs +1012 -0
- package/{OnlineFormDetail-022ca117.mjs → OnlineFormDetail-fc087725.mjs} +7 -7
- package/{OnlineFormUrlAdd-9715d70a.mjs → OnlineFormUrlAdd-bc9105bb.mjs} +9 -9
- package/{OnlineFormUrlDetail-8f864b1a.mjs → OnlineFormUrlDetail-ad912560.mjs} +11 -11
- package/{OnlineFormUrlEdit-ac985b36.mjs → OnlineFormUrlEdit-f2fa79ff.mjs} +9 -9
- package/OnlineFormUrlSuccess-76813d45.mjs +59 -0
- package/OnlineQueryForm-9248341f.mjs +484 -0
- package/{OnlineSearchFormItem-6c557343.mjs → OnlineSearchFormItem-1e437bd3.mjs} +82 -82
- package/{OnlineSelectCascade-05c40fef.mjs → OnlineSelectCascade-d631ed72.mjs} +1 -1
- package/{OnlineSubFormDetail-58e896ce.mjs → OnlineSubFormDetail-8be879b9.mjs} +52 -53
- package/{OnlineTabAutoModal-47b18ad6.mjs → OnlineTabAutoModal-c9ca3c24.mjs} +108 -95
- package/{OnlineTabDetailModal-82de1465.mjs → OnlineTabDetailModal-fd4c9a72.mjs} +36 -36
- package/OnlineTabForm-1940e88b.mjs +814 -0
- package/{OnlineTabFormDetail-8d0c40c0.mjs → OnlineTabFormDetail-2aa67564.mjs} +17 -17
- package/{PageAttributeTable-25e3b7da.mjs → PageAttributeTable-66e7b485.mjs} +108 -108
- package/PhoneLoginForm-86437a9d.mjs +214 -0
- package/{ProcessOnlineForm-148632fe.mjs → ProcessOnlineForm-98ede18d.mjs} +32 -32
- package/{QueryTable-f7bfca7f.mjs → QueryTable-65d3f54f.mjs} +3 -3
- package/SetSwitchOptions-f914bc17.mjs +62 -0
- package/ShareAddView-657f0f8b.mjs +86 -0
- package/ShareEditView-1b945fd3.mjs +92 -0
- package/ShareView-222ed3d8.mjs +80 -0
- package/ShareView.vue_vue_type_script_setup_true_lang-44fbeaff.mjs +162 -0
- package/SingleView-23b0cb4e.mjs +68 -0
- package/SingleView.vue_vue_type_style_index_0_lang-e0f2f6c0.mjs +131 -0
- package/SuperQuery-46032e66.mjs +974 -0
- package/{SuperQueryValComponent-7ad86d4b.mjs → SuperQueryValComponent-5a9ccfd4.mjs} +1 -1
- package/{SuperQueryValComponent.vue_vue_type_script_lang-e9196096.mjs → SuperQueryValComponent.vue_vue_type_script_lang-8fe34917.mjs} +11 -11
- package/{auth.api-ea1d33d4.mjs → auth.api-53df4c33.mjs} +17 -17
- package/{auth.data-511e5197.mjs → auth.data-626c5083.mjs} +16 -12
- package/button.data-fe45d43b.mjs +12 -0
- package/{cgform.data-475d4984.mjs → cgform.data-0ca62d09.mjs} +4 -1
- package/{enhance.data-a67572e1.mjs → enhance.data-6601ff44.mjs} +1 -1
- package/index-19eaef11.mjs +11 -0
- package/index-1a2e8832.mjs +135 -0
- package/{index-f30613d1.mjs → index-2fb8e07f.mjs} +59 -59
- package/index-5e89258d.mjs +8 -0
- package/index-9e1e1e53.mjs +57 -0
- package/{index-30e0e923.mjs → index-a039036e.mjs} +272 -262
- package/index-c5a79b0b.mjs +219 -0
- package/index-cce225be.mjs +110 -0
- package/index-f2c2d1cf.mjs +74 -0
- package/main.index.js +1 -1
- package/package.json +1 -1
- package/shareStore-7de6c7a6.mjs +67 -0
- package/style.css +1 -1
- package/useCgformList-f3cb9156.mjs +378 -0
- package/useExtendComponent-bb98e568.mjs +4460 -0
- package/useListButton-98908683.mjs +719 -0
- package/{useSchemas-a9c75b0f.mjs → useSchemas-b074f3a1.mjs} +33 -0
- package/{useTableSync-d7e9f18d.mjs → useTableSync-075826a1.mjs} +1 -1
- package/utils-9fce7606.mjs +16 -0
- package/AiModal-6de335e3.mjs +0 -84
- package/AuthButtonConfig-89763932.mjs +0 -154
- package/AuthButtonTree-2d87d0b3.mjs +0 -157
- package/AuthFieldTree-e326fc38.mjs +0 -232
- package/CgformCopyList-365b3e8f.mjs +0 -251
- package/CodeFileListModal-24601898.mjs +0 -159
- package/CodeGeneratorModal-f09fe903.mjs +0 -282
- package/CustomButtonList-f07bc695.mjs +0 -397
- package/JModalTip-b055ab60.mjs +0 -49
- package/LeftRole-2ed8a2bf.mjs +0 -86
- package/OnlCgformErpList-58acdfa0.mjs +0 -470
- package/OnlCgformErpSubTable-9b1e1938.mjs +0 -426
- package/OnlCgformInnerTableList-4b5e14ed.mjs +0 -458
- package/OnlCgformTabList-019ad753.mjs +0 -408
- package/OnlineAutoList-48589d09.mjs +0 -493
- package/OnlineAutoModal-c2928847.mjs +0 -239
- package/OnlineAutoTreeList-3baa1d00.mjs +0 -503
- package/OnlineCustomModal-9e17b6ce.mjs +0 -232
- package/OnlineForm-9f1153ba.mjs +0 -985
- package/OnlineFormUrlSuccess-3dfc54ab.mjs +0 -59
- package/OnlineQueryForm-eedb9a60.mjs +0 -466
- package/OnlineTabForm-27655c83.mjs +0 -817
- package/SetSwitchOptions-b2af757f.mjs +0 -62
- package/SuperQuery-a8592995.mjs +0 -967
- package/index-1d1a6e56.mjs +0 -57
- package/useCgformList-f41d4dc1.mjs +0 -426
- package/useExtendComponent-dcae5c78.mjs +0 -4399
- package/useListButton-bfac4ecf.mjs +0 -697
- /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-
|
|
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-
|
|
20
|
-
import "./cgform.data-
|
|
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,
|
|
2
|
-
var
|
|
1
|
+
var F = (o, r, u) => new Promise((w, g) => {
|
|
2
|
+
var v = (i) => {
|
|
3
3
|
try {
|
|
4
|
-
u
|
|
5
|
-
} catch (
|
|
6
|
-
|
|
4
|
+
d(u.next(i));
|
|
5
|
+
} catch (s) {
|
|
6
|
+
g(s);
|
|
7
7
|
}
|
|
8
|
-
},
|
|
8
|
+
}, y = (i) => {
|
|
9
9
|
try {
|
|
10
|
-
u
|
|
11
|
-
} catch (
|
|
12
|
-
|
|
10
|
+
d(u.throw(i));
|
|
11
|
+
} catch (s) {
|
|
12
|
+
g(s);
|
|
13
13
|
}
|
|
14
|
-
},
|
|
15
|
-
|
|
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
|
|
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-
|
|
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:
|
|
37
|
-
const
|
|
38
|
-
let
|
|
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
|
-
|
|
41
|
-
})), { prefixCls:
|
|
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(
|
|
47
|
-
if (
|
|
48
|
-
let a =
|
|
49
|
-
a.length == 1 ? e(a[0]) : a.length > 1 && n.push(
|
|
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),
|
|
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
|
-
|
|
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 =
|
|
82
|
+
let t = [], l = [], n = u.value;
|
|
83
83
|
for (let e of n) {
|
|
84
|
-
let
|
|
85
|
-
if (
|
|
86
|
-
let a =
|
|
87
|
-
for (let
|
|
88
|
-
let B = a[
|
|
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,
|
|
95
|
+
let S = R(a, f - 1);
|
|
96
96
|
S && (E.pid = S);
|
|
97
97
|
}
|
|
98
|
-
|
|
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(),
|
|
106
|
+
M(), r("close");
|
|
107
107
|
}
|
|
108
108
|
function J() {
|
|
109
|
-
|
|
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
|
-
|
|
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
|
|
138
|
-
a.readAsText(
|
|
139
|
-
let
|
|
140
|
-
|
|
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:
|
|
147
|
+
codeList: u,
|
|
148
148
|
onDownloadGenerateCode: J,
|
|
149
149
|
handleClose: I,
|
|
150
|
-
treeData:
|
|
150
|
+
treeData: g,
|
|
151
151
|
showCodeContent: O,
|
|
152
152
|
activeCodeContent: i,
|
|
153
|
-
expandStatus:
|
|
154
|
-
height:
|
|
155
|
-
language:
|
|
156
|
-
prefixCls:
|
|
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,
|
|
162
|
-
const
|
|
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:
|
|
175
|
-
C(
|
|
176
|
-
V(" 代码在线预览 ")
|
|
174
|
+
title: m(() => [
|
|
175
|
+
C(y),
|
|
176
|
+
r[1] || (r[1] = V(" 代码在线预览 "))
|
|
177
177
|
]),
|
|
178
|
-
footer:
|
|
179
|
-
C(
|
|
180
|
-
default:
|
|
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(
|
|
185
|
+
C(_, {
|
|
186
186
|
type: "primary",
|
|
187
187
|
onClick: o.onDownloadGenerateCode
|
|
188
188
|
}, {
|
|
189
|
-
default:
|
|
189
|
+
default: m(() => r[3] || (r[3] = [
|
|
190
190
|
V("下载到本地")
|
|
191
|
-
]),
|
|
191
|
+
])),
|
|
192
192
|
_: 1
|
|
193
193
|
}, 8, ["onClick"])
|
|
194
194
|
]),
|
|
195
|
-
default:
|
|
195
|
+
default: m(() => [
|
|
196
196
|
W("div", null, [
|
|
197
197
|
C(M, null, {
|
|
198
|
-
default:
|
|
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:
|
|
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(
|
|
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:
|
|
223
|
-
o.activeCodeContent ? (k(), x(
|
|
222
|
+
default: m(() => [
|
|
223
|
+
o.activeCodeContent ? (k(), x(s, {
|
|
224
224
|
key: 0,
|
|
225
225
|
value: o.activeCodeContent,
|
|
226
|
-
"onUpdate:value":
|
|
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
|
|
250
|
+
const ge = /* @__PURE__ */ ee(te, [["render", ne]]);
|
|
251
251
|
export {
|
|
252
|
-
|
|
252
|
+
ge as default
|
|
253
253
|
};
|