vft 0.0.90 → 0.0.91

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 (232) hide show
  1. package/es/comp-resolver.js +20 -29
  2. package/es/components/affix/affix.vue2.js +34 -34
  3. package/es/components/alert/alert.vue2.js +44 -44
  4. package/es/components/avatar/avatar.vue2.js +28 -28
  5. package/es/components/backtop/backtop.vue2.js +11 -11
  6. package/es/components/button/button-group.vue2.js +8 -8
  7. package/es/components/button/button.vue2.js +39 -39
  8. package/es/components/card/card.vue2.js +20 -20
  9. package/es/components/check-tag/check-tag.vue2.js +14 -14
  10. package/es/components/checkbox/checkbox-button.vue2.js +61 -61
  11. package/es/components/checkbox/checkbox-group.vue2.js +27 -27
  12. package/es/components/checkbox/checkbox.vue2.js +81 -81
  13. package/es/components/clamp/clamp.vue2.js +59 -59
  14. package/es/components/clamp-toggle/clamp-toggle.vue2.js +25 -25
  15. package/es/components/col/col.vue2.js +33 -33
  16. package/es/components/color-picker/color-picker.vue2.js +126 -126
  17. package/es/components/color-picker/components/alpha-slider.vue2.js +12 -12
  18. package/es/components/config-provider/config-provider.vue2.js +29 -29
  19. package/es/components/container/aside.vue2.js +9 -9
  20. package/es/components/container/container.vue2.js +11 -11
  21. package/es/components/container/footer.vue2.js +8 -8
  22. package/es/components/container/header.vue2.js +9 -9
  23. package/es/components/context-menu/context-menu.vue2.js +29 -29
  24. package/es/components/date-picker/date-picker-com/basic-date-table.vue2.js +53 -53
  25. package/es/components/date-picker/date-picker-com/basic-month-table.vue2.js +19 -19
  26. package/es/components/date-picker/date-picker-com/basic-year-table.vue2.js +32 -32
  27. package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +168 -168
  28. package/es/components/date-picker/date-picker-com/panel-date-range.vue2.js +89 -89
  29. package/es/components/date-picker/date-picker-com/panel-month-range.vue2.js +38 -38
  30. package/es/components/descriptions/description-item.vue2.js +16 -16
  31. package/es/components/descriptions/description.vue2.js +54 -54
  32. package/es/components/descriptions/descriptions-row.vue2.js +24 -24
  33. package/es/components/dialog/dialog-content.vue2.js +30 -30
  34. package/es/components/dialog/dialog.vue2.js +64 -64
  35. package/es/components/divider/divider.vue2.js +20 -20
  36. package/es/components/dropdown/dropdown.vue.js +2 -127
  37. package/es/components/dropdown/dropdown.vue2.js +234 -181
  38. package/es/components/dropdown/index.js +10 -17
  39. package/es/components/dropdown/tokens.js +1 -1
  40. package/es/components/empty/empty.vue2.js +27 -27
  41. package/es/components/exception/exception.vue2.js +19 -19
  42. package/es/components/footer-layout/footer-layout.vue2.js +1 -1
  43. package/es/components/form/form-item.vue2.js +77 -77
  44. package/es/components/form/form.vue2.js +37 -37
  45. package/es/components/full-screen/full-screen.vue2.js +26 -15
  46. package/es/components/header-layout/header-layout.vue2.js +27 -27
  47. package/es/components/horizontal-menu/horizontal-menu.vue2.js +43 -43
  48. package/es/components/icon/icon.vue2.js +24 -24
  49. package/es/components/icon-text/icon-text.vue2.js +27 -27
  50. package/es/components/iframe-layout/iframe-layout.vue2.js +18 -18
  51. package/es/components/iframe-layout/iframe-page.vue2.js +11 -11
  52. package/es/components/image/image.vue2.js +73 -73
  53. package/es/components/image-viewer/image-viewer.vue2.js +109 -109
  54. package/es/components/index.js +145 -152
  55. package/es/components/input/input.vue2.js +175 -175
  56. package/es/components/link/link.vue2.js +27 -27
  57. package/es/components/list-cell/list-cell.vue2.js +8 -8
  58. package/es/components/logo/logo.vue2.js +27 -27
  59. package/es/components/md-container/md-container.vue2.js +1 -1
  60. package/es/components/md-vue-playground/md-vue-playground.vue2.js +16 -16
  61. package/es/components/menu/menu-item-group.vue2.js +15 -15
  62. package/es/components/menu/menu-item.vue2.js +56 -56
  63. package/es/components/menu/menu.vue2.js +20 -20
  64. package/es/components/menu/sub-menu.vue2.js +16 -16
  65. package/es/components/message/message.vue2.js +81 -81
  66. package/es/components/multiple-tabs/multiple-tabs.vue2.js +12 -12
  67. package/es/components/multiple-tabs/tab-content.vue2.js +16 -16
  68. package/es/components/overlay/overlay.vue2.js +14 -14
  69. package/es/components/page-wrapper/page-wrapper.vue2.js +12 -12
  70. package/es/components/pagination/components/jumper.vue2.js +22 -22
  71. package/es/components/pagination/components/next.vue2.js +12 -12
  72. package/es/components/pagination/components/pager.vue2.js +75 -75
  73. package/es/components/pagination/components/prev.vue2.js +13 -13
  74. package/es/components/pagination/components/sizes.vue2.js +11 -11
  75. package/es/components/pagination/components/total.vue2.js +8 -8
  76. package/es/components/pagination/pagination.vue2.js +28 -28
  77. package/es/components/popconfirm/popconfirm.vue2.js +50 -50
  78. package/es/components/popover/popover.vue2.js +44 -44
  79. package/es/components/popper/arrow.vue2.js +2 -2
  80. package/es/components/popper/content.vue2.js +34 -34
  81. package/es/components/popper/popper.vue2.js +5 -5
  82. package/es/components/popper/trigger.vue2.js +48 -48
  83. package/es/components/qrcode/qrcode.vue2.js +35 -35
  84. package/es/components/radio/radio-button.vue2.js +28 -28
  85. package/es/components/radio/radio-group.vue2.js +26 -26
  86. package/es/components/radio/radio.vue2.js +44 -44
  87. package/es/components/result/result.vue2.js +10 -10
  88. package/es/components/router-view-content/router-view-content.vue2.js +20 -20
  89. package/es/components/row/row.vue2.js +19 -19
  90. package/es/components/scrollbar/bar.vue2.js +19 -19
  91. package/es/components/scrollbar/scrollbar.vue2.js +67 -67
  92. package/es/components/scrollbar/thumb.vue2.js +41 -41
  93. package/es/components/search/search.vue2.js +65 -65
  94. package/es/components/side-menu/side-menu.vue2.js +36 -36
  95. package/es/components/skeleton/skeleton-item.vue2.js +13 -13
  96. package/es/components/skeleton/skeleton.vue2.js +19 -19
  97. package/es/components/switch/switch.vue2.js +128 -128
  98. package/es/components/table/table.vue2.js +70 -70
  99. package/es/components/tabs/tab-bar.vue2.js +15 -15
  100. package/es/components/tabs/tab-nav.vue2.js +33 -33
  101. package/es/components/tabs/tab-pane.vue2.js +21 -21
  102. package/es/components/tabs/tabs.vue2.js +64 -66
  103. package/es/components/tag/tag.vue2.js +7 -7
  104. package/es/components/time-picker/common/picker.vue2.js +14 -14
  105. package/es/components/time-picker/time-picker-com/basic-time-spinner.vue2.js +60 -60
  106. package/es/components/time-picker/time-picker-com/panel-time-pick.vue2.js +30 -30
  107. package/es/components/time-picker/time-picker-com/panel-time-range.vue2.js +57 -57
  108. package/es/components/time-select/time-select.vue2.js +29 -29
  109. package/es/components/tooltip/constants.js +1 -1
  110. package/es/components/tooltip/content.vue2.js +73 -73
  111. package/es/components/tooltip/tooltip.vue2.js +91 -91
  112. package/es/components/tooltip/trigger.vue2.js +33 -33
  113. package/es/components/verify-code/verify-code.vue2.js +25 -25
  114. package/es/index.js +165 -172
  115. package/es/package.json.js +1 -1
  116. package/lib/comp-resolver.cjs +1 -1
  117. package/lib/components/affix/affix.vue2.cjs +1 -1
  118. package/lib/components/alert/alert.vue2.cjs +1 -1
  119. package/lib/components/avatar/avatar.vue2.cjs +1 -1
  120. package/lib/components/backtop/backtop.vue2.cjs +1 -1
  121. package/lib/components/button/button-group.vue2.cjs +1 -1
  122. package/lib/components/button/button.vue2.cjs +1 -1
  123. package/lib/components/card/card.vue2.cjs +1 -1
  124. package/lib/components/check-tag/check-tag.vue2.cjs +1 -1
  125. package/lib/components/checkbox/checkbox-button.vue2.cjs +1 -1
  126. package/lib/components/checkbox/checkbox-group.vue2.cjs +1 -1
  127. package/lib/components/checkbox/checkbox.vue2.cjs +1 -1
  128. package/lib/components/clamp/clamp.vue2.cjs +1 -1
  129. package/lib/components/clamp-toggle/clamp-toggle.vue2.cjs +1 -1
  130. package/lib/components/col/col.vue2.cjs +1 -1
  131. package/lib/components/color-picker/color-picker.vue2.cjs +1 -1
  132. package/lib/components/color-picker/components/alpha-slider.vue2.cjs +1 -1
  133. package/lib/components/config-provider/config-provider.vue2.cjs +1 -1
  134. package/lib/components/container/aside.vue2.cjs +1 -1
  135. package/lib/components/container/container.vue2.cjs +1 -1
  136. package/lib/components/container/footer.vue2.cjs +1 -1
  137. package/lib/components/container/header.vue2.cjs +1 -1
  138. package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
  139. package/lib/components/date-picker/date-picker-com/basic-date-table.vue2.cjs +1 -1
  140. package/lib/components/date-picker/date-picker-com/basic-month-table.vue2.cjs +1 -1
  141. package/lib/components/date-picker/date-picker-com/basic-year-table.vue2.cjs +1 -1
  142. package/lib/components/date-picker/date-picker-com/panel-date-pick.vue2.cjs +1 -1
  143. package/lib/components/date-picker/date-picker-com/panel-date-range.vue2.cjs +1 -1
  144. package/lib/components/date-picker/date-picker-com/panel-month-range.vue2.cjs +1 -1
  145. package/lib/components/descriptions/description-item.vue2.cjs +1 -1
  146. package/lib/components/descriptions/description.vue2.cjs +1 -1
  147. package/lib/components/descriptions/descriptions-row.vue2.cjs +1 -1
  148. package/lib/components/dialog/dialog-content.vue2.cjs +1 -1
  149. package/lib/components/dialog/dialog.vue2.cjs +1 -1
  150. package/lib/components/divider/divider.vue2.cjs +1 -1
  151. package/lib/components/dropdown/dropdown.vue.cjs +1 -1
  152. package/lib/components/dropdown/dropdown.vue2.cjs +1 -1
  153. package/lib/components/dropdown/index.cjs +1 -1
  154. package/lib/components/dropdown/tokens.cjs +1 -1
  155. package/lib/components/empty/empty.vue2.cjs +1 -1
  156. package/lib/components/exception/exception.vue2.cjs +1 -1
  157. package/lib/components/footer-layout/footer-layout.vue2.cjs +1 -1
  158. package/lib/components/form/form-item.vue2.cjs +1 -1
  159. package/lib/components/form/form.vue2.cjs +1 -1
  160. package/lib/components/full-screen/full-screen.vue2.cjs +1 -1
  161. package/lib/components/header-layout/header-layout.vue2.cjs +1 -1
  162. package/lib/components/horizontal-menu/horizontal-menu.vue2.cjs +1 -1
  163. package/lib/components/icon/icon.vue2.cjs +1 -1
  164. package/lib/components/icon-text/icon-text.vue2.cjs +1 -1
  165. package/lib/components/iframe-layout/iframe-layout.vue2.cjs +1 -1
  166. package/lib/components/iframe-layout/iframe-page.vue2.cjs +1 -1
  167. package/lib/components/image/image.vue2.cjs +1 -1
  168. package/lib/components/image-viewer/image-viewer.vue2.cjs +1 -1
  169. package/lib/components/index.cjs +1 -1
  170. package/lib/components/input/input.vue2.cjs +1 -1
  171. package/lib/components/link/link.vue2.cjs +1 -1
  172. package/lib/components/list-cell/list-cell.vue2.cjs +1 -1
  173. package/lib/components/logo/logo.vue2.cjs +1 -1
  174. package/lib/components/md-container/md-container.vue2.cjs +1 -1
  175. package/lib/components/md-vue-playground/md-vue-playground.vue2.cjs +1 -1
  176. package/lib/components/menu/menu-item-group.vue2.cjs +1 -1
  177. package/lib/components/menu/menu-item.vue2.cjs +1 -1
  178. package/lib/components/menu/menu.vue2.cjs +1 -1
  179. package/lib/components/menu/sub-menu.vue2.cjs +1 -1
  180. package/lib/components/message/message.vue2.cjs +1 -1
  181. package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
  182. package/lib/components/multiple-tabs/tab-content.vue2.cjs +1 -1
  183. package/lib/components/overlay/overlay.vue2.cjs +1 -1
  184. package/lib/components/page-wrapper/page-wrapper.vue2.cjs +1 -1
  185. package/lib/components/pagination/components/jumper.vue2.cjs +1 -1
  186. package/lib/components/pagination/components/next.vue2.cjs +1 -1
  187. package/lib/components/pagination/components/pager.vue2.cjs +1 -1
  188. package/lib/components/pagination/components/prev.vue2.cjs +1 -1
  189. package/lib/components/pagination/components/sizes.vue2.cjs +1 -1
  190. package/lib/components/pagination/components/total.vue2.cjs +1 -1
  191. package/lib/components/pagination/pagination.vue2.cjs +1 -1
  192. package/lib/components/popconfirm/popconfirm.vue2.cjs +1 -1
  193. package/lib/components/popover/popover.vue2.cjs +1 -1
  194. package/lib/components/popper/arrow.vue2.cjs +1 -1
  195. package/lib/components/popper/content.vue2.cjs +1 -1
  196. package/lib/components/popper/trigger.vue2.cjs +1 -1
  197. package/lib/components/qrcode/qrcode.vue2.cjs +1 -1
  198. package/lib/components/radio/radio-button.vue2.cjs +1 -1
  199. package/lib/components/radio/radio-group.vue2.cjs +1 -1
  200. package/lib/components/radio/radio.vue2.cjs +1 -1
  201. package/lib/components/result/result.vue2.cjs +1 -1
  202. package/lib/components/router-view-content/router-view-content.vue2.cjs +1 -1
  203. package/lib/components/row/row.vue2.cjs +1 -1
  204. package/lib/components/scrollbar/bar.vue2.cjs +1 -1
  205. package/lib/components/scrollbar/scrollbar.vue2.cjs +1 -1
  206. package/lib/components/scrollbar/thumb.vue2.cjs +1 -1
  207. package/lib/components/search/search.vue2.cjs +1 -1
  208. package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
  209. package/lib/components/skeleton/skeleton-item.vue2.cjs +1 -1
  210. package/lib/components/skeleton/skeleton.vue2.cjs +1 -1
  211. package/lib/components/switch/switch.vue2.cjs +1 -1
  212. package/lib/components/table/table.vue2.cjs +1 -1
  213. package/lib/components/tabs/tab-bar.vue2.cjs +1 -1
  214. package/lib/components/tabs/tab-nav.vue2.cjs +1 -1
  215. package/lib/components/tabs/tab-pane.vue2.cjs +1 -1
  216. package/lib/components/tabs/tabs.vue2.cjs +1 -1
  217. package/lib/components/tag/tag.vue2.cjs +1 -1
  218. package/lib/components/time-picker/common/picker.vue2.cjs +1 -1
  219. package/lib/components/time-picker/time-picker-com/basic-time-spinner.vue2.cjs +1 -1
  220. package/lib/components/time-picker/time-picker-com/panel-time-pick.vue2.cjs +1 -1
  221. package/lib/components/time-picker/time-picker-com/panel-time-range.vue2.cjs +1 -1
  222. package/lib/components/time-select/time-select.vue2.cjs +1 -1
  223. package/lib/components/tooltip/constants.cjs +1 -1
  224. package/lib/components/tooltip/content.vue2.cjs +1 -1
  225. package/lib/components/tooltip/tooltip.vue2.cjs +1 -1
  226. package/lib/components/tooltip/trigger.vue2.cjs +1 -1
  227. package/lib/components/verify-code/verify-code.vue2.cjs +1 -1
  228. package/lib/index.cjs +1 -1
  229. package/lib/package.json.cjs +1 -1
  230. package/package.json +6 -6
  231. package/web-types.json +1 -1
  232. package/theme-style/vft-back-top.css +0 -1
