asiaint-lowcode 3.1.93 → 3.1.95

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 (44) hide show
  1. package/README.md +31 -31
  2. package/dist/asiaint-lowcode.js +5 -5
  3. package/dist/asiaint-lowcode.umd.cjs +201 -201
  4. package/dist/index.d.ts +10 -6
  5. package/dist/lazy/{Card-BWGSV6sU.js → Card-BhY-Fgst.js} +23 -23
  6. package/dist/lazy/{Cascader-Cr2NVyVe.js → Cascader-XmlSMGR-.js} +1 -1
  7. package/dist/lazy/{Checkbox-B_2PQrFm.js → Checkbox-CrJQ8b8m.js} +2 -2
  8. package/dist/lazy/{Collapse-C3Zror2h.js → Collapse-DqnyhAKc.js} +1 -1
  9. package/dist/lazy/{Component-Doy8UdYy.js → Component-B23-F8PM.js} +2 -2
  10. package/dist/lazy/{Component-B3vpWckv.js → Component-COtlon_D.js} +2 -2
  11. package/dist/lazy/{Component-nqp6BzE6.js → Component-QMMxoqr-.js} +2 -2
  12. package/dist/lazy/{Component-BgzATNI3.js → Component-WjOc3pgY.js} +1 -1
  13. package/dist/lazy/{Component-Bpw0AOB6.js → Component-cdlyuX7M.js} +1 -1
  14. package/dist/lazy/{CurdCard-CcbhWGL6.js → CurdCard-bIgeGeGY.js} +2 -2
  15. package/dist/lazy/Custom-BEOBirL3.js +26 -0
  16. package/dist/lazy/{DatePicker-C41m2J0u.js → DatePicker-BZ47Q3q2.js} +1 -1
  17. package/dist/lazy/DragList-zLDHmPDQ.js +914 -0
  18. package/dist/lazy/{FilterSearch-Dk2OKYuk.js → FilterSearch-CO2FlIyD.js} +2 -2
  19. package/dist/lazy/{FloatCurd-PB1FzQYA.js → FloatCurd-1VPT60ZY.js} +9 -9
  20. package/dist/lazy/{FormList-D-yanIhW.js → FormList-Wx2L66o7.js} +1 -1
  21. package/dist/lazy/{Grid-DcnXDj44.js → Grid-DlILNB9S.js} +1 -1
  22. package/dist/lazy/{InfiniteScroll-CxGvFAxT.js → InfiniteScroll-B3061oQO.js} +4 -4
  23. package/dist/lazy/{Inline-BJu_ES59.js → Inline-C8riJsdB.js} +3 -3
  24. package/dist/lazy/{JsonEdit-CClXBlM_.js → JsonEdit-BOelGcOE.js} +3 -3
  25. package/dist/lazy/{LogList-DwTnEA0i.js → LogList-D7ElDBYm.js} +7 -7
  26. package/dist/lazy/{ObjGroup-Bd7HWXRi.js → ObjGroup-Ba4h-63z.js} +1 -1
  27. package/dist/lazy/{OfferDetails-BtD0zmf-.js → OfferDetails-BoLxA9RR.js} +11 -11
  28. package/dist/lazy/{Pagination-D4y4VJ8v.js → Pagination-BfNB0GsN.js} +4 -4
  29. package/dist/lazy/{Progress-DeyEG_Es.js → Progress-zv0m0NuE.js} +15 -15
  30. package/dist/lazy/{Radio-D84fKW3L.js → Radio-Dm1-45A9.js} +3 -3
  31. package/dist/lazy/{SearchSelect-oO5KjM_l.js → SearchSelect-C8xykgog.js} +6 -6
  32. package/dist/lazy/{Select-mRt2EJE4.js → Select-CtWC9yZU.js} +2 -2
  33. package/dist/lazy/{Table-DWp7dPQV.js → Table-DJ5mwyGc.js} +58 -58
  34. package/dist/lazy/Tabs-CvgTo7F0.js +147 -0
  35. package/dist/lazy/{TextArea-sfKHVKrN.js → TextArea-B9Bpg1Ki.js} +3 -3
  36. package/dist/lazy/{Wrapper-DZJLn9b5.js → Wrapper-B6vwgP3v.js} +2 -2
  37. package/dist/lazy/{index-Cc8kiisD.js → index-BQVdPFcV.js} +7631 -7197
  38. package/dist/lazy/{useSelect-CT1JUolL.js → useSelect-SPtTN3jR.js} +1 -1
  39. package/dist/style.css +2 -2
  40. package/global.d.ts +10 -10
  41. package/package.json +36 -36
  42. package/dist/lazy/Custom-Cg-SKqfR.js +0 -26
  43. package/dist/lazy/DragList-D71j523z.js +0 -332
  44. package/dist/lazy/Tabs-BonU3MhH.js +0 -133
