tm-table 1.2.1 → 1.2.2

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.
@@ -1,33 +1,33 @@
1
- var Oe = Object.defineProperty, De = Object.defineProperties;
2
- var Ae = Object.getOwnPropertyDescriptors;
1
+ var Ae = Object.defineProperty, De = Object.defineProperties;
2
+ var Me = Object.getOwnPropertyDescriptors;
3
3
  var Q = Object.getOwnPropertySymbols;
4
- var oe = Object.prototype.hasOwnProperty, re = Object.prototype.propertyIsEnumerable;
5
- var se = (e, i, t) => i in e ? Oe(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t, x = (e, i) => {
6
- for (var t in i || (i = {}))
7
- oe.call(i, t) && se(e, t, i[t]);
4
+ var re = Object.prototype.hasOwnProperty, oe = Object.prototype.propertyIsEnumerable;
5
+ var se = (e, l, t) => l in e ? Ae(e, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[l] = t, x = (e, l) => {
6
+ for (var t in l || (l = {}))
7
+ re.call(l, t) && se(e, t, l[t]);
8
8
  if (Q)
9
- for (var t of Q(i))
10
- re.call(i, t) && se(e, t, i[t]);
9
+ for (var t of Q(l))
10
+ oe.call(l, t) && se(e, t, l[t]);
11
11
  return e;
12
- }, I = (e, i) => De(e, Ae(i));
13
- var ue = (e, i) => {
12
+ }, I = (e, l) => De(e, Me(l));
13
+ var ue = (e, l) => {
14
14
  var t = {};
15
15
  for (var a in e)
16
- oe.call(e, a) && i.indexOf(a) < 0 && (t[a] = e[a]);
16
+ re.call(e, a) && l.indexOf(a) < 0 && (t[a] = e[a]);
17
17
  if (e != null && Q)
18
18
  for (var a of Q(e))
19
- i.indexOf(a) < 0 && re.call(e, a) && (t[a] = e[a]);
19
+ l.indexOf(a) < 0 && oe.call(e, a) && (t[a] = e[a]);
20
20
  return t;
21
21
  };
22
- import { ref as Me, createElementBlock as b, openBlock as r, normalizeStyle as B, createElementVNode as v, h as be, resolveComponent as u, createBlock as m, mergeProps as _, withCtx as p, toDisplayString as T, normalizeClass as X, createCommentVNode as C, defineComponent as He, useAttrs as Re, useSlots as Ie, computed as de, resolveDynamicComponent as Ee, Fragment as L, renderList as D, createVNode as g, renderSlot as S, toHandlers as M, createTextVNode as z, withKeys as We, createSlots as ye, resolveDirective as Ne, withDirectives as Pe, normalizeProps as Be, guardReactiveProps as Ue } from "vue";
23
- import { CircleClose as je } from "@element-plus/icons-vue";
22
+ import { ref as He, createElementBlock as b, openBlock as o, normalizeStyle as B, createElementVNode as v, h as be, resolveComponent as u, createBlock as m, mergeProps as _, withCtx as p, toDisplayString as T, normalizeClass as X, createCommentVNode as C, defineComponent as Re, useAttrs as Ie, useSlots as Ee, computed as de, resolveDynamicComponent as We, Fragment as L, renderList as A, createVNode as g, renderSlot as S, toHandlers as M, createTextVNode as z, withKeys as Ne, createSlots as ye, resolveDirective as Pe, withDirectives as Be, normalizeProps as Ue, guardReactiveProps as je } from "vue";
23
+ import { CircleClose as Je } from "@element-plus/icons-vue";
24
24
  import R from "sortablejs";
25
- const ce = {
25
+ const he = {
26
26
  mini: "small",
27
27
  small: "small",
28
28
  default: "default",
29
29
  large: "large"
30
- }, K = (e) => ce[e] || ce.default, k = () => "default", Je = {
30
+ }, K = (e) => he[e] || he.default, k = () => "default", Ke = {
31
31
  today: "今天",
32
32
  yesterday: "昨天",
33
33
  last7days: "最近7天",
@@ -66,7 +66,7 @@ const ce = {
66
66
  cancelTop: "取消置顶",
67
67
  copySuccess: "复制成功",
68
68
  copyFailed: "复制失败"
69
- }, Ke = {
69
+ }, Qe = {
70
70
  today: "Today",
71
71
  yesterday: "Yesterday",
72
72
  last7days: "Last 7 days",
@@ -105,27 +105,27 @@ const ce = {
105
105
  cancelTop: "Cancel top",
106
106
  copySuccess: "Copy successfully",
107
107
  copyFailed: "Copy failed"
108
- }, Qe = {
109
- "zh-CN": Je,
110
- "en-US": Ke
108
+ }, qe = {
109
+ "zh-CN": Ke,
110
+ "en-US": Qe
111
111
  };
112
112
  let Z = { value: "zh-CN" };
113
- Z = Me("zh-CN");
114
- const qe = (e) => {
115
- var i;
116
- return ((i = Qe[Z.value]) == null ? void 0 : i[e]) || e;
113
+ Z = He("zh-CN");
114
+ const Ye = (e) => {
115
+ var l;
116
+ return ((l = qe[Z.value]) == null ? void 0 : l[e]) || e;
117
117
  }, ae = (e) => {
118
118
  Z.value = e;
119
119
  }, H = () => ({
120
- t: qe,
120
+ t: Ye,
121
121
  setLang: ae,
122
122
  currentLang: Z
123
- }), w = (e, i) => {
123
+ }), w = (e, l) => {
124
124
  const t = e.__vccOpts || e;
125
- for (const [a, l] of i)
126
- t[a] = l;
125
+ for (const [a, i] of l)
126
+ t[a] = i;
127
127
  return t;
128
- }, Ye = {
128
+ }, Ge = {
129
129
  name: "BaseIcon",
130
130
  props: {
131
131
  path: {
@@ -142,24 +142,24 @@ const qe = (e) => {
142
142
  handleClick() {
143
143
  }
144
144
  }
145
- }, Ge = ["width", "height"], Xe = ["d"];
146
- function Ze(e, i, t, a, l, n) {
147
- return r(), b("i", {
145
+ }, Xe = ["width", "height"], Ze = ["d"];
146
+ function $e(e, l, t, a, i, n) {
147
+ return o(), b("i", {
148
148
  class: "tm-icon",
149
- onClick: i[0] || (i[0] = (...o) => n.handleClick && n.handleClick(...o))
149
+ onClick: l[0] || (l[0] = (...r) => n.handleClick && n.handleClick(...r))
150
150
  }, [
151
- (r(), b("svg", {
151
+ (o(), b("svg", {
152
152
  width: t.size,
153
153
  height: t.size,
154
154
  style: B({ color: t.color }),
155
155
  viewBox: "0 0 1024 1024",
156
156
  xmlns: "http://www.w3.org/2000/svg"
157
157
  }, [
158
- v("path", { d: t.path }, null, 8, Xe)
159
- ], 12, Ge))
158
+ v("path", { d: t.path }, null, 8, Ze)
159
+ ], 12, Xe))
160
160
  ]);
161
161
  }
162
- const $e = /* @__PURE__ */ w(Ye, [["render", Ze], ["__scopeId", "data-v-1c30ca93"]]), et = {
162
+ const et = /* @__PURE__ */ w(Ge, [["render", $e], ["__scopeId", "data-v-1c30ca93"]]), tt = {
163
163
  menu: "M160 448a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zM160 896a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32z",
164
164
  more: "M76.92892277 192.94787572h864.34120754c23.20379058 0 46.40758118-17.40284367 46.40758118-46.40758118s-23.20379058-46.40758118-46.40758118-46.40758116H76.92892277c-29.00473897 0-46.40758264 17.40284367-46.40758264 46.40758116s23.20379058 46.40758118 46.40758264 46.40758118zM941.27013031 465.59241882H76.92892277c-29.00473897 0-46.40758264 17.40284367-46.40758264 46.40758118s23.20379058 46.40758118 46.40758264 46.40758118h864.34120754c23.20379058 0 46.40758118-17.40284367 46.40758118-46.40758118s-23.20379058-46.40758118-46.40758118-46.40758118zM941.27013031 825.25117589H76.92892277c-29.00473897 0-46.40758264 17.40284367-46.40758264 46.40758118s23.20379058 46.40758118 46.40758264 46.40758264h864.34120754c23.20379058 0 46.40758118-17.40284367 46.40758118-46.40758264s-23.20379058-46.40758118-46.40758118-46.40758118z",
165
165
  refresh: "M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z",
@@ -171,8 +171,8 @@ const $e = /* @__PURE__ */ w(Ye, [["render", Ze], ["__scopeId", "data-v-1c30ca93
171
171
  download: "M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64z",
172
172
  delete: "M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32",
173
173
  copy: "M128 320v576h576V320zm-32-64h640a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32M960 96v704a32 32 0 0 1-32 32h-96v-64h64V128H384v64h-64V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32M256 672h320v64H256zm0-192h320v64H256z"
174
- }, A = Object.entries(et).reduce((e, [i, t]) => {
175
- const a = `${i}Icon`, l = {
174
+ }, D = Object.entries(tt).reduce((e, [l, t]) => {
175
+ const a = `${l}Icon`, i = {
176
176
  name: a,
177
177
  props: {
178
178
  path: {
@@ -187,15 +187,15 @@ const $e = /* @__PURE__ */ w(Ye, [["render", Ze], ["__scopeId", "data-v-1c30ca93
187
187
  }
188
188
  },
189
189
  render(n) {
190
- return be($e, this.$props);
190
+ return be(et, this.$props);
191
191
  }
192
192
  };
193
- return l.install = (n) => {
194
- n.component(a, l);
195
- }, e[i] = l, e;
196
- }, {}), tt = A.menu, it = A.refresh, lt = A.move;
197
- A["column-setting"];
198
- const nt = A.more, at = A["fixed-left"], st = A["fixed-right"], ot = A.upload, rt = A.download, ut = A.delete, ve = A.copy, { t: ee } = H(), dt = !1, ct = !0, ht = {
193
+ return i.install = (n) => {
194
+ n.component(a, i);
195
+ }, e[l] = i, e;
196
+ }, {}), lt = D.menu, it = D.refresh, nt = D.move;
197
+ D["column-setting"];
198
+ const at = D.more, st = D["fixed-left"], rt = D["fixed-right"], ot = D.upload, ut = D.download, dt = D.delete, ve = D.copy, { t: ee } = H(), ht = !1, ct = !0, ft = {
199
199
  name: "TmEllipsisText",
200
200
  components: {
201
201
  CopyIcon: ve
@@ -227,11 +227,15 @@ const nt = A.more, at = A["fixed-left"], st = A["fixed-right"], ot = A.upload, r
227
227
  copyable: {
228
228
  type: Boolean,
229
229
  default: !1
230
+ },
231
+ textAlign: {
232
+ type: String,
233
+ default: "left"
230
234
  }
231
235
  },
232
236
  data() {
233
237
  return {
234
- isVue2: dt,
238
+ isVue2: ht,
235
239
  isVue3: ct,
236
240
  isOverflow: !1,
237
241
  currentLines: 1,
@@ -243,15 +247,16 @@ const nt = A.more, at = A["fixed-left"], st = A["fixed-right"], ot = A.upload, r
243
247
  return !this.showTooltip || !this.isOverflow;
244
248
  },
245
249
  textStyle() {
246
- const e = typeof this.width == "number" ? `${this.width}px` : this.width, i = typeof this.maxWidth == "number" ? `${this.maxWidth}px` : this.maxWidth;
250
+ const e = typeof this.width == "number" ? `${this.width}px` : this.width, l = typeof this.maxWidth == "number" ? `${this.maxWidth}px` : this.maxWidth;
247
251
  return {
248
252
  width: e,
249
- maxWidth: i,
253
+ maxWidth: l,
250
254
  lineHeight: this.lineHeight,
251
255
  display: "-webkit-inline-box",
252
256
  overflow: "hidden",
253
257
  WebkitBoxOrient: "vertical",
254
- WebkitLineClamp: this.lines
258
+ WebkitLineClamp: this.lines,
259
+ textAlign: this.textAlign
255
260
  };
256
261
  }
257
262
  },
@@ -281,17 +286,17 @@ const nt = A.more, at = A["fixed-left"], st = A["fixed-right"], ot = A.upload, r
281
286
  var f;
282
287
  const e = this.$refs.textEl;
283
288
  if (!e) return;
284
- const i = getComputedStyle(e);
285
- if (!i.width || i.width === "0px") {
289
+ const l = getComputedStyle(e);
290
+ if (!l.width || l.width === "0px") {
286
291
  this.$nextTick(() => {
287
292
  this.performOverflowCheck();
288
293
  });
289
294
  return;
290
295
  }
291
- const t = e.scrollHeight, a = e.scrollWidth, l = e.clientHeight, n = e.clientWidth, o = 1, h = t > l + o, c = a > n + o;
292
- if (h || c) {
296
+ const t = e.scrollHeight, a = e.scrollWidth, i = e.clientHeight, n = e.clientWidth, r = 1, c = t > i + r, h = a > n + r;
297
+ if (c || h) {
293
298
  this.isOverflow = !0;
294
- const y = parseFloat(i.lineHeight) || 16;
299
+ const y = parseFloat(l.lineHeight) || 16;
295
300
  this.currentLines = Math.ceil(t / y);
296
301
  } else {
297
302
  const y = e.getBoundingClientRect(), V = (f = e.parentElement) == null ? void 0 : f.getBoundingClientRect();
@@ -340,34 +345,34 @@ const nt = A.more, at = A["fixed-left"], st = A["fixed-right"], ot = A.upload, r
340
345
  e.value = this.text, e.style.position = "fixed", e.style.left = "-999999px", e.style.top = "-999999px", document.body.appendChild(e), e.focus(), e.select();
341
346
  try {
342
347
  document.execCommand("copy"), this.$message.success(ee("copySuccess"));
343
- } catch (i) {
348
+ } catch (l) {
344
349
  this.$message.error(ee("copyFailed"));
345
350
  }
346
351
  document.body.removeChild(e);
347
352
  }
348
353
  }
349
- }, ft = { class: "ellipsis-text-container" };
350
- function pt(e, i, t, a, l, n) {
351
- const o = u("CopyIcon"), h = u("el-tooltip");
352
- return r(), m(h, _({
354
+ }, pt = { class: "ellipsis-text-container" };
355
+ function mt(e, l, t, a, i, n) {
356
+ const r = u("CopyIcon"), c = u("el-tooltip");
357
+ return o(), m(c, _({
353
358
  disabled: n.tooltipDisabled,
354
359
  content: t.text,
355
360
  effect: "dark",
356
361
  placement: "top"
357
362
  }, {
358
- [l.isVue2 ? "open-delay" : "show-after"]: 300
363
+ [i.isVue2 ? "open-delay" : "show-after"]: 300
359
364
  }), {
360
365
  default: p(() => [
361
- v("div", ft, [
366
+ v("div", pt, [
362
367
  v("div", {
363
368
  ref: "textEl",
364
369
  class: "ellipsis-text",
365
370
  style: B(n.textStyle)
366
371
  }, T(t.text), 5),
367
372
  v("div", {
368
- class: X(["toolbar", { multiline: l.currentLines > 1 && t.lines > 1 }])
373
+ class: X(["toolbar", { multiline: i.currentLines > 1 && t.lines > 1 }])
369
374
  }, [
370
- t.copyable ? (r(), m(o, {
375
+ t.copyable ? (o(), m(r, {
371
376
  key: 0,
372
377
  class: "icon-item",
373
378
  onClick: n.handleCopy
@@ -378,45 +383,45 @@ function pt(e, i, t, a, l, n) {
378
383
  _: 1
379
384
  }, 16, ["disabled", "content"]);
380
385
  }
381
- const $ = /* @__PURE__ */ w(ht, [["render", pt], ["__scopeId", "data-v-a51a2011"]]);
382
- var mt = Object.defineProperty, gt = Object.defineProperties, bt = Object.getOwnPropertyDescriptors, he = Object.getOwnPropertySymbols, yt = Object.prototype.hasOwnProperty, vt = Object.prototype.propertyIsEnumerable, fe = (e, i, t) => i in e ? mt(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t, pe = (e, i) => {
383
- for (var t in i || (i = {}))
384
- yt.call(i, t) && fe(e, t, i[t]);
385
- if (he)
386
- for (var t of he(i))
387
- vt.call(i, t) && fe(e, t, i[t]);
386
+ const $ = /* @__PURE__ */ w(ft, [["render", mt], ["__scopeId", "data-v-70ba8157"]]);
387
+ var gt = Object.defineProperty, bt = Object.defineProperties, yt = Object.getOwnPropertyDescriptors, ce = Object.getOwnPropertySymbols, vt = Object.prototype.hasOwnProperty, Ct = Object.prototype.propertyIsEnumerable, fe = (e, l, t) => l in e ? gt(e, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[l] = t, pe = (e, l) => {
388
+ for (var t in l || (l = {}))
389
+ vt.call(l, t) && fe(e, t, l[t]);
390
+ if (ce)
391
+ for (var t of ce(l))
392
+ Ct.call(l, t) && fe(e, t, l[t]);
388
393
  return e;
389
- }, me = (e, i) => gt(e, bt(i));
390
- const Ct = {
394
+ }, me = (e, l) => bt(e, yt(l));
395
+ const _t = {
391
396
  name: "RenderVue3",
392
397
  inheritAttrs: !1
393
- }, _t = /* @__PURE__ */ He(me(pe({}, Ct), {
398
+ }, St = /* @__PURE__ */ Re(me(pe({}, _t), {
394
399
  props: {
395
400
  renderFn: { type: Function },
396
401
  data: {}
397
402
  },
398
403
  setup(e) {
399
- const i = e, t = Re(), a = Ie(), l = de(() => me(pe({}, i.data || {}), {
404
+ const l = e, t = Ie(), a = Ee(), i = de(() => me(pe({}, l.data || {}), {
400
405
  $attrs: t,
401
406
  $slots: a
402
407
  })), n = de(() => {
403
408
  try {
404
- if (!i.renderFn || typeof i.renderFn != "function")
409
+ if (!l.renderFn || typeof l.renderFn != "function")
405
410
  return console.warn("[RenderComponent] renderFn must be a function"), null;
406
- const o = i.renderFn.toString(), h = /\(\s*h\s*[,)]/.test(o) || i.renderFn.length >= 1;
407
- let c;
408
- return h ? c = i.renderFn(be, l.value) : c = i.renderFn(l.value), c;
409
- } catch (o) {
410
- return console.error("[RenderComponent] Error in render function:", o), null;
411
+ const r = l.renderFn.toString(), c = /\(\s*h\s*[,)]/.test(r) || l.renderFn.length >= 1;
412
+ let h;
413
+ return c ? h = l.renderFn(be, i.value) : h = l.renderFn(i.value), h;
414
+ } catch (r) {
415
+ return console.error("[RenderComponent] Error in render function:", r), null;
411
416
  }
412
417
  });
413
- return (o, h) => (r(), m(Ee(n.value)));
418
+ return (r, c) => (o(), m(We(n.value)));
414
419
  }
415
- })), St = !1, xt = !0, Tt = {
420
+ })), xt = !1, Tt = !0, wt = {
416
421
  name: "FormItemLayout",
417
422
  components: {
418
423
  EllipsisText: $,
419
- RenderComponent: _t
424
+ RenderComponent: St
420
425
  },
421
426
  props: {
422
427
  // 布局方向
@@ -447,13 +452,18 @@ const Ct = {
447
452
  field: {
448
453
  type: [String, Number],
449
454
  default: ""
455
+ },
456
+ labelAlign: {
457
+ type: String,
458
+ default: "right",
459
+ validator: (e) => ["left", "right", "center"].includes(e)
450
460
  }
451
461
  },
452
462
  data() {
453
463
  return {
454
464
  t: H().t,
455
- isVue2: St,
456
- isVue3: xt,
465
+ isVue2: xt,
466
+ isVue3: Tt,
457
467
  getDefaultSize: k
458
468
  };
459
469
  },
@@ -465,8 +475,8 @@ const Ct = {
465
475
  containerStyle() {
466
476
  const e = {};
467
477
  if (this.direction === "horizontal") {
468
- const i = this.hasLabel ? this.parsedLabelWidth + this.parsedInputWidth : this.parsedInputWidth;
469
- e.width = `${i}px`;
478
+ const l = this.hasLabel ? this.parsedLabelWidth + this.parsedInputWidth : this.parsedInputWidth;
479
+ e.width = `${l}px`;
470
480
  } else
471
481
  e.width = `${this.parsedInputWidth}px`;
472
482
  return e;
@@ -513,51 +523,53 @@ const Ct = {
513
523
  this.$emit("field-change", e);
514
524
  }
515
525
  }
516
- }, wt = {
526
+ }, Vt = {
517
527
  key: 0,
518
528
  class: "label-text"
519
- }, Vt = {
529
+ }, Ft = {
520
530
  key: 1,
521
531
  class: "label-render"
522
532
  };
523
- function Ft(e, i, t, a, l, n) {
524
- const o = u("el-option"), h = u("el-select"), c = u("EllipsisText"), f = u("RenderComponent");
525
- return r(), b("div", {
533
+ function zt(e, l, t, a, i, n) {
534
+ const r = u("el-option"), c = u("el-select"), h = u("EllipsisText"), f = u("RenderComponent");
535
+ return o(), b("div", {
526
536
  class: X(["form-item-layout", {
527
537
  "form-item-layout--horizontal": t.direction === "horizontal",
528
538
  "form-item-layout--vertical": t.direction === "vertical"
529
539
  }]),
530
540
  style: B(n.containerStyle)
531
541
  }, [
532
- n.hasLabel ? (r(), b("div", {
542
+ n.hasLabel ? (o(), b("div", {
533
543
  key: 0,
534
544
  class: "form-item-label",
535
545
  style: B(n.labelStyle)
536
546
  }, [
537
- t.labelOptions && t.labelOptions.length ? (r(), m(h, {
547
+ t.labelOptions && t.labelOptions.length ? (o(), m(c, {
538
548
  key: 0,
539
549
  modelValue: n.fieldValue,
540
- "onUpdate:modelValue": i[0] || (i[0] = (y) => n.fieldValue = y),
541
- placeholder: l.t("selectPlaceholder"),
542
- size: l.getDefaultSize(),
550
+ "onUpdate:modelValue": l[0] || (l[0] = (y) => n.fieldValue = y),
551
+ placeholder: i.t("selectPlaceholder"),
552
+ size: i.getDefaultSize(),
543
553
  class: "label-select",
544
554
  onChange: n.handleFieldChange
545
555
  }, {
546
556
  default: p(() => [
547
- (r(!0), b(L, null, D(t.labelOptions, (y) => (r(), m(o, {
557
+ (o(!0), b(L, null, A(t.labelOptions, (y) => (o(), m(r, {
548
558
  key: y.value,
549
559
  label: y.label,
550
560
  value: y.value
551
561
  }, null, 8, ["label", "value"]))), 128))
552
562
  ]),
553
563
  _: 1
554
- }, 8, ["modelValue", "placeholder", "size", "onChange"])) : t.label ? (r(), b(L, { key: 1 }, [
555
- typeof t.label == "string" ? (r(), b("div", wt, [
556
- g(c, {
564
+ }, 8, ["modelValue", "placeholder", "size", "onChange"])) : t.label ? (o(), b(L, { key: 1 }, [
565
+ typeof t.label == "string" ? (o(), b("div", Vt, [
566
+ g(h, {
557
567
  text: t.label,
558
- lines: 2
559
- }, null, 8, ["text"])
560
- ])) : typeof t.label == "function" ? (r(), b("div", Vt, [
568
+ lines: 2,
569
+ width: t.labelWidth - 4,
570
+ "text-align": t.labelAlign
571
+ }, null, 8, ["text", "width", "text-align"])
572
+ ])) : typeof t.label == "function" ? (o(), b("div", Ft, [
561
573
  g(f, { "render-fn": t.label }, null, 8, ["render-fn"])
562
574
  ])) : C("", !0)
563
575
  ], 64)) : C("", !0)
@@ -570,7 +582,7 @@ function Ft(e, i, t, a, l, n) {
570
582
  ], 4)
571
583
  ], 6);
572
584
  }
573
- const E = /* @__PURE__ */ w(Tt, [["render", Ft], ["__scopeId", "data-v-e75cd736"]]), zt = !1, Lt = !0, q = "modelValue", kt = "update:modelValue", Ot = {
585
+ const E = /* @__PURE__ */ w(wt, [["render", zt], ["__scopeId", "data-v-57462da5"]]), Lt = !1, kt = !0, q = "modelValue", Ot = "update:modelValue", At = {
574
586
  name: "TmSelectFilter",
575
587
  components: {
576
588
  FormItemLayout: E
@@ -644,13 +656,18 @@ const E = /* @__PURE__ */ w(Tt, [["render", Ft], ["__scopeId", "data-v-e75cd736"
644
656
  type: String,
645
657
  default: void 0,
646
658
  validator: (e) => !e || ["horizontal", "vertical"].includes(e)
659
+ },
660
+ labelAlign: {
661
+ type: String,
662
+ default: "right",
663
+ validator: (e) => ["left", "right", "center"].includes(e)
647
664
  }
648
665
  },
649
666
  data() {
650
667
  return {
651
668
  t: H().t,
652
- isVue2: zt,
653
- isVue3: Lt,
669
+ isVue2: Lt,
670
+ isVue3: kt,
654
671
  getDefaultSize: k,
655
672
  optionsList: [],
656
673
  loading: !1,
@@ -664,12 +681,12 @@ const E = /* @__PURE__ */ w(Tt, [["render", Ft], ["__scopeId", "data-v-e75cd736"
664
681
  return this[q];
665
682
  },
666
683
  set(e) {
667
- let i = e;
684
+ let l = e;
668
685
  if (this.multiple && Array.isArray(e) && e.length === 0 && this.valueOnClear !== void 0) {
669
686
  const t = this[q];
670
- Array.isArray(t) && t.length > 0 && (i = typeof this.valueOnClear == "function" ? this.valueOnClear() : this.valueOnClear);
687
+ Array.isArray(t) && t.length > 0 && (l = typeof this.valueOnClear == "function" ? this.valueOnClear() : this.valueOnClear);
671
688
  }
672
- this.$emit(kt, i), this.$emit("change", i);
689
+ this.$emit(Ot, l), this.$emit("change", l);
673
690
  }
674
691
  },
675
692
  propMap() {
@@ -707,8 +724,8 @@ const E = /* @__PURE__ */ w(Tt, [["render", Ft], ["__scopeId", "data-v-e75cd736"
707
724
  },
708
725
  handleCheckAll(e) {
709
726
  this.indeterminate = !1;
710
- let i = [];
711
- e && (i = this.optionsList.map((t) => t[this.propMap.value])), this.computedValue = i;
727
+ let l = [];
728
+ e && (l = this.optionsList.map((t) => t[this.propMap.value])), this.computedValue = l;
712
729
  },
713
730
  handleClear() {
714
731
  if (this.valueOnClear !== void 0) {
@@ -723,66 +740,67 @@ const E = /* @__PURE__ */ w(Tt, [["render", Ft], ["__scopeId", "data-v-e75cd736"
723
740
  key: 0,
724
741
  class: "check-all-option"
725
742
  };
726
- function At(e, i, t, a, l, n) {
727
- const o = u("el-checkbox"), h = u("el-option"), c = u("el-select"), f = u("FormItemLayout");
728
- return r(), m(f, {
743
+ function Mt(e, l, t, a, i, n) {
744
+ const r = u("el-checkbox"), c = u("el-option"), h = u("el-select"), f = u("FormItemLayout");
745
+ return o(), m(f, {
729
746
  label: t.label,
730
747
  "label-options": t.labelOptions,
731
748
  field: t.field,
732
749
  onFieldChange: n.handleFieldChange,
733
750
  "label-width": t.labelWidth,
734
751
  "input-width": t.inputWidth,
735
- direction: t.direction
752
+ direction: t.direction,
753
+ "label-align": t.labelAlign
736
754
  }, {
737
755
  default: p(() => [
738
- g(c, _({
756
+ g(h, _({
739
757
  ref: "select",
740
758
  class: "select",
741
759
  onClear: n.handleClear,
742
760
  modelValue: n.computedValue,
743
- "onUpdate:modelValue": i[2] || (i[2] = (y) => n.computedValue = y)
761
+ "onUpdate:modelValue": l[2] || (l[2] = (y) => n.computedValue = y)
744
762
  }, I(x({}, e.$attrs), {
745
- size: l.getDefaultSize(),
763
+ size: i.getDefaultSize(),
746
764
  filterable: t.filterable,
747
765
  clearable: t.clearable,
748
766
  collapseTags: t.collapseTags,
749
767
  multiple: t.multiple,
750
768
  placeholder: t.placeholder,
751
- loading: l.loading
752
- }), M(l.isVue2 ? e.$listeners : {}), { loading: l.loading }), {
769
+ loading: i.loading
770
+ }), M(i.isVue2 ? e.$listeners : {}), { loading: i.loading }), {
753
771
  header: p(() => [
754
- l.isVue3 && t.multiple && t.showCheckAll ? (r(), m(o, {
772
+ i.isVue3 && t.multiple && t.showCheckAll ? (o(), m(r, {
755
773
  key: 0,
756
- modelValue: l.checkAll,
757
- "onUpdate:modelValue": i[1] || (i[1] = (y) => l.checkAll = y),
758
- indeterminate: l.indeterminate,
759
- size: l.getDefaultSize(),
774
+ modelValue: i.checkAll,
775
+ "onUpdate:modelValue": l[1] || (l[1] = (y) => i.checkAll = y),
776
+ indeterminate: i.indeterminate,
777
+ size: i.getDefaultSize(),
760
778
  onChange: n.handleCheckAll,
761
779
  style: { width: "100%", height: "20px", "padding-left": "10px" }
762
780
  }, {
763
781
  default: p(() => [
764
- z(T(l.t("all")), 1)
782
+ z(T(i.t("all")), 1)
765
783
  ]),
766
784
  _: 1
767
785
  }, 8, ["modelValue", "indeterminate", "size", "onChange"])) : C("", !0)
768
786
  ]),
769
787
  default: p(() => [
770
- l.isVue2 && t.multiple && t.showCheckAll ? (r(), b("div", Dt, [
771
- g(o, {
788
+ i.isVue2 && t.multiple && t.showCheckAll ? (o(), b("div", Dt, [
789
+ g(r, {
772
790
  style: { width: "100%" },
773
- modelValue: l.checkAll,
774
- "onUpdate:modelValue": i[0] || (i[0] = (y) => l.checkAll = y),
775
- indeterminate: l.indeterminate,
776
- size: l.getDefaultSize(),
791
+ modelValue: i.checkAll,
792
+ "onUpdate:modelValue": l[0] || (l[0] = (y) => i.checkAll = y),
793
+ indeterminate: i.indeterminate,
794
+ size: i.getDefaultSize(),
777
795
  onChange: n.handleCheckAll
778
796
  }, {
779
797
  default: p(() => [
780
- z(T(l.t("all")), 1)
798
+ z(T(i.t("all")), 1)
781
799
  ]),
782
800
  _: 1
783
801
  }, 8, ["modelValue", "indeterminate", "size", "onChange"])
784
802
  ])) : C("", !0),
785
- (r(!0), b(L, null, D(l.optionsList, (y) => (r(), m(h, {
803
+ (o(!0), b(L, null, A(i.optionsList, (y) => (o(), m(c, {
786
804
  key: y[n.propMap.value],
787
805
  label: y[n.propMap.label],
788
806
  value: y[n.propMap.value],
@@ -800,12 +818,12 @@ function At(e, i, t, a, l, n) {
800
818
  }, 16, ["onClear", "modelValue", "loading"])
801
819
  ]),
802
820
  _: 3
803
- }, 8, ["label", "label-options", "field", "onFieldChange", "label-width", "input-width", "direction"]);
821
+ }, 8, ["label", "label-options", "field", "onFieldChange", "label-width", "input-width", "direction", "label-align"]);
804
822
  }
805
- const Ce = /* @__PURE__ */ w(Ot, [["render", At], ["__scopeId", "data-v-b85e9ccb"]]), Mt = {
806
- name: "TmAdvancedInputFilter",
823
+ const Ce = /* @__PURE__ */ w(At, [["render", Mt], ["__scopeId", "data-v-ef8f7987"]]), Ht = {
824
+ name: "TmInputFilter",
807
825
  components: {
808
- MoreIcon: nt,
826
+ MoreIcon: at,
809
827
  FormItemLayout: E
810
828
  },
811
829
  props: {
@@ -846,6 +864,11 @@ const Ce = /* @__PURE__ */ w(Ot, [["render", At], ["__scopeId", "data-v-b85e9ccb
846
864
  type: String,
847
865
  default: void 0,
848
866
  validator: (e) => !e || ["horizontal", "vertical"].includes(e)
867
+ },
868
+ labelAlign: {
869
+ type: String,
870
+ default: "right",
871
+ validator: (e) => ["left", "right", "center"].includes(e)
849
872
  }
850
873
  },
851
874
  data() {
@@ -914,80 +937,81 @@ const Ce = /* @__PURE__ */ w(Ot, [["render", At], ["__scopeId", "data-v-b85e9ccb
914
937
  created() {
915
938
  this.updateCurrentOptionMultiple();
916
939
  }
917
- }, Ht = { class: "popover-content" }, Rt = { class: "popover-subtitle" }, It = { class: "popover-footer" };
918
- function Et(e, i, t, a, l, n) {
919
- const o = u("el-input"), h = u("el-button"), c = u("MoreIcon"), f = u("el-popover"), y = u("FormItemLayout");
920
- return r(), m(y, {
940
+ }, Rt = { class: "popover-content" }, It = { class: "popover-subtitle" }, Et = { class: "popover-footer" };
941
+ function Wt(e, l, t, a, i, n) {
942
+ const r = u("el-input"), c = u("el-button"), h = u("MoreIcon"), f = u("el-popover"), y = u("FormItemLayout");
943
+ return o(), m(y, {
921
944
  label: t.label,
922
945
  "label-options": t.labelOptions,
923
946
  field: t.field,
924
947
  onFieldChange: n.handlefieldChange,
925
948
  "label-width": t.labelWidth,
926
949
  "input-width": t.inputWidth,
927
- direction: t.direction
950
+ direction: t.direction,
951
+ "label-align": t.labelAlign
928
952
  }, {
929
953
  default: p(() => [
930
- g(o, {
931
- modelValue: l.inputValue,
932
- "onUpdate:modelValue": i[1] || (i[1] = (V) => l.inputValue = V),
933
- size: l.getDefaultSize(),
954
+ g(r, {
955
+ modelValue: i.inputValue,
956
+ "onUpdate:modelValue": l[1] || (l[1] = (V) => i.inputValue = V),
957
+ size: i.getDefaultSize(),
934
958
  placeholder: t.placeholder,
935
- onKeyup: We(n.handleEnter, ["enter", "native"]),
959
+ onKeyup: Ne(n.handleEnter, ["enter", "native"]),
936
960
  clearable: "",
937
- class: "advanced-input"
961
+ class: "tm-input"
938
962
  }, ye({ _: 2 }, [
939
963
  n.shouldShowMultiple ? {
940
964
  name: "append",
941
965
  fn: p(() => [
942
966
  g(f, {
943
- visible: l.isExactMode,
967
+ visible: i.isExactMode,
944
968
  placement: "bottom-end",
945
969
  width: 260,
946
970
  trigger: "click",
947
971
  "onUpdate:visible": n.handleVisibleChange
948
972
  }, {
949
973
  reference: p(() => [
950
- g(c, { style: { cursor: "pointer" } })
974
+ g(h, { style: { cursor: "pointer" } })
951
975
  ]),
952
976
  default: p(() => [
953
- v("div", Ht, [
954
- v("p", Rt, T(l.t("accurateSearchTips")), 1),
955
- g(o, {
956
- size: l.getDefaultSize(),
977
+ v("div", Rt, [
978
+ v("p", It, T(i.t("accurateSearchTips")), 1),
979
+ g(r, {
980
+ size: i.getDefaultSize(),
957
981
  type: "textarea",
958
982
  rows: 8,
959
- modelValue: l.exactValue,
960
- "onUpdate:modelValue": i[0] || (i[0] = (V) => l.exactValue = V),
961
- placeholder: l.t("accurateSearchPlaceholder"),
983
+ modelValue: i.exactValue,
984
+ "onUpdate:modelValue": l[0] || (l[0] = (V) => i.exactValue = V),
985
+ placeholder: i.t("accurateSearchPlaceholder"),
962
986
  style: { "font-size": "12px" }
963
987
  }, null, 8, ["size", "modelValue", "placeholder"]),
964
- v("div", It, [
965
- g(h, {
988
+ v("div", Et, [
989
+ g(c, {
966
990
  style: { float: "left" },
967
- size: l.getCompatSize("mini"),
991
+ size: i.getCompatSize("mini"),
968
992
  onClick: n.handleClear
969
993
  }, {
970
994
  default: p(() => [
971
- z(T(l.t("clear")), 1)
995
+ z(T(i.t("clear")), 1)
972
996
  ]),
973
997
  _: 1
974
998
  }, 8, ["size", "onClick"]),
975
- g(h, {
976
- size: l.getCompatSize("mini"),
999
+ g(c, {
1000
+ size: i.getCompatSize("mini"),
977
1001
  onClick: n.handlePopoverClose
978
1002
  }, {
979
1003
  default: p(() => [
980
- z(T(l.t("cancel")), 1)
1004
+ z(T(i.t("cancel")), 1)
981
1005
  ]),
982
1006
  _: 1
983
1007
  }, 8, ["size", "onClick"]),
984
- g(h, {
1008
+ g(c, {
985
1009
  type: "primary",
986
- size: l.getCompatSize("mini"),
1010
+ size: i.getCompatSize("mini"),
987
1011
  onClick: n.handleExactSearch
988
1012
  }, {
989
1013
  default: p(() => [
990
- z(T(l.t("search")), 1)
1014
+ z(T(i.t("search")), 1)
991
1015
  ]),
992
1016
  _: 1
993
1017
  }, 8, ["size", "onClick"])
@@ -1002,10 +1026,10 @@ function Et(e, i, t, a, l, n) {
1002
1026
  ]), 1032, ["modelValue", "size", "placeholder", "onKeyup"])
1003
1027
  ]),
1004
1028
  _: 1
1005
- }, 8, ["label", "label-options", "field", "onFieldChange", "label-width", "input-width", "direction"]);
1029
+ }, 8, ["label", "label-options", "field", "onFieldChange", "label-width", "input-width", "direction", "label-align"]);
1006
1030
  }
1007
- const _e = /* @__PURE__ */ w(Mt, [["render", Et], ["__scopeId", "data-v-1a69f415"]]), { t: F } = H(), Wt = !1, Nt = !0, Pt = "modelValue", Bt = {
1008
- name: "TmAdvancedDateFilter",
1031
+ const _e = /* @__PURE__ */ w(Ht, [["render", Wt], ["__scopeId", "data-v-90ce9bc0"]]), { t: F } = H(), Nt = !1, Pt = !0, Bt = "modelValue", Ut = {
1032
+ name: "TmDateFilter",
1009
1033
  components: {
1010
1034
  FormItemLayout: E
1011
1035
  },
@@ -1128,6 +1152,11 @@ const _e = /* @__PURE__ */ w(Mt, [["render", Et], ["__scopeId", "data-v-1a69f415
1128
1152
  type: String,
1129
1153
  default: void 0,
1130
1154
  validator: (e) => !e || ["horizontal", "vertical"].includes(e)
1155
+ },
1156
+ labelAlign: {
1157
+ type: String,
1158
+ default: "right",
1159
+ validator: (e) => ["left", "right", "center"].includes(e)
1131
1160
  }
1132
1161
  },
1133
1162
  computed: {
@@ -1151,49 +1180,49 @@ const _e = /* @__PURE__ */ w(Mt, [["render", Et], ["__scopeId", "data-v-1a69f415
1151
1180
  },
1152
1181
  computedPickerOptions() {
1153
1182
  const e = {};
1154
- if (this.pastOnly && (e.disabledDate = (i) => i.getTime() > Date.now()), ["daterange", "datetimerange"].includes(this.type)) {
1155
- const i = this.type === "datetimerange";
1183
+ if (this.pastOnly && (e.disabledDate = (l) => l.getTime() > Date.now()), ["daterange", "datetimerange"].includes(this.type)) {
1184
+ const l = this.type === "datetimerange";
1156
1185
  e.shortcuts = this.shortcuts.length > 0 ? this.shortcuts : [
1157
1186
  {
1158
1187
  text: F("today"),
1159
1188
  onClick(t) {
1160
- const a = /* @__PURE__ */ new Date(), l = /* @__PURE__ */ new Date();
1161
- i && (l.setHours(0, 0, 0, 0), a.setHours(23, 59, 59, 999)), t.$emit("pick", [l, a]);
1189
+ const a = /* @__PURE__ */ new Date(), i = /* @__PURE__ */ new Date();
1190
+ l && (i.setHours(0, 0, 0, 0), a.setHours(23, 59, 59, 999)), t.$emit("pick", [i, a]);
1162
1191
  }
1163
1192
  },
1164
1193
  {
1165
1194
  text: F("yesterday"),
1166
1195
  onClick(t) {
1167
- const a = /* @__PURE__ */ new Date(), l = /* @__PURE__ */ new Date();
1168
- l.setTime(l.getTime() - 3600 * 1e3 * 24), a.setTime(a.getTime() - 3600 * 1e3 * 24), i && (l.setHours(0, 0, 0, 0), a.setHours(23, 59, 59, 999)), t.$emit("pick", [l, a]);
1196
+ const a = /* @__PURE__ */ new Date(), i = /* @__PURE__ */ new Date();
1197
+ i.setTime(i.getTime() - 3600 * 1e3 * 24), a.setTime(a.getTime() - 3600 * 1e3 * 24), l && (i.setHours(0, 0, 0, 0), a.setHours(23, 59, 59, 999)), t.$emit("pick", [i, a]);
1169
1198
  }
1170
1199
  },
1171
1200
  {
1172
1201
  text: F("last7days"),
1173
1202
  onClick(t) {
1174
- const a = /* @__PURE__ */ new Date(), l = /* @__PURE__ */ new Date();
1175
- l.setTime(l.getTime() - 3600 * 1e3 * 24 * 7), i && (l.setHours(0, 0, 0, 0), a.setHours(23, 59, 59, 999)), t.$emit("pick", [l, a]);
1203
+ const a = /* @__PURE__ */ new Date(), i = /* @__PURE__ */ new Date();
1204
+ i.setTime(i.getTime() - 3600 * 1e3 * 24 * 7), l && (i.setHours(0, 0, 0, 0), a.setHours(23, 59, 59, 999)), t.$emit("pick", [i, a]);
1176
1205
  }
1177
1206
  },
1178
1207
  {
1179
1208
  text: F("last30days"),
1180
1209
  onClick(t) {
1181
- const a = /* @__PURE__ */ new Date(), l = /* @__PURE__ */ new Date();
1182
- l.setTime(l.getTime() - 3600 * 1e3 * 24 * 30), i && (l.setHours(0, 0, 0, 0), a.setHours(23, 59, 59, 999)), t.$emit("pick", [l, a]);
1210
+ const a = /* @__PURE__ */ new Date(), i = /* @__PURE__ */ new Date();
1211
+ i.setTime(i.getTime() - 3600 * 1e3 * 24 * 30), l && (i.setHours(0, 0, 0, 0), a.setHours(23, 59, 59, 999)), t.$emit("pick", [i, a]);
1183
1212
  }
1184
1213
  },
1185
1214
  {
1186
1215
  text: F("thisMonth"),
1187
1216
  onClick(t) {
1188
- const a = /* @__PURE__ */ new Date(), l = /* @__PURE__ */ new Date();
1189
- l.setDate(1), i && (l.setHours(0, 0, 0, 0), a.setHours(23, 59, 59, 999)), t.$emit("pick", [l, a]);
1217
+ const a = /* @__PURE__ */ new Date(), i = /* @__PURE__ */ new Date();
1218
+ i.setDate(1), l && (i.setHours(0, 0, 0, 0), a.setHours(23, 59, 59, 999)), t.$emit("pick", [i, a]);
1190
1219
  }
1191
1220
  },
1192
1221
  {
1193
1222
  text: F("lastMonth"),
1194
1223
  onClick(t) {
1195
- const a = /* @__PURE__ */ new Date(), l = /* @__PURE__ */ new Date();
1196
- l.setMonth(l.getMonth() - 1), l.setDate(1), a.setDate(0), i && (l.setHours(0, 0, 0, 0), a.setHours(23, 59, 59, 999)), t.$emit("pick", [l, a]);
1224
+ const a = /* @__PURE__ */ new Date(), i = /* @__PURE__ */ new Date();
1225
+ i.setMonth(i.getMonth() - 1), i.setDate(1), a.setDate(0), l && (i.setHours(0, 0, 0, 0), a.setHours(23, 59, 59, 999)), t.$emit("pick", [i, a]);
1197
1226
  }
1198
1227
  }
1199
1228
  ];
@@ -1210,43 +1239,43 @@ const _e = /* @__PURE__ */ w(Mt, [["render", Et], ["__scopeId", "data-v-1a69f415
1210
1239
  {
1211
1240
  text: F("today"),
1212
1241
  value: () => {
1213
- const i = /* @__PURE__ */ new Date(), t = /* @__PURE__ */ new Date();
1214
- return e && (t.setHours(0, 0, 0, 0), i.setHours(23, 59, 59, 999)), [t, i];
1242
+ const l = /* @__PURE__ */ new Date(), t = /* @__PURE__ */ new Date();
1243
+ return e && (t.setHours(0, 0, 0, 0), l.setHours(23, 59, 59, 999)), [t, l];
1215
1244
  }
1216
1245
  },
1217
1246
  {
1218
1247
  text: F("yesterday"),
1219
1248
  value: () => {
1220
- const i = /* @__PURE__ */ new Date(), t = /* @__PURE__ */ new Date();
1221
- return t.setTime(t.getTime() - 3600 * 1e3 * 24), i.setTime(i.getTime() - 3600 * 1e3 * 24), e && (t.setHours(0, 0, 0, 0), i.setHours(23, 59, 59, 999)), [t, i];
1249
+ const l = /* @__PURE__ */ new Date(), t = /* @__PURE__ */ new Date();
1250
+ return t.setTime(t.getTime() - 3600 * 1e3 * 24), l.setTime(l.getTime() - 3600 * 1e3 * 24), e && (t.setHours(0, 0, 0, 0), l.setHours(23, 59, 59, 999)), [t, l];
1222
1251
  }
1223
1252
  },
1224
1253
  {
1225
1254
  text: F("last7days"),
1226
1255
  value: () => {
1227
- const i = /* @__PURE__ */ new Date(), t = /* @__PURE__ */ new Date();
1228
- return t.setTime(t.getTime() - 3600 * 1e3 * 24 * 7), e && (t.setHours(0, 0, 0, 0), i.setHours(23, 59, 59, 999)), [t, i];
1256
+ const l = /* @__PURE__ */ new Date(), t = /* @__PURE__ */ new Date();
1257
+ return t.setTime(t.getTime() - 3600 * 1e3 * 24 * 7), e && (t.setHours(0, 0, 0, 0), l.setHours(23, 59, 59, 999)), [t, l];
1229
1258
  }
1230
1259
  },
1231
1260
  {
1232
1261
  text: F("last30days"),
1233
1262
  value: () => {
1234
- const i = /* @__PURE__ */ new Date(), t = /* @__PURE__ */ new Date();
1235
- return t.setTime(t.getTime() - 3600 * 1e3 * 24 * 30), e && (t.setHours(0, 0, 0, 0), i.setHours(23, 59, 59, 999)), [t, i];
1263
+ const l = /* @__PURE__ */ new Date(), t = /* @__PURE__ */ new Date();
1264
+ return t.setTime(t.getTime() - 3600 * 1e3 * 24 * 30), e && (t.setHours(0, 0, 0, 0), l.setHours(23, 59, 59, 999)), [t, l];
1236
1265
  }
1237
1266
  },
1238
1267
  {
1239
1268
  text: F("thisMonth"),
1240
1269
  value: () => {
1241
- const i = /* @__PURE__ */ new Date(), t = /* @__PURE__ */ new Date();
1242
- return t.setDate(1), e && (t.setHours(0, 0, 0, 0), i.setHours(23, 59, 59, 999)), [t, i];
1270
+ const l = /* @__PURE__ */ new Date(), t = /* @__PURE__ */ new Date();
1271
+ return t.setDate(1), e && (t.setHours(0, 0, 0, 0), l.setHours(23, 59, 59, 999)), [t, l];
1243
1272
  }
1244
1273
  },
1245
1274
  {
1246
1275
  text: F("lastMonth"),
1247
1276
  value: () => {
1248
- const i = /* @__PURE__ */ new Date(), t = /* @__PURE__ */ new Date();
1249
- return t.setMonth(t.getMonth() - 1), t.setDate(1), i.setDate(0), e && (t.setHours(0, 0, 0, 0), i.setHours(23, 59, 59, 999)), [t, i];
1277
+ const l = /* @__PURE__ */ new Date(), t = /* @__PURE__ */ new Date();
1278
+ return t.setMonth(t.getMonth() - 1), t.setDate(1), l.setDate(0), e && (t.setHours(0, 0, 0, 0), l.setHours(23, 59, 59, 999)), [t, l];
1250
1279
  }
1251
1280
  }
1252
1281
  ];
@@ -1262,29 +1291,29 @@ const _e = /* @__PURE__ */ w(Mt, [["render", Et], ["__scopeId", "data-v-1a69f415
1262
1291
  return e;
1263
1292
  if (e) {
1264
1293
  if (this.type === "datetimerange" && Array.isArray(e))
1265
- return e.map((i) => {
1266
- if (typeof i == "string") {
1267
- const t = /* @__PURE__ */ new Date(), [a, l, n] = i.split(":").map(Number);
1294
+ return e.map((l) => {
1295
+ if (typeof l == "string") {
1296
+ const t = /* @__PURE__ */ new Date(), [a, i, n] = l.split(":").map(Number);
1268
1297
  return new Date(
1269
1298
  t.getFullYear(),
1270
1299
  t.getMonth(),
1271
1300
  t.getDate(),
1272
1301
  a,
1273
- l,
1302
+ i,
1274
1303
  n || 0
1275
1304
  );
1276
1305
  }
1277
- return i;
1306
+ return l;
1278
1307
  });
1279
1308
  if (this.type === "datetime" && typeof e == "string") {
1280
- const i = /* @__PURE__ */ new Date(), [t, a, l] = e.split(":").map(Number);
1309
+ const l = /* @__PURE__ */ new Date(), [t, a, i] = e.split(":").map(Number);
1281
1310
  return new Date(
1282
- i.getFullYear(),
1283
- i.getMonth(),
1284
- i.getDate(),
1311
+ l.getFullYear(),
1312
+ l.getMonth(),
1313
+ l.getDate(),
1285
1314
  t,
1286
1315
  a,
1287
- l || 0
1316
+ i || 0
1288
1317
  );
1289
1318
  }
1290
1319
  return e;
@@ -1297,10 +1326,10 @@ const _e = /* @__PURE__ */ w(Mt, [["render", Et], ["__scopeId", "data-v-1a69f415
1297
1326
  data() {
1298
1327
  return {
1299
1328
  t: F,
1300
- isVue2: Wt,
1301
- isVue3: Nt,
1329
+ isVue2: Nt,
1330
+ isVue3: Pt,
1302
1331
  getDefaultSize: k,
1303
- valueField: Pt
1332
+ valueField: Bt
1304
1333
  };
1305
1334
  },
1306
1335
  methods: {
@@ -1322,22 +1351,23 @@ const _e = /* @__PURE__ */ w(Mt, [["render", Et], ["__scopeId", "data-v-1a69f415
1322
1351
  }
1323
1352
  }
1324
1353
  };
1325
- function Ut(e, i, t, a, l, n) {
1326
- const o = u("el-date-picker"), h = u("FormItemLayout");
1327
- return r(), m(h, {
1354
+ function jt(e, l, t, a, i, n) {
1355
+ const r = u("el-date-picker"), c = u("FormItemLayout");
1356
+ return o(), m(c, {
1328
1357
  label: t.label,
1329
1358
  "label-options": t.labelOptions,
1330
1359
  field: t.field,
1331
1360
  onFieldChange: n.handleFieldChange,
1332
1361
  "label-width": t.labelWidth,
1333
1362
  "input-width": t.inputWidth,
1334
- direction: t.direction
1363
+ direction: t.direction,
1364
+ "label-align": t.labelAlign
1335
1365
  }, {
1336
1366
  default: p(() => [
1337
- g(o, {
1367
+ g(r, {
1338
1368
  "model-value": n.dateValue,
1339
1369
  type: t.type,
1340
- size: l.getDefaultSize(),
1370
+ size: i.getDefaultSize(),
1341
1371
  "range-separator": t.rangeSeparator,
1342
1372
  "start-placeholder": n.computedStartPlaceholder,
1343
1373
  "end-placeholder": n.computedEndPlaceholder,
@@ -1362,9 +1392,9 @@ function Ut(e, i, t, a, l, n) {
1362
1392
  }, null, 8, ["model-value", "type", "size", "range-separator", "start-placeholder", "end-placeholder", "placeholder", "shortcuts", "disabled-date", "format", "value-format", "disabled", "clearable", "readonly", "editable", "popper-class", "default-value", "default-time", "onUpdate:modelValue", "onChange", "onBlur", "onFocus"])
1363
1393
  ]),
1364
1394
  _: 1
1365
- }, 8, ["label", "label-options", "field", "onFieldChange", "label-width", "input-width", "direction"]);
1395
+ }, 8, ["label", "label-options", "field", "onFieldChange", "label-width", "input-width", "direction", "label-align"]);
1366
1396
  }
1367
- const Se = /* @__PURE__ */ w(Bt, [["render", Ut], ["__scopeId", "data-v-6d9d8fa1"]]), jt = !1, Jt = {
1397
+ const Se = /* @__PURE__ */ w(Ut, [["render", jt], ["__scopeId", "data-v-cd8a2978"]]), Jt = !1, Kt = {
1368
1398
  name: "TmCascaderFilter",
1369
1399
  components: {
1370
1400
  FormItemLayout: E
@@ -1424,11 +1454,16 @@ const Se = /* @__PURE__ */ w(Bt, [["render", Ut], ["__scopeId", "data-v-6d9d8fa1
1424
1454
  type: String,
1425
1455
  default: void 0,
1426
1456
  validator: (e) => !e || ["horizontal", "vertical"].includes(e)
1457
+ },
1458
+ labelAlign: {
1459
+ type: String,
1460
+ default: "right",
1461
+ validator: (e) => ["left", "right", "center"].includes(e)
1427
1462
  }
1428
1463
  },
1429
1464
  data() {
1430
1465
  return {
1431
- isVue2: jt,
1466
+ isVue2: Jt,
1432
1467
  getDefaultSize: k,
1433
1468
  selectedValue: this.value,
1434
1469
  optionsList: [],
@@ -1471,45 +1506,46 @@ const Se = /* @__PURE__ */ w(Bt, [["render", Ut], ["__scopeId", "data-v-6d9d8fa1
1471
1506
  if (typeof e == "function")
1472
1507
  try {
1473
1508
  this.loading = !0;
1474
- const i = await e();
1475
- Array.isArray(i) && (this.optionsList = i);
1476
- } catch (i) {
1477
- console.error(i);
1509
+ const l = await e();
1510
+ Array.isArray(l) && (this.optionsList = l);
1511
+ } catch (l) {
1512
+ console.error(l);
1478
1513
  } finally {
1479
1514
  this.loading = !1;
1480
1515
  }
1481
1516
  else Array.isArray(e) && (this.optionsList = e);
1482
1517
  }
1483
1518
  }
1484
- }, Kt = { class: "cascader" };
1485
- function Qt(e, i, t, a, l, n) {
1486
- const o = u("el-cascader"), h = u("FormItemLayout");
1487
- return r(), m(h, {
1519
+ }, Qt = { class: "cascader" };
1520
+ function qt(e, l, t, a, i, n) {
1521
+ const r = u("el-cascader"), c = u("FormItemLayout");
1522
+ return o(), m(c, {
1488
1523
  label: t.label,
1489
1524
  "label-width": t.labelWidth,
1490
1525
  "input-width": t.inputWidth,
1491
- direction: t.direction
1526
+ direction: t.direction,
1527
+ "label-align": t.labelAlign
1492
1528
  }, {
1493
1529
  default: p(() => [
1494
- v("div", Kt, [
1495
- g(o, _({
1530
+ v("div", Qt, [
1531
+ g(r, _({
1496
1532
  ref: "cascader",
1497
- modelValue: l.selectedValue,
1498
- "onUpdate:modelValue": i[0] || (i[0] = (c) => l.selectedValue = c)
1533
+ modelValue: i.selectedValue,
1534
+ "onUpdate:modelValue": l[0] || (l[0] = (h) => i.selectedValue = h)
1499
1535
  }, I(x({}, e.$attrs), {
1500
- size: l.getDefaultSize(),
1536
+ size: i.getDefaultSize(),
1501
1537
  filterable: t.filterable,
1502
1538
  clearable: t.clearable,
1503
1539
  collapseTags: t.collapseTags,
1504
1540
  collapseTagsTooltip: t.collapseTagsTooltip,
1505
1541
  props: n.cascaderProps,
1506
1542
  placeholder: t.placeholder,
1507
- options: l.optionsList,
1508
- loading: l.loading
1509
- }), M(l.isVue2 ? e.$listeners : {})), {
1510
- default: p(({ node: c, data: f }) => [
1543
+ options: i.optionsList,
1544
+ loading: i.loading
1545
+ }), M(i.isVue2 ? e.$listeners : {})), {
1546
+ default: p(({ node: h, data: f }) => [
1511
1547
  S(e.$slots, "default", {
1512
- node: c,
1548
+ node: h,
1513
1549
  data: f
1514
1550
  }, () => [
1515
1551
  v("span", null, T(f[n.propMap.label]), 1)
@@ -1520,9 +1556,9 @@ function Qt(e, i, t, a, l, n) {
1520
1556
  ])
1521
1557
  ]),
1522
1558
  _: 3
1523
- }, 8, ["label", "label-width", "input-width", "direction"]);
1559
+ }, 8, ["label", "label-width", "input-width", "direction", "label-align"]);
1524
1560
  }
1525
- const xe = /* @__PURE__ */ w(Jt, [["render", Qt], ["__scopeId", "data-v-7cde104c"]]), qt = !1, Yt = !0, Gt = {
1561
+ const xe = /* @__PURE__ */ w(Kt, [["render", qt], ["__scopeId", "data-v-7c915d17"]]), Yt = !1, Gt = !0, Xt = {
1526
1562
  name: "TmRadioFilter",
1527
1563
  components: {
1528
1564
  FormItemLayout: E
@@ -1569,12 +1605,17 @@ const xe = /* @__PURE__ */ w(Jt, [["render", Qt], ["__scopeId", "data-v-7cde104c
1569
1605
  type: String,
1570
1606
  default: void 0,
1571
1607
  validator: (e) => !e || ["horizontal", "vertical"].includes(e)
1608
+ },
1609
+ labelAlign: {
1610
+ type: String,
1611
+ default: "right",
1612
+ validator: (e) => ["left", "right", "center"].includes(e)
1572
1613
  }
1573
1614
  },
1574
1615
  data() {
1575
1616
  return {
1576
- isVue2: qt,
1577
- isVue3: Yt,
1617
+ isVue2: Yt,
1618
+ isVue3: Gt,
1578
1619
  getDefaultSize: k,
1579
1620
  selectedValue: this.value,
1580
1621
  optionsList: [],
@@ -1611,10 +1652,10 @@ const xe = /* @__PURE__ */ w(Jt, [["render", Qt], ["__scopeId", "data-v-7cde104c
1611
1652
  if (typeof e == "function")
1612
1653
  try {
1613
1654
  this.loading = !0;
1614
- const i = await e();
1615
- Array.isArray(i) && (this.optionsList = i);
1616
- } catch (i) {
1617
- console.error(i);
1655
+ const l = await e();
1656
+ Array.isArray(l) && (this.optionsList = l);
1657
+ } catch (l) {
1658
+ console.error(l);
1618
1659
  } finally {
1619
1660
  this.loading = !1;
1620
1661
  }
@@ -1622,25 +1663,26 @@ const xe = /* @__PURE__ */ w(Jt, [["render", Qt], ["__scopeId", "data-v-7cde104c
1622
1663
  }
1623
1664
  }
1624
1665
  };
1625
- function Xt(e, i, t, a, l, n) {
1626
- const o = u("el-radio-button"), h = u("el-radio-group"), c = u("FormItemLayout");
1627
- return r(), m(c, {
1666
+ function Zt(e, l, t, a, i, n) {
1667
+ const r = u("el-radio-button"), c = u("el-radio-group"), h = u("FormItemLayout");
1668
+ return o(), m(h, {
1628
1669
  label: t.label,
1629
1670
  "label-width": t.labelWidth,
1630
1671
  "input-width": t.inputWidth,
1631
- direction: t.direction
1672
+ direction: t.direction,
1673
+ "label-align": t.labelAlign
1632
1674
  }, {
1633
1675
  default: p(() => [
1634
- g(h, _({
1676
+ g(c, _({
1635
1677
  ref: "radioGroup",
1636
- modelValue: l.selectedValue,
1637
- "onUpdate:modelValue": i[0] || (i[0] = (f) => l.selectedValue = f)
1678
+ modelValue: i.selectedValue,
1679
+ "onUpdate:modelValue": l[0] || (l[0] = (f) => i.selectedValue = f)
1638
1680
  }, I(x({}, e.$attrs), {
1639
- size: l.getDefaultSize()
1640
- }), { class: "radio-group" }, M(l.isVue2 ? e.$listeners : {})), {
1681
+ size: i.getDefaultSize()
1682
+ }), { class: "radio-group" }, M(i.isVue2 ? e.$listeners : {})), {
1641
1683
  default: p(() => [
1642
- e.$slots.default ? S(e.$slots, "default", { key: 0 }, void 0, !0) : (r(!0), b(L, { key: 1 }, D(l.optionsList, (f) => (r(), m(o, _({ ref_for: !0 }, {
1643
- [l.isVue3 ? "value" : "label"]: f[n.propMap.value],
1684
+ e.$slots.default ? S(e.$slots, "default", { key: 0 }, void 0, !0) : (o(!0), b(L, { key: 1 }, A(i.optionsList, (f) => (o(), m(r, _({ ref_for: !0 }, {
1685
+ [i.isVue3 ? "value" : "label"]: f[n.propMap.value],
1644
1686
  disabled: f.disabled
1645
1687
  }, {
1646
1688
  style: { flex: "1" },
@@ -1658,9 +1700,9 @@ function Xt(e, i, t, a, l, n) {
1658
1700
  }, 16, ["modelValue"])
1659
1701
  ]),
1660
1702
  _: 3
1661
- }, 8, ["label", "label-width", "input-width", "direction"]);
1703
+ }, 8, ["label", "label-width", "input-width", "direction", "label-align"]);
1662
1704
  }
1663
- const Te = /* @__PURE__ */ w(Gt, [["render", Xt], ["__scopeId", "data-v-44b00fff"]]), Zt = !1, $t = !0, ei = {
1705
+ const Te = /* @__PURE__ */ w(Xt, [["render", Zt], ["__scopeId", "data-v-210a44fd"]]), $t = !1, el = !0, tl = {
1664
1706
  name: "TmCheckboxFilter",
1665
1707
  components: {
1666
1708
  FormItemLayout: E
@@ -1702,12 +1744,17 @@ const Te = /* @__PURE__ */ w(Gt, [["render", Xt], ["__scopeId", "data-v-44b00fff
1702
1744
  type: String,
1703
1745
  default: void 0,
1704
1746
  validator: (e) => !e || ["horizontal", "vertical"].includes(e)
1747
+ },
1748
+ labelAlign: {
1749
+ type: String,
1750
+ default: "right",
1751
+ validator: (e) => ["left", "right", "center"].includes(e)
1705
1752
  }
1706
1753
  },
1707
1754
  data() {
1708
1755
  return {
1709
- isVue2: Zt,
1710
- isVue3: $t,
1756
+ isVue2: $t,
1757
+ isVue3: el,
1711
1758
  getDefaultSize: k,
1712
1759
  selectedValue: this.value || [],
1713
1760
  optionsList: [],
@@ -1744,39 +1791,40 @@ const Te = /* @__PURE__ */ w(Gt, [["render", Xt], ["__scopeId", "data-v-44b00fff
1744
1791
  if (typeof e == "function")
1745
1792
  try {
1746
1793
  this.loading = !0;
1747
- const i = await e();
1748
- Array.isArray(i) && (this.optionsList = i);
1749
- } catch (i) {
1750
- console.error(i);
1794
+ const l = await e();
1795
+ Array.isArray(l) && (this.optionsList = l);
1796
+ } catch (l) {
1797
+ console.error(l);
1751
1798
  } finally {
1752
1799
  this.loading = !1;
1753
1800
  }
1754
1801
  else Array.isArray(e) && (this.optionsList = e);
1755
1802
  }
1756
1803
  }
1757
- }, ti = { class: "checkbox-content" };
1758
- function ii(e, i, t, a, l, n) {
1759
- const o = u("el-checkbox-button"), h = u("el-checkbox-group"), c = u("FormItemLayout");
1760
- return r(), m(c, {
1804
+ }, ll = { class: "checkbox-content" };
1805
+ function il(e, l, t, a, i, n) {
1806
+ const r = u("el-checkbox-button"), c = u("el-checkbox-group"), h = u("FormItemLayout");
1807
+ return o(), m(h, {
1761
1808
  label: t.label,
1762
1809
  "label-width": t.labelWidth,
1763
1810
  "input-width": t.inputWidth,
1764
- direction: t.direction
1811
+ direction: t.direction,
1812
+ "label-align": t.labelAlign
1765
1813
  }, {
1766
1814
  default: p(() => [
1767
- v("div", ti, [
1768
- g(h, _({
1815
+ v("div", ll, [
1816
+ g(c, _({
1769
1817
  ref: "checkboxGroup",
1770
- modelValue: l.selectedValue,
1771
- "onUpdate:modelValue": i[0] || (i[0] = (f) => l.selectedValue = f)
1818
+ modelValue: i.selectedValue,
1819
+ "onUpdate:modelValue": l[0] || (l[0] = (f) => i.selectedValue = f)
1772
1820
  }, I(x({}, e.$attrs), {
1773
- size: l.getDefaultSize()
1774
- }), M(l.isVue2 ? e.$listeners : {})), {
1821
+ size: i.getDefaultSize()
1822
+ }), M(i.isVue2 ? e.$listeners : {})), {
1775
1823
  default: p(() => [
1776
- e.$slots.default ? S(e.$slots, "default", { key: 0 }, void 0, !0) : (r(!0), b(L, { key: 1 }, D(l.optionsList, (f) => (r(), m(o, _({
1824
+ e.$slots.default ? S(e.$slots, "default", { key: 0 }, void 0, !0) : (o(!0), b(L, { key: 1 }, A(i.optionsList, (f) => (o(), m(r, _({
1777
1825
  key: f[n.propMap.value]
1778
1826
  }, { ref_for: !0 }, {
1779
- [l.isVue3 ? "value" : "label"]: f[n.propMap.value],
1827
+ [i.isVue3 ? "value" : "label"]: f[n.propMap.value],
1780
1828
  disabled: f.disabled
1781
1829
  }, { style: { flex: "1" } }), {
1782
1830
  default: p(() => [
@@ -1792,9 +1840,9 @@ function ii(e, i, t, a, l, n) {
1792
1840
  ])
1793
1841
  ]),
1794
1842
  _: 3
1795
- }, 8, ["label", "label-width", "input-width", "direction"]);
1843
+ }, 8, ["label", "label-width", "input-width", "direction", "label-align"]);
1796
1844
  }
1797
- const we = /* @__PURE__ */ w(ei, [["render", ii], ["__scopeId", "data-v-d9e8a314"]]), li = !1, ni = {
1845
+ const we = /* @__PURE__ */ w(tl, [["render", il], ["__scopeId", "data-v-39ef0641"]]), nl = !1, al = {
1798
1846
  name: "TmSwitchFilter",
1799
1847
  components: {
1800
1848
  FormItemLayout: E
@@ -1821,11 +1869,16 @@ const we = /* @__PURE__ */ w(ei, [["render", ii], ["__scopeId", "data-v-d9e8a314
1821
1869
  type: String,
1822
1870
  default: void 0,
1823
1871
  validator: (e) => !e || ["horizontal", "vertical"].includes(e)
1872
+ },
1873
+ labelAlign: {
1874
+ type: String,
1875
+ default: "right",
1876
+ validator: (e) => ["left", "right", "center"].includes(e)
1824
1877
  }
1825
1878
  },
1826
1879
  data() {
1827
1880
  return {
1828
- isVue2: li,
1881
+ isVue2: nl,
1829
1882
  getDefaultSize: k,
1830
1883
  switchValue: this.value
1831
1884
  };
@@ -1841,34 +1894,35 @@ const we = /* @__PURE__ */ w(ei, [["render", ii], ["__scopeId", "data-v-d9e8a314
1841
1894
  this.$emit("input", e), this.$emit("change", e);
1842
1895
  }
1843
1896
  }
1844
- }, ai = { class: "switch-content" };
1845
- function si(e, i, t, a, l, n) {
1846
- const o = u("el-switch"), h = u("FormItemLayout");
1847
- return r(), m(h, {
1897
+ }, sl = { class: "switch-content" };
1898
+ function rl(e, l, t, a, i, n) {
1899
+ const r = u("el-switch"), c = u("FormItemLayout");
1900
+ return o(), m(c, {
1848
1901
  label: t.label,
1849
1902
  "label-width": t.labelWidth,
1850
1903
  "input-width": t.inputWidth,
1851
- direction: t.direction
1904
+ direction: t.direction,
1905
+ "label-align": t.labelAlign
1852
1906
  }, {
1853
1907
  default: p(() => [
1854
- v("div", ai, [
1855
- g(o, _({
1908
+ v("div", sl, [
1909
+ g(r, _({
1856
1910
  ref: "switch",
1857
- modelValue: l.switchValue,
1858
- "onUpdate:modelValue": i[0] || (i[0] = (c) => l.switchValue = c)
1859
- }, e.$attrs, M(l.isVue2 ? e.$listeners : {}), {
1860
- size: l.getDefaultSize()
1911
+ modelValue: i.switchValue,
1912
+ "onUpdate:modelValue": l[0] || (l[0] = (h) => i.switchValue = h)
1913
+ }, e.$attrs, M(i.isVue2 ? e.$listeners : {}), {
1914
+ size: i.getDefaultSize()
1861
1915
  }), null, 16, ["modelValue", "size"])
1862
1916
  ])
1863
1917
  ]),
1864
1918
  _: 1
1865
- }, 8, ["label", "label-width", "input-width", "direction"]);
1919
+ }, 8, ["label", "label-width", "input-width", "direction", "label-align"]);
1866
1920
  }
1867
- const Ve = /* @__PURE__ */ w(ni, [["render", si], ["__scopeId", "data-v-9f2a4d09"]]), oi = !1, ri = !0, ge = "modelValue", te = "update:modelValue", ui = {
1921
+ const Ve = /* @__PURE__ */ w(al, [["render", rl], ["__scopeId", "data-v-7455db21"]]), ol = !1, ul = !0, ge = "modelValue", te = "update:modelValue", dl = {
1868
1922
  name: "TmTextareaFilter",
1869
1923
  components: {
1870
1924
  FormItemLayout: E,
1871
- CircleClose: je
1925
+ CircleClose: Je
1872
1926
  },
1873
1927
  props: {
1874
1928
  label: {
@@ -1891,11 +1945,7 @@ const Ve = /* @__PURE__ */ w(ni, [["render", si], ["__scopeId", "data-v-9f2a4d09
1891
1945
  type: Array,
1892
1946
  default: () => []
1893
1947
  },
1894
- // el-input textarea 特有属性
1895
- rows: {
1896
- type: Number,
1897
- default: 2
1898
- },
1948
+ // 不再支持rows配置,autosize已有默认配置,和该属性冲突
1899
1949
  autosize: {
1900
1950
  type: [Boolean, Object],
1901
1951
  default: () => ({
@@ -1953,12 +2003,17 @@ const Ve = /* @__PURE__ */ w(ni, [["render", si], ["__scopeId", "data-v-9f2a4d09
1953
2003
  type: String,
1954
2004
  default: void 0,
1955
2005
  validator: (e) => !e || ["horizontal", "vertical"].includes(e)
2006
+ },
2007
+ labelAlign: {
2008
+ type: String,
2009
+ default: "right",
2010
+ validator: (e) => ["left", "right", "center"].includes(e)
1956
2011
  }
1957
2012
  },
1958
2013
  data() {
1959
2014
  return {
1960
- isVue2: oi,
1961
- isVue3: ri,
2015
+ isVue2: ol,
2016
+ isVue3: ul,
1962
2017
  getDefaultSize: k,
1963
2018
  inputValue: this.value
1964
2019
  };
@@ -2009,28 +2064,28 @@ const Ve = /* @__PURE__ */ w(ni, [["render", si], ["__scopeId", "data-v-9f2a4d09
2009
2064
  this.$refs.textarea.select();
2010
2065
  }
2011
2066
  }
2012
- }, di = { class: "textarea" };
2013
- function ci(e, i, t, a, l, n) {
2014
- const o = u("el-input"), h = u("CircleClose"), c = u("el-icon"), f = u("FormItemLayout");
2015
- return r(), m(f, {
2067
+ }, hl = { class: "textarea" };
2068
+ function cl(e, l, t, a, i, n) {
2069
+ const r = u("el-input"), c = u("CircleClose"), h = u("el-icon"), f = u("FormItemLayout");
2070
+ return o(), m(f, {
2016
2071
  label: t.label,
2017
2072
  "label-options": t.labelOptions,
2018
2073
  field: t.field,
2019
2074
  onFieldChange: n.handleFieldChange,
2020
2075
  "label-width": t.labelWidth,
2021
2076
  "input-width": t.inputWidth,
2022
- direction: t.direction
2077
+ direction: t.direction,
2078
+ "label-align": t.labelAlign
2023
2079
  }, {
2024
2080
  default: p(() => [
2025
- v("div", di, [
2026
- g(o, _({
2081
+ v("div", hl, [
2082
+ g(r, _({
2027
2083
  ref: "textarea",
2028
- modelValue: l.inputValue,
2029
- "onUpdate:modelValue": i[0] || (i[0] = (y) => l.inputValue = y),
2030
- size: l.getDefaultSize(),
2084
+ modelValue: i.inputValue,
2085
+ "onUpdate:modelValue": l[0] || (l[0] = (y) => i.inputValue = y),
2086
+ size: i.getDefaultSize(),
2031
2087
  placeholder: t.placeholder,
2032
2088
  type: "textarea",
2033
- rows: t.rows,
2034
2089
  autosize: t.autosize,
2035
2090
  maxlength: t.maxlength,
2036
2091
  minlength: t.minlength,
@@ -2040,30 +2095,30 @@ function ci(e, i, t, a, l, n) {
2040
2095
  resize: t.resize,
2041
2096
  tabindex: t.tabindex,
2042
2097
  "validate-event": t.validateEvent
2043
- }, e.$attrs, M(l.isVue2 ? e.$listeners : {}), {
2098
+ }, e.$attrs, M(i.isVue2 ? e.$listeners : {}), {
2044
2099
  onInput: n.handleInput,
2045
2100
  onChange: n.handleChange,
2046
2101
  onFocus: n.handleFocus,
2047
2102
  onBlur: n.handleBlur,
2048
2103
  onClear: n.handleClear,
2049
2104
  class: "textarea-input"
2050
- }), null, 16, ["modelValue", "size", "placeholder", "rows", "autosize", "maxlength", "minlength", "show-word-limit", "readonly", "disabled", "resize", "tabindex", "validate-event", "onInput", "onChange", "onFocus", "onBlur", "onClear"]),
2051
- t.clearable && l.inputValue ? (r(), m(c, {
2105
+ }), null, 16, ["modelValue", "size", "placeholder", "autosize", "maxlength", "minlength", "show-word-limit", "readonly", "disabled", "resize", "tabindex", "validate-event", "onInput", "onChange", "onFocus", "onBlur", "onClear"]),
2106
+ t.clearable && i.inputValue ? (o(), m(h, {
2052
2107
  key: 0,
2053
2108
  class: "textarea-clear-icon",
2054
2109
  onClick: n.handleClear
2055
2110
  }, {
2056
2111
  default: p(() => [
2057
- g(h)
2112
+ g(c)
2058
2113
  ]),
2059
2114
  _: 1
2060
2115
  }, 8, ["onClick"])) : C("", !0)
2061
2116
  ])
2062
2117
  ]),
2063
2118
  _: 1
2064
- }, 8, ["label", "label-options", "field", "onFieldChange", "label-width", "input-width", "direction"]);
2119
+ }, 8, ["label", "label-options", "field", "onFieldChange", "label-width", "input-width", "direction", "label-align"]);
2065
2120
  }
2066
- const hi = /* @__PURE__ */ w(ui, [["render", ci], ["__scopeId", "data-v-dc5026ed"]]), fi = {
2121
+ const Fe = /* @__PURE__ */ w(dl, [["render", cl], ["__scopeId", "data-v-9b0ae8e6"]]), fl = {
2067
2122
  name: "DynamicSlot",
2068
2123
  props: {
2069
2124
  name: {
@@ -2076,20 +2131,20 @@ const hi = /* @__PURE__ */ w(ui, [["render", ci], ["__scopeId", "data-v-dc5026ed
2076
2131
  }
2077
2132
  },
2078
2133
  render(e) {
2079
- var l;
2080
- const i = (n) => {
2081
- var o;
2082
- return n ? (o = n.$slots) == null ? void 0 : o[this.name] : null;
2134
+ var i;
2135
+ const l = (n) => {
2136
+ var r;
2137
+ return n ? (r = n.$slots) == null ? void 0 : r[this.name] : null;
2083
2138
  }, t = (n) => {
2084
- var o, h, c, f;
2085
- return n ? ((h = (o = n.$) == null ? void 0 : o.type) == null ? void 0 : h.name) === "TmTable" || ((f = (c = n.$) == null ? void 0 : c.type) == null ? void 0 : f.__name) === "TmTable" : !1;
2139
+ var r, c, h, f;
2140
+ return n ? ((c = (r = n.$) == null ? void 0 : r.type) == null ? void 0 : c.name) === "TmTable" || ((f = (h = n.$) == null ? void 0 : h.type) == null ? void 0 : f.__name) === "TmTable" : !1;
2086
2141
  };
2087
- let a = i(this.$parent);
2142
+ let a = l(this.$parent);
2088
2143
  if (!a) {
2089
- let n = (l = this.$parent) == null ? void 0 : l.$parent;
2144
+ let n = (i = this.$parent) == null ? void 0 : i.$parent;
2090
2145
  for (; n && !a; ) {
2091
2146
  if (t(n)) {
2092
- a = i(n);
2147
+ a = l(n);
2093
2148
  break;
2094
2149
  }
2095
2150
  n = n.$parent;
@@ -2097,7 +2152,7 @@ const hi = /* @__PURE__ */ w(ui, [["render", ci], ["__scopeId", "data-v-dc5026ed
2097
2152
  }
2098
2153
  return a ? typeof a == "function" ? a(this.slotProps) : a : null;
2099
2154
  }
2100
- }, { t: pi } = H(), mi = !1, gi = !0, bi = [
2155
+ }, { t: pl } = H(), ml = !1, gl = !0, bl = [
2101
2156
  "date",
2102
2157
  "daterange",
2103
2158
  "datetime",
@@ -2109,18 +2164,18 @@ const hi = /* @__PURE__ */ w(ui, [["render", ci], ["__scopeId", "data-v-dc5026ed
2109
2164
  "years",
2110
2165
  "week",
2111
2166
  "monthrange"
2112
- ], yi = {
2167
+ ], yl = {
2113
2168
  name: "TmTableSearch",
2114
2169
  components: {
2115
2170
  TmSelect: Ce,
2116
- TmAdvancedInput: _e,
2117
- TmAdvancedDate: Se,
2171
+ TmInput: _e,
2172
+ TmDate: Se,
2118
2173
  TmCascader: xe,
2119
2174
  TmRadio: Te,
2120
2175
  TmCheckbox: we,
2121
2176
  TmSwitch: Ve,
2122
- TmTextarea: hi,
2123
- DynamicSlot: fi
2177
+ TmTextarea: Fe,
2178
+ DynamicSlot: fl
2124
2179
  },
2125
2180
  props: {
2126
2181
  disabled: {
@@ -2148,16 +2203,21 @@ const hi = /* @__PURE__ */ w(ui, [["render", ci], ["__scopeId", "data-v-dc5026ed
2148
2203
  type: String,
2149
2204
  default: void 0,
2150
2205
  validator: (e) => !e || ["horizontal", "vertical"].includes(e)
2206
+ },
2207
+ labelAlign: {
2208
+ type: String,
2209
+ default: "right",
2210
+ validator: (e) => ["left", "right", "center"].includes(e)
2151
2211
  }
2152
2212
  },
2153
2213
  data() {
2154
2214
  return {
2155
- t: pi,
2156
- isVue2: mi,
2157
- isVue3: gi,
2215
+ t: pl,
2216
+ isVue2: ml,
2217
+ isVue3: gl,
2158
2218
  getCompatSize: K,
2159
2219
  getDefaultSize: k,
2160
- DATE_TYPES: bi,
2220
+ DATE_TYPES: bl,
2161
2221
  // 用于存储初始默认值,重置时恢复
2162
2222
  defaultValues: {}
2163
2223
  };
@@ -2174,8 +2234,8 @@ const hi = /* @__PURE__ */ w(ui, [["render", ci], ["__scopeId", "data-v-dc5026ed
2174
2234
  // 合并参数的方法:单独配置 > 全局配置 > 默认值
2175
2235
  getLayoutProps() {
2176
2236
  return (e) => {
2177
- const i = {};
2178
- return e.labelWidth !== void 0 ? i.labelWidth = e.labelWidth : this.labelWidth !== void 0 && (i.labelWidth = this.labelWidth), e.inputWidth !== void 0 ? i.inputWidth = e.inputWidth : this.inputWidth !== void 0 && (i.inputWidth = this.inputWidth), e.direction !== void 0 ? i.direction = e.direction : this.direction !== void 0 && (i.direction = this.direction), i;
2237
+ const l = {};
2238
+ return e.labelWidth !== void 0 ? l.labelWidth = e.labelWidth : this.labelWidth !== void 0 && (l.labelWidth = this.labelWidth), e.inputWidth !== void 0 ? l.inputWidth = e.inputWidth : this.inputWidth !== void 0 && (l.inputWidth = this.inputWidth), e.direction !== void 0 ? l.direction = e.direction : this.direction !== void 0 && (l.direction = this.direction), e.labelAlign !== void 0 ? l.labelAlign = e.labelAlign : this.labelAlign !== void 0 && (l.labelAlign = this.labelAlign), l;
2179
2239
  };
2180
2240
  }
2181
2241
  },
@@ -2191,21 +2251,21 @@ const hi = /* @__PURE__ */ w(ui, [["render", ci], ["__scopeId", "data-v-dc5026ed
2191
2251
  const e = this.$slots.default;
2192
2252
  return e ? this.isVue2 ? !!e : e()[0].children.length > 0 : !1;
2193
2253
  },
2194
- handleUpdate(e, i, t) {
2254
+ handleUpdate(e, l, t) {
2195
2255
  const a = this.getFieldValue(e, t);
2196
2256
  a && this.$emit("update:search-form", I(x({}, this.computedSearchForm), {
2197
- [a]: i
2257
+ [a]: l
2198
2258
  }));
2199
2259
  },
2200
- handleUpdateDate(e, i) {
2201
- const t = i || [], a = this.getFieldValue(e, "start"), l = this.getFieldValue(e, "end"), n = this.getFieldValue(e, "value"), o = {};
2202
- a && (o[a] = t[0]), l && (o[l] = t[1]), n && (o[n] = t), this.$emit("update:search-form", x(x({}, this.computedSearchForm), o));
2260
+ handleUpdateDate(e, l) {
2261
+ const t = l || [], a = this.getFieldValue(e, "start"), i = this.getFieldValue(e, "end"), n = this.getFieldValue(e, "value"), r = {};
2262
+ a && (r[a] = t[0]), i && (r[i] = t[1]), n && (r[n] = t), this.$emit("update:search-form", x(x({}, this.computedSearchForm), r));
2203
2263
  },
2204
- getFieldValue(e, i) {
2264
+ getFieldValue(e, l) {
2205
2265
  if (typeof e == "string")
2206
2266
  return e;
2207
- if (e.fields && i in e.fields) {
2208
- const t = e.fields[i];
2267
+ if (e.fields && l in e.fields) {
2268
+ const t = e.fields[l];
2209
2269
  if (typeof t == "string")
2210
2270
  return t;
2211
2271
  if (Array.isArray(t))
@@ -2215,9 +2275,9 @@ const hi = /* @__PURE__ */ w(ui, [["render", ci], ["__scopeId", "data-v-dc5026ed
2215
2275
  }
2216
2276
  },
2217
2277
  // 获取字段默认值(仅支持新的fields结构)
2218
- getFieldDefault(e, i) {
2219
- if (e.fields && i in e.fields) {
2220
- const t = e.fields[i];
2278
+ getFieldDefault(e, l) {
2279
+ if (e.fields && l in e.fields) {
2280
+ const t = e.fields[l];
2221
2281
  if (Array.isArray(t) && t.length > 1)
2222
2282
  return t[1];
2223
2283
  if (t && typeof t == "object" && "default" in t)
@@ -2226,13 +2286,13 @@ const hi = /* @__PURE__ */ w(ui, [["render", ci], ["__scopeId", "data-v-dc5026ed
2226
2286
  },
2227
2287
  // 检查是否存在对应名称的插槽
2228
2288
  hasSearchSlot(e) {
2229
- const i = "$slots";
2230
- if (this[i][e])
2289
+ const l = "$slots";
2290
+ if (this[l][e])
2231
2291
  return !0;
2232
2292
  let a = this.$parent;
2233
2293
  for (; a; ) {
2234
- const l = a[i];
2235
- if (a.$options.name === "TmTable" && (l != null && l[e]))
2294
+ const i = a[l];
2295
+ if (a.$options.name === "TmTable" && (i != null && i[e]))
2236
2296
  return !0;
2237
2297
  a = a.$parent;
2238
2298
  }
@@ -2242,42 +2302,42 @@ const hi = /* @__PURE__ */ w(ui, [["render", ci], ["__scopeId", "data-v-dc5026ed
2242
2302
  initDefaultValues() {
2243
2303
  if (!this.searchColumns || !this.searchColumns.length) return;
2244
2304
  const e = {};
2245
- this.searchColumns.forEach((i) => {
2246
- if (typeof i == "string" || !i.fields) return;
2247
- const t = this.getFieldValue(i, "value"), a = this.getFieldValue(i, "label");
2248
- if (i.type === "input" && i.labelOptions && i.labelOptions.length > 0) {
2249
- const n = i.labelOptions[0];
2305
+ this.searchColumns.forEach((l) => {
2306
+ if (typeof l == "string" || !l.fields) return;
2307
+ const t = this.getFieldValue(l, "value"), a = this.getFieldValue(l, "label");
2308
+ if (l.type === "input" && l.labelOptions && l.labelOptions.length > 0) {
2309
+ const n = l.labelOptions[0];
2250
2310
  if (a)
2251
2311
  if (a in this.computedSearchForm)
2252
2312
  e[a] = this.computedSearchForm[a];
2253
2313
  else {
2254
- const o = this.getFieldDefault(i, "label");
2255
- o !== void 0 ? e[a] = o : n && n.value !== void 0 && (e[a] = n.value);
2314
+ const r = this.getFieldDefault(l, "label");
2315
+ r !== void 0 ? e[a] = r : n && n.value !== void 0 && (e[a] = n.value);
2256
2316
  }
2257
2317
  t && !(t in this.computedSearchForm) && (e[t] = "");
2258
- } else if (this.isDateType(i.type) && i.labelOptions && i.labelOptions.length > 0) {
2259
- const n = i.labelOptions[0];
2318
+ } else if (this.isDateType(l.type) && l.labelOptions && l.labelOptions.length > 0) {
2319
+ const n = l.labelOptions[0];
2260
2320
  if (t && !(t in this.computedSearchForm) && (e[t] = []), a)
2261
2321
  if (a in this.computedSearchForm)
2262
2322
  e[a] = this.computedSearchForm[a];
2263
2323
  else {
2264
- const o = this.getFieldDefault(i, "label");
2265
- o !== void 0 ? e[a] = o : n && n.value !== void 0 && (e[a] = n.value);
2324
+ const r = this.getFieldDefault(l, "label");
2325
+ r !== void 0 ? e[a] = r : n && n.value !== void 0 && (e[a] = n.value);
2266
2326
  }
2267
- } else if (i.type === "select" && i.labelOptions && i.labelOptions.length > 0) {
2268
- const n = i.labelOptions[0];
2269
- if (t && !(t in this.computedSearchForm) && (e[t] = i.multiple ? [] : ""), a)
2327
+ } else if (l.type === "select" && l.labelOptions && l.labelOptions.length > 0) {
2328
+ const n = l.labelOptions[0];
2329
+ if (t && !(t in this.computedSearchForm) && (e[t] = l.multiple ? [] : ""), a)
2270
2330
  if (a in this.computedSearchForm)
2271
2331
  e[a] = this.computedSearchForm[a];
2272
2332
  else {
2273
- const o = this.getFieldDefault(i, "label");
2274
- o !== void 0 ? e[a] = o : n && n.value !== void 0 && (e[a] = n.value);
2333
+ const r = this.getFieldDefault(l, "label");
2334
+ r !== void 0 ? e[a] = r : n && n.value !== void 0 && (e[a] = n.value);
2275
2335
  }
2276
2336
  }
2277
- const l = this.getFieldDefault(i, "value");
2278
- if (t && l !== void 0 && !(t in this.computedSearchForm) ? this.isDateType(i.type) && !Array.isArray(l) ? e[t] = [] : i.type === "checkbox" && !Array.isArray(l) ? e[t] = l ? [l] : [] : i.type === "switch" && typeof l != "boolean" ? e[t] = !!l : e[t] = l : t && !(t in this.computedSearchForm) && (i.type === "checkbox" ? e[t] = [] : i.type === "switch" && (e[t] = !1)), this.isDateType(i.type)) {
2279
- const n = this.getFieldValue(i, "start"), o = this.getFieldValue(i, "end"), h = this.getFieldDefault(i, "start"), c = this.getFieldDefault(i, "end");
2280
- n && h !== void 0 && !(n in this.computedSearchForm) && (e[n] = h), o && c !== void 0 && !(o in this.computedSearchForm) && (e[o] = c);
2337
+ const i = this.getFieldDefault(l, "value");
2338
+ if (t && i !== void 0 && !(t in this.computedSearchForm) ? this.isDateType(l.type) && !Array.isArray(i) ? e[t] = [] : l.type === "checkbox" && !Array.isArray(i) ? e[t] = i ? [i] : [] : l.type === "switch" && typeof i != "boolean" ? e[t] = !!i : e[t] = i : t && !(t in this.computedSearchForm) && (l.type === "checkbox" ? e[t] = [] : l.type === "switch" && (e[t] = !1)), this.isDateType(l.type)) {
2339
+ const n = this.getFieldValue(l, "start"), r = this.getFieldValue(l, "end"), c = this.getFieldDefault(l, "start"), h = this.getFieldDefault(l, "end");
2340
+ n && c !== void 0 && !(n in this.computedSearchForm) && (e[n] = c), r && h !== void 0 && !(r in this.computedSearchForm) && (e[r] = h);
2281
2341
  }
2282
2342
  }), this.defaultValues = e, this.$emit("update:search-form", x(x({}, e), this.computedSearchForm));
2283
2343
  },
@@ -2296,37 +2356,37 @@ const hi = /* @__PURE__ */ w(ui, [["render", ci], ["__scopeId", "data-v-dc5026ed
2296
2356
  this.$emit("update:search-form", x({}, this.defaultValues)), this.$emit("reset");
2297
2357
  }
2298
2358
  }
2299
- }, vi = { class: "search-content" }, Ci = { class: "search-actions" };
2300
- function _i(e, i, t, a, l, n) {
2301
- const o = u("dynamic-slot"), h = u("tm-advanced-input"), c = u("tm-advanced-date"), f = u("tm-select"), y = u("tm-cascader"), V = u("tm-radio"), O = u("tm-checkbox"), U = u("tm-switch"), j = u("tm-textarea"), W = u("el-button");
2302
- return r(), b("div", {
2303
- class: X(["table-search", `table-search--${l.isVue2 ? "v2" : "v3"}`])
2359
+ }, vl = { class: "search-content" }, Cl = { class: "search-actions" };
2360
+ function _l(e, l, t, a, i, n) {
2361
+ const r = u("dynamic-slot"), c = u("tm-Input"), h = u("tm-date"), f = u("tm-select"), y = u("tm-cascader"), V = u("tm-radio"), O = u("tm-checkbox"), U = u("tm-switch"), j = u("tm-textarea"), W = u("el-button");
2362
+ return o(), b("div", {
2363
+ class: X(["table-search", `table-search--${i.isVue2 ? "v2" : "v3"}`])
2304
2364
  }, [
2305
- v("div", vi, [
2306
- n.hasDefaultSlot() ? S(e.$slots, "default", { key: 0 }, void 0, !0) : t.searchColumns && t.searchColumns.length ? (r(!0), b(L, { key: 1 }, D(t.searchColumns, (s, N) => (r(), b(L, null, [
2307
- typeof s == "string" ? (r(), b("div", {
2365
+ v("div", vl, [
2366
+ n.hasDefaultSlot() ? S(e.$slots, "default", { key: 0 }, void 0, !0) : t.searchColumns && t.searchColumns.length ? (o(!0), b(L, { key: 1 }, A(t.searchColumns, (s, N) => (o(), b(L, null, [
2367
+ typeof s == "string" ? (o(), b("div", {
2308
2368
  key: `str-${s}-${N}`,
2309
2369
  class: "search-item"
2310
2370
  }, [
2311
- (r(), m(o, {
2371
+ (o(), m(r, {
2312
2372
  name: `search-${s}`,
2313
2373
  "slot-props": { searchForm: t.searchForm },
2314
2374
  key: s
2315
2375
  }, null, 8, ["name", "slot-props"]))
2316
- ])) : (r(), b("div", {
2376
+ ])) : (o(), b("div", {
2317
2377
  key: `obj-${N}`,
2318
2378
  class: "search-item"
2319
2379
  }, [
2320
- s.fields ? (r(), b(L, { key: 0 }, [
2321
- n.hasSearchSlot(`search-${n.getFieldValue(s, "value")}`) ? (r(), m(o, {
2380
+ s.fields ? (o(), b(L, { key: 0 }, [
2381
+ n.hasSearchSlot(`search-${n.getFieldValue(s, "value")}`) ? (o(), m(r, {
2322
2382
  name: `search-${n.getFieldValue(s, "value")}`,
2323
2383
  "slot-props": { searchForm: t.searchForm, col: s },
2324
2384
  key: n.getFieldValue(s, "value")
2325
- }, null, 8, ["name", "slot-props"])) : (r(), b("div", {
2385
+ }, null, 8, ["name", "slot-props"])) : (o(), b("div", {
2326
2386
  style: { display: "flex" },
2327
2387
  key: n.getFieldValue(s, "value") || `col-${N}`
2328
2388
  }, [
2329
- s.type === "input" ? (r(), m(h, _({
2389
+ s.type === "input" ? (o(), m(c, _({
2330
2390
  key: 0,
2331
2391
  label: s.label,
2332
2392
  value: n.computedSearchForm[n.getFieldValue(s, "value")],
@@ -2338,7 +2398,7 @@ function _i(e, i, t, a, l, n) {
2338
2398
  placeholder: s.placeholder,
2339
2399
  onSearch: n.handleSearch
2340
2400
  }, { ref_for: !0 }, n.getLayoutProps(s)), null, 16, ["label", "value", "field", "onValueChange", "onFieldChange", "multiple", "labelOptions", "placeholder", "onSearch"])) : C("", !0),
2341
- n.isDateType(s.type) ? (r(), m(c, _({
2401
+ n.isDateType(s.type) ? (o(), m(h, _({
2342
2402
  key: 1,
2343
2403
  type: s.type,
2344
2404
  label: s.label,
@@ -2367,7 +2427,7 @@ function _i(e, i, t, a, l, n) {
2367
2427
  "past-only": s.pastOnly,
2368
2428
  format: s.format
2369
2429
  }, { ref_for: !0 }, n.getLayoutProps(s)), null, 16, ["type", "label", "value", "field", "start", "end", "onFieldChange", "onValueChange", "onStartChange", "onEndChange", "labelOptions", "start-placeholder", "end-placeholder", "placeholder", "range-separator", "disabled", "clearable", "readonly", "editable", "align", "popper-class", "default-value", "default-time", "shortcuts", "past-only", "format"])) : C("", !0),
2370
- s.type === "select" ? (r(), m(f, _({
2430
+ s.type === "select" ? (o(), m(f, _({
2371
2431
  key: 2,
2372
2432
  label: s.label,
2373
2433
  modelValue: n.computedSearchForm[n.getFieldValue(s, "value")],
@@ -2382,7 +2442,7 @@ function _i(e, i, t, a, l, n) {
2382
2442
  clearable: s.clearable,
2383
2443
  onFieldChange: (d) => n.handleUpdate(s, d, "label")
2384
2444
  }, { ref_for: !0 }, n.getLayoutProps(s)), null, 16, ["label", "modelValue", "onUpdate:modelValue", "field", "options", "labelOptions", "placeholder", "multiple", "show-check-all", "value-on-clear", "clearable", "onFieldChange"])) : C("", !0),
2385
- s.type === "cascader" ? (r(), m(y, _({
2445
+ s.type === "cascader" ? (o(), m(y, _({
2386
2446
  key: 3,
2387
2447
  modelValue: n.computedSearchForm[n.getFieldValue(s, "value")],
2388
2448
  "onUpdate:modelValue": (d) => n.computedSearchForm[n.getFieldValue(s, "value")] = d,
@@ -2393,7 +2453,7 @@ function _i(e, i, t, a, l, n) {
2393
2453
  placeholder: s.placeholder,
2394
2454
  "show-check-all": s.checkAll
2395
2455
  }, { ref_for: !0 }, n.getLayoutProps(s)), null, 16, ["modelValue", "onUpdate:modelValue", "label", "options", "labelOptions", "props", "placeholder", "show-check-all"])) : C("", !0),
2396
- s.type === "radio" ? (r(), m(V, _({
2456
+ s.type === "radio" ? (o(), m(V, _({
2397
2457
  key: 4,
2398
2458
  modelValue: n.computedSearchForm[n.getFieldValue(s, "value")],
2399
2459
  "onUpdate:modelValue": (d) => n.computedSearchForm[n.getFieldValue(s, "value")] = d,
@@ -2401,7 +2461,7 @@ function _i(e, i, t, a, l, n) {
2401
2461
  options: s.options,
2402
2462
  props: s.props
2403
2463
  }, { ref_for: !0 }, n.getLayoutProps(s)), null, 16, ["modelValue", "onUpdate:modelValue", "label", "options", "props"])) : C("", !0),
2404
- s.type === "checkbox" ? (r(), m(O, _({
2464
+ s.type === "checkbox" ? (o(), m(O, _({
2405
2465
  key: 5,
2406
2466
  modelValue: n.computedSearchForm[n.getFieldValue(s, "value")],
2407
2467
  "onUpdate:modelValue": (d) => n.computedSearchForm[n.getFieldValue(s, "value")] = d,
@@ -2409,7 +2469,7 @@ function _i(e, i, t, a, l, n) {
2409
2469
  options: s.options,
2410
2470
  props: s.props
2411
2471
  }, { ref_for: !0 }, n.getLayoutProps(s)), null, 16, ["modelValue", "onUpdate:modelValue", "label", "options", "props"])) : C("", !0),
2412
- s.type === "switch" ? (r(), m(U, _({
2472
+ s.type === "switch" ? (o(), m(U, _({
2413
2473
  key: 6,
2414
2474
  modelValue: n.computedSearchForm[n.getFieldValue(s, "value")],
2415
2475
  "onUpdate:modelValue": (d) => n.computedSearchForm[n.getFieldValue(s, "value")] = d,
@@ -2419,7 +2479,7 @@ function _i(e, i, t, a, l, n) {
2419
2479
  "active-color": s.activeColor,
2420
2480
  "inactive-color": s.inactiveColor
2421
2481
  }, { ref_for: !0 }, n.getLayoutProps(s)), null, 16, ["modelValue", "onUpdate:modelValue", "active-text", "inactive-text", "label", "active-color", "inactive-color"])) : C("", !0),
2422
- s.type === "textarea" ? (r(), m(j, _({
2482
+ s.type === "textarea" ? (o(), m(j, _({
2423
2483
  key: 7,
2424
2484
  modelValue: n.computedSearchForm[n.getFieldValue(s, "value")],
2425
2485
  "onUpdate:modelValue": (d) => n.computedSearchForm[n.getFieldValue(s, "value")] = d,
@@ -2427,7 +2487,6 @@ function _i(e, i, t, a, l, n) {
2427
2487
  label: s.label,
2428
2488
  labelOptions: s.labelOptions,
2429
2489
  placeholder: s.placeholder,
2430
- rows: s.rows,
2431
2490
  autosize: s.autosize,
2432
2491
  maxlength: s.maxlength,
2433
2492
  minlength: s.minlength,
@@ -2437,31 +2496,31 @@ function _i(e, i, t, a, l, n) {
2437
2496
  resize: s.resize,
2438
2497
  clearable: s.clearable,
2439
2498
  onFieldChange: (d) => n.handleUpdate(s, d, "label")
2440
- }, { ref_for: !0 }, n.getLayoutProps(s)), null, 16, ["modelValue", "onUpdate:modelValue", "field", "label", "labelOptions", "placeholder", "rows", "autosize", "maxlength", "minlength", "show-word-limit", "readonly", "disabled", "resize", "clearable", "onFieldChange"])) : C("", !0)
2499
+ }, { ref_for: !0 }, n.getLayoutProps(s)), null, 16, ["modelValue", "onUpdate:modelValue", "field", "label", "labelOptions", "placeholder", "autosize", "maxlength", "minlength", "show-word-limit", "readonly", "disabled", "resize", "clearable", "onFieldChange"])) : C("", !0)
2441
2500
  ]))
2442
- ], 64)) : (r(), b("div", {
2501
+ ], 64)) : (o(), b("div", {
2443
2502
  key: `error-${N}`,
2444
2503
  class: "search-error-message"
2445
2504
  }, " 缺少 fields 配置,无法渲染此组件 "))
2446
2505
  ]))
2447
2506
  ], 64))), 256)) : C("", !0),
2448
- v("div", Ci, [
2507
+ v("div", Cl, [
2449
2508
  g(W, {
2450
2509
  type: "primary",
2451
- size: l.getDefaultSize(),
2510
+ size: i.getDefaultSize(),
2452
2511
  onClick: n.handleSearch
2453
2512
  }, {
2454
2513
  default: p(() => [
2455
- z(T(l.t("query")), 1)
2514
+ z(T(i.t("query")), 1)
2456
2515
  ]),
2457
2516
  _: 1
2458
2517
  }, 8, ["size", "onClick"]),
2459
2518
  g(W, {
2460
- size: l.getDefaultSize(),
2519
+ size: i.getDefaultSize(),
2461
2520
  onClick: n.handleReset
2462
2521
  }, {
2463
2522
  default: p(() => [
2464
- z(T(l.t("reset")), 1)
2523
+ z(T(i.t("reset")), 1)
2465
2524
  ]),
2466
2525
  _: 1
2467
2526
  }, 8, ["size", "onClick"])
@@ -2469,7 +2528,7 @@ function _i(e, i, t, a, l, n) {
2469
2528
  ])
2470
2529
  ], 2);
2471
2530
  }
2472
- const Fe = /* @__PURE__ */ w(yi, [["render", _i], ["__scopeId", "data-v-4de92fdd"]]), Si = !1, xi = {
2531
+ const ze = /* @__PURE__ */ w(yl, [["render", _l], ["__scopeId", "data-v-be7a7198"]]), Sl = !1, xl = {
2473
2532
  name: "TablePagination",
2474
2533
  props: {
2475
2534
  current: {
@@ -2491,7 +2550,7 @@ const Fe = /* @__PURE__ */ w(yi, [["render", _i], ["__scopeId", "data-v-4de92fdd
2491
2550
  },
2492
2551
  data() {
2493
2552
  return {
2494
- isVue2: Si,
2553
+ isVue2: Sl,
2495
2554
  getCompatSize: K
2496
2555
  };
2497
2556
  },
@@ -2503,26 +2562,26 @@ const Fe = /* @__PURE__ */ w(yi, [["render", _i], ["__scopeId", "data-v-4de92fdd
2503
2562
  this.$emit("current-change", e);
2504
2563
  }
2505
2564
  }
2506
- }, Ti = { class: "tm-pagination" };
2507
- function wi(e, i, t, a, l, n) {
2508
- const o = u("el-pagination");
2509
- return r(), b("div", Ti, [
2510
- g(o, _(e.$attrs, M(l.isVue2 ? e.$listeners : {}), {
2565
+ }, Tl = { class: "tm-pagination" };
2566
+ function wl(e, l, t, a, i, n) {
2567
+ const r = u("el-pagination");
2568
+ return o(), b("div", Tl, [
2569
+ g(r, _(e.$attrs, M(i.isVue2 ? e.$listeners : {}), {
2511
2570
  style: { "text-align": "right" },
2512
2571
  "current-page": t.current,
2513
2572
  "page-size": t.pageSize,
2514
2573
  total: t.total,
2515
2574
  "page-sizes": [10, 20, 50, 100, 300, 500, 1e3, 2e3],
2516
- size: l.getCompatSize("mini"),
2575
+ size: i.getCompatSize("mini"),
2517
2576
  layout: "total, sizes, prev, pager, next, jumper",
2518
2577
  onSizeChange: n.handleSizeChange,
2519
- "onUpdate:currentPage": i[0] || (i[0] = (h) => e.$emit("update:current", h)),
2520
- "onUpdate:pageSize": i[1] || (i[1] = (h) => e.$emit("update:pageSize", h)),
2578
+ "onUpdate:currentPage": l[0] || (l[0] = (c) => e.$emit("update:current", c)),
2579
+ "onUpdate:pageSize": l[1] || (l[1] = (c) => e.$emit("update:pageSize", c)),
2521
2580
  onCurrentChange: n.handleCurrentChange
2522
2581
  }), null, 16, ["current-page", "page-size", "total", "size", "onSizeChange", "onCurrentChange"])
2523
2582
  ]);
2524
2583
  }
2525
- const Vi = /* @__PURE__ */ w(xi, [["render", wi], ["__scopeId", "data-v-4dbdf6e7"]]), Fi = {
2584
+ const Vl = /* @__PURE__ */ w(xl, [["render", wl], ["__scopeId", "data-v-4dbdf6e7"]]), Fl = {
2526
2585
  name: "TmTableMenu",
2527
2586
  props: {
2528
2587
  size: {
@@ -2530,36 +2589,36 @@ const Vi = /* @__PURE__ */ w(xi, [["render", wi], ["__scopeId", "data-v-4dbdf6e7
2530
2589
  default: "mini"
2531
2590
  }
2532
2591
  }
2533
- }, zi = {
2592
+ }, zl = {
2534
2593
  size: "small",
2535
2594
  class: "tm-table-menu",
2536
2595
  inline: ""
2537
- }, Li = { class: "left" }, ki = { class: "right" };
2538
- function Oi(e, i, t, a, l, n) {
2539
- return r(), b("div", zi, [
2540
- v("div", Li, [
2596
+ }, Ll = { class: "left" }, kl = { class: "right" };
2597
+ function Ol(e, l, t, a, i, n) {
2598
+ return o(), b("div", zl, [
2599
+ v("div", Ll, [
2541
2600
  S(e.$slots, "left", {}, void 0, !0)
2542
2601
  ]),
2543
- v("div", ki, [
2602
+ v("div", kl, [
2544
2603
  S(e.$slots, "right", {}, void 0, !0)
2545
2604
  ])
2546
2605
  ]);
2547
2606
  }
2548
- const Di = /* @__PURE__ */ w(Fi, [["render", Oi], ["__scopeId", "data-v-579dd2c3"]]), Y = (e) => e ? e.props || {} : {}, ie = (e, i) => {
2549
- e && (e.props || (e.props = {}), typeof i == "object" && Object.assign(e.props, i));
2607
+ const Al = /* @__PURE__ */ w(Fl, [["render", Ol], ["__scopeId", "data-v-579dd2c3"]]), Y = (e) => e ? e.props || {} : {}, le = (e, l) => {
2608
+ e && (e.props || (e.props = {}), typeof l == "object" && Object.assign(e.props, l));
2550
2609
  }, G = {
2551
2610
  // 默认实现:使用localStorage获取配置
2552
2611
  getTableConfig(e) {
2553
2612
  try {
2554
- const i = localStorage.getItem(`tm-table-config-${e}`);
2613
+ const l = localStorage.getItem(`tm-table-config-${e}`);
2555
2614
  return Promise.resolve({
2556
2615
  data: {
2557
2616
  code: 200,
2558
- data: i
2617
+ data: l
2559
2618
  }
2560
2619
  });
2561
- } catch (i) {
2562
- return Promise.reject(i);
2620
+ } catch (l) {
2621
+ return Promise.reject(l);
2563
2622
  }
2564
2623
  },
2565
2624
  // 默认实现:使用localStorage保存配置
@@ -2571,24 +2630,24 @@ const Di = /* @__PURE__ */ w(Fi, [["render", Oi], ["__scopeId", "data-v-579dd2c3
2571
2630
  message: "success"
2572
2631
  }
2573
2632
  });
2574
- } catch (i) {
2575
- return Promise.reject(i);
2633
+ } catch (l) {
2634
+ return Promise.reject(l);
2576
2635
  }
2577
2636
  }
2578
- }, Ai = (e) => G.getTableConfig(e.key), Mi = (e) => G.setTableConfig(e), Hi = (e) => {
2637
+ }, Dl = (e) => G.getTableConfig(e.key), Ml = (e) => G.setTableConfig(e), Hl = (e) => {
2579
2638
  e && (typeof e.getTableConfig == "function" && (G.getTableConfig = e.getTableConfig), typeof e.setTableConfig == "function" && (G.setTableConfig = e.setTableConfig));
2580
- }, { t: Ri } = H(), Ii = !1, Ei = !0, Wi = {
2581
- formatter: (e, i, t, a) => [void 0, null, ""].includes(t) ? "-" : t
2582
- }, Ni = {
2639
+ }, { t: Rl } = H(), Il = !1, El = !0, Wl = {
2640
+ formatter: (e, l, t, a) => [void 0, null, ""].includes(t) ? "-" : t
2641
+ }, Nl = {
2583
2642
  name: "TmColumnConfig",
2584
2643
  components: {
2585
- MoveIcon: lt,
2586
- FixedLeftIcon: at,
2587
- FixedRightIcon: st,
2644
+ MoveIcon: nt,
2645
+ FixedLeftIcon: st,
2646
+ FixedRightIcon: rt,
2588
2647
  UploadIcon: ot,
2589
- DownloadIcon: rt,
2590
- DeleteIcon: ut,
2591
- MenuIcon: tt,
2648
+ DownloadIcon: ut,
2649
+ DeleteIcon: dt,
2650
+ MenuIcon: lt,
2592
2651
  tmEllipsisText: $
2593
2652
  },
2594
2653
  props: {
@@ -2626,9 +2685,9 @@ const Di = /* @__PURE__ */ w(Fi, [["render", Oi], ["__scopeId", "data-v-579dd2c3
2626
2685
  },
2627
2686
  data() {
2628
2687
  return {
2629
- t: Ri,
2630
- isVue2: Ii,
2631
- isVue3: Ei,
2688
+ t: Rl,
2689
+ isVue2: Il,
2690
+ isVue3: El,
2632
2691
  getDefaultSize: k,
2633
2692
  getCompatSize: K,
2634
2693
  buttonType: { link: !0, type: "primary" },
@@ -2700,9 +2759,9 @@ const Di = /* @__PURE__ */ w(Fi, [["render", Oi], ["__scopeId", "data-v-579dd2c3
2700
2759
  * 查找数组中满足条件的最后一个元素的索引
2701
2760
  * 用于兼容旧版JS环境中不支持findLastIndex的情况
2702
2761
  */
2703
- findLastIndex(e, i) {
2762
+ findLastIndex(e, l) {
2704
2763
  for (let t = e.length - 1; t >= 0; t--)
2705
- if (i(e[t], t, e))
2764
+ if (l(e[t], t, e))
2706
2765
  return t;
2707
2766
  return -1;
2708
2767
  },
@@ -2721,33 +2780,33 @@ const Di = /* @__PURE__ */ w(Fi, [["render", Oi], ["__scopeId", "data-v-579dd2c3
2721
2780
  // 处理原始列数据
2722
2781
  processOriginalColumns() {
2723
2782
  const e = this.columns || [];
2724
- let i = {};
2783
+ let l = {};
2725
2784
  this.defaultColumnsConfig = e.filter((t) => {
2726
2785
  const a = Y(t);
2727
2786
  return !(!a.prop || this.ignoredColumnConfigTypes.includes(a.type));
2728
2787
  }).map((t, a) => {
2729
- const l = Y(t), n = x(x({}, Wi), l);
2730
- ie(t, n), l.prop && (i[l.prop] = t);
2731
- const o = l.hasOwnProperty("visible") ? l.visible !== !1 : !0;
2788
+ const i = Y(t), n = x(x({}, Wl), i);
2789
+ le(t, n), i.prop && (l[i.prop] = t);
2790
+ const r = i.hasOwnProperty("visible") ? i.visible !== !1 : !0;
2732
2791
  return {
2733
- prop: l.prop,
2792
+ prop: i.prop,
2734
2793
  // label: attrs.label, // 移除label,避免国际化导致比较不一致
2735
- fixed: l.fixed || "",
2794
+ fixed: i.fixed || "",
2736
2795
  sort: a,
2737
- cancellable: l.hasOwnProperty("cancellable") ? l.cancellable : !0,
2738
- visible: o
2796
+ cancellable: i.hasOwnProperty("cancellable") ? i.cancellable : !0,
2797
+ visible: r
2739
2798
  };
2740
- }), this.columnMap = i;
2799
+ }), this.columnMap = l;
2741
2800
  },
2742
2801
  // 加载列配置
2743
2802
  loadColumnConfig() {
2744
- Ai({
2803
+ Dl({
2745
2804
  key: this.computedTableKey
2746
2805
  }).then((e) => {
2747
2806
  var t;
2748
2807
  if (e.data.code !== 200) return;
2749
- let i = JSON.parse(((t = e.data) == null ? void 0 : t.data) || null) || {};
2750
- i.columnsConfig && JSON.stringify(this.defaultColumnsConfig) === JSON.stringify(i.defaultColumnsConfig) ? this.tableColumns = i.columnsConfig.map((a) => x({}, a)) : this.tableColumns = this.defaultColumnsConfig.map((a) => x({}, a)), this.processedColumns = this.applyColumnConfig(this.tableColumns), this.isConfigLoaded = !0, this.$emit("complete", {
2808
+ let l = JSON.parse(((t = e.data) == null ? void 0 : t.data) || null) || {};
2809
+ l.columnsConfig && JSON.stringify(this.defaultColumnsConfig) === JSON.stringify(l.defaultColumnsConfig) ? this.tableColumns = l.columnsConfig.map((a) => x({}, a)) : this.tableColumns = this.defaultColumnsConfig.map((a) => x({}, a)), this.processedColumns = this.applyColumnConfig(this.tableColumns), this.isConfigLoaded = !0, this.$emit("complete", {
2751
2810
  columns: this.processedColumns,
2752
2811
  isInitialLoad: !0
2753
2812
  });
@@ -2758,31 +2817,31 @@ const Di = /* @__PURE__ */ w(Fi, [["render", Oi], ["__scopeId", "data-v-579dd2c3
2758
2817
  });
2759
2818
  });
2760
2819
  },
2761
- applyColumnConfig(e, i = !1) {
2762
- let t = this.columns.filter((l) => {
2763
- const n = Y(l);
2820
+ applyColumnConfig(e, l = !1) {
2821
+ let t = this.columns.filter((i) => {
2822
+ const n = Y(i);
2764
2823
  return this.ignoredColumnConfigTypes.includes(n.type);
2765
2824
  }), a = [];
2766
- return [...e].sort((l, n) => {
2767
- const o = l.sort !== void 0 ? l.sort : 1 / 0, h = n.sort !== void 0 ? n.sort : 1 / 0;
2768
- return o - h;
2769
- }).forEach((l) => {
2770
- if (l.prop) {
2771
- let n = this.columnMap[l.prop];
2772
- n && (ie(n, {
2773
- fixed: l.fixed || void 0,
2774
- visible: l.visible
2775
- }), (!i && l.visible || i) && a.push(n));
2825
+ return [...e].sort((i, n) => {
2826
+ const r = i.sort !== void 0 ? i.sort : 1 / 0, c = n.sort !== void 0 ? n.sort : 1 / 0;
2827
+ return r - c;
2828
+ }).forEach((i) => {
2829
+ if (i.prop) {
2830
+ let n = this.columnMap[i.prop];
2831
+ n && (le(n, {
2832
+ fixed: i.fixed || void 0,
2833
+ visible: i.visible
2834
+ }), (!l && i.visible || l) && a.push(n));
2776
2835
  }
2777
- }), t.forEach((l) => {
2778
- ie(l, { visible: !0 });
2836
+ }), t.forEach((i) => {
2837
+ le(i, { visible: !0 });
2779
2838
  }), [...t, ...a];
2780
2839
  },
2781
2840
  crateSortable() {
2782
2841
  const e = this.$refs.sortListRef;
2783
2842
  if (!e) return;
2784
2843
  this.sortable && (this.sortable.destroy(), this.sortable = null);
2785
- const i = new R(e, {
2844
+ const l = new R(e, {
2786
2845
  ghostClass: "blue-background-class",
2787
2846
  animation: 150,
2788
2847
  // 动画持续时间,毫秒
@@ -2799,36 +2858,36 @@ const Di = /* @__PURE__ */ w(Fi, [["render", Oi], ["__scopeId", "data-v-579dd2c3
2799
2858
  group: "columns",
2800
2859
  dragClass: "sortable-drag",
2801
2860
  onStart: ({ item: t }) => {
2802
- const a = t.getAttribute("data-prop"), l = this.sortedTableColumns.find(
2861
+ const a = t.getAttribute("data-prop"), i = this.sortedTableColumns.find(
2803
2862
  (n) => n.prop === a
2804
2863
  );
2805
- this.isDraggingFrozen = l && l.fixed === "left", this.isDraggingFrozenRight = l && l.fixed === "right", this.draggedItemIndex = Array.from(e.children).indexOf(t), t.classList.add("sortable-drag");
2864
+ this.isDraggingFrozen = i && i.fixed === "left", this.isDraggingFrozenRight = i && i.fixed === "right", this.draggedItemIndex = Array.from(e.children).indexOf(t), t.classList.add("sortable-drag");
2806
2865
  },
2807
2866
  onMove: (t) => {
2808
- const { target: a, related: l } = t;
2809
- if (!a || !l)
2867
+ const { target: a, related: i } = t;
2868
+ if (!a || !i)
2810
2869
  return !1;
2811
- const n = l ? l.getAttribute("data-prop") : null, o = n ? this.sortedTableColumns.find((f) => f.prop === n) : null, h = o && o.fixed === "left", c = o && o.fixed === "right";
2812
- return this.isDraggingFrozen && !h || this.isDraggingFrozenRight && !c || !this.isDraggingFrozen && !this.isDraggingFrozenRight && (h || c) ? (a.classList.add("no-drop-zone"), !1) : (document.querySelectorAll(".no-drop-zone").forEach((f) => {
2870
+ const n = i ? i.getAttribute("data-prop") : null, r = n ? this.sortedTableColumns.find((f) => f.prop === n) : null, c = r && r.fixed === "left", h = r && r.fixed === "right";
2871
+ return this.isDraggingFrozen && !c || this.isDraggingFrozenRight && !h || !this.isDraggingFrozen && !this.isDraggingFrozenRight && (c || h) ? (a.classList.add("no-drop-zone"), !1) : (document.querySelectorAll(".no-drop-zone").forEach((f) => {
2813
2872
  f.classList.remove("no-drop-zone");
2814
2873
  }), !0);
2815
2874
  },
2816
- onEnd: ({ item: t, newIndex: a, oldIndex: l }) => {
2817
- if (a === void 0 || l === void 0 || a < 0 || l < 0 || a >= this.sortedTableColumns.length || l >= this.sortedTableColumns.length)
2875
+ onEnd: ({ item: t, newIndex: a, oldIndex: i }) => {
2876
+ if (a === void 0 || i === void 0 || a < 0 || i < 0 || a >= this.sortedTableColumns.length || i >= this.sortedTableColumns.length)
2818
2877
  return;
2819
2878
  document.querySelectorAll(".no-drop-zone").forEach((V) => {
2820
2879
  V.classList.remove("no-drop-zone");
2821
2880
  }), t.classList.remove("sortable-drag");
2822
- const n = this.sortedTableColumns[l], o = n.fixed === "left", h = n.fixed === "right", c = a > 0 ? this.sortedTableColumns[a - 1] : null, f = a < this.sortedTableColumns.length - 1 ? this.sortedTableColumns[a + 1] : null;
2881
+ const n = this.sortedTableColumns[i], r = n.fixed === "left", c = n.fixed === "right", h = a > 0 ? this.sortedTableColumns[a - 1] : null, f = a < this.sortedTableColumns.length - 1 ? this.sortedTableColumns[a + 1] : null;
2823
2882
  let y = !1;
2824
- if (o ? (c && c.fixed !== "left" || f && f.fixed === "right") && (y = !0) : h ? (c && c.fixed !== "right" || f && f.fixed !== "right") && (y = !0) : (c && c.fixed === "right" || f && f.fixed === "left") && (y = !0), y) {
2883
+ if (r ? (h && h.fixed !== "left" || f && f.fixed === "right") && (y = !0) : c ? (h && h.fixed !== "right" || f && f.fixed !== "right") && (y = !0) : (h && h.fixed === "right" || f && f.fixed === "left") && (y = !0), y) {
2825
2884
  this.rollbackSort();
2826
2885
  return;
2827
2886
  }
2828
2887
  this.updateSortAfterDrag();
2829
2888
  }
2830
2889
  });
2831
- this.sortable = i;
2890
+ this.sortable = l;
2832
2891
  },
2833
2892
  rollbackSort() {
2834
2893
  this.sortedTableColumns = JSON.parse(JSON.stringify(this.columnsCopy));
@@ -2837,7 +2896,7 @@ const Di = /* @__PURE__ */ w(Fi, [["render", Oi], ["__scopeId", "data-v-579dd2c3
2837
2896
  const e = this.$refs.sortListRef;
2838
2897
  if (!e) return;
2839
2898
  Array.from(e.children || []).filter((t) => t && t.dataset && t.dataset.prop).map((t) => t.dataset.prop).forEach((t, a) => {
2840
- this.sortedTableColumns.some((l) => l.prop === t ? (l.sort = a, !0) : !1);
2899
+ this.sortedTableColumns.some((i) => i.prop === t ? (i.sort = a, !0) : !1);
2841
2900
  }), this.columnsCopy = JSON.parse(JSON.stringify(this.sortedTableColumns)), this.$emit("on-sort-change", this.sortedTableColumns);
2842
2901
  },
2843
2902
  // 移除了handleSearch方法,改用计算属性filteredSortedTableColumns
@@ -2846,13 +2905,13 @@ const Di = /* @__PURE__ */ w(Fi, [["render", Oi], ["__scopeId", "data-v-579dd2c3
2846
2905
  },
2847
2906
  // 初始化排序后的列数据
2848
2907
  initSortedTableColumns() {
2849
- this.tableColumns.forEach((e, i) => {
2850
- e.sort === void 0 && (e.sort = i);
2851
- }), this.sortedTableColumns = [...this.tableColumns].sort((e, i) => e.fixed === "left" && i.fixed !== "left" ? -1 : e.fixed !== "left" && i.fixed === "left" || e.fixed === "right" && i.fixed !== "right" ? 1 : e.fixed !== "right" && i.fixed === "right" ? -1 : e.sort - i.sort);
2908
+ this.tableColumns.forEach((e, l) => {
2909
+ e.sort === void 0 && (e.sort = l);
2910
+ }), this.sortedTableColumns = [...this.tableColumns].sort((e, l) => e.fixed === "left" && l.fixed !== "left" ? -1 : e.fixed !== "left" && l.fixed === "left" || e.fixed === "right" && l.fixed !== "right" ? 1 : e.fixed !== "right" && l.fixed === "right" ? -1 : e.sort - l.sort);
2852
2911
  },
2853
2912
  setPlacement() {
2854
- const i = this.$refs.operationRef.$el.getBoundingClientRect();
2855
- (window.innerHeight || document.documentElement.clientHeight) - (i.bottom - window.scrollY) > 512 ? this.placement = "bottom" : this.placement = "left";
2913
+ const l = this.$refs.operationRef.$el.getBoundingClientRect();
2914
+ (window.innerHeight || document.documentElement.clientHeight) - (l.bottom - window.scrollY) > 512 ? this.placement = "bottom" : this.placement = "left";
2856
2915
  },
2857
2916
  handleVisibleChange(e) {
2858
2917
  this.popoverVisible = e;
@@ -2864,7 +2923,7 @@ const Di = /* @__PURE__ */ w(Fi, [["render", Oi], ["__scopeId", "data-v-579dd2c3
2864
2923
  "mousemove",
2865
2924
  window.sortableGlobalMouseMove
2866
2925
  );
2867
- } catch (i) {
2926
+ } catch (l) {
2868
2927
  }
2869
2928
  })(), this.$nextTick(() => {
2870
2929
  this.crateSortable();
@@ -2884,99 +2943,99 @@ const Di = /* @__PURE__ */ w(Fi, [["render", Oi], ["__scopeId", "data-v-579dd2c3
2884
2943
  }
2885
2944
  },
2886
2945
  handleSelectAll() {
2887
- const e = this.tableColumns.some((i) => !i.visible);
2888
- this.tableColumns.forEach((i) => {
2889
- i.cancellable && (i.visible = e);
2946
+ const e = this.tableColumns.some((l) => !l.visible);
2947
+ this.tableColumns.forEach((l) => {
2948
+ l.cancellable && (l.visible = e);
2890
2949
  });
2891
2950
  },
2892
2951
  handleRestoreDefault() {
2893
2952
  this.tableColumns = JSON.parse(JSON.stringify(this.defaultColumnsConfig)), this.sortedTableColumns = [...this.tableColumns].sort(
2894
- (e, i) => e.sort - i.sort
2953
+ (e, l) => e.sort - l.sort
2895
2954
  );
2896
2955
  },
2897
2956
  // 判断是否可以置顶
2898
- canMoveTop(e, i) {
2899
- if (i === 0) return !1;
2957
+ canMoveTop(e, l) {
2958
+ if (l === 0) return !1;
2900
2959
  if (e.fixed === "left") {
2901
- const t = this.sortedTableColumns[i - 1];
2960
+ const t = this.sortedTableColumns[l - 1];
2902
2961
  return t && t.fixed === "left";
2903
2962
  }
2904
2963
  if (!e.fixed) {
2905
- const t = this.sortedTableColumns[i - 1];
2964
+ const t = this.sortedTableColumns[l - 1];
2906
2965
  return t && t.fixed === "left" ? !1 : t && !t.fixed;
2907
2966
  }
2908
2967
  return e.fixed === "right";
2909
2968
  },
2910
2969
  // 修改置顶方法,确保右侧固定列置顶时会取消固定
2911
- moveTop(e, i) {
2970
+ moveTop(e, l) {
2912
2971
  const t = this.sortedTableColumns, a = e.prop;
2913
2972
  if (e.fixed === "right" && (e.fixed = ""), e.fixed === "left")
2914
- t.unshift(t.splice(i, 1)[0]);
2973
+ t.unshift(t.splice(l, 1)[0]);
2915
2974
  else {
2916
- const l = this.findLastIndex(
2975
+ const i = this.findLastIndex(
2917
2976
  this.sortedTableColumns,
2918
2977
  (n) => n.fixed === "left"
2919
2978
  );
2920
2979
  t.splice(
2921
- l + 1,
2980
+ i + 1,
2922
2981
  0,
2923
- t.splice(i, 1)[0]
2982
+ t.splice(l, 1)[0]
2924
2983
  );
2925
2984
  }
2926
2985
  this.updateSortValues(), this.columnsCopy = JSON.parse(JSON.stringify(this.sortedTableColumns)), this.$emit("on-sort-change", this.sortedTableColumns), this.$nextTick(() => {
2927
- const l = this.$refs.sortListRef;
2928
- if (l) {
2929
- const n = Array.from(l.children).find(
2930
- (o) => o.dataset && o.dataset.prop === a
2986
+ const i = this.$refs.sortListRef;
2987
+ if (i) {
2988
+ const n = Array.from(i.children).find(
2989
+ (r) => r.dataset && r.dataset.prop === a
2931
2990
  );
2932
2991
  n && n.scrollIntoView({ behavior: "smooth", block: "nearest" });
2933
2992
  }
2934
2993
  });
2935
2994
  },
2936
2995
  frozenLeftHandle(e) {
2937
- const i = this.sortedTableColumns, t = i.splice(e, 1)[0];
2996
+ const l = this.sortedTableColumns, t = l.splice(e, 1)[0];
2938
2997
  if (t.fixed = t.fixed === "left" ? "" : "left", t.fixed === "left") {
2939
2998
  const a = this.findLastIndex(
2940
2999
  this.sortedTableColumns,
2941
- (l) => l.fixed === "left"
3000
+ (i) => i.fixed === "left"
2942
3001
  );
2943
- i.splice(a + 1, 0, t);
3002
+ l.splice(a + 1, 0, t);
2944
3003
  } else {
2945
3004
  const a = this.findLastIndex(
2946
3005
  this.sortedTableColumns,
2947
- (l) => l.fixed === "left"
3006
+ (i) => i.fixed === "left"
2948
3007
  );
2949
- i.splice(a + 1, 0, t);
3008
+ l.splice(a + 1, 0, t);
2950
3009
  }
2951
3010
  this.updateSortValues(), this.columnsCopy = JSON.parse(JSON.stringify(this.sortedTableColumns)), this.$emit("on-sort-change", this.sortedTableColumns);
2952
3011
  },
2953
3012
  frozenRightHandle(e) {
2954
- const i = this.sortedTableColumns, t = i.splice(e, 1)[0];
3013
+ const l = this.sortedTableColumns, t = l.splice(e, 1)[0];
2955
3014
  if (t.fixed = t.fixed === "right" ? "" : "right", t.fixed === "right") {
2956
- const a = i.findIndex(
2957
- (l) => l.fixed === "right"
3015
+ const a = l.findIndex(
3016
+ (i) => i.fixed === "right"
2958
3017
  );
2959
- a === -1 ? i.push(t) : i.splice(a, 0, t);
3018
+ a === -1 ? l.push(t) : l.splice(a, 0, t);
2960
3019
  } else {
2961
- const a = i.findIndex(
2962
- (l) => l.fixed === "right"
3020
+ const a = l.findIndex(
3021
+ (i) => i.fixed === "right"
2963
3022
  );
2964
- a === -1 ? i.push(t) : i.splice(a, 0, t);
3023
+ a === -1 ? l.push(t) : l.splice(a, 0, t);
2965
3024
  }
2966
3025
  this.updateSortValues(), this.columnsCopy = JSON.parse(JSON.stringify(this.sortedTableColumns)), this.$emit("on-sort-change", this.sortedTableColumns);
2967
3026
  },
2968
3027
  onSave() {
2969
- var i;
3028
+ var l;
2970
3029
  this.updateSortValues();
2971
- const e = (i = this.tableColumns) == null ? void 0 : i.map((t) => {
3030
+ const e = (l = this.tableColumns) == null ? void 0 : l.map((t) => {
2972
3031
  const a = this.sortedTableColumns.find(
2973
- (h) => h.prop === t.prop
3032
+ (c) => c.prop === t.prop
2974
3033
  );
2975
3034
  a && (t.sort = a.sort, t.fixed = a.fixed, t.visible = a.visible);
2976
- const o = t, { label: l } = o;
2977
- return ue(o, ["label"]);
3035
+ const r = t, { label: i } = r;
3036
+ return ue(r, ["label"]);
2978
3037
  });
2979
- Mi({
3038
+ Ml({
2980
3039
  key: this.computedTableKey,
2981
3040
  info: JSON.stringify({
2982
3041
  columnsConfig: e,
@@ -2991,8 +3050,8 @@ const Di = /* @__PURE__ */ w(Fi, [["render", Oi], ["__scopeId", "data-v-579dd2c3
2991
3050
  },
2992
3051
  // 直接更新排序值,不依赖DOM结构
2993
3052
  updateSortValues() {
2994
- this.sortedTableColumns.forEach((e, i) => {
2995
- e.sort = i;
3053
+ this.sortedTableColumns.forEach((e, l) => {
3054
+ e.sort = l;
2996
3055
  });
2997
3056
  }
2998
3057
  },
@@ -3007,41 +3066,41 @@ const Di = /* @__PURE__ */ w(Fi, [["render", Oi], ["__scopeId", "data-v-579dd2c3
3007
3066
  } catch (e) {
3008
3067
  }
3009
3068
  }
3010
- }, Pi = {
3069
+ }, Pl = {
3011
3070
  key: 0,
3012
3071
  class: "container"
3013
- }, Bi = { class: "main-container" }, Ui = { class: "left-content" }, ji = { class: "title" }, Ji = { class: "option-list" }, Ki = { style: { height: "100%", "overflow-y": "auto" } }, Qi = { class: "right-content" }, qi = { class: "search-box" }, Yi = {
3072
+ }, Bl = { class: "main-container" }, Ul = { class: "left-content" }, jl = { class: "title" }, Jl = { class: "option-list" }, Kl = { style: { height: "100%", "overflow-y": "auto" } }, Ql = { class: "right-content" }, ql = { class: "search-box" }, Yl = {
3014
3073
  key: 0,
3015
3074
  class: "tips"
3016
- }, Gi = {
3075
+ }, Gl = {
3017
3076
  class: "sort-list",
3018
3077
  ref: "sortListRef"
3019
- }, Xi = ["data-prop"], Zi = {
3078
+ }, Xl = ["data-prop"], Zl = {
3020
3079
  key: 0,
3021
3080
  class: "sort-item"
3022
- }, $i = { class: "row-title" }, el = { class: "operation-btns" }, tl = { class: "footer" }, il = { class: "footer-left" }, ll = { class: "footer-right" }, nl = { style: { display: "inline-block", "margin-left": "10px" } };
3023
- function al(e, i, t, a, l, n) {
3024
- const o = u("el-button"), h = u("TmEllipsisText"), c = u("el-checkbox"), f = u("el-input"), y = u("MoveIcon"), V = u("DeleteIcon"), O = u("el-tooltip"), U = u("UploadIcon"), j = u("FixedLeftIcon"), W = u("FixedRightIcon"), s = u("MenuIcon"), N = u("el-popover");
3025
- return r(), m(N, _({ "popper-class": "column-config-popover" }, {
3026
- [l.isVue3 ? "visible" : "value"]: l.popoverVisible
3081
+ }, $l = { class: "row-title" }, ei = { class: "operation-btns" }, ti = { class: "footer" }, li = { class: "footer-left" }, ii = { class: "footer-right" }, ni = { style: { display: "inline-block", "margin-left": "10px" } };
3082
+ function ai(e, l, t, a, i, n) {
3083
+ const r = u("el-button"), c = u("TmEllipsisText"), h = u("el-checkbox"), f = u("el-input"), y = u("MoveIcon"), V = u("DeleteIcon"), O = u("el-tooltip"), U = u("UploadIcon"), j = u("FixedLeftIcon"), W = u("FixedRightIcon"), s = u("MenuIcon"), N = u("el-popover");
3084
+ return o(), m(N, _({ "popper-class": "column-config-popover" }, {
3085
+ [i.isVue3 ? "visible" : "value"]: i.popoverVisible
3027
3086
  }, M({
3028
- [l.isVue3 ? "update:visible" : "input"]: n.handleVisibleChange
3087
+ [i.isVue3 ? "update:visible" : "input"]: n.handleVisibleChange
3029
3088
  }), {
3030
3089
  width: 680,
3031
3090
  "show-arrow": !1,
3032
- placement: l.placement,
3091
+ placement: i.placement,
3033
3092
  trigger: "click",
3034
3093
  onShow: n.handlePopoverShow,
3035
3094
  onHide: n.handlePopoverHide
3036
3095
  }), {
3037
3096
  reference: p(() => [
3038
- v("div", nl, [
3097
+ v("div", ni, [
3039
3098
  g(O, _({
3040
- content: l.t("columnSetting")
3041
- }, l.afterOpenDelay, { placement: "top" }), {
3099
+ content: i.t("columnSetting")
3100
+ }, i.afterOpenDelay, { placement: "top" }), {
3042
3101
  default: p(() => [
3043
- g(o, {
3044
- size: l.getDefaultSize(),
3102
+ g(r, {
3103
+ size: i.getDefaultSize(),
3045
3104
  ref: "operationRef",
3046
3105
  circle: ""
3047
3106
  }, {
@@ -3056,26 +3115,26 @@ function al(e, i, t, a, l, n) {
3056
3115
  ])
3057
3116
  ]),
3058
3117
  default: p(() => [
3059
- l.popoverVisible ? (r(), b("div", Pi, [
3060
- v("div", Bi, [
3061
- v("div", Ui, [
3062
- v("div", ji, [
3063
- v("span", null, T(l.t("SelectableFields")) + "(" + T(l.tableColumns.length) + ")", 1),
3064
- g(o, _({ style: { "margin-left": "10px" } }, l.buttonType, { onClick: n.handleSelectAll }), {
3118
+ i.popoverVisible ? (o(), b("div", Pl, [
3119
+ v("div", Bl, [
3120
+ v("div", Ul, [
3121
+ v("div", jl, [
3122
+ v("span", null, T(i.t("SelectableFields")) + "(" + T(i.tableColumns.length) + ")", 1),
3123
+ g(r, _({ style: { "margin-left": "10px" } }, i.buttonType, { onClick: n.handleSelectAll }), {
3065
3124
  default: p(() => [
3066
- z(T(l.t("all")), 1)
3125
+ z(T(i.t("all")), 1)
3067
3126
  ]),
3068
3127
  _: 1
3069
3128
  }, 16, ["onClick"])
3070
3129
  ]),
3071
- v("div", Ji, [
3072
- v("div", Ki, [
3073
- (r(!0), b(L, null, D(l.tableColumns, (d, P) => (r(), b(L, null, [
3074
- d.prop ? (r(), b("div", {
3130
+ v("div", Jl, [
3131
+ v("div", Kl, [
3132
+ (o(!0), b(L, null, A(i.tableColumns, (d, P) => (o(), b(L, null, [
3133
+ d.prop ? (o(), b("div", {
3075
3134
  style: { width: "110px", display: "inline-block" },
3076
3135
  key: P + d.prop
3077
3136
  }, [
3078
- g(c, {
3137
+ g(h, {
3079
3138
  disabled: !d.cancellable,
3080
3139
  class: "el-checkbox",
3081
3140
  modelValue: d.visible,
@@ -3084,7 +3143,7 @@ function al(e, i, t, a, l, n) {
3084
3143
  value: d.prop
3085
3144
  }, {
3086
3145
  default: p(() => [
3087
- g(h, {
3146
+ g(c, {
3088
3147
  width: "80px",
3089
3148
  text: n.getColumnLabel(d.prop)
3090
3149
  }, null, 8, ["text"])
@@ -3096,20 +3155,20 @@ function al(e, i, t, a, l, n) {
3096
3155
  ])
3097
3156
  ])
3098
3157
  ]),
3099
- v("div", Qi, [
3100
- v("div", qi, [
3158
+ v("div", Ql, [
3159
+ v("div", ql, [
3101
3160
  g(f, {
3102
- size: l.getCompatSize("small"),
3161
+ size: i.getCompatSize("small"),
3103
3162
  class: "search-input",
3104
3163
  clearable: "",
3105
- placeholder: l.t("search"),
3106
- modelValue: l.keyWord,
3107
- "onUpdate:modelValue": i[0] || (i[0] = (d) => l.keyWord = d)
3164
+ placeholder: i.t("search"),
3165
+ modelValue: i.keyWord,
3166
+ "onUpdate:modelValue": l[0] || (l[0] = (d) => i.keyWord = d)
3108
3167
  }, null, 8, ["size", "placeholder", "modelValue"])
3109
3168
  ]),
3110
- n.showFixedLimitTips ? (r(), b("div", Yi)) : C("", !0),
3111
- v("div", Gi, [
3112
- (r(!0), b(L, null, D(n.filteredSortedTableColumns, (d, P) => (r(), b("div", {
3169
+ n.showFixedLimitTips ? (o(), b("div", Yl)) : C("", !0),
3170
+ v("div", Gl, [
3171
+ (o(!0), b(L, null, A(n.filteredSortedTableColumns, (d, P) => (o(), b("div", {
3113
3172
  class: X(["sort-item-wrapper", [
3114
3173
  d.fixed === "left" ? "frozen" : "",
3115
3174
  d.fixed === "right" ? "frozenRight" : "",
@@ -3118,22 +3177,22 @@ function al(e, i, t, a, l, n) {
3118
3177
  "data-prop": d.prop,
3119
3178
  key: d.prop
3120
3179
  }, [
3121
- d.visible ? (r(), b("div", Zi, [
3122
- v("div", $i, [
3180
+ d.visible ? (o(), b("div", Zl, [
3181
+ v("div", $l, [
3123
3182
  g(y, { style: { "flex-shrink": "0" } }),
3124
- g(h, {
3183
+ g(c, {
3125
3184
  text: n.getColumnLabel(d.prop)
3126
3185
  }, null, 8, ["text"])
3127
3186
  ]),
3128
- v("div", el, [
3129
- d.cancellable ? (r(), m(O, _({
3187
+ v("div", ei, [
3188
+ d.cancellable ? (o(), m(O, _({
3130
3189
  key: 0,
3131
- content: l.t("cancel"),
3190
+ content: i.t("cancel"),
3132
3191
  placement: "top"
3133
- }, { ref_for: !0 }, l.afterOpenDelay), {
3192
+ }, { ref_for: !0 }, i.afterOpenDelay), {
3134
3193
  default: p(() => [
3135
- g(o, _({ ref_for: !0 }, l.buttonType, {
3136
- size: l.getCompatSize("mini"),
3194
+ g(r, _({ ref_for: !0 }, i.buttonType, {
3195
+ size: i.getCompatSize("mini"),
3137
3196
  class: "iconfont-button delete-button",
3138
3197
  onClick: (J) => d.visible = !1
3139
3198
  }), {
@@ -3145,14 +3204,14 @@ function al(e, i, t, a, l, n) {
3145
3204
  ]),
3146
3205
  _: 2
3147
3206
  }, 1040, ["content"])) : C("", !0),
3148
- n.canMoveTop(d, P) ? (r(), m(O, _({
3207
+ n.canMoveTop(d, P) ? (o(), m(O, _({
3149
3208
  key: 1,
3150
- content: l.t("top"),
3209
+ content: i.t("top"),
3151
3210
  placement: "top"
3152
- }, { ref_for: !0 }, l.afterOpenDelay), {
3211
+ }, { ref_for: !0 }, i.afterOpenDelay), {
3153
3212
  default: p(() => [
3154
- g(o, _({ ref_for: !0 }, l.buttonType, {
3155
- size: l.getCompatSize("mini"),
3213
+ g(r, _({ ref_for: !0 }, i.buttonType, {
3214
+ size: i.getCompatSize("mini"),
3156
3215
  class: "iconfont-button top-button",
3157
3216
  onClick: (J) => n.moveTop(d, P)
3158
3217
  }), {
@@ -3164,14 +3223,14 @@ function al(e, i, t, a, l, n) {
3164
3223
  ]),
3165
3224
  _: 2
3166
3225
  }, 1040, ["content"])) : C("", !0),
3167
- d.fixed !== "right" ? (r(), m(O, _({
3226
+ d.fixed !== "right" ? (o(), m(O, _({
3168
3227
  key: 2,
3169
- content: d.fixed === "left" ? l.t("cancelLeftFixed") : l.t("leftFixed"),
3228
+ content: d.fixed === "left" ? i.t("cancelLeftFixed") : i.t("leftFixed"),
3170
3229
  placement: "top"
3171
- }, { ref_for: !0 }, l.afterOpenDelay), {
3230
+ }, { ref_for: !0 }, i.afterOpenDelay), {
3172
3231
  default: p(() => [
3173
- g(o, _({ ref_for: !0 }, l.buttonType, {
3174
- size: l.getCompatSize("mini"),
3232
+ g(r, _({ ref_for: !0 }, i.buttonType, {
3233
+ size: i.getCompatSize("mini"),
3175
3234
  class: ["iconfont-button left-fixed-btn", { "active-fixed": d.fixed === "left" }],
3176
3235
  onClick: (J) => n.frozenLeftHandle(P),
3177
3236
  disabled: d.fixed !== "left" && n.isThanMaxFrozen
@@ -3184,14 +3243,14 @@ function al(e, i, t, a, l, n) {
3184
3243
  ]),
3185
3244
  _: 2
3186
3245
  }, 1040, ["content"])) : C("", !0),
3187
- d.fixed !== "left" ? (r(), m(O, _({
3246
+ d.fixed !== "left" ? (o(), m(O, _({
3188
3247
  key: 3,
3189
- content: d.fixed === "right" ? l.t("cancelRightFixed") : l.t("rightFixed"),
3248
+ content: d.fixed === "right" ? i.t("cancelRightFixed") : i.t("rightFixed"),
3190
3249
  placement: "top"
3191
- }, { ref_for: !0 }, l.afterOpenDelay), {
3250
+ }, { ref_for: !0 }, i.afterOpenDelay), {
3192
3251
  default: p(() => [
3193
- g(o, _({ ref_for: !0 }, l.buttonType, {
3194
- size: l.getCompatSize("mini"),
3252
+ g(r, _({ ref_for: !0 }, i.buttonType, {
3253
+ size: i.getCompatSize("mini"),
3195
3254
  class: ["iconfont-button right-fixed-btn", { "active-fixed": d.fixed === "right" }],
3196
3255
  onClick: (J) => n.frozenRightHandle(P),
3197
3256
  disabled: d.fixed !== "right" && n.isThanMaxRightFrozen
@@ -3206,39 +3265,39 @@ function al(e, i, t, a, l, n) {
3206
3265
  }, 1040, ["content"])) : C("", !0)
3207
3266
  ])
3208
3267
  ])) : C("", !0)
3209
- ], 10, Xi))), 128))
3268
+ ], 10, Xl))), 128))
3210
3269
  ], 512)
3211
3270
  ])
3212
3271
  ]),
3213
- v("div", tl, [
3214
- v("div", il, [
3215
- g(o, {
3216
- size: l.getCompatSize("mini"),
3272
+ v("div", ti, [
3273
+ v("div", li, [
3274
+ g(r, {
3275
+ size: i.getCompatSize("mini"),
3217
3276
  onClick: n.handleRestoreDefault
3218
3277
  }, {
3219
3278
  default: p(() => [
3220
- z(T(l.t("restoreDefault")), 1)
3279
+ z(T(i.t("restoreDefault")), 1)
3221
3280
  ]),
3222
3281
  _: 1
3223
3282
  }, 8, ["size", "onClick"])
3224
3283
  ]),
3225
- v("div", ll, [
3226
- g(o, {
3227
- size: l.getCompatSize("mini"),
3228
- onClick: i[1] || (i[1] = (d) => l.popoverVisible = !1)
3284
+ v("div", ii, [
3285
+ g(r, {
3286
+ size: i.getCompatSize("mini"),
3287
+ onClick: l[1] || (l[1] = (d) => i.popoverVisible = !1)
3229
3288
  }, {
3230
3289
  default: p(() => [
3231
- z(T(l.t("cancel")), 1)
3290
+ z(T(i.t("cancel")), 1)
3232
3291
  ]),
3233
3292
  _: 1
3234
3293
  }, 8, ["size"]),
3235
- g(o, {
3236
- size: l.getCompatSize("mini"),
3294
+ g(r, {
3295
+ size: i.getCompatSize("mini"),
3237
3296
  type: "primary",
3238
3297
  onClick: n.onSave
3239
3298
  }, {
3240
3299
  default: p(() => [
3241
- z(T(l.t("saveAndApply")), 1)
3300
+ z(T(i.t("saveAndApply")), 1)
3242
3301
  ]),
3243
3302
  _: 1
3244
3303
  }, 8, ["size", "onClick"])
@@ -3249,11 +3308,11 @@ function al(e, i, t, a, l, n) {
3249
3308
  _: 1
3250
3309
  }, 16, ["placement", "onShow", "onHide"]);
3251
3310
  }
3252
- const sl = /* @__PURE__ */ w(Ni, [["render", al], ["__scopeId", "data-v-127cbd33"]]), ol = !1, rl = !0;
3311
+ const si = /* @__PURE__ */ w(Nl, [["render", ai], ["__scopeId", "data-v-127cbd33"]]), ri = !1, oi = !0;
3253
3312
  function ne(e) {
3254
3313
  if (!Array.isArray(e))
3255
3314
  return e;
3256
- const i = [];
3315
+ const l = [];
3257
3316
  for (const t of e)
3258
3317
  if (t)
3259
3318
  if (typeof t.type == "symbol" && t.children) {
@@ -3261,23 +3320,23 @@ function ne(e) {
3261
3320
  if (typeof a == "function")
3262
3321
  continue;
3263
3322
  if (Array.isArray(a)) {
3264
- const l = ne(a);
3265
- i.push(...l);
3323
+ const i = ne(a);
3324
+ l.push(...i);
3266
3325
  } else {
3267
- const l = ne([a]);
3268
- i.push(...l);
3326
+ const i = ne([a]);
3327
+ l.push(...i);
3269
3328
  }
3270
3329
  } else
3271
- i.push(t);
3272
- return i;
3330
+ l.push(t);
3331
+ return l;
3273
3332
  }
3274
- const ul = {
3333
+ const ui = {
3275
3334
  name: "TmTable",
3276
3335
  components: {
3277
- TableSearch: Fe,
3278
- TablePagination: Vi,
3279
- TableMenu: Di,
3280
- ColumnConfig: sl,
3336
+ TableSearch: ze,
3337
+ TablePagination: Vl,
3338
+ TableMenu: Al,
3339
+ ColumnConfig: si,
3281
3340
  RefreshIcon: it,
3282
3341
  // 用于渲染VNode的组件
3283
3342
  ColumnRenderer: {
@@ -3378,14 +3437,19 @@ const ul = {
3378
3437
  type: String,
3379
3438
  default: void 0,
3380
3439
  validator: (e) => !e || ["horizontal", "vertical"].includes(e)
3440
+ },
3441
+ labelAlign: {
3442
+ type: String,
3443
+ default: "right",
3444
+ validator: (e) => ["left", "right", "center"].includes(e)
3381
3445
  }
3382
3446
  },
3383
3447
  data() {
3384
3448
  return {
3385
3449
  getDefaultSize: k,
3386
3450
  getCompatSize: K,
3387
- isVue3: rl,
3388
- isVue2: ol,
3451
+ isVue3: oi,
3452
+ isVue2: ri,
3389
3453
  t: H().t,
3390
3454
  tableData: [],
3391
3455
  tableLoading: !1,
@@ -3480,10 +3544,10 @@ const ul = {
3480
3544
  current: this.paginationInfo.current
3481
3545
  },
3482
3546
  params: this.searchForm
3483
- }), { list: i, total: t, pageSize: a, current: l } = e;
3484
- this.tableData = i;
3547
+ }), { list: l, total: t, pageSize: a, current: i } = e;
3548
+ this.tableData = l;
3485
3549
  let n = x({}, this.paginationInfo);
3486
- t !== void 0 && (n.total = t), l !== void 0 && (n.current = l), a !== void 0 && (n.pageSize = a), this.paginationInfo = n;
3550
+ t !== void 0 && (n.total = t), i !== void 0 && (n.current = i), a !== void 0 && (n.pageSize = a), this.paginationInfo = n;
3487
3551
  } catch (e) {
3488
3552
  } finally {
3489
3553
  this.tableLoading = !1;
@@ -3493,9 +3557,9 @@ const ul = {
3493
3557
  // 获取表格高度
3494
3558
  getTableHeight() {
3495
3559
  this.isAutoHeight() ? this.$nextTick(() => {
3496
- const e = this.$refs.table, i = this.$refs.tmPagination;
3560
+ const e = this.$refs.table, l = this.$refs.tmPagination;
3497
3561
  if (!e) return;
3498
- const t = e.$el, a = i && i.$el && i.$el.offsetHeight || 0;
3562
+ const t = e.$el, a = l && l.$el && l.$el.offsetHeight || 0;
3499
3563
  this.tableHeight = document.documentElement.clientHeight - t.offsetTop - a - this.calcHeight;
3500
3564
  }) : this.tableHeight = this.height, this.refreshTable();
3501
3565
  },
@@ -3530,14 +3594,14 @@ const ul = {
3530
3594
  this.tableReload++;
3531
3595
  }
3532
3596
  }
3533
- }, dl = {
3597
+ }, di = {
3534
3598
  class: "tm-table",
3535
3599
  ref: "tablePage"
3536
3600
  };
3537
- function cl(e, i, t, a, l, n) {
3538
- const o = u("table-search"), h = u("RefreshIcon"), c = u("el-button"), f = u("el-tooltip"), y = u("ColumnConfig"), V = u("table-menu"), O = u("columnRenderer"), U = u("el-table"), j = u("table-pagination"), W = Ne("loading");
3539
- return r(), b("div", dl, [
3540
- t.searchColumns && t.searchColumns.length > 0 ? (r(), m(o, {
3601
+ function hi(e, l, t, a, i, n) {
3602
+ const r = u("table-search"), c = u("RefreshIcon"), h = u("el-button"), f = u("el-tooltip"), y = u("ColumnConfig"), V = u("table-menu"), O = u("columnRenderer"), U = u("el-table"), j = u("table-pagination"), W = Pe("loading");
3603
+ return o(), b("div", di, [
3604
+ t.searchColumns && t.searchColumns.length > 0 ? (o(), m(r, {
3541
3605
  key: 0,
3542
3606
  ref: "search",
3543
3607
  onSearch: n.search,
@@ -3548,62 +3612,63 @@ function cl(e, i, t, a, l, n) {
3548
3612
  "search-form": t.searchForm,
3549
3613
  "label-width": t.labelWidth,
3550
3614
  "input-width": t.inputWidth,
3551
- direction: t.direction
3615
+ direction: t.direction,
3616
+ "label-align": t.labelAlign
3552
3617
  }, {
3553
3618
  default: p(() => [
3554
3619
  S(e.$slots, "search", {}, void 0, !0)
3555
3620
  ]),
3556
3621
  _: 3
3557
- }, 8, ["onSearch", "onReset", "onUpdate:searchForm", "disabled", "search-columns", "search-form", "label-width", "input-width", "direction"])) : C("", !0),
3622
+ }, 8, ["onSearch", "onReset", "onUpdate:searchForm", "disabled", "search-columns", "search-form", "label-width", "input-width", "direction", "label-align"])) : C("", !0),
3558
3623
  S(e.$slots, "between-search-menu", {}, void 0, !0),
3559
- t.showMenu ? (r(), m(V, { key: 1 }, {
3624
+ t.showMenu ? (o(), m(V, { key: 1 }, {
3560
3625
  left: p(() => [
3561
3626
  S(e.$slots, "menu-left", {}, void 0, !0)
3562
3627
  ]),
3563
3628
  right: p(() => [
3564
3629
  S(e.$slots, "menu-right", {}, void 0, !0),
3565
- t.refreshButton && typeof t.data == "function" ? (r(), m(f, _({
3630
+ t.refreshButton && typeof t.data == "function" ? (o(), m(f, _({
3566
3631
  key: 0,
3567
- content: l.t("refresh"),
3632
+ content: i.t("refresh"),
3568
3633
  placement: "top"
3569
- }, l.afterOpenDelay), {
3634
+ }, i.afterOpenDelay), {
3570
3635
  default: p(() => [
3571
- g(c, {
3636
+ g(h, {
3572
3637
  onClick: n.handleRefresh,
3573
3638
  circle: "",
3574
- size: l.getDefaultSize()
3639
+ size: i.getDefaultSize()
3575
3640
  }, {
3576
3641
  default: p(() => [
3577
- g(h)
3642
+ g(c)
3578
3643
  ]),
3579
3644
  _: 1
3580
3645
  }, 8, ["onClick", "size"])
3581
3646
  ]),
3582
3647
  _: 1
3583
3648
  }, 16, ["content"])) : C("", !0),
3584
- t.columnSettingButton ? (r(), m(y, {
3649
+ t.columnSettingButton ? (o(), m(y, {
3585
3650
  key: 1,
3586
3651
  maxFixedLeftQuantity: t.maxFixedLeftQuantity,
3587
3652
  maxFixedRightQuantity: t.maxFixedRightQuantity,
3588
3653
  tableKey: n.computedTableKey,
3589
- columns: l.originalColumns,
3654
+ columns: i.originalColumns,
3590
3655
  onComplete: n.handleColumnConfigComplete
3591
3656
  }, null, 8, ["maxFixedLeftQuantity", "maxFixedRightQuantity", "tableKey", "columns", "onComplete"])) : C("", !0)
3592
3657
  ]),
3593
3658
  _: 3
3594
3659
  })) : C("", !0),
3595
3660
  S(e.$slots, "between-menu-table", {}, void 0, !0),
3596
- Pe((r(), m(U, _({ ref: "table" }, I(x({}, e.$attrs), { border: t.border }), M(l.isVue2 ? e.$listeners : {}), {
3597
- data: l.tableData,
3598
- height: l.tableHeight,
3599
- size: l.getCompatSize("mini"),
3661
+ Be((o(), m(U, _({ ref: "table" }, I(x({}, e.$attrs), { border: t.border }), M(i.isVue2 ? e.$listeners : {}), {
3662
+ data: i.tableData,
3663
+ height: i.tableHeight,
3664
+ size: i.getCompatSize("mini"),
3600
3665
  onSelectionChange: n.handleSelectionChange,
3601
- key: l.tableReload
3666
+ key: i.tableReload
3602
3667
  }), {
3603
3668
  default: p(() => [
3604
- (r(!0), b(L, null, D(l.displayColumns, (s) => (r(), m(O, {
3669
+ (o(!0), b(L, null, A(i.displayColumns, (s) => (o(), m(O, {
3605
3670
  vnode: s,
3606
- key: l.isVue3 ? s.id : s.data.attrs.prop
3671
+ key: i.isVue3 ? s.id : s.data.attrs.prop
3607
3672
  }, null, 8, ["vnode"]))), 128))
3608
3673
  ]),
3609
3674
  _: 1
@@ -3611,20 +3676,20 @@ function cl(e, i, t, a, l, n) {
3611
3676
  [W, n.pageLoading]
3612
3677
  ]),
3613
3678
  S(e.$slots, "between-table-pagination", {}, void 0, !0),
3614
- n.computedShowPagination ? (r(), m(j, {
3679
+ n.computedShowPagination ? (o(), m(j, {
3615
3680
  key: 2,
3616
3681
  ref: "tmPagination",
3617
- "page-size": l.paginationInfo.pageSize,
3618
- current: l.paginationInfo.current,
3619
- total: l.paginationInfo.total,
3620
- disabled: l.tableLoading,
3682
+ "page-size": i.paginationInfo.pageSize,
3683
+ current: i.paginationInfo.current,
3684
+ total: i.paginationInfo.total,
3685
+ disabled: i.tableLoading,
3621
3686
  onSizeChange: n.handleSizeChange,
3622
3687
  onCurrentChange: n.handleCurrentChange
3623
3688
  }, null, 8, ["page-size", "current", "total", "disabled", "onSizeChange", "onCurrentChange"])) : C("", !0),
3624
3689
  S(e.$slots, "after-pagination", {}, void 0, !0)
3625
3690
  ], 512);
3626
3691
  }
3627
- const ze = /* @__PURE__ */ w(ul, [["render", cl], ["__scopeId", "data-v-5c3f3820"]]), hl = !1, fl = !0, pl = {
3692
+ const Le = /* @__PURE__ */ w(ui, [["render", hi], ["__scopeId", "data-v-020e8134"]]), ci = !1, fi = !0, pi = {
3628
3693
  name: "TmTableColumn",
3629
3694
  inheritAttrs: !1,
3630
3695
  computed: {
@@ -3637,8 +3702,8 @@ const ze = /* @__PURE__ */ w(ul, [["render", cl], ["__scopeId", "data-v-5c3f3820
3637
3702
  },
3638
3703
  data() {
3639
3704
  return {
3640
- isVue2: hl,
3641
- isVue3: fl
3705
+ isVue2: ci,
3706
+ isVue3: fi
3642
3707
  };
3643
3708
  },
3644
3709
  created() {
@@ -3648,18 +3713,18 @@ const ze = /* @__PURE__ */ w(ul, [["render", cl], ["__scopeId", "data-v-5c3f3820
3648
3713
  });
3649
3714
  }
3650
3715
  };
3651
- function ml(e, i, t, a, l, n) {
3652
- const o = u("el-table-column");
3653
- return n.isVisible ? (r(), m(o, _({ key: 0 }, e.$attrs, M(l.isVue2 ? e.$listeners : {})), ye({ _: 2 }, [
3654
- D(n.slots, (h, c) => ({
3655
- name: c,
3716
+ function mi(e, l, t, a, i, n) {
3717
+ const r = u("el-table-column");
3718
+ return n.isVisible ? (o(), m(r, _({ key: 0 }, e.$attrs, M(i.isVue2 ? e.$listeners : {})), ye({ _: 2 }, [
3719
+ A(n.slots, (c, h) => ({
3720
+ name: h,
3656
3721
  fn: p((f) => [
3657
- S(e.$slots, c, Be(Ue(f)))
3722
+ S(e.$slots, h, Ue(je(f)))
3658
3723
  ])
3659
3724
  }))
3660
3725
  ]), 1040)) : C("", !0);
3661
3726
  }
3662
- const Le = /* @__PURE__ */ w(pl, [["render", ml]]), { t: le } = H(), gl = {
3727
+ const ke = /* @__PURE__ */ w(pi, [["render", mi]]), { t: ie } = H(), gi = {
3663
3728
  name: "TmAdvancedEllipsisText",
3664
3729
  components: {
3665
3730
  CopyIcon: ve
@@ -3779,7 +3844,7 @@ const Le = /* @__PURE__ */ w(pl, [["render", ml]]), { t: le } = H(), gl = {
3779
3844
  },
3780
3845
  handleCopy() {
3781
3846
  navigator.clipboard && window.isSecureContext ? navigator.clipboard.writeText(this.originalText).then(() => {
3782
- this.$message.success(le("copySuccess"));
3847
+ this.$message.success(ie("copySuccess"));
3783
3848
  }).catch(() => {
3784
3849
  this.fallbackCopy();
3785
3850
  }) : this.fallbackCopy();
@@ -3788,23 +3853,23 @@ const Le = /* @__PURE__ */ w(pl, [["render", ml]]), { t: le } = H(), gl = {
3788
3853
  const e = document.createElement("textarea");
3789
3854
  e.value = this.originalText, e.style.position = "fixed", e.style.left = "-999999px", e.style.top = "-999999px", document.body.appendChild(e), e.focus(), e.select();
3790
3855
  try {
3791
- document.execCommand("copy"), this.$message.success(le("copySuccess"));
3792
- } catch (i) {
3793
- this.$message.error(le("copyFailed"));
3856
+ document.execCommand("copy"), this.$message.success(ie("copySuccess"));
3857
+ } catch (l) {
3858
+ this.$message.error(ie("copyFailed"));
3794
3859
  }
3795
3860
  document.body.removeChild(e);
3796
3861
  },
3797
3862
  getTextContent() {
3798
3863
  if (this.$slots.default) {
3799
3864
  const e = this.$slots.default;
3800
- return e().map((i) => typeof i.children == "string" ? i.children : Array.isArray(i.children) ? i.children.map((t) => t.children || "").join("") : "").join("");
3865
+ return e().map((l) => typeof l.children == "string" ? l.children : Array.isArray(l.children) ? l.children.map((t) => t.children || "").join("") : "").join("");
3801
3866
  }
3802
3867
  return this.text || "";
3803
3868
  },
3804
3869
  calculateLineHeight() {
3805
3870
  const e = this.$refs.containerRef;
3806
3871
  if (!e) return;
3807
- const i = window.getComputedStyle(e);
3872
+ const l = window.getComputedStyle(e);
3808
3873
  this.containerWidth = e.offsetWidth;
3809
3874
  const t = this.$refs.measureRef;
3810
3875
  if (t) {
@@ -3816,12 +3881,12 @@ const Le = /* @__PURE__ */ w(pl, [["render", ml]]), { t: le } = H(), gl = {
3816
3881
  const a = t.offsetHeight;
3817
3882
  t.innerHTML = "", this.lineHeight = a;
3818
3883
  } else {
3819
- const a = i.lineHeight;
3884
+ const a = l.lineHeight;
3820
3885
  if (a && a !== "normal")
3821
3886
  this.lineHeight = parseInt(a);
3822
3887
  else {
3823
- const l = parseInt(i.fontSize);
3824
- this.lineHeight = l * 1.2;
3888
+ const i = parseInt(l.fontSize);
3889
+ this.lineHeight = i * 1.2;
3825
3890
  }
3826
3891
  }
3827
3892
  },
@@ -3843,43 +3908,43 @@ const Le = /* @__PURE__ */ w(pl, [["render", ml]]), { t: le } = H(), gl = {
3843
3908
  if (this.rows === 1)
3844
3909
  this.frontLines = [], this.lastLineText = e, this.isLastLineEllipsis = this.checkIfTextOverflows(e);
3845
3910
  else {
3846
- const i = this.lineHeight;
3847
- if (this.getTextHeight(e) <= i)
3911
+ const l = this.lineHeight;
3912
+ if (this.getTextHeight(e) <= l)
3848
3913
  this.frontLines = [], this.lastLineText = e, this.isLastLineEllipsis = this.checkIfTextOverflows(e);
3849
3914
  else {
3850
- const a = this.lineHeight * (this.rows - 1), l = this.findTextForHeight(e, a);
3851
- this.frontLines = this.splitTextToLines(l);
3852
- const n = e.substring(l.length);
3915
+ const a = this.lineHeight * (this.rows - 1), i = this.findTextForHeight(e, a);
3916
+ this.frontLines = this.splitTextToLines(i);
3917
+ const n = e.substring(i.length);
3853
3918
  this.lastLineText = n, this.isLastLineEllipsis = n.length > 0 && this.checkIfTextOverflows(n);
3854
3919
  }
3855
3920
  }
3856
3921
  this.isCalculating = !1;
3857
3922
  },
3858
- findTextForHeight(e, i) {
3859
- if (this.getTextHeight(e) <= i)
3923
+ findTextForHeight(e, l) {
3924
+ if (this.getTextHeight(e) <= l)
3860
3925
  return e;
3861
- let t = 0, a = e.length, l = "";
3926
+ let t = 0, a = e.length, i = "";
3862
3927
  for (; t <= a; ) {
3863
- const n = Math.floor((t + a) / 2), o = e.substring(0, n);
3864
- this.getTextHeight(o) <= i ? (l = o, t = n + 1) : a = n - 1;
3928
+ const n = Math.floor((t + a) / 2), r = e.substring(0, n);
3929
+ this.getTextHeight(r) <= l ? (i = r, t = n + 1) : a = n - 1;
3865
3930
  }
3866
- return l;
3931
+ return i;
3867
3932
  },
3868
3933
  splitTextToLines(e) {
3869
3934
  if (!e) return [];
3870
- const i = [];
3935
+ const l = [];
3871
3936
  let t = e;
3872
3937
  for (; t.length > 0; ) {
3873
3938
  const a = this.findTextForHeight(t, this.lineHeight);
3874
3939
  if (a.length === 0) break;
3875
- i.push(a), t = t.substring(a.length);
3940
+ l.push(a), t = t.substring(a.length);
3876
3941
  }
3877
- return i;
3942
+ return l;
3878
3943
  },
3879
3944
  checkIfTextOverflows(e) {
3880
3945
  if (!e) return !1;
3881
- const i = this.getTextWidth(e), t = this.shouldShowToolbar && this.hasToolbarContent ? this.getToolbarWidth() : 0, a = this.containerWidth - t - 5;
3882
- return i > a;
3946
+ const l = this.getTextWidth(e), t = this.shouldShowToolbar && this.hasToolbarContent ? this.getToolbarWidth() : 0, a = this.containerWidth - t - 5;
3947
+ return l > a;
3883
3948
  },
3884
3949
  getToolbarWidth() {
3885
3950
  let e = 0;
@@ -3895,18 +3960,18 @@ const Le = /* @__PURE__ */ w(pl, [["render", ml]]), { t: le } = H(), gl = {
3895
3960
  getTextWidth(e) {
3896
3961
  return this.measureText(e, { whiteSpace: "nowrap" });
3897
3962
  },
3898
- measureText(e, i = {}) {
3963
+ measureText(e, l = {}) {
3899
3964
  if (!this.$refs.containerRef || !this.$refs.measureRef)
3900
3965
  return 0;
3901
3966
  const t = this.$refs.measureRef, a = t.style.cssText;
3902
- this.setMeasureElementStyle(t, i), t.textContent = e, t.offsetHeight;
3903
- const l = i.whiteSpace === "nowrap" ? t.offsetWidth : t.offsetHeight;
3904
- return t.style.cssText = a, t.innerHTML = "", l;
3967
+ this.setMeasureElementStyle(t, l), t.textContent = e, t.offsetHeight;
3968
+ const i = l.whiteSpace === "nowrap" ? t.offsetWidth : t.offsetHeight;
3969
+ return t.style.cssText = a, t.innerHTML = "", i;
3905
3970
  },
3906
- setMeasureElementStyle(e, i = {}) {
3971
+ setMeasureElementStyle(e, l = {}) {
3907
3972
  const t = window.getComputedStyle(this.$refs.containerRef);
3908
- e.style.cssText = "", e.style.position = "absolute", e.style.left = "-9999px", e.style.top = "-9999px", e.style.visibility = "hidden", e.style.pointerEvents = "none", e.style.zIndex = "-1", e.style.fontSize = t.fontSize, e.style.fontFamily = t.fontFamily, e.style.fontWeight = t.fontWeight, e.style.lineHeight = t.lineHeight, e.style.letterSpacing = t.letterSpacing, e.style.wordSpacing = t.wordSpacing, e.style.padding = "0", e.style.margin = "0", e.style.border = "none", e.style.boxSizing = "border-box", Object.entries(i).forEach(([a, l]) => {
3909
- e.style[a] = l;
3973
+ e.style.cssText = "", e.style.position = "absolute", e.style.left = "-9999px", e.style.top = "-9999px", e.style.visibility = "hidden", e.style.pointerEvents = "none", e.style.zIndex = "-1", e.style.fontSize = t.fontSize, e.style.fontFamily = t.fontFamily, e.style.fontWeight = t.fontWeight, e.style.lineHeight = t.lineHeight, e.style.letterSpacing = t.letterSpacing, e.style.wordSpacing = t.wordSpacing, e.style.padding = "0", e.style.margin = "0", e.style.border = "none", e.style.boxSizing = "border-box", Object.entries(l).forEach(([a, i]) => {
3974
+ e.style[a] = i;
3910
3975
  });
3911
3976
  },
3912
3977
  handleMouseEnter() {
@@ -3917,9 +3982,9 @@ const Le = /* @__PURE__ */ w(pl, [["render", ml]]), { t: le } = H(), gl = {
3917
3982
  },
3918
3983
  setupResizeObserver() {
3919
3984
  typeof ResizeObserver != "undefined" && (this.resizeObserver = new ResizeObserver((e) => {
3920
- const i = e[0];
3921
- if (i) {
3922
- const t = i.contentRect.width;
3985
+ const l = e[0];
3986
+ if (l) {
3987
+ const t = l.contentRect.width;
3923
3988
  Math.abs(t - this.containerWidth) > 1 && requestAnimationFrame(() => {
3924
3989
  this.calculateLineHeight(), this.calculateLayout();
3925
3990
  });
@@ -3944,49 +4009,49 @@ const Le = /* @__PURE__ */ w(pl, [["render", ml]]), { t: le } = H(), gl = {
3944
4009
  this.tableRowElement && (this.tableRowElement.removeEventListener("mouseenter", this.handleMouseEnter), this.tableRowElement.removeEventListener("mouseleave", this.handleMouseLeave), this.tableRowElement = null);
3945
4010
  }
3946
4011
  }
3947
- }, bl = { class: "tm-ellipsis-text-wrapper" }, yl = ["innerHTML"], vl = { class: "tm-ellipsis-last-line" }, Cl = ["innerHTML"], _l = {
4012
+ }, bi = { class: "tm-ellipsis-text-wrapper" }, yi = ["innerHTML"], vi = { class: "tm-ellipsis-last-line" }, Ci = ["innerHTML"], _i = {
3948
4013
  key: 0,
3949
4014
  class: "tm-ellipsis-toolbar-part"
3950
- }, Sl = {
4015
+ }, Si = {
3951
4016
  key: 1,
3952
4017
  class: "tm-ellipsis-text-wrapper"
3953
- }, xl = ["innerHTML"], Tl = { class: "tm-ellipsis-last-line" }, wl = ["innerHTML"], Vl = {
4018
+ }, xi = ["innerHTML"], Ti = { class: "tm-ellipsis-last-line" }, wi = ["innerHTML"], Vi = {
3954
4019
  key: 0,
3955
4020
  class: "tm-ellipsis-toolbar-part"
3956
- }, Fl = {
4021
+ }, Fi = {
3957
4022
  ref: "measureRef",
3958
4023
  class: "tm-ellipsis-measure"
3959
4024
  };
3960
- function zl(e, i, t, a, l, n) {
3961
- const o = u("CopyIcon"), h = u("el-tooltip");
3962
- return r(), b("div", {
4025
+ function zi(e, l, t, a, i, n) {
4026
+ const r = u("CopyIcon"), c = u("el-tooltip");
4027
+ return o(), b("div", {
3963
4028
  ref: "containerRef",
3964
4029
  style: B(n.containerStyle),
3965
4030
  class: "tm-ellipsis-text",
3966
- onMouseenter: i[0] || (i[0] = (...c) => n.handleMouseEnter && n.handleMouseEnter(...c)),
3967
- onMouseleave: i[1] || (i[1] = (...c) => n.handleMouseLeave && n.handleMouseLeave(...c))
4031
+ onMouseenter: l[0] || (l[0] = (...h) => n.handleMouseEnter && n.handleMouseEnter(...h)),
4032
+ onMouseleave: l[1] || (l[1] = (...h) => n.handleMouseLeave && n.handleMouseLeave(...h))
3968
4033
  }, [
3969
- t.showTooltip && l.isLastLineEllipsis ? (r(), m(h, _({
4034
+ t.showTooltip && i.isLastLineEllipsis ? (o(), m(c, _({
3970
4035
  key: 0,
3971
- content: l.originalText,
3972
- disabled: !t.showTooltip || !l.isLastLineEllipsis
4036
+ content: i.originalText,
4037
+ disabled: !t.showTooltip || !i.isLastLineEllipsis
3973
4038
  }, {
3974
- [l.isVue2 ? "open-delay" : "show-after"]: 300
4039
+ [i.isVue2 ? "open-delay" : "show-after"]: 300
3975
4040
  }, { placement: "top" }), {
3976
4041
  default: p(() => [
3977
- v("div", bl, [
3978
- (r(!0), b(L, null, D(l.frontLines, (c, f) => (r(), b("div", {
4042
+ v("div", bi, [
4043
+ (o(!0), b(L, null, A(i.frontLines, (h, f) => (o(), b("div", {
3979
4044
  key: "front-" + f,
3980
4045
  class: "tm-ellipsis-line",
3981
- innerHTML: c
3982
- }, null, 8, yl))), 128)),
3983
- v("div", vl, [
4046
+ innerHTML: h
4047
+ }, null, 8, yi))), 128)),
4048
+ v("div", vi, [
3984
4049
  v("div", {
3985
4050
  class: "tm-ellipsis-text-part",
3986
- innerHTML: l.lastLineText
3987
- }, null, 8, Cl),
3988
- n.shouldShowToolbar && n.hasToolbarContent ? (r(), b("div", _l, [
3989
- t.copyable ? (r(), m(o, {
4051
+ innerHTML: i.lastLineText
4052
+ }, null, 8, Ci),
4053
+ n.shouldShowToolbar && n.hasToolbarContent ? (o(), b("div", _i, [
4054
+ t.copyable ? (o(), m(r, {
3990
4055
  key: 0,
3991
4056
  class: "icon-item",
3992
4057
  onClick: n.handleCopy
@@ -3997,19 +4062,19 @@ function zl(e, i, t, a, l, n) {
3997
4062
  ])
3998
4063
  ]),
3999
4064
  _: 3
4000
- }, 16, ["content", "disabled"])) : (r(), b("div", Sl, [
4001
- (r(!0), b(L, null, D(l.frontLines, (c, f) => (r(), b("div", {
4065
+ }, 16, ["content", "disabled"])) : (o(), b("div", Si, [
4066
+ (o(!0), b(L, null, A(i.frontLines, (h, f) => (o(), b("div", {
4002
4067
  key: "front-" + f,
4003
4068
  class: "tm-ellipsis-line",
4004
- innerHTML: c
4005
- }, null, 8, xl))), 128)),
4006
- v("div", Tl, [
4069
+ innerHTML: h
4070
+ }, null, 8, xi))), 128)),
4071
+ v("div", Ti, [
4007
4072
  v("div", {
4008
4073
  class: "tm-ellipsis-text-part",
4009
- innerHTML: l.lastLineText
4010
- }, null, 8, wl),
4011
- n.shouldShowToolbar && n.hasToolbarContent ? (r(), b("div", Vl, [
4012
- t.copyable ? (r(), m(o, {
4074
+ innerHTML: i.lastLineText
4075
+ }, null, 8, wi),
4076
+ n.shouldShowToolbar && n.hasToolbarContent ? (o(), b("div", Vi, [
4077
+ t.copyable ? (o(), m(r, {
4013
4078
  key: 0,
4014
4079
  class: "icon-item",
4015
4080
  onClick: n.handleCopy
@@ -4018,45 +4083,47 @@ function zl(e, i, t, a, l, n) {
4018
4083
  ])) : C("", !0)
4019
4084
  ])
4020
4085
  ])),
4021
- v("div", Fl, null, 512)
4086
+ v("div", Fi, null, 512)
4022
4087
  ], 36);
4023
4088
  }
4024
- const ke = /* @__PURE__ */ w(gl, [["render", zl], ["__scopeId", "data-v-14f27c2e"]]), Ll = {
4025
- install(e, i = {}) {
4026
- [ze, Le, $, ke].forEach((t) => e.component(t.name, t)), i.tableConfigProvider && Hi(i.tableConfigProvider), i.lang && ae(i.lang || "zh-CN");
4089
+ const Oe = /* @__PURE__ */ w(gi, [["render", zi], ["__scopeId", "data-v-14f27c2e"]]), Li = {
4090
+ install(e, l = {}) {
4091
+ [Le, ke, $, Oe].forEach((t) => e.component(t.name, t)), l.tableConfigProvider && Hl(l.tableConfigProvider), l.lang && ae(l.lang || "zh-CN");
4027
4092
  }
4028
- }, kl = {
4029
- install: Ll.install,
4030
- Table: ze,
4031
- Column: Le,
4032
- Search: Fe,
4093
+ }, ki = {
4094
+ install: Li.install,
4095
+ Table: Le,
4096
+ Column: ke,
4097
+ Search: ze,
4033
4098
  Select: Ce,
4034
- AdvancedInput: _e,
4035
- AdvancedDate: Se,
4099
+ Input: _e,
4100
+ Date: Se,
4036
4101
  Cascader: xe,
4037
4102
  Radio: Te,
4038
4103
  Checkbox: we,
4039
4104
  Switch: Ve,
4105
+ Textarea: Fe,
4040
4106
  EllipsisText: $,
4041
- AdvancedEllipsisText: ke,
4107
+ AdvancedEllipsisText: Oe,
4042
4108
  setLang: ae,
4043
4109
  useLocale: H
4044
4110
  };
4045
- typeof window != "undefined" && window.Vue && kl.install(window.Vue);
4111
+ typeof window != "undefined" && window.Vue && ki.install(window.Vue);
4046
4112
  export {
4047
- Se as AdvancedDate,
4048
- ke as AdvancedEllipsisText,
4049
- _e as AdvancedInput,
4113
+ Oe as AdvancedEllipsisText,
4050
4114
  xe as Cascader,
4051
4115
  we as Checkbox,
4052
- Le as Column,
4116
+ ke as Column,
4117
+ Se as Date,
4053
4118
  $ as EllipsisText,
4119
+ _e as Input,
4054
4120
  Te as Radio,
4055
- Fe as Search,
4121
+ ze as Search,
4056
4122
  Ce as Select,
4057
4123
  Ve as Switch,
4058
- ze as Table,
4059
- kl as default,
4124
+ Le as Table,
4125
+ Fe as Textarea,
4126
+ ki as default,
4060
4127
  ae as setLang,
4061
4128
  H as useLocale
4062
4129
  };