vft 0.0.451 → 0.0.454

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 (192) hide show
  1. package/attributes.json +1 -1
  2. package/dist/index.css +1 -1
  3. package/es/components/affix/affix.vue2.js +1 -1
  4. package/es/components/alert/alert.vue.d.ts +2 -1
  5. package/es/components/alert/alert.vue2.js +1 -1
  6. package/es/components/autocomplete/autocomplete.vue.d.ts +3 -2
  7. package/es/components/autocomplete/autocomplete.vue2.js +18 -18
  8. package/es/components/avatar/avatar.vue.d.ts +1 -1
  9. package/es/components/button/button-group.vue.d.ts +1 -1
  10. package/es/components/button/button-group.vue2.js +1 -1
  11. package/es/components/carousel/carousel.vue2.js +1 -1
  12. package/es/components/carousel/use-carousel.js +1 -1
  13. package/es/components/cascader/cascader.vue2.js +4 -7
  14. package/es/components/cascader-panel/node.vue2.js +1 -1
  15. package/es/components/check-tag/check-tag.vue2.js +2 -2
  16. package/es/components/checkbox/checkbox-group.vue.d.ts +1 -1
  17. package/es/components/clamp-toggle/clamp-toggle.vue2.js +1 -1
  18. package/es/components/col/col.vue2.js +6 -6
  19. package/es/components/color-picker/color-picker.vue.d.ts +1 -1
  20. package/es/components/color-picker/components/hue-slider.vue.js +4 -4
  21. package/es/components/color-picker/components/sv-panel.vue.js +4 -4
  22. package/es/components/context-menu/context-menu.vue.d.ts +1 -1
  23. package/es/components/context-menu/context-menu.vue2.js +15 -18
  24. package/es/components/date-picker/date-picker-com/basic-year-table.vue2.js +2 -2
  25. package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +1 -1
  26. package/es/components/date-time-select/date-time-select.vue2.js +38 -39
  27. package/es/components/dialog/dialog.vue.d.ts +1 -1
  28. package/es/components/drawer/drawer.vue.d.ts +1 -1
  29. package/es/components/dropdown/dropdown.vue.d.ts +1 -1
  30. package/es/components/dropdown/dropdown.vue2.js +1 -1
  31. package/es/components/full-screen/full-screen.vue.d.ts +1 -1
  32. package/es/components/header-layout/header-layout.vue.d.ts +1 -1
  33. package/es/components/horizontal-menu/horizontal-menu.vue.d.ts +2 -2
  34. package/es/components/horizontal-menu/horizontal-menu.vue2.js +15 -15
  35. package/es/components/icon/icon.vue.d.ts +1 -1
  36. package/es/components/icon-text/icon-text.vue2.js +12 -12
  37. package/es/components/iframe-layout/iframe-layout.vue.d.ts +1 -1
  38. package/es/components/image/image.vue2.js +1 -1
  39. package/es/components/image-viewer/image-viewer.vue2.js +1 -1
  40. package/es/components/input/input.vue2.js +4 -4
  41. package/es/components/input-number/input-number.vue2.js +1 -1
  42. package/es/components/input-tag/composables/use-input-tag.js +1 -1
  43. package/es/components/link/link.vue2.js +10 -11
  44. package/es/components/list-cell/list-cell.vue.d.ts +1 -1
  45. package/es/components/list-cell/list-cell.vue2.js +1 -1
  46. package/es/components/modal/modal.vue.d.ts +1 -8
  47. package/es/components/modal/types.d.ts +42 -11
  48. package/es/components/multiple-tabs/multiple-tabs.vue.d.ts +1 -1
  49. package/es/components/multiple-tabs/multiple-tabs.vue2.js +11 -13
  50. package/es/components/multiple-tabs/tab-content.vue.d.ts +1 -1
  51. package/es/components/multiple-tabs/tab-content.vue2.js +7 -8
  52. package/es/components/overlay/overlay.vue2.js +5 -5
  53. package/es/components/pagination/components/jumper.vue.d.ts +1 -1
  54. package/es/components/pagination/components/pager.vue2.js +2 -12
  55. package/es/components/pagination/pagination.vue2.js +1 -1
  56. package/es/components/popconfirm/popconfirm.vue.d.ts +2 -2
  57. package/es/components/popper/trigger.vue2.js +13 -13
  58. package/es/components/progress/index.d.ts +3 -3
  59. package/es/components/qrcode/qrcode.vue.d.ts +1 -1
  60. package/es/components/radio/radio-button.vue2.js +4 -4
  61. package/es/components/radio/radio-group.vue.d.ts +1 -1
  62. package/es/components/radio/radio.vue2.js +1 -1
  63. package/es/components/rate/rate.vue2.js +4 -4
  64. package/es/components/result/result.vue.d.ts +1 -1
  65. package/es/components/router-view-content/index.d.ts +0 -18
  66. package/es/components/router-view-content/router-view-content.vue.d.ts +0 -4
  67. package/es/components/router-view-content/router-view-content.vue2.js +24 -28
  68. package/es/components/scrollbar/scrollbar.vue2.js +16 -16
  69. package/es/components/skeleton/skeleton-item.vue.d.ts +1 -1
  70. package/es/components/slider/button.vue.d.ts +1 -1
  71. package/es/components/slider/button.vue2.js +1 -1
  72. package/es/components/slider/slider.vue.d.ts +1 -1
  73. package/es/components/slider/slider.vue2.js +1 -1
  74. package/es/components/super-form/super-form-item.vue2.js +1 -1
  75. package/es/components/super-form/super-form.vue2.js +1 -1
  76. package/es/components/switch/switch.vue2.js +1 -1
  77. package/es/components/table/index.d.ts +9 -0
  78. package/es/components/table/table.vue2.js +36 -32
  79. package/es/components/table/types.d.ts +1 -0
  80. package/es/components/tabs/tab-bar.vue.d.ts +1 -1
  81. package/es/components/tabs/tab-nav.vue.d.ts +1 -1
  82. package/es/components/tabs/tabs.vue.d.ts +3 -3
  83. package/es/components/tag/tag.vue.d.ts +1 -1
  84. package/es/components/time-picker/time-picker-com/basic-time-spinner.vue2.js +25 -25
  85. package/es/components/time-picker/time-picker-com/panel-time-pick.vue2.js +2 -3
  86. package/es/components/time-picker/time-picker-com/panel-time-range.vue2.js +2 -3
  87. package/es/components/time-select/time-select.vue2.js +2 -1
  88. package/es/components/timeline/timeline-item.vue.d.ts +1 -1
  89. package/es/components/tooltip/trigger.vue.d.ts +1 -1
  90. package/es/components/tree/tree-node.vue.js +1 -1
  91. package/es/components/upload/upload-content.vue2.js +3 -1
  92. package/es/components/upload/upload.vue2.js +1 -1
  93. package/es/components/watermark/watermark.vue2.js +2 -2
  94. package/es/hooks/use-z-index/index.js +3 -3
  95. package/es/package.json.d.ts +1 -1
  96. package/es/package.json.js +1 -1
  97. package/es/utils/vue/vnode.js +1 -1
  98. package/lib/components/affix/affix.vue2.cjs +1 -1
  99. package/lib/components/alert/alert.vue.d.ts +2 -1
  100. package/lib/components/alert/alert.vue2.cjs +1 -1
  101. package/lib/components/autocomplete/autocomplete.vue.d.ts +3 -2
  102. package/lib/components/autocomplete/autocomplete.vue2.cjs +1 -1
  103. package/lib/components/avatar/avatar.vue.d.ts +1 -1
  104. package/lib/components/button/button-group.vue.d.ts +1 -1
  105. package/lib/components/button/button-group.vue2.cjs +1 -1
  106. package/lib/components/carousel/carousel.vue2.cjs +1 -1
  107. package/lib/components/cascader/cascader.vue2.cjs +1 -1
  108. package/lib/components/cascader-panel/node.vue2.cjs +1 -1
  109. package/lib/components/check-tag/check-tag.vue2.cjs +1 -1
  110. package/lib/components/checkbox/checkbox-group.vue.d.ts +1 -1
  111. package/lib/components/clamp-toggle/clamp-toggle.vue2.cjs +1 -1
  112. package/lib/components/col/col.vue2.cjs +1 -1
  113. package/lib/components/color-picker/color-picker.vue.d.ts +1 -1
  114. package/lib/components/color-picker/components/hue-slider.vue.cjs +1 -1
  115. package/lib/components/color-picker/components/sv-panel.vue.cjs +1 -1
  116. package/lib/components/context-menu/context-menu.vue.d.ts +1 -1
  117. package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
  118. package/lib/components/date-picker/date-picker-com/basic-year-table.vue2.cjs +1 -1
  119. package/lib/components/date-picker/date-picker-com/panel-date-pick.vue2.cjs +1 -1
  120. package/lib/components/date-time-select/date-time-select.vue2.cjs +1 -1
  121. package/lib/components/dialog/dialog.vue.d.ts +1 -1
  122. package/lib/components/drawer/drawer.vue.d.ts +1 -1
  123. package/lib/components/dropdown/dropdown.vue.d.ts +1 -1
  124. package/lib/components/dropdown/dropdown.vue2.cjs +1 -1
  125. package/lib/components/full-screen/full-screen.vue.d.ts +1 -1
  126. package/lib/components/header-layout/header-layout.vue.d.ts +1 -1
  127. package/lib/components/horizontal-menu/horizontal-menu.vue.d.ts +2 -2
  128. package/lib/components/horizontal-menu/horizontal-menu.vue2.cjs +1 -1
  129. package/lib/components/icon/icon.vue.d.ts +1 -1
  130. package/lib/components/icon-text/icon-text.vue2.cjs +1 -1
  131. package/lib/components/iframe-layout/iframe-layout.vue.d.ts +1 -1
  132. package/lib/components/image/image.vue2.cjs +1 -1
  133. package/lib/components/image-viewer/image-viewer.vue2.cjs +1 -1
  134. package/lib/components/input/input.vue2.cjs +1 -1
  135. package/lib/components/input-number/input-number.vue2.cjs +1 -1
  136. package/lib/components/link/link.vue2.cjs +1 -1
  137. package/lib/components/list-cell/list-cell.vue.d.ts +1 -1
  138. package/lib/components/list-cell/list-cell.vue2.cjs +1 -1
  139. package/lib/components/modal/modal.vue.d.ts +1 -8
  140. package/lib/components/modal/types.d.ts +42 -11
  141. package/lib/components/multiple-tabs/multiple-tabs.vue.d.ts +1 -1
  142. package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
  143. package/lib/components/multiple-tabs/tab-content.vue.d.ts +1 -1
  144. package/lib/components/multiple-tabs/tab-content.vue2.cjs +1 -1
  145. package/lib/components/overlay/overlay.vue2.cjs +1 -1
  146. package/lib/components/pagination/components/jumper.vue.d.ts +1 -1
  147. package/lib/components/pagination/components/pager.vue2.cjs +1 -1
  148. package/lib/components/pagination/pagination.vue2.cjs +1 -1
  149. package/lib/components/popconfirm/popconfirm.vue.d.ts +2 -2
  150. package/lib/components/progress/index.d.ts +3 -3
  151. package/lib/components/qrcode/qrcode.vue.d.ts +1 -1
  152. package/lib/components/radio/radio-button.vue2.cjs +1 -1
  153. package/lib/components/radio/radio-group.vue.d.ts +1 -1
  154. package/lib/components/radio/radio.vue2.cjs +1 -1
  155. package/lib/components/rate/rate.vue2.cjs +1 -1
  156. package/lib/components/result/result.vue.d.ts +1 -1
  157. package/lib/components/router-view-content/index.d.ts +0 -18
  158. package/lib/components/router-view-content/router-view-content.vue.d.ts +0 -4
  159. package/lib/components/router-view-content/router-view-content.vue2.cjs +1 -1
  160. package/lib/components/scrollbar/scrollbar.vue2.cjs +1 -1
  161. package/lib/components/skeleton/skeleton-item.vue.d.ts +1 -1
  162. package/lib/components/slider/button.vue.d.ts +1 -1
  163. package/lib/components/slider/button.vue2.cjs +1 -1
  164. package/lib/components/slider/slider.vue.d.ts +1 -1
  165. package/lib/components/slider/slider.vue2.cjs +1 -1
  166. package/lib/components/super-form/super-form.vue2.cjs +1 -1
  167. package/lib/components/switch/switch.vue2.cjs +1 -1
  168. package/lib/components/table/index.d.ts +9 -0
  169. package/lib/components/table/table.vue2.cjs +1 -1
  170. package/lib/components/table/types.d.ts +1 -0
  171. package/lib/components/tabs/tab-bar.vue.d.ts +1 -1
  172. package/lib/components/tabs/tab-nav.vue.d.ts +1 -1
  173. package/lib/components/tabs/tabs.vue.d.ts +3 -3
  174. package/lib/components/tag/tag.vue.d.ts +1 -1
  175. package/lib/components/time-picker/time-picker-com/basic-time-spinner.vue2.cjs +1 -1
  176. package/lib/components/time-picker/time-picker-com/panel-time-pick.vue2.cjs +1 -1
  177. package/lib/components/time-picker/time-picker-com/panel-time-range.vue2.cjs +1 -1
  178. package/lib/components/time-select/time-select.vue2.cjs +1 -1
  179. package/lib/components/timeline/timeline-item.vue.d.ts +1 -1
  180. package/lib/components/tooltip/trigger.vue.d.ts +1 -1
  181. package/lib/components/tree/tree-node.vue.cjs +1 -1
  182. package/lib/components/upload/upload.vue2.cjs +1 -1
  183. package/lib/components/watermark/watermark.vue2.cjs +1 -1
  184. package/lib/package.json.cjs +1 -1
  185. package/lib/package.json.d.ts +1 -1
  186. package/package.json +4 -4
  187. package/tags.json +1 -1
  188. package/theme-style/index.css +1 -1
  189. package/theme-style/src/common/var.scss +2 -2
  190. package/theme-style/src/dialog.scss +3 -3
  191. package/theme-style/vft-dialog.css +1 -1
  192. package/web-types.json +1 -1
