@mtn-ui/components 1.0.6 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/dist/antd-wrapped/action-group/action-group.vue.js +2 -2
  2. package/dist/antd-wrapped/action-group/action-group.vue2.js +209 -159
  3. package/dist/antd-wrapped/table/table.js +6 -21
  4. package/dist/components.css +1 -1
  5. package/dist/index.cjs +1 -1
  6. package/dist/index.js +22 -17
  7. package/dist/index.mjs +383 -374
  8. package/package.json +51 -51
  9. package/dist/antd-wrapped/table/index.js +0 -7
  10. package/dist/antd-wrapped/table/props.js +0 -35
  11. package/dist/types/index.d.ts +0 -18
  12. package/dist/types/packages/components/src/_utils/__tests__/filterMenuByPermission.test.d.ts +0 -1
  13. package/dist/types/packages/components/src/_utils/__tests__/usePermission.test.d.ts +0 -1
  14. package/dist/types/packages/components/src/_utils/constants.d.ts +0 -7
  15. package/dist/types/packages/components/src/_utils/filterMenuByPermission.d.ts +0 -14
  16. package/dist/types/packages/components/src/_utils/index.d.ts +0 -7
  17. package/dist/types/packages/components/src/_utils/types.d.ts +0 -7
  18. package/dist/types/packages/components/src/_utils/usePermission.d.ts +0 -29
  19. package/dist/types/packages/components/src/antd-wrapped/action-group/__tests__/action-group.test.d.ts +0 -1
  20. package/dist/types/packages/components/src/antd-wrapped/action-group/index.d.ts +0 -4
  21. package/dist/types/packages/components/src/antd-wrapped/action-group/props.d.ts +0 -91
  22. package/dist/types/packages/components/src/antd-wrapped/action-group/types.d.ts +0 -110
  23. package/dist/types/packages/components/src/antd-wrapped/action-group/utils.d.ts +0 -17
  24. package/dist/types/packages/components/src/antd-wrapped/button/__tests__/button.test.d.ts +0 -1
  25. package/dist/types/packages/components/src/antd-wrapped/button/button.d.ts +0 -112
  26. package/dist/types/packages/components/src/antd-wrapped/button/index.d.ts +0 -5
  27. package/dist/types/packages/components/src/antd-wrapped/button/props.d.ts +0 -55
  28. package/dist/types/packages/components/src/antd-wrapped/button/types.d.ts +0 -38
  29. package/dist/types/packages/components/src/antd-wrapped/button-group/button-group.d.ts +0 -50
  30. package/dist/types/packages/components/src/antd-wrapped/button-group/index.d.ts +0 -5
  31. package/dist/types/packages/components/src/antd-wrapped/button-group/props.d.ts +0 -28
  32. package/dist/types/packages/components/src/antd-wrapped/delete-button/__tests__/delete-button.test.d.ts +0 -1
  33. package/dist/types/packages/components/src/antd-wrapped/delete-button/index.d.ts +0 -2
  34. package/dist/types/packages/components/src/antd-wrapped/delete-button/props.d.ts +0 -122
  35. package/dist/types/packages/components/src/antd-wrapped/dropdown-button/__tests__/dropdown-button.test.d.ts +0 -1
  36. package/dist/types/packages/components/src/antd-wrapped/dropdown-button/dropdown-button.d.ts +0 -106
  37. package/dist/types/packages/components/src/antd-wrapped/dropdown-button/index.d.ts +0 -5
  38. package/dist/types/packages/components/src/antd-wrapped/dropdown-button/props.d.ts +0 -49
  39. package/dist/types/packages/components/src/antd-wrapped/dropdown-button/types.d.ts +0 -36
  40. package/dist/types/packages/components/src/antd-wrapped/index.d.ts +0 -10
  41. package/dist/types/packages/components/src/antd-wrapped/table/index.d.ts +0 -68
  42. package/dist/types/packages/components/src/antd-wrapped/table/props.d.ts +0 -37
  43. package/dist/types/packages/components/src/antd-wrapped/table/table.d.ts +0 -67
  44. package/dist/types/packages/components/src/data-display/index.d.ts +0 -5
  45. package/dist/types/packages/components/src/data-display/tag/__tests__/tag.test.d.ts +0 -1
  46. package/dist/types/packages/components/src/data-display/tag/index.d.ts +0 -21
  47. package/dist/types/packages/components/src/data-display/tag/props.d.ts +0 -11
  48. package/dist/types/packages/components/src/data-display/tag/tag.d.ts +0 -20
  49. package/dist/types/packages/components/src/index.d.ts +0 -18
