@jeecg/online 3.7.0-beta → 3.7.1-RC

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 (95) hide show
  1. package/{AiModal-fe3988fb.mjs → AiModal-6de335e3.mjs} +1 -1
  2. package/AuthButtonConfig-89763932.mjs +154 -0
  3. package/{AuthButtonTree-589395ed.mjs → AuthButtonTree-2d87d0b3.mjs} +6 -5
  4. package/{AuthDataConfig-7bb0cd85.mjs → AuthDataConfig-5c3a8e6b.mjs} +11 -10
  5. package/{AuthDataTree-6e3bb86f.mjs → AuthDataTree-dd7a1240.mjs} +6 -6
  6. package/AuthFieldConfig-9f6fa06c.mjs +245 -0
  7. package/{AuthFieldTree-b7cd091e.mjs → AuthFieldTree-e326fc38.mjs} +2 -2
  8. package/{AuthManagerDrawer-5e2ed5ce.mjs → AuthManagerDrawer-76f15e8d.mjs} +9 -8
  9. package/{AuthSetterModal-6f74449c.mjs → AuthSetterModal-f5d2e87f.mjs} +12 -11
  10. package/{CgformCopyList-8077ccc6.mjs → CgformCopyList-365b3e8f.mjs} +43 -42
  11. package/CgformModal-21c5c387.mjs +671 -0
  12. package/{CgreportModal-5a23d089.mjs → CgreportModal-edefa8e3.mjs} +15 -14
  13. package/{CheckDictTable-b5cb0e2b.mjs → CheckDictTable-1bc8322d.mjs} +36 -33
  14. package/{CodeFileListModal-0e26b7e0.mjs → CodeFileListModal-24601898.mjs} +5 -4
  15. package/{CodeFileViewModal-9d4a5b5f.mjs → CodeFileViewModal-2fe911f4.mjs} +89 -84
  16. package/CodeGeneratorModal-f09fe903.mjs +282 -0
  17. package/{CustomButtonList-37639061.mjs → CustomButtonList-f07bc695.mjs} +108 -92
  18. package/{DBAttributeTable-95dc66c1.mjs → DBAttributeTable-285d40db.mjs} +79 -71
  19. package/DbToOnlineModal-5dcb67c3.mjs +169 -0
  20. package/{DetailForm-4aa2570b.mjs → DetailForm-deecbf3d.mjs} +50 -49
  21. package/{EnhanceJavaModal-98934198.mjs → EnhanceJavaModal-45c66cd5.mjs} +2 -2
  22. package/{EnhanceJsHistory-9c4acdaf.mjs → EnhanceJsHistory-fab3102e.mjs} +1 -1
  23. package/{EnhanceJsModal-247f640d.mjs → EnhanceJsModal-175357a1.mjs} +119 -103
  24. package/{EnhanceSqlModal-65b74b0f.mjs → EnhanceSqlModal-7ea1b300.mjs} +2 -2
  25. package/{ExtendConfigModal-00f2fb55.mjs → ExtendConfigModal-a89ae052.mjs} +2 -2
  26. package/{FieldExtendJsonModal-cc7fce26.mjs → FieldExtendJsonModal-32135634.mjs} +2 -2
  27. package/{FileSelectModal-38660e3c.mjs → FileSelectModal-1643c8b9.mjs} +1 -1
  28. package/{ForeignKeyTable-a78cb5ad.mjs → ForeignKeyTable-7f7e28a7.mjs} +2 -2
  29. package/{IndexTable-1b496559.mjs → IndexTable-cdcc2b48.mjs} +27 -19
  30. package/{JModalTip-4a83aaed.mjs → JModalTip-b055ab60.mjs} +1 -1
  31. package/JOnlineSearchSelect-22aae934.mjs +128 -0
  32. package/{LeftDepart-8ade4bf7.mjs → LeftDepart-d5615ed9.mjs} +1 -1
  33. package/{LeftRole-7d8c5acc.mjs → LeftRole-2ed8a2bf.mjs} +1 -1
  34. package/{LeftUser-b4d1372a.mjs → LeftUser-22baa378.mjs} +1 -1
  35. package/{LinkTableConfigModal-a138c85e.mjs → LinkTableConfigModal-9242d750.mjs} +1 -1
  36. package/{LinkTableFieldConfigModal-17b413b0.mjs → LinkTableFieldConfigModal-24adc50c.mjs} +1 -1
  37. package/{LinkTableListPiece-2660d709.mjs → LinkTableListPiece-f3a8e0d7.mjs} +1 -1
  38. package/{ModalFormDemo-0544737d.mjs → ModalFormDemo-711418db.mjs} +1 -1
  39. package/{OnlCgformErpList-30e416c8.mjs → OnlCgformErpList-58acdfa0.mjs} +121 -121
  40. package/{OnlCgformErpSubTable-9a876058.mjs → OnlCgformErpSubTable-9b1e1938.mjs} +149 -150
  41. package/{OnlCgformInnerSubTable-290ace5d.mjs → OnlCgformInnerSubTable-6c23781f.mjs} +96 -97
  42. package/{OnlCgformInnerTableList-f89b6687.mjs → OnlCgformInnerTableList-4b5e14ed.mjs} +156 -156
  43. package/{OnlCgformTabList-7a2f2c03.mjs → OnlCgformTabList-019ad753.mjs} +138 -138
  44. package/{OnlineAutoList-46c6c8b9.mjs → OnlineAutoList-48589d09.mjs} +90 -90
  45. package/{OnlineAutoModal-971bef13.mjs → OnlineAutoModal-c2928847.mjs} +64 -61
  46. package/{OnlineAutoTreeList-3b92454c.mjs → OnlineAutoTreeList-3baa1d00.mjs} +20 -19
  47. package/{OnlineCustomModal-594244f3.mjs → OnlineCustomModal-9e17b6ce.mjs} +8 -8
  48. package/{OnlineDetailModal-2a271e0b.mjs → OnlineDetailModal-d5895734.mjs} +8 -8
  49. package/OnlineForm-9f1153ba.mjs +985 -0
  50. package/{OnlineFormDetail-e036cd11.mjs → OnlineFormDetail-022ca117.mjs} +7 -7
  51. package/{OnlineFormUrlAdd-7fb3dcca.mjs → OnlineFormUrlAdd-9715d70a.mjs} +10 -10
  52. package/{OnlineFormUrlDetail-b2292137.mjs → OnlineFormUrlDetail-8f864b1a.mjs} +12 -12
  53. package/{OnlineFormUrlEdit-44080fb3.mjs → OnlineFormUrlEdit-ac985b36.mjs} +10 -10
  54. package/{OnlineFormUrlSuccess-af285b02.mjs → OnlineFormUrlSuccess-3dfc54ab.mjs} +1 -1
  55. package/OnlineQueryForm-eedb9a60.mjs +466 -0
  56. package/{OnlineSearchFormItem-6feacae6.mjs → OnlineSearchFormItem-6c557343.mjs} +2 -2
  57. package/{OnlineSelectCascade-471fcc76.mjs → OnlineSelectCascade-05c40fef.mjs} +1 -1
  58. package/{OnlineSubFormDetail-03f8ee5c.mjs → OnlineSubFormDetail-58e896ce.mjs} +7 -7
  59. package/{OnlineTabAutoModal-7b9bcd0b.mjs → OnlineTabAutoModal-47b18ad6.mjs} +7 -7
  60. package/{OnlineTabDetailModal-88143301.mjs → OnlineTabDetailModal-82de1465.mjs} +8 -8
  61. package/{OnlineTabForm-9ad7d29a.mjs → OnlineTabForm-27655c83.mjs} +236 -224
  62. package/{OnlineTabFormDetail-bbf23caa.mjs → OnlineTabFormDetail-8d0c40c0.mjs} +7 -7
  63. package/{PageAttributeTable-6c23547b.mjs → PageAttributeTable-25e3b7da.mjs} +156 -136
  64. package/{ProcessOnlineForm-b42198f5.mjs → ProcessOnlineForm-148632fe.mjs} +61 -55
  65. package/{QueryTable-96b3dbd0.mjs → QueryTable-f7bfca7f.mjs} +39 -36
  66. package/{SetSwitchOptions-a452fa0f.mjs → SetSwitchOptions-b2af757f.mjs} +1 -1
  67. package/SuperQuery-a8592995.mjs +967 -0
  68. package/auth.api-ea1d33d4.mjs +41 -0
  69. package/{auth.data-22948e87.mjs → auth.data-511e5197.mjs} +62 -28
  70. package/{enhance.data-3304d553.mjs → enhance.data-a67572e1.mjs} +8 -7
  71. package/index-1d1a6e56.mjs +57 -0
  72. package/{index-d2abb8a0.mjs → index-30e0e923.mjs} +48 -47
  73. package/{index-581bef24.mjs → index-f30613d1.mjs} +2 -2
  74. package/main.index.js +1 -1
  75. package/package.json +1 -1
  76. package/style.css +1 -1
  77. package/{useCgformList-8755a94e.mjs → useCgformList-f41d4dc1.mjs} +1 -1
  78. package/useExtendComponent-dcae5c78.mjs +4399 -0
  79. package/{useListButton-7ddb9a46.mjs → useListButton-bfac4ecf.mjs} +45 -45
  80. package/{useSchemas-47e45edc.mjs → useSchemas-a9c75b0f.mjs} +55 -46
  81. package/useTableSync-d7e9f18d.mjs +89 -0
  82. package/AuthButtonConfig-d50a0a65.mjs +0 -134
  83. package/AuthFieldConfig-490fc0ab.mjs +0 -139
  84. package/CgformModal-36faf29a.mjs +0 -621
  85. package/CodeGeneratorModal-b722d976.mjs +0 -238
  86. package/DbToOnlineModal-f49b9530.mjs +0 -166
  87. package/JOnlineSearchSelect-34a37ec9.mjs +0 -95
  88. package/OnlineForm-018981b2.mjs +0 -924
  89. package/OnlineQueryForm-998c12a4.mjs +0 -444
  90. package/SuperQuery-cbfba908.mjs +0 -975
  91. package/auth.api-d3a6c4b3.mjs +0 -39
  92. package/index-173949bb.mjs +0 -57
  93. package/useExtendComponent-bb7cca20.mjs +0 -4295
  94. package/useTableSync-f6089e8a.mjs +0 -87
  95. /package/{OnlineForm.vue_vue_type_style_index_0_scoped_0f9f2964_lang-4ed993c7.mjs → OnlineForm.vue_vue_type_style_index_0_scoped_4657b304_lang-4ed993c7.mjs} +0 -0
