vft 0.0.451 → 0.0.452

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 (181) hide show
  1. package/es/components/affix/affix.vue2.js +1 -1
  2. package/es/components/alert/alert.vue.d.ts +2 -1
  3. package/es/components/alert/alert.vue2.js +1 -1
  4. package/es/components/autocomplete/autocomplete.vue.d.ts +3 -2
  5. package/es/components/autocomplete/autocomplete.vue2.js +18 -18
  6. package/es/components/avatar/avatar.vue.d.ts +1 -1
  7. package/es/components/button/button-group.vue.d.ts +1 -1
  8. package/es/components/button/button-group.vue2.js +1 -1
  9. package/es/components/carousel/carousel.vue2.js +1 -1
  10. package/es/components/carousel/use-carousel.js +1 -1
  11. package/es/components/cascader/cascader.vue2.js +4 -7
  12. package/es/components/cascader-panel/node.vue2.js +1 -1
  13. package/es/components/check-tag/check-tag.vue2.js +2 -2
  14. package/es/components/checkbox/checkbox-group.vue.d.ts +1 -1
  15. package/es/components/clamp-toggle/clamp-toggle.vue2.js +1 -1
  16. package/es/components/col/col.vue2.js +6 -6
  17. package/es/components/color-picker/color-picker.vue.d.ts +1 -1
  18. package/es/components/color-picker/components/hue-slider.vue.js +4 -4
  19. package/es/components/color-picker/components/sv-panel.vue.js +4 -4
  20. package/es/components/context-menu/context-menu.vue.d.ts +1 -1
  21. package/es/components/context-menu/context-menu.vue2.js +15 -18
  22. package/es/components/date-picker/date-picker-com/basic-year-table.vue2.js +2 -2
  23. package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +1 -1
  24. package/es/components/date-time-select/date-time-select.vue2.js +38 -39
  25. package/es/components/dialog/dialog.vue.d.ts +1 -1
  26. package/es/components/drawer/drawer.vue.d.ts +1 -1
  27. package/es/components/dropdown/dropdown.vue.d.ts +1 -1
  28. package/es/components/dropdown/dropdown.vue2.js +1 -1
  29. package/es/components/full-screen/full-screen.vue.d.ts +1 -1
  30. package/es/components/header-layout/header-layout.vue.d.ts +1 -1
  31. package/es/components/horizontal-menu/horizontal-menu.vue.d.ts +2 -2
  32. package/es/components/horizontal-menu/horizontal-menu.vue2.js +15 -15
  33. package/es/components/icon/icon.vue.d.ts +1 -1
  34. package/es/components/icon-text/icon-text.vue2.js +12 -12
  35. package/es/components/iframe-layout/iframe-layout.vue.d.ts +1 -1
  36. package/es/components/image/image.vue2.js +1 -1
  37. package/es/components/image-viewer/image-viewer.vue2.js +1 -1
  38. package/es/components/input/input.vue2.js +4 -4
  39. package/es/components/input-number/input-number.vue2.js +1 -1
  40. package/es/components/input-tag/composables/use-input-tag.js +1 -1
  41. package/es/components/link/link.vue2.js +10 -11
  42. package/es/components/list-cell/list-cell.vue.d.ts +1 -1
  43. package/es/components/list-cell/list-cell.vue2.js +1 -1
  44. package/es/components/modal/modal.vue.d.ts +1 -1
  45. package/es/components/multiple-tabs/multiple-tabs.vue.d.ts +1 -1
  46. package/es/components/multiple-tabs/multiple-tabs.vue2.js +11 -13
  47. package/es/components/multiple-tabs/tab-content.vue.d.ts +1 -1
  48. package/es/components/multiple-tabs/tab-content.vue2.js +7 -8
  49. package/es/components/overlay/overlay.vue2.js +5 -5
  50. package/es/components/pagination/components/jumper.vue.d.ts +1 -1
  51. package/es/components/pagination/components/pager.vue2.js +2 -12
  52. package/es/components/pagination/pagination.vue2.js +1 -1
  53. package/es/components/popconfirm/popconfirm.vue.d.ts +2 -2
  54. package/es/components/popper/trigger.vue2.js +13 -13
  55. package/es/components/progress/index.d.ts +3 -3
  56. package/es/components/qrcode/qrcode.vue.d.ts +1 -1
  57. package/es/components/radio/radio-button.vue2.js +4 -4
  58. package/es/components/radio/radio-group.vue.d.ts +1 -1
  59. package/es/components/radio/radio.vue2.js +1 -1
  60. package/es/components/rate/rate.vue2.js +4 -4
  61. package/es/components/result/result.vue.d.ts +1 -1
  62. package/es/components/router-view-content/router-view-content.vue.d.ts +1 -1
  63. package/es/components/router-view-content/router-view-content.vue2.js +2 -3
  64. package/es/components/scrollbar/scrollbar.vue2.js +16 -16
  65. package/es/components/skeleton/skeleton-item.vue.d.ts +1 -1
  66. package/es/components/slider/button.vue.d.ts +1 -1
  67. package/es/components/slider/button.vue2.js +1 -1
  68. package/es/components/slider/slider.vue.d.ts +1 -1
  69. package/es/components/slider/slider.vue2.js +1 -1
  70. package/es/components/super-form/super-form-item.vue2.js +1 -1
  71. package/es/components/super-form/super-form.vue2.js +1 -1
  72. package/es/components/switch/switch.vue2.js +1 -1
  73. package/es/components/table/index.d.ts +9 -0
  74. package/es/components/table/table.vue2.js +36 -32
  75. package/es/components/table/types.d.ts +1 -0
  76. package/es/components/tabs/tab-bar.vue.d.ts +1 -1
  77. package/es/components/tabs/tab-nav.vue.d.ts +1 -1
  78. package/es/components/tabs/tabs.vue.d.ts +3 -3
  79. package/es/components/tag/tag.vue.d.ts +1 -1
  80. package/es/components/time-picker/time-picker-com/basic-time-spinner.vue2.js +25 -25
  81. package/es/components/time-picker/time-picker-com/panel-time-pick.vue2.js +2 -3
  82. package/es/components/time-picker/time-picker-com/panel-time-range.vue2.js +2 -3
  83. package/es/components/time-select/time-select.vue2.js +2 -1
  84. package/es/components/timeline/timeline-item.vue.d.ts +1 -1
  85. package/es/components/tooltip/trigger.vue.d.ts +1 -1
  86. package/es/components/tree/tree-node.vue.js +1 -1
  87. package/es/components/upload/upload-content.vue2.js +3 -1
  88. package/es/components/upload/upload.vue2.js +1 -1
  89. package/es/components/watermark/watermark.vue2.js +2 -2
  90. package/es/hooks/use-z-index/index.js +3 -3
  91. package/es/package.json.d.ts +1 -1
  92. package/es/package.json.js +1 -1
  93. package/es/utils/vue/vnode.js +1 -1
  94. package/lib/components/affix/affix.vue2.cjs +1 -1
  95. package/lib/components/alert/alert.vue.d.ts +2 -1
  96. package/lib/components/alert/alert.vue2.cjs +1 -1
  97. package/lib/components/autocomplete/autocomplete.vue.d.ts +3 -2
  98. package/lib/components/autocomplete/autocomplete.vue2.cjs +1 -1
  99. package/lib/components/avatar/avatar.vue.d.ts +1 -1
  100. package/lib/components/button/button-group.vue.d.ts +1 -1
  101. package/lib/components/button/button-group.vue2.cjs +1 -1
  102. package/lib/components/carousel/carousel.vue2.cjs +1 -1
  103. package/lib/components/cascader/cascader.vue2.cjs +1 -1
  104. package/lib/components/cascader-panel/node.vue2.cjs +1 -1
  105. package/lib/components/check-tag/check-tag.vue2.cjs +1 -1
  106. package/lib/components/checkbox/checkbox-group.vue.d.ts +1 -1
  107. package/lib/components/clamp-toggle/clamp-toggle.vue2.cjs +1 -1
  108. package/lib/components/col/col.vue2.cjs +1 -1
  109. package/lib/components/color-picker/color-picker.vue.d.ts +1 -1
  110. package/lib/components/color-picker/components/hue-slider.vue.cjs +1 -1
  111. package/lib/components/color-picker/components/sv-panel.vue.cjs +1 -1
  112. package/lib/components/context-menu/context-menu.vue.d.ts +1 -1
  113. package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
  114. package/lib/components/date-picker/date-picker-com/basic-year-table.vue2.cjs +1 -1
  115. package/lib/components/date-picker/date-picker-com/panel-date-pick.vue2.cjs +1 -1
  116. package/lib/components/date-time-select/date-time-select.vue2.cjs +1 -1
  117. package/lib/components/dialog/dialog.vue.d.ts +1 -1
  118. package/lib/components/drawer/drawer.vue.d.ts +1 -1
  119. package/lib/components/dropdown/dropdown.vue.d.ts +1 -1
  120. package/lib/components/dropdown/dropdown.vue2.cjs +1 -1
  121. package/lib/components/full-screen/full-screen.vue.d.ts +1 -1
  122. package/lib/components/header-layout/header-layout.vue.d.ts +1 -1
  123. package/lib/components/horizontal-menu/horizontal-menu.vue.d.ts +2 -2
  124. package/lib/components/horizontal-menu/horizontal-menu.vue2.cjs +1 -1
  125. package/lib/components/icon/icon.vue.d.ts +1 -1
  126. package/lib/components/icon-text/icon-text.vue2.cjs +1 -1
  127. package/lib/components/iframe-layout/iframe-layout.vue.d.ts +1 -1
  128. package/lib/components/image/image.vue2.cjs +1 -1
  129. package/lib/components/image-viewer/image-viewer.vue2.cjs +1 -1
  130. package/lib/components/input/input.vue2.cjs +1 -1
  131. package/lib/components/input-number/input-number.vue2.cjs +1 -1
  132. package/lib/components/link/link.vue2.cjs +1 -1
  133. package/lib/components/list-cell/list-cell.vue.d.ts +1 -1
  134. package/lib/components/list-cell/list-cell.vue2.cjs +1 -1
  135. package/lib/components/modal/modal.vue.d.ts +1 -1
  136. package/lib/components/multiple-tabs/multiple-tabs.vue.d.ts +1 -1
  137. package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
  138. package/lib/components/multiple-tabs/tab-content.vue.d.ts +1 -1
  139. package/lib/components/multiple-tabs/tab-content.vue2.cjs +1 -1
  140. package/lib/components/overlay/overlay.vue2.cjs +1 -1
  141. package/lib/components/pagination/components/jumper.vue.d.ts +1 -1
  142. package/lib/components/pagination/components/pager.vue2.cjs +1 -1
  143. package/lib/components/pagination/pagination.vue2.cjs +1 -1
  144. package/lib/components/popconfirm/popconfirm.vue.d.ts +2 -2
  145. package/lib/components/progress/index.d.ts +3 -3
  146. package/lib/components/qrcode/qrcode.vue.d.ts +1 -1
  147. package/lib/components/radio/radio-button.vue2.cjs +1 -1
  148. package/lib/components/radio/radio-group.vue.d.ts +1 -1
  149. package/lib/components/radio/radio.vue2.cjs +1 -1
  150. package/lib/components/rate/rate.vue2.cjs +1 -1
  151. package/lib/components/result/result.vue.d.ts +1 -1
  152. package/lib/components/router-view-content/router-view-content.vue.d.ts +1 -1
  153. package/lib/components/router-view-content/router-view-content.vue2.cjs +1 -1
  154. package/lib/components/scrollbar/scrollbar.vue2.cjs +1 -1
  155. package/lib/components/skeleton/skeleton-item.vue.d.ts +1 -1
  156. package/lib/components/slider/button.vue.d.ts +1 -1
  157. package/lib/components/slider/button.vue2.cjs +1 -1
  158. package/lib/components/slider/slider.vue.d.ts +1 -1
  159. package/lib/components/slider/slider.vue2.cjs +1 -1
  160. package/lib/components/super-form/super-form.vue2.cjs +1 -1
  161. package/lib/components/switch/switch.vue2.cjs +1 -1
  162. package/lib/components/table/index.d.ts +9 -0
  163. package/lib/components/table/table.vue2.cjs +1 -1
  164. package/lib/components/table/types.d.ts +1 -0
  165. package/lib/components/tabs/tab-bar.vue.d.ts +1 -1
  166. package/lib/components/tabs/tab-nav.vue.d.ts +1 -1
  167. package/lib/components/tabs/tabs.vue.d.ts +3 -3
  168. package/lib/components/tag/tag.vue.d.ts +1 -1
  169. package/lib/components/time-picker/time-picker-com/basic-time-spinner.vue2.cjs +1 -1
  170. package/lib/components/time-picker/time-picker-com/panel-time-pick.vue2.cjs +1 -1
  171. package/lib/components/time-picker/time-picker-com/panel-time-range.vue2.cjs +1 -1
  172. package/lib/components/time-select/time-select.vue2.cjs +1 -1
  173. package/lib/components/timeline/timeline-item.vue.d.ts +1 -1
  174. package/lib/components/tooltip/trigger.vue.d.ts +1 -1
  175. package/lib/components/tree/tree-node.vue.cjs +1 -1
  176. package/lib/components/upload/upload.vue2.cjs +1 -1
  177. package/lib/components/watermark/watermark.vue2.cjs +1 -1
  178. package/lib/package.json.cjs +1 -1
  179. package/lib/package.json.d.ts +1 -1
  180. package/package.json +5 -5
  181. package/web-types.json +1 -1
