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,10 +1,10 @@
1
- import { defineComponent as I, ref as c, computed as F, watchEffect as K, createElementBlock as f, openBlock as i, withKeys as V, normalizeClass as d, unref as r, createCommentVNode as m, createBlock as v, Fragment as z, renderList as D, toDisplayString as L } from "vue";
1
+ import { defineComponent as I, ref as f, computed as B, watchEffect as K, createElementBlock as c, openBlock as r, withKeys as V, normalizeClass as d, unref as u, createCommentVNode as m, createBlock as v, Fragment as z, renderList as D, toDisplayString as F } from "vue";
2
2
  import "@vueuse/core";
3
3
  import "@vft/utils";
4
4
  import "../../config-provider/hooks/use-global-config.js";
5
5
  import "lodash-es";
6
6
  import "../../form/index.js";
7
- import { useNamespace as E } from "../../../hooks/use-namespace/index.js";
7
+ import { useNamespace as L } from "../../../hooks/use-namespace/index.js";
8
8
  import "../../../hooks/use-model-toggle/index.js";
9
9
  import "@popperjs/core";
10
10
  import "../../../hooks/use-z-index/index.js";
@@ -18,129 +18,129 @@ const O = ["aria-current", "tabindex"], S = ["tabindex"], j = ["aria-current", "
18
18
  disabled: { type: Boolean }
19
19
  },
20
20
  emits: ["change"],
