@vancone/console-component 0.1.0-beta.12 → 0.1.0-beta.14

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vancone/console-component",
3
3
  "private": false,
4
- "version": "0.1.0-beta.12",
4
+ "version": "0.1.0-beta.14",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "packages/dist/**"
@@ -10,7 +10,7 @@ var Re = (s, a, o) => a in s ? Ze(s, a, { enumerable: !0, configurable: !0, writ
10
10
  tt.call(a, o) && Re(s, o, a[o]);
11
11
  return s;
12
12
  }, Ve = (s, a) => We(s, $e(a));
13
- import { openBlock as n, createElementBlock as U, defineComponent as de, reactive as le, resolveComponent as w, createVNode as d, withCtx as r, createElementVNode as i, Fragment as ee, renderList as se, toDisplayString as Q, normalizeStyle as Ge, ref as E, onMounted as Oe, unref as v, createCommentVNode as K, createTextVNode as N, createBlock as I, resolveDynamicComponent as Se, computed as xe, watch as ue, createStaticVNode as ot, nextTick as De, normalizeClass as Te, resolveDirective as Ke, withDirectives as Pe } from "vue";
13
+ import { openBlock as n, createElementBlock as U, defineComponent as de, reactive as le, resolveComponent as y, createVNode as d, withCtx as r, createElementVNode as i, Fragment as ee, renderList as se, toDisplayString as Q, normalizeStyle as Ge, ref as E, onMounted as Oe, unref as v, createCommentVNode as K, createTextVNode as N, createBlock as I, resolveDynamicComponent as Se, computed as xe, watch as he, createStaticVNode as ot, nextTick as De, normalizeClass as Te, resolveDirective as Ke, withDirectives as Pe } from "vue";
14
14
  import { useRoute as _e, useRouter as Be } from "vue-router";
15
15
  import at from "axios";
16
16
  import { ElMessage as Ue, ElMessageBox as nt } from "element-plus";
@@ -92,7 +92,7 @@ const wt = { class: "app-catalog-wrapper" }, At = { style: { width: "calc(100% -
92
92
  });
93
93
  }
