vft 0.0.429 → 0.0.431

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 (234) hide show
  1. package/attributes.json +1 -1
  2. package/dist/index.css +1 -1
  3. package/es/components/alert/alert.vue2.js +38 -38
  4. package/es/components/autocomplete/autocomplete.vue2.js +82 -82
  5. package/es/components/avatar/avatar.vue2.js +23 -23
  6. package/es/components/avatar-stack/avatar-stack.vue2.js +25 -25
  7. package/es/components/breadcrumb/breadcrumb-item.vue2.js +19 -19
  8. package/es/components/button/button.vue2.js +37 -37
  9. package/es/components/card/card.vue2.js +19 -19
  10. package/es/components/carousel/carousel.vue2.js +75 -75
  11. package/es/components/carousel/use-carousel.js +1 -1
  12. package/es/components/cascader-panel/index.vue2.js +2 -2
  13. package/es/components/cascader-panel/menu.vue2.js +2 -2
  14. package/es/components/cascader-panel/node.vue2.js +3 -4
  15. package/es/components/checkbox/checkbox-button.vue2.js +52 -52
  16. package/es/components/checkbox/checkbox-group.vue2.js +26 -26
  17. package/es/components/checkbox/checkbox.vue2.js +57 -57
  18. package/es/components/clamp/clamp.vue2.js +14 -14
  19. package/es/components/clamp-toggle/clamp-toggle.vue2.js +17 -17
  20. package/es/components/clamp-tooltip/clamp-tooltip.vue2.js +19 -19
  21. package/es/components/col/col.vue2.js +20 -20
  22. package/es/components/color-picker/color-picker.vue2.js +126 -128
  23. package/es/components/color-picker/components/sv-panel.vue.js +2 -2
  24. package/es/components/config-provider/hooks/use-global-config.js +3 -3
  25. package/es/components/context-menu/context-menu.vue2.js +18 -18
  26. package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +37 -39
  27. package/es/components/date-picker/date-picker-com/panel-date-range.vue2.js +8 -10
  28. package/es/components/date-picker/date-picker.d.ts +1 -1
  29. package/es/components/date-picker/index.d.ts +2 -2
  30. package/es/components/descriptions/description.vue2.js +44 -44
  31. package/es/components/descriptions/descriptions-row.vue2.js +12 -12
  32. package/es/components/dialog/dialog-content.vue2.js +31 -31
  33. package/es/components/dialog/dialog.vue2.js +46 -46
  34. package/es/components/divider/divider.vue2.js +19 -19
  35. package/es/components/drawer/drawer.vue2.js +41 -41
  36. package/es/components/dropdown/dropdown-item-impl.vue2.js +40 -40
  37. package/es/components/dropdown/dropdown-item.vue2.js +28 -28
  38. package/es/components/dropdown/dropdown.vue2.js +124 -124
  39. package/es/components/form/form-item.vue2.js +71 -71
  40. package/es/components/header-layout/header-layout.vue2.js +25 -25
  41. package/es/components/icon/icon.vue2.js +15 -15
  42. package/es/components/icon-text/icon-text.vue2.js +28 -28
  43. package/es/components/iframe-layout/iframe-layout.vue2.js +13 -13
  44. package/es/components/iframe-layout/iframe-page.vue2.js +11 -11
  45. package/es/components/image/image.vue2.js +63 -63
  46. package/es/components/image-viewer/image-viewer.vue2.js +88 -88
  47. package/es/components/infinite-scroll/index.d.ts +1 -1
  48. package/es/components/input/input.vue2.js +112 -112
  49. package/es/components/input-number/input-number.vue2.js +100 -100
  50. package/es/components/input-tag/composables/use-input-tag.js +1 -1
  51. package/es/components/link/link.vue2.js +20 -20
  52. package/es/components/list-cell/list-cell.vue2.js +19 -19
  53. package/es/components/logo/logo.vue2.js +22 -22
  54. package/es/components/menu/menu-item-group.vue2.js +8 -8
  55. package/es/components/menu/menu-item.vue2.js +48 -48
  56. package/es/components/menu/sub-menu.vue2.js +33 -31
  57. package/es/components/message/message.vue2.js +66 -66
  58. package/es/components/modal/modal-footer-action.vue2.js +25 -25
  59. package/es/components/modal/modal.vue2.js +40 -40
  60. package/es/components/multiple-tabs/multiple-tabs.vue2.js +30 -30
  61. package/es/components/page-wrapper/page-wrapper.vue2.js +12 -12
  62. package/es/components/pagination/components/jumper.vue2.js +18 -18
  63. package/es/components/pagination/components/next.vue2.js +11 -11
  64. package/es/components/pagination/components/pager.vue2.js +74 -74
  65. package/es/components/pagination/components/prev.vue2.js +9 -9
  66. package/es/components/pagination/components/sizes.vue2.js +18 -18
  67. package/es/components/pagination/components/total.vue2.js +8 -8
  68. package/es/components/popconfirm/popconfirm.vue2.js +47 -47
  69. package/es/components/popover/popover.vue2.js +28 -28
  70. package/es/components/popper/trigger.vue2.js +9 -9
  71. package/es/components/progress/progress.vue2.js +87 -87
  72. package/es/components/qrcode/qrcode.vue2.js +31 -31
  73. package/es/components/radio/radio-button.vue2.js +17 -17
  74. package/es/components/radio/radio-group.vue2.js +35 -35
  75. package/es/components/router-view-content/router-view-content.vue2.js +25 -25
  76. package/es/components/roving-focus-group/roving-focus-item.vue2.js +30 -30
  77. package/es/components/row/row.vue2.js +5 -5
  78. package/es/components/scrollbar/bar.vue2.js +16 -16
  79. package/es/components/scrollbar/scrollbar.vue2.js +48 -48
  80. package/es/components/scrollbar/thumb.vue2.js +27 -27
  81. package/es/components/search/search.vue2.js +29 -29
  82. package/es/components/select/index.d.ts +1 -1
  83. package/es/components/select/select.vue.d.ts +1 -1
  84. package/es/components/side-menu/index.d.ts +2 -8
  85. package/es/components/side-menu/side-menu.vue.d.ts +8 -62
  86. package/es/components/side-menu/side-menu.vue2.js +48 -46
  87. package/es/components/side-menu/types.d.ts +107 -0
  88. package/es/components/side-menu/use-drag-line.d.ts +3 -1
  89. package/es/components/side-menu/use-drag-line.js +39 -28
  90. package/es/components/skeleton/skeleton-item.vue2.js +9 -9
  91. package/es/components/skeleton/skeleton.vue2.js +14 -14
  92. package/es/components/slider/button.vue2.js +54 -54
  93. package/es/components/slider/slider.vue2.js +106 -106
  94. package/es/components/steps/item.vue2.js +56 -56
  95. package/es/components/steps/steps.vue2.js +16 -16
  96. package/es/components/super-form/super-form-action.vue2.js +28 -28
  97. package/es/components/super-form/super-form-item.vue2.js +1 -1
  98. package/es/components/switch/switch.vue2.js +108 -108
  99. package/es/components/table/field.d.ts +4 -4
  100. package/es/components/teleport/teleport.vue2.js +6 -6
  101. package/es/components/time-picker/common/picker.vue.d.ts +1 -1
  102. package/es/components/time-picker/index.d.ts +2 -2
  103. package/es/components/time-picker/time-picker.d.ts +1 -1
  104. package/es/components/timeline/timeline-item.vue2.js +20 -20
  105. package/es/components/tooltip/content.vue2.js +57 -57
  106. package/es/components/tooltip/tooltip.vue2.js +66 -66
  107. package/es/components/tooltip/trigger.vue2.js +42 -42
  108. package/es/components/tree/tree.vue2.js +72 -72
  109. package/es/components/upload/upload-content.vue2.js +85 -85
  110. package/es/components/upload/upload-list.vue2.js +70 -70
  111. package/es/components/upload/upload.vue2.js +86 -86
  112. package/es/components/verify-code/verify-code.vue2.js +18 -18
  113. package/es/package.json.d.ts +1 -1
  114. package/es/package.json.js +1 -1
  115. package/es/utils/vue/vnode.js +1 -1
  116. package/lib/components/alert/alert.vue2.cjs +1 -1
  117. package/lib/components/autocomplete/autocomplete.vue2.cjs +1 -1
  118. package/lib/components/avatar/avatar.vue2.cjs +1 -1
  119. package/lib/components/avatar-stack/avatar-stack.vue2.cjs +1 -1
  120. package/lib/components/breadcrumb/breadcrumb-item.vue2.cjs +1 -1
  121. package/lib/components/button/button.vue2.cjs +1 -1
  122. package/lib/components/card/card.vue2.cjs +1 -1
  123. package/lib/components/carousel/carousel.vue2.cjs +1 -1
  124. package/lib/components/cascader-panel/index.vue2.cjs +1 -1
  125. package/lib/components/cascader-panel/menu.vue2.cjs +1 -1
  126. package/lib/components/cascader-panel/node.vue2.cjs +1 -1
  127. package/lib/components/checkbox/checkbox-button.vue2.cjs +1 -1
  128. package/lib/components/checkbox/checkbox-group.vue2.cjs +1 -1
  129. package/lib/components/checkbox/checkbox.vue2.cjs +1 -1
  130. package/lib/components/clamp/clamp.vue2.cjs +1 -1
  131. package/lib/components/clamp-toggle/clamp-toggle.vue2.cjs +1 -1
  132. package/lib/components/clamp-tooltip/clamp-tooltip.vue2.cjs +1 -1
  133. package/lib/components/col/col.vue2.cjs +1 -1
  134. package/lib/components/color-picker/color-picker.vue2.cjs +1 -1
  135. package/lib/components/color-picker/components/sv-panel.vue.cjs +1 -1
  136. package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
  137. package/lib/components/date-picker/date-picker-com/panel-date-pick.vue2.cjs +1 -1
  138. package/lib/components/date-picker/date-picker-com/panel-date-range.vue2.cjs +1 -1
  139. package/lib/components/date-picker/date-picker.d.ts +1 -1
  140. package/lib/components/date-picker/index.d.ts +2 -2
  141. package/lib/components/descriptions/description.vue2.cjs +1 -1
  142. package/lib/components/descriptions/descriptions-row.vue2.cjs +1 -1
  143. package/lib/components/dialog/dialog-content.vue2.cjs +1 -1
  144. package/lib/components/dialog/dialog.vue2.cjs +1 -1
  145. package/lib/components/divider/divider.vue2.cjs +1 -1
  146. package/lib/components/drawer/drawer.vue2.cjs +1 -1
  147. package/lib/components/dropdown/dropdown-item-impl.vue2.cjs +1 -1
  148. package/lib/components/dropdown/dropdown-item.vue2.cjs +1 -1
  149. package/lib/components/dropdown/dropdown.vue2.cjs +1 -1
  150. package/lib/components/form/form-item.vue2.cjs +1 -1
  151. package/lib/components/header-layout/header-layout.vue2.cjs +1 -1
  152. package/lib/components/icon/icon.vue2.cjs +1 -1
  153. package/lib/components/icon-text/icon-text.vue2.cjs +1 -1
  154. package/lib/components/iframe-layout/iframe-layout.vue2.cjs +1 -1
  155. package/lib/components/iframe-layout/iframe-page.vue2.cjs +1 -1
  156. package/lib/components/image/image.vue2.cjs +1 -1
  157. package/lib/components/image-viewer/image-viewer.vue2.cjs +1 -1
  158. package/lib/components/infinite-scroll/index.d.ts +1 -1
  159. package/lib/components/input/input.vue2.cjs +1 -1
  160. package/lib/components/input-number/input-number.vue2.cjs +1 -1
  161. package/lib/components/link/link.vue2.cjs +1 -1
  162. package/lib/components/list-cell/list-cell.vue2.cjs +1 -1
  163. package/lib/components/logo/logo.vue2.cjs +1 -1
  164. package/lib/components/menu/menu-item-group.vue2.cjs +1 -1
  165. package/lib/components/menu/menu-item.vue2.cjs +1 -1
  166. package/lib/components/menu/sub-menu.vue2.cjs +1 -1
  167. package/lib/components/message/message.vue2.cjs +1 -1
  168. package/lib/components/modal/modal-footer-action.vue2.cjs +1 -1
  169. package/lib/components/modal/modal.vue2.cjs +1 -1
  170. package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
  171. package/lib/components/page-wrapper/page-wrapper.vue2.cjs +1 -1
  172. package/lib/components/pagination/components/jumper.vue2.cjs +1 -1
  173. package/lib/components/pagination/components/next.vue2.cjs +1 -1
  174. package/lib/components/pagination/components/pager.vue2.cjs +1 -1
  175. package/lib/components/pagination/components/prev.vue2.cjs +1 -1
  176. package/lib/components/pagination/components/sizes.vue2.cjs +1 -1
  177. package/lib/components/pagination/components/total.vue2.cjs +1 -1
  178. package/lib/components/popconfirm/popconfirm.vue2.cjs +1 -1
  179. package/lib/components/popover/popover.vue2.cjs +1 -1
  180. package/lib/components/popper/trigger.vue2.cjs +1 -1
  181. package/lib/components/progress/progress.vue2.cjs +5 -5
  182. package/lib/components/qrcode/qrcode.vue2.cjs +1 -1
  183. package/lib/components/radio/radio-button.vue2.cjs +1 -1
  184. package/lib/components/radio/radio-group.vue2.cjs +1 -1
  185. package/lib/components/router-view-content/router-view-content.vue2.cjs +1 -1
  186. package/lib/components/roving-focus-group/roving-focus-item.vue2.cjs +1 -1
  187. package/lib/components/row/row.vue2.cjs +1 -1
  188. package/lib/components/scrollbar/bar.vue2.cjs +1 -1
  189. package/lib/components/scrollbar/scrollbar.vue2.cjs +1 -1
  190. package/lib/components/scrollbar/thumb.vue2.cjs +1 -1
  191. package/lib/components/search/search.vue2.cjs +1 -1
  192. package/lib/components/select/index.d.ts +1 -1
  193. package/lib/components/select/select.vue.d.ts +1 -1
  194. package/lib/components/side-menu/index.d.ts +2 -8
  195. package/lib/components/side-menu/side-menu.vue.d.ts +8 -62
  196. package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
  197. package/lib/components/side-menu/types.d.ts +107 -0
  198. package/lib/components/side-menu/use-drag-line.cjs +1 -1
  199. package/lib/components/side-menu/use-drag-line.d.ts +3 -1
  200. package/lib/components/skeleton/skeleton-item.vue2.cjs +1 -1
  201. package/lib/components/skeleton/skeleton.vue2.cjs +1 -1
  202. package/lib/components/slider/button.vue2.cjs +1 -1
  203. package/lib/components/slider/slider.vue2.cjs +1 -1
  204. package/lib/components/steps/item.vue2.cjs +1 -1
  205. package/lib/components/steps/steps.vue2.cjs +1 -1
  206. package/lib/components/super-form/super-form-action.vue2.cjs +1 -1
  207. package/lib/components/switch/switch.vue2.cjs +1 -1
  208. package/lib/components/table/field.d.ts +4 -4
  209. package/lib/components/teleport/teleport.vue2.cjs +1 -1
  210. package/lib/components/time-picker/common/picker.vue.d.ts +1 -1
  211. package/lib/components/time-picker/index.d.ts +2 -2
  212. package/lib/components/time-picker/time-picker.d.ts +1 -1
  213. package/lib/components/timeline/timeline-item.vue2.cjs +1 -1
  214. package/lib/components/tooltip/content.vue2.cjs +1 -1
  215. package/lib/components/tooltip/tooltip.vue2.cjs +1 -1
  216. package/lib/components/tooltip/trigger.vue2.cjs +1 -1
  217. package/lib/components/tree/tree.vue2.cjs +1 -1
  218. package/lib/components/upload/upload-content.vue2.cjs +1 -1
  219. package/lib/components/upload/upload-list.vue2.cjs +1 -1
  220. package/lib/components/upload/upload.vue2.cjs +1 -1
  221. package/lib/components/verify-code/verify-code.vue2.cjs +1 -1
  222. package/lib/package.json.cjs +1 -1
  223. package/lib/package.json.d.ts +1 -1
  224. package/package.json +4 -4
  225. package/tags.json +1 -1
  226. package/theme-style/index.css +1 -1
  227. package/theme-style/src/header-layout.scss +1 -1
  228. package/theme-style/src/menu.scss +7 -2
  229. package/theme-style/src/mixins/mixins.scss +1 -0
  230. package/theme-style/src/side-menu.scss +0 -3
  231. package/theme-style/vft-header-layout.css +1 -1
  232. package/theme-style/vft-menu.css +1 -1
  233. package/theme-style/vft-side-menu.css +1 -1
  234. package/web-types.json +1 -1