@@ -3,26 +3,26 @@ function m(t) {
3
3
  return t.replace(/([A-Z])/g, " $1").trim().split(" ").join("-").toLowerCase();
4
4
  }
5
5
  function i(t, e) {
6
- const { importStyle: r, ssr: s } = e, o = e.compName + "/theme-style", n = e.compName + "/es/components";
7
- if (r === "sass")
8
- return s ? [`${o}/src/base.scss`, `${o}/src/${t}.scss`] : [`${n}/base/style/index`, `${n}/${t}/style/index`];
9
- if (r === !0 || r === "css")
10
- return s ? [`${o}/base.css`, `${o}/el-${t}.css`] : [`${n}/base/style/css`, `${n}/${t}/style/css`];
6
+ const { importStyle: o, ssr: s } = e, r = e.compName + "/theme-style", n = e.compName + "/es/components";
7
+ if (o === "sass")
8
+ return s ? [`${r}/src/base.scss`, `${r}/src/${t}.scss`] : [`${n}/base/style/index`, `${n}/${t}/style/index`];
9
+ if (o === !0 || o === "css")
10
+ return s ? [`${r}/base.css`, `${r}/el-${t}.css`] : [`${n}/base/style/css`, `${n}/${t}/style/css`];
11
11
  }
12
12
  function c(t, e) {
13
13
  if (e.exclude && t.match(e.exclude))
14
14
  return;
15
- const r = new RegExp(`^${l(e.compName)}[A-Z]`);
16
- if (!t.match(r))
15
+ const o = new RegExp(`^${l(e.compName)}[A-Z]`);
16
+ if (!t.match(o))
17
17
  return;
18
- const s = m(t.slice(e.compName.length)), { ssr: o } = e;
18
+ const s = m(t.slice(e.compName.length)), { ssr: r } = e;
19
19
  return {
20
20
  name: t,
21
- from: `${e.compName}/${o ? "lib" : "es"}`,
21
+ from: `${e.compName}/${r ? "lib" : "es"}`,
22
22
  sideEffects: i(s, e)
23
23
  };
24
24
  }