94
94
  return g(), (t, e) => {
95
- const b = w("el-input"), c = w("el-drawer");
95
+ const b = y("el-input"), c = y("el-drawer");
96
96
  return n(), U("div", wt, [
97
97
  d(c, {
98
98
  "modal-class": "drawer-modal",
@@ -276,15 +276,15 @@ const Dt = { render: Vt }, Tt = { class: "header" }, Kt = { class: "right" }, Pt
276
276
  ]);
277
277
  Oe(() => {
278
278
  c.value = decodeURIComponent(escape(window.atob(V("passport_username")))), c.value === "" && vt().then(({ data: O }) => {
279
- var y;
280
- O.code == 0 && (c.value = (y = O.data.name) != null ? y : O.data.displayId);
279
+ var w;
280
+ O.code == 0 && (c.value = (w = O.data.name) != null ? w : O.data.displayId);
281
281
  });
282
282
  });
283
283
  function V(O) {
284
- for (var y = O + "=", W = document.cookie.split(";"), Y = 0; Y < W.length; Y++) {
284
+ for (var w = O + "=", W = document.cookie.split(";"), Y = 0; Y < W.length; Y++) {
285
285
  for (var q = W[Y]; q.charAt(0) == " "; ) q = q.substring(1);
286
- if (q.indexOf(y) != -1)
287
- return q.substring(y.length, q.length);
286
+ if (q.indexOf(w) != -1)
287
+ return q.substring(w.length, q.length);
288
288
  }
289
289
  return "";
290
290
  }
@@ -306,18 +306,18 @@ const Dt = { render: Vt }, Tt = { class: "header" }, Kt = { class: "right" }, Pt
306
306
  function D() {
307
307
  window.open(e.helpDocUrl, "_blank");
308
308
  }
309
- return (O, y) => {
310
- const W = w("el-tooltip"), Y = w("el-avatar"), q = w("el-menu-item"), fe = w("el-icon"), m = w("el-popover"), T = w("el-menu");
309
+ return (O, w) => {
310
+ const W = y("el-tooltip"), Y = y("el-avatar"), q = y("el-menu-item"), fe = y("el-icon"), m = y("el-popover"), T = y("el-menu");
311
311
  return n(), U("div", Tt, [
312
312
  i("div", {
313
313
  class: "title",
314
314
  onClick: P
315
315
  }, [
316
- y[1] || (y[1] = i("img", {
316
+ w[1] || (w[1] = i("img", {
317
317
  src: gt,
318
318
  class: "logo"
319
319
  }, null, -1)),
320
- y[2] || (y[2] = i("h1", null, "VanCone", -1)),
320
+ w[2] || (w[2] = i("h1", null, "VanCone", -1)),
321
321
  i("span", null, Q(O.title), 1)
322
322
  ]),
323
323
  d(St, { visible: b.value }, null, 8, ["visible"]),
@@ -330,7 +330,7 @@ const Dt = { render: Vt }, Tt = { class: "header" }, Kt = { class: "right" }, Pt
330
330
  default: r(() => [
331
331
  i("div", {
332
332
  class: "icon-wrapper",
333
- onClick: y[0] || (y[0] = (h) => b.value = !b.value)
333
+ onClick: w[0] || (w[0] = (h) => b.value = !b.value)
334
334
  }, [
335
335
  d(v(Ut))
336
336
  ])
@@ -479,7 +479,7 @@ const Dt = { render: Vt }, Tt = { class: "header" }, Kt = { class: "right" }, Pt
479
479
  setup(s) {
480
480
  const a = s;
481
481
  return (o, g) => {
482
- const t = w("SideMenuItem", !0), e = w("el-sub-menu"), b = w("el-menu-item");
482
+ const t = y("SideMenuItem", !0), e = y("el-sub-menu"), b = y("el-menu-item");
483
483
  return o.menu.children && o.menu.children.length > 0 ? (n(), I(e, {
484
484
  key: 0,
485
485
  index: o.menu.path
@@ -520,7 +520,7 @@ const Dt = { render: Vt }, Tt = { class: "header" }, Kt = { class: "right" }, Pt
520
520
  }, 8, ["index"]));
521
521
  };
522
522
  }
523
- }), Zt = /* @__PURE__ */ re(Nt, [["__scopeId", "data-v-e3b5500a"]]), he = E({}), Wt = {}, $t = E([]), eo = {
523
+ }), Zt = /* @__PURE__ */ re(Nt, [["__scopeId", "data-v-e3b5500a"]]), ue = E({}), Wt = {}, $t = E([]), eo = {
524
524
  xmlns: "http://www.w3.org/2000/svg",
525
525
  width: "32",
526
526
  height: "32",
@@ -554,10 +554,10 @@ const oo = { render: to }, ao = { class: "menu-wrapper" }, no = { class: "menu-b
554
554
  function C() {
555
555
  console.log("change"), g("update:menuCollapsed", !o.menuCollapsed);
556
556
  }
557
- return ue(c, () => {
557
+ return he(c, () => {
558
558
  c.value && e.value.style.width && (e.value.style.width += "200");
559
559
  }), (k, V) => {
560
- const R = w("el-menu");
560
+ const R = y("el-menu");
561
561
  return n(), U("div", ao, [
562
562
  i("div", no, [
563
563
  d(v(oo), {
@@ -591,10 +591,10 @@ const oo = { render: to }, ao = { class: "menu-wrapper" }, no = { class: "menu-b
591
591
  },
592
592
  setup(s) {
593
593
  const a = _e(), o = E(!1), g = E(), t = s;
594
- return ue(o, () => {
594
+ return he(o, () => {
595
595
  o.value ? g.value.style.width = "100%" : (g.value.style.transition = "width 0.5s ease", g.value.style.width = "calc(100% - 250px)");
596
596
  }), (e, b) => {
597
- const c = w("router-view");
597
+ const c = y("router-view");
598
598
  return n(), U(ee, null, [
599
599
  v(a).query.embedded !== "true" ? (n(), I(Ye, {
600
600
  key: 0,
@@ -630,7 +630,7 @@ function co(s, a) {
630
630
  }
631
631
  const po = { render: co }, uo = {}, fo = { class: "wrapper" }, mo = { class: "content" };
632
632
  function ho(s, a) {
633
- const o = w("el-button");
633
+ const o = y("el-button");
634
634
  return n(), U("div", fo, [
635
635
  a[4] || (a[4] = i("img", { src: po }, null, -1)),
636
636
  i("div", mo, [
@@ -654,7 +654,7 @@ function ho(s, a) {
654
654
  }
655
655
  const go = /* @__PURE__ */ re(uo, [["render", ho], ["__scopeId", "data-v-0155b361"]]), vo = {};
656
656
  function bo(s, a) {
657
- const o = w("router-view");
657
+ const o = y("router-view");
658
658
  return n(), I(o);
659
659
  }
660
660
  const Co = /* @__PURE__ */ re(vo, [["render", bo]]), yo = { class: "card-wrapper" }, wo = ["onClick"], Ao = { class: "card-inner-wrapper" }, ko = { class: "card-title" }, _o = { class: "icon" }, Io = /* @__PURE__ */ de({
@@ -683,7 +683,7 @@ const Co = /* @__PURE__ */ re(vo, [["render", bo]]), yo = { class: "card-wrapper
683
683
  De(() => {
684
684
  t.tableRef && t.cards && t.cards.length > 0 && t.tableRef.updateConfigAndRefresh((c != null ? c : t.cards[0]).model);
685
685
  });
686
- }), ue(
686
+ }), he(
687
687
  () => t.cards,
688
688
  (c) => {
689
689
  if (o.query.tab !== void 0) {
@@ -764,7 +764,7 @@ const ke = (s) => {
764
764
  return h && h.field && h.value ? e[h.field] === h.value : T;
765
765
  }
766
766
  ) : []);
767
- ue([() => t.id, () => t.sessionId], () => {
767
+ he([() => t.id, () => t.sessionId], () => {
768
768
  P();
769
769
  });
770
770
  function X() {
@@ -819,7 +819,7 @@ const ke = (s) => {
819
819
  function O(m) {
820
820
  return m.label ? k ? g(m.label) : m.label : m.prop.slice(0, 1).toUpperCase() + m.prop.slice(1).toLowerCase();
821
821
  }
822
- function y(m) {
822
+ function w(m) {
823
823
  var T, h, G, _;
824
824
  if (m) {
825
825
  if (q(m, "select")) {
@@ -883,7 +883,7 @@ const ke = (s) => {
883
883
  submit: z,
884
884
  formData: e
885
885
  }), (m, T) => {
886
- const h = w("el-input"), G = w("el-switch"), _ = w("el-date-picker"), A = w("el-option"), x = w("el-select"), M = w("el-form-item"), F = w("el-form"), L = Ke("loading");
886
+ const h = y("el-input"), G = y("el-switch"), _ = y("el-date-picker"), A = y("el-option"), x = y("el-select"), M = y("el-form-item"), F = y("el-form"), L = Ke("loading");
887
887
  return Pe((n(), I(F, {
888
888
  ref_key: "formRef",
889
889
  ref: c,
@@ -911,7 +911,7 @@ const ke = (s) => {
911
911
  placeholder: (S = p.formItemAttributes) == null ? void 0 : S.placeholder,
912
912
  disabled: W(p)
913
913
  }, null, 8, ["type", "modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : K("", !0),
914
- V(p) ? (n(), U("span", Eo, Q(y(p)), 1)) : K("", !0),
914
+ V(p) ? (n(), U("span", Eo, Q(w(p)), 1)) : K("", !0),
915
915
  q(p, "switch") ? (n(), I(G, {
916
916
  key: 2,
917
917
  modelValue: e[p.prop],
@@ -964,7 +964,7 @@ const ke = (s) => {
964
964
  emits: ["update:visible", "update:id"],
965
965
  setup(s, { expose: a, emit: o }) {
966
966
  const { t: g } = Ie(), t = s, e = E(0), b = o, c = E();
967
- ue(() => t.visible, () => {
967
+ he(() => t.visible, () => {
968
968
  t.visible && e.value++;
969
969
  });
970
970
  function C() {
@@ -980,7 +980,7 @@ const ke = (s) => {
980
980
  close: k,
981
981
  refresh: C
982
982
  }), (R, X) => {
983
- const P = w("el-button"), z = w("el-dialog");
983
+ const P = y("el-button"), z = y("el-dialog");
984
984
  return n(), I(z, {
985
985
  title: "Edit",
986
986
  "model-value": t.visible,
@@ -993,7 +993,7 @@ const ke = (s) => {
993
993
  i("div", Mo, [
994
994
  i("div", Qo, [
995
995
  (n(!0), U(ee, null, se((D = t.model.formConfig) == null ? void 0 : D.dialogButtons, (O) => (n(), I(P, {
996
- onClick: (y) => O.function(c.value.formData)
996
+ onClick: (w) => O.function(c.value.formData)
997
997
  }, {
998
998
  default: r(() => [
999
999
  N(Q(v(g)(O.label)), 1)
@@ -1045,7 +1045,7 @@ const ke = (s) => {
1045
1045
  setup(s, { expose: a }) {
1046
1046
  const { t: o } = Me.global, g = s, t = le([]), e = le({
1047
1047
  showPane: !0
1048
- }), b = E(""), c = E(!0), C = E(!1), k = Be(), V = E(""), R = le([]), X = le([]), P = E(), z = E([]), D = E("create"), O = E(!0), y = E(!1), W = E(""), Y = le({
1048
+ }), b = E(""), c = E(!0), C = E(!1), k = Be(), V = E(""), R = le([]), X = le([]), P = E(), z = E([]), D = E("create"), O = E(!0), w = E(!1), W = E(""), Y = le({
1049
1049
  pageSize: 10,
1050
1050
  pageNo: 1,
1051
1051
  totalElements: 0
@@ -1162,9 +1162,9 @@ const ke = (s) => {
1162
1162
  return l.label ? c.value ? o(l.label) : l.label : l.prop.slice(0, 1).toUpperCase() + l.prop.slice(1).toLowerCase();
1163
1163
  }
1164
1164
  function u(l) {
1165
- l ? (y.value = !0, X.splice(0, X.length, ...R), R.splice(0, R.length, ...z.value)) : (y.value = !1, R.splice(0, R.length, ...X));
1165
+ l ? (w.value = !0, X.splice(0, X.length, ...R), R.splice(0, R.length, ...z.value)) : (w.value = !1, R.splice(0, R.length, ...X));
1166
1166
  }
1167
- return ue(() => g.model, () => {
1167
+ return he(() => g.model, () => {
1168
1168
  h();
1169
1169
  }, {
1170
1170
  deep: !0,
@@ -1174,7 +1174,7 @@ const ke = (s) => {
1174
1174
  refresh: h,
1175
1175
  updateConfigAndRefresh: T
1176
1176
  }), (l, f) => {
1177
- const B = w("el-checkbox"), Z = w("el-badge"), H = w("el-button"), oe = w("el-icon"), ce = w("el-tooltip"), ae = w("el-input"), ne = w("el-table-column"), $ = w("router-link"), j = w("el-tag"), pe = w("el-popconfirm"), me = w("el-table"), ye = w("el-pagination"), Ne = Ke("loading");
1177
+ const B = y("el-checkbox"), Z = y("el-badge"), H = y("el-button"), oe = y("el-icon"), ce = y("el-tooltip"), ae = y("el-input"), ne = y("el-table-column"), $ = y("router-link"), j = y("el-tag"), pe = y("el-popconfirm"), me = y("el-table"), ye = y("el-pagination"), Ne = Ke("loading");
1178
1178
  return n(), U("div", {
1179
1179
  class: Te({ "table-view-wrapper": e.showPane })
1180
1180
  }, [
@@ -1393,7 +1393,7 @@ const ke = (s) => {
1393
1393
  }, 8, ["data"])), [
1394
1394
  [Ne, O.value]
1395
1395
  ]),
1396
- y.value ? K("", !0) : (n(), I(ye, {
1396
+ w.value ? K("", !0) : (n(), I(ye, {
1397
1397
  key: 0,
1398
1398
  size: "small",
1399
1399
  background: "",
@@ -1423,17 +1423,19 @@ const ke = (s) => {
1423
1423
  }, Do = { class: "icon-wrapper" }, To = { class: "info-wrapper" }, Ko = { class: "title-wrapper" }, Po = { class: "tabs-wrapper" }, Lo = { class: "dialog-footer" }, jo = /* @__PURE__ */ de({
1424
1424
  __name: "DetailPage",
1425
1425
  setup(s) {
1426
- const { t: a } = Ie(), o = _e(), g = Be(), t = xe(() => o.query.id), e = E(!1), b = E(!1), c = E("view"), C = E(), k = E(-1), V = E(), R = E(), X = E("summary"), P = E(""), z = E(""), D = E(""), O = E(0), y = le({
1426
+ const { t: a } = Ie(), o = _e(), g = Be(), t = xe(() => o.query.id), e = E(!1), b = E(!1), c = E("view"), C = E(), k = E(-1), V = E(), R = E(), X = E("summary"), P = E(""), z = E(""), D = E(""), O = E(0), w = le({
1427
1427
  api: "",
1428
1428
  fields: []
1429
1429
  }), W = le([]);
1430
1430
  let Y = [];
1431
- ue(() => g.currentRoute.value, () => {
1432
- T();
1431
+ he([
1432
+ () => g.currentRoute.value,
1433
+ ue
1434
+ ], () => {
1435
+ w.api !== "" && T();
1433
1436
  }, {
1434
- immediate: !0
1435
- }), ue(() => y, () => {
1436
- console.log("watch model changed:", y), T();
1437
+ immediate: !0,
1438
+ deep: !0
1437
1439
  });
1438
1440
  function q(_) {
1439
1441
  k.value = parseInt(_.index) - 1, console.log(W[k.value]);
@@ -1442,7 +1444,7 @@ const ke = (s) => {
1442
1444
  var M;
1443
1445
  let _ = (M = Y[k.value].api) == null ? void 0 : M.replace("/select", "");
1444
1446
  _ = _ == null ? void 0 : _.substring(_.lastIndexOf("/"));
1445
- const A = y.api + "/" + t.value + _, x = R.value.multipleSelection.map((F) => F.id);
1447
+ const A = w.api + "/" + t.value + _, x = R.value.multipleSelection.map((F) => F.id);
1446
1448
  ve(A, "POST", x).then(() => {
1447
1449
  V.value.refresh(), b.value = !1;
1448
1450
  });
@@ -1463,7 +1465,7 @@ const ke = (s) => {
1463
1465
  var f;
1464
1466
  let S = (f = Y[k.value].api) == null ? void 0 : f.replace("/select", "");
1465
1467
  S = S == null ? void 0 : S.substring(S.lastIndexOf("/"));
1466
- const u = y.api + "/" + t.value + S, l = p.map((B) => B.id);
1468
+ const u = w.api + "/" + t.value + S, l = p.map((B) => B.id);
1467
1469
  ie.delete(`${u}/${l.join(",")}`).then(({ data: B }) => {
1468
1470
  B.code === 0 && V.value.refresh();
1469
1471
  });
@@ -1475,7 +1477,7 @@ const ke = (s) => {
1475
1477
  var f;
1476
1478
  let u = (f = Y[k.value].api) == null ? void 0 : f.replace("/select", "");
1477
1479
  u = u == null ? void 0 : u.substring(u.lastIndexOf("/"));
1478
- const l = y.api + "/" + t.value + u;
1480
+ const l = w.api + "/" + t.value + u;
1479
1481
  ve(l, "DELETE", S.id).then(() => {
1480
1482
  V.value.refresh();
1481
1483
  });
@@ -1488,15 +1490,15 @@ const ke = (s) => {
1488
1490
  var M, F, L;
1489
1491
  W.splice(0);
1490
1492
  const _ = o.params.model;
1491
- if (he.value[_] === void 0)
1493
+ if (ue.value[_] === void 0)
1492
1494
  return;
1493
- ke(y);
1494
- const A = Ce(he.value[_]);
1495
- Object.assign(y, A), k.value = -1, X.value = "summary";
1496
- const x = (F = (M = y.pageConfig) == null ? void 0 : M.detailPage) == null ? void 0 : F.tabs;
1495
+ ke(w);
1496
+ const A = Ce(ue.value[_]);
1497
+ Object.assign(w, A), k.value = -1, X.value = "summary";
1498
+ const x = (F = (M = w.pageConfig) == null ? void 0 : M.detailPage) == null ? void 0 : F.tabs;
1497
1499
  if (x)
1498
1500
  for (let p of x) {
1499
- const S = Ce(he.value[p.modelKey]);
1501
+ const S = Ce(ue.value[p.modelKey]);
1500
1502
  if (W.push(S), p.type === "table") {
1501
1503
  S.tableConfig || (S.tableConfig = {});
1502
1504
  let u = S.tableConfig;
@@ -1512,11 +1514,11 @@ const ke = (s) => {
1512
1514
  }
1513
1515
  }
1514
1516
  }
1515
- ue(
1517
+ he(
1516
1518
  [
1517
1519
  () => {
1518
1520
  var _, A;
1519
- return (A = (_ = y.pageConfig) == null ? void 0 : _.detailPage) == null ? void 0 : A.infoCard;
1521
+ return (A = (_ = w.pageConfig) == null ? void 0 : _.detailPage) == null ? void 0 : A.infoCard;
1520
1522
  },
1521
1523
  () => {
1522
1524
  var _;
@@ -1526,8 +1528,8 @@ const ke = (s) => {
1526
1528
  (_) => {
1527
1529
  De(() => {
1528
1530
  var x, M, F;
1529
- const A = (M = (x = y.pageConfig) == null ? void 0 : x.detailPage) == null ? void 0 : M.infoCard;
1530
- A && (P.value = A.titleFieldProp ? C.value.formData[A.titleFieldProp] : "", z.value = A.subtitleFieldProp ? C.value.formData[A.subtitleFieldProp] : "", D.value = A.tagFieldProp ? C.value.formData[A.tagFieldProp] : "", (F = y.fields) == null || F.forEach((L) => {
1531
+ const A = (M = (x = w.pageConfig) == null ? void 0 : x.detailPage) == null ? void 0 : M.infoCard;
1532
+ A && (P.value = A.titleFieldProp ? C.value.formData[A.titleFieldProp] : "", z.value = A.subtitleFieldProp ? C.value.formData[A.subtitleFieldProp] : "", D.value = A.tagFieldProp ? C.value.formData[A.tagFieldProp] : "", (F = w.fields) == null || F.forEach((L) => {
1531
1533
  var p, S;
1532
1534
  if (L.prop === A.tagFieldProp) {
1533
1535
  const u = (S = (p = L.tableColumnAttributes) == null ? void 0 : p.functions) == null ? void 0 : S.transformValue;
@@ -1549,7 +1551,7 @@ const ke = (s) => {
1549
1551
  }
1550
1552
  return (_, A) => {
1551
1553
  var H, oe, ce, ae, ne, $;
1552
- const x = w("el-breadcrumb-item"), M = w("el-breadcrumb"), F = w("el-button"), L = w("el-icon"), p = w("el-dropdown-item"), S = w("el-dropdown-menu"), u = w("el-dropdown"), l = w("el-tag"), f = w("el-tab-pane"), B = w("el-tabs"), Z = w("el-dialog");
1554
+ const x = y("el-breadcrumb-item"), M = y("el-breadcrumb"), F = y("el-button"), L = y("el-icon"), p = y("el-dropdown-item"), S = y("el-dropdown-menu"), u = y("el-dropdown"), l = y("el-tag"), f = y("el-tab-pane"), B = y("el-tabs"), Z = y("el-dialog");
1553
1555
  return n(), U(ee, null, [
1554
1556
  i("div", Ro, [
1555
1557
  d(M, null, {
@@ -1557,12 +1559,12 @@ const ke = (s) => {
1557
1559
  var j, pe;
1558
1560
  return [
1559
1561
  d(x, {
1560
- to: { path: `/${(pe = (j = y == null ? void 0 : y.breadcrumbRoute) != null ? j : y == null ? void 0 : y.route) != null ? pe : ""}` }
1562
+ to: { path: `/${(pe = (j = w == null ? void 0 : w.breadcrumbRoute) != null ? j : w == null ? void 0 : w.route) != null ? pe : ""}` }
1561
1563
  }, {
1562
1564
  default: r(() => {
1563
1565
  var me;
1564
1566
  return [
1565
- N(Q(v(a)((me = y == null ? void 0 : y.name) != null ? me : "")), 1)
1567
+ N(Q(v(a)((me = w == null ? void 0 : w.name) != null ? me : "")), 1)
1566
1568
  ];
1567
1569
  }),
1568
1570
  _: 1
@@ -1597,13 +1599,13 @@ const ke = (s) => {
1597
1599
  ]),
1598
1600
  _: 1
1599
1601
  }),
1600
- ((oe = (H = y.pageConfig) == null ? void 0 : H.detailPage) == null ? void 0 : oe.operationButtons) !== void 0 ? (n(), I(u, { key: 0 }, {
1602
+ ((oe = (H = w.pageConfig) == null ? void 0 : H.detailPage) == null ? void 0 : oe.operationButtons) !== void 0 ? (n(), I(u, { key: 0 }, {
1601
1603
  dropdown: r(() => [
1602
1604
  d(S, null, {
1603
1605
  default: r(() => {
1604
1606
  var j, pe;
1605
1607
  return [
1606
- (n(!0), U(ee, null, se((pe = (j = y.pageConfig) == null ? void 0 : j.detailPage) == null ? void 0 : pe.operationButtons, (me) => (n(), I(p, {
1608
+ (n(!0), U(ee, null, se((pe = (j = w.pageConfig) == null ? void 0 : j.detailPage) == null ? void 0 : pe.operationButtons, (me) => (n(), I(p, {
1607
1609
  onClick: (ye) => me.function(C.value.formData)
1608
1610
  }, {
1609
1611
  default: r(() => [
@@ -1638,9 +1640,9 @@ const ke = (s) => {
1638
1640
  }, null, 8, ["icon"])
1639
1641
  ])
1640
1642
  ]),
1641
- (ae = (ce = y.pageConfig) == null ? void 0 : ce.detailPage) != null && ae.infoCard ? (n(), U("div", Vo, [
1643
+ (ae = (ce = w.pageConfig) == null ? void 0 : ce.detailPage) != null && ae.infoCard ? (n(), U("div", Vo, [
1642
1644
  i("div", Do, [
1643
- (n(), I(Se((ne = y.pageConfig.detailPage.infoCard.icon) != null ? ne : ""), { class: "icon" }))
1645
+ (n(), I(Se((ne = w.pageConfig.detailPage.infoCard.icon) != null ? ne : ""), { class: "icon" }))
1644
1646
  ]),
1645
1647
  i("div", To, [
1646
1648
  i("div", Ko, [
@@ -1678,12 +1680,12 @@ const ke = (s) => {
1678
1680
  id: t.value,
1679
1681
  sessionId: O.value,
1680
1682
  mode: c.value,
1681
- model: y
1683
+ model: w
1682
1684
  }, null, 8, ["id", "sessionId", "mode", "model"])
1683
1685
  ]),
1684
1686
  _: 1
1685
1687
  }, 8, ["label"]),
1686
- (n(!0), U(ee, null, se((pe = (j = y.pageConfig) == null ? void 0 : j.detailPage) == null ? void 0 : pe.tabs, (me) => {
1688
+ (n(!0), U(ee, null, se((pe = (j = w.pageConfig) == null ? void 0 : j.detailPage) == null ? void 0 : pe.tabs, (me) => {
1687
1689
  var ye;
1688
1690
  return n(), I(f, {
1689
1691
  label: v(a)((ye = me.name) != null ? ye : "")
@@ -1742,13 +1744,13 @@ const ke = (s) => {
1742
1744
  mode: "update",
1743
1745
  visible: e.value,
1744
1746
  "onUpdate:visible": A[3] || (A[3] = (j) => e.value = j),
1745
- model: y,
1747
+ model: w,
1746
1748
  afterSubmitFunc: G
1747
1749
  }, null, 8, ["id", "visible", "model"])
1748
1750
  ], 64);
1749
1751
  };
1750
1752
  }
1751
- }), Xo = /* @__PURE__ */ re(jo, [["__scopeId", "data-v-4d54e165"]]), Yo = { class: "page-title" }, qo = /* @__PURE__ */ de({
1753
+ }), Xo = /* @__PURE__ */ re(jo, [["__scopeId", "data-v-fd204ca6"]]), Yo = { class: "page-title" }, qo = /* @__PURE__ */ de({
1752
1754
  __name: "TablePage",
1753
1755
  setup(s) {
1754
1756
  const { t: a } = Ie(), o = _e(), g = Be(), t = E(), e = E([]), b = le({
@@ -1759,7 +1761,7 @@ const ke = (s) => {
1759
1761
  var V, R, X, P, z;
1760
1762
  e.value = [], b.pageConfig && ((R = (V = b.pageConfig) == null ? void 0 : V.tablePage) != null && R.tabViewAttributes) && (e.value = (z = (P = (X = b.pageConfig) == null ? void 0 : X.tablePage) == null ? void 0 : P.tabViewAttributes) == null ? void 0 : z.map((D) => {
1761
1763
  let O;
1762
- return D.modelKey && he.value[D.modelKey] ? O = Ce(he.value[D.modelKey]) : O = Ce(b), D.queryParams && (O.tableConfig || (O.tableConfig = {}), O.tableConfig.queryParams = D.queryParams), D.fields && (O.fields = D.fields), D.modelKey && (O.breadcrumbRoute = b.route), {
1764
+ return D.modelKey && ue.value[D.modelKey] ? O = Ce(ue.value[D.modelKey]) : O = Ce(b), D.queryParams && (O.tableConfig || (O.tableConfig = {}), O.tableConfig.queryParams = D.queryParams), D.fields && (O.fields = D.fields), D.modelKey && (O.breadcrumbRoute = b.route), {
1763
1765
  key: D.key,
1764
1766
  label: D.label,
1765
1767
  icon: D.icon,
@@ -1770,19 +1772,19 @@ const ke = (s) => {
1770
1772
  }
1771
1773
  function k() {
1772
1774
  var X, P;
1773
- console.log("Init table page, loading model:", o.params.model), console.log("Current model list", he.value);
1775
+ console.log("Init table page, loading model:", o.params.model), console.log("Current model list", ue.value);
1774
1776
  const V = o.params.model;
1775
- if (he.value[V] === void 0) {
1777
+ if (ue.value[V] === void 0) {
1776
1778
  console.warn("Model not found", V);
1777
1779
  return;
1778
1780
  }
1779
1781
  ke(b);
1780
- const R = Ce(he.value[V]);
1782
+ const R = Ce(ue.value[V]);
1781
1783
  Object.assign(b, R), (P = (X = b.pageConfig) == null ? void 0 : X.tablePage) != null && P.tabViewAttributes || Object.assign(c, b), C();
1782
1784
  }
1783
- return ue([
1785
+ return he([
1784
1786
  () => g.currentRoute.value,
1785
- he
1787
+ ue
1786
1788
  ], () => {
1787
1789
  k();
1788
1790
  }, {
@@ -1837,6 +1839,6 @@ export {
1837
1839
  Mt as en,
1838
1840
  Me as i18n,
1839
1841
  $t as menuList,
1840
- he as modelList,
1842
+ ue as modelList,
1841
1843
  Qt as zh
1842
1844
  };