@@ -28,20 +28,20 @@ const O = g({
28
28
  id: {},
29
29
  open: { type: Boolean }
30
30
  },
31
- setup(r, { expose: b }) {
31
+ setup(o, { expose: b }) {
32
32
  const h = C(), { role: i, triggerRef: n } = y(K, void 0);
33
33
  I(n);
34
- const p = s(() => u.value ? r.id : void 0), c = s(() => {
34
+ const p = s(() => u.value ? o.id : void 0), c = s(() => {
35
35
  if (i && i.value === "tooltip")
36
- return r.open && r.id ? r.id : void 0;
36
+ return o.open && o.id ? o.id : void 0;
37
37
  }), u = s(() => {
38
38
  if (i && i.value !== "tooltip")
39
39
  return i.value;
40
- }), m = s(() => u.value ? `${r.open}` : void 0);
40
+ }), m = s(() => u.value ? `${o.open}` : void 0);
41
41
  let a;
42
42
  return x(() => {
43
43
  l(
44
- () => r.virtualRef,
44
+ () => o.virtualRef,
45
45
  (e) => {
46
46
  e && (n.value = L(e));
47
47
  },
@@ -59,25 +59,25 @@ const O = g({
59
59
  "onFocus",
60
60
  "onBlur",
61
61
  "onContextmenu"
62
- ].forEach((o) => {
63
- const t = h.props[o];
62
+ ].forEach((r) => {
63
+ const t = h.props[r];
64
64
  t && (e.addEventListener(
65
- o.slice(2).toLowerCase(),
65
+ r.slice(2).toLowerCase(),
66
66
  t
67
67
  ), d?.removeEventListener?.(
68
- o.slice(2).toLowerCase(),
68
+ r.slice(2).toLowerCase(),
69
69
  t
70
70
  ));
71
71
  }), a = l(
72
72
  [p, c, u, m],
73
- (o) => {
73
+ (r) => {
74
74
  [
75
75
  "aria-controls",
76
76
  "aria-describedby",
77
77
  "aria-haspopup",
78
78
  "aria-expanded"
79
79
  ].forEach((t, f) => {
80
- F(o[f]) ? e.removeAttribute(t) : e.setAttribute(t, o[f]);
80
+ F(r[f]) ? e.removeAttribute(t) : e.setAttribute(t, r[f]);
81
81
  });
82
82
  },
83
83
  { immediate: !0 }
@@ -86,7 +86,7 @@ const O = g({
86
86
  "aria-describedby",
87
87
  "aria-haspopup",
88
88
  "aria-expanded"
89
- ].forEach((o) => d.removeAttribute(o));
89
+ ].forEach((r) => d.removeAttribute(r));
90
90
  },
91
91
  {
92
92
  immediate: !0
@@ -99,7 +99,7 @@ const O = g({
99
99
  * @description trigger element
100
100
  */
101
101
  triggerRef: n
102
- }), (e, d) => r.virtualTriggering ? w("", !0) : (A(), B(M(k), P({ key: 0 }, e.$attrs, {
102
+ }), (e, d) => o.virtualTriggering ? w("", !0) : (A(), B(M(k), P({ key: 0 }, e.$attrs, {
103
103
  "aria-controls": p.value,
104
104
  "aria-describedby": c.value,
105
105
  "aria-expanded": m.value,
@@ -32,7 +32,7 @@ export declare const VftProgress: import("vft/es/utils").SFCWithInstall<{
32
32
  type: import("vue").PropType<boolean>;
33
33
  };
34
34
  color: {
35
- type: import("vue").PropType<string | import("./types").ProgressFn | import("./types").ProgressColor[]>;
35
+ type: import("vue").PropType<string | import("./types").ProgressColor[] | import("./types").ProgressFn>;
36
36
  };
37
37
  striped: {
38
38
  type: import("vue").PropType<boolean>;
@@ -82,7 +82,7 @@ export declare const VftProgress: import("vft/es/utils").SFCWithInstall<{
82
82
  type: import("vue").PropType<boolean>;
83
83
  };
84
84
  color: {
85
- type: import("vue").PropType<string | import("./types").ProgressFn | import("./types").ProgressColor[]>;
85
+ type: import("vue").PropType<string | import("./types").ProgressColor[] | import("./types").ProgressFn>;
86
86
  };
87
87
  striped: {
88
88
  type: import("vue").PropType<boolean>;
@@ -129,7 +129,7 @@ export declare const VftProgress: import("vft/es/utils").SFCWithInstall<{
129
129
  type: import("vue").PropType<boolean>;
130
130
  };
131
131
  color: {
132
- type: import("vue").PropType<string | import("./types").ProgressFn | import("./types").ProgressColor[]>;
132
+ type: import("vue").PropType<string | import("./types").ProgressColor[] | import("./types").ProgressFn>;
133
133
  };
134
134
  striped: {
135
135
  type: import("vue").PropType<boolean>;
@@ -1,4 +1,4 @@
1
- import { type LogoType, type QRCodeRenderersOptions } from './qrcodePlus';
1
+ import type { LogoType, QRCodeRenderersOptions } from './qrcodePlus';
2
2
  interface Props {
3
3
  /** 二维码资源 */
4
4
  value?: string | any[];
@@ -24,7 +24,7 @@ const F = ["value", "name", "disabled"], G = f({
24
24
  },
25
25
  emits: ["click"],
26
26
  setup(n, { emit: v }) {
27
- const t = E("radio"), y = n, { radioRef: c, focus: a, size: k, disabled: d, modelValue: i, radioGroup: l, actualValue: s } = M(y), B = v, S = C(() => ({
27
+ const y = n, c = v, t = E("radio"), { radioRef: k, focus: a, size: B, disabled: d, modelValue: i, radioGroup: l, actualValue: s } = M(y), S = C(() => ({
28
28
  backgroundColor: l?.fill || "",
29
29
  borderColor: l?.fill || "",
30
30
  boxShadow: l?.fill ? `-1px 0 0 0 ${l.fill}` : "",
@@ -36,12 +36,12 @@ const F = ["value", "name", "disabled"], G = f({
36
36
  e(t).is("active", e(i) === e(s)),
37
37
  e(t).is("disabled", e(d)),
38
38
  e(t).is("focus", e(a)),
39
- e(t).bm("button", e(k))
39
+ e(t).bm("button", e(B))
40
40
  ])
41
41
  }, [
42
42
  V(p("input", {
43
43
  ref_key: "radioRef",
44
- ref: c,
44
+ ref: k,
45
45
  "onUpdate:modelValue": o[0] || (o[0] = (r) => $(i) ? i.value = r : null),
46
46
  class: u(e(t).be("button", "original-radio")),
47
47
  value: e(s),
@@ -56,7 +56,7 @@ const F = ["value", "name", "disabled"], G = f({
56
56
  [R, e(i)]
57
57
  ]),
58
58
  p("span", {
59
- onClick: o[4] || (o[4] = (r) => B("click", m.$props)),
59
+ onClick: o[4] || (o[4] = (r) => c("click", m.$props)),
60
60
  class: u(e(t).be("button", "inner")),
61
61
  style: w(e(i) === e(s) ? S.value : {}),
62
62
  onKeydown: o[5] || (o[5] = b(() => {
@@ -1,5 +1,5 @@
1
1
  import { ComponentSize } from 'vft/es/constants';
2
- import { type RadioProps } from './radio.vue';
2
+ import type { RadioProps } from './radio.vue';
3
3
  export interface RadioGroupProps {
4
4
  id?: string;
5
5
  size?: ComponentSize;
@@ -17,7 +17,7 @@ const h = ["value", "name", "disabled", "checked"], F = f({
17
17
  props: M,
18
18
  emits: ["click", "change", "update:modelValue"],
19
19
  setup(c, { emit: k }) {
20
- const o = S("radio"), v = c, d = k, { radioRef: b, radioGroup: g, focus: p, size: C, disabled: m, modelValue: s, actualValue: t } = T(v, d);
20
+ const v = c, d = k, o = S("radio"), { radioRef: b, radioGroup: g, focus: p, size: C, disabled: m, modelValue: s, actualValue: t } = T(v, d);
21
21
  function V() {
22
22
  E(() => d("change", s.value));
23
23
  }
@@ -3,7 +3,6 @@ import { EVENT_CODE as b } from "../../constants/aria.js";
3
3
  import { UPDATE_MODEL_EVENT as M, CHANGE_EVENT as q } from "../../constants/event.js";
4
4
  import { isArray as S, isObject as G, isString as U, hasClass as X } from "@vft/utils";
5
5
  import "../form/index.js";
6
- import "../icon/index.js";
7
6
  import "@vueuse/core";
8
7
  import "../config-provider/hooks/use-global-config.js";
9
8
  import "lodash-es";
@@ -17,11 +16,12 @@ import { useFormSize as be } from "../form/hooks/use-form-common-props.js";
17
16
  import { useFormItemInputId as Ce } from "../form/hooks/use-form-item.js";
18
17
  const ye = ["id", "aria-label", "aria-labelledby", "aria-valuenow", "aria-valuetext", "aria-valuemax"], Ie = ["onMousemove", "onClick"], _e = J({
19
18
  name: "ElRate"
20
- }), Pe = /* @__PURE__ */ J({
19
+ }), ze = /* @__PURE__ */ J({
21
20
  ..._e,
22
21
  props: Ve,
23
22
  emits: he,
24
23
  setup(Q, { expose: Y, emit: Z }) {
24
+ const e = Q, p = Z;
25
25
  function C(l, o) {
26
26
  const a = (n) => G(n), u = Object.keys(o).map((n) => +n).filter((n) => {
27
27
  const V = o[n];
@@ -29,7 +29,7 @@ const ye = ["id", "aria-label", "aria-labelledby", "aria-valuenow", "aria-valuet
29
29
  }).sort((n, V) => n - V), h = o[u[0]];
30
30
  return a(h) && h.value || h;
31
31
  }
32
- const e = Q, p = Z, ee = j(we, void 0), T = j(xe, void 0), le = be(), r = pe("rate"), { inputId: oe, isLabeledByFormItem: H } = Ce(e, {
32
+ const ee = j(we, void 0), T = j(xe, void 0), le = be(), r = pe("rate"), { inputId: oe, isLabeledByFormItem: H } = Ce(e, {
33
33
  formItemContext: T
34
34
  }), t = I(e.modelValue), y = I(-1), m = I(!0), ae = s(() => [r.b(), r.m(le.value)]), d = s(() => e.disabled || ee?.disabled), te = s(() => r.cssVarBlock({
35
35
  "void-color": e.voidColor,
@@ -182,5 +182,5 @@ const ye = ["id", "aria-label", "aria-labelledby", "aria-valuenow", "aria-valuet
182
182
  }
183
183
  });
184
184
  export {
185
- Pe as default
185
+ ze as default
186
186
  };
@@ -1,4 +1,4 @@
1
- import { type IconProps } from 'vft/es/components/icon';
1
+ import type { IconProps } from 'vft/es/components/icon';
2
2
  interface Props {
3
3
  title?: string | number;
4
4
  subTitle?: string | number;
@@ -1,4 +1,4 @@
1
- import { type Component } from 'vue';
1
+ import type { Component } from 'vue';
2
2
  interface LayoutConentProps {
3
3
  cacheList: string[];
4
4
  transitionName?: string;
@@ -1,10 +1,9 @@
1
1
  import { defineComponent as p, computed as u, resolveComponent as C, createBlock as n, openBlock as a, withCtx as c, createVNode as f, unref as r, KeepAlive as x, createCommentVNode as A, resolveDynamicComponent as v, Transition as k, mergeProps as B } from "vue";
2
2
  import { getRouterKeyPath as N } from "@vft/router";
3
- import "vue-router";
4
3
  import { createReusableTemplate as R } from "@vueuse/core";
5
4
  const K = p({
6
5
  name: "vft-router-view-content"
7
- }), b = /* @__PURE__ */ p({
6
+ }), T = /* @__PURE__ */ p({
8
7
  ...K,
9
8
  props: {
10
9
  cacheList: {},
@@ -57,5 +56,5 @@ const K = p({
57
56
  }
58
57
  });
59
58
  export {
60
- b as default
59
+ T as default
61
60
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as W, ref as o, computed as h, watch as k, nextTick as T, provide as D, reactive as G, onMounted as X, onUpdated as Y, createElementBlock as q, openBlock as y, normalizeClass as w, unref as F, createElementVNode as I, createBlock as B, createCommentVNode as J, normalizeStyle as E, resolveDynamicComponent as Q, withCtx as Z, renderSlot as _ } from "vue";
2
- import { isNumber as r, isObject as ee } from "@vft/utils";
2
+ import { isNumber as i, isObject as ee } from "@vft/utils";
3
3
  import { useResizeObserver as te, useEventListener as le } from "@vueuse/core";
4
4
  import { debugWarn as N } from "../../utils/error.js";
5
5
  import { addUnit as O } from "../../utils/helper.js";
@@ -10,12 +10,12 @@ import "../../hooks/use-model-toggle/index.js";
10
10
  import "@popperjs/core";
11
11
  import "../../hooks/use-z-index/index.js";
12
12
  import oe from "./bar.vue2.js";
13
- import { scrollbarContextKey as ie } from "./constants.js";
13
+ import { scrollbarContextKey as re } from "./constants.js";
14
14
  import { GAP as f } from "./util.js";
15
- const L = "ElScrollbar", re = W({
15
+ const L = "ElScrollbar", ie = W({
16
16
  name: "vft-scrollbar"
17
17
  }), xe = /* @__PURE__ */ W({
18
- ...re,
18
+ ...ie,
19
19
  props: {
20
20
  height: { default: "" },
21
21
  maxHeight: { default: "" },
@@ -33,10 +33,10 @@ const L = "ElScrollbar", re = W({
33
33
  scroll: ({
34
34
  scrollTop: t,
35
35
  scrollLeft: u
36
- }) => [t, u].every(r)
36
+ }) => [t, u].every(i)
37
37
  },
38
38
  setup(t, { expose: u, emit: M }) {
39
- const s = ae("scrollbar"), A = M;
39
+ const A = M, s = ae("scrollbar");
40
40
  let b, g;
41
41
  const S = o(), l = o(), x = o(), z = o("0"), p = o("0"), m = o(), C = o(1), R = o(1), $ = h(() => {
42
42
  const e = {};
@@ -52,21 +52,21 @@ const L = "ElScrollbar", re = W({
52
52
  }));
53
53
  };
54
54
  function P(e, a) {
55
- ee(e) ? l.value.scrollTo(e) : r(e) && r(a) && l.value.scrollTo(e, a);
55
+ ee(e) ? l.value.scrollTo(e) : i(e) && i(a) && l.value.scrollTo(e, a);
56
56
  }
57
57
  const U = (e) => {
58
- if (!r(e)) {
58
+ if (!i(e)) {
59
59
  N(L, "value must be a number");
60
60
  return;
61
61
  }
62
62
  l.value.scrollTop = e;
63
63
  }, V = (e) => {
64
- if (!r(e)) {
64
+ if (!i(e)) {
65
65
  N(L, "value must be a number");
66
66
  return;
67
67
  }
68
68
  l.value.scrollLeft = e;
69
- }, i = () => {
69
+ }, r = () => {
70
70
  if (!l.value) return;
71
71
  const e = l.value.offsetHeight - f, a = l.value.offsetWidth - f, v = e ** 2 / l.value.scrollHeight, d = a ** 2 / l.value.scrollWidth, n = Math.max(v, t.minSize), c = Math.max(d, t.minSize);
72
72
  C.value = v / (e - v) / (n / (e - n)), R.value = d / (a - d) / (c / (a - c)), p.value = n + f < e ? `${n}px` : "", z.value = c + f < a ? `${c}px` : "";
@@ -74,31 +74,31 @@ const L = "ElScrollbar", re = W({
74
74
  return k(
75
75
  () => t.noresize,
76
76
  (e) => {
77
- e ? (b?.(), g?.()) : ({ stop: b } = te(x, i), g = le("resize", i));
77
+ e ? (b?.(), g?.()) : ({ stop: b } = te(x, r), g = le("resize", r));
78
78
  },
79
79
  { immediate: !0 }
80
80
  ), k(
81
81
  () => [t.maxHeight, t.height],
82
82
  () => {
83
83
  t.native || T(() => {
84
- i(), l.value && m.value?.handleScroll(l.value);
84
+ r(), l.value && m.value?.handleScroll(l.value);
85
85
  });
86
86
  }
87
87
  ), D(
88
- ie,
88
+ re,
89
89
  G({
90
90
  scrollbarElement: S,
91
91
  wrapElement: l
92
92
  })
93
93
  ), X(() => {
94
94
  t.native || T(() => {
95
- i();
95
+ r();
96
96
  });
97
- }), Y(() => i()), u({
97
+ }), Y(() => r()), u({
98
98
  /** @description scrollbar wrap ref */
99
99
  wrapRef: l,
100
100
  /** @description update scrollbar state manually */
101
- update: i,
101
+ update: r,
102
102
  /** @description scrolls to a particular set of coordinates */
103
103
  scrollTo: P,
104
104
  /** @description set distance to scroll top */
@@ -1,4 +1,4 @@
1
- import { type IconProps } from 'vft/es/components/icon';
1
+ import type { IconProps } from 'vft/es/components/icon';
2
2
  interface Props {
3
3
  variant?: 'circle' | 'rect' | 'h1' | 'h3' | 'text' | 'caption' | 'p' | 'image' | 'button';
4
4
  imgIcon?: IconProps;
@@ -1,4 +1,4 @@
1
- import { type Placement } from '@popperjs/core';
1
+ import type { Placement } from '@popperjs/core';
2
2
  export interface SliderButtonProps {
3
3
  modelValue?: number;
4
4
  vertical?: boolean;
@@ -1,5 +1,4 @@
1
1
  import { defineComponent as b, reactive as N, getCurrentInstance as S, toRefs as T, createElementBlock as P, openBlock as z, unref as t, normalizeStyle as K, normalizeClass as d, createVNode as L, withCtx as f, createElementVNode as g, toDisplayString as X } from "vue";
2
- import "@popperjs/core";
3
2
  import { isNumber as Y } from "@vft/utils";
4
3
  import { VftTooltip as A } from "../tooltip/index.js";
5
4
  import { UPDATE_MODEL_EVENT as F } from "../../constants/event.js";
@@ -9,6 +8,7 @@ import "lodash-es";
9
8
  import "../form/index.js";
10
9
  import { useNamespace as I } from "../../hooks/use-namespace/index.js";
11
10
  import "../../hooks/use-model-toggle/index.js";
11
+ import "@popperjs/core";
12
12
  import "../../hooks/use-z-index/index.js";
13
13
  import { useSliderButton as O } from "./composables/use-slider-button.js";
14
14
  const R = ["tabindex"], U = b({
@@ -1,4 +1,4 @@
1
- import { type Placement } from '@popperjs/core';
1
+ import type { Placement } from '@popperjs/core';
2
2
  import type { ComponentSize } from 'vft/es/constants';
3
3
  import type { SliderMarkerProps } from './marker';
4
4
  export interface SliderProps {
@@ -1,5 +1,4 @@
1
1
  import { defineComponent as $, reactive as oe, getCurrentInstance as ie, computed as d, toRefs as D, provide as re, createElementBlock as r, openBlock as o, unref as e, normalizeClass as u, createElementVNode as V, createBlock as I, createCommentVNode as S, normalizeStyle as p, createVNode as ne, Fragment as k, renderList as B } from "vue";
2
- import "@popperjs/core";
3
2
  import "../form/index.js";
4
3
  import { VftInputNumber as ue } from "../input-number/index.js";
5
4
  import "@vueuse/core";
@@ -8,6 +7,7 @@ import "../config-provider/hooks/use-global-config.js";
8
7
  import "lodash-es";
9
8
  import { useNamespace as se } from "../../hooks/use-namespace/index.js";
10
9
  import "../../hooks/use-model-toggle/index.js";
10
+ import "@popperjs/core";
11
11
  import "../../hooks/use-z-index/index.js";
12
12
  import M from "./button.vue2.js";
13
13
  import { useLifecycle as me } from "./composables/use-lifecycle.js";
@@ -1,4 +1,4 @@
1
- import { defineComponent as X, computed as j, ref as re, unref as c, useSlots as oe, createVNode as a, mergeProps as q, withDirectives as ie, vShow as ne, isVNode as le, createTextVNode as O, resolveComponent as N } from "vue";
1
+ import { defineComponent as X, computed as j, ref as re, unref as c, useSlots as oe, createVNode as a, mergeProps as q, withDirectives as ie, vShow as ne, createTextVNode as O, isVNode as le, resolveComponent as N } from "vue";
2
2
  import "../alert/index.js";
3
3
  import "../avatar/index.js";
4
4
  import "../avatar-stack/index.js";
@@ -152,7 +152,7 @@ const Ve = j({
152
152
  expose: Q,
153
153
  emit: X
154
154
  }) {
155
- const Y = Se("super-form"), P = J, b = X, Z = se(), r = le({}), g = i({}), p = i(!1), d = i({}), V = i(), F = i(null), I = i(), t = c(() => ({
155
+ const P = J, b = X, Y = Se("super-form"), Z = se(), r = le({}), g = i({}), p = i(!1), d = i({}), V = i(), F = i(null), I = i(), t = c(() => ({
156
156
  ...P,
157
157
  ...o(d)
158
158
  })), m = c(() => ({
@@ -42,7 +42,7 @@ const ne = ["id", "aria-checked", "aria-disabled", "name", "true-value", "false-
42
42
  },
43
43
  emits: [E, N, P],
44
44
  setup(a, { expose: U, emit: j }) {
45
- const t = ae("switch"), e = a, d = j, { formItem: S } = te(), G = le(), { inputId: H } = ie(e, {
45
+ const e = a, d = j, t = ae("switch"), { formItem: S } = te(), G = le(), { inputId: H } = ie(e, {
46
46
  formItemContext: S
47
47
  }), m = s(
48
48
  () => O(e.activeIcon, "icon")
@@ -48,6 +48,9 @@ export declare const VftTable: import("vft/es/utils").SFCWithInstall<{
48
48
  showPager: {
49
49
  type: import("vue").PropType<boolean>;
50
50
  };
51
+ addMaxHeight: {
52
+ type: import("vue").PropType<boolean>;
53
+ };
51
54
  pagination: {
52
55
  type: import("vue").PropType<Partial<import("vft/es/vft").PaginationProps> & {
53
56
  pagePlacement?: "bottom-left" | "bottom-right" | "top-left" | "top-right";
@@ -958,6 +961,9 @@ export declare const VftTable: import("vft/es/utils").SFCWithInstall<{
958
961
  showPager: {
959
962
  type: import("vue").PropType<boolean>;
960
963
  };
964
+ addMaxHeight: {
965
+ type: import("vue").PropType<boolean>;
966
+ };
961
967
  pagination: {
962
968
  type: import("vue").PropType<Partial<import("vft/es/vft").PaginationProps> & {
963
969
  pagePlacement?: "bottom-left" | "bottom-right" | "top-left" | "top-right";
@@ -1752,6 +1758,9 @@ export declare const VftTable: import("vft/es/utils").SFCWithInstall<{
1752
1758
  showPager: {
1753
1759
  type: import("vue").PropType<boolean>;
1754
1760
  };
1761
+ addMaxHeight: {
1762
+ type: import("vue").PropType<boolean>;
1763
+ };
1755
1764
  pagination: {
1756
1765
  type: import("vue").PropType<Partial<import("vft/es/vft").PaginationProps> & {
1757
1766
  pagePlacement?: "bottom-left" | "bottom-right" | "top-left" | "top-right";
@@ -1,4 +1,4 @@
1
- import { defineComponent as N, useAttrs as ae, ref as s, getCurrentInstance as te, computed as P, unref as e, watch as oe, nextTick as le, toRaw as re, createBlock as f, openBlock as m, withCtx as c, createElementVNode as D, normalizeClass as ne, createVNode as p, createCommentVNode as H, mergeProps as _, withDirectives as ce, renderSlot as h, normalizeProps as ie, guardReactiveProps as se } from "vue";
1
+ import { defineComponent as N, useAttrs as ae, ref as s, getCurrentInstance as te, computed as P, unref as e, watch as oe, nextTick as le, toRaw as re, createBlock as f, openBlock as m, withCtx as c, createElementVNode as H, normalizeClass as ne, createVNode as p, createCommentVNode as D, mergeProps as _, withDirectives as ce, renderSlot as h, normalizeProps as ie, guardReactiveProps as se } from "vue";
2
2
  import { VftEmpty as ge } from "../empty/index.js";
3
3
  import { vLoading as de } from "../loading/directive.js";
4
4
  import { deepMerge as F, isClient as ue, omit as fe, isFunction as me } from "@vft/utils";
@@ -16,20 +16,20 @@ import { VftClientOnly as Ce } from "../client-only/index.js";
16
16
  import { VftPagination as ye } from "../pagination/index.js";
17
17
  import { VftSkeleton as we } from "../skeleton/index.js";
18
18
  import { VftSuperForm as ve } from "../super-form/index.js";
19
- import { VxeGrid as ke } from "vxe-table";
20
- import xe from "xe-utils";
19
+ import { VxeGrid as xe } from "vxe-table";
20
+ import ke from "xe-utils";
21
21
  import { PageSize as T } from "./constants.js";
22
22
  import { useColumns as Se } from "./use/use-columns.js";
23
23
  import { useDataSource as Be } from "./use/use-data-source.js";
24
24
  import { useLoading as ze } from "./use/use-loading.js";
25
25
  import { usePagination as Re } from "./use/use-pagination.js";
26
26
  import { EmptyEnum as Pe } from "../empty/constants.js";
27
- const De = {
27
+ const He = {
28
28
  "vft-loading-text": "加载中..."
29
- }, He = N({
29
+ }, De = N({
30
30
  name: "vft-table"
31
31
  }), la = /* @__PURE__ */ N({
32
- ...He,
32
+ ...De,
33
33
  props: {
34
34
  sticky: {
35
35
  type: [Boolean, Object]
@@ -72,6 +72,10 @@ const De = {
72
72
  type: Boolean,
73
73
  default: !0
74
74
  },
75
+ addMaxHeight: {
76
+ type: Boolean,
77
+ default: !0
78
+ },
75
79
  pagination: {},
76
80
  formOptions: {},
77
81
  onChange: {},
@@ -393,18 +397,18 @@ const De = {
393
397
  expose: O,
394
398
  emit: V
395
399
  }) {
396
- const r = V, g = be("table"), A = ae(), b = s(), C = s(), E = s([]), d = s(), $ = te(), t = P(() => F($.props, e(d))), {
397
- getLoading: q,
398
- setLoading: G
400
+ const r = V, g = be("table"), A = ae(), b = s(), C = s(), E = s([]), d = s(), M = te(), t = P(() => F(M.props, e(d))), {
401
+ getLoading: $,
402
+ setLoading: q
399
403
  } = ze(t), {
400
404
  getPaginationInfo: i,
401
405
  setPagination: u,
402
- getCurrentPage: I
406
+ getCurrentPage: G
403
407
  } = Re(t), {
404
- getViewColumns: K,
405
- setColumns: L
408
+ getViewColumns: I,
409
+ setColumns: K
406
410
  } = Se(t);
407
- oe(() => I(), (a) => {
411
+ oe(() => G(), (a) => {
408
412
  le(() => {
409
413
  y({
410
414
  seqConfig: {
@@ -423,7 +427,7 @@ const De = {
423
427
  }
424
428
  const {
425
429
  getDataSourceRef: w,
426
- handleTableChange: M,
430
+ handleTableChange: L,
427
431
  reload: X,
428
432
  deleteTableDataRecord: Y,
429
433
  insertTableDataRecord: j,
@@ -431,18 +435,18 @@ const De = {
431
435
  updateTableDataRecord: U,
432
436
  setTableData: v,
433
437
  getDataSource: J,
434
- getRawDataSource: k,
435
- tableSearch: x
438
+ getRawDataSource: x,
439
+ tableSearch: k
436
440
  } = Be(t, {
437
441
  tableData: E,
438
- setLoading: G,
442
+ setLoading: q,
439
443
  getPaginationInfo: i,
440
444
  setPagination: u
441
445
  }, r);
442
446
  function S(a) {
443
447
  a?.pageSize && u({
444
448
  currentPage: 1
445
- }), M(a), r("change", a);
449
+ }), L(a), r("change", a);
446
450
  const {
447
451
  onChange: o
448
452
  } = e(t);
@@ -570,20 +574,20 @@ const De = {
570
574
  "toolbar-tool-click",
571
575
  "zoom"
572
576
  ].forEach((a) => {
573
- const o = xe.camelCase(`on-${a}`);
577
+ const o = ke.camelCase(`on-${a}`);
574
578
  B[o] = (...l) => r(a, ...l);
575
579
  });
576
580
  const n = P(() => {
577
581
  const a = e(w), o = {
578
582
  ...A,
579
583
  ...e(t),
580
- columns: re(e(K)),
581
- loading: e(q),
584
+ columns: re(e(I)),
585
+ loading: e($),
582
586
  data: a,
583
587
  ...B
584
588
  };
585
589
  if (ue) {
586
- o.maxHeight = e(t)?.maxHeight ? e(t)?.maxHeight : `${window.innerHeight - e(t)?.extraSysHeight - (t.value?.showPager ? t.value?.pageHeight || 40 : 0)}px`;
590
+ (e(t)?.addMaxHeight || e(t)?.maxHeight) && (o.maxHeight = e(t)?.maxHeight ? e(t)?.maxHeight : `${window.innerHeight - e(t)?.extraSysHeight - (t.value?.showPager ? t.value?.pageHeight || 40 : 0)}px`);
587
591
  const l = e(t)?.minHeight;
588
592
  o.minHeight = l || (l !== 0 && e(t)?.toolbarConfig?.custom ? 300 : void 0);
589
593
  }
@@ -600,9 +604,9 @@ const De = {
600
604
  setTableData: v,
601
605
  getDataSource: J,
602
606
  getDataSourceRef: w,
603
- setColumns: L,
604
- getRawDataSource: k,
605
- tableSearch: x
607
+ setColumns: K,
608
+ getRawDataSource: x,
609
+ tableSearch: k
606
610
  };
607
611
  r("register", z);
608
612
  const Q = {
@@ -639,9 +643,9 @@ const De = {
639
643
  ["showActionForm", "addSearchAllSchema"]
640
644
  // 'union' | 'intersection' | 'concat' | 'replace' = 'union'
641
645
  ), "replace")), R = (a) => {
642
- Reflect.has(a, "_filterTableData") && x(a._filterTableData), r("form-submit", a);
646
+ Reflect.has(a, "_filterTableData") && k(a._filterTableData), r("form-submit", a);
643
647
  }, ee = () => {
644
- v(k()), r("form-reset");
648
+ v(x()), r("form-reset");
645
649
  };
646
650
  return O({
647
651
  table: b,
@@ -649,9 +653,9 @@ const De = {
649
653
  ...z
650
654
  }), (a, o) => (m(), f(e(Ce), null, {
651
655
  fallback: c(() => [p(e(we))]),
652
- default: c(() => [D("div", {
656
+ default: c(() => [H("div", {
653
657
  class: ne([e(g).b()])
654
- }, [p(e(ke), _({
658
+ }, [p(e(xe), _({
655
659
  ref_key: "xGrid",
656
660
  ref: b
657
661
  }, n.value), {
@@ -660,9 +664,9 @@ const De = {
660
664
  onRegister: e(Z),
661
665
  onSubmit: R,
662
666
  onReset: ee
663
- }, null, 8, ["onRegister"])) : H("", !0), h(a.$slots, "toolbar-right")]),
667
+ }, null, 8, ["onRegister"])) : D("", !0), h(a.$slots, "toolbar-right")]),
664
668
  empty: c(() => [h(a.$slots, "empty", {}, () => [p(e(ge), ie(se(n.value.emptyCfg)), null, 16)])]),
665
- loading: c(() => [ce(D("div", De, null, 512), [[e(de), !!n.value.loading]])]),
669
+ loading: c(() => [ce(H("div", He, null, 512), [[e(de), !!n.value.loading]])]),
666
670
  _: 3
667
671
  }, 16), n.value.showPager ? (m(), f(e(ye), _({
668
672
  key: 0,
@@ -676,7 +680,7 @@ const De = {
676
680
  onSizeChange: o[1] || (o[1] = (l) => S({
677
681
  pageSize: l
678
682
  }))
679
- }), null, 16, ["class"])) : H("", !0)], 2)]),
683
+ }), null, 16, ["class"])) : D("", !0)], 2)]),
680
684
  _: 3
681
685
  }));
682
686
  }
@@ -57,6 +57,7 @@ export interface TableProps extends VxeGridProps {
57
57
  pageHeight?: number;
58
58
  /** 是否显示分页器,默认为 true */
59
59
  showPager?: boolean;
60
+ addMaxHeight?: boolean;
60
61
  /** 分页器配置选项 */
61
62
  pagination?: Partial<PaginationProps> & {
62
63
  /** 分页器位置,可选值:'bottom-left'、'bottom-right'、'top-left'、'top-right' */
@@ -1,5 +1,5 @@
1
1
  import type { CSSProperties } from 'vue';
2
- import { type TabsPaneContext } from './types';
2
+ import type { TabsPaneContext } from './types';
3
3
  interface Props {
4
4
  /** tabs 集合 */
5
5
  tabs: TabsPaneContext[];
@@ -1,4 +1,4 @@
1
- import { type IconProps } from 'vft/es/components/icon';
1
+ import type { IconProps } from 'vft/es/components/icon';
2
2
  import type { TabsPaneContext, TabPaneName } from './types';
3
3
  interface TabNavProps {
4
4
  panes: TabsPaneContext[];