@pungfe/element 0.2.2 → 0.2.3

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,9 +1,9 @@
1
- import { A as e, C as t, D as n, E as r, O as i, S as a, T as o, _ as s, a as c, b as l, d as u, g as d, k as f, l as p, n as m, o as h, s as g, u as _, w as ee, x as v, y } from "./basic-Bs6xnub3.js";
2
- import { ElMessage as b, ElPopconfirm as x, ElPopover as te, ElScrollbar as ne, ElSpace as S, ElSwitch as re, ElText as ie, genFileId as C, useLocale as ae } from "element-plus";
3
- import { Fragment as oe, computed as w, createBlock as T, createCommentVNode as se, createElementBlock as ce, createElementVNode as le, createSlots as ue, createTextVNode as de, createVNode as E, defineComponent as D, guardReactiveProps as fe, inject as pe, isRef as me, mergeModels as he, mergeProps as ge, nextTick as _e, normalizeProps as ve, openBlock as O, ref as ye, renderSlot as be, resolveComponent as xe, resolveDirective as Se, toDisplayString as Ce, toValue as we, unref as k, useModel as Te, useTemplateRef as Ee, watch as De, withCtx as A, withDirectives as Oe } from "vue";
1
+ import { A as e, C as t, D as n, E as r, O as i, S as a, T as o, _ as s, a as c, b as l, d as u, g as d, k as f, l as p, n as m, o as h, s as g, u as _, w as v, x as y, y as b } from "./basic-BSoDuE_Y.js";
2
+ import { ElMessage as x, ElPopconfirm as S, ElPopover as ee, ElScrollbar as te, ElSpace as C, ElSwitch as ne, ElText as re, genFileId as w, useLocale as ie } from "element-plus";
3
+ import { Fragment as ae, computed as T, createBlock as E, createCommentVNode as oe, createElementBlock as D, createElementVNode as se, createSlots as ce, createTextVNode as le, createVNode as O, defineComponent as k, guardReactiveProps as ue, inject as de, isRef as fe, mergeModels as pe, mergeProps as me, nextTick as he, normalizeProps as ge, openBlock as A, ref as _e, renderSlot as ve, resolveComponent as ye, resolveDirective as be, toDisplayString as xe, toValue as Se, unref as j, useModel as Ce, useTemplateRef as we, watch as Te, withCtx as Ee, withDirectives as De } from "vue";
4
4
  //#endregion
5
5
  //#region src/components/advance/XButtonAsync.vue