@@ -26,7 +26,7 @@ var R = (t, o, l) => new Promise((m, v) => {
26
26
  }, c = (d) => d.done ? m(d.value) : Promise.resolve(d.value).then(f, h);
27
27
  c((l = l.apply(t, o)).next());
28
28
  });
29
- import { defineComponent as fe, ref as I, reactive as K, unref as b, computed as ge, resolveComponent as S, openBlock as F, createBlock as O, mergeProps as he, withCtx as _, createVNode as y, createElementVNode as C, createTextVNode as P, pushScopeId as be, popScopeId as _e } from "vue";
29
+ import { defineComponent as fe, ref as w, reactive as K, unref as b, computed as ge, resolveComponent as S, openBlock as F, createBlock as O, mergeProps as he, withCtx as _, createVNode as y, createElementVNode as C, createTextVNode as P, pushScopeId as be, popScopeId as _e } from "vue";
30
30
  import { useModalInner as ye, BasicModal as xe } from "/@/components/Modal";
31
31
  import { useForm as Se, BasicForm as Ce } from "/@/components/Form/index";
32
32
  import { useJvxeMethod as ve } from "/@/hooks/system/useJvxeMethods.ts";
@@ -34,8 +34,8 @@ import { JVxeTypes as i } from "/@/components/jeecg/JVxeTable/types";
34
34
  import { duplicateCheckDelay as ke } from "/@/views/system/user/user.api";
