vft 0.0.97 → 0.0.98

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 (198) hide show
  1. package/es/components/affix/affix.vue2.js +25 -26
  2. package/es/components/alert/alert.vue2.js +17 -18
  3. package/es/components/backtop/backtop.vue2.js +14 -15
  4. package/es/components/button/button-group.vue2.js +14 -15
  5. package/es/components/button/button.vue2.js +24 -25
  6. package/es/components/card/card.vue2.js +10 -11
  7. package/es/components/check-tag/check-tag.vue2.js +10 -11
  8. package/es/components/checkbox/checkbox-button.vue2.js +13 -14
  9. package/es/components/checkbox/checkbox-group.vue2.js +15 -16
  10. package/es/components/checkbox/checkbox.vue2.js +24 -25
  11. package/es/components/clamp/clamp.vue2.js +16 -17
  12. package/es/components/clamp-toggle/clamp-toggle.vue2.js +13 -14
  13. package/es/components/col/col.vue2.js +20 -21
  14. package/es/components/collapse-transition/src/collapse-transition.vue2.js +12 -13
  15. package/es/components/collection/collection-item.vue2.js +6 -7
  16. package/es/components/collection/collection.vue2.js +5 -7
  17. package/es/components/color-picker/color-picker.vue2.js +45 -46
  18. package/es/components/color-picker/components/alpha-slider.vue2.js +20 -21
  19. package/es/components/config-provider/config-provider.vue2.js +22 -23
  20. package/es/components/container/aside.vue2.js +12 -13
  21. package/es/components/container/container.vue2.js +10 -11
  22. package/es/components/container/footer.vue2.js +11 -12
  23. package/es/components/container/header.vue2.js +10 -11
  24. package/es/components/container/main.vue2.js +12 -13
  25. package/es/components/context-menu/context-menu.vue2.js +18 -19
  26. package/es/components/date-picker/date-picker-com/basic-date-table.vue2.js +87 -87
  27. package/es/components/date-picker/date-picker-com/basic-month-table.vue2.js +1 -1
  28. package/es/components/date-picker/date-picker-com/basic-year-table.vue2.js +1 -1
  29. package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +2 -2
  30. package/es/components/date-picker/date-picker-com/panel-month-range.vue2.js +39 -40
  31. package/es/components/date-time-select/date-time-select.vue2.js +20 -21
  32. package/es/components/descriptions/description-item.vue2.js +9 -10
  33. package/es/components/descriptions/description.vue2.js +20 -21
  34. package/es/components/descriptions/descriptions-row.vue2.js +15 -16
  35. package/es/components/dialog/dialog-content.vue2.js +12 -13
  36. package/es/components/dialog/dialog.vue2.js +40 -41
  37. package/es/components/divider/divider.vue2.js +10 -11
  38. package/es/components/dropdown/dropdown.vue2.js +38 -39
  39. package/es/components/empty/empty.vue2.js +11 -12
  40. package/es/components/footer-layout/footer-layout.vue2.js +7 -8
  41. package/es/components/form/form-item.vue2.js +43 -44
  42. package/es/components/form/form.vue2.js +28 -29
  43. package/es/components/full-screen/full-screen.vue2.js +15 -16
  44. package/es/components/header-layout/header-layout.vue2.js +21 -22
  45. package/es/components/horizontal-menu/horizontal-menu.vue2.js +50 -51
  46. package/es/components/icon/icon.vue2.js +12 -13
  47. package/es/components/icon-text/icon-text.vue2.js +13 -14
  48. package/es/components/iframe-layout/iframe-layout.vue2.js +15 -16
  49. package/es/components/iframe-layout/iframe-page.vue2.js +12 -13
  50. package/es/components/image/image.vue2.js +25 -26
  51. package/es/components/image-viewer/image-viewer.vue2.js +54 -55
  52. package/es/components/index.js +90 -90
  53. package/es/components/link/link.vue2.js +11 -12
  54. package/es/components/list-cell/list-cell.vue2.js +21 -22
  55. package/es/components/logo/logo.vue2.js +12 -13
  56. package/es/components/md-comment/md-comment.vue2.js +12 -13
  57. package/es/components/md-container/md-container.vue2.js +33 -34
  58. package/es/components/md-vue-playground/md-vue-playground.vue2.js +18 -19
  59. package/es/components/menu/menu-item-group.vue2.js +13 -14
  60. package/es/components/menu/menu-item.vue2.js +12 -13
  61. package/es/components/menu/menu.vue2.js +44 -45
  62. package/es/components/menu/sub-menu.vue2.js +30 -31
  63. package/es/components/multiple-tabs/multiple-tabs.vue2.js +35 -38
  64. package/es/components/overlay/overlay.vue2.js +23 -24
  65. package/es/components/page-wrapper/page-wrapper.vue2.js +17 -18
  66. package/es/components/pagination/pagination.vue2.js +17 -18
  67. package/es/components/popconfirm/popconfirm.vue2.js +17 -18
  68. package/es/components/popover/popover.vue2.js +31 -32
  69. package/es/components/popper/arrow.vue2.js +15 -16
  70. package/es/components/popper/content.vue2.js +38 -39
  71. package/es/components/popper/popper.vue2.js +13 -14
  72. package/es/components/popper/trigger.vue2.js +11 -12
  73. package/es/components/qrcode/qrcode.vue2.js +21 -22
  74. package/es/components/radio/radio-button.vue2.js +16 -17
  75. package/es/components/radio/radio-group.vue2.js +16 -17
  76. package/es/components/radio/radio.vue2.js +15 -16
  77. package/es/components/result/result.vue2.js +12 -13
  78. package/es/components/router-view-content/router-view-content.vue2.js +10 -11
  79. package/es/components/row/row.vue2.js +17 -18
  80. package/es/components/scrollbar/scrollbar.vue2.js +30 -31
  81. package/es/components/search/search.vue2.js +39 -40
  82. package/es/components/side-menu/side-menu.vue2.js +43 -45
  83. package/es/components/skeleton/skeleton-item.vue2.js +9 -10
  84. package/es/components/skeleton/skeleton.vue2.js +11 -12
  85. package/es/components/switch/switch.vue2.js +27 -28
  86. package/es/components/table/table.vue2.js +36 -37
  87. package/es/components/tabs/tab-nav.vue2.js +28 -29
  88. package/es/components/tabs/tab-pane.vue2.js +23 -24
  89. package/es/components/tabs/tabs.vue2.js +30 -31
  90. package/es/components/time-picker/common/picker.vue2.js +48 -49
  91. package/es/components/time-select/time-select.vue2.js +28 -29
  92. package/es/components/tooltip/content.vue2.js +36 -37
  93. package/es/components/tooltip/tooltip.vue2.js +15 -16
  94. package/es/components/tooltip/trigger.vue2.js +37 -38
  95. package/es/components/verify-code/verify-code.vue2.js +19 -20
  96. package/es/constants/date.js +7 -7
  97. package/es/index.js +90 -90
  98. package/es/package.json.js +1 -1
  99. package/lib/components/affix/affix.vue2.cjs +1 -1
  100. package/lib/components/alert/alert.vue2.cjs +1 -1
  101. package/lib/components/backtop/backtop.vue2.cjs +1 -1
  102. package/lib/components/button/button-group.vue2.cjs +1 -1
  103. package/lib/components/button/button.vue2.cjs +1 -1
  104. package/lib/components/card/card.vue2.cjs +1 -1
  105. package/lib/components/check-tag/check-tag.vue2.cjs +1 -1
  106. package/lib/components/checkbox/checkbox-button.vue2.cjs +1 -1
  107. package/lib/components/checkbox/checkbox-group.vue2.cjs +1 -1
  108. package/lib/components/checkbox/checkbox.vue2.cjs +1 -1
  109. package/lib/components/clamp/clamp.vue2.cjs +1 -1
  110. package/lib/components/clamp-toggle/clamp-toggle.vue2.cjs +1 -1
  111. package/lib/components/col/col.vue2.cjs +1 -1
  112. package/lib/components/collapse-transition/src/collapse-transition.vue2.cjs +1 -1
  113. package/lib/components/collection/collection-item.vue2.cjs +1 -1
  114. package/lib/components/collection/collection.vue2.cjs +1 -1
  115. package/lib/components/color-picker/color-picker.vue2.cjs +1 -1
  116. package/lib/components/color-picker/components/alpha-slider.vue2.cjs +1 -1
  117. package/lib/components/config-provider/config-provider.vue2.cjs +1 -1
  118. package/lib/components/container/aside.vue2.cjs +1 -1
  119. package/lib/components/container/container.vue2.cjs +1 -1
  120. package/lib/components/container/footer.vue2.cjs +1 -1
  121. package/lib/components/container/header.vue2.cjs +1 -1
  122. package/lib/components/container/main.vue2.cjs +1 -1
  123. package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
  124. package/lib/components/date-picker/date-picker-com/basic-date-table.vue2.cjs +1 -1
  125. package/lib/components/date-picker/date-picker-com/basic-month-table.vue2.cjs +1 -1
  126. package/lib/components/date-picker/date-picker-com/basic-year-table.vue2.cjs +1 -1
  127. package/lib/components/date-picker/date-picker-com/panel-date-pick.vue2.cjs +1 -1
  128. package/lib/components/date-picker/date-picker-com/panel-month-range.vue2.cjs +1 -1
  129. package/lib/components/date-time-select/date-time-select.vue2.cjs +1 -1
  130. package/lib/components/descriptions/description-item.vue2.cjs +1 -1
  131. package/lib/components/descriptions/description.vue2.cjs +1 -1
  132. package/lib/components/descriptions/descriptions-row.vue2.cjs +1 -1
  133. package/lib/components/dialog/dialog-content.vue2.cjs +1 -1
  134. package/lib/components/dialog/dialog.vue2.cjs +1 -1
  135. package/lib/components/divider/divider.vue2.cjs +1 -1
  136. package/lib/components/dropdown/dropdown.vue2.cjs +1 -1
  137. package/lib/components/empty/empty.vue2.cjs +1 -1
  138. package/lib/components/footer-layout/footer-layout.vue2.cjs +1 -1
  139. package/lib/components/form/form-item.vue2.cjs +1 -1
  140. package/lib/components/form/form.vue2.cjs +1 -1
  141. package/lib/components/full-screen/full-screen.vue2.cjs +1 -1
  142. package/lib/components/header-layout/header-layout.vue2.cjs +1 -1
  143. package/lib/components/horizontal-menu/horizontal-menu.vue2.cjs +1 -1
  144. package/lib/components/icon/icon.vue2.cjs +1 -1
  145. package/lib/components/icon-text/icon-text.vue2.cjs +1 -1
  146. package/lib/components/iframe-layout/iframe-layout.vue2.cjs +1 -1
  147. package/lib/components/iframe-layout/iframe-page.vue2.cjs +1 -1
  148. package/lib/components/image/image.vue2.cjs +1 -1
  149. package/lib/components/image-viewer/image-viewer.vue2.cjs +1 -1
  150. package/lib/components/index.cjs +1 -1
  151. package/lib/components/link/link.vue2.cjs +1 -1
  152. package/lib/components/list-cell/list-cell.vue2.cjs +1 -1
  153. package/lib/components/logo/logo.vue2.cjs +1 -1
  154. package/lib/components/md-comment/md-comment.vue2.cjs +1 -1
  155. package/lib/components/md-container/md-container.vue2.cjs +1 -1
  156. package/lib/components/md-vue-playground/md-vue-playground.vue2.cjs +1 -1
  157. package/lib/components/menu/menu-item-group.vue2.cjs +1 -1
  158. package/lib/components/menu/menu-item.vue2.cjs +1 -1
  159. package/lib/components/menu/menu.vue2.cjs +1 -1
  160. package/lib/components/menu/sub-menu.vue2.cjs +1 -1
  161. package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
  162. package/lib/components/overlay/overlay.vue2.cjs +1 -1
  163. package/lib/components/page-wrapper/page-wrapper.vue2.cjs +1 -1
  164. package/lib/components/pagination/pagination.vue2.cjs +1 -1
  165. package/lib/components/popconfirm/popconfirm.vue2.cjs +1 -1
  166. package/lib/components/popover/popover.vue2.cjs +1 -1
  167. package/lib/components/popper/arrow.vue2.cjs +1 -1
  168. package/lib/components/popper/content.vue2.cjs +1 -1
  169. package/lib/components/popper/popper.vue2.cjs +1 -1
  170. package/lib/components/popper/trigger.vue2.cjs +1 -1
  171. package/lib/components/qrcode/qrcode.vue2.cjs +1 -1
  172. package/lib/components/radio/radio-button.vue2.cjs +1 -1
  173. package/lib/components/radio/radio-group.vue2.cjs +1 -1
  174. package/lib/components/radio/radio.vue2.cjs +1 -1
  175. package/lib/components/result/result.vue2.cjs +1 -1
  176. package/lib/components/router-view-content/router-view-content.vue2.cjs +1 -1
  177. package/lib/components/row/row.vue2.cjs +1 -1
  178. package/lib/components/scrollbar/scrollbar.vue2.cjs +1 -1
  179. package/lib/components/search/search.vue2.cjs +1 -1
  180. package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
  181. package/lib/components/skeleton/skeleton-item.vue2.cjs +1 -1
  182. package/lib/components/skeleton/skeleton.vue2.cjs +1 -1
  183. package/lib/components/switch/switch.vue2.cjs +1 -1
  184. package/lib/components/table/table.vue2.cjs +1 -1
  185. package/lib/components/tabs/tab-nav.vue2.cjs +1 -1
  186. package/lib/components/tabs/tab-pane.vue2.cjs +1 -1
  187. package/lib/components/tabs/tabs.vue2.cjs +1 -1
  188. package/lib/components/time-picker/common/picker.vue2.cjs +1 -1
  189. package/lib/components/time-select/time-select.vue2.cjs +1 -1
  190. package/lib/components/tooltip/content.vue2.cjs +1 -1
  191. package/lib/components/tooltip/tooltip.vue2.cjs +1 -1
  192. package/lib/components/tooltip/trigger.vue2.cjs +1 -1
  193. package/lib/components/verify-code/verify-code.vue2.cjs +1 -1
  194. package/lib/constants/date.cjs +1 -1
  195. package/lib/index.cjs +1 -1
  196. package/lib/package.json.cjs +1 -1
  197. package/package.json +8 -8
  198. package/web-types.json +1 -1