6
- var ke = /* @__PURE__ */ D({
6
+ var Oe = /* @__PURE__ */ k({
7
7
  __name: "XButtonAsync",
8
8
  props: {
9
9
  action: { type: Function },
@@ -24,20 +24,20 @@ var ke = /* @__PURE__ */ D({
24
24
  } catch (e) {
25
25
  console.log(e);
26
26
  }
27
- }), n = pe(y, void 0), r = w(() => e.link ?? n);
28
- return (n, i) => (O(), T(k(v), ge({
27
+ }), n = de(b, void 0), r = T(() => e.link ?? n);
28
+ return (n, i) => (A(), E(j(y), me({
29
29
  disabled: e.disabled,
30
30
  icon: e.icon,
31
31
  type: e.type,
32
32
  link: r.value,
33
33
  size: e.size,
34
34
  text: e.text
35
- }, { onClick: k(t) }), {
36
- default: A(() => [be(n.$slots, "default")]),
35
+ }, { onClick: j(t) }), {
36
+ default: Ee(() => [ve(n.$slots, "default")]),
37
37
  _: 3
38
38
  }, 16, ["onClick"]));
39
39
  }
40
- }), Ae = /* @__PURE__ */ D({
40
+ }), ke = /* @__PURE__ */ k({
41
41
  __name: "XButtonConfirm",
42
42
  props: {
43
43
  title: { default: "是否执行?" },
@@ -53,13 +53,13 @@ var ke = /* @__PURE__ */ D({
53
53
  },
54
54
  emits: ["cancel", "confirm"],
55
55
  setup(e, { emit: t }) {
56
- let n = t, r = pe(y, void 0), i = w(() => e.link ?? r);
57
- return (t, r) => (O(), T(k(x), {
56
+ let n = t, r = de(b, void 0), i = T(() => e.link ?? r);
57
+ return (t, r) => (A(), E(j(S), {
58
58
  title: e.title,
59
59
  onCancel: r[0] ||= () => n("cancel"),
60
60
  onConfirm: r[1] ||= () => n("confirm")
61
61
  }, {
62
- reference: A(() => [E(k(v), ve(fe({
62
+ reference: Ee(() => [O(j(y), ge(ue({
63
63
  disabled: e.disabled,
64
64
  icon: e.icon,
65
65
  type: e.type,
@@ -67,31 +67,31 @@ var ke = /* @__PURE__ */ D({
67
67
  size: e.size,
68
68
  text: e.text
69
69
  })), {
70
- default: A(() => [be(t.$slots, "default")]),
70
+ default: Ee(() => [ve(t.$slots, "default")]),
71
71
  _: 3
72
72
  }, 16)]),
73
- actions: A(({ confirm: e, cancel: t }) => [E(k(v), {
73
+ actions: Ee(({ confirm: e, cancel: t }) => [O(j(y), {
74
74
  size: "small",
75
75
  disabled: !1,
76
76
  onClick: t
77
77
  }, {
78
- default: A(() => [...r[2] ||= [de(" 取消 ", -1)]]),
78
+ default: Ee(() => [...r[2] ||= [le(" 取消 ", -1)]]),
79
79
  _: 1
80
- }, 8, ["onClick"]), E(k(v), {
80
+ }, 8, ["onClick"]), O(j(y), {
81
81
  type: "danger",
82
82
  disabled: !1,
83
83
  size: "small",
84
84
  onClick: e
85
85
  }, {
86
- default: A(() => [...r[3] ||= [de(" 确定 ", -1)]]),
86
+ default: Ee(() => [...r[3] ||= [le(" 确定 ", -1)]]),
87
87
  _: 1
88
88
  }, 8, ["onClick"])]),
89
89
  _: 3
90
90
  }, 8, ["title"]));
91
91
  }
92
- }), je = /* @__PURE__ */ D({
92
+ }), Ae = /* @__PURE__ */ k({
93
93
  __name: "XCascaderRequest",
94
- props: /* @__PURE__ */ he({
94
+ props: /* @__PURE__ */ pe({
95
95
  request: { type: Function },
96
96
  clearable: { type: Boolean },
97
97
  disabled: {
@@ -106,9 +106,9 @@ var ke = /* @__PURE__ */ D({
106
106
  modelValue: {},
107
107
  modelModifiers: {}
108
108
  }),
109
- emits: /* @__PURE__ */ he(["prepare", "change"], ["update:modelValue"]),
109
+ emits: /* @__PURE__ */ pe(["prepare", "change"], ["update:modelValue"]),
110
110
  setup(e, { expose: t, emit: n }) {
111
- let r = n, i = Te(e, "modelValue"), { data: a, path: o, url: s, execute: c, query: l } = e.request();
111
+ let r = n, i = Ce(e, "modelValue"), { data: a, path: o, url: s, execute: c, query: l } = e.request();
112
112
  return t({
113
113
  search: f(async () => {
114
114
  r("prepare", {
@@ -121,18 +121,18 @@ var ke = /* @__PURE__ */ D({
121
121
  url: s,
122
122
  execute: c,
123
123
  query: l
124
- }), (t, n) => (O(), T(k(d), ge({
124
+ }), (t, n) => (A(), E(j(d), me({
125
125
  modelValue: i.value,
126
126
  "onUpdate:modelValue": n[0] ||= (e) => i.value = e
127
127
  }, {
128
128
  clearable: e.clearable,
129
129
  disabled: e.disabled,
130
130
  filterable: e.filterable,
131
- data: k(a),
131
+ data: j(a),
132
132
  props: e.props
133
133
  }), null, 16, ["modelValue"]));
134
134
  }
135
- }), Me = { class: "flex-1 overflow-hidden" }, Ne = /* @__PURE__ */ D({
135
+ }), je = { class: "flex-1 overflow-hidden" }, Me = /* @__PURE__ */ k({
136
136
  __name: "XFormFlex",
137
137
  props: {
138
138
  content: { type: Function },
@@ -144,21 +144,21 @@ var ke = /* @__PURE__ */ D({
144
144
  labelWidth: {}
145
145
  },
146
146
  setup(e, { expose: t }) {
147
- let n = Ee("form");
147
+ let n = we("form");
148
148
  t({
149
149
  validate: () => n.value?.validate(),
150
150
  clearValidate: () => n.value?.clearValidate()
151
151
  });
152
152
  let r = () => e.content?.({ data: e.data ?? {} });
153
- return (e, t) => (O(), ce("div", Me, [E(k(ne), null, {
154
- default: A(() => [E(k(u), ge({
153
+ return (e, t) => (A(), D("div", je, [O(j(te), null, {
154
+ default: Ee(() => [O(j(u), me({
155
155
  ref_key: "form",
156
156
  ref: n
157
157
  }, e.$props, { content: r }), null, 16)]),
158
158
  _: 1
159
159
  })]));
160
160
  }
161
- }), Pe = /* @__PURE__ */ D({
161
+ }), Ne = /* @__PURE__ */ k({
162
162
  __name: "XFormRequestNext",
163
163
  props: {
164
164
  request: { type: Function },
@@ -174,40 +174,40 @@ var ke = /* @__PURE__ */ D({
174
174
  },
175
175
  emits: ["prepare"],
176
176
  setup(e, { expose: t, emit: n }) {
177
- let r = n, { data: i, isFetching: a, execute: o, path: s, url: c, query: l } = e.request(), d = JSON.stringify(i.value), p = w(() => a.value || (typeof e.disabled == "function" ? e.disabled({ data: i.value }) : e.disabled)), m = Ee("form"), h = () => i.value = JSON.parse(d), g = () => m.value?.validate(), _ = () => m.value?.clearValidate(), ee = () => {
177
+ let r = n, { data: i, isFetching: a, execute: o, path: s, url: c, query: l } = e.request(), d = JSON.stringify(i.value), p = T(() => a.value || (typeof e.disabled == "function" ? e.disabled({ data: i.value }) : e.disabled)), m = we("form"), h = () => i.value = JSON.parse(d), g = () => m.value?.validate(), _ = () => m.value?.clearValidate(), v = () => {
178
178
  h(), m.value?.resetFields();
179
- }, v = f(async () => {
179
+ }, y = f(async () => {
180
180
  r("prepare", {
181
181
  path: s.value,
182
182
  query: l.value
183
183
  }), o();
184
- }), y = () => e.content?.({ data: i.value });
184
+ }), b = () => e.content?.({ data: i.value });
185
185
  return t({
186
186
  data: i,
187
187
  url: c,
188
- search: v,
188
+ search: y,
189
189
  validate: g,
190
190
  clearValidate: _,
191
191
  reset: h,
192
- resetFields: ee
192
+ resetFields: v
193
193
  }), (t, n) => {
194
- let r = Se("loading");
195
- return Oe((O(), T(k(u), ge({
194
+ let r = be("loading");
195
+ return De((A(), E(j(u), me({
196
196
  ref_key: "form",
197
197
  ref: m,
198
198
  class: "flex flex-1 flex-col gap-2 overflow-hidden"
199
199
  }, {
200
- data: k(i),
200
+ data: j(i),
201
201
  disabled: p.value,
202
202
  inline: e.inline,
203
203
  labelPosition: e.labelPosition,
204
204
  labelSuffix: e.labelSuffix,
205
205
  labelWidth: e.labelWidth,
206
- content: y
207
- }), null, 16)), [[r, k(a)]]);
206
+ content: b
207
+ }), null, 16)), [[r, j(a)]]);
208
208
  };
209
209
  }
210
- }), Fe = /* @__PURE__ */ D({
210
+ }), Pe = /* @__PURE__ */ k({
211
211
  __name: "XRequest",
212
212
  props: {
213
213
  request: { type: Function },
@@ -237,18 +237,18 @@ var ke = /* @__PURE__ */ D({
237
237
  url: l,
238
238
  execute: u,
239
239
  search: d
240
- }), (e, t) => be(e.$slots, "default", {
241
- data: k(i),
242
- paging: k(a),
243
- path: k(o),
244
- query: k(s),
245
- isFetching: k(c),
246
- search: k(d)
247
- }, () => [E(p)]);
240
+ }), (e, t) => ve(e.$slots, "default", {
241
+ data: j(i),
242
+ paging: j(a),
243
+ path: j(o),
244
+ query: j(s),
245
+ isFetching: j(c),
246
+ search: j(d)
247
+ }, () => [O(p)]);
248
248
  }
249
- }), Ie = /* @__PURE__ */ D({
249
+ }), Fe = /* @__PURE__ */ k({
250
250
  __name: "XSelectRequest",
251
- props: /* @__PURE__ */ he({
251
+ props: /* @__PURE__ */ pe({
252
252
  request: { type: Function },
253
253
  supplement: { type: Function },
254
254
  collapseTagsTooltip: { type: Boolean },
@@ -278,14 +278,14 @@ var ke = /* @__PURE__ */ D({
278
278
  modelValue: {},
279
279
  modelModifiers: {}
280
280
  }),
281
- emits: /* @__PURE__ */ he([
281
+ emits: /* @__PURE__ */ pe([
282
282
  "prepare",
283
283
  "blur",
284
284
  "change",
285
285
  "focus"
286
286
  ], ["update:modelValue"]),
287
287
  setup(e, { expose: t, emit: n }) {
288
- let r = n, i = Te(e, "modelValue"), { data: a, isFetching: o, path: s, url: c, execute: l, query: u } = e.request(), d = f(async (e) => {
288
+ let r = n, i = Ce(e, "modelValue"), { data: a, isFetching: o, path: s, url: c, execute: l, query: u } = e.request(), d = f(async (e) => {
289
289
  r("prepare", {
290
290
  path: s.value,
291
291
  query: u.value
@@ -298,10 +298,10 @@ var ke = /* @__PURE__ */ D({
298
298
  url: c,
299
299
  execute: l,
300
300
  query: u
301
- }), (t, n) => (O(), T(k(h), ge({
302
- data: k(a),
303
- supplement: k(p),
304
- remoteMethod: k(d),
301
+ }), (t, n) => (A(), E(j(h), me({
302
+ data: j(a),
303
+ supplement: j(p),
304
+ remoteMethod: j(d),
305
305
  factory: e.factory,
306
306
  allowCreate: e.allowCreate,
307
307
  clearable: e.clearable,
@@ -309,8 +309,8 @@ var ke = /* @__PURE__ */ D({
309
309
  identify: e.identify,
310
310
  remote: e.remote,
311
311
  filterable: e.remote || e.filterable,
312
- disabled: k(o) || e.disabled,
313
- loading: k(o) || e.loading,
312
+ disabled: j(o) || e.disabled,
313
+ loading: j(o) || e.loading,
314
314
  multiple: e.multiple,
315
315
  size: e.size
316
316
  }, {
@@ -321,26 +321,26 @@ var ke = /* @__PURE__ */ D({
321
321
  onChange: n[3] ||= (e) => t.$emit("change", e)
322
322
  }), null, 16, ["modelValue"]));
323
323
  }
324
- }), Le = /* @__PURE__ */ D({
324
+ }), Ie = /* @__PURE__ */ k({
325
325
  name: "Rank",
326
326
  __name: "rank",
327
327
  setup(e) {
328
- return (e, t) => (O(), ce("svg", {
328
+ return (e, t) => (A(), D("svg", {
329
329
  xmlns: "http://www.w3.org/2000/svg",
330
330
  viewBox: "0 0 1024 1024"
331
- }, [le("path", {
331
+ }, [se("path", {
332
332
  fill: "currentColor",
333
333
  d: "m186.496 544 41.408 41.344a32 32 0 1 1-45.248 45.312l-96-96a32 32 0 0 1 0-45.312l96-96a32 32 0 1 1 45.248 45.312L186.496 480h290.816V186.432l-41.472 41.472a32 32 0 1 1-45.248-45.184l96-96.128a32 32 0 0 1 45.312 0l96 96.064a32 32 0 0 1-45.248 45.184l-41.344-41.28V480H832l-41.344-41.344a32 32 0 0 1 45.248-45.312l96 96a32 32 0 0 1 0 45.312l-96 96a32 32 0 0 1-45.248-45.312L832 544H541.312v293.44l41.344-41.28a32 32 0 1 1 45.248 45.248l-96 96a32 32 0 0 1-45.312 0l-96-96a32 32 0 1 1 45.312-45.248l41.408 41.408V544z"
334
334
  })]));
335
335
  }
336
- }), Re = /* @__PURE__ */ D({
336
+ }), Le = /* @__PURE__ */ k({
337
337
  name: "Setting",
338
338
  __name: "setting",
339
339
  setup(e) {
340
- return (e, t) => (O(), ce("svg", {
340
+ return (e, t) => (A(), D("svg", {
341
341
  xmlns: "http://www.w3.org/2000/svg",
342
342
  viewBox: "0 0 1024 1024"
343
- }, [le("path", {
343
+ }, [se("path", {
344
344
  fill: "currentColor",
345
345
  d: "M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357 357 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a352 352 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357 357 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088-24.512 11.968a294 294 0 0 0-34.816 20.096l-22.656 15.36-116.224-25.088-65.28 113.152 79.68 88.192-1.92 27.136a293 293 0 0 0 0 40.192l1.92 27.136-79.808 88.192 65.344 113.152 116.224-25.024 22.656 15.296a294 294 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152 24.448-11.904a288 288 0 0 0 34.752-20.096l22.592-15.296 116.288 25.024 65.28-113.152-79.744-88.192 1.92-27.136a293 293 0 0 0 0-40.256l-1.92-27.136 79.808-88.128-65.344-113.152-116.288 24.96-22.592-15.232a288 288 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384 192 192 0 0 1 0-384m0 64a128 128 0 1 0 0 256 128 128 0 0 0 0-256"
346
346
  })]));
@@ -348,7 +348,7 @@ var ke = /* @__PURE__ */ D({
348
348
  });
349
349
  //#endregion
350
350
  //#region node_modules/sortablejs/modular/sortable.esm.js
351
- function ze(e, t, n) {
351
+ function Re(e, t, n) {
352
352
  return (t = Ge(t)) in e ? Object.defineProperty(e, t, {
353
353
  value: n,
354
354
  enumerable: !0,
@@ -356,16 +356,16 @@ function ze(e, t, n) {
356
356
  writable: !0
357
357
  }) : e[t] = n, e;
358
358
  }
359
- function Be() {
360
- return Be = Object.assign ? Object.assign.bind() : function(e) {
359
+ function ze() {
360
+ return ze = Object.assign ? Object.assign.bind() : function(e) {
361
361
  for (var t = 1; t < arguments.length; t++) {
362
362
  var n = arguments[t];
363
363
  for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
364
364
  }
365
365
  return e;
366
- }, Be.apply(null, arguments);
366
+ }, ze.apply(null, arguments);
367
367
  }
368
- function Ve(e, t) {
368
+ function Be(e, t) {
369
369
  var n = Object.keys(e);
370
370
  if (Object.getOwnPropertySymbols) {
371
371
  var r = Object.getOwnPropertySymbols(e);
@@ -375,12 +375,12 @@ function Ve(e, t) {
375
375
  }
376
376
  return n;
377
377
  }
378
- function j(e) {
378
+ function Ve(e) {
379
379
  for (var t = 1; t < arguments.length; t++) {
380
380
  var n = arguments[t] == null ? {} : arguments[t];
381
- t % 2 ? Ve(Object(n), !0).forEach(function(t) {
382
- ze(e, t, n[t]);
383
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Ve(Object(n)).forEach(function(t) {
381
+ t % 2 ? Be(Object(n), !0).forEach(function(t) {
382
+ Re(e, t, n[t]);
383
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Be(Object(n)).forEach(function(t) {
384
384
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
385
385
  });
386
386
  }
@@ -627,7 +627,7 @@ function xt() {
627
627
  target: t,
628
628
  rect: R(t)
629
629
  });
630
- var n = j({}, e[e.length - 1].rect);
630
+ var n = Ve({}, e[e.length - 1].rect);
631
631
  if (t.thisAnimationDuration) {
632
632
  var r = at(t, !0);
633
633
  r && (n.top -= r.f, n.left -= r.e);
@@ -689,7 +689,7 @@ var wt = [], Tt = { initializeByDefault: !0 }, Et = {
689
689
  };
690
690
  var i = e + "Global";
691
691
  wt.forEach(function(r) {
692
- t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](j({ sortable: t }, n)), t.options[r.pluginName] && t[r.pluginName][e] && t[r.pluginName][e](j({ sortable: t }, n)));
692
+ t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](Ve({ sortable: t }, n)), t.options[r.pluginName] && t[r.pluginName][e] && t[r.pluginName][e](Ve({ sortable: t }, n)));
693
693
  });
694
694
  },
695
695
  initializePlugins: function(e, t, n, r) {
@@ -697,7 +697,7 @@ var wt = [], Tt = { initializeByDefault: !0 }, Et = {
697
697
  var i = r.pluginName;
698
698
  if (!(!e.options[i] && !r.initializeByDefault)) {
699
699
  var a = new r(e, t, e.options);
700
- a.sortable = e, a.options = e.options, e[i] = a, Be(n, a.defaults);
700
+ a.sortable = e, a.options = e.options, e[i] = a, ze(n, a.defaults);
701
701
  }
702
702
  }), e.options) if (e.options.hasOwnProperty(i)) {
703
703
  var a = this.modifyOption(e, i, e.options[i]);
@@ -707,7 +707,7 @@ var wt = [], Tt = { initializeByDefault: !0 }, Et = {
707
707
  getEventProperties: function(e, t) {
708
708
  var n = {};
709
709
  return wt.forEach(function(r) {
710
- typeof r.eventProperties == "function" && Be(n, r.eventProperties.call(t[r.pluginName], e));
710
+ typeof r.eventProperties == "function" && ze(n, r.eventProperties.call(t[r.pluginName], e));
711
711
  }), n;
712
712
  },
713
713
  modifyOption: function(e, t, n) {
@@ -725,14 +725,14 @@ function Dt(e) {
725
725
  bubbles: !0,
726
726
  cancelable: !0
727
727
  }) : (h = document.createEvent("Event"), h.initEvent(r, !0, !0)), h.to = o || n, h.from = s || n, h.item = i || n, h.clone = a, h.oldIndex = c, h.newIndex = l, h.oldDraggableIndex = u, h.newDraggableIndex = d, h.originalEvent = f, h.pullMode = p ? p.lastPutMode : void 0;
728
- var ee = j(j({}, m), Et.getEventProperties(r, t));
729
- for (var v in ee) h[v] = ee[v];
728
+ var v = Ve(Ve({}, m), Et.getEventProperties(r, t));
729
+ for (var y in v) h[y] = v[y];
730
730
  n && n.dispatchEvent(h), g[_] && g[_].call(t, h);
731
731
  }
732
732
  }
733
733
  var Ot = ["evt"], V = function(e, t) {
734
734
  var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = He(n, Ot);
735
- Et.pluginEvent.bind(Q)(e, t, j({
735
+ Et.pluginEvent.bind(Q)(e, t, Ve({
736
736
  dragEl: U,
737
737
  parentEl: W,
738
738
  ghostEl: G,
@@ -767,7 +767,7 @@ var Ot = ["evt"], V = function(e, t) {
767
767
  }, i));
768
768
  };
769
769
  function H(e) {
770
- Dt(j({
770
+ Dt(Ve({
771
771
  putSortable: Y,
772
772
  cloneEl: q,
773
773
  targetEl: U,
@@ -842,7 +842,7 @@ var dn = function(e) {
842
842
  };
843
843
  function Q(e, t) {
844
844
  if (!(e && e.nodeType && e.nodeType === 1)) throw `Sortable: \`el\` must be an HTMLElement, not ${{}.toString.call(e)}`;
845
- this.el = e, this.options = t = Be({}, t), e[B] = this;
845
+ this.el = e, this.options = t = ze({}, t), e[B] = this;
846
846
  var n = {
847
847
  group: null,
848
848
  sort: !0,
@@ -887,7 +887,7 @@ function Q(e, t) {
887
887
  };
888
888
  for (var r in Et.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
889
889
  for (var i in cn(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
890
- this.nativeDraggable = t.forceFallback ? !1 : nn, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? M(e, "pointerdown", this._onTapStart) : (M(e, "mousedown", this._onTapStart), M(e, "touchstart", this._onTapStart)), this.nativeDraggable && (M(e, "dragover", this), M(e, "dragenter", this)), Rt.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), Be(this, xt());
890
+ this.nativeDraggable = t.forceFallback ? !1 : nn, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? M(e, "pointerdown", this._onTapStart) : (M(e, "mousedown", this._onTapStart), M(e, "touchstart", this._onTapStart)), this.nativeDraggable && (M(e, "dragover", this), M(e, "dragenter", this)), Rt.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), ze(this, xt());
891
891
  }
892
892
  Q.prototype = {
893
893
  constructor: Q,
@@ -1057,7 +1057,7 @@ Q.prototype = {
1057
1057
  var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = Q.active, l = Ft === s, u = o.sort, d = Y || c, f, p = this, m = !1;
1058
1058
  if (Zt) return;
1059
1059
  function h(o, s) {
1060
- V(o, p, j({
1060
+ V(o, p, Ve({
1061
1061
  evt: e,
1062
1062
  isOwner: l,
1063
1063
  axis: f ? "vertical" : "horizontal",
@@ -1071,7 +1071,7 @@ Q.prototype = {
1071
1071
  onMove: function(n, i) {
1072
1072
  return mn(K, t, U, r, n, R(n), e, i);
1073
1073
  },
1074
- changed: ee
1074
+ changed: v
1075
1075
  }, s));
1076
1076
  }
1077
1077
  function g() {
@@ -1082,7 +1082,7 @@ Q.prototype = {
1082
1082
  h("dragOverAnimationComplete"), p._ignoreWhileAnimating = null;
1083
1083
  }), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === U && !U.animated || n === t && !n.animated) && (Gt = null), !o.dragoverBubble && !e.rootEl && n !== document && (U.parentNode[B]._isOutsideThisEl(e.target), !r && dn(e)), !o.dragoverBubble && e.stopPropagation && e.stopPropagation(), m = !0;
1084
1084
  }
1085
- function ee() {
1085
+ function v() {
1086
1086
  J = z(U), Pt = z(U, o.draggable), H({
1087
1087
  sortable: p,
1088
1088
  name: "change",
@@ -1097,31 +1097,31 @@ Q.prototype = {
1097
1097
  if (Lt = !1, c && !o.disabled && (l ? u || (a = W !== K) : Y === this || (this.lastPutMode = Ft.checkPull(this, c, U, e)) && s.checkPut(this, c, U, e))) {
1098
1098
  if (f = this._getDirection(e, n) === "vertical", r = R(U), h("dragOverValid"), Q.eventCanceled) return m;
1099
1099
  if (a) return W = K, g(), this._hideClone(), h("revert"), Q.eventCanceled || (kt ? K.insertBefore(U, kt) : K.appendChild(U)), _(!0);
1100
- var v = lt(t, o.draggable);
1101
- if (!v || vn(e, f, this) && !v.animated) {
1102
- if (v === U) return _(!1);
1103
- if (v && t === e.target && (n = v), n && (i = R(n)), mn(K, t, U, r, n, i, e, !!n) !== !1) return g(), v && v.nextSibling ? t.insertBefore(U, v.nextSibling) : t.appendChild(U), W = t, ee(), _(!0);
1104
- } else if (v && _n(e, f, this)) {
1105
- var y = ct(t, 0, o, !0);
1100
+ var y = lt(t, o.draggable);
1101
+ if (!y || vn(e, f, this) && !y.animated) {
1106
1102
  if (y === U) return _(!1);
1107
- if (n = y, i = R(n), mn(K, t, U, r, n, i, e, !1) !== !1) return g(), t.insertBefore(U, y), W = t, ee(), _(!0);
1103
+ if (y && t === e.target && (n = y), n && (i = R(n)), mn(K, t, U, r, n, i, e, !!n) !== !1) return g(), y && y.nextSibling ? t.insertBefore(U, y.nextSibling) : t.appendChild(U), W = t, v(), _(!0);
1104
+ } else if (y && _n(e, f, this)) {
1105
+ var b = ct(t, 0, o, !0);
1106
+ if (b === U) return _(!1);
1107
+ if (n = b, i = R(n), mn(K, t, U, r, n, i, e, !1) !== !1) return g(), t.insertBefore(U, b), W = t, v(), _(!0);
1108
1108
  } else if (n.parentNode === t) {
1109
1109
  i = R(n);
1110
- var b = 0, x, te = U.parentNode !== t, ne = !on(U.animated && U.toRect || r, n.animated && n.toRect || i, f), S = f ? "top" : "left", re = st(n, "top", "top") || st(U, "top", "top"), ie = re ? re.scrollTop : void 0;
1111
- Gt !== n && (x = i[S], qt = !1, Jt = !ne && o.invertSwap || te), b = yn(e, n, i, f, ne ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, Jt, Gt === n);
1112
- var C;
1113
- if (b !== 0) {
1114
- var ae = z(U);
1110
+ var x = 0, S, ee = U.parentNode !== t, te = !on(U.animated && U.toRect || r, n.animated && n.toRect || i, f), C = f ? "top" : "left", ne = st(n, "top", "top") || st(U, "top", "top"), re = ne ? ne.scrollTop : void 0;
1111
+ Gt !== n && (S = i[C], qt = !1, Jt = !te && o.invertSwap || ee), x = yn(e, n, i, f, te ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, Jt, Gt === n);
1112
+ var w;
1113
+ if (x !== 0) {
1114
+ var ie = z(U);
1115
1115
  do
1116
- ae -= b, C = W.children[ae];
1117
- while (C && (I(C, "display") === "none" || C === G));
1116
+ ie -= x, w = W.children[ie];
1117
+ while (w && (I(w, "display") === "none" || w === G));
1118
1118
  }
1119
- if (b === 0 || C === n) return _(!1);
1120
- Gt = n, Kt = b;
1121
- var oe = n.nextElementSibling, w = !1;
1122
- w = b === 1;
1123
- var T = mn(K, t, U, r, n, i, e, w);
1124
- if (T !== !1) return (T === 1 || T === -1) && (w = T === 1), Zt = !0, setTimeout(gn, 30), g(), w && !oe ? t.appendChild(U) : n.parentNode.insertBefore(U, w ? oe : n), re && vt(re, 0, ie - re.scrollTop), W = U.parentNode, x !== void 0 && !Jt && (Yt = Math.abs(x - R(n)[S])), ee(), _(!0);
1119
+ if (x === 0 || w === n) return _(!1);
1120
+ Gt = n, Kt = x;
1121
+ var ae = n.nextElementSibling, T = !1;
1122
+ T = x === 1;
1123
+ var E = mn(K, t, U, r, n, i, e, T);
1124
+ if (E !== !1) return (E === 1 || E === -1) && (T = E === 1), Zt = !0, setTimeout(gn, 30), g(), T && !ae ? t.appendChild(U) : n.parentNode.insertBefore(U, T ? ae : n), ne && vt(ne, 0, re - ne.scrollTop), W = U.parentNode, S !== void 0 && !Jt && (Yt = Math.abs(S - R(n)[C])), v(), _(!0);
1125
1125
  }
1126
1126
  if (t.contains(U)) return _(!1);
1127
1127
  }
@@ -1340,7 +1340,7 @@ $t && M(document, "touchmove", function(e) {
1340
1340
  var e = [...arguments];
1341
1341
  e[0].constructor === Array && (e = e[0]), e.forEach(function(e) {
1342
1342
  if (!e.prototype || !e.prototype.constructor) throw `Sortable: Mounted plugin must be a constructor function, not ${{}.toString.call(e)}`;
1343
- e.utils && (Q.utils = j(j({}, Q.utils), e.utils)), Et.mount(e);
1343
+ e.utils && (Q.utils = Ve(Ve({}, Q.utils), e.utils)), Et.mount(e);
1344
1344
  });
1345
1345
  }, Q.create = function(e, t) {
1346
1346
  return new Q(e, t);
@@ -1391,7 +1391,7 @@ function Mn() {
1391
1391
  Fn(e, this.options, ft(a, !1), !1);
1392
1392
  }
1393
1393
  }
1394
- }, Be(e, {
1394
+ }, ze(e, {
1395
1395
  pluginName: "scroll",
1396
1396
  initializeByDefault: !0
1397
1397
  });
@@ -1410,11 +1410,11 @@ var Fn = gt(function(e, t, n, r) {
1410
1410
  En !== n && (En = n, Nn(), Tn = t.scroll, u = t.scrollFn, Tn === !0 && (Tn = ft(n, !0)));
1411
1411
  var d = 0, f = Tn;
1412
1412
  do {
1413
- var p = f, m = R(p), h = m.top, g = m.bottom, _ = m.left, ee = m.right, v = m.width, y = m.height, b = void 0, x = void 0, te = p.scrollWidth, ne = p.scrollHeight, S = I(p), re = p.scrollLeft, ie = p.scrollTop;
1414
- p === c ? (b = v < te && (S.overflowX === "auto" || S.overflowX === "scroll" || S.overflowX === "visible"), x = y < ne && (S.overflowY === "auto" || S.overflowY === "scroll" || S.overflowY === "visible")) : (b = v < te && (S.overflowX === "auto" || S.overflowX === "scroll"), x = y < ne && (S.overflowY === "auto" || S.overflowY === "scroll"));
1415
- var C = b && (Math.abs(ee - i) <= o && re + v < te) - (Math.abs(_ - i) <= o && !!re), ae = x && (Math.abs(g - a) <= o && ie + y < ne) - (Math.abs(h - a) <= o && !!ie);
1416
- if (!$[d]) for (var oe = 0; oe <= d; oe++) $[oe] || ($[oe] = {});
1417
- ($[d].vx != C || $[d].vy != ae || $[d].el !== p) && ($[d].el = p, $[d].vx = C, $[d].vy = ae, clearInterval($[d].pid), (C != 0 || ae != 0) && (l = !0, $[d].pid = setInterval(function() {
1413
+ var p = f, m = R(p), h = m.top, g = m.bottom, _ = m.left, v = m.right, y = m.width, b = m.height, x = void 0, S = void 0, ee = p.scrollWidth, te = p.scrollHeight, C = I(p), ne = p.scrollLeft, re = p.scrollTop;
1414
+ p === c ? (x = y < ee && (C.overflowX === "auto" || C.overflowX === "scroll" || C.overflowX === "visible"), S = b < te && (C.overflowY === "auto" || C.overflowY === "scroll" || C.overflowY === "visible")) : (x = y < ee && (C.overflowX === "auto" || C.overflowX === "scroll"), S = b < te && (C.overflowY === "auto" || C.overflowY === "scroll"));
1415
+ var w = x && (Math.abs(v - i) <= o && ne + y < ee) - (Math.abs(_ - i) <= o && !!ne), ie = S && (Math.abs(g - a) <= o && re + b < te) - (Math.abs(h - a) <= o && !!re);
1416
+ if (!$[d]) for (var ae = 0; ae <= d; ae++) $[ae] || ($[ae] = {});
1417
+ ($[d].vx != w || $[d].vy != ie || $[d].el !== p) && ($[d].el = p, $[d].vx = w, $[d].vy = ie, clearInterval($[d].pid), (w != 0 || ie != 0) && (l = !0, $[d].pid = setInterval(function() {
1418
1418
  r && this.layer === 0 && Q.active._onTouchMove(An);
1419
1419
  var t = $[this.layer].vy ? $[this.layer].vy * s : 0, n = $[this.layer].vx ? $[this.layer].vx * s : 0;
1420
1420
  typeof u == "function" && u.call(Q.dragged.parentNode[B], n, t, e, An, $[this.layer].el) !== "continue" || vt($[this.layer].el, n, t);
@@ -1447,7 +1447,7 @@ Ln.prototype = {
1447
1447
  r ? this.sortable.el.insertBefore(t, r) : this.sortable.el.appendChild(t), this.sortable.animateAll(), n && n.animateAll();
1448
1448
  },
1449
1449
  drop: In
1450
- }, Be(Ln, { pluginName: "revertOnSpill" });
1450
+ }, ze(Ln, { pluginName: "revertOnSpill" });
1451
1451
  function Rn() {}
1452
1452
  Rn.prototype = {
1453
1453
  onSpill: function(e) {
@@ -1455,13 +1455,13 @@ Rn.prototype = {
1455
1455
  n.captureAnimationState(), t.parentNode && t.parentNode.removeChild(t), n.animateAll();
1456
1456
  },
1457
1457
  drop: In
1458
- }, Be(Rn, { pluginName: "removeOnSpill" }), Q.mount(new Mn()), Q.mount(Rn, Ln);
1458
+ }, ze(Rn, { pluginName: "removeOnSpill" }), Q.mount(new Mn()), Q.mount(Rn, Ln);
1459
1459
  //#endregion
1460
1460
  //#region node_modules/@vueuse/integrations/dist/useSortable-Cc5LKbDD.js
1461
1461
  function zn(e, n, i = {}) {
1462
1462
  let s, { document: c = a, watchElement: l = !1, ...u } = i, d = { onUpdate: (e) => {
1463
1463
  Hn(n, e.oldIndex, e.newIndex, e);
1464
- } }, f = w(() => typeof e == "string" ? c?.querySelector(e) : t(e)), p = () => {
1464
+ } }, f = T(() => typeof e == "string" ? c?.querySelector(e) : t(e)), p = () => {
1465
1465
  s?.destroy(), s = void 0;
1466
1466
  }, m = (e) => {
1467
1467
  !e || s !== void 0 || (s = new Q(e, {
@@ -1475,7 +1475,7 @@ function zn(e, n, i = {}) {
1475
1475
  if (t !== void 0) s?.option(e, t);
1476
1476
  else return s?.option(e);
1477
1477
  }, _;
1478
- return l && typeof e != "string" ? _ = De(f, (e) => {
1478
+ return l && typeof e != "string" ? _ = Te(f, (e) => {
1479
1479
  p(), e && m(e);
1480
1480
  }, {
1481
1481
  immediate: !0,
@@ -1499,17 +1499,17 @@ function Vn(e) {
1499
1499
  }
1500
1500
  function Hn(e, t, n, r = null) {
1501
1501
  r != null && (Vn(r.item), Bn(r.from, r.item, t));
1502
- let i = me(e), a = i ? [...we(e)] : we(e);
1502
+ let i = fe(e), a = i ? [...Se(e)] : Se(e);
1503
1503
  if (n >= 0 && n < a.length) {
1504
1504
  let r = a.splice(t, 1)[0];
1505
- _e(() => {
1505
+ he(() => {
1506
1506
  a.splice(n, 0, r), i && (e.value = a);
1507
1507
  });
1508
1508
  }
1509
1509
  }
1510
1510
  //#endregion
1511
1511
  //#region src/components/advance/XTableConfig.vue?vue&type=script&setup=true&lang.tsx
1512
- var Un = { class: "relative flex flex-1 flex-col gap-2 overflow-hidden" }, Wn = /* @__PURE__ */ D({
1512
+ var Un = { class: "relative flex flex-1 flex-col gap-2 overflow-hidden" }, Wn = /* @__PURE__ */ k({
1513
1513
  __name: "XTableConfig",
1514
1514
  props: {
1515
1515
  data: {},
@@ -1525,6 +1525,7 @@ var Un = { class: "relative flex flex-1 flex-col gap-2 overflow-hidden" }, Wn =
1525
1525
  rowKey: { type: Function },
1526
1526
  showSummary: { type: Boolean },
1527
1527
  size: {},
1528
+ fit: { type: Boolean },
1528
1529
  spanMethod: { type: Function },
1529
1530
  summaryMethod: { type: Function }
1530
1531
  },
@@ -1544,56 +1545,56 @@ var Un = { class: "relative flex flex-1 flex-col gap-2 overflow-hidden" }, Wn =
1544
1545
  minWidth: t.width,
1545
1546
  content: n?.content
1546
1547
  };
1547
- }), u = ye();
1548
+ }), u = _e();
1548
1549
  zn(u, o, {
1549
1550
  animation: 150,
1550
1551
  ghostClass: "bg-(--el-color-primary-light-7)",
1551
1552
  handle: ".cursor-grab",
1552
1553
  onUpdate: (e) => {
1553
- Hn(o.value, e.oldIndex, e.newIndex, e), _e(() => {
1554
+ Hn(o.value, e.oldIndex, e.newIndex, e), he(() => {
1554
1555
  s(o.value);
1555
1556
  });
1556
1557
  }
1557
1558
  });
1558
- let d = () => E(Gn, {
1559
+ let d = () => O(Gn, {
1559
1560
  data: e.data,
1560
1561
  columns: l.value,
1561
1562
  showOverflowTooltip: !0,
1562
1563
  border: !0,
1563
1564
  onHeaderDragend: (e, t, n) => {
1564
1565
  let r = o.value.find((e) => e.code === n.columnKey);
1565
- r && (r.width = e, _e(() => {
1566
+ r && (r.width = e, he(() => {
1566
1567
  s(o.value);
1567
1568
  }));
1568
1569
  },
1569
1570
  onRowClick: (e) => a("rowClick", e)
1570
- }, null), f = () => E(te, {
1571
+ }, null), f = () => O(ee, {
1571
1572
  trigger: "click",
1572
1573
  width: "auto",
1573
1574
  "popper-class": "shadow-xl bg-(--el-bg-color)"
1574
1575
  }, {
1575
- reference: () => E(v, {
1576
- icon: Re,
1576
+ reference: () => O(y, {
1577
+ icon: Le,
1577
1578
  text: !0,
1578
1579
  class: "absolute top-0 right-0 z-1000"
1579
1580
  }, null),
1580
- default: () => E("div", { class: "flex flex-col gap-2" }, [E(ie, { size: "large" }, { default: () => [de(" 表头设置 ")] }), E(ne, { "max-height": 500 }, { default: () => [E("div", {
1581
+ default: () => O("div", { class: "flex flex-col gap-2" }, [O(re, { size: "large" }, { default: () => [le(" 表头设置 ")] }), O(te, { "max-height": 500 }, { default: () => [O("div", {
1581
1582
  ref: u,
1582
1583
  class: "flex flex-col divide-y divide-[#f2f6fc]"
1583
- }, { default: () => o.value.map((e) => E("div", { class: "flex w-50 items-center gap-2 py-2" }, [
1584
- E(v, {
1584
+ }, { default: () => o.value.map((e) => O("div", { class: "flex w-50 items-center gap-2 py-2" }, [
1585
+ O(y, {
1585
1586
  text: !0,
1586
- icon: Le,
1587
+ icon: Ie,
1587
1588
  type: "primary",
1588
1589
  size: "small",
1589
1590
  class: "cursor-grab"
1590
1591
  }, null),
1591
- E(ie, { class: "flex-1 overflow-ellipsis" }, { default: () => [e.label] }),
1592
- E(re, {
1592
+ O(re, { class: "flex-1 overflow-ellipsis" }, { default: () => [e.label] }),
1593
+ O(ne, {
1593
1594
  size: "small",
1594
1595
  modelValue: e.visible,
1595
1596
  "onUpdate:modelValue": (t) => {
1596
- e.visible = t, _e(() => {
1597
+ e.visible = t, he(() => {
1597
1598
  s(o.value);
1598
1599
  });
1599
1600
  }
@@ -1601,11 +1602,11 @@ var Un = { class: "relative flex flex-1 flex-col gap-2 overflow-hidden" }, Wn =
1601
1602
  ])) })] })])
1602
1603
  });
1603
1604
  return t({ data: e.data }), (e, t) => {
1604
- let n = Se("loading");
1605
- return Oe((O(), ce("div", Un, [E(f), E(d)])), [[n, k(c)]]);
1605
+ let n = be("loading");
1606
+ return De((A(), D("div", Un, [O(f), O(d)])), [[n, j(c)]]);
1606
1607
  };
1607
1608
  }
1608
- }), Gn = /* @__PURE__ */ D({
1609
+ }), Gn = /* @__PURE__ */ k({
1609
1610
  __name: "XTableFlex",
1610
1611
  props: {
1611
1612
  cellClassName: { type: [Function, String] },
@@ -1618,12 +1619,10 @@ var Un = { class: "relative flex flex-1 flex-col gap-2 overflow-hidden" }, Wn =
1618
1619
  height: {},
1619
1620
  emptyText: {},
1620
1621
  rowKey: { type: Function },
1621
- showOverflowTooltip: {
1622
- type: [Boolean, Object],
1623
- default: () => void 0
1624
- },
1622
+ showOverflowTooltip: { type: [Boolean, Object] },
1625
1623
  showSummary: { type: Boolean },
1626
1624
  size: {},
1625
+ fit: { type: Boolean },
1627
1626
  spanMethod: { type: Function },
1628
1627
  summaryMethod: { type: Function }
1629
1628
  },
@@ -1634,7 +1633,7 @@ var Un = { class: "relative flex flex-1 flex-col gap-2 overflow-hidden" }, Wn =
1634
1633
  "selectionChange"
1635
1634
  ],
1636
1635
  setup(e, { expose: t }) {
1637
- let n = Ee("container"), r = ee(n), i = Ee("table");
1636
+ let n = we("container"), r = v(n), i = we("table");
1638
1637
  return t({
1639
1638
  clearSelection: () => i.value?.clearSelection(),
1640
1639
  getSelectionRows: () => i.value?.getSelectionRows(),
@@ -1643,32 +1642,25 @@ var Un = { class: "relative flex flex-1 flex-col gap-2 overflow-hidden" }, Wn =
1643
1642
  setScrollLeft: (e) => i.value?.scrollTo(e),
1644
1643
  setScrollTop: (e) => i.value?.scrollTo(e),
1645
1644
  toggleRowSelection: (e, t, n) => i.value?.toggleRowSelection(e, t, n)
1646
- }), (t, a) => (O(), ce("div", {
1645
+ }), (e, t) => (A(), D("div", {
1647
1646
  ref_key: "container",
1648
1647
  ref: n,
1649
1648
  class: "flex-1 overflow-hidden"
1650
- }, [E(k(c), ge({
1649
+ }, [O(j(c), me({
1651
1650
  ref_key: "table",
1652
1651
  ref: i
1653
- }, {
1654
- ...t.$props,
1655
- cellClassName: e.cellClassName,
1656
- cellStyle: e.cellStyle,
1657
- rowClassName: e.rowClassName,
1658
- rowStyle: e.rowStyle,
1659
- showOverflowTooltip: e.showOverflowTooltip
1660
- }, {
1661
- height: k(r).height.value,
1662
- onRowClick: a[0] ||= (e) => t.$emit("rowClick", e),
1663
- onRowDblclick: a[1] ||= (e) => t.$emit("rowDblclick", e),
1664
- onSelectionChange: a[2] ||= (e) => t.$emit("selectionChange", e),
1665
- onHeaderDragend: a[3] ||= (e, n, r) => t.$emit("headerDragend", e, n, r)
1652
+ }, { ...e.$props }, {
1653
+ height: j(r).height.value,
1654
+ onRowClick: t[0] ||= (t) => e.$emit("rowClick", t),
1655
+ onRowDblclick: t[1] ||= (t) => e.$emit("rowDblclick", t),
1656
+ onSelectionChange: t[2] ||= (t) => e.$emit("selectionChange", t),
1657
+ onHeaderDragend: t[3] ||= (t, n, r) => e.$emit("headerDragend", t, n, r)
1666
1658
  }), null, 16, ["height"])], 512));
1667
1659
  }
1668
1660
  }), Kn = { class: "relative flex flex-1 flex-col gap-2 overflow-hidden" }, qn = {
1669
1661
  key: 0,
1670
1662
  class: "flex justify-end"
1671
- }, Jn = /* @__PURE__ */ D({
1663
+ }, Jn = /* @__PURE__ */ k({
1672
1664
  __name: "XTableRequestConfigNext",
1673
1665
  props: {
1674
1666
  request: { type: Function },
@@ -1690,6 +1682,7 @@ var Un = { class: "relative flex flex-1 flex-col gap-2 overflow-hidden" }, Wn =
1690
1682
  rowKey: { type: Function },
1691
1683
  showSummary: { type: Boolean },
1692
1684
  size: {},
1685
+ fit: { type: Boolean },
1693
1686
  spanMethod: { type: Function },
1694
1687
  summaryMethod: { type: Function }
1695
1688
  },
@@ -1701,14 +1694,14 @@ var Un = { class: "relative flex flex-1 flex-col gap-2 overflow-hidden" }, Wn =
1701
1694
  "selectionChange"
1702
1695
  ],
1703
1696
  setup(e, { expose: t, emit: r }) {
1704
- let a = r, { data: o, execute: s, path: c, query: l, isFetching: d, url: m, paging: h } = e.request(), ee = JSON.stringify(l.value), y = f(async () => {
1697
+ let a = r, { data: o, execute: s, path: c, query: l, isFetching: d, url: m, paging: h } = e.request(), v = JSON.stringify(l.value), b = f(async () => {
1705
1698
  a("prepare", {
1706
1699
  path: c.value,
1707
1700
  query: l.value
1708
1701
  }), s();
1709
- }), b = f(async () => {
1710
- l.value = JSON.parse(ee), y();
1711
- }), { data: x, update: C, loading: ae } = e.fields(), w = n(x, (e) => e.visible), T = i(w, (t) => {
1702
+ }), x = f(async () => {
1703
+ l.value = JSON.parse(v), b();
1704
+ }), { data: S, update: w, loading: ie } = e.fields(), se = n(S, (e) => e.visible), ce = i(se, (t) => {
1712
1705
  let n = e.config[t.code];
1713
1706
  return {
1714
1707
  columnKey: t.code,
@@ -1717,80 +1710,80 @@ var Un = { class: "relative flex flex-1 flex-col gap-2 overflow-hidden" }, Wn =
1717
1710
  minWidth: t.width,
1718
1711
  content: n?.content
1719
1712
  };
1720
- }), le = n(w, (e) => e.search), ue = ye();
1721
- zn(ue, x, {
1713
+ }), k = n(se, (e) => e.search), ue = T(() => !!k.value.length), de = _e();
1714
+ zn(de, S, {
1722
1715
  animation: 150,
1723
1716
  ghostClass: "bg-(--el-color-primary-light-7)",
1724
1717
  handle: ".cursor-grab",
1725
1718
  onUpdate: (e) => {
1726
- Hn(x.value, e.oldIndex, e.newIndex, e), _e(() => {
1727
- C(x.value);
1719
+ Hn(S.value, e.oldIndex, e.newIndex, e), he(() => {
1720
+ w(S.value);
1728
1721
  });
1729
1722
  }
1730
1723
  });
1731
- let D = () => E(u, {
1724
+ let fe = () => O(u, {
1732
1725
  data: l.value,
1733
- disabled: ae.value || d.value,
1734
- content: ({ data: t }) => E("div", { class: "grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 gap-x-2" }, [[...le.value.map((n) => {
1726
+ disabled: ie.value || d.value,
1727
+ content: ({ data: t }) => O("div", { class: "grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 gap-x-2" }, [[...k.value.map((n) => {
1735
1728
  let r = e.config[n.code];
1736
- return E(_, {
1729
+ return O(_, {
1737
1730
  label: r?.label ?? n.label,
1738
- content: () => r?.search?.({ query: t }) ?? E(p, {
1731
+ content: () => r?.search?.({ query: t }) ?? O(p, {
1739
1732
  disabled: !0,
1740
1733
  modelValue: n.code
1741
1734
  }, null)
1742
1735
  }, null);
1743
- }), E(_, { content: () => E(S, null, { default: () => [E(ke, { action: () => y() }, { default: () => [de("查询")] }), E(v, { onClick: () => b() }, { default: () => [de("重置")] })] }) }, null)]])
1744
- }, null), fe = () => e.header?.({
1736
+ }), O(_, { content: () => O(C, null, { default: () => [O(Oe, { action: () => b() }, { default: () => [le("查询")] }), O(y, { onClick: () => x() }, { default: () => [le("重置")] })] }) }, null)]])
1737
+ }, null), pe = () => e.header?.({
1745
1738
  data: o.value,
1746
1739
  isFetching: d.value,
1747
1740
  paging: h.value,
1748
1741
  path: c.value,
1749
1742
  query: l.value
1750
- }), pe = () => E(Gn, {
1743
+ }), me = () => O(Gn, {
1751
1744
  data: o.value,
1752
- columns: T.value,
1745
+ columns: ce.value,
1753
1746
  showOverflowTooltip: !0,
1754
1747
  border: !0,
1755
1748
  onHeaderDragend: (e, t, n) => {
1756
- let r = x.value.find((e) => e.code === n.columnKey);
1757
- r && (r.width = e, _e(() => {
1758
- C(x.value);
1749
+ let r = S.value.find((e) => e.code === n.columnKey);
1750
+ r && (r.width = e, he(() => {
1751
+ w(S.value);
1759
1752
  }));
1760
1753
  }
1761
- }, null), me = () => E(te, {
1754
+ }, null), ge = () => O(ee, {
1762
1755
  trigger: "click",
1763
1756
  width: "auto",
1764
1757
  "popper-class": "shadow-xl bg-(--el-bg-color)"
1765
1758
  }, {
1766
- reference: () => E(v, {
1767
- icon: Re,
1759
+ reference: () => O(y, {
1760
+ icon: Le,
1768
1761
  text: !0,
1769
1762
  class: "absolute top-0 right-0 z-1000"
1770
1763
  }, null),
1771
- default: () => E("div", { class: "flex flex-col gap-2" }, [E(ie, { size: "large" }, { default: () => [de(" 表头设置 ")] }), E(ne, { "max-height": 500 }, { default: () => [E("div", {
1772
- ref: ue,
1764
+ default: () => O("div", { class: "flex flex-col gap-2" }, [O(re, { size: "large" }, { default: () => [le(" 表头设置 ")] }), O(te, { "max-height": 500 }, { default: () => [O("div", {
1765
+ ref: de,
1773
1766
  class: "flex flex-col divide-y divide-[#f2f6fc]"
1774
- }, { default: () => x.value.map((e) => E("div", { class: "flex w-50 items-center gap-2 py-2" }, [
1775
- E(v, {
1767
+ }, { default: () => S.value.map((e) => O("div", { class: "flex w-50 items-center gap-2 py-2" }, [
1768
+ O(y, {
1776
1769
  text: !0,
1777
- icon: Le,
1770
+ icon: Ie,
1778
1771
  type: "primary",
1779
1772
  size: "small",
1780
1773
  class: "cursor-grab"
1781
1774
  }, null),
1782
- E(ie, { class: "flex-1 overflow-ellipsis" }, { default: () => [e.label] }),
1783
- E(re, {
1775
+ O(re, { class: "flex-1 overflow-ellipsis" }, { default: () => [e.label] }),
1776
+ O(ne, {
1784
1777
  size: "small",
1785
1778
  modelValue: e.visible,
1786
1779
  "onUpdate:modelValue": (t) => {
1787
- e.visible = t, _e(() => {
1788
- C(x.value);
1780
+ e.visible = t, he(() => {
1781
+ w(S.value);
1789
1782
  });
1790
1783
  }
1791
1784
  }, null)
1792
1785
  ])) })] })])
1793
- }), he = () => E(g, {
1786
+ }), ve = () => O(g, {
1794
1787
  size: "small",
1795
1788
  total: h.value.itemCount,
1796
1789
  currentPage: h.value.pageIndex,
@@ -1803,7 +1796,7 @@ var Un = { class: "relative flex flex-1 flex-col gap-2 overflow-hidden" }, Wn =
1803
1796
  }
1804
1797
  }, null);
1805
1798
  return t({
1806
- search: y,
1799
+ search: b,
1807
1800
  data: o,
1808
1801
  paging: h,
1809
1802
  isFetching: d,
@@ -1811,22 +1804,25 @@ var Un = { class: "relative flex flex-1 flex-col gap-2 overflow-hidden" }, Wn =
1811
1804
  query: l,
1812
1805
  path: c
1813
1806
  }), (t, n) => {
1814
- let r = Se("loading");
1815
- return O(), ce(oe, null, [
1816
- E(D, { class: "rounded bg-(--el-fill-color-darker) px-2 pt-4" }),
1817
- E(fe),
1818
- Oe((O(), ce("div", Kn, [
1819
- E(me),
1820
- E(pe),
1821
- e.pagination ? (O(), ce("div", qn, [E(he)])) : se("", !0)
1822
- ])), [[r, k(ae) || k(d)]])
1807
+ let r = be("loading");
1808
+ return A(), D(ae, null, [
1809
+ ue.value ? (A(), E(fe, {
1810
+ key: 0,
1811
+ class: "rounded bg-(--el-fill-color-darker) px-2 pt-4"
1812
+ })) : oe("", !0),
1813
+ O(pe),
1814
+ De((A(), D("div", Kn, [
1815
+ O(ge),
1816
+ O(me),
1817
+ e.pagination ? (A(), D("div", qn, [O(ve)])) : oe("", !0)
1818
+ ])), [[r, j(ie) || j(d)]])
1823
1819
  ], 64);
1824
1820
  };
1825
1821
  }
1826
1822
  }), Yn = { class: "flex flex-1 flex-col gap-2 overflow-hidden" }, Xn = {
1827
1823
  key: 0,
1828
1824
  class: "flex justify-end"
1829
- }, Zn = /* @__PURE__ */ D({
1825
+ }, Zn = /* @__PURE__ */ k({
1830
1826
  __name: "XTableRequestNext",
1831
1827
  props: {
1832
1828
  request: { type: Function },
@@ -1851,6 +1847,7 @@ var Un = { class: "relative flex flex-1 flex-col gap-2 overflow-hidden" }, Wn =
1851
1847
  },
1852
1848
  showSummary: { type: Boolean },
1853
1849
  size: {},
1850
+ fit: { type: Boolean },
1854
1851
  spanMethod: { type: Function },
1855
1852
  summaryMethod: { type: Function }
1856
1853
  },
@@ -1877,7 +1874,7 @@ var Un = { class: "relative flex flex-1 flex-col gap-2 overflow-hidden" }, Wn =
1877
1874
  query: s,
1878
1875
  path: o
1879
1876
  });
1880
- let d = () => e.header?.({ query: s.value }), p = () => E(Gn, {
1877
+ let d = () => e.header?.({ query: s.value }), p = () => O(Gn, {
1881
1878
  data: i.value,
1882
1879
  columns: e.columns,
1883
1880
  showOverflowTooltip: e.showOverflowTooltip,
@@ -1888,9 +1885,8 @@ var Un = { class: "relative flex flex-1 flex-col gap-2 overflow-hidden" }, Wn =
1888
1885
  cellClassName: e.cellClassName,
1889
1886
  cellStyle: e.cellStyle,
1890
1887
  rowClassName: e.rowClassName,
1891
- rowStyle: e.rowStyle,
1892
- fit: e.fit
1893
- }, null), m = () => E(g, {
1888
+ rowStyle: e.rowStyle
1889
+ }, null), m = () => O(g, {
1894
1890
  size: "small",
1895
1891
  total: u.value.itemCount,
1896
1892
  currentPage: u.value.pageIndex,
@@ -1901,18 +1897,18 @@ var Un = { class: "relative flex flex-1 flex-col gap-2 overflow-hidden" }, Wn =
1901
1897
  onSizeChange: () => a()
1902
1898
  }, null), h = () => e.footer?.({ query: s.value });
1903
1899
  return (t, n) => {
1904
- let r = Se("loading");
1905
- return Oe((O(), ce("div", Yn, [
1906
- E(d),
1907
- E(p),
1908
- e.pagination ? (O(), ce("div", Xn, [E(m)])) : se("", !0),
1909
- E(h)
1910
- ])), [[r, k(c)]]);
1900
+ let r = be("loading");
1901
+ return De((A(), D("div", Yn, [
1902
+ O(d),
1903
+ O(p),
1904
+ e.pagination ? (A(), D("div", Xn, [O(m)])) : oe("", !0),
1905
+ O(h)
1906
+ ])), [[r, j(c)]]);
1911
1907
  };
1912
1908
  }
1913
- }), Qn = /* @__PURE__ */ D({
1909
+ }), Qn = /* @__PURE__ */ k({
1914
1910
  __name: "XUploadOssNext",
1915
- props: /* @__PURE__ */ he({
1911
+ props: /* @__PURE__ */ pe({
1916
1912
  maxSize: { default: () => 50 * 1024 * 1024 },
1917
1913
  accept: {},
1918
1914
  disabled: { type: Boolean },
@@ -1928,7 +1924,7 @@ var Un = { class: "relative flex flex-1 flex-col gap-2 overflow-hidden" }, Wn =
1928
1924
  }),
1929
1925
  emits: ["update:modelValue"],
1930
1926
  setup(e) {
1931
- let t = pe(s), n = Te(e, "modelValue"), r = w(() => typeof t?.oss == "function" ? t.oss() : t?.oss), i = ye(""), a = (e) => {
1927
+ let t = de(s), n = Ce(e, "modelValue"), r = T(() => typeof t?.oss == "function" ? t.oss() : t?.oss), i = _e(""), a = (e) => {
1932
1928
  let t = `${r.value?.dir}/${Date.now()}/${e.name}`;
1933
1929
  return i.value = `${r.value?.host}/${t}`, {
1934
1930
  ...r.value,
@@ -1936,14 +1932,14 @@ var Un = { class: "relative flex flex-1 flex-col gap-2 overflow-hidden" }, Wn =
1936
1932
  OSSAccessKeyId: r.value?.accessId,
1937
1933
  success_action_status: "200"
1938
1934
  };
1939
- }, o = (t) => (t.size > e.maxSize && b.warning("文件过大,请重新选择"), t.size < e.maxSize), c = (e, t) => n.value = Array.isArray(n.value) ? t.map((e) => e.url) : void 0, u = () => n.value = Array.isArray(n.value) ? n.value.concat(i.value) : i.value, d = (e) => window.open(e.url), f = w(() => [].concat(n.value ?? []).reverse().map((e) => ({
1935
+ }, o = (t) => (t.size > e.maxSize && x.warning("文件过大,请重新选择"), t.size < e.maxSize), c = (e, t) => n.value = Array.isArray(n.value) ? t.map((e) => e.url) : void 0, u = () => n.value = Array.isArray(n.value) ? n.value.concat(i.value) : i.value, d = (e) => window.open(e.url), f = T(() => [].concat(n.value ?? []).reverse().map((e) => ({
1940
1936
  name: e.split("/").findLast(() => !0),
1941
1937
  url: e,
1942
- uid: C()
1943
- }))), { t: p } = ae(pe(l, void 0));
1938
+ uid: w()
1939
+ }))), { t: p } = ie(de(l, void 0));
1944
1940
  return (t, n) => {
1945
- let i = xe("XButton");
1946
- return O(), T(k(m), ge({
1941
+ let i = ye("XButton");
1942
+ return A(), E(j(m), me({
1947
1943
  accept: e.accept,
1948
1944
  action: r.value?.host,
1949
1945
  data: a,
@@ -1952,30 +1948,30 @@ var Un = { class: "relative flex flex-1 flex-col gap-2 overflow-hidden" }, Wn =
1952
1948
  onRemove: c,
1953
1949
  onSuccess: u,
1954
1950
  onPreview: d
1955
- }, { showFileList: "" }), ue({
1956
- default: A(() => [be(t.$slots, "default", {}, () => [E(i, {
1951
+ }, { showFileList: "" }), ce({
1952
+ default: Ee(() => [ve(t.$slots, "default", {}, () => [O(i, {
1957
1953
  type: "primary",
1958
1954
  size: "small"
1959
1955
  }, {
1960
- default: A(() => [de(Ce(k(p)("el.uploadOss.placeholder")), 1)]),
1956
+ default: Ee(() => [le(xe(j(p)("el.uploadOss.placeholder")), 1)]),
1961
1957
  _: 1
1962
1958
  })])]),
1963
1959
  _: 2
1964
1960
  }, ["tip" in t.$slots ? {
1965
1961
  name: "tip",
1966
- fn: A(() => [be(t.$slots, "tip")]),
1962
+ fn: Ee(() => [ve(t.$slots, "tip")]),
1967
1963
  key: "0"
1968
1964
  } : void 0]), 1040);
1969
1965
  };
1970
1966
  }
1971
1967
  }), $n = /* @__PURE__ */ e({
1972
- XButtonAsync: () => ke,
1973
- XButtonConfirm: () => Ae,
1974
- XCascaderRequest: () => je,
1975
- XFormFlex: () => Ne,
1976
- XFormRequestNext: () => Pe,
1977
- XRequest: () => Fe,
1978
- XSelectRequest: () => Ie,
1968
+ XButtonAsync: () => Oe,
1969
+ XButtonConfirm: () => ke,
1970
+ XCascaderRequest: () => Ae,
1971
+ XFormFlex: () => Me,
1972
+ XFormRequestNext: () => Ne,
1973
+ XRequest: () => Pe,
1974
+ XSelectRequest: () => Fe,
1979
1975
  XTableConfig: () => Wn,
1980
1976
  XTableFlex: () => Gn,
1981
1977
  XTableRequestConfigNext: () => Jn,
@@ -1983,4 +1979,4 @@ var Un = { class: "relative flex flex-1 flex-col gap-2 overflow-hidden" }, Wn =
1983
1979
  XUploadOssNext: () => Qn
1984
1980
  });
1985
1981
  //#endregion
1986
- export { Gn as a, Fe as c, je as d, Ae as f, Jn as i, Pe as l, Qn as n, Wn as o, ke as p, Zn as r, Ie as s, $n as t, Ne as u };
1982
+ export { Gn as a, Pe as c, Ae as d, ke as f, Jn as i, Ne as l, Qn as n, Wn as o, Oe as p, Zn as r, Fe as s, $n as t, Me as u };