25
- function f(t, e) {
25
+ function a(t, e) {
26
26
  if (!e.directives)
27
27
  return;
28
28
  const s = {
@@ -32,28 +32,19 @@ function f(t, e) {
32
32
  }[t];
33
33
  if (!s)
34
34
  return;
35
- const { ssr: o } = e;
35
+ const { ssr: r } = e;
36
36
  return {
37
37
  name: s.importName,
38
- from: `${e.compName}/${o ? "lib" : "es"}`,
38
+ from: `${e.compName}/${r ? "lib" : "es"}`,
39
39
  sideEffects: i(s.styleName, e)
40
40
  };
41
41
  }
42
- const u = [
43
- "VftAutoResizer",
44
- "VftOnlyChild",
45
- "VftDropdownCollection",
46
- "VftDropdownCollectionItem",
47
- "VftDropdownItemImpl",
48
- "VftFocusGroupCollection",
49
- "VftRovingFocusItem",
50
- "VftRovingFocusCollectionItem",
51
- "VftRovingFocusGroup",
52
- "VftRovingFocusGroupImpl"
42
+ const f = [
43
+ "VftAutoResizer"
53
44
  ];
54
- function a(t = {}) {
45
+ function p(t = {}) {
55
46
  let e;
56
- async function r() {
47
+ async function o() {
57
48
  return e || (e = {
58
49
  compName: "vft",
59
50
  ssr: !1,
@@ -68,16 +59,16 @@ function a(t = {}) {
68
59
  {
69
60
  type: "component",
70
61
  resolve: async (s) => {
71
- const o = await r();
72
- return [...o.noStylesComponents, ...u].includes(s) ? c(s, { ...o, importStyle: !1 }) : c(s, o);
62
+ const r = await o();
63
+ return [...r.noStylesComponents, ...f].includes(s) ? c(s, { ...r, importStyle: !1 }) : c(s, r);
73
64
  }
74
65
  },
75
66
  {
76
67
  type: "directive",
77
- resolve: async (s) => f(s, await r())
68
+ resolve: async (s) => a(s, await o())
78
69
  }
79
70
  ];
80
71
  }
81
72
  export {
82
- a as CompResolver
73
+ p as CompResolver
83
74
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as $, shallowRef as m, ref as v, computed as S, watch as M, onMounted as R, watchEffect as W, openBlock as A, createElementBlock as H, normalizeClass as _, unref as f, normalizeStyle as y, createElementVNode as I, renderSlot as O } from "vue";
1
+ import { defineComponent as $, shallowRef as c, ref as v, computed as E, watch as M, onMounted as R, watchEffect as W, openBlock as A, createElementBlock as H, normalizeClass as S, unref as _, normalizeStyle as y, createElementVNode as I, renderSlot as O } from "vue";
2
2
  import { useWindowSize as P, useElementBounding as T, useEventListener as q } from "@vueuse/core";
3
3
  import { addUnit as L } from "@vft/utils";
4
4
  import { throwError as U } from "../../utils/error.js";
@@ -11,67 +11,67 @@ import "../../hooks/use-z-index/index.js";
11
11
  import { affixProps as j, affixEmits as D } from "./affix.js";
12
12
  const b = "ElAffix", F = $({
13
13
  name: b
14
- }), ne = /* @__PURE__ */ $({
14
+ }), se = /* @__PURE__ */ $({
15
15
  ...F,
16
16
  props: j,
17
17
  emits: D,
18
- setup(z, { expose: C, emit: p }) {
19
- const e = z, d = Y("affix"), a = m(), i = m(), l = m(), { height: r } = P(), {
20
- height: n,
21
- width: h,
22
- top: g,
18
+ setup(z, { expose: C, emit: m }) {
19
+ const e = z, p = Y("affix"), a = c(), f = c(), l = c(), { height: r } = P(), {
20
+ height: s,
21
+ width: d,
22
+ top: h,
23
23
  bottom: x,
24
- update: c
25
- } = T(i, { windowScroll: !1 }), s = T(a), o = v(!1), w = v(0), u = v(0), N = S(() => ({
26
- height: o.value ? `${n.value}px` : "",
27
- width: o.value ? `${h.value}px` : ""
28
- })), B = S(() => {
24
+ update: i
25
+ } = T(f, { windowScroll: !1 }), n = T(a), o = v(!1), g = v(0), u = v(0), N = E(() => ({
26
+ height: o.value ? `${s.value}px` : "",
27
+ width: o.value ? `${d.value}px` : ""
28
+ })), B = E(() => {
29
29
  if (!o.value)
30
30
  return {};
31
31
  const t = e.offset ? L(e.offset) : 0;
32
32
  return {
33
- height: `${n.value}px`,
34
- width: `${h.value}px`,
33
+ height: `${s.value}px`,
34
+ width: `${d.value}px`,
35
35
  top: e.position === "top" ? t : "",
36
36
  bottom: e.position === "bottom" ? t : "",
37
37
  transform: u.value ? `translateY(${u.value}px)` : "",
38
38
  zIndex: e.zIndex
39
39
  };
40
- }), E = () => {
40
+ }), w = () => {
41
41
  if (l.value)
42
- if (w.value = l.value instanceof Window ? document.documentElement.scrollTop : l.value.scrollTop || 0, e.position === "top")
42
+ if (g.value = l.value instanceof Window ? document.documentElement.scrollTop : l.value.scrollTop || 0, e.position === "top")
43
43
  if (e.target) {
44
- const t = s.bottom.value - e.offset - n.value;
45
- o.value = e.offset > g.value && s.bottom.value > 0, u.value = t < 0 ? t : 0;
44
+ const t = n.bottom.value - e.offset - s.value;
45
+ o.value = e.offset > h.value && n.bottom.value > 0, u.value = t < 0 ? t : 0;
46
46
  } else
47
- o.value = e.offset > g.value;
47
+ o.value = e.offset > h.value;
48
48
  else if (e.target) {
49
- const t = r.value - s.top.value - e.offset - n.value;
50
- o.value = r.value - e.offset < x.value && r.value > s.top.value, u.value = t < 0 ? -t : 0;
49
+ const t = r.value - n.top.value - e.offset - s.value;
50
+ o.value = r.value - e.offset < x.value && r.value > n.top.value, u.value = t < 0 ? -t : 0;
51
51
  } else
52
52
  o.value = r.value - e.offset < x.value;
53
53
  }, k = () => {
54
- c(), p("scroll", {
55
- scrollTop: w.value,
54
+ i(), m("scroll", {
55
+ scrollTop: g.value,
56
56
  fixed: o.value
57
57
  });
58
58
  };
59
- return M(o, (t) => p("change", t)), R(() => {
60
- e.target ? (a.value = document.querySelector(e.target) ?? void 0, a.value || U(b, `Target is not existed: ${e.target}`)) : a.value = document.documentElement, l.value = V(i.value, !0), c();
61
- }), q(l, "scroll", k), W(E), C({
59
+ return M(o, (t) => m("change", t)), R(() => {
60
+ e.target ? (a.value = document.querySelector(e.target) ?? void 0, a.value || U(b, `Target is not existed: ${e.target}`)) : a.value = document.documentElement, l.value = V(f.value, !0), i();
61
+ }), q(l, "scroll", k), W(w), C({
62
62
  /** @description update affix status */
63
- update: E,
63
+ update: w,
64
64
  /** @description update rootRect info */
65
- updateRoot: c
65
+ updateRoot: i
66
66
  }), (t, G) => (A(), H("div", {
67
67
  ref_key: "root",
68
- ref: i,
69
- class: _(f(d).b()),
70
- style: y(f(N))
68
+ ref: f,
69
+ class: S(_(p).b()),
70
+ style: y(N.value)
71
71
  }, [
72
72
  I("div", {
73
- class: _({ [f(d).m("fixed")]: o.value }),
74
- style: y(f(B))
73
+ class: S({ [_(p).m("fixed")]: o.value }),
74
+ style: y(B.value)
75
75
  }, [
76
76
  O(t.$slots, "default")
77
77
  ], 6)
@@ -79,5 +79,5 @@ const b = "ElAffix", F = $({
79
79
  }
80
80
  });
81
81
  export {
82
- ne as default
82
+ se as default
83
83
  };
@@ -1,5 +1,5 @@
1
- import { defineComponent as h, useSlots as w, ref as g, computed as a, openBlock as s, createBlock as r, Transition as I, unref as e, withCtx as N, withDirectives as S, createElementVNode as k, normalizeClass as n, createCommentVNode as c, createElementBlock as i, renderSlot as b, createTextVNode as v, toDisplayString as u, Fragment as V, vShow as $ } from "vue";
2
- import { VftIcon as C } from "../icon/index.js";
1
+ import { defineComponent as C, useSlots as w, ref as g, computed as c, openBlock as s, createBlock as r, Transition as I, unref as o, withCtx as N, withDirectives as S, createElementVNode as v, normalizeClass as l, createCommentVNode as i, createElementBlock as a, renderSlot as y, createTextVNode as k, toDisplayString as u, Fragment as V, vShow as $ } from "vue";
2
+ import { VftIcon as b } from "../icon/index.js";
3
3
  import { useNamespace as E } from "../../hooks/use-namespace/index.js";
4
4
  import "@popperjs/core";
5
5
  import "lodash";
@@ -7,13 +7,13 @@ import "../../hooks/use-z-index/index.js";
7
7
  import "@vueuse/core";
8
8
  import "@vft/utils";
9
9
  import "../../utils/ns-cover.js";
10
- const o = (
10
+ const t = (
11
11
  /* hoist-static*/
12
12
  E("alert")
13
- ), x = h({
14
- name: o.b()
15
- }), K = /* @__PURE__ */ h({
16
- ...x,
13
+ ), D = C({
14
+ name: t.b()
15
+ }), L = /* @__PURE__ */ C({
16
+ ...D,
17
17
  props: {
18
18
  title: { default: "" },
19
19
  description: { default: "" },
@@ -25,59 +25,59 @@ const o = (
25
25
  effect: { default: "light" }
26
26
  },
27
27
  emits: {
28
- close: (t) => t instanceof MouseEvent
28
+ close: (n) => n instanceof MouseEvent
29
29
  },
30
- setup(t, { emit: p }) {
31
- const d = w(), f = g(!0), m = a(() => t.type), B = a(() => [
32
- o.e("icon"),
33
- { [o.is("big")]: !!t.description || !!d.default }
34
- ]), T = a(() => ({ [o.is("bold")]: t.description || d.default })), y = (l) => {
35
- f.value = !1, p("close", l);
30
+ setup(n, { emit: h }) {
31
+ const d = w(), f = g(!0), m = c(() => n.type), B = c(() => [
32
+ t.e("icon"),
33
+ { [t.is("big")]: !!n.description || !!d.default }
34
+ ]), T = c(() => ({ [t.is("bold")]: n.description || d.default })), p = (e) => {
35
+ f.value = !1, h("close", e);
36
36
  };
37
- return (l, D) => (s(), r(I, {
38
- name: e(o).b("fade")
37
+ return (e, z) => (s(), r(I, {
38
+ name: o(t).b("fade")
39
39
  }, {
40
40
  default: N(() => [
41
- S(k("div", {
42
- class: n([e(o).b(), e(o).m(t.type), e(o).is("center", t.center), e(o).is(t.effect)]),
41
+ S(v("div", {
42
+ class: l([o(t).b(), o(t).m(e.type), o(t).is("center", e.center), o(t).is(e.effect)]),
43
43
  role: "alert"
44
44
  }, [
45
- t.showIcon && e(m) ? (s(), r(e(C), {
45
+ e.showIcon && m.value ? (s(), r(o(b), {
46
46
  key: 0,
47
- class: n(e(B)),
48
- icon: e(m)
49
- }, null, 8, ["class", "icon"])) : c("", !0),
50
- k("div", {
51
- class: n(e(o).e("content"))
47
+ class: l(B.value),
48
+ icon: m.value
49
+ }, null, 8, ["class", "icon"])) : i("", !0),
50
+ v("div", {
51
+ class: l(o(t).e("content"))
52
52
  }, [
53
- t.title || l.$slots.title ? (s(), i("span", {
53
+ e.title || e.$slots.title ? (s(), a("span", {
54
54
  key: 0,
55
- class: n([e(o).e("title"), e(T)])
55
+ class: l([o(t).e("title"), T.value])
56
56
  }, [
57
- b(l.$slots, "title", {}, () => [
58
- v(u(t.title), 1)
57
+ y(e.$slots, "title", {}, () => [
58
+ k(u(e.title), 1)
59
59
  ])
60
- ], 2)) : c("", !0),
61
- l.$slots.default || t.description ? (s(), i("p", {
60
+ ], 2)) : i("", !0),
61
+ e.$slots.default || e.description ? (s(), a("p", {
62
62
  key: 1,
63
- class: n(e(o).e("description"))
63
+ class: l(o(t).e("description"))
64
64
  }, [
65
- b(l.$slots, "default", {}, () => [
66
- v(u(t.description), 1)
65
+ y(e.$slots, "default", {}, () => [
66
+ k(u(e.description), 1)
67
67
  ])
68
- ], 2)) : c("", !0),
69
- t.closable ? (s(), i(V, { key: 2 }, [
70
- t.closeText ? (s(), i("div", {
68
+ ], 2)) : i("", !0),
69
+ e.closable ? (s(), a(V, { key: 2 }, [
70
+ e.closeText ? (s(), a("div", {
71
71
  key: 0,
72
- class: n([e(o).e("close-btn"), e(o).is("customed")]),
73
- onClick: y
74
- }, u(t.closeText), 3)) : (s(), r(e(C), {
72
+ class: l([o(t).e("close-btn"), o(t).is("customed")]),
73
+ onClick: p
74
+ }, u(e.closeText), 3)) : (s(), r(o(b), {
75
75
  key: 1,
76
- class: n(e(o).e("close-btn")),
77
- onClick: y,
78
- icon: l.CloseIcon
76
+ class: l(o(t).e("close-btn")),
77
+ onClick: p,
78
+ icon: e.CloseIcon
79
79
  }, null, 8, ["class", "icon"]))
80
- ], 64)) : c("", !0)
80
+ ], 64)) : i("", !0)
81
81
  ], 2)
82
82
  ], 2), [
83
83
  [$, f.value]
@@ -88,5 +88,5 @@ const o = (
88
88
  }
89
89
  });
90
90
  export {
91
- K as default
91
+ L as default
92
92
  };
@@ -1,51 +1,51 @@
1
- import { defineComponent as z, ref as h, computed as s, watch as v, openBlock as n, createElementBlock as k, normalizeClass as y, unref as r, normalizeStyle as g, createBlock as c, normalizeProps as B, mergeProps as E, renderSlot as S } from "vue";
2
- import { isString as b, isNumber as C, addUnit as V, singleAttrToObj as I } from "@vft/utils";
3
- import { VftIcon as L } from "../icon/index.js";
4
- import { VftImage as N } from "../image/index.js";
5
- import { useNamespace as P } from "../../hooks/use-namespace/index.js";
1
+ import { defineComponent as v, ref as z, computed as s, watch as h, openBlock as i, createElementBlock as k, normalizeClass as p, normalizeStyle as y, createBlock as n, unref as c, normalizeProps as g, mergeProps as B, renderSlot as E } from "vue";
2
+ import { isString as S, isNumber as b, addUnit as C, singleAttrToObj as V } from "@vft/utils";
3
+ import { VftIcon as I } from "../icon/index.js";
4
+ import { VftImage as L } from "../image/index.js";
5
+ import { useNamespace as N } from "../../hooks/use-namespace/index.js";
6
6
  import "@popperjs/core";
7
7
  import "lodash";
8
8
  import "../../hooks/use-z-index/index.js";
9
9
  import "@vueuse/core";
10
10
  import "../../utils/ns-cover.js";
11
- const G = /* @__PURE__ */ z({
11
+ const G = /* @__PURE__ */ v({
12
12
  __name: "avatar",
13
13
  props: {
14
14
  size: { default: "" },
15
15
  shape: { default: "circle" },
16
- icon: null,
17
- src: null,
18
- alt: null,
16
+ icon: {},
17
+ src: {},
18
+ alt: {},
19
19
  fit: { default: "cover" }
20
20
  },
21
21
  emits: ["error"],
22
- setup(e, { emit: m }) {
23
- const a = P("avatar"), i = h(!1), u = s(() => {
24
- const t = [a.b()];
25
- return b(e.size) && t.push(a.m(e.size)), !e.src && e.icon && t.push(a.m("icon")), e.shape && t.push(a.m(e.shape)), t;
26
- }), f = s(() => C(e.size) ? a.cssVarBlock({
27
- size: V(e.size) || ""
28
- }) : void 0), l = s(() => I(e.icon, "icon", { size: e.size }));
29
- v(
30
- () => e.src,
31
- () => i.value = !1
22
+ setup(r, { emit: m }) {
23
+ const t = N("avatar"), a = z(!1), u = s(() => {
24
+ const e = [t.b()];
25
+ return S(r.size) && e.push(t.m(r.size)), !r.src && r.icon && e.push(t.m("icon")), r.shape && e.push(t.m(r.shape)), e;
26
+ }), f = s(() => b(r.size) ? t.cssVarBlock({
27
+ size: C(r.size) || ""
28
+ }) : void 0), o = s(() => V(r.icon, "icon", { size: r.size }));
29
+ h(
30
+ () => r.src,
31
+ () => a.value = !1
32
32
  );
33
- function d(t) {
34
- i.value = !0, m("error", t);
33
+ function d(e) {
34
+ a.value = !0, m("error", e);
35
35
  }
36
- return (t, j) => {
37
- var o;
38
- return n(), k("span", {
39
- class: y(r(u)),
40
- style: g(r(f))
36
+ return (e, P) => {
37
+ var l;
38
+ return i(), k("span", {
39
+ class: p(u.value),
40
+ style: y(f.value)
41
41
  }, [
42
- e.src && !i.value ? (n(), c(r(N), {
42
+ e.src && !a.value ? (i(), n(c(L), {
43
43
  key: 0,
44
44
  src: e.src,
45
45
  alt: e.alt,
46
46
  fit: e.fit,
47
47
  onError: d
48
- }, null, 8, ["src", "alt", "fit"])) : (o = r(l)) != null && o.icon ? (n(), c(r(L), B(E({ key: 1 }, r(l))), null, 16)) : S(t.$slots, "default", { key: 2 })
48
+ }, null, 8, ["src", "alt", "fit"])) : (l = o.value) != null && l.icon ? (i(), n(c(I), g(B({ key: 1 }, o.value)), null, 16)) : E(e.$slots, "default", { key: 2 })
49
49
  ], 6);
50
50
  };
51
51
  }
@@ -1,4 +1,4 @@
1
- import { defineComponent as c, getCurrentInstance as g, computed as l, openBlock as m, createBlock as a, Transition as y, unref as t, withCtx as C, createElementBlock as h, normalizeStyle as x, normalizeClass as T, withModifiers as z, renderSlot as B, normalizeProps as $, mergeProps as v, createCommentVNode as s } from "vue";
1
+ import { defineComponent as c, getCurrentInstance as g, computed as a, openBlock as m, createBlock as l, Transition as y, unref as t, withCtx as C, createElementBlock as h, normalizeStyle as v, normalizeClass as x, withModifiers as T, renderSlot as z, normalizeProps as B, mergeProps as $, createCommentVNode as s } from "vue";
2
2
  import { singleAttrToObj as w } from "@vft/utils";
3
3
  import "../divider/index.js";
4
4
  import { VftIcon as S } from "../icon/index.js";
@@ -94,36 +94,36 @@ const r = (
94
94
  ...N,
95
95
  props: {
96
96
  visibilityHeight: { default: 200 },
97
- target: null,
97
+ target: {},
98
98
  right: { default: 40 },
99
99
  bottom: { default: 40 },
100
100
  icon: { default: "ico-bx:arrow-to-top" },
101
- scrollTargetKey: null
101
+ scrollTargetKey: {}
102
102
  },
103
103
  emits: ["click"],
104
104
  setup(i, { emit: u }) {
105
- const f = g(), { handleClick: p, visible: d } = I(f.props, u, r.b()), b = l(() => ({
105
+ const f = g(), { handleClick: p, visible: d } = I(f.props, u, r.b()), b = a(() => ({
106
106
  right: `${i.right}px`,
107
107
  bottom: `${i.bottom}px`
108
- })), e = l(() => w(i.icon, "icon", { size: 25 }));
109
- return (k, n) => (m(), a(y, {
108
+ })), e = a(() => w(i.icon, "icon", { size: 25 }));
109
+ return (k, n) => (m(), l(y, {
110
110
  name: `${t(r).namespace}-fade-in`
111
111
  }, {
112
112
  default: C(() => [
113
113
  t(d) ? (m(), h("div", {
114
114
  key: 0,
115
- style: x(t(b)),
116
- class: T(t(r).b()),
117
- onClick: n[0] || (n[0] = z(
115
+ style: v(b.value),
116
+ class: x(t(r).b()),
117
+ onClick: n[0] || (n[0] = T(
118
118
  //@ts-ignore
119
119
  (...o) => t(p) && t(p)(...o),
120
120
  ["stop"]
121
121
  ))
122
122
  }, [
123
- B(k.$slots, "default", {}, () => {
123
+ z(k.$slots, "default", {}, () => {
124
124
  var o;
125
125
  return [
126
- (o = t(e)) != null && o.icon ? (m(), a(t(S), $(v({ key: 0 }, t(e))), null, 16)) : s("", !0)
126
+ (o = e.value) != null && o.icon ? (m(), l(t(S), B($({ key: 0 }, e.value)), null, 16)) : s("", !0)
127
127
  ];
128
128
  })
129
129
  ], 6)) : s("", !0)
@@ -1,5 +1,5 @@
1
- import { defineComponent as o, provide as s, reactive as i, toRef as e, openBlock as m, createElementBlock as u, normalizeClass as l, unref as a, renderSlot as c } from "vue";
2
- import { useNamespace as f } from "../../hooks/use-namespace/index.js";
1
+ import { defineComponent as o, provide as s, reactive as i, toRef as e, openBlock as m, createElementBlock as a, normalizeClass as u, unref as c, renderSlot as f } from "vue";
2
+ import { useNamespace as l } from "../../hooks/use-namespace/index.js";
3
3
  import "@popperjs/core";
4
4
  import "lodash";
5
5
  import "../../hooks/use-z-index/index.js";
@@ -12,8 +12,8 @@ const _ = o({
12
12
  }), g = /* @__PURE__ */ o({
13
13
  ..._,
14
14
  props: {
15
- size: null,
16
- type: null
15
+ size: {},
16
+ type: {}
17
17
  },
18
18
  setup(r) {
19
19
  const t = r;
@@ -24,11 +24,11 @@ const _ = o({
24
24
  type: e(t, "type")
25
25
  })
26
26
  );
27
- const p = f("button");
28
- return (n, y) => (m(), u("div", {
29
- class: l(`${a(p).b("group")}`)
27
+ const p = l("button");
28
+ return (n, y) => (m(), a("div", {
29
+ class: u(`${c(p).b("group")}`)
30
30
  }, [
31
- c(n.$slots, "default")
31
+ f(n.$slots, "default")
32
32
  ], 2));
33
33
  }
34
34
  });
@@ -1,30 +1,30 @@
1
- import { defineComponent as C, computed as I, openBlock as l, createBlock as i, resolveDynamicComponent as v, mergeProps as y, unref as e, withCtx as A, createElementBlock as f, Fragment as N, renderSlot as k, normalizeClass as b, normalizeProps as P, createCommentVNode as g } from "vue";
2
- import { VftIcon as B } from "../icon/index.js";
3
- import { useNamespace as T } from "../../hooks/use-namespace/index.js";
1
+ import { defineComponent as B, computed as I, openBlock as n, createBlock as a, resolveDynamicComponent as _, mergeProps as m, unref as e, withCtx as j, createElementBlock as y, Fragment as A, renderSlot as f, normalizeClass as k, normalizeProps as F, createCommentVNode as b } from "vue";
2
+ import { VftIcon as g } from "../icon/index.js";
3
+ import { useNamespace as N } from "../../hooks/use-namespace/index.js";
4
4
  import "@popperjs/core";
5
5
  import "lodash";
6
6
  import "../../hooks/use-z-index/index.js";
7
7
  import "@vueuse/core";
8
- import { singleAttrToObj as V } from "@vft/utils";
8
+ import { singleAttrToObj as O } from "@vft/utils";
9
9
  import "../../utils/ns-cover.js";
10
- import { useButton as j } from "./use-button.js";
11
- import { useButtonCustomStyle as w } from "./button-custom.js";
10
+ import { useButton as P } from "./use-button.js";
11
+ import { useButtonCustomStyle as T } from "./button-custom.js";
12
12
  const o = (
13
13
  /* hoist-static*/
14
- T("button")
15
- ), D = C({
14
+ N("button")
15
+ ), V = B({
16
16
  name: o.b()
17
- }), U = /* @__PURE__ */ C({
18
- ...D,
17
+ }), U = /* @__PURE__ */ B({
18
+ ...V,
19
19
  props: {
20
- tag: { default: "button" },
21
- size: null,
20
+ tag: { type: [String, Object, Function], default: "button" },
21
+ size: {},
22
22
  disabled: { type: Boolean },
23
- type: null,
24
- icon: null,
23
+ type: {},
24
+ icon: {},
25
25
  nativeType: { default: "button" },
26
26
  loading: { type: Boolean },
27
- loadingIcon: null,
27
+ loadingIcon: {},
28
28
  plain: { type: Boolean },
29
29
  text: { type: Boolean },
30
30
  link: { type: Boolean },
@@ -32,34 +32,34 @@ const o = (
32
32
  autofocus: { type: Boolean },
33
33
  round: { type: Boolean },
34
34
  circle: { type: Boolean },
35
- color: null,
35
+ color: {},
36
36
  dark: { type: Boolean },
37
37
  autoInsertSpace: { type: Boolean },
38
38
  block: { type: Boolean }
39
39
  },
40
40
  emits: ["click"],
41
- setup(t, { expose: h, emit: z }) {
42
- const a = t, s = I(() => V(a.icon, "icon")), S = w(a), { _ref: c, _size: r, _type: u, _disabled: d, _props: x, shouldAddSpace: m, handleClick: $ } = j(a, z);
43
- return h({
41
+ setup(C, { expose: S, emit: h }) {
42
+ const l = C, s = I(() => O(l.icon, "icon")), z = T(l), { _ref: i, _size: r, _type: p, _disabled: c, _props: v, shouldAddSpace: d, handleClick: $ } = P(l, h);
43
+ return S({
44
44
  /** @description button html element */
45
- ref: c,
45
+ ref: i,
46
46
  /** @description button size */
47
47
  size: r,
48
48
  /** @description button type */
49
- type: u,
49
+ type: p,
50
50
  /** @description button disabled */
51
- disabled: d,
51
+ disabled: c,
52
52
  /** @description whether adding space */
53
- shouldAddSpace: m
54
- }), (n, E) => (l(), i(v(t.tag), y({
53
+ shouldAddSpace: d
54
+ }), (t, w) => (n(), a(_(t.tag), m({
55
55
  ref_key: "_ref",
56
- ref: c
57
- }, e(x), {
56
+ ref: i
57
+ }, e(v), {
58
58
  class: [
59
59
  e(o).b(),
60
- e(o).m(e(u)),
60
+ e(o).m(e(p)),
61
61
  e(o).m(e(r)),
62
- e(o).is("disabled", e(d)),
62
+ e(o).is("disabled", e(c)),
63
63
  e(o).is("loading", t.loading),
64
64
  e(o).is("plain", t.plain),
65
65
  e(o).is("round", t.round),
@@ -69,26 +69,26 @@ const o = (
69
69
  e(o).is("has-bg", t.bg),
70
70
  e(o).is("block", t.block)
71
71
  ],
72
- style: e(S),
72
+ style: e(z),
73
73
  onClick: e($)
74
74
  }), {
75
- default: A(() => {
76
- var p;
75
+ default: j(() => {
76
+ var u;
77
77
  return [
78
- t.loading ? (l(), f(N, { key: 0 }, [
79
- n.$slots.loading ? k(n.$slots, "loading", { key: 0 }) : (l(), i(e(B), {
78
+ t.loading ? (n(), y(A, { key: 0 }, [
79
+ t.$slots.loading ? f(t.$slots, "loading", { key: 0 }) : (n(), a(e(g), {
80
80
  key: 1,
81
81
  rotate: "",
82
- class: b(e(o).is("loading")),
82
+ class: k(e(o).is("loading")),
83
83
  icon: "ico-ep:loading"
84
84
  }, null, 8, ["class"]))
85
- ], 64)) : (p = e(s)) != null && p.icon ? (l(), i(e(B), P(y({ key: 1 }, e(s))), null, 16)) : g("", !0),
86
- n.$slots.default ? (l(), f("span", {
85
+ ], 64)) : (u = s.value) != null && u.icon ? (n(), a(e(g), F(m({ key: 1 }, s.value)), null, 16)) : b("", !0),
86
+ t.$slots.default ? (n(), y("span", {
87
87
  key: 2,
88
- class: b({ [e(o).em("text", "expand")]: e(m) })
88
+ class: k({ [e(o).em("text", "expand")]: e(d) })
89
89
  }, [
90
- k(n.$slots, "default")
91
- ], 2)) : g("", !0)
90
+ f(t.$slots, "default")
91
+ ], 2)) : b("", !0)
92
92
  ];
93
93
  }),
94
94
  _: 3