35
35
  import { defHttp as x } from "/@/utils/http/axios";
36
36
  import { useMessage as j } from "/@/hooks/web/useMessage";
37
- import { usePermissionStore as we } from "/@/store/modules/permission";
38
- import { _ as Ie } from "./index-173949bb.mjs";
37
+ import { usePermissionStore as Ie } from "/@/store/modules/permission";
38
+ import { _ as we } from "./index-1d1a6e56.mjs";
39
39
  const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", Ve = "/online/cgreport/item/listByHeadId", at = (t) => x.get({ url: "/online/cgreport/head/list", params: t }), nt = (t, o) => x.delete({ url: "/online/cgreport/head/delete", params: t }, { joinParamsToUrl: !0 }).then(() => {
40
40
  o();
41
41
  }), it = (t, o) => {
@@ -54,7 +54,7 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
54
54
  /* getDataSourceList */
55
55
  }), qe = (t) => x.get({
56
56
  url: "/online/cgreport/head/parseSql?" + t
57
- }), Re = we(), ct = [
57
+ }), Re = Ie(), ct = [
58
58
  {
59
59
  title: "报表名字",
60
60
  align: "center",
@@ -286,7 +286,8 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
286
286
  { title: "字符类型", value: "String" },
287
287
  { title: "日期类型", value: "Date" },
288
288
  { title: "时间类型", value: "Datetime" },
289
- { title: "长整型", value: "Long" }
289
+ { title: "长整型", value: "Long" },
290
+ { title: "图片类型", value: "Image" }
290
291
  ]
291
292
  },