package/dist/index.mjs CHANGED
@@ -1,10 +1,11 @@
1
- import { cn as _e, withInstall as ve, PERMISSION_CHECKER_KEY as J, defaultPermissionChecker as Q } from "@mtn-ui/shared";
2
- import { defineComponent as _, createVNode as b, inject as X, ref as w, computed as p, mergeProps as S, Fragment as I, h as Ee, Comment as Ne, Text as $e, useSlots as Oe, createElementBlock as D, openBlock as u, createElementVNode as ae, unref as B, withCtx as m, createBlock as v, createCommentVNode as Le, renderList as L, resolveDynamicComponent as A, createSlots as W, createTextVNode as F, toDisplayString as Y, cloneVNode as le, watch as ue, nextTick as se, onBeforeUnmount as Re, renderSlot as j, isVNode as Ve } from "vue";
3
- import { cva as je } from "class-variance-authority";
4
- import { Button as be, Space as ce, Dropdown as de, Menu as H, Popconfirm as We, message as fe, Modal as Fe, Table as Ge } from "ant-design-vue";
5
- import { useElementSize as He, useDebounceFn as Ke } from "@vueuse/core";
6
- import { MoreOutlined as Ue, DeleteOutlined as pe, ExclamationCircleOutlined as qe } from "@ant-design/icons-vue";
7
- const Ye = {
1
+ import { cn as Re, withInstall as $e, PERMISSION_CHECKER_KEY as re, defaultPermissionChecker as ie } from "@mtn-ui/shared";
2
+ import { defineComponent as R, createVNode as S, inject as ae, ref as D, computed as p, mergeProps as z, Fragment as E, h as Ge, Comment as Ve, Text as Ue, useSlots as je, shallowRef as He, watch as Z, createElementBlock as x, openBlock as s, createElementVNode as me, unref as b, withCtx as y, createBlock as k, createCommentVNode as Fe, renderList as O, resolveDynamicComponent as T, createSlots as U, createTextVNode as j, toDisplayString as te, cloneVNode as ye, nextTick as ve, onBeforeUnmount as We, renderSlot as V } from "vue";
3
+ import { cva as Ke } from "class-variance-authority";
4
+ import { Button as Ce, Space as ge, Dropdown as he, Menu as q, Popconfirm as Ye, message as ke, Modal as Xe, Table as qe } from "ant-design-vue";
5
+ import { Table as It } from "ant-design-vue";
6
+ import { useElementSize as Ze, useDebounceFn as ze } from "@vueuse/core";
7
+ import { MoreOutlined as Je, DeleteOutlined as be, ExclamationCircleOutlined as Qe } from "@ant-design/icons-vue";
8
+ const et = {
8
9
  type: {
9
10
  type: String,
10
11
  default: "default"
@@ -12,7 +13,7 @@ const Ye = {
12
13
  color: {
13
14
  type: String
14
15
  }
15
- }, Ze = je("inline-flex items-center px-2 py-0.5 rounded text-xs font-medium border transition-colors", {
16
+ }, tt = Ke("inline-flex items-center px-2 py-0.5 rounded text-xs font-medium border transition-colors", {
16
17
  variants: {
17
18
  type: {
18
19
  default: "bg-gray-100 text-gray-800 border-gray-200",
@@ -25,11 +26,11 @@ const Ye = {
25
26
  defaultVariants: {
26
27
  type: "default"
27
28
  }
28
- }), Je = /* @__PURE__ */ _({
29
+ }), nt = /* @__PURE__ */ R({
29
30
  name: "MTag",
30
- props: Ye,
31
+ props: et,
31
32
  setup(e, {
32
- slots: n,
33
+ slots: r,
33
34
  attrs: t
34
35
  }) {
35
36
  return () => {
@@ -37,14 +38,14 @@ const Ye = {
37
38
  const {
38
39
  type: o
39
40
  } = e;
40
- return b("span", {
41
- class: _e(Ze({
41
+ return S("span", {
42
+ class: Re(tt({
42
43
  type: o
43
44
  }), t.class)
44
- }, [(l = n.default) == null ? void 0 : l.call(n)]);
45
+ }, [(l = r.default) == null ? void 0 : l.call(r)]);
45
46
  };
46
47
  }
47
- }), Qe = ve(Je), ke = {
48
+ }), ot = $e(nt), Te = {
48
49
  // 按钮类型
49
50
  type: {
50
51
  type: String,
@@ -105,19 +106,19 @@ const Ye = {
105
106
  default: "hide"
106
107
  }
107
108
  };
108
- function he(e) {
109
- const { permission: n, permissionAction: t = "hide" } = e, o = X(J, w(Q)), l = p(() => n ? o.value(n) : !0), y = p(() => !l.value && t === "hide"), g = p(() => !l.value && t === "disable");
109
+ function Ae(e) {
110
+ const { permission: r, permissionAction: t = "hide" } = e, o = ae(re, D(ie)), l = p(() => r ? o.value(r) : !0), v = p(() => !l.value && t === "hide"), m = p(() => !l.value && t === "disable");
110
111
  return {
111
112
  hasPermission: l,
112
- shouldHide: y,
113
- shouldDisable: g
113
+ shouldHide: v,
114
+ shouldDisable: m
114
115
  };
115
116
  }
116
- function Xe(e, n) {
117
+ function rt(e, r) {
117
118
  return e.map((t) => {
118
119
  if (!t || t.type === "divider" || !t.permission)
119
120
  return t;
120
- if (!n(t.permission)) {
121
+ if (!r(t.permission)) {
121
122
  const l = t.permissionAction || "hide";
122
123
  if (l === "hide")
123
124
  return null;
@@ -127,29 +128,29 @@ function Xe(e, n) {
127
128
  return t;
128
129
  }).filter(Boolean);
129
130
  }
130
- const K = /* @__PURE__ */ _({
131
+ const J = /* @__PURE__ */ R({
131
132
  name: "MButton",
132
- props: ke,
133
+ props: Te,
133
134
  emits: ["click"],
134
135
  setup(e, {
135
- slots: n,
136
+ slots: r,
136
137
  attrs: t,
137
138
  emit: o
138
139
  }) {
139
140
  const {
140
141
  shouldHide: l,
141
- shouldDisable: y
142
- } = he({
142
+ shouldDisable: v
143
+ } = Ae({
143
144
  permission: e.permission,
144
145
  permissionAction: e.permissionAction
145
- }), g = (d) => {
146
- o("click", d);
146
+ }), m = (f) => {
147
+ o("click", f);
147
148
  };
148
- return () => l.value ? null : b(be, S({
149
+ return () => l.value ? null : S(Ce, z({
149
150
  type: e.type,
150
151
  size: e.size,
151
152
  loading: e.loading,
152
- disabled: e.disabled || y.value,
153
+ disabled: e.disabled || v.value,
153
154
  danger: e.danger,
154
155
  block: e.block,
155
156
  ghost: e.ghost,
@@ -158,19 +159,19 @@ const K = /* @__PURE__ */ _({
158
159
  icon: e.icon
159
160
  }, t, {
160
161
  class: ["mtn-button", t.class],
161
- onClick: g
162
+ onClick: m
162
163
  }), {
163
164
  default: () => {
164
- var d;
165
- return (d = n.default) == null ? void 0 : d.call(n);
165
+ var f;
166
+ return (f = r.default) == null ? void 0 : f.call(r);
166
167
  },
167
168
  icon: () => {
168
- var d;
169
- return (d = n.icon) == null ? void 0 : d.call(n);
169
+ var f;
170
+ return (f = r.icon) == null ? void 0 : f.call(r);
170
171
  }
171
172
  });
172
173
  }
173
- }), et = {
174
+ }), it = {
174
175
  // 按钮组尺寸
175
176
  size: {
176
177
  type: String,
@@ -196,16 +197,16 @@ const K = /* @__PURE__ */ _({
196
197
  type: Boolean,
197
198
  default: !1
198
199
  }
199
- }, Be = /* @__PURE__ */ _({
200
+ }, Pe = /* @__PURE__ */ R({
200
201
  name: "MButtonGroup",
201
- props: et,
202
+ props: it,
202
203
  setup(e, {
203
- slots: n,
204
+ slots: r,
204
205
  attrs: t
205
206
  }) {
206
- return () => b(I, null, [e.compact ? (
207
+ return () => S(E, null, [e.compact ? (
207
208
  // 紧凑模式:按钮紧密连接
208
- b(ce.Compact, S({
209
+ S(ge.Compact, z({
209
210
  size: e.size,
210
211
  direction: e.vertical ? "vertical" : "horizontal",
211
212
  block: e.block
@@ -214,12 +215,12 @@ const K = /* @__PURE__ */ _({
214
215
  }), {
215
216
  default: () => {
216
217
  var o;
217
- return [(o = n.default) == null ? void 0 : o.call(n)];
218
+ return [(o = r.default) == null ? void 0 : o.call(r)];
218
219
  }
219
220
  })
220
221
  ) : (
221
222
  // 普通模式:按钮有间距
222
- b(ce, S({
223
+ S(ge, z({
223
224
  size: typeof e.gap == "number" ? e.gap : parseInt(e.gap) || 8,
224
225
  direction: e.vertical ? "vertical" : "horizontal"
225
226
  }, t, {
@@ -227,12 +228,12 @@ const K = /* @__PURE__ */ _({
227
228
  }), {
228
229
  default: () => {
229
230
  var o;
230
- return [(o = n.default) == null ? void 0 : o.call(n)];
231
+ return [(o = r.default) == null ? void 0 : o.call(r)];
231
232
  }
232
233
  })
233
234
  )]);
234
235
  }
235
- }), tt = {
236
+ }), at = {
236
237
  // 按钮文字
237
238
  text: {
238
239
  type: String,
@@ -288,77 +289,77 @@ const K = /* @__PURE__ */ _({
288
289
  type: String,
289
290
  default: "hide"
290
291
  }
291
- }, Z = /* @__PURE__ */ _({
292
+ }, oe = /* @__PURE__ */ R({
292
293
  name: "MDropdownButton",
293
- props: tt,
294
+ props: at,
294
295
  emits: ["click"],
295
296
  setup(e, {
296
- slots: n,
297
+ slots: r,
297
298
  attrs: t,
298
299
  emit: o
299
300
  }) {
300
301
  const {
301
302
  shouldHide: l,
302
- shouldDisable: y
303
- } = he({
303
+ shouldDisable: v
304
+ } = Ae({
304
305
  permission: e.permission,
305
306
  permissionAction: e.permissionAction
306
- }), g = X(J, w(Q)), d = (k) => {
307
- o("click", k);
307
+ }), m = ae(re, D(ie)), f = (g) => {
308
+ o("click", g);
308
309
  };
309
310
  return () => {
310
311
  if (l.value)
311
312
  return null;
312
- const k = {};
313
- if (n.overlay)
314
- k.overlay = n.overlay;
313
+ const g = {};
314
+ if (r.overlay)
315
+ g.overlay = r.overlay;
315
316
  else if (e.menu && e.menu.length > 0) {
316
- const h = Xe(e.menu, g.value);
317
- k.overlay = () => Ee(H, {
318
- items: h
317
+ const B = rt(e.menu, m.value);
318
+ g.overlay = () => Ge(q, {
319
+ items: B
319
320
  });
320
321
  }
321
- return n.icon && (k.icon = n.icon), !(n.default || e.text) ? b(de, S({
322
+ return r.icon && (g.icon = r.icon), !(r.default || e.text) ? S(he, z({
322
323
  placement: e.placement,
323
324
  trigger: e.trigger
324
325
  }, t, {
325
326
  class: ["mtn-dropdown-button", t.class]
326
327
  }), {
327
- default: () => [b(be, {
328
+ default: () => [S(Ce, {
328
329
  type: e.type,
329
330
  size: e.size === "middle" ? void 0 : e.size,
330
- disabled: e.disabled || y.value,
331
+ disabled: e.disabled || v.value,
331
332
  loading: e.loading,
332
333
  danger: e.danger,
333
- onClick: d
334
+ onClick: f
334
335
  }, {
335
336
  default: () => {
336
- var h;
337
- return [(h = n.icon) == null ? void 0 : h.call(n)];
337
+ var B;
338
+ return [(B = r.icon) == null ? void 0 : B.call(r)];
338
339
  }
339
340
  })],
340
- ...k
341
- }) : b(de.Button, S({
341
+ ...g
342
+ }) : S(he.Button, z({
342
343
  type: e.type,
343
344
  size: e.size === "middle" ? void 0 : e.size,
344
- disabled: e.disabled || y.value,
345
+ disabled: e.disabled || v.value,
345
346
  loading: e.loading,
346
347
  danger: e.danger,
347
348
  placement: e.placement,
348
349
  trigger: e.trigger
349
350
  }, t, {
350
351
  class: ["mtn-dropdown-button", t.class],
351
- onClick: d
352
+ onClick: f
352
353
  }), {
353
354
  default: () => {
354
- var h;
355
- return [((h = n.default) == null ? void 0 : h.call(n)) || e.text];
355
+ var B;
356
+ return [((B = r.default) == null ? void 0 : B.call(r)) || e.text];
356
357
  },
357
- ...k
358
+ ...g
358
359
  });
359
360
  };
360
361
  }
361
- }), nt = {
362
+ }), lt = {
362
363
  // ===== 配置化 API =====
363
364
  /**
364
365
  * 操作项配置列表
@@ -447,12 +448,12 @@ const K = /* @__PURE__ */ _({
447
448
  default: !1
448
449
  }
449
450
  };
450
- function ot(e) {
451
+ function ut(e) {
451
452
  return e ? e.filter(
452
- (n) => n.type !== Ne && n.type !== $e && n.type !== Symbol.for("v-fgt")
453
+ (r) => r.type !== Ve && r.type !== Ue && r.type !== Symbol.for("v-fgt")
453
454
  ) : [];
454
455
  }
455
- function me(e, n) {
456
+ function Se(e, r) {
456
457
  var t, o;
457
458
  if (e.key !== null && e.key !== void 0)
458
459
  return typeof e.key == "symbol" ? e.key.toString() : e.key;
@@ -460,206 +461,256 @@ function me(e, n) {
460
461
  const l = e.props.key;
461
462
  return typeof l == "symbol" ? l.toString() : l;
462
463
  }
463
- return `button-${n}`;
464
+ return `button-${r}`;
464
465
  }
465
- const ye = "link", ge = "small", it = /* @__PURE__ */ _({
466
+ const ne = "link", Be = "small", st = 150, ct = /* @__PURE__ */ R({
466
467
  name: "MActionGroup",
467
468
  inheritAttrs: !1,
468
469
  __name: "action-group",
469
- props: nt,
470
+ props: lt,
470
471
  emits: ["action-click"],
471
- setup(e, { emit: n }) {
472
- const t = e, o = n, l = Oe(), y = w(), g = w(), d = w(), { width: k } = He(y), G = X(J, w(Q)), h = p(() => t.mode === "table"), M = p(
473
- () => h.value ? "small" : t.size
474
- ), a = p(
475
- () => h.value ? "link" : "default"
476
- ), s = p(
477
- () => h.value ? "" : t.moreText
478
- ), P = p(() => t.moreIcon || Ue);
479
- function z(i) {
480
- return i ? G.value(i) : !0;
472
+ setup(e, { emit: r }) {
473
+ const t = e, o = r, l = je(), v = D(), m = D(), f = D(), { width: g } = Ze(v), H = ae(re, D(ie));
474
+ function B(n) {
475
+ if (!n) return;
476
+ const c = n;
477
+ return c.name || c.__name || c.displayName;
481
478
  }
482
- const E = p(() => {
483
- var i;
484
- return ot((i = l.default) == null ? void 0 : i.call(l));
485
- }), N = p(() => t.actions ? t.actions.filter((i) => z(i.permission)) : []), $ = p(() => {
486
- if (t.disableCollapse)
487
- return t.actions ? N.value.length : E.value.length;
488
- const i = t.actions ? N.value.length : E.value.length;
489
- return i <= 1 ? i : g.value && d.value && k.value ? Te() : Math.min(t.maxItems, i);
490
- });
491
- function Te() {
492
- if (!g.value || !d.value || !k.value)
493
- return t.maxItems;
494
- const i = d.value.offsetWidth, c = Array.from(
495
- g.value.querySelectorAll(".measure-item")
479
+ const M = p(() => t.mode === "table"), a = p(
480
+ () => M.value ? "small" : t.size
481
+ ), u = p(
482
+ () => M.value ? "link" : "default"
483
+ ), A = p(
484
+ () => M.value ? "" : t.moreText
485
+ ), I = p(() => t.moreIcon || Je);
486
+ function F(n) {
487
+ return n ? H.value(n) : !0;
488
+ }
489
+ const W = p(() => {
490
+ var n;
491
+ return ut((n = l.default) == null ? void 0 : n.call(l));
492
+ }), _ = He([]);
493
+ function le(n) {
494
+ var i, d, h;
495
+ return [
496
+ n.key ?? "",
497
+ n.label ?? "",
498
+ B(n.icon) ?? "",
499
+ B(n.component) ?? "",
500
+ Array.isArray(n.permission) ? n.permission.join(",") : n.permission ?? "",
501
+ n.permissionAction ?? "",
502
+ String(n.disabled ?? !1),
503
+ String(((i = n.componentProps) == null ? void 0 : i.confirm) ?? ""),
504
+ String(((d = n.componentProps) == null ? void 0 : d.showSuccess) ?? ""),
505
+ String(((h = n.componentProps) == null ? void 0 : h.danger) ?? "")
506
+ ].join("|");
507
+ }
508
+ Z(
509
+ () => t.actions,
510
+ (n) => {
511
+ if (!n) {
512
+ _.value = [];
513
+ return;
514
+ }
515
+ if (_.value.length !== n.length) {
516
+ _.value = n;
517
+ return;
518
+ }
519
+ const c = n.map(le).join("||"), i = _.value.map(le).join("||");
520
+ c !== i && (_.value = n);
521
+ },
522
+ { immediate: !0, deep: !1 }
523
+ );
524
+ const K = p(() => _.value.length ? _.value.filter((n) => F(n.permission)) : []), C = p(() => t.actions ? K.value.length : W.value.length);
525
+ function De() {
526
+ if (!m.value || !f.value || !g.value)
527
+ return Math.min(t.maxItems, C.value);
528
+ const n = f.value.offsetWidth, c = Array.from(
529
+ m.value.querySelectorAll(".measure-item")
496
530
  );
497
- if (c.length === 0) return t.maxItems;
498
- let r = i, f = 0;
499
- for (let C = 0; C < c.length - 1; C++) {
500
- const x = c[C].offsetWidth + t.gap;
501
- if (r + x <= k.value)
502
- r += x, f++;
531
+ if (c.length === 0) return Math.min(t.maxItems, C.value);
532
+ let i = n, d = 0;
533
+ for (let h = 0; h < c.length - 1; h++) {
534
+ const w = c[h].offsetWidth + t.gap;
535
+ if (i + w <= g.value)
536
+ i += w, d++;
503
537
  else
504
538
  break;
505
539
  }
506
- const T = t.actions ? N.value.length : E.value.length;
507
- return Math.max(0, Math.min(f, t.maxItems, T));
540
+ return Math.max(0, Math.min(d, t.maxItems, C.value));
508
541
  }
509
- const Ce = p(() => t.actions ? N.value.slice(0, $.value) : []), ee = p(() => t.actions ? N.value.slice($.value) : []), ze = p(() => {
542
+ const $ = D(t.maxItems), Ie = ze(() => {
543
+ $.value = De();
544
+ }, st);
545
+ Z(
546
+ [g, C, () => t.maxItems, () => t.gap],
547
+ () => {
548
+ if (t.disableCollapse) {
549
+ $.value = C.value;
550
+ return;
551
+ }
552
+ if (C.value <= 1) {
553
+ $.value = C.value;
554
+ return;
555
+ }
556
+ m.value && f.value && g.value ? Ie() : $.value = Math.min(t.maxItems, C.value);
557
+ },
558
+ { immediate: !0 }
559
+ );
560
+ const N = p(() => t.disableCollapse || C.value <= 1 ? C.value : m.value && f.value && g.value ? $.value : Math.min(t.maxItems, C.value)), Me = p(() => t.actions ? K.value.slice(0, N.value) : []), ue = p(() => t.actions ? K.value.slice(N.value) : []), _e = p(() => {
510
561
  if (t.actions) return [];
511
- const i = E.value;
512
- return $.value >= i.length ? i : i.slice(0, $.value);
513
- }), te = p(() => {
562
+ const n = W.value;
563
+ return N.value >= n.length ? n : n.slice(0, N.value);
564
+ }), se = p(() => {
514
565
  if (t.actions) return [];
515
- const i = E.value;
516
- return $.value >= i.length ? [] : i.slice($.value);
517
- }), Ae = p(() => t.actions ? ee.value.filter((i) => z(i.permission)) : []), Pe = p(() => t.actions ? [] : te.value.filter((i) => {
518
- const c = i.props || {};
519
- return c.permission && c.permissionAction === "hide" ? z(c.permission) : !0;
520
- })), xe = p(() => t.disableCollapse ? !1 : (t.actions ? ee.value.length : te.value.length) > 0);
521
- function U(i) {
522
- return i.component || K;
566
+ const n = W.value;
567
+ return N.value >= n.length ? [] : n.slice(N.value);
568
+ }), we = p(() => t.actions ? [] : se.value.filter((n) => {
569
+ const c = n.props || {};
570
+ return c.permission && c.permissionAction === "hide" ? F(c.permission) : !0;
571
+ })), Ee = p(() => t.disableCollapse ? !1 : (t.actions ? ue.value.length : se.value.length) > 0);
572
+ function Q(n) {
573
+ return n.component || J;
523
574
  }
524
- function ne(i, c) {
525
- return i.key || i.label || `action-${c}`;
575
+ function ce(n, c) {
576
+ return n.key || n.label || `action-${c}`;
526
577
  }
527
- function oe(i) {
578
+ function de(n) {
528
579
  const {
529
580
  label: c,
530
- key: r,
531
- onClick: f,
532
- permission: T,
533
- permissionAction: C,
534
- icon: R,
535
- component: x,
536
- componentProps: V,
537
- slot: q,
538
- type: O,
539
- size: we,
540
- disabled: Me,
541
- ...Ie
542
- } = i;
581
+ key: i,
582
+ onClick: d,
583
+ permission: h,
584
+ permissionAction: P,
585
+ icon: w,
586
+ component: L,
587
+ componentProps: G,
588
+ slot: Y,
589
+ type: ee,
590
+ size: X,
591
+ disabled: Le,
592
+ ...Oe
593
+ } = n;
543
594
  return {
544
- component: x,
545
- componentProps: V,
546
- type: O,
547
- size: we,
548
- rest: Ie,
549
- permission: T,
550
- permissionAction: C,
551
- disabled: Me
595
+ component: L,
596
+ componentProps: G,
597
+ type: ee,
598
+ size: X,
599
+ rest: Oe,
600
+ permission: h,
601
+ permissionAction: P,
602
+ disabled: Le
552
603
  };
553
604
  }
554
- function ie(i) {
555
- const { component: c, componentProps: r, type: f, rest: T, permission: C, permissionAction: R, disabled: x } = oe(i), V = {
556
- type: f || a.value,
557
- size: M.value,
558
- disabled: x || !z(C) && R === "disable",
559
- ...T
605
+ function fe(n) {
606
+ const { component: c, componentProps: i, type: d, rest: h, permission: P, permissionAction: w, disabled: L } = de(n), G = {
607
+ type: d || u.value,
608
+ size: a.value,
609
+ disabled: L || !F(P) && w === "disable",
610
+ ...h
560
611
  };
561
- if (c && r) {
562
- const q = (c == null ? void 0 : c.name) === "MDeleteButton" || (c == null ? void 0 : c.__name) === "MDeleteButton", O = { ...V };
563
- return !r.type && !f && q && delete O.type, { ...O, ...r };
612
+ if (c && i) {
613
+ const Y = { ...G, ...i };
614
+ return M.value && (Y.type = "link"), Y;
564
615
  }
565
- return V;
616
+ return G;
566
617
  }
567
- function De(i) {
568
- const { component: c, componentProps: r, rest: f, permission: T, permissionAction: C, disabled: R } = oe(i), x = {
569
- type: ye,
570
- size: ge,
571
- disabled: R || !z(T) && C === "disable",
572
- ...f
618
+ function Ne(n) {
619
+ const { component: c, componentProps: i, rest: d, permission: h, permissionAction: P, disabled: w } = de(n), L = {
620
+ type: ne,
621
+ size: Be,
622
+ disabled: w || !F(h) && P === "disable",
623
+ ...d
573
624
  };
574
- if (c && r) {
575
- const { type: V, size: q, ...O } = r;
576
- return { ...x, ...O };
625
+ if (c && i) {
626
+ const { type: G, size: Y, ...ee } = i, X = { ...L, ...ee };
627
+ return X.type = ne, X;
577
628
  }
578
- return x;
629
+ return L;
579
630
  }
580
- function re(i) {
581
- i.onClick && i.onClick(i), o("action-click", i);
631
+ function pe(n) {
632
+ n.onClick && n.onClick(n), o("action-click", n);
582
633
  }
583
- return (i, c) => (u(), D("div", {
634
+ return (n, c) => (s(), x("div", {
584
635
  ref_key: "containerRef",
585
- ref: y,
636
+ ref: v,
586
637
  class: "mtn-action-group"
587
638
  }, [
588
- b(B(Be), S({
589
- size: M.value,
590
- compact: i.compact,
591
- vertical: i.vertical,
592
- block: i.block
593
- }, i.$attrs), {
594
- default: m(() => [
595
- t.actions ? (u(!0), D(I, { key: 0 }, L(Ce.value, (r, f) => (u(), v(A(U(r)), S({
596
- key: ne(r, f)
597
- }, { ref_for: !0 }, ie(r), {
598
- onClick: (T) => re(r)
599
- }), W({
600
- default: m(() => [
601
- F(" " + Y(r.label), 1)
639
+ S(b(Pe), z({
640
+ size: a.value,
641
+ compact: n.compact,
642
+ vertical: n.vertical,
643
+ block: n.block
644
+ }, n.$attrs), {
645
+ default: y(() => [
646
+ t.actions ? (s(!0), x(E, { key: 0 }, O(Me.value, (i, d) => (s(), k(T(Q(i)), z({
647
+ key: ce(i, d)
648
+ }, { ref_for: !0 }, fe(i), {
649
+ onClick: (h) => pe(i)
650
+ }), U({
651
+ default: y(() => [
652
+ j(" " + te(i.label), 1)
602
653
  ]),
603
654
  _: 2
604
655
  }, [
605
- r.icon ? {
656
+ i.icon ? {
606
657
  name: "icon",
607
- fn: m(() => [
608
- (u(), v(A(r.icon)))
658
+ fn: y(() => [
659
+ (s(), k(T(i.icon)))
609
660
  ]),
610
661
  key: "0"
611
662
  } : void 0
612
- ]), 1040, ["onClick"]))), 128)) : (u(!0), D(I, { key: 1 }, L(ze.value, (r, f) => {
613
- var T, C;
614
- return u(), v(A(le(r, {
615
- type: ((T = r.props) == null ? void 0 : T.type) ?? (h.value ? a.value : void 0),
616
- size: ((C = r.props) == null ? void 0 : C.size) ?? M.value
663
+ ]), 1040, ["onClick"]))), 128)) : (s(!0), x(E, { key: 1 }, O(_e.value, (i, d) => {
664
+ var h, P;
665
+ return s(), k(T(ye(i, {
666
+ type: ((h = i.props) == null ? void 0 : h.type) ?? (M.value ? u.value : void 0),
667
+ size: ((P = i.props) == null ? void 0 : P.size) ?? a.value
617
668
  })), {
618
- key: B(me)(r, f)
669
+ key: b(Se)(i, d)
619
670
  });
620
671
  }), 128)),
621
- xe.value ? (u(), v(B(Z), S({
672
+ Ee.value ? (s(), k(b(oe), z({
622
673
  key: 2,
623
- text: s.value,
624
- size: M.value,
625
- type: a.value
674
+ text: A.value,
675
+ size: a.value,
676
+ type: u.value
626
677
  }, t.moreProps), {
627
- icon: m(() => [
628
- (u(), v(A(P.value)))
678
+ icon: y(() => [
679
+ (s(), k(T(I.value)))
629
680
  ]),
630
- overlay: m(() => [
631
- b(B(H), null, {
632
- default: m(() => [
633
- t.actions ? (u(!0), D(I, { key: 0 }, L(Ae.value, (r, f) => (u(), v(B(H).Item, {
634
- key: ne(r, f)
681
+ overlay: y(() => [
682
+ S(b(q), null, {
683
+ default: y(() => [
684
+ t.actions ? (s(!0), x(E, { key: 0 }, O(ue.value, (i, d) => (s(), k(b(q).Item, {
685
+ key: ce(i, d)
635
686
  }, {
636
- default: m(() => [
637
- (u(), v(A(U(r)), S({ ref_for: !0 }, De(r), {
638
- onClick: (T) => re(r)
639
- }), W({
640
- default: m(() => [
641
- F(" " + Y(r.label), 1)
687
+ default: y(() => [
688
+ (s(), k(T(Q(i)), z({ ref_for: !0 }, Ne(i), {
689
+ onClick: (h) => pe(i)
690
+ }), U({
691
+ default: y(() => [
692
+ j(" " + te(i.label), 1)
642
693
  ]),
643
694
  _: 2
644
695
  }, [
645
- r.icon ? {
696
+ i.icon ? {
646
697
  name: "icon",
647
- fn: m(() => [
648
- (u(), v(A(r.icon)))
698
+ fn: y(() => [
699
+ (s(), k(T(i.icon)))
649
700
  ]),
650
701
  key: "0"
651
702
  } : void 0
652
703
  ]), 1040, ["onClick"]))
653
704
  ]),
654
705
  _: 2
655
- }, 1024))), 128)) : (u(!0), D(I, { key: 1 }, L(Pe.value, (r, f) => (u(), v(B(H).Item, {
656
- key: B(me)(r, f)
706
+ }, 1024))), 128)) : (s(!0), x(E, { key: 1 }, O(we.value, (i, d) => (s(), k(b(q).Item, {
707
+ key: b(Se)(i, d)
657
708
  }, {
658
- default: m(() => [
659
- (u(), v(A(le(r, {
660
- ...r.props,
661
- type: ye,
662
- size: ge
709
+ default: y(() => [
710
+ (s(), k(T(ye(i, {
711
+ ...i.props,
712
+ type: ne,
713
+ size: Be
663
714
  }))))
664
715
  ]),
665
716
  _: 2
@@ -669,51 +720,51 @@ const ye = "link", ge = "small", it = /* @__PURE__ */ _({
669
720
  })
670
721
  ]),
671
722
  _: 1
672
- }, 16, ["text", "size", "type"])) : Le("", !0)
723
+ }, 16, ["text", "size", "type"])) : Fe("", !0)
673
724
  ]),
674
725
  _: 1
675
726
  }, 16, ["size", "compact", "vertical", "block"]),
676
- ae("div", {
727
+ me("div", {
677
728
  ref_key: "measureRef",
678
- ref: g,
729
+ ref: m,
679
730
  class: "mtn-action-group-measure"
680
731
  }, [
681
- t.actions ? (u(!0), D(I, { key: 0 }, L(N.value, (r, f) => (u(), D("span", {
682
- key: f,
732
+ t.actions ? (s(!0), x(E, { key: 0 }, O(K.value, (i, d) => (s(), x("span", {
733
+ key: d,
683
734
  class: "measure-item"
684
735
  }, [
685
- (u(), v(A(U(r)), S({ ref_for: !0 }, ie(r)), W({
686
- default: m(() => [
687
- F(" " + Y(r.label), 1)
736
+ (s(), k(T(Q(i)), z({ ref_for: !0 }, fe(i)), U({
737
+ default: y(() => [
738
+ j(" " + te(i.label), 1)
688
739
  ]),
689
740
  _: 2
690
741
  }, [
691
- r.icon ? {
742
+ i.icon ? {
692
743
  name: "icon",
693
- fn: m(() => [
694
- (u(), v(A(r.icon)))
744
+ fn: y(() => [
745
+ (s(), k(T(i.icon)))
695
746
  ]),
696
747
  key: "0"
697
748
  } : void 0
698
749
  ]), 1040))
699
- ]))), 128)) : (u(!0), D(I, { key: 1 }, L(E.value, (r, f) => (u(), D("span", {
700
- key: f,
750
+ ]))), 128)) : (s(!0), x(E, { key: 1 }, O(W.value, (i, d) => (s(), x("span", {
751
+ key: d,
701
752
  class: "measure-item"
702
753
  }, [
703
- (u(), v(A(r)))
754
+ (s(), k(T(i)))
704
755
  ]))), 128)),
705
- ae("span", {
756
+ me("span", {
706
757
  ref_key: "moreTriggerRef",
707
- ref: d,
758
+ ref: f,
708
759
  class: "measure-item"
709
760
  }, [
710
- b(B(Z), {
711
- text: s.value,
712
- size: M.value,
713
- type: a.value
761
+ S(b(oe), {
762
+ text: A.value,
763
+ size: a.value,
764
+ type: u.value
714
765
  }, {
715
- icon: m(() => [
716
- (u(), v(A(P.value)))
766
+ icon: y(() => [
767
+ (s(), k(T(I.value)))
717
768
  ]),
718
769
  _: 1
719
770
  }, 8, ["text", "size", "type"])
@@ -721,14 +772,14 @@ const ye = "link", ge = "small", it = /* @__PURE__ */ _({
721
772
  ], 512)
722
773
  ], 512));
723
774
  }
724
- }), Se = (e, n) => {
775
+ }), xe = (e, r) => {
725
776
  const t = e.__vccOpts || e;
726
- for (const [o, l] of n)
777
+ for (const [o, l] of r)
727
778
  t[o] = l;
728
779
  return t;
729
- }, rt = /* @__PURE__ */ Se(it, [["__scopeId", "data-v-6b35de38"]]), at = {
780
+ }, dt = /* @__PURE__ */ xe(ct, [["__scopeId", "data-v-ccd228a1"]]), ft = {
730
781
  // 继承 Button 的所有 props
731
- ...ke,
782
+ ...Te,
732
783
  // 覆盖 loading prop,使其默认值为 undefined,以便自动 loading 功能正常工作
733
784
  loading: {
734
785
  type: Boolean,
@@ -804,127 +855,127 @@ const ye = "link", ge = "small", it = /* @__PURE__ */ _({
804
855
  type: Function,
805
856
  default: void 0
806
857
  }
807
- }, lt = /* @__PURE__ */ _({
858
+ }, pt = /* @__PURE__ */ R({
808
859
  name: "MDeleteButton",
809
860
  inheritAttrs: !1,
810
861
  __name: "delete-button",
811
- props: at,
862
+ props: ft,
812
863
  emits: ["delete", "success", "error"],
813
- setup(e, { emit: n }) {
814
- const t = n, o = e, l = w(!1), y = w(null), g = p(() => o.loading !== void 0 ? o.loading : o.autoLoading ? l.value : !1), d = p(() => typeof o.confirm == "function" ? o.confirm(o.count) : o.confirm);
815
- ue(g, (a) => {
816
- y.value && se(() => {
817
- var s;
818
- (s = y.value) == null || s.update({
864
+ setup(e, { emit: r }) {
865
+ const t = r, o = e, l = D(!1), v = D(null), m = p(() => o.loading !== void 0 ? o.loading : o.autoLoading ? l.value : !1), f = p(() => typeof o.confirm == "function" ? o.confirm(o.count) : o.confirm);
866
+ Z(m, (a) => {
867
+ v.value && ve(() => {
868
+ var u;
869
+ (u = v.value) == null || u.update({
819
870
  okButtonProps: { loading: a }
820
871
  });
821
872
  });
822
- }, { flush: "post" }), Re(() => {
823
- y.value && (y.value.destroy(), y.value = null);
873
+ }, { flush: "post" }), We(() => {
874
+ v.value && (v.value.destroy(), v.value = null);
824
875
  });
825
- const k = async () => {
876
+ const g = async () => {
826
877
  try {
827
878
  if (o.beforeDelete && await o.beforeDelete() === !1)
828
879
  return;
829
880
  o.autoLoading && o.loading === void 0 && (l.value = !0);
830
881
  let a = !1;
831
- const s = () => {
882
+ const u = () => {
832
883
  a || (a = !0, o.autoLoading && o.loading === void 0 && (l.value = !1));
833
884
  };
834
885
  if (o.onDelete) {
835
- const P = o.onDelete(s);
836
- if (P && typeof P.then == "function")
886
+ const A = o.onDelete(u);
887
+ if (A && typeof A.then == "function")
837
888
  try {
838
- const z = await P;
839
- a || s(), G(z);
840
- } catch (z) {
841
- throw a || s(), z;
889
+ const I = await A;
890
+ a || u(), H(I);
891
+ } catch (I) {
892
+ throw a || u(), I;
842
893
  }
843
894
  } else
844
- t("delete", s), o.autoLoading && o.loading === void 0 && setTimeout(() => {
845
- a || s();
895
+ t("delete", u), o.autoLoading && o.loading === void 0 && setTimeout(() => {
896
+ a || u();
846
897
  }, 5e3);
847
898
  } catch (a) {
848
899
  o.autoLoading && o.loading === void 0 && (l.value = !1);
849
- const s = a instanceof Error ? a : new Error(String(a));
850
- t("error", s), o.showError && fe.error(s.message || "删除失败,请重试");
900
+ const u = a instanceof Error ? a : new Error(String(a));
901
+ t("error", u), o.showError && ke.error(u.message || "删除失败,请重试");
851
902
  }
852
- }, G = (a) => {
853
- o.showSuccess && fe.success(o.successText || "删除成功"), t("success", a);
854
- }, h = o.debounce > 0 ? Ke(k, o.debounce) : k, M = () => {
855
- if (!d.value) {
856
- h();
903
+ }, H = (a) => {
904
+ o.showSuccess && ke.success(o.successText || "删除成功"), t("success", a);
905
+ }, B = o.debounce > 0 ? ze(g, o.debounce) : g, M = () => {
906
+ if (!f.value) {
907
+ B();
857
908
  return;
858
909
  }
859
910
  if (o.confirmType === "popconfirm") return;
860
- se(() => {
861
- y.value = Fe.confirm({
911
+ ve(() => {
912
+ v.value = Xe.confirm({
862
913
  title: o.confirmTitle,
863
- content: d.value,
914
+ content: f.value,
864
915
  okText: o.okText,
865
916
  cancelText: o.cancelText,
866
917
  okType: "danger",
867
- okButtonProps: { loading: g.value },
918
+ okButtonProps: { loading: m.value },
868
919
  onOk: async () => {
869
920
  try {
870
- return await k(), new Promise((s) => {
871
- if (!g.value) {
872
- s();
921
+ return await g(), new Promise((u) => {
922
+ if (!m.value) {
923
+ u();
873
924
  return;
874
925
  }
875
- const P = ue(g, (z) => {
876
- z || (P(), s());
926
+ const A = Z(m, (I) => {
927
+ I || (A(), u());
877
928
  });
878
929
  });
879
- } catch (s) {
880
- throw s;
930
+ } catch (u) {
931
+ throw u;
881
932
  }
882
933
  },
883
934
  onCancel: () => {
884
- y.value = null;
935
+ v.value = null;
885
936
  },
886
937
  afterClose: () => {
887
- y.value = null;
938
+ v.value = null;
888
939
  }
889
940
  });
890
941
  });
891
942
  };
892
- return (a, s) => d.value && a.confirmType === "popconfirm" ? (u(), v(B(We), {
943
+ return (a, u) => f.value && a.confirmType === "popconfirm" ? (s(), k(b(Ye), {
893
944
  key: 0,
894
- title: d.value,
945
+ title: f.value,
895
946
  "ok-text": a.okText,
896
947
  "cancel-text": a.cancelText,
897
- "ok-button-props": { loading: g.value, danger: !0 },
898
- onConfirm: B(h)
948
+ "ok-button-props": { loading: m.value, danger: !0 },
949
+ onConfirm: b(B)
899
950
  }, {
900
- icon: m(() => [
901
- j(a.$slots, "popconfirmIcon", {}, () => [
902
- b(B(qe), { class: "text-[--color-ant-error]" })
951
+ icon: y(() => [
952
+ V(a.$slots, "popconfirmIcon", {}, () => [
953
+ S(b(Qe), { class: "text-[--color-ant-error]" })
903
954
  ], !0)
904
955
  ]),
905
- default: m(() => [
906
- b(B(K), S(a.$attrs, {
956
+ default: y(() => [
957
+ S(b(J), z(a.$attrs, {
907
958
  type: a.type,
908
959
  size: a.size,
909
960
  danger: !0,
910
- loading: g.value,
961
+ loading: m.value,
911
962
  disabled: a.disabled,
912
963
  permission: a.permission,
913
964
  "permission-action": a.permissionAction,
914
965
  class: "group"
915
- }), W({
916
- default: m(() => [
917
- j(a.$slots, "default", {}, () => [
918
- s[0] || (s[0] = F("删除", -1))
966
+ }), U({
967
+ default: y(() => [
968
+ V(a.$slots, "default", {}, () => [
969
+ u[0] || (u[0] = j("删除", -1))
919
970
  ], !0)
920
971
  ]),
921
972
  _: 2
922
973
  }, [
923
974
  a.hideIcon ? void 0 : {
924
975
  name: "icon",
925
- fn: m(() => [
926
- j(a.$slots, "icon", {}, () => [
927
- b(B(pe))
976
+ fn: y(() => [
977
+ V(a.$slots, "icon", {}, () => [
978
+ S(b(be))
928
979
  ], !0)
929
980
  ]),
930
981
  key: "0"
@@ -932,99 +983,57 @@ const ye = "link", ge = "small", it = /* @__PURE__ */ _({
932
983
  ]), 1040, ["type", "size", "loading", "disabled", "permission", "permission-action"])
933
984
  ]),
934
985
  _: 3
935
- }, 8, ["title", "ok-text", "cancel-text", "ok-button-props", "onConfirm"])) : (u(), v(B(K), S({ key: 1 }, a.$attrs, {
986
+ }, 8, ["title", "ok-text", "cancel-text", "ok-button-props", "onConfirm"])) : (s(), k(b(J), z({ key: 1 }, a.$attrs, {
936
987
  type: a.type,
937
988
  size: a.size,
938
989
  danger: !0,
939
- loading: g.value,
990
+ loading: m.value,
940
991
  disabled: a.disabled,
941
992
  permission: a.permission,
942
993
  "permission-action": a.permissionAction,
943
994
  onClick: M
944
- }), W({
945
- default: m(() => [
946
- j(a.$slots, "default", {}, () => [
947
- s[1] || (s[1] = F("删除", -1))
995
+ }), U({
996
+ default: y(() => [
997
+ V(a.$slots, "default", {}, () => [
998
+ u[1] || (u[1] = j("删除", -1))
948
999
  ], !0)
949
1000
  ]),
950
1001
  _: 2
951
1002
  }, [
952
1003
  a.hideIcon ? void 0 : {
953
1004
  name: "icon",
954
- fn: m(() => [
955
- j(a.$slots, "icon", {}, () => [
956
- b(B(pe))
1005
+ fn: y(() => [
1006
+ V(a.$slots, "icon", {}, () => [
1007
+ S(b(be))
957
1008
  ], !0)
958
1009
  ]),
959
1010
  key: "0"
960
1011
  }
961
1012
  ]), 1040, ["type", "size", "loading", "disabled", "permission", "permission-action"]));
962
1013
  }
963
- }), ut = /* @__PURE__ */ Se(lt, [["__scopeId", "data-v-a943bc19"]]), st = {
964
- // 继承 antd 的所有 props
965
- columns: {
966
- type: Array,
967
- required: !0
968
- },
969
- dataSource: {
970
- type: Array,
971
- default: () => []
972
- },
973
- rowKey: {
974
- type: [String, Function],
975
- default: "id"
976
- },
977
- pagination: {
978
- type: [Object, Boolean],
979
- default: void 0
980
- },
981
- loading: {
982
- type: Boolean,
983
- default: !1
984
- },
985
- bordered: {
986
- type: Boolean,
987
- default: !1
988
- },
989
- size: {
990
- type: String,
991
- default: "middle"
992
- }
993
- // 可以添加更多自定义 props
994
- };
995
- function ct(e) {
996
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Ve(e);
997
- }
998
- const dt = /* @__PURE__ */ _({
999
- name: "MTable",
1000
- props: st,
1001
- setup(e, {
1002
- slots: n,
1003
- attrs: t
1004
- }) {
1005
- return () => b(Ge, S(e, t, {
1006
- class: "mtn-table"
1007
- }), ct(n) ? n : {
1008
- default: () => [n]
1009
- });
1010
- }
1011
- }), ft = ve(dt), pt = [K, Be, Z, rt, ut, Qe, ft], ht = {
1014
+ }), mt = /* @__PURE__ */ xe(pt, [["__scopeId", "data-v-a943bc19"]]);
1015
+ var yt = /* @__PURE__ */ ((e) => (e.TEXT = "text", e.TAG = "tag", e.DATE = "date", e.DATETIME = "dateTime", e.SELECT = "select", e.STATUS = "status", e.CUSTOM = "custom", e))(yt || {}), vt = /* @__PURE__ */ ((e) => (e.LEFT = "left", e.CENTER = "center", e.RIGHT = "right", e))(vt || {}), gt = /* @__PURE__ */ ((e) => (e.SMALL = "small", e.MIDDLE = "middle", e.LARGE = "large", e))(gt || {}), ht = /* @__PURE__ */ ((e) => (e.CHECKBOX = "checkbox", e.RADIO = "radio", e))(ht || {}), kt = /* @__PURE__ */ ((e) => (e.LEFT = "left", e.RIGHT = "right", e))(kt || {});
1016
+ const bt = [J, Pe, oe, dt, mt, ot, qe], Pt = {
1012
1017
  install(e) {
1013
- pt.forEach((n) => {
1014
- e.component(n.name || "", n);
1018
+ bt.forEach((r) => {
1019
+ e.component(r.name || "", r);
1015
1020
  });
1016
1021
  }
1017
1022
  };
1018
1023
  export {
1019
- rt as ActionGroup,
1020
- K as Button,
1021
- Be as ButtonGroup,
1022
- ut as DeleteButton,
1023
- Z as DropdownButton,
1024
- ft as Table,
1025
- Qe as Tag,
1026
- et as buttonGroupProps,
1027
- ht as default,
1028
- st as tableProps,
1029
- Ye as tagProps
1024
+ dt as ActionGroup,
1025
+ J as Button,
1026
+ Pe as ButtonGroup,
1027
+ kt as ButtonPositionEnum,
1028
+ mt as DeleteButton,
1029
+ oe as DropdownButton,
1030
+ It as Table,
1031
+ vt as TableColumnAlignEnum,
1032
+ yt as TableColumnTypeEnum,
1033
+ ht as TableSelectionTypeEnum,
1034
+ gt as TableSizeEnum,
1035
+ ot as Tag,
1036
+ it as buttonGroupProps,
1037
+ Pt as default,
1038
+ et as tagProps
1030
1039
  };