@jt-home/mfe-components 8.0.0 → 9.0.0

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.
@@ -2,7 +2,7 @@ import './style.css';
2
2
  import { t as D } from "./locale/index.mjs";
3
3
  import { getLocale as Ca, install as _a, installLocale as ba, normalizeLocale as wa, resetLocale as $a, setLocale as La } from "./locale/index.mjs";
4
4
  import { ElCascader as et, ElSelect as Fe, ElOption as tt, ElFormItem as at, ElForm as ot, ElTable as lt, ElTableColumn as nt, ElPagination as st, ElLoadingDirective as rt, ElDropdown as it, ElDropdownMenu as ct, ElDropdownItem as dt, ElIcon as ut, ElTree as pt, ElDialog as mt, ElDrawer as ft } from "element-plus/es";
5
- import { defineComponent as H, computed as m, ref as R, watch as pe, openBlock as i, createBlock as A, mergeProps as U, mergeDefaults as ht, toHandlers as ge, withCtx as j, renderSlot as w, createVNode as N, unref as P, withModifiers as re, getCurrentInstance as vt, createElementBlock as y, Fragment as X, renderList as q, createElementVNode as x, toDisplayString as I, createCommentVNode as z, useSlots as fe, normalizeStyle as oe, createSlots as ie, resolveDynamicComponent as Ze, nextTick as Me, normalizeClass as Y, normalizeProps as de, guardReactiveProps as ue, useModel as ve, withDirectives as Ke, mergeModels as me, createTextVNode as le, useAttrs as Re, shallowReactive as yt, provide as De, onMounted as gt, onBeforeUnmount as Ue, inject as ze, withKeys as He } from "vue";
5
+ import { defineComponent as H, computed as m, ref as R, watch as pe, openBlock as c, createBlock as A, mergeProps as U, mergeDefaults as ht, toHandlers as ge, withCtx as j, renderSlot as w, createVNode as N, unref as P, withModifiers as re, getCurrentInstance as vt, createElementBlock as y, Fragment as X, renderList as q, createElementVNode as x, toDisplayString as I, createCommentVNode as z, useSlots as fe, normalizeStyle as oe, createSlots as ie, resolveDynamicComponent as Ze, nextTick as Me, normalizeClass as Y, normalizeProps as de, guardReactiveProps as ue, useModel as ve, withDirectives as Ke, mergeModels as me, createTextVNode as le, useAttrs as Re, shallowReactive as yt, provide as De, onMounted as gt, onBeforeUnmount as Ue, inject as ze, withKeys as He } from "vue";
6
6
  import { cascaderEmits as Ct, selectEmits as $e, ClickOutside as _t } from "element-plus";
7
7
  import { a as ye, d as bt, c as wt, o as Ee, p as Ve, _ as Z, J as ae } from "./index-DImDpEoU.js";
8
8
  import { b as ka, e as ja } from "./index-DImDpEoU.js";
@@ -70,13 +70,13 @@ const xt = /* @__PURE__ */ H({
70
70
  const t = l, e = m(() => {
71
71
  const p = Lt(t);
72
72
  if (!p.disabled) return p;
73
- const { placeholder: d, ...C } = p;
74
- return C;
75
- }), c = R(t.modelValue);
73
+ const { placeholder: d, ...g } = p;
74
+ return g;
75
+ }), i = R(t.modelValue);
76
76
  pe(
77
77
  () => t.modelValue,
78
78
  (p) => {
79
- c.value = p;
79
+ i.value = p;
80
80
  },
81
81
  { deep: !0 }
82
82
  );