@@ -65,7 +65,7 @@ const D = b({
65
65
  expose: x,
66
66
  emit: k
67
67
  }) {
68
- const u = j("pagination"), o = k, y = E(), g = M().vnode.props || {}, C = "onUpdate:currentPage" in g || "onUpdate:current-page" in g || "onCurrentChange" in g, d = "onUpdate:pageSize" in g || "onUpdate:page-size" in g || "onSizeChange" in g, T = c(() => {
68
+ const o = k, u = j("pagination"), y = E(), g = M().vnode.props || {}, C = "onUpdate:currentPage" in g || "onUpdate:current-page" in g || "onCurrentChange" in g, d = "onUpdate:pageSize" in g || "onUpdate:page-size" in g || "onSizeChange" in g, T = c(() => {
69
69
  if (!t(e.total) && !t(e.pageCount) || t(e.currentPage) && !C) return !1;
70
70
  if (e.layout.includes("sizes")) {
71
71
  if (t(e.pageCount)) {
@@ -1,5 +1,5 @@
1
- import { type ButtonType } from 'vft/es/components/button';
2
- import { type IconProps } from 'vft/es/components/icon';
1
+ import type { ButtonType } from 'vft/es/components/button';
2
+ import type { IconProps } from 'vft/es/components/icon';
3
3
  interface Props {
4
4
  title?: string;
5
5
  confirmButtonText?: string;
@@ -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;
@@ -16,15 +16,6 @@ export declare const VftRouterViewContent: import("vft/es/utils").SFCWithInstall
16
16
  type: import("vue").PropType<boolean>;
17
17
  required: true;
18
18
  };
19
- pageErrorStatus: {
20
- type: import("vue").PropType<boolean>;
21
- };
22
- enableErrorHandle: {
23
- type: import("vue").PropType<boolean>;
24
- };
25
- exceptionComp: {
26
- type: import("vue").PropType<import("vue").Component>;
27
- };
28
19
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
29
20
  cacheList: {
30
21
  type: import("vue").PropType<string[]>;
@@ -43,14 +34,5 @@ export declare const VftRouterViewContent: import("vft/es/utils").SFCWithInstall
43
34
  type: import("vue").PropType<boolean>;
44
35
  required: true;
45
36
  };
46
- pageErrorStatus: {
47
- type: import("vue").PropType<boolean>;
48
- };
49
- enableErrorHandle: {
50
- type: import("vue").PropType<boolean>;
51
- };
52
- exceptionComp: {
53
- type: import("vue").PropType<import("vue").Component>;
54
- };
55
37
  }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>> & Record<string, any>;
56
38
  export default VftRouterViewContent;
@@ -1,13 +1,9 @@
1
- import { type Component } from 'vue';
2
1
  interface LayoutConentProps {
3
2
  cacheList: string[];
4
3
  transitionName?: string;
5
4
  transitionAttr?: Record<string, any>;
6
5
  openKeepAlive?: boolean;
7
6
  isReloadFlag: boolean;
8
- pageErrorStatus?: boolean;
9
- enableErrorHandle?: boolean;
10
- exceptionComp?: Component;
11
7
  }
12
8
  declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<LayoutConentProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<LayoutConentProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
13
9
  export default _default;
@@ -1,55 +1,51 @@
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";
1
+ import { defineComponent as v, computed as s, resolveComponent as A, createBlock as t, openBlock as n, withCtx as c, createVNode as d, unref as o, KeepAlive as k, createCommentVNode as g, resolveDynamicComponent as f, Transition as x, mergeProps as C } 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
- const K = p({
4
+ const K = v({
6
5
  name: "vft-router-view-content"
7
- }), b = /* @__PURE__ */ p({
6
+ }), T = /* @__PURE__ */ v({
8
7
  ...K,
9
8
  props: {
10
9
  cacheList: {},
11
10
  transitionName: {},
12
11
  transitionAttr: {},
13
12
  openKeepAlive: { type: Boolean, default: !0 },
14
- isReloadFlag: { type: Boolean },
15
- pageErrorStatus: { type: Boolean },
16
- enableErrorHandle: { type: Boolean },
17
- exceptionComp: {}
13
+ isReloadFlag: { type: Boolean }
18
14
  },
19
15
  setup(e) {
20
- const h = u(() => e.openKeepAlive ? e.cacheList : []), m = u(() => (t) => e.enableErrorHandle && e.pageErrorStatus && e.exceptionComp || t), y = u(() => (t) => {
21
- let o = t.name;
22
- return t.meta?.currentActivePath && (o = t.matched?.filter((l) => l.path === t.meta?.currentActivePath)?.[0].name), e.isReloadFlag ? void 0 : o;
23
- }), [g, d] = R();
24
- return (t, o) => {
25
- const l = C("router-view");
26
- return a(), n(l, null, {
27
- default: c(({ Component: s, route: i }) => [
28
- f(r(g), null, {
16
+ const p = s(() => e.openKeepAlive ? e.cacheList : []), h = s(() => (a) => {
17
+ let l = a.name;
18
+ return a.meta?.currentActivePath && (l = a.matched?.filter((r) => r.path === a.meta?.currentActivePath)?.[0].name), e.isReloadFlag ? void 0 : l;
19
+ }), [y, m] = R();
20
+ return (a, l) => {
21
+ const r = A("router-view");
22
+ return n(), t(r, null, {
23
+ default: c(({ Component: u, route: i }) => [
24
+ d(o(y), null, {
29
25
  default: c(() => [
30
- e.openKeepAlive ? (a(), n(x, {
26
+ e.openKeepAlive ? (n(), t(k, {
31
27
  key: 0,
32
- include: h.value,
33
- exclude: y.value(i)
28
+ include: p.value,
29
+ exclude: h.value(i)
34
30
  }, [
35
- e.isReloadFlag ? (a(), n(v(m.value(s)), {
36
- key: r(N)(i)
37
- })) : A("", !0)
38
- ], 1032, ["include", "exclude"])) : (a(), n(v(m.value(s)), {
31
+ e.isReloadFlag ? (n(), t(f(u), {
32
+ key: o(N)(i)
33
+ })) : g("", !0)
34
+ ], 1032, ["include", "exclude"])) : (n(), t(f(u), {
39
35
  key: i.fullPath
40
36
  }))
41
37
  ]),
42
38
  _: 2
43
39
  }, 1024),
44
- e.transitionName ? (a(), n(k, B({
40
+ e.transitionName ? (n(), t(x, C({
45
41
  key: 0,
46
42
  name: e.transitionName
47
43
  }, e.transitionAttr), {
48
44
  default: c(() => [
49
- f(r(d))
45
+ d(o(m))
50
46
  ]),
51
47
  _: 1
52
- }, 16, ["name"])) : (a(), n(r(d), { key: 1 }))
48
+ }, 16, ["name"])) : (n(), t(o(m), { key: 1 }))
53
49
  ]),
54
50
  _: 1
55
51
  });
@@ -57,5 +53,5 @@ const K = p({
57
53
  }
58
54
  });
59
55
  export {
60
- b as default
56
+ T as default
61
57
  };
@@ -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";