292
293
  {
@@ -363,11 +364,11 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
363
364
  __name: "CgreportModal",
364
365
  emits: ["register", "success"],
365
366
  setup(t, { emit: o }) {
366
- const { createMessage: l } = j(), m = I(!0), v = I(!0), f = I(["onlCgreportItem", "onlCgreportParam"]), h = I("onlCgreportItem"), c = I(), d = I(), V = { onlCgreportItem: d, onlCgreportParam: c }, k = K({
367
+ const { createMessage: l } = j(), m = w(!0), v = w(!0), f = w(["onlCgreportItem", "onlCgreportParam"]), h = w("onlCgreportItem"), c = w(), d = w(), V = { onlCgreportItem: d, onlCgreportParam: c }, k = K({
367
368
  loading: !1,
368
369
  dataSource: [],
369
370
  columns: Me
370
- }), w = K({
371
+ }), I = K({
371
372
  loading: !1,
372
373
  dataSource: [],
373
374
  columns: Be
@@ -381,7 +382,7 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
381
382
  // update-end--author:liaozhiyang---date:20240509---for:【QQYUN-9230】报表图表弹窗样式调整
382
383
  }), [X, { setModalProps: L, closeModal: Y }] = ye((e) => R(this, null, function* () {
383
384
  var r, a;
384
- yield re(), L({ confirmLoading: !1, showCancelBtn: e == null ? void 0 : e.showFooter, showOkBtn: e == null ? void 0 : e.showFooter }), m.value = !!(e != null && e.isUpdate), b(m) && (yield Z(B({}, e.record)), W(Te, { headId: (r = e == null ? void 0 : e.record) == null ? void 0 : r.id }, k), W(Ve, { headId: (a = e == null ? void 0 : e.record) == null ? void 0 : a.id }, w)), H({ disabled: !(e != null && e.showFooter) });
385
+ yield re(), L({ confirmLoading: !1, showCancelBtn: e == null ? void 0 : e.showFooter, showOkBtn: e == null ? void 0 : e.showFooter }), m.value = !!(e != null && e.isUpdate), b(m) && (yield Z(B({}, e.record)), W(Te, { headId: (r = e == null ? void 0 : e.record) == null ? void 0 : r.id }, k), W(Ve, { headId: (a = e == null ? void 0 : e.record) == null ? void 0 : a.id }, I)), H({ disabled: !(e != null && e.showFooter) });
385
386
  })), [ee, te, W, oe] = ve(
386
387
  ne,
387
388
  ae,
@@ -391,7 +392,7 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
391
392
  ), le = ge(() => b(m) ? "编辑" : "新增");
392
393
  function re() {
393
394
  return R(this, null, function* () {
394
- yield E(), h.value = "onlCgreportItem", k.dataSource = [], w.dataSource = [];
395
+ yield E(), h.value = "onlCgreportItem", k.dataSource = [], I.dataSource = [];
395
396
  });
396
397
  }
397
398
  function ae(e) {
@@ -422,7 +423,7 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
422
423
  if (u) {
423
424
  l.success("解析成功");
424
425
  let { fields: n, params: p } = u, g = n.filter((q) => q.fieldName != "__row_number__"), N = d.value.getTableData(), $ = z(N, g || [], "fieldName");
425
- $ = $.sort((q, M) => q.orderNum - M.orderNum), w.dataSource = $;
426
+ $ = $.sort((q, M) => q.orderNum - M.orderNum), I.dataSource = $;
426
427
  let se = c.value.getTableData(), D = z(se, p || [], "paramName");
427
428
  D = D.sort((q, M) => q.orderNum - M.orderNum), k.dataSource = D;
428
429
  }
@@ -530,9 +531,9 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
530
531
  resizable: "",
531
532
  ref_key: "onlCgreportItem",
532
533
  ref: d,
533
- loading: w.loading,
534
- columns: w.columns,
535
- dataSource: w.dataSource,
534
+ loading: I.loading,
535
+ columns: I.columns,
536
+ dataSource: I.dataSource,
536
537
  height: 390,
537
538
  rowNumber: !0,
538
539
  rowSelection: !0,
@@ -573,7 +574,7 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
573
574
  };
574
575
  }
575
576
  });
576
- const je = /* @__PURE__ */ Ie(Ke, [["__scopeId", "data-v-f79bfba3"]]), ut = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
577
+ const je = /* @__PURE__ */ we(Ke, [["__scopeId", "data-v-f79bfba3"]]), ut = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
577
578
  __proto__: null,
578
579
  default: je
579
580
  }, Symbol.toStringTag, { value: "Module" }));
@@ -1,22 +1,22 @@
1
1
  var D = Object.defineProperty, I = Object.defineProperties;
2
2
  var M = Object.getOwnPropertyDescriptors;
3
- var w = Object.getOwnPropertySymbols;
3
+ var F = Object.getOwnPropertySymbols;
4
4
  var O = Object.prototype.hasOwnProperty, P = Object.prototype.propertyIsEnumerable;