@@ -1,13 +1,13 @@
1
- import { defineComponent as Ze, computed as j, inject as U, ref as z, useTemplateRef as et, onMounted as tt, onActivated as nt, onBeforeUnmount as at, readonly as ot, toRefs as lt, onUnmounted as rt, resolveComponent as T, openBlock as r, createElementBlock as d, normalizeClass as $, createVNode as m, withCtx as v, createElementVNode as P, toDisplayString as w, unref as g, createCommentVNode as y, withDirectives as pe, createBlock as k, Fragment as _, renderList as de, normalizeStyle as J, withModifiers as ge, vShow as ve, mergeProps as it, nextTick as st } from "vue";
2
- import { $ as ut, h as I, i as ct, j as pt, a as dt, I as D, b as W, C as gt, _ as vt } from "./index-Cc8kiisD.js";
1
+ import { defineComponent as Ze, computed as j, inject as U, ref as S, useTemplateRef as et, onMounted as tt, onActivated as nt, onBeforeUnmount as at, readonly as ot, toRefs as lt, onUnmounted as rt, resolveComponent as T, openBlock as r, createElementBlock as d, normalizeClass as M, createVNode as m, withCtx as v, createElementVNode as w, toDisplayString as P, unref as g, createCommentVNode as y, withDirectives as pe, createBlock as k, Fragment as _, renderList as de, normalizeStyle as J, withModifiers as ge, vShow as ve, mergeProps as it, nextTick as st } from "vue";
2
+ import { $ as ut, h as I, i as ct, j as pt, a as dt, I as D, b as W, C as gt, _ as vt } from "./index-BQVdPFcV.js";
3
3
  import { ElTable as ht, ElLoading as he, ElMessage as mt } from "element-plus";