21
- setup(n, { emit: x }) {
22
- const M = x, o = E("pager"), q = E("icon"), C = c(!1), P = c(!1), k = c(!1), N = c(!1), y = c(!1), w = c(!1), A = F(() => {
23
- const e = (n.pagerCount - 1) / 2;
24
- let t = !1, a = !1;
25
- n.pageCount > n.pagerCount && (n.currentPage > n.pagerCount - e && (t = !0), n.currentPage < n.pageCount - e && (a = !0));
26
- const l = [];
27
- if (t && !a) {
28
- const u = n.pageCount - (n.pagerCount - 2);
29
- for (let s = u; s < n.pageCount; s++)
30
- l.push(s);
31
- } else if (!t && a)
32
- for (let u = 2; u < n.pagerCount; u++)
33
- l.push(u);
34
- else if (t && a) {
35
- const u = Math.floor(n.pagerCount / 2) - 1;
36
- for (let s = n.currentPage - u; s <= n.currentPage + u; s++)
37
- l.push(s);
21
+ setup(e, { emit: E }) {
22
+ const w = E, l = L("pager"), M = L("icon"), C = f(!1), P = f(!1), k = f(!1), x = f(!1), N = f(!1), y = f(!1), A = B(() => {
23
+ const a = (e.pagerCount - 1) / 2;
24
+ let t = !1, n = !1;
25
+ e.pageCount > e.pagerCount && (e.currentPage > e.pagerCount - a && (t = !0), e.currentPage < e.pageCount - a && (n = !0));
26
+ const o = [];
27
+ if (t && !n) {
28
+ const i = e.pageCount - (e.pagerCount - 2);
29
+ for (let s = i; s < e.pageCount; s++)
30
+ o.push(s);
31
+ } else if (!t && n)
32
+ for (let i = 2; i < e.pagerCount; i++)
33
+ o.push(i);
34
+ else if (t && n) {
35
+ const i = Math.floor(e.pagerCount / 2) - 1;
36
+ for (let s = e.currentPage - i; s <= e.currentPage + i; s++)
37
+ o.push(s);
38
38
  } else
39
- for (let u = 2; u < n.pageCount; u++)
40
- l.push(u);
41
- return l;
42
- }), g = F(() => n.disabled ? -1 : 0);
39
+ for (let i = 2; i < e.pageCount; i++)
40
+ o.push(i);
41
+ return o;
42
+ }), g = B(() => e.disabled ? -1 : 0);
43
43
  K(() => {
44
- const e = (n.pagerCount - 1) / 2;
45
- C.value = !1, P.value = !1, n.pageCount > n.pagerCount && (n.currentPage > n.pagerCount - e && (C.value = !0), n.currentPage < n.pageCount - e && (P.value = !0));
44
+ const a = (e.pagerCount - 1) / 2;
45
+ C.value = !1, P.value = !1, e.pageCount > e.pagerCount && (e.currentPage > e.pagerCount - a && (C.value = !0), e.currentPage < e.pageCount - a && (P.value = !0));
46
46
  });
47
- function $(e = !1) {
48
- n.disabled || (e ? k.value = !0 : N.value = !0);
47
+ function q(a = !1) {
48
+ e.disabled || (a ? k.value = !0 : x.value = !0);
49
49
  }
50
- function h(e = !1) {
51
- e ? y.value = !0 : w.value = !0;
50
+ function $(a = !1) {
51
+ a ? N.value = !0 : y.value = !0;
52
52
  }
53
- function H(e) {
54
- const t = e.target;
53
+ function H(a) {
54
+ const t = a.target;
55
55
  if (t.tagName.toLowerCase() === "li" && Array.from(t.classList).includes("number")) {
56
- const a = Number(t.textContent);
57
- a !== n.currentPage && M("change", a);
58
- } else t.tagName.toLowerCase() === "li" && Array.from(t.classList).includes("more") && B(e);
56
+ const n = Number(t.textContent);
57
+ n !== e.currentPage && w("change", n);
58
+ } else t.tagName.toLowerCase() === "li" && Array.from(t.classList).includes("more") && h(a);
59
59
  }
60
- function B(e) {
61
- const t = e.target;
62
- if (t.tagName.toLowerCase() === "ul" || n.disabled)
60
+ function h(a) {
61
+ const t = a.target;
62
+ if (t.tagName.toLowerCase() === "ul" || e.disabled)
63
63
  return;
64
- let a = Number(t.textContent);
65
- const l = n.pagerCount - 2;
66
- t.className.includes("more") && (t.className.includes("quickprev") ? a = n.currentPage - l : t.className.includes("quicknext") && (a = n.currentPage + l)), Number.isNaN(+a) || (a < 1 && (a = 1), a > n.pageCount && (a = n.pageCount)), a !== n.currentPage && M("change", a);
64
+ let n = Number(t.textContent);
65
+ const o = e.pagerCount - 2;
66
+ t.className.includes("more") && (t.className.includes("quickprev") ? n = e.currentPage - o : t.className.includes("quicknext") && (n = e.currentPage + o)), Number.isNaN(+n) || (n < 1 && (n = 1), n > e.pageCount && (n = e.pageCount)), n !== e.currentPage && w("change", n);
67
67
  }
68
- return (e, t) => (i(), f("ul", {
69
- class: d(r(o).b()),
70
- onClick: B,
68
+ return (a, t) => (r(), c("ul", {
69
+ class: d(u(l).b()),
70
+ onClick: h,
71
71
  onKeyup: V(H, ["enter"])
72
72
  }, [
73
- e.pageCount > 0 ? (i(), f("li", {
73
+ e.pageCount > 0 ? (r(), c("li", {
74
74
  key: 0,
75
75
  class: d([[
76
- r(o).is("active", e.currentPage === 1),
77
- r(o).is("disabled", e.disabled)
76
+ u(l).is("active", e.currentPage === 1),
77
+ u(l).is("disabled", e.disabled)
78
78
  ], "number"]),
79
79
  "aria-current": e.currentPage === 1,
80
80
  tabindex: g.value
81
81
  }, " 1 ", 10, O)) : m("", !0),
82
- C.value ? (i(), f("li", {
82
+ C.value ? (r(), c("li", {
83
83
  key: 1,
84
84
  class: d([
85
85
  "more",
86
86
  "btn-quickprev",
87
- r(q).b(),
88
- r(o).is("disabled", e.disabled)
87
+ u(M).b(),
88
+ u(l).is("disabled", e.disabled)
89
89
  ]),
90
90
  tabindex: g.value,
91
- onMouseenter: t[0] || (t[0] = (a) => $(!0)),
92
- onMouseleave: t[1] || (t[1] = (a) => k.value = !1),
93
- onFocus: t[2] || (t[2] = (a) => h(!0)),
94
- onBlur: t[3] || (t[3] = (a) => y.value = !1)
91
+ onMouseenter: t[0] || (t[0] = (n) => q(!0)),
92
+ onMouseleave: t[1] || (t[1] = (n) => k.value = !1),
93
+ onFocus: t[2] || (t[2] = (n) => $(!0)),
94
+ onBlur: t[3] || (t[3] = (n) => N.value = !1)
95
95
  }, [
96
- (k.value || y.value) && !e.disabled ? (i(), v(r(b), {
96
+ (k.value || N.value) && !e.disabled ? (r(), v(u(b), {
97
97
  key: 0,
98
98
  icon: "icon-d-arrow-left"
99
- })) : (i(), v(r(b), {
99
+ })) : (r(), v(u(b), {
100
100
  key: 1,
101
101
  icon: "icon-more-filled"
102
102
  }))
103
103
  ], 42, S)) : m("", !0),
104
- (i(!0), f(z, null, D(A.value, (a) => (i(), f("li", {
105
- key: a,
104
+ (r(!0), c(z, null, D(A.value, (n) => (r(), c("li", {
105
+ key: n,
106
106
  class: d([[
107
- r(o).is("active", e.currentPage === a),
108
- r(o).is("disabled", e.disabled)
107
+ u(l).is("active", e.currentPage === n),
108
+ u(l).is("disabled", e.disabled)
109
109
  ], "number"]),
110
- "aria-current": e.currentPage === a,
110
+ "aria-current": e.currentPage === n,
111
111
  tabindex: g.value
112
- }, L(a), 11, j))), 128)),
113
- P.value ? (i(), f("li", {
112
+ }, F(n), 11, j))), 128)),
113
+ P.value ? (r(), c("li", {
114
114
  key: 2,
115
115
  class: d([
116
116
  "more",
117
117
  "btn-quicknext",
118
- r(q).b(),
119
- r(o).is("disabled", e.disabled)
118
+ u(M).b(),
119
+ u(l).is("disabled", e.disabled)
120
120
  ]),
121
121
  tabindex: g.value,
122
- onMouseenter: t[4] || (t[4] = (a) => $()),
123
- onMouseleave: t[5] || (t[5] = (a) => N.value = !1),
124
- onFocus: t[6] || (t[6] = (a) => h()),
125
- onBlur: t[7] || (t[7] = (a) => w.value = !1)
122
+ onMouseenter: t[4] || (t[4] = (n) => q()),
123
+ onMouseleave: t[5] || (t[5] = (n) => x.value = !1),
124
+ onFocus: t[6] || (t[6] = (n) => $()),
125
+ onBlur: t[7] || (t[7] = (n) => y.value = !1)
126
126
  }, [
127
- (N.value || w.value) && !e.disabled ? (i(), v(r(b), {
127
+ (x.value || y.value) && !e.disabled ? (r(), v(u(b), {
128
128
  key: 0,
129
129
  icon: "icon-d-arrow-right"
130
- })) : (i(), v(r(b), {
130
+ })) : (r(), v(u(b), {
131
131
  key: 1,
132
132
  icon: "icon-more-filled"
133
133
  }))
134
134
  ], 42, G)) : m("", !0),
135
- e.pageCount > 1 ? (i(), f("li", {
135
+ e.pageCount > 1 ? (r(), c("li", {
136
136
  key: 3,
137
137
  class: d([[
138
- r(o).is("active", e.currentPage === e.pageCount),
139
- r(o).is("disabled", e.disabled)
138
+ u(l).is("active", e.currentPage === e.pageCount),
139
+ u(l).is("disabled", e.disabled)
140
140
  ], "number"]),
141
141
  "aria-current": e.currentPage === e.pageCount,
142
142
  tabindex: g.value
143
- }, L(e.pageCount), 11, J)) : m("", !0)
143
+ }, F(e.pageCount), 11, J)) : m("", !0)
144
144
  ], 34));
145
145
  }
146
146
  });
@@ -1,6 +1,6 @@
1
- import { defineComponent as d, computed as c, createElementBlock as r, openBlock as a, createCommentVNode as p, createVNode as m, toDisplayString as u, unref as b } from "vue";
2
- import { VftIcon as f } from "../../icon/index.js";
3
- const v = ["disabled", "aria-disabled"], k = { key: 0 }, g = /* @__PURE__ */ d({
1
+ import { defineComponent as l, computed as d, createElementBlock as o, openBlock as a, createCommentVNode as s, createVNode as m, toDisplayString as u, unref as p } from "vue";
2
+ import { VftIcon as b } from "../../icon/index.js";
3
+ const f = ["disabled", "aria-disabled"], v = { key: 0 }, g = /* @__PURE__ */ l({
4
4
  __name: "prev",
5
5
  props: {
6
6
  disabled: { type: Boolean },
@@ -9,20 +9,20 @@ const v = ["disabled", "aria-disabled"], k = { key: 0 }, g = /* @__PURE__ */ d({
9
9
  },
10
10
  emits: ["click"],
11
11
  setup(e, { emit: i }) {
12
- const s = i, t = c(() => e.disabled || e.currentPage <= 1);
13
- return (o, n) => (a(), r("button", {
12
+ const r = i, t = d(() => e.disabled || e.currentPage <= 1);
13
+ return (k, n) => (a(), o("button", {
14
14
  type: "button",
15
15
  class: "btn-prev",
16
16
  disabled: t.value,
17
17
  "aria-disabled": t.value,
18
- onClick: n[0] || (n[0] = (l) => s("click", l))
18
+ onClick: n[0] || (n[0] = (c) => r("click", c))
19
19
  }, [
20
- o.prevText ? (a(), r("span", k, u(o.prevText), 1)) : p("", !0),
21
- m(b(f), {
20
+ e.prevText ? (a(), o("span", v, u(e.prevText), 1)) : s("", !0),
21
+ m(p(b), {
22
22
  icon: "icon-arrow-left",
23
23
  size: 16
24
24
  })
25
- ], 8, v));
25
+ ], 8, f));
26
26
  }
27
27
  });
28
28
  export {
@@ -1,4 +1,4 @@
1
- import { defineComponent as g, ref as z, watch as n, computed as d, createElementBlock as f, openBlock as S, normalizeClass as h, unref as o, createVNode as v } from "vue";
1
+ import { defineComponent as g, ref as z, watch as n, computed as d, createElementBlock as f, openBlock as S, normalizeClass as h, unref as s, createVNode as v } from "vue";
2
2
  import { isEqual as C } from "lodash-es";
3
3
  import "@vueuse/core";
4
4
  import "@vft/utils";
@@ -10,7 +10,7 @@ import "@popperjs/core";
10
10
  import "../../../hooks/use-z-index/index.js";
11
11
  import { usePagination as y } from "../usePagination.js";
12
12
  import { VftSelect as B } from "../../select/index.js";
13
- const J = /* @__PURE__ */ g({
13
+ const I = /* @__PURE__ */ g({
14
14
  __name: "sizes",
15
15
  props: {
16
16
  pageSize: {},
@@ -20,14 +20,14 @@ const J = /* @__PURE__ */ g({
20
20
  size: {}
21
21
  },
22
22
  emits: ["page-size-change"],
23
- setup(a, { emit: t }) {
24
- const p = t, r = b("pagination"), l = y(), i = z(a.pageSize);
23
+ setup(a, { emit: o }) {
24
+ const l = o, r = b("pagination"), p = y(), i = z(a.pageSize);
25
25
  n(
26
26
  () => a.pageSizes,
27
- (e, s) => {
28
- if (!C(e, s) && Array.isArray(e)) {
29
- const c = e.includes(a.pageSize) ? a.pageSize : a.pageSizes[0];
30
- p("page-size-change", c);
27
+ (e, t) => {
28
+ if (!C(e, t) && Array.isArray(e)) {
29
+ const u = e.includes(a.pageSize) ? a.pageSize : a.pageSizes[0];
30
+ l("page-size-change", u);
31
31
  }
32
32
  }
33
33
  ), n(
@@ -39,24 +39,24 @@ const J = /* @__PURE__ */ g({
39
39
  const m = d(
40
40
  () => a.pageSizes.map((e) => ({ label: e + "条/页", value: e }))
41
41
  );
42
- function u(e) {
43
- e !== i.value && (i.value = e, l.handleSizeChange?.(Number(e)));
42
+ function c(e) {
43
+ e !== i.value && (i.value = e, p.handleSizeChange?.(Number(e)));
44
44
  }
45
- return (e, s) => (S(), f("span", {
46
- class: h(o(r).e("sizes"))
45
+ return (e, t) => (S(), f("span", {
46
+ class: h(s(r).e("sizes"))
47
47
  }, [
48
- v(o(B), {
48
+ v(s(B), {
49
49
  "model-value": i.value,
50
- disabled: e.disabled,
51
- "popper-class": e.popperClass,
52
- size: e.size,
50
+ disabled: a.disabled,
51
+ "popper-class": a.popperClass,
52
+ size: a.size,
53
53
  "validate-event": !1,
54
- onChange: u,
54
+ onChange: c,
55
55
  options: m.value
56
56
  }, null, 8, ["model-value", "disabled", "popper-class", "size", "options"])
57
57
  ], 2));
58
58
  }
59
59
  });
60
60
  export {
61
- J as default
61
+ I as default
62
62
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as r, createElementBlock as i, openBlock as p, unref as t, normalizeClass as s, toDisplayString as n } from "vue";
1
+ import { defineComponent as i, createElementBlock as r, openBlock as n, unref as t, normalizeClass as s, toDisplayString as p } from "vue";
2
2
  import "@vueuse/core";
3
3
  import "@vft/utils";
4
4
  import "../../config-provider/hooks/use-global-config.js";
@@ -9,17 +9,17 @@ import "../../../hooks/use-model-toggle/index.js";
9
9
  import "@popperjs/core";
10
10
  import "../../../hooks/use-z-index/index.js";
11
11
  import { usePagination as l } from "../usePagination.js";
12
- const c = ["disabled"], D = /* @__PURE__ */ r({
12
+ const c = ["disabled"], D = /* @__PURE__ */ i({
13
13
  __name: "total",
14
14
  props: {
15
15
  total: { default: 0 }
16
16
  },
17
- setup(d) {
18
- const o = m("pagination"), { disabled: e } = l();
19
- return (a, _) => (p(), i("span", {
20
- class: s(t(o).e("total")),
21
- disabled: t(e)
22
- }, "共 " + n(a.total) + " 条", 11, c));
17
+ setup(o) {
18
+ const e = m("pagination"), { disabled: a } = l();
19
+ return (d, f) => (n(), r("span", {
20
+ class: s(t(e).e("total")),
21
+ disabled: t(a)
22
+ }, "共 " + p(o.total) + " 条", 11, c));
23
23
  }
24
24
  });
25
25
  export {
@@ -1,20 +1,20 @@
1
- import { defineComponent as h, ref as w, computed as i, createBlock as u, openBlock as d, unref as t, mergeProps as $, withCtx as n, renderSlot as b, createCommentVNode as y, createElementVNode as p, normalizeClass as r, createTextVNode as a, normalizeStyle as I, toDisplayString as c, createVNode as B } from "vue";
1
+ import { defineComponent as h, ref as N, computed as r, createBlock as d, openBlock as y, unref as t, mergeProps as w, withCtx as l, renderSlot as $, createCommentVNode as B, createElementVNode as a, normalizeClass as c, createTextVNode as f, normalizeStyle as b, toDisplayString as s, createVNode as T } from "vue";
2
2
  import "@vueuse/core";
3
3
  import "@vft/utils";
4
- import { addUnit as P } from "../../utils/helper.js";
4
+ import { addUnit as I } from "../../utils/helper.js";
5
5
  import "lodash-es";
6
6
  import "../form/index.js";
7
- import { VftButton as T } from "../button/index.js";
8
- import { VftIcon as S } from "../icon/index.js";
9
- import { VftTooltip as A } from "../tooltip/index.js";
10
- import { useNamespace as R } from "../../hooks/use-namespace/index.js";
7
+ import { VftButton as x } from "../button/index.js";
8
+ import { VftIcon as P } from "../icon/index.js";
9
+ import { VftTooltip as S } from "../tooltip/index.js";
10
+ import { useNamespace as A } from "../../hooks/use-namespace/index.js";
11
11
  import "../../hooks/use-model-toggle/index.js";
12
12
  import "@popperjs/core";
13
13
  import "../../hooks/use-z-index/index.js";
14
- const q = h({
14
+ const R = h({
15
15
  name: "VftPopconfirm"
16
16
  }), W = /* @__PURE__ */ h({
17
- ...q,
17
+ ...R,
18
18
  props: {
19
19
  title: {},
20
20
  confirmButtonText: {},
@@ -30,77 +30,77 @@ const q = h({
30
30
  width: { default: 150 }
31
31
  },
32
32
  emits: ["confirm", "cancel"],
33
- setup(C, { emit: k }) {
34
- const l = C, s = k, o = R("popconfirm"), f = w(), m = () => {
35
- f.value?.onClose?.();
36
- }, v = i(() => ({
37
- width: P(l.width)
38
- })), V = (e) => {
39
- s("confirm", e), m();
40
- }, g = (e) => {
41
- s("cancel", e), m();
42
- }, z = i(
43
- () => l.confirmButtonText || "确认"
44
- ), N = i(() => l.cancelButtonText || "取消");
45
- return (e, x) => (d(), u(t(A), $({
33
+ setup(e, { emit: C }) {
34
+ const i = e, m = C, n = A("popconfirm"), p = N(), u = () => {
35
+ p.value?.onClose?.();
36
+ }, k = r(() => ({
37
+ width: I(i.width)
38
+ })), v = (o) => {
39
+ m("confirm", o), u();
40
+ }, V = (o) => {
41
+ m("cancel", o), u();
42
+ }, g = r(
43
+ () => i.confirmButtonText || "确认"
44
+ ), z = r(() => i.cancelButtonText || "取消");
45
+ return (o, q) => (y(), d(t(S), w({
46
46
  ref_key: "tooltipRef",
47
- ref: f,
47
+ ref: p,
48
48
  trigger: "click",
49
49
  effect: "light"
50
- }, e.$attrs, {
51
- "popper-class": `${t(o).namespace.value}-popover`,
52
- "popper-style": v.value,
50
+ }, o.$attrs, {
51
+ "popper-class": `${t(n).namespace.value}-popover`,
52
+ "popper-style": k.value,
53
53
  teleported: e.teleported,
54
54
  "fallback-placements": ["bottom", "top", "right", "left"],
55
55
  "hide-after": e.hideAfter,
56
56
  persistent: e.persistent
57
57
  }), {
58
- content: n(() => [
59
- p("div", {
60
- class: r(t(o).b())
58
+ content: l(() => [
59
+ a("div", {
60
+ class: c(t(n).b())
61
61
  }, [
62
- p("div", {
63
- class: r(t(o).e("main"))
62
+ a("div", {
63
+ class: c(t(n).e("main"))
64
64
  }, [
65
- !e.hideIcon && e.icon ? (d(), u(t(S), {
65
+ !e.hideIcon && e.icon ? (y(), d(t(P), {
66
66
  key: 0,
67
67
  icon: e.icon,
68
68
  size: 20,
69
- class: r(t(o).e("icon")),
70
- style: I({ color: e.iconColor })
71
- }, null, 8, ["icon", "class", "style"])) : y("", !0),
72
- a(" " + c(e.title), 1)
69
+ class: c(t(n).e("icon")),
70
+ style: b({ color: e.iconColor })
71
+ }, null, 8, ["icon", "class", "style"])) : B("", !0),
72
+ f(" " + s(e.title), 1)
73
73
  ], 2),
74
- p("div", {
75
- class: r(t(o).e("action"))
74
+ a("div", {
75
+ class: c(t(n).e("action"))
76
76
  }, [
77
- B(t(T), {
77
+ T(t(x), {
78
78
  size: "small",
79
79
  type: e.cancelButtonType === "text" ? "" : e.cancelButtonType,
80
80
  text: e.cancelButtonType === "text",
81
- onClick: g
81
+ onClick: V
82
82
  }, {
83
- default: n(() => [
84
- a(c(N.value), 1)
83
+ default: l(() => [
84
+ f(s(z.value), 1)
85
85
  ]),
86
86
  _: 1
87
87
  }, 8, ["type", "text"]),
88
- B(t(T), {
88
+ T(t(x), {
89
89
  size: "small",
90
90
  type: e.confirmButtonType === "text" ? "" : e.confirmButtonType,
91
91
  text: e.confirmButtonType === "text",
92
- onClick: V
92
+ onClick: v
93
93
  }, {
94
- default: n(() => [
95
- a(c(z.value), 1)
94
+ default: l(() => [
95
+ f(s(g.value), 1)
96
96
  ]),
97
97
  _: 1
98
98
  }, 8, ["type", "text"])
99
99
  ], 2)
100
100
  ], 2)
101
101
  ]),
102
- default: n(() => [
103
- e.$slots.reference ? b(e.$slots, "reference", { key: 0 }) : y("", !0)
102
+ default: l(() => [
103
+ o.$slots.reference ? $(o.$slots, "reference", { key: 0 }) : B("", !0)
104
104
  ]),
105
105
  _: 3
106
106
  }, 16, ["popper-class", "popper-style", "teleported", "hide-after", "persistent"]));
@@ -1,19 +1,19 @@
1
- import { defineComponent as m, computed as r, ref as S, unref as l, createBlock as R, openBlock as i, mergeProps as T, withCtx as s, renderSlot as f, createCommentVNode as d, createElementBlock as U, normalizeClass as V, toDisplayString as u, createTextVNode as $ } from "vue";
2
- import { VftTooltip as N } from "../tooltip/index.js";
3
- import { EVENT_CODE as p } from "../../constants/aria.js";
1
+ import { defineComponent as u, computed as o, ref as S, unref as l, createBlock as x, openBlock as f, mergeProps as R, withCtx as s, renderSlot as d, createCommentVNode as p, createElementBlock as T, normalizeClass as U, toDisplayString as c, createTextVNode as V } from "vue";
2
+ import { VftTooltip as $ } from "../tooltip/index.js";
3
+ import { EVENT_CODE as i } from "../../constants/aria.js";
4
4
  import "@vueuse/core";
5
5
  import "@vft/utils";
6
- import { addUnit as O } from "../../utils/helper.js";
6
+ import { addUnit as N } from "../../utils/helper.js";
7
7
  import "lodash-es";
8
8
  import "../form/index.js";
9
- import { useNamespace as K } from "../../hooks/use-namespace/index.js";
9
+ import { useNamespace as O } from "../../hooks/use-namespace/index.js";
10
10
  import "../../hooks/use-model-toggle/index.js";
11
11
  import "@popperjs/core";
12
12
  import "../../hooks/use-z-index/index.js";
13
- const D = "onUpdate:visible", H = m({
13
+ const K = "onUpdate:visible", D = u({
14
14
  name: "vft-popover"
15
- }), Y = /* @__PURE__ */ m({
16
- ...H,
15
+ }), X = /* @__PURE__ */ u({
16
+ ...D,
17
17
  props: {
18
18
  trigger: { default: "hover" },
19
19
  placement: { default: "bottom" },
@@ -37,7 +37,7 @@ const D = "onUpdate:visible", H = m({
37
37
  showArrow: { type: Boolean, default: !0 },
38
38
  persistent: { type: Boolean, default: !0 },
39
39
  appendTo: {},
40
- triggerKeys: { default: () => [p.enter, p.numpadEnter, p.space] }
40
+ triggerKeys: { default: () => [i.enter, i.numpadEnter, i.space] }
41
41
  },
42
42
  emits: [
43
43
  "update:visible",
@@ -46,30 +46,30 @@ const D = "onUpdate:visible", H = m({
46
46
  "after-enter",
47
47
  "after-leave"
48
48
  ],
49
- setup(t, { expose: b, emit: c }) {
50
- const o = c, a = K("popover"), v = r(() => [D]), n = S(), g = r(() => l(n)?.popperRef), h = r(() => [
49
+ setup(e, { expose: m, emit: b }) {
50
+ const t = b, r = O("popover"), v = o(() => [K]), n = S(), g = o(() => l(n)?.popperRef), h = o(() => [
51
51
  {
52
- width: O(t.width)
52
+ width: N(e.width)
53
53
  },
54
- t.popperStyle
55
- ]), y = r(() => [a.b(), t.popperClass, { [a.m("plain")]: !!t.content }]), w = r(() => t.transition === `${a.namespace.value}-fade-in-linear`), B = () => {
54
+ e.popperStyle
55
+ ]), y = o(() => [r.b(), e.popperClass, { [r.m("plain")]: !!e.content }]), w = o(() => e.transition === `${r.namespace.value}-fade-in-linear`), B = () => {
56
56
  n.value?.hide();
57
57
  }, k = () => {
58
- o("before-enter");
58
+ t("before-enter");
59
59
  }, C = () => {
60
- o("before-leave");
60
+ t("before-leave");
61
61
  }, A = () => {
62
- o("after-enter");
62
+ t("after-enter");
63
63
  }, E = () => {
64
- o("update:visible", !1), o("after-leave");
64
+ t("update:visible", !1), t("after-leave");
65
65
  };
66
- return b({
66
+ return m({
67
67
  popperRef: g,
68
68
  hide: B
69
- }), (e, L) => (i(), R(l(N), T({
69
+ }), (a, H) => (f(), x(l($), R({
70
70
  ref_key: "tooltipRef",
71
71
  ref: n
72
- }, e.$attrs, {
72
+ }, a.$attrs, {
73
73
  trigger: e.trigger,
74
74
  "trigger-keys": e.triggerKeys,
75
75
  placement: e.placement,
@@ -100,22 +100,22 @@ const D = "onUpdate:visible", H = m({
100
100
  onHide: E
101
101
  }), {
102
102
  content: s(() => [
103
- e.title ? (i(), U("div", {
103
+ e.title ? (f(), T("div", {
104
104
  key: 0,
105
- class: V(l(a).e("title")),
105
+ class: U(l(r).e("title")),
106
106
  role: "title"
107
- }, u(e.title), 3)) : d("", !0),
108
- f(e.$slots, "default", {}, () => [
109
- $(u(e.content), 1)
107
+ }, c(e.title), 3)) : p("", !0),
108
+ d(a.$slots, "default", {}, () => [
109
+ V(c(e.content), 1)
110
110
  ])
111
111
  ]),
112
112
  default: s(() => [
113
- e.$slots.reference ? f(e.$slots, "reference", { key: 0 }) : d("", !0)
113
+ a.$slots.reference ? d(a.$slots, "reference", { key: 0 }) : p("", !0)
114
114
  ]),
115
115
  _: 3
116
116
  }, 16, ["trigger", "trigger-keys", "placement", "disabled", "visible", "transition", "popper-options", "tabindex", "content", "offset", "show-after", "hide-after", "auto-close", "show-arrow", "aria-label", "effect", "enterable", "popper-class", "popper-style", "teleported", "append-to", "persistent", "gpu-acceleration", "onUpdate:visible"]));
117
117
  }
118
118
  });
119
119
  export {
120
- Y as default
120
+ X as default
121
121
  };