5
- var F = (e, t, a) => t in e ? D(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a, V = (e, t) => {
5
+ var V = (e, t, a) => t in e ? D(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a, x = (e, t) => {
6
6
  for (var a in t || (t = {}))
7
- O.call(t, a) && F(e, a, t[a]);
8
- if (w)
9
- for (var a of w(t))
10
- P.call(t, a) && F(e, a, t[a]);
7
+ O.call(t, a) && V(e, a, t[a]);
8
+ if (F)
9
+ for (var a of F(t))
10
+ P.call(t, a) && V(e, a, t[a]);
11
11
  return e;
12
- }, x = (e, t) => I(e, M(t));
13
- import { defineComponent as S, ref as R, computed as $, resolveComponent as i, openBlock as H, createBlock as J, mergeProps as q, withCtx as c, createVNode as s, normalizeClass as E, withDirectives as z, createElementVNode as N, vShow as j } from "vue";
12
+ }, R = (e, t) => I(e, M(t));
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-f6089e8a.mjs";
15
+ import { u as K } from "./useTableSync-d7e9f18d.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-173949bb.mjs";
19
+ import { _ as U } from "./index-1d1a6e56.mjs";
20
20
  import "./cgform.data-475d4984.mjs";
21
21
  import "/@/utils/dict";
22
22
  import "/@/utils/dict/JDictSelectUtil";
@@ -30,7 +30,7 @@ const W = S({
30
30
  VNodes: (e, { attrs: t }) => t.vnodes
31
31
  },
32
32
  setup() {
33
- const { prefixCls: e } = Q("cgform-check-dict-table"), { createMessage: t } = G(), a = R([
33
+ const { prefixCls: e } = Q("cgform-check-dict-table"), { createMessage: t } = G(), a = E([
34
34
  { title: "字段名称", key: "dbFieldName", width: 100 },
35
35
  { title: "字段备注", key: "dbFieldTxt", width: 100 },
36
36
  {
@@ -82,7 +82,7 @@ const W = S({
82
82
  defaultValue: "",
83
83
  validateRules: [{ handler: r }]
84
84
  }
85
- ]), v = K(a), { tableRef: T, tables: k } = v, p = R([
85
+ ]), v = K(a), { tableRef: k, tables: w } = v, p = E([
86
86
  { label: "空", value: "" },
87
87
  { label: "唯一校验", value: "only" },
88
88
  { label: "6到16位数字", value: "n6-16" },
@@ -126,7 +126,7 @@ const W = S({
126
126
  return f(u) ? Promise.resolve() : Promise.reject("当前校验已存在");
127
127
  }
128
128
  function h(l) {
129
- l.dbIsNull === "0" && T.value.setValues([
129
+ l.dbIsNull === "0" && k.value.setValues([
130
130
  {
131
131
  rowKey: l.id,
132
132
  values: { fieldMustInput: "1" }
@@ -134,10 +134,10 @@ const W = S({
134
134
  ]);
135
135
  }
136
136
  function r({ cellValue: l, row: u }, _) {
137
- const { dbFieldName: A } = u, y = k.pageTable.value.tableRef.getTableData(), C = y == null ? void 0 : y.find((B) => B.dbFieldName === A);
137
+ const { dbFieldName: A } = u, y = w.pageTable.value.tableRef.getTableData(), C = y == null ? void 0 : y.find((B) => B.dbFieldName === A);
138
138
  (C == null ? void 0 : C.fieldShowType) === "popup_dict" ? l.indexOf(",") == -1 ? _(!0) : _(!1, "popup字典组件只允许填写一个字段") : _(!0);
139
139
  }
140
- return x(V({}, v), {
140
+ return R(x({}, v), {
141
141
  prefixCls: e,
142
142
  columns: a,
143
143
  isCustomRegexp: f,
@@ -149,12 +149,12 @@ const W = S({
149
149
  });
150
150
  }
151
151
  });
152
- const X = {
152
+ const X = { class: "menu" }, Y = {
153
153
  class: "custom-option-list rc-virtual-list-holder-inner",
154
154
  style: { "border-top": "1px solid #dfdfdf" }
155
- }, Y = ["onClick"];
156
- function Z(e, t, a, v, T, k) {
157
- const p = i("VNodes"), m = i("a-select"), d = i("a-col"), f = i("a-button"), b = i("a-row"), g = i("JVxeTable");
155
+ }, Z = ["onClick"];
156
+ function ee(e, t, a, v, k, w) {
157
+ const p = s("VNodes"), m = s("a-select"), d = s("a-col"), f = s("a-button"), b = s("a-row"), g = s("JVxeTable");
158
158
  return H(), J(g, q({
159
159
  ref: "tableRef",
160
160
  rowNumber: "",
@@ -167,31 +167,34 @@ function Z(e, t, a, v, T, k) {
167
167
  disabledRows: { dbFieldName: ["id", "has_child"] }
168
168
  }, e.tableProps), {
169
169
  fieldValidType: c((o) => [
170
- s(b, {
170
+ i(b, {
171
171
  type: "flex",
172
- class: E(["row-valid-type", { full: !e.isCustomRegexp(o.value) }])
172
+ class: N(["row-valid-type", { full: !e.isCustomRegexp(o.value) }])
173
173
  }, {
174
174
  default: c(() => [
175
- s(d, {
176
- class: E(["left"])
175
+ i(d, {
176
+ class: N(["left"])
177
177
  }, {
178
178
  default: c(() => [
179
- s(m, {
179
+ i(m, {
180
180
  value: o.value,
181
181
  options: e.validTypeOptions,
182
182
  placeholder: "空",
183
183
  style: { width: "100%" },
184
- onChange: o.triggerChange
184
+ onChange: o.triggerChange,
185
+ virtual: !1
185
186
  }, {
186
187
  dropdownRender: c(({ menuNode: h }) => [
187
- s(p, { vnodes: h }, null, 8, ["vnodes"]),
188
- z(N("div", X, [
189
- N("div", {
188
+ T("div", X, [
189
+ i(p, { vnodes: h }, null, 8, ["vnodes"])
190
+ ]),
191
+ z(T("div", Y, [
192
+ T("div", {
190
193
  class: "ant-select-item ant-select-item-option",
191
194
  title: "使用自定义正则表达式作为校验规则",
192
195
  onClick: (r) => e.onAddCustomRegexp(o),
193
196
  onMousedown: t[0] || (t[0] = (r) => r.preventDefault())
194
- }, " 正则表达式 ", 40, Y)
197
+ }, " 正则表达式 ", 40, Z)
195
198
  ], 512), [
196
199
  [j, !e.isCustomRegexp(o.value)]
197
200
  ])
@@ -201,12 +204,12 @@ function Z(e, t, a, v, T, k) {
201
204
  ]),
202
205
  _: 2
203
206
  }, 1024),
204
- s(d, {
207
+ i(d, {
205
208
  class: "right",
206
209
  title: "修改自定义正则表达式"
207
210
  }, {
208
211
  default: c(() => [
209
- s(f, {
212
+ i(f, {
210
213
  preIcon: "ant-design:edit",
211
214
  onClick: () => e.onChangeCustomRegexp(o)
212
215
  }, null, 8, ["onClick"])
@@ -220,7 +223,7 @@ function Z(e, t, a, v, T, k) {
220
223
  _: 1
221
224
  }, 16, ["class", "maxHeight", "loading", "columns", "dataSource"]);
222
225
  }
223
- const ve = /* @__PURE__ */ U(W, [["render", Z], ["__scopeId", "data-v-4a65d99e"]]);
226
+ const be = /* @__PURE__ */ U(W, [["render", ee], ["__scopeId", "data-v-272f2c52"]]);
224
227
  export {
225
- ve as default
228
+ be as default
226
229
  };
@@ -19,11 +19,12 @@ import { defHttp as R } from "/@/utils/http/axios";
19
19
  import "/@/components/Form";
20
20
  import { BasicModal as T, useModalInner as z, useModal as G } from "/@/components/Modal";
21
21
  import { InfoCircleTwoTone as K } from "@ant-design/icons-vue";
22
- import S from "./CodeFileViewModal-9d4a5b5f.mjs";
22
+ import S from "./CodeFileViewModal-2fe911f4.mjs";
23
23
  import { useMessage as H } from "/@/hooks/web/useMessage";
24
24
  import { downloadByData as I } from "/@/utils/file/download";
25
- import { _ as E } from "./index-173949bb.mjs";
25
+ import { _ as E } from "./index-1d1a6e56.mjs";
26
26
  import "ant-design-vue";
27
+ import "/@/hooks/web/useDesign";
27
28
  import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
28
29
  import "vue-router";
29
30
  const j = {
@@ -152,7 +153,7 @@ function Y(d, l, i, e, m, p) {
152
153
  }, null, 8, ["onRegister", "onDownload", "onClose"])
153
154
  ], 64);
154
155
  }
155
- const te = /* @__PURE__ */ E(j, [["render", Y]]);
156
+ const le = /* @__PURE__ */ E(j, [["render", Y]]);
156
157
  export {
157
- te as default
158
+ le as default
158
159
  };
@@ -1,46 +1,47 @@
1
- var k = (l, h, u) => new Promise((w, m) => {
2
- var v = (i) => {
1
+ var F = (o, h, s) => new Promise((w, m) => {
2
+ var _ = (i) => {
3
3
  try {
4
- s(u.next(i));
4
+ u(s.next(i));
5
5
  } catch (r) {
6
6
  m(r);
7
7
  }
8
- }, _ = (i) => {
8
+ }, v = (i) => {
9
9
  try {
10
- s(u.throw(i));
10
+ u(s.throw(i));
11
11
  } catch (r) {
12
12
  m(r);
13
13
  }
14
- }, s = (i) => i.done ? w(i.value) : Promise.resolve(i.value).then(v, _);
15
- s((u = u.apply(l, h)).next());
14
+ }, u = (i) => i.done ? w(i.value) : Promise.resolve(i.value).then(_, v);
15
+ u((s = s.apply(o, h)).next());
16
16
  });
17
- import { defineComponent as P, ref as g, reactive as S, resolveComponent as f, openBlock as x, createBlock as D, withCtx as p, createVNode as C, createTextVNode as R, createElementVNode as W, normalizeStyle as j, createCommentVNode as q } from "vue";
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";
18
18
  import { defHttp as z } from "/@/utils/http/axios";
19
- import { BasicModal as H, useModalInner as U } from "/@/components/Modal";
20
- import { InfoCircleTwoTone as Y } from "@ant-design/icons-vue";
19
+ import { BasicModal as U, useModalInner as Y } from "/@/components/Modal";
20
+ import { InfoCircleTwoTone as Q } from "@ant-design/icons-vue";
21
21
  import { message as $ } from "ant-design-vue";
22
- import { JCodeEditor as Q } from "/@/components/Form";
23
- import { _ as X } from "./index-173949bb.mjs";
22
+ import { JCodeEditor as X } from "/@/components/Form";
23
+ import { useDesign as Z } from "/@/hooks/web/useDesign";
24
+ import { _ as ee } from "./index-1d1a6e56.mjs";
24
25
  import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
25
26
  import "/@/hooks/web/useMessage";
26
27
  import "vue-router";
27
- const Z = P({
28
+ const te = P({
28
29
  name: "CodeFileViewModal",
29
30
  components: {
30
- BasicModal: H,
31
- InfoCircleTwoTone: Y,
32
- JCodeEditor: Q
31
+ BasicModal: U,
32
+ InfoCircleTwoTone: Q,
33
+ JCodeEditor: X
33
34
  },
34
35
  emits: ["download", "register", "close"],
35
- setup(l, { emit: h }) {
36
- const u = g([]), w = g(""), m = g([]), v = g(!1), _ = window.innerHeight - 160, s = g("java"), i = g("");
37
- let r = S({});
38
- const [T, { closeModal: b }] = U((t) => k(this, null, function* () {
39
- r = S({}), i.value = "", u.value = t.codeList, w.value = t.pathKey, y(), v.value = !0;
40
- }));
41
- function y() {
42
- let t = G(), o = t[0];
43
- E(o, t);
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({});
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");
42
+ function T() {
43
+ let t = G(), l = t[0];
44
+ N(l, t);
44
45
  let n = [];
45
46
  const e = function(d) {
46
47
  if (d.children) {
@@ -48,53 +49,53 @@ const Z = P({
48
49
  a.length == 1 ? e(a[0]) : a.length > 1 && n.push(d);
49
50
  }
50
51
  };
51
- e(o), m.value = n, setTimeout(() => {
52
- B(o);
52
+ e(l), m.value = n, setTimeout(() => {
53
+ b(l);
53
54
  }, 300);
54
55
  }
55
- function B(t) {
56
- return k(this, null, function* () {
57
- const o = function(e) {
56
+ function b(t) {
57
+ return F(this, null, function* () {
58
+ const l = function(e) {
58
59
  if (e.isLeaf === !0)
59
60
  return e;
60
61
  if (e.children)
61
- return o(e.children[0]);
62
+ return l(e.children[0]);
62
63
  };
63
- let n = o(t);
64
+ let n = l(t);
64
65
  if (n && n.isLeaf === !0) {
65
66
  let e = n.path;
66
- r[e] || (yield K(e)), s.value = A(e), i.value = r[e];
67
+ r[e] || (yield K(e)), u.value = A(e), i.value = r[e];
67
68
  }
68
69
  });
69
70
  }
70
- function E(t, o) {
71
- for (let n of o)
72
- t.key == n.pid && (t.children || (t.children = []), t.children.push(n), E(n, o));
71
+ function N(t, l) {
72
+ for (let n of l)
73
+ t.key == n.pid && (t.children || (t.children = []), t.children.push(n), N(n, l));
73
74
  }
74
- function V(t, o) {
75
+ function R(t, l) {
75
76
  let n = 0, e = "";
76
- for (; n <= o; )
77
+ for (; n <= l; )
77
78
  e += t[n], n++;
78
79
  return e;
79
80
  }
80
81
  function G() {
81
- let t = [], o = [], n = u.value;
82
+ let t = [], l = [], n = s.value;
82
83
  for (let e of n) {
83
84
  let d = e.replace(new RegExp("\\\\", "g"), "/").replace("生成成功:", "").trim();
84
85
  if (d) {
85
86
  let a = d.split("/");
86
87
  for (let c = 0; c < a.length; c++) {
87
- let M = a[c], L = V(a, c);
88
- if (M) {
89
- let F = {
90
- title: M,
88
+ let B = a[c], L = R(a, c);
89
+ if (B) {
90
+ let E = {
91
+ title: B,
91
92
  key: L
92
93
  };
93
- if (M != 0) {
94
- let N = V(a, c - 1);
95
- N && (F.pid = N);
94
+ if (B != 0) {
95
+ let S = R(a, c - 1);
96
+ S && (E.pid = S);
96
97
  }
97
- c == a.length - 1 && (F.isLeaf = !0, F.path = d), (o.indexOf(L) < 0 || c == a.length - 1) && (t.push(F), o.push(L));
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
99
  }
99
100
  }
100
101
  }
@@ -102,7 +103,7 @@ const Z = P({
102
103
  return t;
103
104
  }
104
105
  function I() {
105
- b(), h("close");
106
+ M(), h("close");
106
107
  }
107
108
  function J() {
108
109
  h("download");
@@ -110,17 +111,17 @@ const Z = P({
110
111
  function A(t) {
111
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";
112
113
  }
113
- function O(t, o) {
114
- return k(this, null, function* () {
115
- let n = o.node.dataRef;
114
+ function O(t, l) {
115
+ return F(this, null, function* () {
116
+ let n = l.node.dataRef;
116
117
  if (n.isLeaf) {
117
118
  let e = n.path;
118
- r[e] || (yield K(e)), s.value = A(e), i.value = r[e];
119
+ r[e] || (yield K(e)), u.value = A(e), i.value = r[e];
119
120
  }
120
121
  });
121
122
  }
122
123
  function K(t) {
123
- return new Promise((o) => {
124
+ return new Promise((l) => {
124
125
  let n = {
125
126
  path: encodeURI(t),
126
127
  pathKey: w.value
@@ -136,60 +137,64 @@ const Z = P({
136
137
  let d = new Blob([e]), a = new FileReader();
137
138
  a.readAsText(d, "utf8"), a.onload = function() {
138
139
  let c = this.result;
139
- r[t] = c, o(1);
140
+ r[t] = c, l(1);
140
141
  };
141
142
  });
142
143
  });
143
144
  }
144
145
  return {
145
- registerModal: T,
146
- codeList: u,
146
+ registerModal: D,
147
+ codeList: s,
147
148
  onDownloadGenerateCode: J,
148
149
  handleClose: I,
149
150
  treeData: m,
150
151
  showCodeContent: O,
151
152
  activeCodeContent: i,
152
- expandStatus: v,
153
- height: _,
154
- language: s
153
+ expandStatus: _,
154
+ height: v,
155
+ language: u,
156
+ prefixCls: y,
157
+ modalHeight: 1e3
155
158
  };
156
159
  }
157
160
  });
158
- function ee(l, h, u, w, m, v) {
159
- const _ = f("info-circle-two-tone"), s = f("a-directory-tree"), i = f("a-col"), r = f("JCodeEditor"), T = f("a-empty"), b = f("a-row"), y = f("a-button"), B = f("BasicModal");
160
- return x(), D(B, {
161
- onRegister: l.registerModal,
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");
163
+ return k(), x(T, {
164
+ height: o.modalHeight,
165
+ onRegister: o.registerModal,
162
166
  okText: "",
163
167
  cancelText: "关闭",
164
168
  width: 1200,
165
169
  defaultFullscreen: !0,
166
170
  canFullscreen: !1,
167
- onOk: l.onDownloadGenerateCode
171
+ onOk: o.onDownloadGenerateCode,
172
+ wrapClassName: o.prefixCls
168
173
  }, {
169
174
  title: p(() => [
170
- C(_),
171
- R(" 代码在线预览 ")
175
+ C(v),
176
+ V(" 代码在线预览 ")
172
177
  ]),
173
178
  footer: p(() => [
174
- C(y, { onClick: l.handleClose }, {
179
+ C(y, { onClick: o.handleClose }, {
175
180
  default: p(() => [
176
- R("关闭")
181
+ V("关闭")
177
182
  ]),
178
183
  _: 1
179
184
  }, 8, ["onClick"]),
180
185
  C(y, {
181
186
  type: "primary",
182
- onClick: l.onDownloadGenerateCode
187
+ onClick: o.onDownloadGenerateCode
183
188
  }, {
184
189
  default: p(() => [
185
- R("下载到本地")
190
+ V("下载到本地")
186
191
  ]),
187
192
  _: 1
188
193
  }, 8, ["onClick"])
189
194
  ]),
190
195
  default: p(() => [
191
196
  W("div", null, [
192
- C(b, null, {
197
+ C(M, null, {
193
198
  default: p(() => [
194
199
  C(i, {
195
200
  span: 6,
@@ -198,13 +203,13 @@ function ee(l, h, u, w, m, v) {
198
203
  }, {
199
204
  default: p(() => [
200
205
  W("div", {
201
- style: j({ height: l.height + "px", overflowY: "auto" })
206
+ style: j({ height: o.height + "px", overflowY: "auto" })
202
207
  }, [
203
- l.treeData.length ? (x(), D(s, {
208
+ o.treeData.length ? (k(), x(u, {
204
209
  key: 0,
205
210
  defaultExpandAll: !0,
206
- "tree-data": l.treeData,
207
- onSelect: l.showCodeContent
211
+ "tree-data": o.treeData,
212
+ onSelect: o.showCodeContent
208
213
  }, null, 8, ["tree-data", "onSelect"])) : q("", !0)
209
214
  ], 4)
210
215
  ]),
@@ -215,18 +220,18 @@ function ee(l, h, u, w, m, v) {
215
220
  gutter: 3
216
221
  }, {
217
222
  default: p(() => [
218
- l.activeCodeContent ? (x(), D(r, {
223
+ o.activeCodeContent ? (k(), x(r, {
219
224
  key: 0,
220
- value: l.activeCodeContent,
221
- "onUpdate:value": h[0] || (h[0] = (E) => l.activeCodeContent = E),
225
+ value: o.activeCodeContent,
226
+ "onUpdate:value": h[0] || (h[0] = (b) => o.activeCodeContent = b),
222
227
  theme: "idea",
223
- language: l.language,
228
+ language: o.language,
224
229
  fullScreen: !1,
225
230
  lineNumbers: !0,
226
- height: l.height + "px",
231
+ height: o.height + "px",
227
232
  disabled: !0,
228
233
  "language-change": !0
229
- }, null, 8, ["value", "language", "height"])) : (x(), D(T, {
234
+ }, null, 8, ["value", "language", "height"])) : (k(), x(D, {
230
235
  key: 1,
231
236
  style: { "margin-top": "50px" },
232
237
  description: "请选择左侧文件,显示详细代码"
@@ -240,9 +245,9 @@ function ee(l, h, u, w, m, v) {
240
245
  ])
241
246
  ]),
242
247
  _: 1
243
- }, 8, ["onRegister", "onOk"]);
248
+ }, 8, ["height", "onRegister", "onOk", "wrapClassName"]);
244
249
  }
245
- const fe = /* @__PURE__ */ X(Z, [["render", ee]]);
250
+ const me = /* @__PURE__ */ ee(te, [["render", ne]]);
246
251
  export {
247
- fe as default
252
+ me as default
248
253
  };