@@ -1,42 +1,53 @@
1
- import { useDebounceFn as W, useThrottleFn as g } from "@vft/use";
2
- import { onMounted as x, nextTick as w, unref as u } from "vue";
3
- function M(f, d, r) {
4
- const l = r.props?.dragWidthCfg?.minWidth || 200;
5
- x(() => {
6
- w(() => {
7
- W(a, 100)();
1
+ import "@vueuse/core";
2
+ import "@vft/utils";
3
+ import "../config-provider/hooks/use-global-config.js";
4
+ import { ref as x, onMounted as v, nextTick as d, unref as r } from "vue";
5
+ import "lodash-es";
6
+ import "../form/index.js";
7
+ import { useDebounceFn as w, useThrottleFn as T } from "@vft/use";
8
+ function k(p, c, n) {
9
+ const i = x(!1), l = n.props?.dragWidthCfg?.minWidth || 200;
10
+ v(() => {
11
+ n.props?.dragWidthCfg && d(() => {
12
+ w(g, 100)();
8
13
  });
9
14
  });
10
- function c(e) {
11
- const n = u(e);
12
- return n ? Reflect.has(n, "$el") ? u(e)?.$el : u(e) : null;
15
+ function f(t) {
16
+ const o = r(t);
17
+ return o ? Reflect.has(o, "$el") ? r(t)?.$el : r(t) : null;
13
18
  }
14
- function m(e, n, i) {
15
- document.onmousemove = function(o) {
16
- let t = e.left + (o.clientX - i);
17
- o = o || window.event;
18
- const s = r.props?.dragWidthCfg?.maxWidth || 800, h = u(l);
19
- return t <= h ? void 0 : (t < 0 && (t = 0), t > s && (t = s), e.style.left = t + "px", g(() => {
20
- r.emit("update:width", t);
19
+ function a(t, o, s) {
20
+ document.onmousemove = function(u) {
21
+ let e = t.left + (u.clientX - s);
22
+ u = u || window.event;
23
+ const m = n.props?.dragWidthCfg?.maxWidth || 800, W = r(l);
24
+ return e <= W ? void 0 : (e < 0 && (e = 0), e > m && (e = m), t.style.left = e + "px", T(() => {
25
+ n.emit("update:width", e + "px");
21
26
  }, 150)(), !1);
22
27
  };
23
28
  }
24
- function p(e) {
29
+ function h(t) {
25
30
  document.onmouseup = function() {
26
- document.onmousemove = null, document.onmouseup = null, e.releaseCapture?.();
31
+ document.onmousemove = null, document.onmouseup = null, i.value = !0, d(() => {
32
+ n.emit("dragWidthEnd"), setTimeout(() => {
33
+ i.value = !1;
34
+ }, 1e3);
35
+ }), t.releaseCapture?.();
27
36
  };
28
37
  }
29
- function a() {
30
- const e = c(d);
31
- if (!e) return;
32
- const n = c(f);
33
- n && (e.onmousedown = (i) => {
34
- const o = i?.clientX;
35
- return e.left = e.offsetLeft, m(e, n, o), p(e), e.setCapture?.(), !1;
38
+ function g() {
39
+ const t = f(c);
40
+ if (!t) return;
41
+ const o = f(p);
42
+ o && (t.onmousedown = (s) => {
43
+ const u = s?.clientX;
44
+ return t.left = t.offsetLeft, a(t, o, u), h(t), t.setCapture?.(), !1;
36
45
  });
37
46
  }
38
- return {};
47
+ return {
48
+ isDraging: i
49
+ };
39
50
  }
40
51
  export {
41
- M as useDragLine
52
+ k as useDragLine
42
53
  };
@@ -1,7 +1,7 @@
1
- import { defineComponent as n, computed as a, createElementBlock as c, openBlock as r, normalizeClass as p, unref as e, createBlock as s, createCommentVNode as l, normalizeProps as f, mergeProps as u } from "vue";
2
- import { VftIcon as d } from "../icon/index.js";
1
+ import { defineComponent as n, computed as m, createElementBlock as c, openBlock as r, normalizeClass as a, unref as t, createBlock as l, createCommentVNode as p, normalizeProps as s, mergeProps as f } from "vue";
2
+ import { VftIcon as u } from "../icon/index.js";
3
3
  import "@vueuse/core";
4
- import { singleAttrToObj as _ } from "@vft/utils";
4
+ import { singleAttrToObj as d } from "@vft/utils";
5
5
  import "../config-provider/hooks/use-global-config.js";
6
6
  import "lodash-es";
7
7
  import "../form/index.js";
@@ -17,17 +17,17 @@ const g = n({
17
17
  variant: { default: "text" },
18
18
  imgIcon: {}
19
19
  },
20
- setup(i) {
21
- const m = a(
22
- () => _(i.imgIcon, "icon", {
20
+ setup(e) {
21
+ const i = m(
22
+ () => d(e.imgIcon, "icon", {
23
23
  size: 20,
24
24
  icon: "icon-picture-filled"
25
25
  })
26
26
  ), o = k("skeleton");
27
- return (t, v) => (r(), c("div", {
28
- class: p([e(o).e("item"), e(o).e(t.variant)])
27
+ return (v, _) => (r(), c("div", {
28
+ class: a([t(o).e("item"), t(o).e(e.variant)])
29
29
  }, [
30
- t.variant === "image" ? (r(), s(e(d), f(u({ key: 0 }, m.value)), null, 16)) : l("", !0)
30
+ e.variant === "image" ? (r(), l(t(u), s(f({ key: 0 }, i.value)), null, 16)) : p("", !0)
31
31
  ], 2));
32
32
  }
33
33
  });
@@ -1,4 +1,4 @@
1
- import { defineComponent as k, computed as y, createElementBlock as a, renderSlot as p, unref as t, openBlock as o, mergeProps as u, Fragment as s, renderList as d, createCommentVNode as h, createVNode as B, normalizeClass as f, createBlock as $, normalizeProps as v } from "vue";
1
+ import { defineComponent as k, computed as y, createElementBlock as n, renderSlot as u, unref as t, openBlock as o, mergeProps as d, Fragment as l, renderList as c, createCommentVNode as h, createVNode as B, normalizeClass as f, createBlock as $, normalizeProps as v } from "vue";
2
2
  import "@vueuse/core";
3
3
  import "@vft/utils";
4
4
  import "../config-provider/hooks/use-global-config.js";
@@ -9,7 +9,7 @@ import "../../hooks/use-model-toggle/index.js";
9
9
  import "@popperjs/core";
10
10
  import { useThrottleRender as C } from "../../hooks/use-throttle-render/index.js";
11
11
  import "../../hooks/use-z-index/index.js";
12
- import c from "./skeleton-item.vue2.js";
12
+ import p from "./skeleton-item.vue2.js";
13
13
  const N = k({
14
14
  name: "vft-skeleton"
15
15
  }), D = /* @__PURE__ */ k({
@@ -21,24 +21,24 @@ const N = k({
21
21
  loading: { type: Boolean, default: !0 },
22
22
  throttle: {}
23
23
  },
24
- setup(n, { expose: g }) {
25
- const r = w("skeleton"), l = C(
26
- y(() => n.loading),
27
- n.throttle
24
+ setup(e, { expose: g }) {
25
+ const r = w("skeleton"), s = C(
26
+ y(() => e.loading),
27
+ e.throttle
28
28
  );
29
29
  return g({
30
- uiLoading: l
31
- }), (e, z) => t(l) ? (o(), a("div", u({
30
+ uiLoading: s
31
+ }), (a, z) => t(s) ? (o(), n("div", d({
32
32
  key: 0,
33
33
  class: [t(r).b(), t(r).is("animated", e.animated)]
34
- }, e.$attrs), [
35
- (o(!0), a(s, null, d(e.count, (m) => (o(), a(s, { key: m }, [
36
- e.loading ? p(e.$slots, "template", { key: m }, () => [
37
- B(c, {
34
+ }, a.$attrs), [
35
+ (o(!0), n(l, null, c(e.count, (m) => (o(), n(l, { key: m }, [
36
+ e.loading ? u(a.$slots, "template", { key: m }, () => [
37
+ B(p, {
38
38
  class: f(t(r).is("first")),
39
39
  variant: "p"
40
40
  }, null, 8, ["class"]),
41
- (o(!0), a(s, null, d(e.rows, (i) => (o(), $(c, {
41
+ (o(!0), n(l, null, c(e.rows, (i) => (o(), $(p, {
42
42
  key: i,
43
43
  class: f([
44
44
  t(r).e("paragraph"),
@@ -48,7 +48,7 @@ const N = k({
48
48
  }, null, 8, ["class"]))), 128))
49
49
  ]) : h("", !0)
50
50
  ], 64))), 128))
51
- ], 16)) : p(e.$slots, "default", v(u({ key: 1 }, e.$attrs)));
51
+ ], 16)) : u(a.$slots, "default", v(d({ key: 1 }, a.$attrs)));
52
52
  }
53
53
  });
54
54
  export {
@@ -1,20 +1,20 @@
1
- import { defineComponent as v, reactive as T, getCurrentInstance as x, toRefs as P, createElementBlock as z, openBlock as K, unref as t, normalizeStyle as L, normalizeClass as f, createVNode as X, withCtx as g, createElementVNode as b, toDisplayString as Y } from "vue";
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
2
  import "@popperjs/core";
3
- import { isNumber as A } from "@vft/utils";
4
- import { VftTooltip as F } from "../tooltip/index.js";
5
- import { UPDATE_MODEL_EVENT as I } from "../../constants/event.js";
3
+ import { isNumber as Y } from "@vft/utils";
4
+ import { VftTooltip as A } from "../tooltip/index.js";
5
+ import { UPDATE_MODEL_EVENT as F } from "../../constants/event.js";
6
6
  import "@vueuse/core";
7
7
  import "../config-provider/hooks/use-global-config.js";
8
8
  import "lodash-es";
9
9
  import "../form/index.js";
10
- import { useNamespace as O } from "../../hooks/use-namespace/index.js";
10
+ import { useNamespace as I } from "../../hooks/use-namespace/index.js";
11
11
  import "../../hooks/use-model-toggle/index.js";
12
12
  import "../../hooks/use-z-index/index.js";
13
- import { useSliderButton as R } from "./composables/use-slider-button.js";
14
- const U = ["tabindex"], j = v({
13
+ import { useSliderButton as O } from "./composables/use-slider-button.js";
14
+ const R = ["tabindex"], U = b({
15
15
  name: "VftSliderButton"
16
- }), nt = /* @__PURE__ */ v({
17
- ...j,
16
+ }), nt = /* @__PURE__ */ b({
17
+ ...U,
18
18
  props: {
19
19
  modelValue: { default: 0 },
20
20
  vertical: { type: Boolean },
@@ -22,10 +22,10 @@ const U = ["tabindex"], j = v({
22
22
  placement: { default: "top" }
23
23
  },
24
24
  emits: {
25
- [I]: (i) => A(i)
25
+ [F]: (n) => Y(n)
26
26
  },
27
- setup(i, { expose: V, emit: w }) {
28
- const y = w, m = O("slider"), u = T({
27
+ setup(n, { expose: v, emit: c }) {
28
+ const V = c, m = I("slider"), u = N({
29
29
  hovering: !1,
30
30
  dragging: !1,
31
31
  isClick: !1,
@@ -35,70 +35,70 @@ const U = ["tabindex"], j = v({
35
35
  currentY: 0,
36
36
  startPosition: 0,
37
37
  newPosition: 0,
38
- oldValue: i.modelValue
39
- }), c = x(), {
40
- disabled: B,
41
- button: C,
42
- tooltip: E,
43
- showTooltip: k,
44
- tooltipVisible: D,
45
- wrapperStyle: M,
46
- formatValue: N,
47
- handleMouseEnter: r,
48
- handleMouseLeave: s,
49
- onButtonDown: n,
38
+ oldValue: n.modelValue
39
+ }), w = S(), {
40
+ disabled: y,
41
+ button: B,
42
+ tooltip: C,
43
+ showTooltip: E,
44
+ tooltipVisible: k,
45
+ wrapperStyle: x,
46
+ formatValue: D,
47
+ handleMouseEnter: s,
48
+ handleMouseLeave: i,
49
+ onButtonDown: r,
50
50
  onKeyDown: l,
51
- setPosition: S
52
- } = R(c.props, u, y), { hovering: p, dragging: a } = P(u);
53
- return V({
54
- onButtonDown: n,
51
+ setPosition: M
52
+ } = O(w.props, u, V), { hovering: a, dragging: p } = T(u);
53
+ return v({
54
+ onButtonDown: r,
55
55
  onKeyDown: l,
56
- setPosition: S,
57
- hovering: p,
58
- dragging: a
59
- }), (d, e) => (K(), z("div", {
56
+ setPosition: M,
57
+ hovering: a,
58
+ dragging: p
59
+ }), (j, e) => (z(), P("div", {
60
60
  ref_key: "button",
61
- ref: C,
62
- class: f([t(m).e("button-wrapper"), { hover: t(p), dragging: t(a) }]),
63
- style: L(t(M)),
64
- tabindex: t(B) ? -1 : 0,
61
+ ref: B,
62
+ class: d([t(m).e("button-wrapper"), { hover: t(a), dragging: t(p) }]),
63
+ style: K(t(x)),
64
+ tabindex: t(y) ? -1 : 0,
65
65
  onMouseenter: e[0] || (e[0] = //@ts-ignore
66
- (...o) => t(r) && t(r)(...o)),
67
- onMouseleave: e[1] || (e[1] = //@ts-ignore
68
66
  (...o) => t(s) && t(s)(...o)),
67
+ onMouseleave: e[1] || (e[1] = //@ts-ignore
68
+ (...o) => t(i) && t(i)(...o)),
69
69
  onMousedown: e[2] || (e[2] = //@ts-ignore
70
- (...o) => t(n) && t(n)(...o)),
70
+ (...o) => t(r) && t(r)(...o)),
71
71
  onTouchstart: e[3] || (e[3] = //@ts-ignore
72
- (...o) => t(n) && t(n)(...o)),
73
- onFocus: e[4] || (e[4] = //@ts-ignore
74
72
  (...o) => t(r) && t(r)(...o)),
75
- onBlur: e[5] || (e[5] = //@ts-ignore
73
+ onFocus: e[4] || (e[4] = //@ts-ignore
76
74
  (...o) => t(s) && t(s)(...o)),
75
+ onBlur: e[5] || (e[5] = //@ts-ignore
76
+ (...o) => t(i) && t(i)(...o)),
77
77
  onKeydown: e[6] || (e[6] = //@ts-ignore
78
78
  (...o) => t(l) && t(l)(...o))
79
79
  }, [
80
- X(t(F), {
80
+ L(t(A), {
81
81
  ref_key: "tooltip",
82
- ref: E,
83
- visible: t(D),
84
- placement: d.placement,
82
+ ref: C,
83
+ visible: t(k),
84
+ placement: n.placement,
85
85
  "fallback-placements": ["top", "bottom", "right", "left"],
86
86
  "stop-popper-mouse-event": !1,
87
- "popper-class": d.tooltipClass,
88
- disabled: !t(k),
87
+ "popper-class": n.tooltipClass,
88
+ disabled: !t(E),
89
89
  persistent: ""
90
90
  }, {
91
- content: g(() => [
92
- b("span", null, Y(t(N)), 1)
91
+ content: f(() => [
92
+ g("span", null, X(t(D)), 1)
93
93
  ]),
94
- default: g(() => [
95
- b("div", {
96
- class: f([t(m).e("button"), { hover: t(p), dragging: t(a) }])
94
+ default: f(() => [
95
+ g("div", {
96
+ class: d([t(m).e("button"), { hover: t(a), dragging: t(p) }])
97
97
  }, null, 2)
98
98
  ]),
99
99
  _: 1
100
100
  }, 8, ["visible", "placement", "popper-class", "disabled"])
101
- ], 46, U));
101
+ ], 46, R));
102
102
  }
103
103
  });
104
104
  export {