4
4
  const yt = ["id"], ft = { class: "custom-slot" }, Ct = {
5
5
  key: 0,
6
6
  class: "poll-wrapper"
7
- }, kt = { class: "empty-content" }, zt = ["title"], Pt = ["title", "onClick"], St = {
7
+ }, kt = { class: "empty-content" }, St = ["title"], wt = ["title", "onClick"], zt = {
8
8
  key: 1,
9
9
  class: "icon-text-wrapper"
10
- }, wt = ["title", "onClick"], bt = { key: 2 }, Bt = ["title"], Nt = { class: "row-btn-wrapper" }, Rt = /* @__PURE__ */ Ze({
10
+ }, Pt = ["title", "onClick"], bt = { key: 2 }, Bt = ["title"], Nt = { class: "row-btn-wrapper" }, Rt = /* @__PURE__ */ Ze({
11
11
  __name: "Table",
12
12
  props: {
13
13
  title: {},
@@ -44,7 +44,7 @@ const yt = ["id"], ft = { class: "custom-slot" }, Ct = {
44
44
  collapsible: { type: Boolean },
45
45
  sortable: { type: Boolean, default: !0 },
46
46
  paginationPosition: {},
47
- totalText: {},
47
+ totalText: { default: "{{ `Showing ${$total} matching tickets`}}" },
48
48
  onPollChange: {},
49
49
  showPollCheckbox: { type: Boolean },
50
50
  name: {},
@@ -52,7 +52,7 @@ const yt = ["id"], ft = { class: "custom-slot" }, Ct = {
52
52
  },
53
53
  setup(me, { expose: ye }) {
54
54
  const a = me, F = j(() => a.displayType ? a.displayType : a.typeSwitch ? "card" : "table"), fe = U("ruleModule", void 0), O = U("ruleMap", void 0), c = j(() => a.rulePath && O[a.rulePath] ? O[a.rulePath] : fe), h = U("pageMethodMap", {}), x = U("getGlobalParams", () => {
55
- }), Q = U(ut), X = Q ? Q.translateFn : null, N = z(), Ce = (e, t, o) => {
55
+ }), Q = U(ut), X = Q ? Q.translateFn : null, N = S(), Ce = (e, t, o) => {
56
56
  p.value[e] && (p.value[e][t] = o);
57
57
  }, ke = (e, t) => {
58
58
  const o = a.columns.find((s) => s.key === e);
@@ -63,22 +63,22 @@ const yt = ["id"], ft = { class: "custom-slot" }, Ct = {
63
63
  } catch (C) {
64
64
  console.error(C);
65
65
  }
66
- }, ze = (e) => {
66
+ }, Se = (e) => {
67
67
  if (a.rowClick)
68
68
  try {
69
69
  c.value[a.rowClick](h, e);
70
70
  } catch (t) {
71
71
  console.error(t);
72
72
  }
73
- }, Pe = (e) => {
73
+ }, we = (e) => {
74
74
  if (a.rowDbClick)
75
75
  try {
76
76
  c.value[a.rowDbClick](h, e);
77
77
  } catch (t) {
78
78
  console.error(t);
79
79
  }
80
- }, Se = z([]), we = (e) => {
81
- Se.value = e;
80
+ }, ze = S([]), Pe = (e) => {
81
+ ze.value = e;
82
82
  }, be = (e, t) => {
83
83
  if (!a.selectable)
84
84
  return !0;
@@ -100,17 +100,17 @@ const yt = ["id"], ft = { class: "custom-slot" }, Ct = {
100
100
  t === void 0 ? (o = N.value) == null || o.toggleRowSelection(C) : (s = N.value) == null || s.toggleRowSelection(C, t);
101
101
  } else
102
102
  return console.error("rowKey is required");
103
- }, Re = () => p.value, Y = z(), Te = (e) => {
103
+ }, Re = () => p.value, Y = S(), Te = (e) => {
104
104
  if (Y.value = e, !!a.handleCurrentChange)
105
105
  try {
106
106
  c.value[a.handleCurrentChange](h, e);
107
107
  } catch (t) {
108
108
  console.error(t);
109
109
  }
110
- }, _e = () => Y.value, Me = () => {
110
+ }, _e = () => Y.value, $e = () => {
111
111
  var e;
112
112
  return (e = N.value) == null ? void 0 : e.getSelectionRows();
113
- }, $e = async () => !0, Ie = (e, t) => {
113
+ }, Me = async () => !0, Ie = (e, t) => {
114
114
  var s;
115
115
  const o = (s = a.topBtns) == null ? void 0 : s.find((C) => C.key === e);
116
116
  o && (o.hidden = t);
@@ -118,9 +118,9 @@ const yt = ["id"], ft = { class: "custom-slot" }, Ct = {
118
118
  var s;
119
119
  const o = (s = a.rowBtns) == null ? void 0 : s.find((C) => C.key === e);
120
120
  o && (o.condition = !t);
121
- }, L = z(0), xe = (e) => {
121
+ }, L = S(0), xe = (e) => {
122
122
  L.value = e;
123
- }, Le = () => L.value, i = z({ pageNum: 1, pageSize: a.defaultPageSize || 10 }), b = z({ pageNum: 1, pageSize: a.defaultPageSize || 10 }), Ve = () => i.value, Ae = (e) => {
123
+ }, Le = () => L.value, i = S({ pageNum: 1, pageSize: a.defaultPageSize || 10 }), b = S({ pageNum: 1, pageSize: a.defaultPageSize || 10 }), Ve = () => i.value, Ae = (e) => {
124
124
  let t = !1;
125
125
  return e.pageNum !== void 0 && e.pageNum > -1 && (i.value.pageNum !== e.pageNum && (t = !0), i.value.pageNum = e.pageNum), e.pageSize !== void 0 && e.pageSize > -1 && (i.value.pageSize !== e.pageSize && (t = !0), i.value.pageSize = e.pageSize), { pagination: i.value, isChange: t };
126
126
  }, Z = async () => {
@@ -161,7 +161,7 @@ const yt = ["id"], ft = { class: "custom-slot" }, Ct = {
161
161
  a.columns.forEach((s) => {
162
162
  s.key === e && s[t] && (s[t] = o);
163
163
  });
164
- }, p = z([]), Ke = (e) => {
164
+ }, p = S([]), Ke = (e) => {
165
165
  p.value = e || [];
166
166
  }, He = (e = {}) => {
167
167
  p.value.push(e);
@@ -212,7 +212,7 @@ const yt = ["id"], ft = { class: "custom-slot" }, Ct = {
212
212
  $globalParams: x()
213
213
  }));
214
214
  }
215
- )), ne = ct(), G = z(a.showPollCheckbox || !1), ae = z(10), f = z(10), Oe = (e) => {
215
+ )), ne = ct(), G = S(a.showPollCheckbox || !1), ae = S(10), f = S(10), Oe = (e) => {
216
216
  try {
217
217
  a.onPollChange && c.value[a.onPollChange](h, e ? f.value : 0);
218
218
  } catch (t) {
@@ -228,7 +228,7 @@ const yt = ["id"], ft = { class: "custom-slot" }, Ct = {
228
228
  } catch (t) {
229
229
  console.error(t);
230
230
  }
231
- }, Xe = z(void 0), Ye = j(() => Xe.value || a.height), oe = async () => {
231
+ }, Xe = S(void 0), Ye = j(() => Xe.value || a.height), oe = async () => {
232
232
  if (!a.onMounted || !c.value)
233
233
  return;
234
234
  await st();
@@ -260,11 +260,11 @@ const yt = ["id"], ft = { class: "custom-slot" }, Ct = {
260
260
  clearSelection: Be,
261
261
  getData: Re,
262
262
  getCurrentRow: _e,
263
- getSelectedRows: Me,
263
+ getSelectedRows: $e,
264
264
  addRow: He,
265
265
  deleteRow: je,
266
266
  refresh: We,
267
- validate: $e,
267
+ validate: Me,
268
268
  setData: Ke,
269
269
  selectRow: Ee,
270
270
  selectRowNum: Ue,
@@ -294,7 +294,7 @@ const yt = ["id"], ft = { class: "custom-slot" }, Ct = {
294
294
  const o = T("el-checkbox"), s = T("el-input"), C = T("el-pagination"), V = T("el-table-column"), q = T("el-popover"), ie = T("el-tooltip"), se = T("el-button");
295
295
  return e.hidden ? y("", !0) : (r(), d("div", {
296
296
  key: 0,
297
- class: $(["table-render", {
297
+ class: M(["table-render", {
298
298
  [e.name]: !0,
299
299
  "top-pagination": e.paginationPosition === "top"
300
300
  }]),
@@ -304,7 +304,7 @@ const yt = ["id"], ft = { class: "custom-slot" }, Ct = {
304
304
  }, [
305
305
  e.paginationPosition === "top" ? (r(), d("div", {
306
306
  key: 0,
307
- class: $(["pagination-wrapper", {
307
+ class: M(["pagination-wrapper", {
308
308
  cardlistPadding: F.value === "card"
309
309
  }])
310
310
  }, [
@@ -322,14 +322,14 @@ const yt = ["id"], ft = { class: "custom-slot" }, Ct = {
322
322
  onCurrentChange: ee
323
323
  }, {
324
324
  default: v(() => [
325
- P("div", ft, [
325
+ w("div", ft, [
326
326
  e.showPollCheckbox ? (r(), d("div", Ct, [
327
327
  m(o, {
328
328
  modelValue: G.value,
329
329
  "onUpdate:modelValue": t[0] || (t[0] = (n) => G.value = n),
330
330
  onChange: Oe
331
331
  }, null, 8, ["modelValue"]),
332
- P("span", null, w(g(ne).table.pollText), 1),
332
+ w("span", null, P(g(ne).table.pollText), 1),
333
333
  m(s, {
334
334
  type: "number",
335
335
  style: { width: "45px", height: "28px" },
@@ -337,15 +337,15 @@ const yt = ["id"], ft = { class: "custom-slot" }, Ct = {
337
337
  "onUpdate:modelValue": t[1] || (t[1] = (n) => f.value = n),
338
338
  onChange: Qe
339
339
  }, null, 8, ["modelValue"]),
340
- P("span", null, w(g(ne).table.pollUnit), 1)
340
+ w("span", null, P(g(ne).table.pollUnit), 1)
341
341
  ])) : y("", !0),
342
- P("span", null, w(g(I)(e.totalText, { $total: L.value })), 1)
342
+ w("span", null, P(g(I)(e.totalText, { $total: L.value })), 1)
343
343
  ])
344
344
  ]),
345
345
  _: 1
346
346
  }, 8, ["layout", "total", "page-sizes", "default-page-size", "current-page", "page-size", "pager-count"])
347
347
  ], 2)) : y("", !0),
348
- pe(P("div", null, [
348
+ pe(w("div", null, [
349
349
  m(g(ht), {
350
350
  ref_key: "tableRef",
351
351
  ref: N,
@@ -353,19 +353,19 @@ const yt = ["id"], ft = { class: "custom-slot" }, Ct = {
353
353
  "highlight-current-row": "",
354
354
  "row-key": e.rowKey,
355
355
  stripe: e.stripe,
356
- onRowClick: ze,
357
- onRowDblclick: Pe,
358
- onSelectionChange: we,
356
+ onRowClick: Se,
357
+ onRowDblclick: we,
358
+ onSelectionChange: Pe,
359
359
  onCurrentChange: Te,
360
360
  height: Ye.value
361
361
  }, {
362
362
  empty: v(() => [
363
- P("div", kt, [
363
+ w("div", kt, [
364
364
  m(g(dt), {
365
365
  name: "tableEmpty",
366
366
  style: { width: 56, height: 56 }
367
367
  }),
368
- t[6] || (t[6] = P("div", null, "No data available,please check", -1))
368
+ t[6] || (t[6] = w("div", null, "No data available,please check", -1))
369
369
  ])
370
370
  ]),
371
371
  default: v(() => [
@@ -386,27 +386,27 @@ const yt = ["id"], ft = { class: "custom-slot" }, Ct = {
386
386
  sortable: n.sortable ?? e.sortable ?? !0
387
387
  }, {
388
388
  header: v(() => [
389
- P("div", {
389
+ w("div", {
390
390
  class: "text-ellipsis",
391
391
  title: n.label
392
- }, w(n.label), 9, zt)
392
+ }, P(n.label), 9, St)
393
393
  ]),
394
394
  default: v(({ row: u, $index: l }) => {
395
- var A, M, ue, ce;
395
+ var A, $, ue, ce;
396
396
  return [
397
397
  n.type === "link" ? (r(), d("div", {
398
398
  key: 0,
399
- class: $(["text-ellipsis link-style", { "click-style": n.onClick }]),
399
+ class: M(["text-ellipsis link-style", { "click-style": n.onClick }]),
400
400
  title: R(n, u),
401
- onClick: (S) => K(n, u, l, S)
402
- }, w(R(n, u)), 11, Pt)) : n.type === "iconText" ? (r(), d("div", St, [
401
+ onClick: (z) => K(n, u, l, z)
402
+ }, P(R(n, u)), 11, wt)) : n.type === "iconText" ? (r(), d("div", zt, [
403
403
  n.iconPosition === "left" ? (r(), d(_, { key: 0 }, [
404
404
  n.iconPopover && Array.isArray(H(n, u)) ? (r(), k(q, { key: 0 }, {
405
405
  reference: v(() => {
406
- var S, E;
406
+ var z, E;
407
407
  return [
408
408
  m(D, {
409
- name: (S = B(n, u)) == null ? void 0 : S.name,
409
+ name: (z = B(n, u)) == null ? void 0 : z.name,
410
410
  color: (E = B(n, u)) == null ? void 0 : E.color
411
411
  }, null, 8, ["name", "color"])
412
412
  ];
@@ -420,21 +420,21 @@ const yt = ["id"], ft = { class: "custom-slot" }, Ct = {
420
420
  }, 1024)) : (r(), k(D, {
421
421
  key: 1,
422
422
  name: (A = B(n, u)) == null ? void 0 : A.name,
423
- color: (M = B(n, u)) == null ? void 0 : M.color
423
+ color: ($ = B(n, u)) == null ? void 0 : $.color
424
424
  }, null, 8, ["name", "color"]))
425
425
  ], 64)) : y("", !0),
426
- P("span", {
427
- class: $(["text-ellipsis", { "click-style": n.onClick }]),
426
+ w("span", {
427
+ class: M(["text-ellipsis", { "click-style": n.onClick }]),
428
428
  title: R(n, u),
429
- onClick: (S) => K(n, u, l, S)
430
- }, w(R(n, u)), 11, wt),
429
+ onClick: (z) => K(n, u, l, z)
430
+ }, P(R(n, u)), 11, Pt),
431
431
  n.iconPosition === "right" ? (r(), d(_, { key: 1 }, [
432
432
  n.iconPopover && Array.isArray(H(n, u)) ? (r(), k(q, { key: 0 }, {
433
433
  reference: v(() => {
434
- var S, E;
434
+ var z, E;
435
435
  return [
436
436
  m(D, {
437
- name: (S = B(n, u)) == null ? void 0 : S.name,
437
+ name: (z = B(n, u)) == null ? void 0 : z.name,
438
438
  color: (E = B(n, u)) == null ? void 0 : E.color
439
439
  }, null, 8, ["name", "color"])
440
440
  ];
@@ -457,10 +457,10 @@ const yt = ["id"], ft = { class: "custom-slot" }, Ct = {
457
457
  }, null, 8, ["list"])
458
458
  ])) : (r(), d("div", {
459
459
  key: 3,
460
- class: $({ "text-ellipsis": !n.noEllipsis }),
460
+ class: M({ "text-ellipsis": !n.noEllipsis }),
461
461
  title: R(n, u),
462
462
  style: J(Ge(n, u))
463
- }, w(R(n, u)), 15, Bt))
463
+ }, P(R(n, u)), 15, Bt))
464
464
  ];
465
465
  }),
466
466
  _: 2
@@ -474,7 +474,7 @@ const yt = ["id"], ft = { class: "custom-slot" }, Ct = {
474
474
  width: e.rowBtnsWidth || (e.rowBtns.length * 34 + 12 > 100 ? e.rowBtns.length * 34 + 12 : 100)
475
475
  }, {
476
476
  default: v(({ row: n, $index: u }) => [
477
- P("div", Nt, [
477
+ w("div", Nt, [
478
478
  (r(!0), d(_, null, de(e.rowBtns, (l) => {
479
479
  var A;
480
480
  return r(), d(_, {
@@ -497,7 +497,7 @@ const yt = ["id"], ft = { class: "custom-slot" }, Ct = {
497
497
  link: "",
498
498
  size: "small",
499
499
  type: l.type,
500
- onClick: ge((M) => K(l, n, u, M), ["stop"])
500
+ onClick: ge(($) => K(l, n, u, $), ["stop"])
501
501
  }, {
502
502
  default: v(() => [
503
503
  m(ie, {
@@ -518,7 +518,7 @@ const yt = ["id"], ft = { class: "custom-slot" }, Ct = {
518
518
  l.buttonText ? (r(), d("span", {
519
519
  key: 0,
520
520
  style: J({ color: l.buttonText.color, fontSize: "14px" })
521
- }, w(g(I)(l.buttonText.text, {
521
+ }, P(g(I)(l.buttonText.text, {
522
522
  $row: n,
523
523
  $globalParams: g(x)()
524
524
  })), 5)) : y("", !0)
@@ -527,7 +527,7 @@ const yt = ["id"], ft = { class: "custom-slot" }, Ct = {
527
527
  }, 1032, ["disabled", "type", "onClick"])) : y("", !0)
528
528
  ]),
529
529
  default: v(() => [
530
- P("div", null, [
530
+ w("div", null, [
531
531
  m(g(W), {
532
532
  list: l.children
533
533
  }, null, 8, ["list"])
@@ -544,7 +544,7 @@ const yt = ["id"], ft = { class: "custom-slot" }, Ct = {
544
544
  link: "",
545
545
  size: "small",
546
546
  type: l.type,
547
- onClick: ge((M) => K(l, n, u, M), ["stop"])
547
+ onClick: ge(($) => K(l, n, u, $), ["stop"])
548
548
  }, {
549
549
  default: v(() => [
550
550
  m(ie, {
@@ -565,7 +565,7 @@ const yt = ["id"], ft = { class: "custom-slot" }, Ct = {
565
565
  l.buttonText ? (r(), d("span", {
566
566
  key: 0,
567
567
  style: J({ color: l.buttonText.color, fontSize: "14px" })
568
- }, w(g(I)(l.buttonText.text, {
568
+ }, P(g(I)(l.buttonText.text, {
569
569
  $row: n,
570
570
  $globalParams: g(x)()
571
571
  })), 5)) : y("", !0)
@@ -590,7 +590,7 @@ const yt = ["id"], ft = { class: "custom-slot" }, Ct = {
590
590
  ]),
591
591
  e.paginationPosition !== "top" ? (r(), d("div", {
592
592
  key: 1,
593
- class: $(["pagination-wrapper", {
593
+ class: M(["pagination-wrapper", {
594
594
  hidePagination: (e.hiddenPagination || p.value.length === 0) && !e.height,
595
595
  transparentPagination: (e.hiddenPagination || p.value.length === 0) && e.height,
596
596
  cardlistPadding: F.value === "card"
@@ -613,7 +613,7 @@ const yt = ["id"], ft = { class: "custom-slot" }, Ct = {
613
613
  ], 10, yt));
614
614
  };
615
615
  }
616
- }), $t = /* @__PURE__ */ vt(Rt, [["__scopeId", "data-v-3538713e"]]);
616
+ }), Mt = /* @__PURE__ */ vt(Rt, [["__scopeId", "data-v-c24b6d3b"]]);
617
617
  export {
618
- $t as default
618
+ Mt as default
619
619
  };
@@ -0,0 +1,147 @@
1
+ import { defineComponent as L, ref as M, computed as W, watch as T, onMounted as $, resolveComponent as k, openBlock as l, createBlock as h, mergeProps as N, withCtx as f, createElementVNode as c, createElementBlock as o, Fragment as u, renderList as y, createVNode as b, createCommentVNode as p, toDisplayString as D, normalizeClass as F, unref as S } from "vue";
2
+ import { c as z, I as v, b as A, _ as P } from "./index-BQVdPFcV.js";
3
+ import "element-plus";
4
+ const R = { class: "right-icon-wrapper" }, U = { class: "dynamic-icon-wrapper" }, X = {
5
+ key: 0,
6
+ class: "dynamic-icon-item"
7
+ }, Y = { class: "static-icon-wrapper" }, j = {
8
+ key: 0,
9
+ class: "static-icon-item"
10
+ }, q = { class: "tab-label" }, x = { class: "tab-label-text" }, G = /* @__PURE__ */ L({
11
+ __name: "Tabs",
12
+ props: {
13
+ id: {},
14
+ children: {},
15
+ defaultKey: {},
16
+ tabChange: {},
17
+ onBeforeLeave: {},
18
+ styleType: { default: "normal" },
19
+ staticBtns: {},
20
+ dynamicBtns: {}
21
+ },
22
+ setup(V) {
23
+ const t = V, r = M(""), w = W(() => {
24
+ const e = t.children.findIndex((a) => a.name === r.value);
25
+ return e - 1 >= 0 ? e - 1 : null;
26
+ }), { ruleModule: _, pageMethodMap: g } = z();
27
+ function I(e) {
28
+ if (t.tabChange)
29
+ try {
30
+ _[t.tabChange](g, e);
31
+ } catch (a) {
32
+ console.error(a);
33
+ }
34
+ }
35
+ async function E(e, a) {
36
+ if (t.onBeforeLeave)
37
+ try {
38
+ return await _[t.onBeforeLeave](g, e, a);
39
+ } catch (d) {
40
+ console.error(d);
41
+ }
42
+ return !0;
43
+ }
44
+ const K = (e) => {
45
+ if (t.id) {
46
+ const a = document.getElementById(t.id);
47
+ if (a) {
48
+ const d = a.getElementsByClassName("el-tabs__nav-scroll")[0], i = a.getElementsByClassName("el-tabs__nav")[0], m = i.style.transform.split("(")[1].split(")")[0].split("px")[0], C = d.offsetWidth - i.offsetWidth, B = 0;
49
+ let s = parseInt(m);
50
+ s = s - e.deltaY, s < C && (s = C), s > B && (s = B), i.style.transform = `translateX(${s}px)`;
51
+ }
52
+ e.preventDefault();
53
+ }
54
+ };
55
+ return T(
56
+ () => t.children,
57
+ () => {
58
+ t.children.forEach((e) => {
59
+ e.children || (e.children = []);
60
+ });
61
+ }
62
+ ), T(
63
+ () => t.defaultKey,
64
+ () => {
65
+ r.value = t.defaultKey;
66
+ }
67
+ ), $(() => {
68
+ t.defaultKey && (r.value = t.defaultKey);
69
+ }), (e, a) => {
70
+ const d = k("el-tab-pane"), i = k("el-tabs");
71
+ return l(), h(i, N({
72
+ onWheel: K,
73
+ id: e.id
74
+ }, e.$attrs, {
75
+ modelValue: r.value,
76
+ "onUpdate:modelValue": a[0] || (a[0] = (n) => r.value = n),
77
+ onTabChange: I,
78
+ "before-leave": E,
79
+ addable: e.styleType === "btn",
80
+ class: {
81
+ "modal-type": e.styleType === "modal",
82
+ "btn-type": e.styleType === "btn",
83
+ "form-item-tabs": e.styleType === "normal"
84
+ }
85
+ }), {
86
+ "add-icon": f(() => [
87
+ c("div", R, [
88
+ c("div", U, [
89
+ (l(!0), o(u, null, y(e.dynamicBtns, (n) => (l(), o(u, {
90
+ key: n.iconName
91
+ }, [
92
+ n.hidden ? p("", !0) : (l(), o("div", X, [
93
+ b(v, {
94
+ name: n.iconName
95
+ }, null, 8, ["name"])
96
+ ]))
97
+ ], 64))), 128))
98
+ ]),
99
+ c("div", Y, [
100
+ (l(!0), o(u, null, y(e.staticBtns, (n) => (l(), o(u, {
101
+ key: n.iconName
102
+ }, [
103
+ n.hidden ? p("", !0) : (l(), o("div", j, [
104
+ b(v, {
105
+ name: n.iconName
106
+ }, null, 8, ["name"])
107
+ ]))
108
+ ], 64))), 128))
109
+ ])
110
+ ])
111
+ ]),
112
+ default: f(() => [
113
+ (l(!0), o(u, null, y(e.children, (n, m) => (l(), h(d, N({
114
+ key: n.name,
115
+ ref_for: !0
116
+ }, n), {
117
+ label: f(() => [
118
+ c("div", q, [
119
+ e.styleType === "btn" && n.icon ? (l(), h(v, {
120
+ key: 0,
121
+ name: n.icon
122
+ }, null, 8, ["name"])) : p("", !0),
123
+ c("span", x, D(n.label), 1),
124
+ m !== e.children.length - 1 ? (l(), o("span", {
125
+ key: 1,
126
+ class: F(["divider", {
127
+ "divider-hidden": r.value === n.name || w.value === m
128
+ }])
129
+ }, null, 2)) : p("", !0)
130
+ ])
131
+ ]),
132
+ default: f(() => [
133
+ b(S(A), {
134
+ list: n.children
135
+ }, null, 8, ["list"])
136
+ ]),
137
+ _: 2
138
+ }, 1040))), 128))
139
+ ]),
140
+ _: 1
141
+ }, 16, ["id", "modelValue", "addable", "class"]);
142
+ };
143
+ }
144
+ }), Q = /* @__PURE__ */ P(G, [["__scopeId", "data-v-3ce0e212"]]);
145
+ export {
146
+ Q as default
147
+ };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as u, mergeModels as i, useModel as _, computed as v, resolveComponent as f, openBlock as a, createElementBlock as n, createElementVNode as y, toDisplayString as r, createBlock as V, mergeProps as k } from "vue";
2
- import { u as x, _ as B } from "./index-Cc8kiisD.js";
2
+ import { u as x, _ as B } from "./index-BQVdPFcV.js";
3
3
  import "element-plus";
4
4
  const M = {
5
5
  key: 0,
@@ -31,7 +31,7 @@ const M = {
31
31
  }), null, 16, ["modelValue"]));
32
32
  };
33
33
  }
34
- }), E = /* @__PURE__ */ B(I, [["__scopeId", "data-v-5775c381"]]);
34
+ }), C = /* @__PURE__ */ B(I, [["__scopeId", "data-v-166c6bcb"]]);
35
35
  export {
36
- E as default
36
+ C as default
37
37
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as w, ref as f, resolveComponent as v, openBlock as a, createElementBlock as l, normalizeStyle as s, createVNode as r, withCtx as C, withDirectives as _, createElementVNode as g, normalizeClass as i, unref as x, createCommentVNode as c, vShow as B } from "vue";
2
- import { c as S, b, I as d, _ as k } from "./index-Cc8kiisD.js";
2
+ import { c as S, b, I as d, _ as k } from "./index-BQVdPFcV.js";
3
3
  import "element-plus";
4
4
  const E = {
5
5
  key: 0,
@@ -80,7 +80,7 @@ const E = {
80
80
  ], 4);
81
81
  };
82
82
  }
83
- }), V = /* @__PURE__ */ k(D, [["__scopeId", "data-v-e9e23e58"]]);
83
+ }), V = /* @__PURE__ */ k(D, [["__scopeId", "data-v-4e826675"]]);
84
84
  export {
85
85
  V as default
86
86
  };