@@ -1,5 +1,5 @@
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
- import { useWindowSize as P, useElementBounding as T, useEventListener as q } from "@vueuse/core";
1
+ import { defineComponent as k, 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 y, normalizeStyle as T, createElementVNode as I, renderSlot as O } from "vue";
2
+ import { useWindowSize as P, useElementBounding as _, 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";
5
5
  import "lodash";
@@ -9,28 +9,27 @@ import { useNamespace as Y } from "../../hooks/use-namespace/index.js";
9
9
  import "@popperjs/core";
10
10
  import "../../hooks/use-z-index/index.js";
11
11
  import { affixProps as j, affixEmits as D } from "./affix.js";
12
- const b = "ElAffix", F = $({
13
- name: b
14
- }), se = /* @__PURE__ */ $({
15
- ...F,
12
+ const $ = "ElAffix", re = /* @__PURE__ */ k({
13
+ name: $,
14
+ __name: "affix",
16
15
  props: j,
17
16
  emits: D,
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,
17
+ setup(b, { expose: z, emit: m }) {
18
+ const e = b, p = Y("affix"), a = c(), f = c(), l = c(), { height: r } = P(), {
19
+ height: n,
21
20
  width: d,
22
21
  top: h,
23
22
  bottom: x,
24
23
  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` : "",
24
+ } = _(f, { windowScroll: !1 }), s = _(a), o = v(!1), g = v(0), u = v(0), C = E(() => ({
25
+ height: o.value ? `${n.value}px` : "",
27
26
  width: o.value ? `${d.value}px` : ""
28
- })), B = E(() => {
27
+ })), N = E(() => {
29
28
  if (!o.value)
30
29
  return {};
31
30
  const t = e.offset ? L(e.offset) : 0;
32
31
  return {
33
- height: `${s.value}px`,
32
+ height: `${n.value}px`,
34
33
  width: `${d.value}px`,
35
34
  top: e.position === "top" ? t : "",
36
35
  bottom: e.position === "bottom" ? t : "",
@@ -41,37 +40,37 @@ const b = "ElAffix", F = $({
41
40
  if (l.value)
42
41
  if (g.value = l.value instanceof Window ? document.documentElement.scrollTop : l.value.scrollTop || 0, e.position === "top")
43
42
  if (e.target) {
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;
43
+ const t = s.bottom.value - e.offset - n.value;
44
+ o.value = e.offset > h.value && s.bottom.value > 0, u.value = t < 0 ? t : 0;
46
45
  } else
47
46
  o.value = e.offset > h.value;
48
47
  else if (e.target) {
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;
48
+ const t = r.value - s.top.value - e.offset - n.value;
49
+ o.value = r.value - e.offset < x.value && r.value > s.top.value, u.value = t < 0 ? -t : 0;
51
50
  } else
52
51
  o.value = r.value - e.offset < x.value;
53
- }, k = () => {
52
+ }, B = () => {
54
53
  i(), m("scroll", {
55
54
  scrollTop: g.value,
56
55
  fixed: o.value
57
56
  });
58
57
  };
59
58
  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({
59
+ e.target ? (a.value = document.querySelector(e.target) ?? void 0, a.value || U($, `Target is not existed: ${e.target}`)) : a.value = document.documentElement, l.value = V(f.value, !0), i();
60
+ }), q(l, "scroll", B), W(w), z({
62
61
  /** @description update affix status */
63
62
  update: w,
64
63
  /** @description update rootRect info */
65
64
  updateRoot: i
66
- }), (t, G) => (A(), H("div", {
65
+ }), (t, F) => (A(), H("div", {
67
66
  ref_key: "root",
68
67
  ref: f,
69
- class: S(_(p).b()),
70
- style: y(N.value)
68
+ class: S(y(p).b()),
69
+ style: T(C.value)
71
70
  }, [
72
71
  I("div", {
73
- class: S({ [_(p).m("fixed")]: o.value }),
74
- style: y(B.value)
72
+ class: S({ [y(p).m("fixed")]: o.value }),
73
+ style: T(N.value)
75
74
  }, [
76
75
  O(t.$slots, "default")
77
76
  ], 6)
@@ -79,5 +78,5 @@ const b = "ElAffix", F = $({
79
78
  }
80
79
  });
81
80
  export {
82
- se as default
81
+ re as default
83
82
  };
@@ -1,4 +1,4 @@
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";
1
+ import { defineComponent as T, 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
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";
@@ -10,10 +10,9 @@ import "../../utils/ns-cover.js";
10
10
  const t = (
11
11
  /* hoist-static*/
12
12
  E("alert")
13
- ), D = C({
14
- name: t.b()
15
- }), L = /* @__PURE__ */ C({
16
- ...D,
13
+ ), K = /* @__PURE__ */ T({
14
+ name: t.b(),
15
+ __name: "alert",
17
16
  props: {
18
17
  title: { default: "" },
19
18
  description: { default: "" },
@@ -27,14 +26,14 @@ const t = (
27
26
  emits: {
28
27
  close: (n) => n instanceof MouseEvent
29
28
  },
30
- setup(n, { emit: h }) {
31
- const d = w(), f = g(!0), m = c(() => n.type), B = c(() => [
29
+ setup(n, { emit: C }) {
30
+ const d = w(), m = g(!0), p = c(() => n.type), h = c(() => [
32
31
  t.e("icon"),
33
32
  { [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);
33
+ ]), B = c(() => ({ [t.is("bold")]: n.description || d.default })), f = (e) => {
34
+ m.value = !1, C("close", e);
36
35
  };
37
- return (e, z) => (s(), r(I, {
36
+ return (e, D) => (s(), r(I, {
38
37
  name: o(t).b("fade")
39
38
  }, {
40
39
  default: N(() => [
@@ -42,17 +41,17 @@ const t = (
42
41
  class: l([o(t).b(), o(t).m(e.type), o(t).is("center", e.center), o(t).is(e.effect)]),
43
42
  role: "alert"
44
43
  }, [
45
- e.showIcon && m.value ? (s(), r(o(b), {
44
+ e.showIcon && p.value ? (s(), r(o(b), {
46
45
  key: 0,
47
- class: l(B.value),
48
- icon: m.value
46
+ class: l(h.value),
47
+ icon: p.value
49
48
  }, null, 8, ["class", "icon"])) : i("", !0),
50
49
  v("div", {
51
50
  class: l(o(t).e("content"))
52
51
  }, [
53
52
  e.title || e.$slots.title ? (s(), a("span", {
54
53
  key: 0,
55
- class: l([o(t).e("title"), T.value])
54
+ class: l([o(t).e("title"), B.value])
56
55
  }, [
57
56
  y(e.$slots, "title", {}, () => [
58
57
  k(u(e.title), 1)
@@ -70,17 +69,17 @@ const t = (
70
69
  e.closeText ? (s(), a("div", {
71
70
  key: 0,
72
71
  class: l([o(t).e("close-btn"), o(t).is("customed")]),
73
- onClick: p
72
+ onClick: f
74
73
  }, u(e.closeText), 3)) : (s(), r(o(b), {
75
74
  key: 1,
76
75
  class: l(o(t).e("close-btn")),
77
- onClick: p,
76
+ onClick: f,
78
77
  icon: e.CloseIcon
79
78
  }, null, 8, ["class", "icon"]))
80
79
  ], 64)) : i("", !0)
81
80
  ], 2)
82
81
  ], 2), [
83
- [$, f.value]
82
+ [$, m.value]
84
83
  ])
85
84
  ]),
86
85
  _: 3
@@ -88,5 +87,5 @@ const t = (
88
87
  }
89
88
  });
90
89
  export {
91
- L as default
90
+ K as default
92
91
  };
@@ -1,4 +1,4 @@
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";
1
+ import { defineComponent as k, 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";
@@ -78,20 +78,19 @@ import "../md-vue-playground/index.js";
78
78
  import "../md-code-demo/index.js";
79
79
  import "../md-code-tabs/index.js";
80
80
  import "../message/index.js";
81
- import { useNamespace as _ } from "../../hooks/use-namespace/index.js";
81
+ import { useNamespace as I } from "../../hooks/use-namespace/index.js";
82
82
  import "@popperjs/core";
83
83
  import "lodash";
84
84
  import "../../hooks/use-z-index/index.js";
85
85
  import "@vueuse/core";
86
86
  import "../../utils/ns-cover.js";
87
- import { useBackTop as I } from "./use-backtop.js";
87
+ import { useBackTop as N } from "./use-backtop.js";
88
88
  const r = (
89
89
  /* hoist-static*/
90
- _("backtop")
91
- ), N = c({
92
- name: r.b()
93
- }), co = /* @__PURE__ */ c({
94
- ...N,
90
+ I("backtop")
91
+ ), so = /* @__PURE__ */ k({
92
+ name: r.b(),
93
+ __name: "backtop",
95
94
  props: {
96
95
  visibilityHeight: { default: 200 },
97
96
  target: {},
@@ -101,18 +100,18 @@ const r = (
101
100
  scrollTargetKey: {}
102
101
  },
103
102
  emits: ["click"],
104
- setup(i, { emit: u }) {
105
- const f = g(), { handleClick: p, visible: d } = I(f.props, u, r.b()), b = a(() => ({
103
+ setup(i, { emit: c }) {
104
+ const u = g(), { handleClick: p, visible: f } = N(u.props, c, r.b()), d = a(() => ({
106
105
  right: `${i.right}px`,
107
106
  bottom: `${i.bottom}px`
108
107
  })), e = a(() => w(i.icon, "icon", { size: 25 }));
109
- return (k, n) => (m(), l(y, {
108
+ return (b, n) => (m(), l(y, {
110
109
  name: `${t(r).namespace}-fade-in`
111
110
  }, {
112
111
  default: C(() => [
113
- t(d) ? (m(), h("div", {
112
+ t(f) ? (m(), h("div", {
114
113
  key: 0,
115
- style: v(b.value),
114
+ style: v(d.value),
116
115
  class: x(t(r).b()),
117
116
  onClick: n[0] || (n[0] = T(
118
117
  //@ts-ignore
@@ -120,7 +119,7 @@ const r = (
120
119
  ["stop"]
121
120
  ))
122
121
  }, [
123
- z(k.$slots, "default", {}, () => {
122
+ z(b.$slots, "default", {}, () => {
124
123
  var o;
125
124
  return [
126
125
  (o = e.value) != null && o.icon ? (m(), l(t(S), B($({ key: 0 }, e.value)), null, 16)) : s("", !0)
@@ -133,5 +132,5 @@ const r = (
133
132
  }
134
133
  });
135
134
  export {
136
- co as default
135
+ so as default
137
136
  };
@@ -1,4 +1,4 @@
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";
1
+ import { defineComponent as n, provide as s, reactive as m, toRef as o, openBlock as i, createElementBlock as u, normalizeClass as a, unref as c, renderSlot as f } from "vue";
2
2
  import { useNamespace as l } from "../../hooks/use-namespace/index.js";
3
3
  import "@popperjs/core";
4
4
  import "lodash";
@@ -7,31 +7,30 @@ import "@vueuse/core";
7
7
  import "@vft/utils";
8
8
  import "../../utils/ns-cover.js";
9
9
  import { buttonGroupContextKey as d } from "./constants.js";
10
- const _ = o({
11
- name: "VtfButtonGroup"
12
- }), g = /* @__PURE__ */ o({
13
- ..._,
10
+ const G = /* @__PURE__ */ n({
11
+ name: "VtfButtonGroup",
12
+ __name: "button-group",
14
13
  props: {
15
14
  size: {},
16
15
  type: {}
17
16
  },
18
- setup(r) {
19
- const t = r;
17
+ setup(e) {
18
+ const t = e;
20
19
  s(
21
20
  d,
22
- i({
23
- size: e(t, "size"),
24
- type: e(t, "type")
21
+ m({
22
+ size: o(t, "size"),
23
+ type: o(t, "type")
25
24
  })
26
25
  );
27
- const p = l("button");
28
- return (n, y) => (m(), a("div", {
29
- class: u(`${c(p).b("group")}`)
26
+ const r = l("button");
27
+ return (p, _) => (i(), u("div", {
28
+ class: a(`${c(r).b("group")}`)
30
29
  }, [
31
- f(n.$slots, "default")
30
+ f(p.$slots, "default")
32
31
  ], 2));
33
32
  }
34
33
  });
35
34
  export {
36
- g as default
35
+ G as default
37
36
  };
@@ -1,21 +1,20 @@
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";
1
+ import { defineComponent as $, computed as I, openBlock as n, createBlock as a, resolveDynamicComponent as j, mergeProps as d, unref as e, withCtx as A, createElementBlock as y, Fragment as F, renderSlot as f, normalizeClass as k, normalizeProps as N, createCommentVNode as b } from "vue";
2
2
  import { VftIcon as g } from "../icon/index.js";
3
- import { useNamespace as N } from "../../hooks/use-namespace/index.js";
3
+ import { useNamespace as O } 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 O } from "@vft/utils";
8
+ import { singleAttrToObj as P } from "@vft/utils";
9
9
  import "../../utils/ns-cover.js";
10
- import { useButton as P } from "./use-button.js";
11
- import { useButtonCustomStyle as T } from "./button-custom.js";
10
+ import { useButton as T } from "./use-button.js";
11
+ import { useButtonCustomStyle as V } from "./button-custom.js";
12
12
  const o = (
13
13
  /* hoist-static*/
14
- N("button")
15
- ), V = B({
16
- name: o.b()
17
- }), U = /* @__PURE__ */ B({
18
- ...V,
14
+ O("button")
15
+ ), R = /* @__PURE__ */ $({
16
+ name: o.b(),
17
+ __name: "button",
19
18
  props: {
20
19
  tag: { type: [String, Object, Function], default: "button" },
21
20
  size: {},
@@ -38,11 +37,11 @@ const o = (
38
37
  block: { type: Boolean }
39
38
  },
40
39
  emits: ["click"],
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({
40
+ setup(B, { expose: C, emit: S }) {
41
+ const l = B, i = I(() => P(l.icon, "icon")), h = V(l), { _ref: s, _size: r, _type: p, _disabled: c, _props: z, shouldAddSpace: m, handleClick: v } = T(l, S);
42
+ return C({
44
43
  /** @description button html element */
45
- ref: i,
44
+ ref: s,
46
45
  /** @description button size */
47
46
  size: r,
48
47
  /** @description button type */
@@ -50,11 +49,11 @@ const o = (
50
49
  /** @description button disabled */
51
50
  disabled: c,
52
51
  /** @description whether adding space */
53
- shouldAddSpace: d
54
- }), (t, w) => (n(), a(_(t.tag), m({
52
+ shouldAddSpace: m
53
+ }), (t, w) => (n(), a(j(t.tag), d({
55
54
  ref_key: "_ref",
56
- ref: i
57
- }, e(v), {
55
+ ref: s
56
+ }, e(z), {
58
57
  class: [
59
58
  e(o).b(),
60
59
  e(o).m(e(p)),
@@ -69,23 +68,23 @@ const o = (
69
68
  e(o).is("has-bg", t.bg),
70
69
  e(o).is("block", t.block)
71
70
  ],
72
- style: e(z),
73
- onClick: e($)
71
+ style: e(h),
72
+ onClick: e(v)
74
73
  }), {
75
- default: j(() => {
74
+ default: A(() => {
76
75
  var u;
77
76
  return [
78
- t.loading ? (n(), y(A, { key: 0 }, [
77
+ t.loading ? (n(), y(F, { key: 0 }, [
79
78
  t.$slots.loading ? f(t.$slots, "loading", { key: 0 }) : (n(), a(e(g), {
80
79
  key: 1,
81
80
  rotate: "",
82
81
  class: k(e(o).is("loading")),
83
82
  icon: "ico-ep:loading"
84
83
  }, null, 8, ["class"]))
85
- ], 64)) : (u = s.value) != null && u.icon ? (n(), a(e(g), F(m({ key: 1 }, s.value)), null, 16)) : b("", !0),
84
+ ], 64)) : (u = i.value) != null && u.icon ? (n(), a(e(g), N(d({ key: 1 }, i.value)), null, 16)) : b("", !0),
86
85
  t.$slots.default ? (n(), y("span", {
87
86
  key: 2,
88
- class: k({ [e(o).em("text", "expand")]: e(d) })
87
+ class: k({ [e(o).em("text", "expand")]: e(m) })
89
88
  }, [
90
89
  f(t.$slots, "default")
91
90
  ], 2)) : b("", !0)
@@ -96,5 +95,5 @@ const o = (
96
95
  }
97
96
  });
98
97
  export {
99
- U as default
98
+ R as default
100
99
  };
@@ -1,5 +1,5 @@
1
- import { defineComponent as l, openBlock as t, createElementBlock as s, normalizeClass as r, unref as a, renderSlot as d, createTextVNode as m, toDisplayString as n, createCommentVNode as i, createElementVNode as p, normalizeStyle as u } from "vue";
2
- import { useNamespace as c } from "../../hooks/use-namespace/index.js";
1
+ import { defineComponent as l, openBlock as t, createElementBlock as s, normalizeClass as r, unref as a, renderSlot as d, createTextVNode as m, toDisplayString as n, createCommentVNode as i, createElementVNode as p, normalizeStyle as c } from "vue";
2
+ import { useNamespace as u } from "../../hooks/use-namespace/index.js";
3
3
  import "@popperjs/core";
4
4
  import "lodash";
5
5
  import "../../hooks/use-z-index/index.js";
@@ -8,18 +8,17 @@ import "@vft/utils";
8
8
  import "../../utils/ns-cover.js";
9
9
  const o = (
10
10
  /* hoist-static*/
11
- c("card")
12
- ), f = l({
13
- name: o.b()
14
- }), V = /* @__PURE__ */ l({
15
- ...f,
11
+ u("card")
12
+ ), C = /* @__PURE__ */ l({
13
+ name: o.b(),
14
+ __name: "card",
16
15
  props: {
17
16
  header: { default: "" },
18
17
  bodyStyle: { default: "" },
19
18
  shadow: { default: "always" }
20
19
  },
21
- setup(h) {
22
- return (e, y) => (t(), s("div", {
20
+ setup(f) {
21
+ return (e, h) => (t(), s("div", {
23
22
  class: r([a(o).b(), a(o).is(`${e.shadow}-shadow`)])
24
23
  }, [
25
24
  e.$slots.header || e.header ? (t(), s("div", {
@@ -32,7 +31,7 @@ const o = (
32
31
  ], 2)) : i("", !0),
33
32
  p("div", {
34
33
  class: r(a(o).e("body")),
35
- style: u(e.bodyStyle)
34
+ style: c(e.bodyStyle)
36
35
  }, [
37
36
  d(e.$slots, "default")
38
37
  ], 6)
@@ -40,5 +39,5 @@ const o = (
40
39
  }
41
40
  });
42
41
  export {
43
- V as default
42
+ C as default
44
43
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as o, computed as s, openBlock as m, createElementBlock as l, normalizeClass as d, renderSlot as p } from "vue";
1
+ import { defineComponent as r, computed as m, openBlock as s, createElementBlock as l, normalizeClass as p, renderSlot as d } from "vue";
2
2
  import { CHANGE_EVENT as i } from "../../constants/event.js";
3
3
  import { useNamespace as h } from "../../hooks/use-namespace/index.js";
4
4
  import "@popperjs/core";
@@ -10,26 +10,25 @@ import "../../utils/ns-cover.js";
10
10
  const c = (
11
11
  /* hoist-static*/
12
12
  h("check-tag")
13
- ), u = o({
14
- name: c.b()
15
- }), x = /* @__PURE__ */ o({
16
- ...u,
13
+ ), v = /* @__PURE__ */ r({
14
+ name: c.b(),
15
+ __name: "check-tag",
17
16
  props: {
18
17
  checked: { type: Boolean, default: !1 }
19
18
  },
20
19
  emits: ["update:checked", "change"],
21
20
  setup(e, { emit: t }) {
22
- const a = s(() => [c.b(), c.is("checked", e.checked)]), n = () => {
21
+ const o = m(() => [c.b(), c.is("checked", e.checked)]), a = () => {
23
22
  t(i, !e.checked), t("update:checked", !e.checked);
24
23
  };
25
- return (r, k) => (m(), l("span", {
26
- class: d(a.value),
27
- onClick: n
24
+ return (n, k) => (s(), l("span", {
25
+ class: p(o.value),
26
+ onClick: a
28
27
  }, [
29
- p(r.$slots, "default")
28
+ d(n.$slots, "default")
30
29
  ], 2));
31
30
  }
32
31
  });
33
32
  export {
34
- x as default
33
+ v as default
35
34
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as C, useSlots as x, inject as L, computed as v, openBlock as r, createElementBlock as d, normalizeClass as b, withDirectives as f, isRef as y, unref as t, vModelCheckbox as k, normalizeStyle as N, renderSlot as z, createTextVNode as D, toDisplayString as F, createCommentVNode as h } from "vue";
1
+ import { defineComponent as x, useSlots as $, inject as L, computed as v, openBlock as r, createElementBlock as d, normalizeClass as b, withDirectives as f, isRef as y, unref as t, vModelCheckbox as k, normalizeStyle as N, renderSlot as z, createTextVNode as h, toDisplayString as D, createCommentVNode as F } from "vue";
2
2
  import { useNamespace as j } from "../../hooks/use-namespace/index.js";
3
3
  import "@popperjs/core";
4
4
  import "lodash";
@@ -9,10 +9,9 @@ import "../../utils/ns-cover.js";
9
9
  import { checkboxGroupContextKey as w } from "./constants.js";
10
10
  import "../form/index.js";
11
11
  import { useCheckbox as E } from "./composables/use-checkbox.js";
12
- const K = ["name", "tabindex", "disabled", "true-value", "false-value"], U = ["name", "tabindex", "disabled", "value"], M = C({
13
- name: "VftCheckboxButton"
14
- }), X = /* @__PURE__ */ C({
15
- ...M,
12
+ const K = ["name", "tabindex", "disabled", "true-value", "false-value"], U = ["name", "tabindex", "disabled", "value"], W = /* @__PURE__ */ x({
13
+ name: "VftCheckboxButton",
14
+ __name: "checkbox-button",
16
15
  props: {
17
16
  modelValue: { type: [Number, String, Boolean] },
18
17
  label: { type: [Number, String, Boolean, Object] },
@@ -30,15 +29,15 @@ const K = ["name", "tabindex", "disabled", "true-value", "false-value"], U = ["n
30
29
  validateEvent: { type: Boolean }
31
30
  },
32
31
  emits: ["update:modelValue", "change"],
33
- setup(B) {
34
- const g = B, S = x(), {
32
+ setup(C) {
33
+ const B = C, g = $(), {
35
34
  isFocused: u,
36
35
  isChecked: p,
37
36
  isDisabled: m,
38
- checkboxButtonSize: V,
37
+ checkboxButtonSize: S,
39
38
  model: a,
40
39
  handleChange: i
41
- } = E(g, S), s = L(w, void 0), n = j("checkbox"), $ = v(() => {
40
+ } = E(B, g), s = L(w, void 0), n = j("checkbox"), V = v(() => {
42
41
  var e, o;
43
42
  const l = ((e = s == null ? void 0 : s.fill) == null ? void 0 : e.value) ?? "";
44
43
  return {
@@ -49,7 +48,7 @@ const K = ["name", "tabindex", "disabled", "true-value", "false-value"], U = ["n
49
48
  };
50
49
  }), c = v(() => [
51
50
  n.b("button"),
52
- n.bm("button", V.value),
51
+ n.bm("button", S.value),
53
52
  n.is("disabled", m.value),
54
53
  n.is("checked", p.value),
55
54
  n.is("focus", u.value)
@@ -92,15 +91,15 @@ const K = ["name", "tabindex", "disabled", "true-value", "false-value"], U = ["n
92
91
  l.$slots.default || l.label ? (r(), d("span", {
93
92
  key: 2,
94
93
  class: b(t(n).be("button", "inner")),
95
- style: N(t(p) ? $.value : void 0)
94
+ style: N(t(p) ? V.value : void 0)
96
95
  }, [
97
96
  z(l.$slots, "default", {}, () => [
98
- D(F(l.label), 1)
97
+ h(D(l.label), 1)
99
98
  ])
100
- ], 6)) : h("", !0)
99
+ ], 6)) : F("", !0)
101
100
  ], 2));
102
101
  }
103
102
  });
104
103
  export {
105
- X as default
104
+ W as default
106
105
  };
@@ -1,8 +1,8 @@
1
- import { defineComponent as n, computed as u, provide as f, toRefs as b, watch as g, openBlock as h, createBlock as v, resolveDynamicComponent as x, unref as a, normalizeClass as C, withCtx as k, renderSlot as y, nextTick as E } from "vue";
1
+ import { defineComponent as s, computed as u, provide as f, toRefs as b, watch as g, openBlock as h, createBlock as v, resolveDynamicComponent as x, unref as a, normalizeClass as k, withCtx as C, renderSlot as y, nextTick as E } from "vue";
2
2
  import { pick as I } from "lodash";
3
- import { UPDATE_MODEL_EVENT as _ } from "../../constants/event.js";
3
+ import { UPDATE_MODEL_EVENT as V } from "../../constants/event.js";
4
4
  import "@vft/utils";
5
- import { debugWarn as V } from "../../utils/error.js";
5
+ import { debugWarn as _ } from "../../utils/error.js";
6
6
  import "@vueuse/core";
7
7
  import "../../utils/ns-cover.js";
8
8
  import { useNamespace as B } from "../../hooks/use-namespace/index.js";
@@ -11,10 +11,9 @@ import "../../hooks/use-z-index/index.js";
11
11
  import "../form/index.js";
12
12
  import { checkboxGroupContextKey as w } from "./constants.js";
13
13
  import { useFormItem as z, useFormItemInputId as D } from "../form/hooks/use-form-item.js";
14
- const F = n({
15
- name: "VftCheckboxGroup"
16
- }), j = /* @__PURE__ */ n({
17
- ...F,
14
+ const $ = /* @__PURE__ */ s({
15
+ name: "VftCheckboxGroup",
16
+ __name: "checkbox-group",
18
17
  props: {
19
18
  modelValue: { default: () => [] },
20
19
  disabled: { type: Boolean },
@@ -28,11 +27,11 @@ const F = n({
28
27
  validateEvent: { type: Boolean, default: !0 }
29
28
  },
30
29
  emits: ["update:modelValue", "change"],
31
- setup(d, { emit: l }) {
32
- const o = d, p = B("checkbox"), { formItem: t } = z(), { inputId: s, isLabeledByFormItem: r } = D(o, {
30
+ setup(n, { emit: l }) {
31
+ const o = n, p = B("checkbox"), { formItem: t } = z(), { inputId: d, isLabeledByFormItem: r } = D(o, {
33
32
  formItemContext: t
34
33
  }), i = async (e) => {
35
- l(_, e), await E(), l("change", e);
34
+ l(V, e), await E(), l("change", e);
36
35
  }, c = u({
37
36
  get() {
38
37
  return o.modelValue;
@@ -56,18 +55,18 @@ const F = n({
56
55
  }), g(
57
56
  () => o.modelValue,
58
57
  () => {
59
- o.validateEvent && (t == null || t.validate("change").catch((e) => V(e)));
58
+ o.validateEvent && (t == null || t.validate("change").catch((e) => _(e)));
60
59
  }
61
- ), (e, T) => {
60
+ ), (e, F) => {
62
61
  var m;
63
62
  return h(), v(x(e.tag), {
64
- id: a(s),
65
- class: C(a(p).b("group")),
63
+ id: a(d),
64
+ class: k(a(p).b("group")),
66
65
  role: "group",
67
66
  "aria-label": a(r) ? void 0 : e.label || "checkbox-group",
68
67
  "aria-labelledby": a(r) ? (m = a(t)) == null ? void 0 : m.labelId : void 0
69
68
  }, {
70
- default: k(() => [
69
+ default: C(() => [
71
70
  y(e.$slots, "default")
72
71
  ]),
73
72
  _: 3
@@ -76,5 +75,5 @@ const F = n({
76
75
  }
77
76
  });
78
77
  export {
79
- j as default
78
+ $ as default
80
79
  };