@@ -85,7 +85,7 @@ const xt = /* @__PURE__ */ H({
85
85
  o(p, ...d);
86
86
  }
87
87
  function f(p) {
88
- c.value = p, r("update:modelValue", p);
88
+ i.value = p, r("update:modelValue", p);
89
89
  }
90
90
  function n(p) {
91
91
  r("change", p);
@@ -93,33 +93,33 @@ const xt = /* @__PURE__ */ H({
93
93
  function u(p) {
94
94
  r("focus", p);
95
95
  }
96
- function g(p) {
96
+ function _(p) {
97
97
  r("blur", p);
98
98
  }
99
99
  function b() {
100
100
  r("clear");
101
101
  }
102
- function h(p) {
102
+ function v(p) {
103
103
  r("visibleChange", p);
104
104
  }
105
- function T(p) {
105
+ function S(p) {
106
106
  r("expandChange", p);
107
107
  }
108
- function S(p) {
108
+ function M(p) {
109
109
  r("removeTag", p);
110
110
  }
111
111
  return (p, d) => {
112
- const C = et;
113
- return i(), A(C, U({ class: "jt-cascader jt-form-control" }, e.value, {
114
- "model-value": c.value,
112
+ const g = et;
113
+ return c(), A(g, U({ class: "jt-cascader jt-form-control" }, e.value, {
114
+ "model-value": i.value,
115
115
  "onUpdate:modelValue": f,
116
116
  onChange: n,
117
117
  onFocus: u,
118
- onBlur: g,
118
+ onBlur: _,
119
119
  onClear: b,
120
- onVisibleChange: h,
121
- onExpandChange: T,
122
- onRemoveTag: S
120
+ onVisibleChange: v,
121
+ onExpandChange: S,
122
+ onRemoveTag: M
123
123
  }), null, 16, ["model-value"]);
124
124
  };
125
125
  }
@@ -189,19 +189,19 @@ const xt = /* @__PURE__ */ H({
189
189
  "update:headerQuery": (l) => typeof l == "string"
190
190
  },
191
191
  setup(l, { emit: a }) {
192
- const t = l, e = a, c = R(""), o = R(t.headerQuery);
192
+ const t = l, e = a, i = R(""), o = R(t.headerQuery);
193
193
  pe(
194
194
  () => t.headerQuery,
195
- (C) => {
196
- o.value = C;
195
+ (g) => {
196
+ o.value = g;
197
197
  }
198
198
  );
199
199
  const r = m(() => {
200
200
  const {
201
- headerQuery: C,
202
- headerPlaceholder: v,
201
+ headerQuery: g,
202
+ headerPlaceholder: h,
203
203
  remoteMethod: E,
204
- filterMethod: _,
204
+ filterMethod: C,
205
205
  placeholder: V,
206
206
  popperClass: B,
207
207
  ...O
@@ -211,8 +211,8 @@ const xt = /* @__PURE__ */ H({
211
211
  clearable: t.clearable ?? !0,
212
212
  filterable: t.filterable ?? !0,
213
213
  remote: t.remote ?? !0,
214
- remoteMethod: E ? g : void 0,
215
- filterMethod: _ ? b : void 0,
214
+ remoteMethod: E ? _ : void 0,
215
+ filterMethod: C ? b : void 0,
216
216
  placeholder: V ?? D("common.请选择"),
217
217
  popperClass: ["jt-header-search-select__popper", B].filter(Boolean).join(" ")
218
218
  };
@@ -220,68 +220,68 @@ const xt = /* @__PURE__ */ H({
220
220
  () => t.headerPlaceholder ?? D("common.请输入")
221
221
  ), n = m(
222
222
  () => Object.fromEntries(
223
- Object.keys($e).map((C) => [
224
- C,
225
- (...v) => {
226
- if (C === "change") {
223
+ Object.keys($e).map((g) => [
224
+ g,
225
+ (...h) => {
226
+ if (g === "change") {
227
227
  e("change", u());
228
228
  return;
229
229
  }
230
230
  e(
231
- C,
232
- ...v
231
+ g,
232
+ ...h
233
233
  );
234
234
  }
235
235
  ])
236
236
  )
237
237
  );
238
- function u(C = o.value) {
239
- return { query: c.value, headerQuery: C };
238
+ function u(g = o.value) {
239
+ return { query: i.value, headerQuery: g };
240
240
  }
241
- function g(C) {
242
- h(C, t.remoteMethod);
241
+ function _(g) {
242
+ v(g, t.remoteMethod);
243
243
  }
244
- function b(C) {
245
- h(C, t.filterMethod);
244
+ function b(g) {
245
+ v(g, t.filterMethod);
246
246
  }
247
- function h(C, v) {
248
- c.value = C;
247
+ function v(g, h) {
248
+ i.value = g;
249
249
  const E = u();
250
- e("input", E), v?.(E);
250
+ e("input", E), h?.(E);
251
251
  }
252
- function T(C) {
253
- const v = String(C ?? "");
254
- o.value = v, e("update:headerQuery", v);
252
+ function S(g) {
253
+ const h = String(g ?? "");
254
+ o.value = h, e("update:headerQuery", h);
255
255
  }
256
- function S(C) {
257
- const v = u(C);
258
- e("input", v), d(v);
256
+ function M(g) {
257
+ const h = u(g);
258
+ e("input", h), d(h);
259
259
  }
260
- function p(C) {
261
- const v = u(C);
262
- e("change", v), d(v);
260
+ function p(g) {
261
+ const h = u(g);
262
+ e("change", h), d(h);
263
263
  }
264
- function d(C) {
265
- (t.filterMethod ?? t.remoteMethod)?.(C);
264
+ function d(g) {
265
+ (t.filterMethod ?? t.remoteMethod)?.(g);
266
266
  }
267
- return (C, v) => {
267
+ return (g, h) => {
268
268
  const E = Fe;
269
- return i(), A(E, U({ class: "jt-header-search-select jt-form-control" }, r.value, ge(n.value)), {
269
+ return c(), A(E, U({ class: "jt-header-search-select jt-form-control" }, r.value, ge(n.value)), {
270
270
  header: j(() => [
271
271
  N(P(ye), {
272
272
  class: "jt-header-search-select__input",
273
273
  "model-value": o.value,
274
274
  disabled: t.disabled,
275
275
  placeholder: f.value,
276
- "onUpdate:modelValue": T,
277
- onInput: S,
276
+ "onUpdate:modelValue": S,
277
+ onInput: M,
278
278
  onChange: p,
279
- onKeydown: v[0] || (v[0] = re(() => {
279
+ onKeydown: h[0] || (h[0] = re(() => {
280
280
  }, ["stop"]))
281
281
  }, null, 8, ["model-value", "disabled", "placeholder"])
282
282
  ]),
283
283
  default: j(() => [
284
- w(C.$slots, "default")
284
+ w(g.$slots, "default")
285
285
  ]),
286
286
  _: 3
287
287
  }, 16);
@@ -303,14 +303,14 @@ function Je(l, a) {
303
303
  function kt(l, a) {
304
304
  const t = We(a);
305
305
  if (!t) return [{ text: l, matched: !1 }];
306
- const e = l.toLocaleLowerCase(), c = [];
306
+ const e = l.toLocaleLowerCase(), i = [];
307
307
  let o = 0, r = e.indexOf(t, o);
308
308
  for (; r !== -1; ) {
309
- r > o && c.push({ text: l.slice(o, r), matched: !1 });
309
+ r > o && i.push({ text: l.slice(o, r), matched: !1 });
310
310
  const f = r + t.length;
311
- c.push({ text: l.slice(r, f), matched: !0 }), o = f, r = e.indexOf(t, o);
311
+ i.push({ text: l.slice(r, f), matched: !0 }), o = f, r = e.indexOf(t, o);
312
312
  }
313
- return o < l.length && c.push({ text: l.slice(o), matched: !1 }), c.length ? c : [{ text: l, matched: !1 }];
313
+ return o < l.length && i.push({ text: l.slice(o), matched: !1 }), i.length ? i : [{ text: l, matched: !1 }];
314
314
  }
315
315
  const jt = { class: "jt-search-select__option-title" }, Bt = { key: 0 }, St = { key: 1 }, Tt = {
316
316
  key: 0,
@@ -377,16 +377,16 @@ const jt = { class: "jt-search-select__option-title" }, Bt = { key: 0 }, St = {
377
377
  search: (l) => typeof l == "string"
378
378
  },
379
379
  setup(l, { emit: a }) {
380
- const t = l, e = a, c = R(""), o = R(""), r = vt(), f = m(() => {
380
+ const t = l, e = a, i = R(""), o = R(""), r = vt(), f = m(() => {
381
381
  const d = r?.vnode.props ?? {};
382
382
  return Object.prototype.hasOwnProperty.call(d, "collapseTagsTooltip") || Object.prototype.hasOwnProperty.call(d, "collapse-tags-tooltip");
383
383
  }), n = m(() => {
384
384
  const {
385
385
  options: d,
386
- secondaryPlaceholder: C,
387
- remoteMethod: v,
386
+ secondaryPlaceholder: g,
387
+ remoteMethod: h,
388
388
  popperClass: E,
389
- placeholder: _,
389
+ placeholder: C,
390
390
  teleported: V,
391
391
  collapseTagsTooltip: B,
392
392
  ...O
@@ -395,9 +395,9 @@ const jt = { class: "jt-search-select__option-title" }, Bt = { key: 0 }, St = {
395
395
  ...O,
396
396
  filterable: t.filterable ?? !0,
397
397
  remote: t.remote ?? !0,
398
- remoteMethod: h,
399
- filterMethod: h,
400
- placeholder: _ ?? D("common.请选择"),
398
+ remoteMethod: v,
399
+ filterMethod: v,
400
+ placeholder: C ?? D("common.请选择"),
401
401
  teleported: V ?? !0,
402
402
  collapseTagsTooltip: f.value ? B : !!t.collapseTags,
403
403
  popperClass: ["jt-search-select__popper", E].filter(Boolean).join(" ")
@@ -405,72 +405,72 @@ const jt = { class: "jt-search-select__option-title" }, Bt = { key: 0 }, St = {
405
405
  }), u = m(() => {
406
406
  const d = Je(
407
407
  t.options,
408
- c.value
408
+ i.value
409
409
  );
410
410
  return Je(
411
411
  d,
412
412
  o.value
413
413
  );
414
- }), g = m(
414
+ }), _ = m(
415
415
  () => t.secondaryPlaceholder ?? D("common.请输入")
416
416
  ), b = m(() => Object.fromEntries(
417
417
  Object.keys($e).map((d) => [
418
418
  d,
419
- (...C) => e(d, ...C)
419
+ (...g) => e(d, ...g)
420
420
  ])
421
421
  ));
422
- function h(d) {
423
- c.value = d, o.value = "", (t.remote ?? !0) && t.remoteMethod?.(d), e("search", d);
422
+ function v(d) {
423
+ i.value = d, o.value = "", (t.remote ?? !0) && t.remoteMethod?.(d), e("search", d);
424
424
  }
425
- function T(d) {
425
+ function S(d) {
426
426
  o.value = String(d ?? "");
427
427
  }
428
- function S() {
428
+ function M() {
429
429
  o.value = "";
430
430
  }
431
431
  function p(d) {
432
432
  return kt(d, o.value);
433
433
  }
434
- return (d, C) => {
435
- const v = tt, E = Fe;
436
- return i(), A(E, U({ class: "jt-search-select jt-form-control" }, n.value, ge(b.value)), {
434
+ return (d, g) => {
435
+ const h = tt, E = Fe;
436
+ return c(), A(E, U({ class: "jt-search-select jt-form-control" }, n.value, ge(b.value)), {
437
437
  header: j(() => [
438
438
  w(d.$slots, "header", {
439
439
  keyword: o.value,
440
- setKeyword: T,
441
- clearKeyword: S
440
+ setKeyword: S,
441
+ clearKeyword: M
442
442
  }, () => [
443
443
  N(P(ye), {
444
444
  class: "jt-search-select__secondary-input",
445
445
  "model-value": o.value,
446
- placeholder: g.value,
447
- "onUpdate:modelValue": T,
448
- onKeydown: C[0] || (C[0] = re(() => {
446
+ placeholder: _.value,
447
+ "onUpdate:modelValue": S,
448
+ onKeydown: g[0] || (g[0] = re(() => {
449
449
  }, ["stop"]))
450
450
  }, null, 8, ["model-value", "placeholder"])
451
451
  ])
452
452
  ]),
453
453
  default: j(() => [
454
- (i(!0), y(X, null, q(u.value, (_) => (i(), A(v, {
455
- key: _.value,
456
- label: _.label,
457
- value: _.value,
458
- disabled: _.disabled,
454
+ (c(!0), y(X, null, q(u.value, (C) => (c(), A(h, {
455
+ key: C.value,
456
+ label: C.label,
457
+ value: C.value,
458
+ disabled: C.disabled,
459
459
  class: "jt-search-select__option"
460
460
  }, {
461
461
  default: j(() => [
462
462
  x("div", jt, [
463
- (i(!0), y(X, null, q(p(_.label), (V, B) => (i(), y(X, {
464
- key: `${_.value}-label-${B}`
463
+ (c(!0), y(X, null, q(p(C.label), (V, B) => (c(), y(X, {
464
+ key: `${C.value}-label-${B}`
465
465
  }, [
466
- V.matched ? (i(), y("mark", Bt, I(V.text), 1)) : (i(), y("span", St, I(V.text), 1))
466
+ V.matched ? (c(), y("mark", Bt, I(V.text), 1)) : (c(), y("span", St, I(V.text), 1))
467
467
  ], 64))), 128))
468
468
  ]),
469
- _.description ? (i(), y("div", Tt, [
470
- (i(!0), y(X, null, q(p(_.description), (V, B) => (i(), y(X, {
471
- key: `${_.value}-description-${B}`
469
+ C.description ? (c(), y("div", Tt, [
470
+ (c(!0), y(X, null, q(p(C.description), (V, B) => (c(), y(X, {
471
+ key: `${C.value}-description-${B}`
472
472
  }, [
473
- V.matched ? (i(), y("mark", Mt, I(V.text), 1)) : (i(), y("span", Et, I(V.text), 1))
473
+ V.matched ? (c(), y("mark", Mt, I(V.text), 1)) : (c(), y("span", Et, I(V.text), 1))
474
474
  ], 64))), 128))
475
475
  ])) : z("", !0)
476
476
  ]),
@@ -490,10 +490,10 @@ function Te(l, a) {
490
490
  if (l instanceof Date || a instanceof Date)
491
491
  return l instanceof Date && a instanceof Date && Object.is(l.getTime(), a.getTime());
492
492
  if (Array.isArray(l) || Array.isArray(a))
493
- return Array.isArray(l) && Array.isArray(a) && l.length === a.length && l.every((c, o) => Te(c, a[o]));
493
+ return Array.isArray(l) && Array.isArray(a) && l.length === a.length && l.every((i, o) => Te(i, a[o]));
494
494
  if (!Ae(l) || !Ae(a)) return !1;
495
495
  const t = Object.keys(l), e = Object.keys(a);
496
- return t.length === e.length && t.every((c) => Object.prototype.hasOwnProperty.call(a, c) && Te(l[c], a[c]));
496
+ return t.length === e.length && t.every((i) => Object.prototype.hasOwnProperty.call(a, i) && Te(l[i], a[i]));
497
497
  }
498
498
  function Ae(l) {
499
499
  if (l === null || typeof l != "object") return !1;
@@ -511,10 +511,10 @@ const It = /* @__PURE__ */ H({
511
511
  },
512
512
  setup(l, { expose: a }) {
513
513
  const t = fe(), e = l;
514
- function c(L) {
514
+ function i(L) {
515
515
  return Vt(e.configs, e.formData, L);
516
516
  }
517
- a({ hasChanges: c });
517
+ a({ hasChanges: i });
518
518
  const o = {
519
519
  input: ye,
520
520
  select: wt,
@@ -526,7 +526,7 @@ const It = /* @__PURE__ */ H({
526
526
  daterange: "date-picker",
527
527
  "date-range": "date-picker",
528
528
  dateRange: "date-picker"
529
- }, f = /* @__PURE__ */ new Set(["prop", "label", "itemType", "span", "options", "rules", "formItemProps", "showSlot", "show"]), n = Object.keys(o), u = /* @__PURE__ */ new Map(), g = m(() => e.configs.filter((L) => L.show !== !1)), b = (L) => {
529
+ }, f = /* @__PURE__ */ new Set(["prop", "label", "itemType", "span", "options", "rules", "formItemProps", "showSlot", "show"]), n = Object.keys(o), u = /* @__PURE__ */ new Map(), _ = m(() => e.configs.filter((L) => L.show !== !1)), b = (L) => {
530
530
  const { itemType: $ } = L;
531
531
  if (!$) return ye;
532
532
  if (typeof $ != "string") return $;
@@ -534,7 +534,7 @@ const It = /* @__PURE__ */ H({
534
534
  return n.includes(W) ? o[W] : (console.error(
535
535
  `[JtFormItems] 不支持的 itemType: "${$}",支持的类型: ${n.join(", ")}`
536
536
  ), ye);
537
- }, h = (L) => {
537
+ }, v = (L) => {
538
538
  const $ = Ee(L, f);
539
539
  return L.itemType === "select" || L.itemType === "remote-select" || L.itemType === "cascader" ? {
540
540
  ...$,
@@ -543,7 +543,7 @@ const It = /* @__PURE__ */ H({
543
543
  ...$,
544
544
  type: "daterange"
545
545
  } : $;
546
- }, T = (L) => Ve(L, f), S = (L) => ({
546
+ }, S = (L) => Ve(L, f), M = (L) => ({
547
547
  rules: L.rules,
548
548
  ...L.formItemProps
549
549
  }), p = (L, $) => {
@@ -558,15 +558,15 @@ const It = /* @__PURE__ */ H({
558
558
  u.delete(L);
559
559
  };
560
560
  }
561
- function C(L, $) {
561
+ function g(L, $) {
562
562
  Me(() => {
563
563
  u.get(L)?.validate($).catch(() => {
564
564
  });
565
565
  });
566
566
  }
567
- const v = (L) => Math.min(Math.max(Math.trunc(L || 4), 1), 24), E = m(() => v(e.gridColumns)), _ = (L) => Math.min(Math.max(Math.trunc(L || 1), 1), E.value), V = m(() => {
568
- const $ = g.value.reduce(
569
- (W, F) => W + _(e.span || F.span),
567
+ const h = (L) => Math.min(Math.max(Math.trunc(L || 4), 1), 24), E = m(() => h(e.gridColumns)), C = (L) => Math.min(Math.max(Math.trunc(L || 1), 1), E.value), V = m(() => {
568
+ const $ = _.value.reduce(
569
+ (W, F) => W + C(e.span || F.span),
570
570
  0
571
571
  ) % E.value;
572
572
  return $ === 0 ? {
@@ -575,18 +575,18 @@ const It = /* @__PURE__ */ H({
575
575
  gridColumn: `${$ + 1} / span ${E.value - $}`
576
576
  };
577
577
  }), B = (L) => ({
578
- gridColumn: `span ${_(e.span || L.span)}`
578
+ gridColumn: `span ${C(e.span || L.span)}`
579
579
  });
580
580
  function O(L) {
581
581
  return L === "daterange" || L === "date-range" || L === "dateRange";
582
582
  }
583
583
  return (L, $) => {
584
584
  const W = at;
585
- return i(), y("div", {
585
+ return c(), y("div", {
586
586
  class: "jt-form-items",
587
587
  style: oe({ "--jt-form-columns": E.value })
588
588
  }, [
589
- (i(!0), y(X, null, q(g.value, (F) => (i(), A(W, U({
589
+ (c(!0), y(X, null, q(_.value, (F) => (c(), A(W, U({
590
590
  key: F.prop,
591
591
  ref_for: !0,
592
592
  ref: d(F.prop),
@@ -594,16 +594,16 @@ const It = /* @__PURE__ */ H({
594
594
  style: B(F),
595
595
  label: F.label,
596
596
  prop: F.prop
597
- }, S(F)), ie({
597
+ }, M(F)), ie({
598
598
  default: j(() => [
599
- F.showSlot ? w(L.$slots, F.prop, { key: 0 }, void 0, !0) : (i(), A(Ze(b(F)), U({
599
+ F.showSlot ? w(L.$slots, F.prop, { key: 0 }, void 0, !0) : (c(), A(Ze(b(F)), U({
600
600
  key: 1,
601
601
  "model-value": L.formData[F.prop],
602
602
  ref_for: !0
603
- }, h(F), ge(T(F)), {
603
+ }, v(F), ge(S(F)), {
604
604
  "onUpdate:modelValue": (ee) => p(F.prop, ee),
605
- onChange: () => C(F.prop, "change"),
606
- onBlur: () => C(F.prop, "blur")
605
+ onChange: () => g(F.prop, "change"),
606
+ onBlur: () => g(F.prop, "blur")
607
607
  }), null, 16, ["model-value", "onUpdate:modelValue", "onChange", "onBlur"]))
608
608
  ]),
609
609
  _: 2
@@ -616,7 +616,7 @@ const It = /* @__PURE__ */ H({
616
616
  key: "0"
617
617
  } : void 0
618
618
  ]), 1040, ["style", "label", "prop"]))), 128)),
619
- L.$slots.actions ? (i(), A(W, {
619
+ L.$slots.actions ? (c(), A(W, {
620
620
  key: 0,
621
621
  class: "jt-form-items__actions",
622
622
  style: oe(V.value)
@@ -654,46 +654,46 @@ const zt = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
654
654
  },
655
655
  emits: ["update:modelValue", "search", "reset"],
656
656
  setup(l, { expose: a, emit: t }) {
657
- const e = l, c = t, o = R(), r = fe(), f = R({}), { searchDisabled: n, searchLoading: u, searchDone: g } = Dt(), b = R({}), h = R({}), T = /* @__PURE__ */ new Map(), S = m(() => e.option), p = R(S.value.searchCollapsed ?? !0), d = m(
657
+ const e = l, i = t, o = R(), r = fe(), f = R({}), { searchDisabled: n, searchLoading: u, searchDone: _ } = Dt(), b = R({}), v = R({}), S = /* @__PURE__ */ new Map(), M = m(() => e.option), p = R(M.value.searchCollapsed ?? !0), d = m(
658
658
  () => e.columns.filter((s) => s.search === !0)
659
- ), C = m(
660
- () => Math.max(1, S.value.searchSpan ?? 4)
661
- ), v = m(
662
- () => Math.max(1, S.value.searchCollapsedRows ?? 1)
663
- ), E = m(() => C.value), _ = m(
664
- () => Math.max(1, E.value * v.value)
665
- ), V = m(() => C.value), B = m(
659
+ ), g = m(
660
+ () => Math.max(1, M.value.searchSpan ?? 4)
661
+ ), h = m(
662
+ () => Math.max(1, M.value.searchCollapsedRows ?? 1)
663
+ ), E = m(() => g.value), C = m(
664
+ () => Math.max(1, E.value * h.value)
665
+ ), V = m(() => g.value), B = m(
666
666
  () => ee.value ? "264px" : "174px"
667
667
  ), O = m(
668
- () => Xe(S.value.searchLabelWidth ?? 84)
668
+ () => Xe(M.value.searchLabelWidth ?? 84)
669
669
  ), L = m(
670
- () => S.value.searchLabelPosition ?? "top"
670
+ () => M.value.searchLabelPosition ?? "top"
671
671
  ), $ = m(
672
- () => Pe(S.value.searchGutter, 16)
672
+ () => Pe(M.value.searchGutter, 16)
673
673
  ), W = m(
674
- () => Pe(S.value.searchRowGap, 10)
674
+ () => Pe(M.value.searchRowGap, 10)
675
675
  ), F = m(
676
- () => Ye(S.value.searchPadding ?? "0 12px")
677
- ), ee = m(() => S.value.searchCollapse === !1 ? !1 : Se(d.value) > _.value), ne = m(() => {
676
+ () => Ye(M.value.searchPadding ?? "0 12px")
677
+ ), ee = m(() => M.value.searchCollapse === !1 ? !1 : Se(d.value) > C.value), ne = m(() => {
678
678
  if (!ee.value || !p.value) return d.value;
679
679
  let s = 0;
680
- return d.value.filter((M) => {
681
- const J = Be(M);
682
- return s + J > _.value ? !1 : (s += J, !0);
680
+ return d.value.filter((T) => {
681
+ const J = Be(T);
682
+ return s + J > C.value ? !1 : (s += J, !0);
683
683
  });
684
684
  }), k = m(
685
685
  () => ne.value.filter((s) => !!r[`${s.prop}-search`])
686
686
  ), K = m(() => {
687
687
  const s = Se(ne.value);
688
- return ne.value.length > 0 && ne.value.length <= 2 && s < C.value;
688
+ return ne.value.length > 0 && ne.value.length <= 2 && s < g.value;
689
689
  }), Q = m(() => {
690
690
  const s = Se(ne.value);
691
- return `${Math.min(C.value, s + 1)}`;
691
+ return `${Math.min(g.value, s + 1)}`;
692
692
  }), te = m(
693
693
  () => ne.value.map((s) => Ce(s))
694
694
  );
695
695
  pe(
696
- () => S.value.searchCollapsed,
696
+ () => M.value.searchCollapsed,
697
697
  (s) => {
698
698
  typeof s == "boolean" && (p.value = s);
699
699
  }
@@ -704,15 +704,15 @@ const zt = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
704
704
  },
705
705
  { deep: !0, immediate: !0 }
706
706
  );
707
- function ce(s, M) {
707
+ function ce(s, T) {
708
708
  if (n.value) return;
709
- const J = { ...f.value, [s]: M };
710
- f.value = J, c("update:modelValue", J);
709
+ const J = { ...f.value, [s]: T };
710
+ f.value = J, i("update:modelValue", J);
711
711
  }
712
712
  function Ce(s) {
713
- const M = s.searchProps ?? {}, J = s.searchType ?? "input", G = se(s, M);
713
+ const T = s.searchProps ?? {}, J = s.searchType ?? "input", G = se(s, T);
714
714
  return {
715
- ...M,
715
+ ...T,
716
716
  ...G,
717
717
  prop: s.prop,
718
718
  label: s.searchLabel ?? s.label,
@@ -720,11 +720,11 @@ const zt = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
720
720
  itemType: J,
721
721
  // 外部提供 `${prop}-search` 时交给插槽渲染,保持旧版 JtFilterBar 的自定义能力。
722
722
  showSlot: !!r[`${s.prop}-search`],
723
- options: Le(s, M),
724
- placeholder: M.placeholder ?? s.searchPlaceholder,
725
- valueFormat: M.valueFormat ?? s.searchValueFormat,
726
- disabled: n.value || M.disabled === !0,
727
- loading: xe(s, M),
723
+ options: Le(s, T),
724
+ placeholder: T.placeholder ?? s.searchPlaceholder,
725
+ valueFormat: T.valueFormat ?? s.searchValueFormat,
726
+ disabled: n.value || T.disabled === !0,
727
+ loading: xe(s, T),
728
728
  preservePlaceholderWhenDisabled: n.value,
729
729
  formItemProps: {
730
730
  required: s.searchRequired,
@@ -732,37 +732,37 @@ const zt = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
732
732
  },
733
733
  // 保留原来输入框回车触发查询的行为,同时不吞掉使用方在 searchProps 中传入的 onEnter。
734
734
  onEnter: (...he) => {
735
- ke(M.onEnter, ...he), we();
735
+ ke(T.onEnter, ...he), we();
736
736
  },
737
737
  // JtFormItems 内部会修改 filterModel,这里继续按旧接口向外 emit update:modelValue。
738
738
  "onUpdate:modelValue": (he) => {
739
- ke(M["onUpdate:modelValue"], he), ce(s.prop, he);
739
+ ke(T["onUpdate:modelValue"], he), ce(s.prop, he);
740
740
  }
741
741
  };
742
742
  }
743
- function se(s, M) {
743
+ function se(s, T) {
744
744
  if (s.searchType !== "remote-select") return {};
745
- const J = s.searchRemoteMethod ? (G) => _e(s, G) : M.remoteMethod;
745
+ const J = s.searchRemoteMethod ? (G) => _e(s, G) : T.remoteMethod;
746
746
  return {
747
747
  // remote-select 明确进入 Element Plus 远程搜索模式,避免调用方重复配置 remote。
748
- remote: M.remote ?? !!J,
749
- filterable: M.filterable ?? !0,
748
+ remote: T.remote ?? !!J,
749
+ filterable: T.filterable ?? !0,
750
750
  remoteMethod: J
751
751
  };
752
752
  }
753
- function Le(s, M) {
754
- return s.searchType === "remote-select" && Object.prototype.hasOwnProperty.call(b.value, s.prop) ? b.value[s.prop] : M.options ?? s.searchOptions ?? s.dicData;
753
+ function Le(s, T) {
754
+ return s.searchType === "remote-select" && Object.prototype.hasOwnProperty.call(b.value, s.prop) ? b.value[s.prop] : T.options ?? s.searchOptions ?? s.dicData;
755
755
  }
756
- function xe(s, M) {
757
- return s.searchLoading !== void 0 ? s.searchLoading : M.loading !== void 0 ? M.loading : s.searchType === "remote-select" && s.searchRemoteMethod ? h.value[s.prop] === !0 : M.loading;
756
+ function xe(s, T) {
757
+ return s.searchLoading !== void 0 ? s.searchLoading : T.loading !== void 0 ? T.loading : s.searchType === "remote-select" && s.searchRemoteMethod ? v.value[s.prop] === !0 : T.loading;
758
758
  }
759
- async function _e(s, M) {
759
+ async function _e(s, T) {
760
760
  if (!s.searchRemoteMethod) return;
761
- const J = (T.get(s.prop) ?? 0) + 1;
762
- T.set(s.prop, J), s.searchLoading === void 0 && (h.value = { ...h.value, [s.prop]: !0 });
761
+ const J = (S.get(s.prop) ?? 0) + 1;
762
+ S.set(s.prop, J), s.searchLoading === void 0 && (v.value = { ...v.value, [s.prop]: !0 });
763
763
  try {
764
- const G = await s.searchRemoteMethod(M, s);
765
- if (T.get(s.prop) !== J || G === void 0) return;
764
+ const G = await s.searchRemoteMethod(T, s);
765
+ if (S.get(s.prop) !== J || G === void 0) return;
766
766
  if (!be(G)) {
767
767
  console.warn(
768
768
  `[JtFilterBar] ${s.prop} 的 searchRemoteMethod 应返回 JtDicItem[] 或 void,请在业务方法内把接口响应映射为 { label, value } 选项。`
@@ -773,7 +773,7 @@ const zt = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
773
773
  } catch (G) {
774
774
  console.error("[JtFilterBar] searchRemoteMethod 执行失败", G);
775
775
  } finally {
776
- T.get(s.prop) === J && s.searchLoading === void 0 && (h.value = { ...h.value, [s.prop]: !1 });
776
+ S.get(s.prop) === J && s.searchLoading === void 0 && (v.value = { ...v.value, [s.prop]: !1 });
777
777
  }
778
778
  }
779
779
  function be(s) {
@@ -781,15 +781,15 @@ const zt = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
781
781
  }
782
782
  function Qe(s) {
783
783
  if (!s || typeof s != "object") return !1;
784
- const M = s, J = typeof M.value, G = M.children;
785
- return typeof M.label == "string" && (J === "string" || J === "number" || J === "boolean") && (M.disabled === void 0 || typeof M.disabled == "boolean") && (G === void 0 || be(G));
784
+ const T = s, J = typeof T.value, G = T.children;
785
+ return typeof T.label == "string" && (J === "string" || J === "number" || J === "boolean") && (T.disabled === void 0 || typeof T.disabled == "boolean") && (G === void 0 || be(G));
786
786
  }
787
- function ke(s, ...M) {
787
+ function ke(s, ...T) {
788
788
  if (Array.isArray(s)) {
789
- s.forEach((J) => ke(J, ...M));
789
+ s.forEach((J) => ke(J, ...T));
790
790
  return;
791
791
  }
792
- typeof s == "function" && s(...M);
792
+ typeof s == "function" && s(...T);
793
793
  }
794
794
  async function we() {
795
795
  if (!n.value) {
@@ -799,26 +799,26 @@ const zt = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
799
799
  } catch {
800
800
  return;
801
801
  }
802
- c("search");
802
+ i("search");
803
803
  }
804
804
  }
805
805
  function je() {
806
- n.value || c("reset");
806
+ n.value || i("reset");
807
807
  }
808
808
  function Ie() {
809
809
  p.value = !p.value;
810
810
  }
811
811
  function Be(s) {
812
- return Math.min(C.value, Math.max(1, s.searchSpan ?? 1));
812
+ return Math.min(g.value, Math.max(1, s.searchSpan ?? 1));
813
813
  }
814
814
  function Se(s) {
815
- return s.reduce((M, J) => M + Be(J), 0);
815
+ return s.reduce((T, J) => T + Be(J), 0);
816
816
  }
817
817
  function Xe(s) {
818
818
  return typeof s == "number" ? `${s}px` : s;
819
819
  }
820
- function Pe(s, M) {
821
- return typeof s == "number" ? s : M;
820
+ function Pe(s, T) {
821
+ return typeof s == "number" ? s : T;
822
822
  }
823
823
  function Ye(s) {
824
824
  return typeof s == "number" ? `${s}px` : s;
@@ -831,16 +831,16 @@ const zt = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
831
831
  /** 开启筛选表单禁用。 */
832
832
  searchLoading: u,
833
833
  /** 关闭筛选表单禁用。 */
834
- searchDone: g
835
- }), (s, M) => {
834
+ searchDone: _
835
+ }), (s, T) => {
836
836
  const J = ot;
837
- return i(), y("div", {
837
+ return c(), y("div", {
838
838
  class: Y(["jt-filter-bar", [
839
839
  `is-label-${L.value}`,
840
840
  { "is-single-filter": K.value }
841
841
  ]]),
842
842
  style: oe({
843
- "--jt-filter-columns": C.value,
843
+ "--jt-filter-columns": g.value,
844
844
  "--jt-filter-field-columns": V.value,
845
845
  "--jt-filter-btns-width": B.value,
846
846
  "--jt-filter-actions-start": Q.value,
@@ -858,7 +858,7 @@ const zt = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
858
858
  "label-position": L.value,
859
859
  "label-width": O.value,
860
860
  disabled: P(n),
861
- onSubmit: M[0] || (M[0] = re(() => {
861
+ onSubmit: T[0] || (T[0] = re(() => {
862
862
  }, ["prevent"]))
863
863
  }, {
864
864
  default: j(() => [
@@ -876,7 +876,7 @@ const zt = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
876
876
  collapsed: p.value,
877
877
  toggleCollapse: Ie
878
878
  }, () => [
879
- ee.value ? (i(), A(P(ae), {
879
+ ee.value ? (c(), A(P(ae), {
880
880
  key: 0,
881
881
  class: "jt-filter-bar__btn-collapse",
882
882
  border: "",
@@ -907,7 +907,7 @@ const zt = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
907
907
  }, null, 8, At)
908
908
  ]),
909
909
  default: j(() => [
910
- x("span", null, I(S.value.resetBtnText ?? P(D)("common.重置")), 1)
910
+ x("span", null, I(M.value.resetBtnText ?? P(D)("common.重置")), 1)
911
911
  ]),
912
912
  _: 1
913
913
  }, 8, ["disabled"]),
@@ -924,7 +924,7 @@ const zt = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
924
924
  }, null, 8, Ft)
925
925
  ]),
926
926
  default: j(() => [
927
- x("span", null, I(S.value.searchBtnText ?? P(D)("common.查询")), 1)
927
+ x("span", null, I(M.value.searchBtnText ?? P(D)("common.查询")), 1)
928
928
  ]),
929
929
  _: 1
930
930
  }, 8, ["disabled"])
@@ -967,7 +967,7 @@ const zt = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
967
967
  const a = l, t = m(() => ({
968
968
  "--jt-empty-state-image-size": typeof a.imageSize == "number" ? `${a.imageSize}px` : a.imageSize
969
969
  }));
970
- return (e, c) => (i(), y("section", {
970
+ return (e, i) => (c(), y("section", {
971
971
  class: "jt-empty-state",
972
972
  role: "status",
973
973
  "aria-label": e.description,
@@ -986,7 +986,7 @@ const zt = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
986
986
  w(e.$slots, "default", {}, () => [
987
987
  x("p", Gt, I(e.description), 1)
988
988
  ], !0),
989
- e.$slots.actions ? (i(), y("div", Nt, [
989
+ e.$slots.actions ? (c(), y("div", Nt, [
990
990
  w(e.$slots, "actions", {}, void 0, !0)
991
991
  ])) : z("", !0)
992
992
  ], 12, Ut));
@@ -1001,13 +1001,13 @@ const zt = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
1001
1001
  tableEvents: {}
1002
1002
  },
1003
1003
  setup(l, { expose: a }) {
1004
- const t = l, e = fe(), c = R(), o = m(() => t.option ?? {}), r = m(
1004
+ const t = l, e = fe(), i = R(), o = m(() => t.option ?? {}), r = m(
1005
1005
  () => o.value.emptyText ?? D("common.暂无数据")
1006
1006
  ), f = m(() => t.columns.filter((d) => !d.hide)), n = m(() => o.value.menuFixed ?? "right");
1007
1007
  function u(d) {
1008
1008
  return !!e[`${d}-header`];
1009
1009
  }
1010
- function g(d) {
1010
+ function _(d) {
1011
1011
  return !!e[`${d}-data`];
1012
1012
  }
1013
1013
  function b(d) {
@@ -1017,27 +1017,27 @@ const zt = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
1017
1017
  align: d.align || "center",
1018
1018
  fixed: d.fixed,
1019
1019
  sortable: d.sortable,
1020
- showOverflowTooltip: d.showOverflowTooltip ?? h(d),
1020
+ showOverflowTooltip: d.showOverflowTooltip ?? v(d),
1021
1021
  ...d.columnOptions
1022
1022
  };
1023
1023
  }
1024
- function h(d) {
1025
- return !g(d.prop) && !S(d.columnOptions?.type);
1026
- }
1027
- function T(d) {
1028
- return !S(d.columnOptions?.type);
1024
+ function v(d) {
1025
+ return !_(d.prop) && !M(d.columnOptions?.type);
1029
1026
  }
1030
1027
  function S(d) {
1028
+ return !M(d.columnOptions?.type);
1029
+ }
1030
+ function M(d) {
1031
1031
  return d === "selection" || d === "index" || d === "expand";
1032
1032
  }
1033
- function p(d, C) {
1034
- return d.find((v) => v.value === C)?.label ?? String(C ?? "");
1033
+ function p(d, g) {
1034
+ return d.find((h) => h.value === g)?.label ?? String(g ?? "");
1035
1035
  }
1036
- return a({ tableRef: c }), (d, C) => {
1037
- const v = nt, E = lt;
1038
- return i(), A(E, U({
1036
+ return a({ tableRef: i }), (d, g) => {
1037
+ const h = nt, E = lt;
1038
+ return c(), A(E, U({
1039
1039
  ref_key: "tableRef",
1040
- ref: c,
1040
+ ref: i,
1041
1041
  data: d.data,
1042
1042
  "row-key": o.value.rowKey ?? "id",
1043
1043
  "empty-text": o.value.emptyText,
@@ -1050,50 +1050,50 @@ const zt = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
1050
1050
  ], !0)
1051
1051
  ]),
1052
1052
  default: j(() => [
1053
- o.value.selection ? (i(), A(v, {
1053
+ o.value.selection ? (c(), A(h, {
1054
1054
  key: 0,
1055
1055
  type: "selection",
1056
1056
  width: "55",
1057
1057
  align: "center"
1058
1058
  })) : z("", !0),
1059
- o.value.index ? (i(), A(v, {
1059
+ o.value.index ? (c(), A(h, {
1060
1060
  key: 1,
1061
1061
  type: "index",
1062
1062
  label: o.value.indexLabel ?? P(D)("common.序号"),
1063
1063
  "min-width": o.value.indexWidth ?? 80,
1064
1064
  align: "center"
1065
1065
  }, null, 8, ["label", "min-width"])) : z("", !0),
1066
- (i(!0), y(X, null, q(f.value, (_) => (i(), A(v, U({
1067
- key: _.prop,
1068
- prop: _.prop,
1069
- label: _.label,
1070
- formatter: !g(_.prop) && !_.dicData ? _.formatter : void 0,
1066
+ (c(!0), y(X, null, q(f.value, (C) => (c(), A(h, U({
1067
+ key: C.prop,
1068
+ prop: C.prop,
1069
+ label: C.label,
1070
+ formatter: !_(C.prop) && !C.dicData ? C.formatter : void 0,
1071
1071
  ref_for: !0
1072
- }, b(_)), ie({ _: 2 }, [
1073
- u(_.prop) ? {
1072
+ }, b(C)), ie({ _: 2 }, [
1073
+ u(C.prop) ? {
1074
1074
  name: "header",
1075
1075
  fn: j((V) => [
1076
- w(d.$slots, `${_.prop}-header`, U({ ref_for: !0 }, V), void 0, !0)
1076
+ w(d.$slots, `${C.prop}-header`, U({ ref_for: !0 }, V), void 0, !0)
1077
1077
  ]),
1078
1078
  key: "0"
1079
1079
  } : void 0,
1080
- T(_) ? {
1080
+ S(C) ? {
1081
1081
  name: "default",
1082
1082
  fn: j((V) => [
1083
- g(_.prop) ? w(d.$slots, `${_.prop}-data`, U({
1083
+ _(C.prop) ? w(d.$slots, `${C.prop}-data`, U({
1084
1084
  key: 0,
1085
1085
  ref_for: !0
1086
- }, V), void 0, !0) : _.dicData ? (i(), y("span", Xt, I(p(_.dicData, V.row[_.prop])), 1)) : _.formatter ? (i(), y("span", Yt, I(_.formatter(
1086
+ }, V), void 0, !0) : C.dicData ? (c(), y("span", Xt, I(p(C.dicData, V.row[C.prop])), 1)) : C.formatter ? (c(), y("span", Yt, I(C.formatter(
1087
1087
  V.row,
1088
1088
  V.column,
1089
- V.row[_.prop],
1089
+ V.row[C.prop],
1090
1090
  V.$index
1091
- )), 1)) : (i(), y("span", e2, I(V.row[_.prop]), 1))
1091
+ )), 1)) : (c(), y("span", e2, I(V.row[C.prop]), 1))
1092
1092
  ]),
1093
1093
  key: "1"
1094
1094
  } : void 0
1095
1095
  ]), 1040, ["prop", "label", "formatter"]))), 128)),
1096
- o.value.menu ? (i(), A(v, {
1096
+ o.value.menu ? (c(), A(h, {
1097
1097
  key: 2,
1098
1098
  label: o.value.menuLabel ?? P(D)("common.操作"),
1099
1099
  width: o.value.menuWidth,
@@ -1101,8 +1101,8 @@ const zt = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
1101
1101
  align: o.value.menuAlign ?? "center",
1102
1102
  fixed: n.value
1103
1103
  }, {
1104
- default: j((_) => [
1105
- w(d.$slots, "menu", de(ue(_)), void 0, !0)
1104
+ default: j((C) => [
1105
+ w(d.$slots, "menu", de(ue(C)), void 0, !0)
1106
1106
  ]),
1107
1107
  _: 3
1108
1108
  }, 8, ["label", "width", "min-width", "align", "fixed"])) : z("", !0)
@@ -1122,13 +1122,13 @@ const zt = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
1122
1122
  },
1123
1123
  emits: ["update:currentPage", "update:pageSize", "current-change", "page-change", "size-change"],
1124
1124
  setup(l, { emit: a }) {
1125
- const t = l, e = m(() => t.option ?? {}), c = a;
1125
+ const t = l, e = m(() => t.option ?? {}), i = a;
1126
1126
  function o(r) {
1127
- c("current-change", r), c("page-change", r);
1127
+ i("current-change", r), i("page-change", r);
1128
1128
  }
1129
1129
  return (r, f) => {
1130
1130
  const n = st;
1131
- return i(), y("div", o2, [
1131
+ return c(), y("div", o2, [
1132
1132
  N(n, {
1133
1133
  "current-page": r.currentPage,
1134
1134
  "page-size": r.pageSize,
@@ -1168,59 +1168,59 @@ const zt = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
1168
1168
  }),
1169
1169
  emits: /* @__PURE__ */ me(["search", "reset", "page-change", "size-change"], ["update:currentPage", "update:pageSize", "update:searchModel"]),
1170
1170
  setup(l, { expose: a, emit: t }) {
1171
- const e = l, c = t, o = ve(l, "currentPage"), r = ve(l, "pageSize"), f = ve(l, "searchModel"), n = fe(), u = R(), g = R(), b = m(() => e.option), h = m(() => b.value.searchShow !== !1), T = m(
1171
+ const e = l, i = t, o = ve(l, "currentPage"), r = ve(l, "pageSize"), f = ve(l, "searchModel"), n = fe(), u = R(), _ = R(), b = m(() => e.option), v = m(() => b.value.searchShow !== !1), S = m(
1172
1172
  () => b.value.paginationShow !== !1
1173
- ), S = m(
1173
+ ), M = m(
1174
1174
  () => e.columns.filter((B) => B.search && !!n[`${B.prop}-search`])
1175
1175
  ), p = m(
1176
1176
  () => e.columns.filter((B) => !B.hide && !!n[`${B.prop}-header`])
1177
1177
  ), d = m(
1178
1178
  () => e.columns.filter((B) => !B.hide && !!n[`${B.prop}-data`])
1179
1179
  );
1180
- function C() {
1180
+ function g() {
1181
1181
  const B = {};
1182
1182
  return e.columns.forEach((O) => {
1183
1183
  O.search && (B[O.prop] = void 0);
1184
1184
  }), B;
1185
1185
  }
1186
- function v() {
1187
- c("search", { ...f.value });
1186
+ function h() {
1187
+ i("search", { ...f.value });
1188
1188
  }
1189
1189
  function E() {
1190
- f.value = C(), c("reset");
1190
+ f.value = g(), i("reset");
1191
1191
  }
1192
- function _() {
1193
- g.value?.searchLoading();
1192
+ function C() {
1193
+ _.value?.searchLoading();
1194
1194
  }
1195
1195
  function V() {
1196
- g.value?.searchDone();
1196
+ _.value?.searchDone();
1197
1197
  }
1198
1198
  return a({
1199
1199
  /** 获取内部 el-table 实例 */
1200
1200
  tableRef: m(() => u.value?.tableRef),
1201
1201
  /** 获取内部筛选条实例 */
1202
- filterBarRef: g,
1202
+ filterBarRef: _,
1203
1203
  /** 开启筛选表单禁用。 */
1204
- searchLoading: _,
1204
+ searchLoading: C,
1205
1205
  /** 关闭筛选表单禁用。 */
1206
1206
  searchDone: V
1207
1207
  }), (B, O) => {
1208
1208
  const L = rt;
1209
- return i(), y("div", r2, [
1209
+ return c(), y("div", r2, [
1210
1210
  w(B.$slots, "header", {}, void 0, !0),
1211
1211
  x("div", i2, [
1212
- h.value ? (i(), A(Kt, {
1212
+ v.value ? (c(), A(Kt, {
1213
1213
  key: 0,
1214
1214
  ref_key: "filterBarRef",
1215
- ref: g,
1215
+ ref: _,
1216
1216
  modelValue: f.value,
1217
1217
  "onUpdate:modelValue": O[0] || (O[0] = ($) => f.value = $),
1218
1218
  columns: B.columns,
1219
1219
  option: b.value,
1220
- onSearch: v,
1220
+ onSearch: h,
1221
1221
  onReset: E
1222
1222
  }, ie({ _: 2 }, [
1223
- q(S.value, ($) => ({
1223
+ q(M.value, ($) => ({
1224
1224
  name: `${$.prop}-search`,
1225
1225
  fn: j((W) => [
1226
1226
  w(B.$slots, `${$.prop}-search`, de(ue(W)), void 0, !0)
@@ -1230,10 +1230,10 @@ const zt = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
1230
1230
  ]),
1231
1231
  x("div", c2, [
1232
1232
  x("div", d2, [
1233
- P(n).toolbar ? (i(), y("div", u2, [
1233
+ P(n).toolbar ? (c(), y("div", u2, [
1234
1234
  w(B.$slots, "toolbar", {}, void 0, !0)
1235
1235
  ])) : z("", !0),
1236
- Ke((i(), A(a2, {
1236
+ Ke((c(), A(a2, {
1237
1237
  ref_key: "jtTableRef",
1238
1238
  ref: u,
1239
1239
  data: B.data,
@@ -1271,7 +1271,7 @@ const zt = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
1271
1271
  [L, b.value.loading]
1272
1272
  ])
1273
1273
  ]),
1274
- T.value ? (i(), A(s2, {
1274
+ S.value ? (c(), A(s2, {
1275
1275
  key: 0,
1276
1276
  "current-page": o.value,
1277
1277
  "onUpdate:currentPage": O[1] || (O[1] = ($) => o.value = $),
@@ -1298,7 +1298,7 @@ const zt = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
1298
1298
  "--svg-icon-source": `url("${a.src}")`,
1299
1299
  "--svg-icon-size": typeof a.size == "number" ? `${a.size}px` : a.size
1300
1300
  }));
1301
- return (e, c) => (i(), y("span", {
1301
+ return (e, i) => (c(), y("span", {
1302
1302
  class: "svg-icon",
1303
1303
  style: oe(t.value),
1304
1304
  "aria-hidden": "true"
@@ -1314,40 +1314,40 @@ const zt = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
1314
1314
  },
1315
1315
  emits: ["select"],
1316
1316
  setup(l, { emit: a }) {
1317
- const t = l, e = a, c = m(
1317
+ const t = l, e = a, i = m(
1318
1318
  () => t.items.filter((r) => r.hidden !== !0)
1319
1319
  );
1320
1320
  function o(r) {
1321
1321
  r.hidden || r.disabled || e("select", r.key, r);
1322
1322
  }
1323
1323
  return (r, f) => {
1324
- const n = ut, u = dt, g = ct, b = it;
1325
- return i(), A(b, {
1324
+ const n = ut, u = dt, _ = ct, b = it;
1325
+ return c(), A(b, {
1326
1326
  trigger: "click",
1327
1327
  "show-arrow": !1,
1328
1328
  placement: "bottom-end",
1329
1329
  "popper-class": "jt-action-menu__popper",
1330
- disabled: t.disabled || c.value.length === 0,
1330
+ disabled: t.disabled || i.value.length === 0,
1331
1331
  onCommand: o
1332
1332
  }, {
1333
1333
  dropdown: j(() => [
1334
- N(g, { "show-arrow": !1 }, {
1334
+ N(_, { "show-arrow": !1 }, {
1335
1335
  default: j(() => [
1336
- (i(!0), y(X, null, q(c.value, (h) => (i(), A(u, {
1337
- key: h.key,
1338
- class: Y(["jt-action-menu__item", { "is-danger": h.danger }]),
1339
- command: h,
1340
- disabled: h.disabled
1336
+ (c(!0), y(X, null, q(i.value, (v) => (c(), A(u, {
1337
+ key: v.key,
1338
+ class: Y(["jt-action-menu__item", { "is-danger": v.danger }]),
1339
+ command: v,
1340
+ disabled: v.disabled
1341
1341
  }, {
1342
1342
  default: j(() => [
1343
- w(r.$slots, "item", { item: h }, () => [
1344
- h.icon ? (i(), A(n, { key: 0 }, {
1343
+ w(r.$slots, "item", { item: v }, () => [
1344
+ v.icon ? (c(), A(n, { key: 0 }, {
1345
1345
  default: j(() => [
1346
- (i(), A(Ze(h.icon)))
1346
+ (c(), A(Ze(v.icon)))
1347
1347
  ]),
1348
1348
  _: 2
1349
1349
  }, 1024)) : z("", !0),
1350
- x("span", null, I(h.label), 1)
1350
+ x("span", null, I(v.label), 1)
1351
1351
  ], !0)
1352
1352
  ]),
1353
1353
  _: 2
@@ -1357,7 +1357,7 @@ const zt = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
1357
1357
  })
1358
1358
  ]),
1359
1359
  default: j(() => [
1360
- w(r.$slots, "trigger", { items: c.value }, () => [
1360
+ w(r.$slots, "trigger", { items: i.value }, () => [
1361
1361
  x("button", {
1362
1362
  class: "jt-action-menu__trigger",
1363
1363
  type: "button",
@@ -1416,22 +1416,22 @@ const x2 = ["aria-label"], k2 = ["src"], j2 = /* @__PURE__ */ H({
1416
1416
  word: w2,
1417
1417
  archive: g2,
1418
1418
  image: _2
1419
- }, e = m(() => L2(a.name, a.type)), c = m(
1419
+ }, e = m(() => L2(a.name, a.type)), i = m(
1420
1420
  () => e.value ? t[e.value] : void 0
1421
1421
  ), o = m(
1422
1422
  () => a.name ? D("common.{name}文件图标", "{name} 文件图标", { name: a.name }) : D("common.文件图标", "文件图标")
1423
1423
  ), r = m(() => ({
1424
1424
  "--jt-file-icon-size": typeof a.size == "number" ? `${a.size}px` : a.size
1425
1425
  }));
1426
- return (f, n) => (i(), y("span", {
1426
+ return (f, n) => (c(), y("span", {
1427
1427
  class: "jt-file-icon",
1428
1428
  role: "img",
1429
1429
  "aria-label": o.value,
1430
1430
  style: oe(r.value)
1431
1431
  }, [
1432
- c.value ? (i(), y("img", {
1432
+ i.value ? (c(), y("img", {
1433
1433
  key: 0,
1434
- src: c.value,
1434
+ src: i.value,
1435
1435
  alt: "",
1436
1436
  "aria-hidden": "true"
1437
1437
  }, null, 8, k2)) : w(f.$slots, a.name, {
@@ -1462,7 +1462,7 @@ const x2 = ["aria-label"], k2 = ["src"], j2 = /* @__PURE__ */ H({
1462
1462
  emits: ["preview", "download", "remove"],
1463
1463
  setup(l, { emit: a }) {
1464
1464
  const t = l, e = a;
1465
- function c(f) {
1465
+ function i(f) {
1466
1466
  e("preview", f);
1467
1467
  }
1468
1468
  function o(f) {
@@ -1471,8 +1471,8 @@ const x2 = ["aria-label"], k2 = ["src"], j2 = /* @__PURE__ */ H({
1471
1471
  function r(f) {
1472
1472
  e("remove", f);
1473
1473
  }
1474
- return (f, n) => t.files.length ? (i(), y("ul", S2, [
1475
- (i(!0), y(X, null, q(t.files, (u) => (i(), y("li", {
1474
+ return (f, n) => t.files.length ? (c(), y("ul", S2, [
1475
+ (c(!0), y(X, null, q(t.files, (u) => (c(), y("li", {
1476
1476
  key: u.id,
1477
1477
  class: "jt-attachment-list__item"
1478
1478
  }, [
@@ -1486,19 +1486,19 @@ const x2 = ["aria-label"], k2 = ["src"], j2 = /* @__PURE__ */ H({
1486
1486
  class: Y(["jt-attachment-list__name", { "is-disabled": u.disabled }]),
1487
1487
  title: u.name
1488
1488
  }, I(u.name), 11, M2),
1489
- u.description ? (i(), y("span", E2, I(u.description), 1)) : z("", !0)
1489
+ u.description ? (c(), y("span", E2, I(u.description), 1)) : z("", !0)
1490
1490
  ])
1491
1491
  ], !0),
1492
- f.$slots.actions ? (i(), y("span", V2, [
1492
+ f.$slots.actions ? (c(), y("span", V2, [
1493
1493
  w(f.$slots, "actions", {
1494
1494
  file: u,
1495
- preview: () => c(u),
1495
+ preview: () => i(u),
1496
1496
  download: () => o(u),
1497
1497
  remove: () => r(u)
1498
1498
  }, void 0, !0)
1499
1499
  ])) : z("", !0)
1500
1500
  ]))), 128))
1501
- ])) : (i(), y("div", I2, [
1501
+ ])) : (c(), y("div", I2, [
1502
1502
  w(f.$slots, "empty", {}, () => [
1503
1503
  le(I(t.emptyText), 1)
1504
1504
  ], !0)
@@ -1517,14 +1517,14 @@ const x2 = ["aria-label"], k2 = ["src"], j2 = /* @__PURE__ */ H({
1517
1517
  title: {}
1518
1518
  },
1519
1519
  setup(l) {
1520
- const a = l, t = fe(), e = m(() => !!(a.title || t.title)), c = m(() => !!(t.content || t.default));
1521
- return (o, r) => (i(), y("div", U({ class: "jt-card" }, o.$attrs), [
1522
- e.value ? (i(), y("div", D2, [
1520
+ const a = l, t = fe(), e = m(() => !!(a.title || t.title)), i = m(() => !!(t.content || t.default));
1521
+ return (o, r) => (c(), y("div", U({ class: "jt-card" }, o.$attrs), [
1522
+ e.value ? (c(), y("div", D2, [
1523
1523
  w(o.$slots, "title", {}, () => [
1524
1524
  x("span", null, I(o.title), 1)
1525
1525
  ], !0)
1526
1526
  ])) : z("", !0),
1527
- c.value ? (i(), y("div", z2, [
1527
+ i.value ? (c(), y("div", z2, [
1528
1528
  w(o.$slots, "content", {}, () => [
1529
1529
  w(o.$slots, "default", {}, void 0, !0)
1530
1530
  ], !0)
@@ -1544,50 +1544,50 @@ const x2 = ["aria-label"], k2 = ["src"], j2 = /* @__PURE__ */ H({
1544
1544
  },
1545
1545
  emits: ["update:modelValue", "change"],
1546
1546
  setup(l, { emit: a }) {
1547
- const t = l, e = a, c = R(), o = m(
1548
- () => t.options.flatMap((u, g) => u.disabled ? [] : [g])
1547
+ const t = l, e = a, i = R(), o = m(
1548
+ () => t.options.flatMap((u, _) => u.disabled ? [] : [_])
1549
1549
  );
1550
1550
  function r(u) {
1551
1551
  u.disabled || u.value === t.modelValue || (e("update:modelValue", u.value), e("change", u.value, u));
1552
1552
  }
1553
- function f(u, g) {
1554
- return u.disabled ? -1 : u.value === t.modelValue || t.modelValue === void 0 && g === o.value[0] ? 0 : -1;
1553
+ function f(u, _) {
1554
+ return u.disabled ? -1 : u.value === t.modelValue || t.modelValue === void 0 && _ === o.value[0] ? 0 : -1;
1555
1555
  }
1556
- function n(u, g, b) {
1556
+ function n(u, _, b) {
1557
1557
  if (u.key === "Enter" || u.key === " ") {
1558
- u.preventDefault(), r(g);
1558
+ u.preventDefault(), r(_);
1559
1559
  return;
1560
1560
  }
1561
- const T = {
1561
+ const S = {
1562
1562
  ArrowRight: 1,
1563
1563
  ArrowDown: 1,
1564
1564
  ArrowLeft: -1,
1565
1565
  ArrowUp: -1
1566
1566
  }[u.key];
1567
- if (!T || o.value.length === 0) return;
1567
+ if (!S || o.value.length === 0) return;
1568
1568
  u.preventDefault();
1569
- const p = (Math.max(o.value.indexOf(b), 0) + T + o.value.length) % o.value.length, d = o.value[p], C = t.options[d];
1570
- c.value?.querySelector(`[data-jt-choice-card-index="${d}"]`)?.focus(), C && r(C);
1569
+ const p = (Math.max(o.value.indexOf(b), 0) + S + o.value.length) % o.value.length, d = o.value[p], g = t.options[d];
1570
+ i.value?.querySelector(`[data-jt-choice-card-index="${d}"]`)?.focus(), g && r(g);
1571
1571
  }
1572
- return (u, g) => (i(), y("div", {
1572
+ return (u, _) => (c(), y("div", {
1573
1573
  ref_key: "groupRef",
1574
- ref: c,
1574
+ ref: i,
1575
1575
  class: "jt-choice-card-group",
1576
1576
  role: "radiogroup",
1577
1577
  "aria-label": t.ariaLabel
1578
1578
  }, [
1579
- (i(!0), y(X, null, q(t.options, (b, h) => (i(), y("button", {
1579
+ (c(!0), y(X, null, q(t.options, (b, v) => (c(), y("button", {
1580
1580
  key: b.value,
1581
1581
  class: Y(["jt-choice-card", { "is-selected": b.value === t.modelValue }]),
1582
1582
  type: "button",
1583
1583
  role: "radio",
1584
- "data-jt-choice-card-index": h,
1584
+ "data-jt-choice-card-index": v,
1585
1585
  "aria-checked": b.value === t.modelValue ? "true" : "false",
1586
1586
  "aria-disabled": b.disabled ? "true" : "false",
1587
1587
  disabled: b.disabled,
1588
- tabindex: f(b, h),
1589
- onClick: (T) => r(b),
1590
- onKeydown: (T) => n(T, b, h)
1588
+ tabindex: f(b, v),
1589
+ onClick: (S) => r(b),
1590
+ onKeydown: (S) => n(S, b, v)
1591
1591
  }, [
1592
1592
  w(u.$slots, "option", {
1593
1593
  option: b,
@@ -1595,7 +1595,7 @@ const x2 = ["aria-label"], k2 = ["src"], j2 = /* @__PURE__ */ H({
1595
1595
  }, () => [
1596
1596
  x("span", A2, [
1597
1597
  x("span", F2, I(b.label), 1),
1598
- b.description ? (i(), y("span", Z2, I(b.description), 1)) : z("", !0)
1598
+ b.description ? (c(), y("span", Z2, I(b.description), 1)) : z("", !0)
1599
1599
  ])
1600
1600
  ], !0)
1601
1601
  ], 42, J2))), 128))
@@ -1615,21 +1615,21 @@ const x2 = ["aria-label"], k2 = ["src"], j2 = /* @__PURE__ */ H({
1615
1615
  "--jt-descriptions-columns": a.columns,
1616
1616
  "--jt-descriptions-label-width": typeof a.labelWidth == "number" ? `${a.labelWidth}px` : a.labelWidth
1617
1617
  }));
1618
- function c(r) {
1618
+ function i(r) {
1619
1619
  const f = Math.trunc(r ?? 1);
1620
1620
  return Math.min(Math.max(f, 1), a.columns);
1621
1621
  }
1622
1622
  function o(r) {
1623
1623
  return r != null && r !== "";
1624
1624
  }
1625
- return (r, f) => (i(), y("dl", {
1625
+ return (r, f) => (c(), y("dl", {
1626
1626
  class: "jt-descriptions",
1627
1627
  style: oe(e.value)
1628
1628
  }, [
1629
- (i(!0), y(X, null, q(t.value, (n) => (i(), y("div", {
1629
+ (c(!0), y(X, null, q(t.value, (n) => (c(), y("div", {
1630
1630
  key: n.key,
1631
1631
  class: "jt-descriptions__item",
1632
- style: oe({ gridColumn: `span ${c(n.span)}` })
1632
+ style: oe({ gridColumn: `span ${i(n.span)}` })
1633
1633
  }, [
1634
1634
  w(r.$slots, "item", { item: n }, () => [
1635
1635
  x("dt", R2, [
@@ -1668,47 +1668,47 @@ const x2 = ["aria-label"], k2 = ["src"], j2 = /* @__PURE__ */ H({
1668
1668
  },
1669
1669
  emits: ["update:currentKey", "current-change"],
1670
1670
  setup(l, { expose: a, emit: t }) {
1671
- const e = l, c = t, o = R();
1672
- function r(h) {
1673
- return h.expanded ? h.isCurrent ? G2 : N2 : q2;
1671
+ const e = l, i = t, o = R();
1672
+ function r(v) {
1673
+ return v.expanded ? v.isCurrent ? G2 : N2 : q2;
1674
1674
  }
1675
- function f(h) {
1676
- if (h.expanded) {
1677
- h.collapse();
1675
+ function f(v) {
1676
+ if (v.expanded) {
1677
+ v.collapse();
1678
1678
  return;
1679
1679
  }
1680
- h.expand();
1680
+ v.expand();
1681
1681
  }
1682
- function n(h, T) {
1683
- const S = T?.key;
1684
- S !== e.currentKey && c("update:currentKey", S), c("current-change", h, T);
1682
+ function n(v, S) {
1683
+ const M = S?.key;
1684
+ M !== e.currentKey && i("update:currentKey", M), i("current-change", v, S);
1685
1685
  }
1686
1686
  pe(
1687
1687
  () => e.currentKey,
1688
- (h) => o.value?.setCurrentKey(h ?? null),
1688
+ (v) => o.value?.setCurrentKey(v ?? null),
1689
1689
  { flush: "post" }
1690
1690
  );
1691
- function u(h) {
1692
- return o.value?.getNode(h);
1691
+ function u(v) {
1692
+ return o.value?.getNode(v);
1693
1693
  }
1694
- function g() {
1694
+ function _() {
1695
1695
  return o.value?.getCurrentNode();
1696
1696
  }
1697
- function b(h) {
1698
- o.value?.filter(h);
1697
+ function b(v) {
1698
+ o.value?.filter(v);
1699
1699
  }
1700
1700
  return a({
1701
1701
  treeRef: o,
1702
1702
  getNode: u,
1703
- getCurrentNode: g,
1703
+ getCurrentNode: _,
1704
1704
  filter: b
1705
- }), (h, T) => {
1706
- const S = pt;
1707
- return i(), A(S, U({
1705
+ }), (v, S) => {
1706
+ const M = pt;
1707
+ return c(), A(M, U({
1708
1708
  ref_key: "treeRef",
1709
1709
  ref: o,
1710
1710
  class: "jt-tree"
1711
- }, h.$attrs, {
1711
+ }, v.$attrs, {
1712
1712
  data: e.data,
1713
1713
  "node-key": e.nodeKey,
1714
1714
  props: e.props,
@@ -1723,12 +1723,12 @@ const x2 = ["aria-label"], k2 = ["src"], j2 = /* @__PURE__ */ H({
1723
1723
  }), {
1724
1724
  default: j(({ node: p, data: d }) => [
1725
1725
  x("div", Q2, [
1726
- p.isLeaf ? (i(), y("span", e0)) : (i(), y("button", {
1726
+ p.isLeaf ? (c(), y("span", e0)) : (c(), y("button", {
1727
1727
  key: 0,
1728
1728
  class: "jt-tree__toggle",
1729
1729
  type: "button",
1730
1730
  "aria-label": p.expanded ? P(D)("common.收起{label}", "收起{label}", { label: p.label }) : P(D)("common.展开{label}", "展开{label}", { label: p.label }),
1731
- onClick: re((C) => f(p), ["stop"])
1731
+ onClick: re((g) => f(p), ["stop"])
1732
1732
  }, [
1733
1733
  x("img", {
1734
1734
  class: "jt-tree__toggle-icon",
@@ -1738,22 +1738,22 @@ const x2 = ["aria-label"], k2 = ["src"], j2 = /* @__PURE__ */ H({
1738
1738
  }, null, 8, Y2)
1739
1739
  ], 8, X2)),
1740
1740
  x("div", t0, [
1741
- w(h.$slots, "default", {
1741
+ w(v.$slots, "default", {
1742
1742
  node: p,
1743
1743
  data: d
1744
1744
  }, () => [
1745
1745
  x("span", a0, I(p.label), 1)
1746
1746
  ], !0)
1747
1747
  ]),
1748
- h.$slots.actions ? (i(), y("div", {
1748
+ v.$slots.actions ? (c(), y("div", {
1749
1749
  key: 2,
1750
1750
  class: "jt-tree__actions",
1751
- onClick: T[0] || (T[0] = re(() => {
1751
+ onClick: S[0] || (S[0] = re(() => {
1752
1752
  }, ["stop"])),
1753
- onKeydown: T[1] || (T[1] = re(() => {
1753
+ onKeydown: S[1] || (S[1] = re(() => {
1754
1754
  }, ["stop"]))
1755
1755
  }, [
1756
- w(h.$slots, "actions", {
1756
+ w(v.$slots, "actions", {
1757
1757
  node: p,
1758
1758
  data: d
1759
1759
  }, void 0, !0)
@@ -1809,42 +1809,42 @@ const x2 = ["aria-label"], k2 = ["src"], j2 = /* @__PURE__ */ H({
1809
1809
  }),
1810
1810
  emits: /* @__PURE__ */ me(["update:currentKey", "current-change", "node-click", "search"], ["update:searchValue"]),
1811
1811
  setup(l, { expose: a, emit: t }) {
1812
- const e = l, c = ve(l, "searchValue"), o = t, r = R(), f = R([]), n = m(
1812
+ const e = l, i = ve(l, "searchValue"), o = t, r = R(), f = R([]), n = m(
1813
1813
  () => e.displayFullPath ? f.value : f.value.slice(-1)
1814
1814
  );
1815
- function u(v) {
1816
- c.value = String(v ?? "");
1815
+ function u(h) {
1816
+ i.value = String(h ?? "");
1817
1817
  }
1818
- function g() {
1819
- const v = c.value.trim();
1820
- o("search", v);
1818
+ function _() {
1819
+ const h = i.value.trim();
1820
+ o("search", h);
1821
1821
  }
1822
- function b(v) {
1822
+ function b(h) {
1823
1823
  const E = [];
1824
- let _ = v;
1825
- for (; _ && Number(_.level ?? 0) > 0; )
1824
+ let C = h;
1825
+ for (; C && Number(C.level ?? 0) > 0; )
1826
1826
  E.unshift({
1827
- key: _.key ?? `${_.level}-${_.label ?? ""}`,
1828
- label: String(_.label ?? "")
1829
- }), _ = _.parent;
1827
+ key: C.key ?? `${C.level}-${C.label ?? ""}`,
1828
+ label: String(C.label ?? "")
1829
+ }), C = C.parent;
1830
1830
  f.value = E.filter((V) => V.label);
1831
1831
  }
1832
- function h(v, E) {
1833
- b(E), o("current-change", v, E);
1832
+ function v(h, E) {
1833
+ b(E), o("current-change", h, E);
1834
1834
  }
1835
- function T(v) {
1836
- o("update:currentKey", v);
1835
+ function S(h) {
1836
+ o("update:currentKey", h);
1837
1837
  }
1838
- function S(v, E, _) {
1839
- b(E), o("node-click", v, E, _);
1838
+ function M(h, E, C) {
1839
+ b(E), o("node-click", h, E, C);
1840
1840
  }
1841
- async function p(v) {
1842
- if (await Me(), v !== e.currentKey) return;
1843
- if (v == null || v === "") {
1841
+ async function p(h) {
1842
+ if (await Me(), h !== e.currentKey) return;
1843
+ if (h == null || h === "") {
1844
1844
  f.value = [];
1845
1845
  return;
1846
1846
  }
1847
- const E = r.value?.getNode(v);
1847
+ const E = r.value?.getNode(h);
1848
1848
  if (!E) {
1849
1849
  f.value = [];
1850
1850
  return;
@@ -1853,27 +1853,27 @@ const x2 = ["aria-label"], k2 = ["src"], j2 = /* @__PURE__ */ H({
1853
1853
  }
1854
1854
  pe(
1855
1855
  [() => e.currentKey, () => e.data],
1856
- ([v]) => {
1857
- p(v);
1856
+ ([h]) => {
1857
+ p(h);
1858
1858
  },
1859
1859
  { flush: "post", immediate: !0 }
1860
1860
  );
1861
- function d(v) {
1862
- return r.value?.getNode(v);
1861
+ function d(h) {
1862
+ return r.value?.getNode(h);
1863
1863
  }
1864
- function C() {
1864
+ function g() {
1865
1865
  return r.value?.getCurrentNode();
1866
1866
  }
1867
1867
  return a({
1868
1868
  treeRef: r,
1869
1869
  getNode: d,
1870
- getCurrentNode: C
1871
- }), (v, E) => (i(), y("section", U({
1870
+ getCurrentNode: g
1871
+ }), (h, E) => (c(), y("section", U({
1872
1872
  class: ["jt-department-tree", { "is-node-label-ellipsis-disabled": !e.nodeLabelEllipsis }]
1873
- }, v.$attrs, {
1873
+ }, h.$attrs, {
1874
1874
  "aria-label": e.ariaLabel
1875
1875
  }), [
1876
- e.showSearch ? (i(), y("div", s0, [
1876
+ e.showSearch ? (c(), y("div", s0, [
1877
1877
  x("img", {
1878
1878
  class: "jt-department-tree__search-icon",
1879
1879
  src: P(Ge),
@@ -1882,19 +1882,19 @@ const x2 = ["aria-label"], k2 = ["src"], j2 = /* @__PURE__ */ H({
1882
1882
  }, null, 8, r0),
1883
1883
  N(ye, {
1884
1884
  class: "jt-department-tree__search-input",
1885
- "model-value": c.value,
1885
+ "model-value": i.value,
1886
1886
  placeholder: e.searchPlaceholder,
1887
1887
  "aria-label": e.searchPlaceholder,
1888
1888
  clearable: "",
1889
1889
  "onUpdate:modelValue": u,
1890
- onEnter: g,
1891
- onClear: g
1890
+ onEnter: _,
1891
+ onClear: _
1892
1892
  }, null, 8, ["model-value", "placeholder", "aria-label"]),
1893
1893
  N(ae, {
1894
1894
  class: "jt-department-tree__search-button",
1895
1895
  type: "primary",
1896
1896
  plain: "",
1897
- onClick: g
1897
+ onClick: _
1898
1898
  }, {
1899
1899
  default: j(() => [
1900
1900
  le(I(e.searchButtonText), 1)
@@ -1902,23 +1902,23 @@ const x2 = ["aria-label"], k2 = ["src"], j2 = /* @__PURE__ */ H({
1902
1902
  _: 1
1903
1903
  })
1904
1904
  ])) : z("", !0),
1905
- e.showCurrentPath && n.value.length ? (i(), y("div", i0, [
1905
+ e.showCurrentPath && n.value.length ? (c(), y("div", i0, [
1906
1906
  x("div", c0, I(e.currentPathLabel) + ": ", 1),
1907
1907
  x("div", d0, [
1908
- w(v.$slots, "current-path", {
1908
+ w(h.$slots, "current-path", {
1909
1909
  items: n.value,
1910
1910
  fullItems: f.value,
1911
1911
  currentItem: f.value[f.value.length - 1],
1912
1912
  displayFullPath: e.displayFullPath
1913
1913
  }, () => [
1914
- (i(!0), y(X, null, q(n.value, (_, V) => (i(), y("span", {
1915
- key: `${String(_.key)}-${V}`,
1914
+ (c(!0), y(X, null, q(n.value, (C, V) => (c(), y("span", {
1915
+ key: `${String(C.key)}-${V}`,
1916
1916
  class: Y(["jt-department-tree__current-item", {
1917
1917
  "is-current": V === n.value.length - 1
1918
1918
  }])
1919
1919
  }, [
1920
- x("span", u0, I(_.label), 1),
1921
- V < n.value.length - 1 ? (i(), y("span", p0, " / ")) : z("", !0)
1920
+ x("span", u0, I(C.label), 1),
1921
+ V < n.value.length - 1 ? (c(), y("span", p0, " / ")) : z("", !0)
1922
1922
  ], 2))), 128))
1923
1923
  ], !0)
1924
1924
  ])
@@ -1939,21 +1939,21 @@ const x2 = ["aria-label"], k2 = ["src"], j2 = /* @__PURE__ */ H({
1939
1939
  "aria-label": e.ariaLabel,
1940
1940
  "default-expand-all": e.defaultExpandAll,
1941
1941
  "default-expanded-keys": e.defaultExpandedKeys,
1942
- "onUpdate:currentKey": T,
1943
- onCurrentChange: h,
1944
- onNodeClick: S
1942
+ "onUpdate:currentKey": S,
1943
+ onCurrentChange: v,
1944
+ onNodeClick: M
1945
1945
  }, ie({ _: 2 }, [
1946
- v.$slots.default ? {
1946
+ h.$slots.default ? {
1947
1947
  name: "default",
1948
- fn: j((_) => [
1949
- w(v.$slots, "default", de(ue(_)), void 0, !0)
1948
+ fn: j((C) => [
1949
+ w(h.$slots, "default", de(ue(C)), void 0, !0)
1950
1950
  ]),
1951
1951
  key: "0"
1952
1952
  } : void 0,
1953
- v.$slots.actions ? {
1953
+ h.$slots.actions ? {
1954
1954
  name: "actions",
1955
- fn: j((_) => [
1956
- w(v.$slots, "actions", de(ue(_)), void 0, !0)
1955
+ fn: j((C) => [
1956
+ w(h.$slots, "actions", de(ue(C)), void 0, !0)
1957
1957
  ]),
1958
1958
  key: "1"
1959
1959
  } : void 0
@@ -1982,12 +1982,12 @@ const x2 = ["aria-label"], k2 = ["src"], j2 = /* @__PURE__ */ H({
1982
1982
  function e(n) {
1983
1983
  return typeof n == "number" ? `${n}px` : n;
1984
1984
  }
1985
- function c(n) {
1985
+ function i(n) {
1986
1986
  return typeof n == "number" ? `${n}ms` : n;
1987
1987
  }
1988
1988
  const o = m(() => {
1989
1989
  const n = {
1990
- "--jt-collapsible-layout-transition-duration": c(
1990
+ "--jt-collapsible-layout-transition-duration": i(
1991
1991
  a.transitionDuration
1992
1992
  )
1993
1993
  };
@@ -2003,14 +2003,14 @@ const x2 = ["aria-label"], k2 = ["src"], j2 = /* @__PURE__ */ H({
2003
2003
  function f() {
2004
2004
  a.collapseOnOutsideClick && (t.value = !1);
2005
2005
  }
2006
- return (n, u) => (i(), y("div", U({
2006
+ return (n, u) => (c(), y("div", U({
2007
2007
  class: ["jt-collapsible-layout", [
2008
2008
  `is-placement-${a.placement}`,
2009
2009
  { "is-expanded": t.value }
2010
2010
  ]],
2011
2011
  style: o.value
2012
2012
  }, n.$attrs), [
2013
- Ke((i(), y("aside", {
2013
+ Ke((c(), y("aside", {
2014
2014
  class: "jt-collapsible-layout__sidebar",
2015
2015
  onClickCapture: r
2016
2016
  }, [
@@ -2074,7 +2074,7 @@ const x2 = ["aria-label"], k2 = ["src"], j2 = /* @__PURE__ */ H({
2074
2074
  }),
2075
2075
  emits: /* @__PURE__ */ me(["cancel", "confirm", "close"], ["update:modelValue"]),
2076
2076
  setup(l, { emit: a }) {
2077
- const t = l, e = ve(l, "modelValue"), c = a, o = {
2077
+ const t = l, e = ve(l, "modelValue"), i = a, o = {
2078
2078
  default: "517px",
2079
2079
  form: "642px"
2080
2080
  }, r = /* @__PURE__ */ new Set([
@@ -2093,10 +2093,10 @@ const x2 = ["aria-label"], k2 = ["src"], j2 = /* @__PURE__ */ H({
2093
2093
  const {
2094
2094
  title: p,
2095
2095
  width: d,
2096
- cancelText: C,
2097
- confirmText: v,
2096
+ cancelText: g,
2097
+ confirmText: h,
2098
2098
  confirmLoading: E,
2099
- showFooter: _,
2099
+ showFooter: C,
2100
2100
  footerLayout: V,
2101
2101
  ...B
2102
2102
  } = t;
@@ -2106,30 +2106,30 @@ const x2 = ["aria-label"], k2 = ["src"], j2 = /* @__PURE__ */ H({
2106
2106
  width: n(d),
2107
2107
  showClose: !1
2108
2108
  };
2109
- }), g = m(() => Ve(f)), b = m(() => `jt-dialog--footer-${t.footerLayout}`);
2110
- function h() {
2109
+ }), _ = m(() => Ve(f)), b = m(() => `jt-dialog--footer-${t.footerLayout}`);
2110
+ function v() {
2111
2111
  e.value = !1;
2112
2112
  }
2113
- function T() {
2114
- c("cancel"), h();
2115
- }
2116
2113
  function S() {
2117
- t.confirmLoading || c("confirm");
2114
+ i("cancel"), v();
2115
+ }
2116
+ function M() {
2117
+ t.confirmLoading || i("confirm");
2118
2118
  }
2119
2119
  return (p, d) => {
2120
- const C = mt;
2121
- return i(), A(C, U({
2120
+ const g = mt;
2121
+ return c(), A(g, U({
2122
2122
  modelValue: e.value,
2123
- "onUpdate:modelValue": d[0] || (d[0] = (v) => e.value = v),
2123
+ "onUpdate:modelValue": d[0] || (d[0] = (h) => e.value = h),
2124
2124
  class: ["jt-dialog", b.value]
2125
- }, u.value, ge(g.value), {
2126
- onClose: d[1] || (d[1] = (v) => c("close"))
2125
+ }, u.value, ge(_.value), {
2126
+ onClose: d[1] || (d[1] = (h) => i("close"))
2127
2127
  }), ie({
2128
2128
  header: j(() => [
2129
- w(p.$slots, "header", { close: h }, () => [
2129
+ w(p.$slots, "header", { close: v }, () => [
2130
2130
  x("header", C0, [
2131
2131
  x("div", _0, [
2132
- p.$slots.icon ? (i(), y("span", b0, [
2132
+ p.$slots.icon ? (c(), y("span", b0, [
2133
2133
  w(p.$slots, "icon")
2134
2134
  ])) : z("", !0),
2135
2135
  x("span", null, I(p.title), 1)
@@ -2139,7 +2139,7 @@ const x2 = ["aria-label"], k2 = ["src"], j2 = /* @__PURE__ */ H({
2139
2139
  class: "jt-dialog__close",
2140
2140
  "aria-label": P(D)("common.关闭", "关闭"),
2141
2141
  disabled: p.confirmLoading,
2142
- onClick: h
2142
+ onClick: v
2143
2143
  }, d[2] || (d[2] = [
2144
2144
  x("img", {
2145
2145
  src: g0,
@@ -2161,14 +2161,14 @@ const x2 = ["aria-label"], k2 = ["src"], j2 = /* @__PURE__ */ H({
2161
2161
  fn: j(() => [
2162
2162
  x("footer", L0, [
2163
2163
  w(p.$slots, "footer", {
2164
- cancel: T,
2165
- confirm: S
2164
+ cancel: S,
2165
+ confirm: M
2166
2166
  }, () => [
2167
2167
  N(ae, {
2168
2168
  size: "middle",
2169
2169
  gray: "",
2170
2170
  disabled: p.confirmLoading,
2171
- onClick: T
2171
+ onClick: S
2172
2172
  }, {
2173
2173
  default: j(() => [
2174
2174
  le(I(p.cancelText), 1)
@@ -2180,7 +2180,7 @@ const x2 = ["aria-label"], k2 = ["src"], j2 = /* @__PURE__ */ H({
2180
2180
  type: "primary",
2181
2181
  loading: p.confirmLoading,
2182
2182
  disabled: p.confirmLoading,
2183
- onClick: S
2183
+ onClick: M
2184
2184
  }, {
2185
2185
  default: j(() => [
2186
2186
  le(I(p.confirmText), 1)
@@ -2242,60 +2242,59 @@ const x2 = ["aria-label"], k2 = ["src"], j2 = /* @__PURE__ */ H({
2242
2242
  },
2243
2243
  emits: ["cancel", "confirm"],
2244
2244
  setup(l, { emit: a }) {
2245
- const t = {
2246
- default: "838px",
2247
- large: "1242px"
2248
- }, e = /* @__PURE__ */ new Set([
2245
+ const t = /* @__PURE__ */ new Set([
2249
2246
  "cancelText",
2250
2247
  "confirmText",
2251
2248
  "confirmLoading",
2252
2249
  "showFooter"
2253
- ]), c = l, o = a, r = Re(), f = m(() => {
2250
+ ]), e = l, i = a, o = Re(), r = m(() => {
2254
2251
  const {
2255
- cancelText: u,
2256
- confirmText: g,
2257
- confirmLoading: b,
2258
- showFooter: h,
2259
- size: T,
2252
+ cancelText: n,
2253
+ confirmText: u,
2254
+ confirmLoading: _,
2255
+ showFooter: b,
2256
+ size: v,
2260
2257
  ...S
2261
- } = c;
2258
+ } = e;
2262
2259
  return {
2263
- ...Ee(r, e),
2260
+ ...Ee(o, t),
2264
2261
  ...S,
2265
- size: t[T],
2262
+ // 尺寸值由 class 中的 CSS 变量提供,让消费项目的 px-to-rem 插件能够转换。
2263
+ // 两档使用不同变量引用,切换 size 时仍会触发 ElDrawer 的尺寸更新。
2264
+ size: `var(--jt-drawer-size-${v})`,
2266
2265
  withHeader: !1,
2267
2266
  modalClass: ["jt-drawer-modal", S.modalClass].filter(Boolean).join(" ")
2268
2267
  };
2269
- }), n = m(() => Ve(r));
2270
- return (u, g) => {
2271
- const b = ft;
2272
- return i(), A(b, U({
2273
- class: "jt-drawer",
2268
+ }), f = m(() => Ve(o));
2269
+ return (n, u) => {
2270
+ const _ = ft;
2271
+ return c(), A(_, U({
2272
+ class: ["jt-drawer", `jt-drawer--${e.size}`],
2274
2273
  "lock-model": ""
2275
- }, f.value, ge(n.value)), ie({
2274
+ }, r.value, ge(f.value)), ie({
2276
2275
  default: j(() => [
2277
2276
  x("section", x0, [
2278
- w(u.$slots, "body", {}, () => [
2279
- w(u.$slots, "default")
2277
+ w(n.$slots, "body", {}, () => [
2278
+ w(n.$slots, "default")
2280
2279
  ])
2281
2280
  ])
2282
2281
  ]),
2283
2282
  _: 2
2284
2283
  }, [
2285
- u.showFooter ? {
2284
+ n.showFooter ? {
2286
2285
  name: "footer",
2287
2286
  fn: j(() => [
2288
2287
  x("footer", k0, [
2289
- w(u.$slots, "footer", {}, () => [
2288
+ w(n.$slots, "footer", {}, () => [
2290
2289
  x("div", j0, [
2291
2290
  N(ae, {
2292
2291
  class: "jt-drawer__footer-button",
2293
2292
  size: "middle",
2294
- disabled: u.confirmLoading,
2295
- onClick: g[0] || (g[0] = (h) => o("cancel"))
2293
+ disabled: n.confirmLoading,
2294
+ onClick: u[0] || (u[0] = (b) => i("cancel"))
2296
2295
  }, {
2297
2296
  default: j(() => [
2298
- le(I(u.cancelText), 1)
2297
+ le(I(n.cancelText), 1)
2299
2298
  ]),
2300
2299
  _: 1
2301
2300
  }, 8, ["disabled"]),
@@ -2303,12 +2302,12 @@ const x2 = ["aria-label"], k2 = ["src"], j2 = /* @__PURE__ */ H({
2303
2302
  class: "jt-drawer__footer-button",
2304
2303
  size: "middle",
2305
2304
  type: "primary",
2306
- loading: u.confirmLoading,
2307
- disabled: u.confirmLoading,
2308
- onClick: g[1] || (g[1] = (h) => o("confirm"))
2305
+ loading: n.confirmLoading,
2306
+ disabled: n.confirmLoading,
2307
+ onClick: u[1] || (u[1] = (b) => i("confirm"))
2309
2308
  }, {
2310
2309
  default: j(() => [
2311
- le(I(u.confirmText), 1)
2310
+ le(I(n.confirmText), 1)
2312
2311
  ]),
2313
2312
  _: 1
2314
2313
  }, 8, ["loading", "disabled"])
@@ -2318,12 +2317,12 @@ const x2 = ["aria-label"], k2 = ["src"], j2 = /* @__PURE__ */ H({
2318
2317
  ]),
2319
2318
  key: "0"
2320
2319
  } : void 0
2321
- ]), 1040);
2320
+ ]), 1040, ["class"]);
2322
2321
  };
2323
2322
  }
2324
2323
  }), B0 = (l) => l.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
2325
2324
  function S0(l, a) {
2326
- return a ? l.split(new RegExp(`(${B0(a)})`, "gi")).reduce((t, e, c) => (e && t.push({ text: e, matched: c % 2 === 1 }), t), []) : [{ text: l, matched: !1 }];
2325
+ return a ? l.split(new RegExp(`(${B0(a)})`, "gi")).reduce((t, e, i) => (e && t.push({ text: e, matched: i % 2 === 1 }), t), []) : [{ text: l, matched: !1 }];
2327
2326
  }
2328
2327
  const T0 = /* @__PURE__ */ H({
2329
2328
  name: "JtHighlightText",
@@ -2338,7 +2337,7 @@ const T0 = /* @__PURE__ */ H({
2338
2337
  const a = l, t = m(
2339
2338
  () => S0(a.text, a.keyword)
2340
2339
  );
2341
- return (e, c) => (i(!0), y(X, null, q(t.value, (o, r) => (i(), y("span", {
2340
+ return (e, i) => (c(!0), y(X, null, q(t.value, (o, r) => (c(), y("span", {
2342
2341
  key: r,
2343
2342
  class: Y(["jt-highlight-text__segment", { "jt-highlight-text__match": o.matched }])
2344
2343
  }, I(o.text), 3))), 128));
@@ -2357,7 +2356,7 @@ const T0 = /* @__PURE__ */ H({
2357
2356
  returned: D("common.已退回"),
2358
2357
  rejected: D("common.已拒绝")
2359
2358
  })[a.status]);
2360
- return (e, c) => (i(), y("div", {
2359
+ return (e, i) => (c(), y("div", {
2361
2360
  class: Y(["jt-status-stamp", `jt-status-stamp--${e.status}`]),
2362
2361
  role: "status",
2363
2362
  "aria-label": t.value
@@ -2385,18 +2384,18 @@ const T0 = /* @__PURE__ */ H({
2385
2384
  },
2386
2385
  emits: ["update:modelValue", "change"],
2387
2386
  setup(l, { emit: a }) {
2388
- const t = l, e = a, c = fe(), o = m(() => t.modelValue), r = m(() => t.type), f = m(() => t.size), n = yt([]), u = m(
2387
+ const t = l, e = a, i = fe(), o = m(() => t.modelValue), r = m(() => t.type), f = m(() => t.size), n = yt([]), u = m(
2389
2388
  () => n.find((k) => !k.getDisabled())?.getValue()
2390
- ), g = R(), b = R(!1), h = R(!1), T = m(() => [
2389
+ ), _ = R(), b = R(!1), v = R(!1), S = m(() => [
2391
2390
  `jt-tab--type-${t.type}`,
2392
2391
  `jt-tab--size-${t.size}`,
2393
2392
  { "jt-tab--inset": t.type === "line" && t.inset !== !1 }
2394
2393
  ]);
2395
- let S = 0, p = 0, d = !1, C = null, v;
2394
+ let M = 0, p = 0, d = !1, g = null, h;
2396
2395
  function E(k) {
2397
2396
  k !== t.modelValue && (e("update:modelValue", k), e("change", k));
2398
2397
  }
2399
- function _(k, K) {
2398
+ function C(k, K) {
2400
2399
  const Q = { getValue: k, getDisabled: K };
2401
2400
  return n.push(Q), () => {
2402
2401
  const te = n.indexOf(Q);
@@ -2412,15 +2411,15 @@ const T0 = /* @__PURE__ */ H({
2412
2411
  size: f,
2413
2412
  activate: E
2414
2413
  }), De(qe, {
2415
- registerItem: _,
2414
+ registerItem: C,
2416
2415
  isFirstEnabled: V
2417
2416
  });
2418
2417
  function B() {
2419
- const k = g.value, K = !!(k && k.scrollWidth > k.clientWidth);
2418
+ const k = _.value, K = !!(k && k.scrollWidth > k.clientWidth);
2420
2419
  return b.value = K, K;
2421
2420
  }
2422
2421
  function O(k) {
2423
- const K = g.value;
2422
+ const K = _.value;
2424
2423
  if (!K || !B()) return !1;
2425
2424
  const Q = K.querySelector(
2426
2425
  '[data-jt-tab-item="true"][aria-selected="true"]'
@@ -2433,21 +2432,21 @@ const T0 = /* @__PURE__ */ H({
2433
2432
  await Me(), O(k);
2434
2433
  }
2435
2434
  function $(k) {
2436
- k && C !== null && k.pointerId !== C || (window.removeEventListener("pointermove", W), window.removeEventListener("pointerup", $), window.removeEventListener("pointercancel", $), C = null, h.value = !1);
2435
+ k && g !== null && k.pointerId !== g || (window.removeEventListener("pointermove", W), window.removeEventListener("pointerup", $), window.removeEventListener("pointercancel", $), g = null, v.value = !1);
2437
2436
  }
2438
2437
  function W(k) {
2439
- const K = g.value;
2440
- if (!K || C !== k.pointerId) return;
2438
+ const K = _.value;
2439
+ if (!K || g !== k.pointerId) return;
2441
2440
  if (k.pointerType === "mouse" && k.buttons !== 1) {
2442
2441
  $(k);
2443
2442
  return;
2444
2443
  }
2445
- const Q = k.clientX - S;
2446
- !d && Math.abs(Q) < P0 || (d = !0, h.value = !0, K.scrollLeft = p - Q, k.preventDefault());
2444
+ const Q = k.clientX - M;
2445
+ !d && Math.abs(Q) < P0 || (d = !0, v.value = !0, K.scrollLeft = p - Q, k.preventDefault());
2447
2446
  }
2448
2447
  function F(k) {
2449
- const K = g.value;
2450
- k.pointerType === "mouse" && (k.button !== 0 || k.buttons !== 1) || !K || !B() || (C = k.pointerId, S = k.clientX, p = K.scrollLeft, d = !1, h.value = !0, window.addEventListener("pointermove", W), window.addEventListener("pointerup", $), window.addEventListener("pointercancel", $));
2448
+ const K = _.value;
2449
+ k.pointerType === "mouse" && (k.button !== 0 || k.buttons !== 1) || !K || !B() || (g = k.pointerId, M = k.clientX, p = K.scrollLeft, d = !1, v.value = !0, window.addEventListener("pointermove", W), window.addEventListener("pointerup", $), window.addEventListener("pointercancel", $));
2451
2450
  }
2452
2451
  function ee(k) {
2453
2452
  d && (k.preventDefault(), k.stopPropagation(), d = !1);
@@ -2478,28 +2477,28 @@ const T0 = /* @__PURE__ */ H({
2478
2477
  L("smooth");
2479
2478
  }
2480
2479
  ), gt(() => {
2481
- B(), L("auto"), !(typeof ResizeObserver > "u" || !g.value) && (v = new ResizeObserver(() => {
2480
+ B(), L("auto"), !(typeof ResizeObserver > "u" || !_.value) && (h = new ResizeObserver(() => {
2482
2481
  B(), L("auto");
2483
- }), v.observe(g.value));
2482
+ }), h.observe(_.value));
2484
2483
  }), Ue(() => {
2485
- $(), v?.disconnect();
2486
- }), (k, K) => (i(), y("div", U({
2487
- class: ["jt-tab", T.value],
2484
+ $(), h?.disconnect();
2485
+ }), (k, K) => (c(), y("div", U({
2486
+ class: ["jt-tab", S.value],
2488
2487
  role: "tablist"
2489
2488
  }, k.$attrs, { onKeydown: ne }), [
2490
2489
  x("div", {
2491
2490
  ref_key: "listRef",
2492
- ref: g,
2491
+ ref: _,
2493
2492
  class: Y(["jt-tab__list", {
2494
2493
  "is-scrollable": b.value,
2495
- "is-dragging": h.value
2494
+ "is-dragging": v.value
2496
2495
  }]),
2497
2496
  onPointerdown: F,
2498
2497
  onClickCapture: ee
2499
2498
  }, [
2500
2499
  w(k.$slots, "default", {}, void 0, !0)
2501
2500
  ], 34),
2502
- P(c).extra ? (i(), y("div", I0, [
2501
+ P(i).extra ? (c(), y("div", I0, [
2503
2502
  w(k.$slots, "extra", {}, void 0, !0)
2504
2503
  ])) : z("", !0)
2505
2504
  ], 16));
@@ -2512,26 +2511,26 @@ const T0 = /* @__PURE__ */ H({
2512
2511
  disabled: { type: Boolean, default: !1 }
2513
2512
  },
2514
2513
  setup(l) {
2515
- const a = l, t = ze(Ne, null), e = ze(qe, null), c = m(() => t?.modelValue.value === a.value), o = m(() => a.disabled || !t), r = m(() => t?.type.value ?? "line"), f = m(() => t?.size.value ?? "default"), n = e?.registerItem(
2514
+ const a = l, t = ze(Ne, null), e = ze(qe, null), i = m(() => t?.modelValue.value === a.value), o = m(() => a.disabled || !t), r = m(() => t?.type.value ?? "line"), f = m(() => t?.size.value ?? "default"), n = e?.registerItem(
2516
2515
  () => a.value,
2517
2516
  () => o.value
2518
- ), u = m(() => o.value ? -1 : c.value || t?.modelValue.value === void 0 && e?.isFirstEnabled(a.value) ? 0 : -1), g = m(() => [
2517
+ ), u = m(() => o.value ? -1 : i.value || t?.modelValue.value === void 0 && e?.isFirstEnabled(a.value) ? 0 : -1), _ = m(() => [
2519
2518
  `jt-tab__item--type-${r.value}`,
2520
2519
  `jt-tab__item--size-${f.value}`,
2521
2520
  {
2522
- "is-active": c.value,
2521
+ "is-active": i.value,
2523
2522
  "is-disabled": o.value
2524
2523
  }
2525
2524
  ]);
2526
2525
  function b() {
2527
2526
  o.value || t?.activate(a.value);
2528
2527
  }
2529
- return Ue(() => n?.()), (h, T) => (i(), y("button", {
2530
- class: Y(["jt-tab__item", g.value]),
2528
+ return Ue(() => n?.()), (v, S) => (c(), y("button", {
2529
+ class: Y(["jt-tab__item", _.value]),
2531
2530
  type: "button",
2532
2531
  role: "tab",
2533
2532
  "data-jt-tab-item": "true",
2534
- "aria-selected": c.value,
2533
+ "aria-selected": i.value,
2535
2534
  "aria-disabled": o.value || void 0,
2536
2535
  tabindex: u.value,
2537
2536
  disabled: o.value,
@@ -2541,7 +2540,7 @@ const T0 = /* @__PURE__ */ H({
2541
2540
  He(re(b, ["prevent"]), ["space"])
2542
2541
  ]
2543
2542
  }, [
2544
- w(h.$slots, "default", {}, void 0, !0)
2543
+ w(v.$slots, "default", {}, void 0, !0)
2545
2544
  ], 42, z0));
2546
2545
  }
2547
2546
  }), fa = /* @__PURE__ */ Z(H0, [["__scopeId", "data-v-09d5cdf2"]]), O0 = {
@@ -2557,8 +2556,8 @@ const T0 = /* @__PURE__ */ H({
2557
2556
  },
2558
2557
  setup(l) {
2559
2558
  const a = l;
2560
- function t(c) {
2561
- return typeof c == "number" ? `${c}px` : c;
2559
+ function t(i) {
2560
+ return typeof i == "number" ? `${i}px` : i;
2562
2561
  }
2563
2562
  const e = m(
2564
2563
  () => ({
@@ -2566,15 +2565,15 @@ const T0 = /* @__PURE__ */ H({
2566
2565
  "--jt-tree-table-layout-gap": t(a.gap)
2567
2566
  })
2568
2567
  );
2569
- return (c, o) => (i(), y("div", {
2568
+ return (i, o) => (c(), y("div", {
2570
2569
  class: Y(["jt-tree-table-layout", { "is-collapsed": a.collapsed }]),
2571
2570
  style: oe(e.value)
2572
2571
  }, [
2573
- a.collapsed ? z("", !0) : (i(), y("aside", O0, [
2574
- w(c.$slots, "tree", {}, void 0, !0)
2572
+ a.collapsed ? z("", !0) : (c(), y("aside", O0, [
2573
+ w(i.$slots, "tree", {}, void 0, !0)
2575
2574
  ])),
2576
2575
  x("div", J0, [
2577
- w(c.$slots, "default", {}, void 0, !0)
2576
+ w(i.$slots, "default", {}, void 0, !0)
2578
2577
  ])
2579
2578
  ], 6));
2580
2579
  }
@@ -2596,41 +2595,41 @@ const T0 = /* @__PURE__ */ H({
2596
2595
  },
2597
2596
  emits: ["operate-click"],
2598
2597
  setup(l, { emit: a }) {
2599
- const t = l, e = a, c = fe(), o = m(() => t.operates.length > 0 || !!c.operates), r = m(() => [
2598
+ const t = l, e = a, i = fe(), o = m(() => t.operates.length > 0 || !!i.operates), r = m(() => [
2600
2599
  `jt-page-header--size-${t.size}`,
2601
2600
  { "jt-page-header--gray": t.gray }
2602
2601
  ]);
2603
2602
  function f(n, u) {
2604
2603
  n.onClick?.(n, u), e("operate-click", n, u);
2605
2604
  }
2606
- return (n, u) => (i(), y("div", U({
2605
+ return (n, u) => (c(), y("div", U({
2607
2606
  class: ["jt-page-header", r.value]
2608
2607
  }, n.$attrs), [
2609
2608
  x("div", F0, [
2610
- P(c).title ? w(n.$slots, "title", { key: 0 }, () => [
2611
- n.title ? (i(), y("span", Z0, I(n.title), 1)) : z("", !0)
2612
- ], !0) : P(c).default ? w(n.$slots, "default", { key: 1 }, void 0, !0) : n.title ? (i(), y("span", K0, I(n.title), 1)) : z("", !0),
2609
+ P(i).title ? w(n.$slots, "title", { key: 0 }, () => [
2610
+ n.title ? (c(), y("span", Z0, I(n.title), 1)) : z("", !0)
2611
+ ], !0) : P(i).default ? w(n.$slots, "default", { key: 1 }, void 0, !0) : n.title ? (c(), y("span", K0, I(n.title), 1)) : z("", !0),
2613
2612
  w(n.$slots, "description", {}, () => [
2614
- n.description ? (i(), y("span", R0, I(n.description), 1)) : z("", !0)
2613
+ n.description ? (c(), y("span", R0, I(n.description), 1)) : z("", !0)
2615
2614
  ], !0)
2616
2615
  ]),
2617
- o.value ? (i(), y("div", U0, [
2616
+ o.value ? (c(), y("div", U0, [
2618
2617
  w(n.$slots, "operates", { operates: n.operates }, () => [
2619
- (i(!0), y(X, null, q(n.operates, (g) => (i(), A(P(ae), U({
2620
- key: g.key ?? g.label,
2618
+ (c(!0), y(X, null, q(n.operates, (_) => (c(), A(P(ae), U({
2619
+ key: _.key ?? _.label,
2621
2620
  ref_for: !0
2622
- }, g.buttonProps, {
2623
- type: g.type,
2624
- disabled: g.disabled,
2625
- loading: g.loading,
2626
- plain: g.plain,
2627
- text: g.text,
2628
- link: g.link,
2629
- icon: g.icon,
2630
- onClick: (b) => f(g, b)
2621
+ }, _.buttonProps, {
2622
+ type: _.type,
2623
+ disabled: _.disabled,
2624
+ loading: _.loading,
2625
+ plain: _.plain,
2626
+ text: _.text,
2627
+ link: _.link,
2628
+ icon: _.icon,
2629
+ onClick: (b) => f(_, b)
2631
2630
  }), {
2632
2631
  default: j(() => [
2633
- x("span", null, I(g.label), 1)
2632
+ x("span", null, I(_.label), 1)
2634
2633
  ]),
2635
2634
  _: 2
2636
2635
  }, 1040, ["type", "disabled", "loading", "plain", "text", "link", "icon", "onClick"]))), 128))