vft 0.0.97 → 0.0.99

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 (194) 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/link/link.vue2.js +11 -12
  53. package/es/components/list-cell/list-cell.vue2.js +21 -22
  54. package/es/components/logo/logo.vue2.js +12 -13
  55. package/es/components/md-comment/md-comment.vue2.js +12 -13
  56. package/es/components/md-container/md-container.vue2.js +33 -34
  57. package/es/components/md-vue-playground/md-vue-playground.vue2.js +18 -19
  58. package/es/components/menu/menu-item-group.vue2.js +13 -14
  59. package/es/components/menu/menu-item.vue2.js +12 -13
  60. package/es/components/menu/menu.vue2.js +44 -45
  61. package/es/components/menu/sub-menu.vue2.js +30 -31
  62. package/es/components/multiple-tabs/multiple-tabs.vue2.js +35 -38
  63. package/es/components/overlay/overlay.vue2.js +23 -24
  64. package/es/components/page-wrapper/page-wrapper.vue2.js +17 -18
  65. package/es/components/pagination/pagination.vue2.js +17 -18
  66. package/es/components/popconfirm/popconfirm.vue2.js +17 -18
  67. package/es/components/popover/popover.vue2.js +31 -32
  68. package/es/components/popper/arrow.vue2.js +15 -16
  69. package/es/components/popper/content.vue2.js +38 -39
  70. package/es/components/popper/popper.vue2.js +13 -14
  71. package/es/components/popper/trigger.vue2.js +11 -12
  72. package/es/components/qrcode/qrcode.vue2.js +21 -22
  73. package/es/components/radio/radio-button.vue2.js +16 -17
  74. package/es/components/radio/radio-group.vue2.js +16 -17
  75. package/es/components/radio/radio.vue2.js +15 -16
  76. package/es/components/result/result.vue2.js +12 -13
  77. package/es/components/router-view-content/router-view-content.vue2.js +10 -11
  78. package/es/components/row/row.vue2.js +17 -18
  79. package/es/components/scrollbar/scrollbar.vue2.js +30 -31
  80. package/es/components/search/search.vue2.js +39 -40
  81. package/es/components/side-menu/side-menu.vue2.js +43 -45
  82. package/es/components/skeleton/skeleton-item.vue2.js +9 -10
  83. package/es/components/skeleton/skeleton.vue2.js +11 -12
  84. package/es/components/switch/switch.vue2.js +27 -28
  85. package/es/components/table/table.vue2.js +53 -50
  86. package/es/components/tabs/tab-nav.vue2.js +28 -29
  87. package/es/components/tabs/tab-pane.vue2.js +23 -24
  88. package/es/components/tabs/tabs.vue2.js +30 -31
  89. package/es/components/time-picker/common/picker.vue2.js +48 -49
  90. package/es/components/time-select/time-select.vue2.js +28 -29
  91. package/es/components/tooltip/content.vue2.js +36 -37
  92. package/es/components/tooltip/tooltip.vue2.js +15 -16
  93. package/es/components/tooltip/trigger.vue2.js +37 -38
  94. package/es/components/verify-code/verify-code.vue2.js +19 -20
  95. package/es/constants/date.js +7 -7
  96. package/es/package.json.js +1 -1
  97. package/lib/components/affix/affix.vue2.cjs +1 -1
  98. package/lib/components/alert/alert.vue2.cjs +1 -1
  99. package/lib/components/backtop/backtop.vue2.cjs +1 -1
  100. package/lib/components/button/button-group.vue2.cjs +1 -1
  101. package/lib/components/button/button.vue2.cjs +1 -1
  102. package/lib/components/card/card.vue2.cjs +1 -1
  103. package/lib/components/check-tag/check-tag.vue2.cjs +1 -1
  104. package/lib/components/checkbox/checkbox-button.vue2.cjs +1 -1
  105. package/lib/components/checkbox/checkbox-group.vue2.cjs +1 -1
  106. package/lib/components/checkbox/checkbox.vue2.cjs +1 -1
  107. package/lib/components/clamp/clamp.vue2.cjs +1 -1
  108. package/lib/components/clamp-toggle/clamp-toggle.vue2.cjs +1 -1
  109. package/lib/components/col/col.vue2.cjs +1 -1
  110. package/lib/components/collapse-transition/src/collapse-transition.vue2.cjs +1 -1
  111. package/lib/components/collection/collection-item.vue2.cjs +1 -1
  112. package/lib/components/collection/collection.vue2.cjs +1 -1
  113. package/lib/components/color-picker/color-picker.vue2.cjs +1 -1
  114. package/lib/components/color-picker/components/alpha-slider.vue2.cjs +1 -1
  115. package/lib/components/config-provider/config-provider.vue2.cjs +1 -1
  116. package/lib/components/container/aside.vue2.cjs +1 -1
  117. package/lib/components/container/container.vue2.cjs +1 -1
  118. package/lib/components/container/footer.vue2.cjs +1 -1
  119. package/lib/components/container/header.vue2.cjs +1 -1
  120. package/lib/components/container/main.vue2.cjs +1 -1
  121. package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
  122. package/lib/components/date-picker/date-picker-com/basic-date-table.vue2.cjs +1 -1
  123. package/lib/components/date-picker/date-picker-com/basic-month-table.vue2.cjs +1 -1
  124. package/lib/components/date-picker/date-picker-com/basic-year-table.vue2.cjs +1 -1
  125. package/lib/components/date-picker/date-picker-com/panel-date-pick.vue2.cjs +1 -1
  126. package/lib/components/date-picker/date-picker-com/panel-month-range.vue2.cjs +1 -1
  127. package/lib/components/date-time-select/date-time-select.vue2.cjs +1 -1
  128. package/lib/components/descriptions/description-item.vue2.cjs +1 -1
  129. package/lib/components/descriptions/description.vue2.cjs +1 -1
  130. package/lib/components/descriptions/descriptions-row.vue2.cjs +1 -1
  131. package/lib/components/dialog/dialog-content.vue2.cjs +1 -1
  132. package/lib/components/dialog/dialog.vue2.cjs +1 -1
  133. package/lib/components/divider/divider.vue2.cjs +1 -1
  134. package/lib/components/dropdown/dropdown.vue2.cjs +1 -1
  135. package/lib/components/empty/empty.vue2.cjs +1 -1
  136. package/lib/components/footer-layout/footer-layout.vue2.cjs +1 -1
  137. package/lib/components/form/form-item.vue2.cjs +1 -1
  138. package/lib/components/form/form.vue2.cjs +1 -1
  139. package/lib/components/full-screen/full-screen.vue2.cjs +1 -1
  140. package/lib/components/header-layout/header-layout.vue2.cjs +1 -1
  141. package/lib/components/horizontal-menu/horizontal-menu.vue2.cjs +1 -1
  142. package/lib/components/icon/icon.vue2.cjs +1 -1
  143. package/lib/components/icon-text/icon-text.vue2.cjs +1 -1
  144. package/lib/components/iframe-layout/iframe-layout.vue2.cjs +1 -1
  145. package/lib/components/iframe-layout/iframe-page.vue2.cjs +1 -1
  146. package/lib/components/image/image.vue2.cjs +1 -1
  147. package/lib/components/image-viewer/image-viewer.vue2.cjs +1 -1
  148. package/lib/components/link/link.vue2.cjs +1 -1
  149. package/lib/components/list-cell/list-cell.vue2.cjs +1 -1
  150. package/lib/components/logo/logo.vue2.cjs +1 -1
  151. package/lib/components/md-comment/md-comment.vue2.cjs +1 -1
  152. package/lib/components/md-container/md-container.vue2.cjs +1 -1
  153. package/lib/components/md-vue-playground/md-vue-playground.vue2.cjs +1 -1
  154. package/lib/components/menu/menu-item-group.vue2.cjs +1 -1
  155. package/lib/components/menu/menu-item.vue2.cjs +1 -1
  156. package/lib/components/menu/menu.vue2.cjs +1 -1
  157. package/lib/components/menu/sub-menu.vue2.cjs +1 -1
  158. package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
  159. package/lib/components/overlay/overlay.vue2.cjs +1 -1
  160. package/lib/components/page-wrapper/page-wrapper.vue2.cjs +1 -1
  161. package/lib/components/pagination/pagination.vue2.cjs +1 -1
  162. package/lib/components/popconfirm/popconfirm.vue2.cjs +1 -1
  163. package/lib/components/popover/popover.vue2.cjs +1 -1
  164. package/lib/components/popper/arrow.vue2.cjs +1 -1
  165. package/lib/components/popper/content.vue2.cjs +1 -1
  166. package/lib/components/popper/popper.vue2.cjs +1 -1
  167. package/lib/components/popper/trigger.vue2.cjs +1 -1
  168. package/lib/components/qrcode/qrcode.vue2.cjs +1 -1
  169. package/lib/components/radio/radio-button.vue2.cjs +1 -1
  170. package/lib/components/radio/radio-group.vue2.cjs +1 -1
  171. package/lib/components/radio/radio.vue2.cjs +1 -1
  172. package/lib/components/result/result.vue2.cjs +1 -1
  173. package/lib/components/router-view-content/router-view-content.vue2.cjs +1 -1
  174. package/lib/components/row/row.vue2.cjs +1 -1
  175. package/lib/components/scrollbar/scrollbar.vue2.cjs +1 -1
  176. package/lib/components/search/search.vue2.cjs +1 -1
  177. package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
  178. package/lib/components/skeleton/skeleton-item.vue2.cjs +1 -1
  179. package/lib/components/skeleton/skeleton.vue2.cjs +1 -1
  180. package/lib/components/switch/switch.vue2.cjs +1 -1
  181. package/lib/components/table/table.vue2.cjs +1 -1
  182. package/lib/components/tabs/tab-nav.vue2.cjs +1 -1
  183. package/lib/components/tabs/tab-pane.vue2.cjs +1 -1
  184. package/lib/components/tabs/tabs.vue2.cjs +1 -1
  185. package/lib/components/time-picker/common/picker.vue2.cjs +1 -1
  186. package/lib/components/time-select/time-select.vue2.cjs +1 -1
  187. package/lib/components/tooltip/content.vue2.cjs +1 -1
  188. package/lib/components/tooltip/tooltip.vue2.cjs +1 -1
  189. package/lib/components/tooltip/trigger.vue2.cjs +1 -1
  190. package/lib/components/verify-code/verify-code.vue2.cjs +1 -1
  191. package/lib/constants/date.cjs +1 -1
  192. package/lib/package.json.cjs +1 -1
  193. package/package.json +8 -8
  194. package/web-types.json +1 -1
@@ -1,4 +1,4 @@
1
- import { defineComponent as p, ref as _, onMounted as y, computed as E, provide as I, reactive as g, toRefs as h, watch as B, openBlock as k, createElementBlock as C, unref as t, normalizeClass as G, renderSlot as N, nextTick as V } from "vue";
1
+ import { defineComponent as v, ref as y, onMounted as E, computed as I, provide as g, reactive as _, toRefs as h, watch as B, openBlock as k, createElementBlock as C, unref as t, normalizeClass as G, renderSlot as N, nextTick as V } from "vue";
2
2
  import "../form/index.js";
3
3
  import { UPDATE_MODEL_EVENT as m, CHANGE_EVENT as x } from "../../constants/event.js";
4
4
  import { useNamespace as A } from "../../hooks/use-namespace/index.js";
@@ -12,10 +12,9 @@ import { debugWarn as T } from "../../utils/error.js";
12
12
  import "../../utils/ns-cover.js";
13
13
  import { radioGroupKey as F } from "./constants.js";
14
14
  import { useFormItem as L, useFormItemInputId as S } from "../form/hooks/use-form-item.js";
15
- const z = ["id", "aria-label", "aria-labelledby"], D = p({
16
- name: "VftRadioGroup"
17
- }), Y = /* @__PURE__ */ p({
18
- ...D,
15
+ const z = ["id", "aria-label", "aria-labelledby"], X = /* @__PURE__ */ v({
16
+ name: "VftRadioGroup",
17
+ __name: "radio-group",
19
18
  props: {
20
19
  id: {},
21
20
  size: {},
@@ -28,23 +27,23 @@ const z = ["id", "aria-label", "aria-labelledby"], D = p({
28
27
  validateEvent: { type: Boolean, default: !0 }
29
28
  },
30
29
  emits: [m, x],
31
- setup(s, { emit: l }) {
32
- const o = s, c = A("radio"), u = R(), n = _(), { formItem: r } = L(), { inputId: f, isLabeledByFormItem: d } = S(o, {
30
+ setup(p, { emit: l }) {
31
+ const o = p, s = A("radio"), u = R(), n = y(), { formItem: r } = L(), { inputId: c, isLabeledByFormItem: d } = S(o, {
33
32
  formItemContext: r
34
- }), b = (e) => {
33
+ }), f = (e) => {
35
34
  l(m, e), V(() => l("change", e));
36
35
  };
37
- y(() => {
36
+ E(() => {
38
37
  const e = n.value.querySelectorAll("[type=radio]"), i = e[0];
39
38
  !Array.from(e).some((a) => a.checked) && i && (i.tabIndex = 0);
40
39
  });
41
- const v = E(() => o.name || u.value);
42
- return I(
40
+ const b = I(() => o.name || u.value);
41
+ return g(
43
42
  F,
44
- g({
43
+ _({
45
44
  ...h(o),
46
- changeEvent: b,
47
- name: v
45
+ changeEvent: f,
46
+ name: b
48
47
  })
49
48
  ), B(
50
49
  () => o.modelValue,
@@ -54,10 +53,10 @@ const z = ["id", "aria-label", "aria-labelledby"], D = p({
54
53
  ), (e, i) => {
55
54
  var a;
56
55
  return k(), C("div", {
57
- id: t(f),
56
+ id: t(c),
58
57
  ref_key: "radioGroupRef",
59
58
  ref: n,
60
- class: G(t(c).b("group")),
59
+ class: G(t(s).b("group")),
61
60
  role: "radiogroup",
62
61
  "aria-label": t(d) ? void 0 : e.label || "radio-group",
63
62
  "aria-labelledby": t(d) ? (a = t(r)) == null ? void 0 : a.labelId : void 0
@@ -68,5 +67,5 @@ const z = ["id", "aria-label", "aria-labelledby"], D = p({
68
67
  }
69
68
  });
70
69
  export {
71
- Y as default
70
+ X as default
72
71
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as u, openBlock as N, createElementBlock as g, normalizeClass as s, unref as e, createElementVNode as i, withDirectives as B, isRef as V, vModelRadio as k, withModifiers as C, renderSlot as R, createTextVNode as T, toDisplayString as D, nextTick as S } from "vue";
1
+ import { defineComponent as y, openBlock as N, createElementBlock as g, normalizeClass as s, unref as e, createElementVNode as i, withDirectives as B, isRef as V, vModelRadio as k, withModifiers as C, renderSlot as R, createTextVNode as T, toDisplayString as D, nextTick as S } from "vue";
2
2
  import { UPDATE_MODEL_EVENT as w, CHANGE_EVENT as z } from "../../constants/event.js";
3
3
  import { useNamespace as M } from "../../hooks/use-namespace/index.js";
4
4
  import "@popperjs/core";
@@ -11,10 +11,9 @@ import { useRadio as $ } from "./use-radio.js";
11
11
  const h = ["value", "name", "disabled"], o = (
12
12
  /* hoist-static*/
13
13
  M("radio")
14
- ), A = u({
15
- name: o.b()
16
- }), I = /* @__PURE__ */ u({
17
- ...A,
14
+ ), q = /* @__PURE__ */ y({
15
+ name: o.b(),
16
+ __name: "radio",
18
17
  props: {
19
18
  size: {},
20
19
  disabled: { type: Boolean },
@@ -24,16 +23,16 @@ const h = ["value", "name", "disabled"], o = (
24
23
  border: { type: Boolean }
25
24
  },
26
25
  emits: [w, z],
27
- setup(b, { emit: p }) {
28
- const f = b, { radioRef: v, radioGroup: c, focus: r, size: E, disabled: t, modelValue: n } = $(
29
- f,
30
- p
26
+ setup(u, { emit: m }) {
27
+ const b = u, { radioRef: f, radioGroup: v, focus: r, size: E, disabled: t, modelValue: n } = $(
28
+ b,
29
+ m
31
30
  );
32
- function y() {
33
- S(() => p("change", n.value));
31
+ function c() {
32
+ S(() => m("change", n.value));
34
33
  }
35
34
  return (a, l) => {
36
- var m;
35
+ var p;
37
36
  return N(), g("label", {
38
37
  class: s([
39
38
  e(o).b(),
@@ -53,16 +52,16 @@ const h = ["value", "name", "disabled"], o = (
53
52
  }, [
54
53
  B(i("input", {
55
54
  ref_key: "radioRef",
56
- ref: v,
55
+ ref: f,
57
56
  "onUpdate:modelValue": l[0] || (l[0] = (d) => V(n) ? n.value = d : null),
58
57
  class: s(e(o).e("original")),
59
58
  value: a.label,
60
- name: a.name || ((m = e(c)) == null ? void 0 : m.name),
59
+ name: a.name || ((p = e(v)) == null ? void 0 : p.name),
61
60
  disabled: e(t),
62
61
  type: "radio",
63
62
  onFocus: l[1] || (l[1] = (d) => r.value = !0),
64
63
  onBlur: l[2] || (l[2] = (d) => r.value = !1),
65
- onChange: y
64
+ onChange: c
66
65
  }, null, 42, h), [
67
66
  [k, e(n)]
68
67
  ]),
@@ -84,5 +83,5 @@ const h = ["value", "name", "disabled"], o = (
84
83
  }
85
84
  });
86
85
  export {
87
- I as default
86
+ q as default
88
87
  };
@@ -1,5 +1,5 @@
1
- import { defineComponent as s, getCurrentInstance as d, useSlots as f, computed as v, h as o } from "vue";
2
- import { singleAttrToObj as _, renderTNode as b } from "@vft/utils";
1
+ import { defineComponent as l, getCurrentInstance as d, useSlots as f, computed as v, h as o } from "vue";
2
+ import { singleAttrToObj as b, renderTNode as _ } from "@vft/utils";
3
3
  import { useNamespace as x } from "../../hooks/use-namespace/index.js";
4
4
  import "@popperjs/core";
5
5
  import "lodash";
@@ -87,27 +87,26 @@ import "../message/index.js";
87
87
  const i = (
88
88
  /* hoist-static*/
89
89
  x("result")
90
- ), I = s({
91
- name: i.b()
92
- }), $t = /* @__PURE__ */ s({
93
- ...I,
90
+ ), Zt = /* @__PURE__ */ l({
91
+ name: i.b(),
92
+ __name: "result",
94
93
  props: {
95
94
  title: {},
96
95
  subTitle: {},
97
96
  icon: {}
98
97
  },
99
- setup(u) {
98
+ setup(c) {
100
99
  var e, n;
101
- const a = d(), t = f(), m = v(() => _(u.icon, "icon")), l = (e = m.value) != null && e.icon ? o("div", {
100
+ const u = d(), t = f(), m = v(() => b(c.icon, "icon")), a = (e = m.value) != null && e.icon ? o("div", {
102
101
  class: i.e("icon")
103
102
  }, [o(C, { ...m.value })]) : (n = t.default) == null ? void 0 : n.call(t), p = (r) => {
104
- const c = b(a, r);
105
- return c ? o(
103
+ const s = _(u, r);
104
+ return s ? o(
106
105
  "div",
107
106
  {
108
107
  class: i.e(r)
109
108
  },
110
- [o("p", {}, { default: () => c })]
109
+ [o("p", {}, { default: () => s })]
111
110
  ) : null;
112
111
  };
113
112
  return () => o(
@@ -115,7 +114,7 @@ const i = (
115
114
  { class: i.b() },
116
115
  {
117
116
  default: () => [
118
- l,
117
+ a,
119
118
  p("title"),
120
119
  p("sub-title"),
121
120
  t.extra ? o("div", { class: i.e("extra") }, { default: () => {
@@ -128,5 +127,5 @@ const i = (
128
127
  }
129
128
  });
130
129
  export {
131
- $t as default
130
+ Zt as default
132
131
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as s, computed as u, resolveComponent as h, openBlock as a, createBlock as l, withCtx as y, KeepAlive as C, resolveDynamicComponent as p, unref as g, createCommentVNode as x } from "vue";
1
+ import { defineComponent as f, computed as u, resolveComponent as h, openBlock as a, createBlock as l, withCtx as y, KeepAlive as C, resolveDynamicComponent as p, unref as g, createCommentVNode as x } from "vue";
2
2
  import { getRouterKeyPath as A } from "@vft/router";
3
3
  import { useNamespace as B } from "../../hooks/use-namespace/index.js";
4
4
  import "@popperjs/core";
@@ -10,10 +10,9 @@ import "../../utils/ns-cover.js";
10
10
  const k = (
11
11
  /* hoist-static*/
12
12
  B("router-view-content")
13
- ), K = s({
14
- name: k.b()
15
- }), S = /* @__PURE__ */ s({
16
- ...K,
13
+ ), L = /* @__PURE__ */ f({
14
+ name: k.b(),
15
+ __name: "router-view-content",
17
16
  props: {
18
17
  cacheList: {},
19
18
  openKeepAlive: { type: Boolean, default: !0 },
@@ -23,12 +22,12 @@ const k = (
23
22
  exceptionComp: {}
24
23
  },
25
24
  setup(t) {
26
- const d = u(() => t.openKeepAlive ? t.cacheList : []), c = u(() => (e) => t.enableErrorHandle && t.pageErrorStatus && t.exceptionComp || e), v = u(() => (e) => {
25
+ const s = u(() => t.openKeepAlive ? t.cacheList : []), c = u(() => (e) => t.enableErrorHandle && t.pageErrorStatus && t.exceptionComp || e), d = u(() => (e) => {
27
26
  var o, r, n;
28
27
  let i = e.name;
29
- return (o = e.meta) != null && o.currentActivePath && (i = (n = (r = e.matched) == null ? void 0 : r.filter((f) => {
28
+ return (o = e.meta) != null && o.currentActivePath && (i = (n = (r = e.matched) == null ? void 0 : r.filter((v) => {
30
29
  var m;
31
- return f.path === ((m = e.meta) == null ? void 0 : m.currentActivePath);
30
+ return v.path === ((m = e.meta) == null ? void 0 : m.currentActivePath);
32
31
  })) == null ? void 0 : n[0].name), t.isReloadFlag ? void 0 : i;
33
32
  });
34
33
  return (e, i) => {
@@ -37,8 +36,8 @@ const k = (
37
36
  default: y(({ Component: r, route: n }) => [
38
37
  e.openKeepAlive ? (a(), l(C, {
39
38
  key: 0,
40
- include: d.value,
41
- exclude: v.value(n)
39
+ include: s.value,
40
+ exclude: d.value(n)
42
41
  }, [
43
42
  e.isReloadFlag ? (a(), l(p(c.value(r)), {
44
43
  key: g(A)(n)
@@ -53,5 +52,5 @@ const k = (
53
52
  }
54
53
  });
55
54
  export {
56
- S as default
55
+ L as default
57
56
  };
@@ -1,6 +1,6 @@
1
- import { defineComponent as s, computed as r, provide as u, openBlock as p, createBlock as m, resolveDynamicComponent as f, normalizeClass as c, normalizeStyle as g, withCtx as d, renderSlot as y } from "vue";
2
- import { rowContextKey as _ } from "./constants.js";
3
- import { useNamespace as v } from "../../hooks/use-namespace/index.js";
1
+ import { defineComponent as l, computed as r, provide as u, openBlock as m, createBlock as p, resolveDynamicComponent as f, normalizeClass as c, normalizeStyle as g, withCtx as d, renderSlot as y } from "vue";
2
+ import { rowContextKey as v } from "./constants.js";
3
+ import { useNamespace as w } from "../../hooks/use-namespace/index.js";
4
4
  import "@popperjs/core";
5
5
  import "lodash";
6
6
  import "../../hooks/use-z-index/index.js";
@@ -9,33 +9,32 @@ import "@vft/utils";
9
9
  import "../../utils/ns-cover.js";
10
10
  const o = (
11
11
  /* hoist-static*/
12
- v("row")
13
- ), C = s({
14
- name: o.b()
15
- }), S = /* @__PURE__ */ s({
16
- ...C,
12
+ w("row")
13
+ ), K = /* @__PURE__ */ l({
14
+ name: o.b(),
15
+ __name: "row",
17
16
  props: {
18
17
  tag: { default: "div" },
19
18
  gutter: { default: 0 },
20
19
  justify: { default: "start" },
21
20
  align: { default: "top" }
22
21
  },
23
- setup(a) {
24
- const t = a, n = r(() => t.gutter);
25
- u(_, {
26
- gutter: n
22
+ setup(s) {
23
+ const t = s, a = r(() => t.gutter);
24
+ u(v, {
25
+ gutter: a
27
26
  });
28
- const i = r(() => {
27
+ const n = r(() => {
29
28
  const e = {};
30
29
  return t.gutter && (e.marginRight = e.marginLeft = `-${t.gutter / 2}px`), e;
31
- }), l = r(() => [
30
+ }), i = r(() => [
32
31
  o.b(),
33
32
  o.is(`justify-${t.justify}`, t.justify !== "start"),
34
33
  o.is(`align-${t.align}`, t.align !== "top")
35
34
  ]);
36
- return (e, j) => (p(), m(f(e.tag), {
37
- class: c(l.value),
38
- style: g(i.value)
35
+ return (e, C) => (m(), p(f(e.tag), {
36
+ class: c(i.value),
37
+ style: g(n.value)
39
38
  }, {
40
39
  default: d(() => [
41
40
  y(e.$slots, "default")
@@ -45,5 +44,5 @@ const o = (
45
44
  }
46
45
  });
47
46
  export {
48
- S as default
47
+ K as default
49
48
  };
@@ -1,6 +1,6 @@
1
- import { defineComponent as L, ref as o, computed as w, watch as T, nextTick as E, provide as j, reactive as D, onMounted as G, onUpdated as X, openBlock as g, createElementBlock as Y, normalizeClass as b, unref as q, createElementVNode as F, normalizeStyle as N, createBlock as R, resolveDynamicComponent as I, withCtx as J, renderSlot as Q, createCommentVNode as Z } from "vue";
1
+ import { defineComponent as V, ref as o, computed as w, watch as T, nextTick as E, provide as j, reactive as D, onMounted as G, onUpdated as X, openBlock as g, createElementBlock as Y, normalizeClass as b, unref as q, createElementVNode as F, normalizeStyle as N, createBlock as R, resolveDynamicComponent as I, withCtx as J, renderSlot as Q, createCommentVNode as Z } from "vue";
2
2
  import { useResizeObserver as _, useEventListener as ee } from "@vueuse/core";
3
- import { isNumber as r, addUnit as B, isObject as te } from "@vft/utils";
3
+ import { isNumber as i, addUnit as B, isObject as te } from "@vft/utils";
4
4
  import { useNamespace as le } from "../../hooks/use-namespace/index.js";
5
5
  import "@popperjs/core";
6
6
  import "lodash";
@@ -13,10 +13,9 @@ import { scrollbarContextKey as oe } from "./constants.js";
13
13
  const M = "ElScrollbar", s = (
14
14
  /* hoist-static*/
15
15
  le("scrollbar")
16
- ), ie = L({
17
- name: s.b()
18
- }), ge = /* @__PURE__ */ L({
19
- ...ie,
16
+ ), we = /* @__PURE__ */ V({
17
+ name: s.b(),
18
+ __name: "scrollbar",
20
19
  props: {
21
20
  height: { default: "" },
22
21
  maxHeight: { default: "" },
@@ -34,40 +33,40 @@ const M = "ElScrollbar", s = (
34
33
  scroll: ({
35
34
  scrollTop: l,
36
35
  scrollLeft: v
37
- }) => [l, v].every(r)
36
+ }) => [l, v].every(i)
38
37
  },
39
- setup(l, { expose: v, emit: $ }) {
38
+ setup(l, { expose: v, emit: L }) {
40
39
  let n, c;
41
- const S = o(), t = o(), p = o(), x = o("0"), z = o("0"), d = o(), C = o(1), H = o(1), K = w(() => {
40
+ const S = o(), t = o(), p = o(), x = o("0"), z = o("0"), d = o(), C = o(1), H = o(1), $ = w(() => {
42
41
  const e = {};
43
42
  return l.height && (e.height = B(l.height)), l.maxHeight && (e.maxHeight = B(l.maxHeight)), [l.wrapStyle, e];
44
- }), O = w(() => [
43
+ }), K = w(() => [
45
44
  l.wrapClass,
46
45
  s.e("wrap"),
47
46
  { [s.em("wrap", "hidden-default")]: !l.native }
48
- ]), A = w(() => [s.e("view"), l.viewClass]), k = () => {
47
+ ]), O = w(() => [s.e("view"), l.viewClass]), k = () => {
49
48
  var e;
50
- t.value && ((e = d.value) == null || e.handleScroll(t.value), $("scroll", {
49
+ t.value && ((e = d.value) == null || e.handleScroll(t.value), L("scroll", {
51
50
  scrollTop: t.value.scrollTop,
52
51
  scrollLeft: t.value.scrollLeft
53
52
  }));
54
53
  };
55
- function P(e, a) {
56
- te(e) ? t.value.scrollTo(e) : r(e) && r(a) && t.value.scrollTo(e, a);
54
+ function A(e, a) {
55
+ te(e) ? t.value.scrollTo(e) : i(e) && i(a) && t.value.scrollTo(e, a);
57
56
  }
58
- const U = (e) => {
59
- if (!r(e)) {
57
+ const P = (e) => {
58
+ if (!i(e)) {
60
59
  W(M, "value must be a number");
61
60
  return;
62
61
  }
63
62
  t.value.scrollTop = e;
64
- }, V = (e) => {
65
- if (!r(e)) {
63
+ }, U = (e) => {
64
+ if (!i(e)) {
66
65
  W(M, "value must be a number");
67
66
  return;
68
67
  }
69
68
  t.value.scrollLeft = e;
70
- }, i = () => {
69
+ }, r = () => {
71
70
  if (!t.value)
72
71
  return;
73
72
  const e = t.value.offsetHeight - m, a = t.value.offsetWidth - m, h = e ** 2 / t.value.scrollHeight, y = a ** 2 / t.value.scrollWidth, f = Math.max(h, l.minSize), u = Math.max(y, l.minSize);
@@ -76,7 +75,7 @@ const M = "ElScrollbar", s = (
76
75
  return T(
77
76
  () => l.noresize,
78
77
  (e) => {
79
- e ? (n == null || n(), c == null || c()) : ({ stop: n } = _(p, i), c = ee("resize", i));
78
+ e ? (n == null || n(), c == null || c()) : ({ stop: n } = _(p, r), c = ee("resize", r));
80
79
  },
81
80
  { immediate: !0 }
82
81
  ), T(
@@ -84,7 +83,7 @@ const M = "ElScrollbar", s = (
84
83
  () => {
85
84
  l.native || E(() => {
86
85
  var e;
87
- i(), t.value && ((e = d.value) == null || e.handleScroll(t.value));
86
+ r(), t.value && ((e = d.value) == null || e.handleScroll(t.value));
88
87
  });
89
88
  }
90
89
  ), j(
@@ -95,19 +94,19 @@ const M = "ElScrollbar", s = (
95
94
  })
96
95
  ), G(() => {
97
96
  l.native || E(() => {
98
- i();
97
+ r();
99
98
  });
100
- }), X(() => i()), v({
99
+ }), X(() => r()), v({
101
100
  /** @description scrollbar wrap ref */
102
101
  wrapRef: t,
103
102
  /** @description update scrollbar state manually */
104
- update: i,
103
+ update: r,
105
104
  /** @description scrolls to a particular set of coordinates */
106
- scrollTo: P,
105
+ scrollTo: A,
107
106
  /** @description set distance to scroll top */
108
- setScrollTop: U,
107
+ setScrollTop: P,
109
108
  /** @description set distance to scroll left */
110
- setScrollLeft: V,
109
+ setScrollLeft: U,
111
110
  /** @description handle scroll event */
112
111
  handleScroll: k
113
112
  }), (e, a) => (g(), Y("div", {
@@ -118,14 +117,14 @@ const M = "ElScrollbar", s = (
118
117
  F("div", {
119
118
  ref_key: "wrapRef",
120
119
  ref: t,
121
- class: b(O.value),
122
- style: N(K.value),
120
+ class: b(K.value),
121
+ style: N($.value),
123
122
  onScroll: k
124
123
  }, [
125
124
  (g(), R(I(e.tag), {
126
125
  ref_key: "resizeRef",
127
126
  ref: p,
128
- class: b(A.value),
127
+ class: b(O.value),
129
128
  style: N(e.viewStyle)
130
129
  }, {
131
130
  default: J(() => [
@@ -148,5 +147,5 @@ const M = "ElScrollbar", s = (
148
147
  }
149
148
  });
150
149
  export {
151
- ge as default
150
+ we as default
152
151
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as P, ref as a, computed as f, resolveDirective as j, openBlock as h, createElementBlock as w, Fragment as q, withDirectives as G, normalizeClass as g, unref as r, normalizeStyle as J, createVNode as Q, mergeProps as b, createSlots as T, withCtx as u, renderSlot as i, createBlock as X, createElementVNode as Y, createCommentVNode as Z } from "vue";
1
+ import { defineComponent as O, ref as a, computed as f, resolveDirective as j, openBlock as h, createElementBlock as w, Fragment as q, withDirectives as G, normalizeClass as g, unref as r, normalizeStyle as J, createVNode as Q, mergeProps as b, createSlots as T, withCtx as u, renderSlot as i, createBlock as X, createElementVNode as Y, createCommentVNode as Z } from "vue";
2
2
  import { VftInput as _ } from "../input/index.js";
3
3
  import { VftPopover as ee } from "../popover/index.js";
4
4
  import { useNamespace as oe } from "../../hooks/use-namespace/index.js";
@@ -11,10 +11,9 @@ import { generateCssVars as $ } from "../../utils/ns-cover.js";
11
11
  const c = (
12
12
  /* hoist-static*/
13
13
  oe("search")
14
- ), te = P({
15
- name: c.b()
16
- }), ve = /* @__PURE__ */ P({
17
- ...te,
14
+ ), ce = /* @__PURE__ */ O({
15
+ name: c.b(),
16
+ __name: "search",
18
17
  props: {
19
18
  width: { default: 200 },
20
19
  activeWidth: {},
@@ -28,22 +27,22 @@ const c = (
28
27
  clearIcon: {}
29
28
  },
30
29
  emits: ["update:modelValue", "blur", "focus", "clear", "enter", "prefixClick", "suffixClick", "mouseenter", "mouseleave", "keydown", "change"],
31
- setup(o, { expose: B, emit: t }) {
32
- const k = a(), C = a(), y = a(), v = a(!1), p = a(!1), l = a(!1), R = f(
30
+ setup(o, { expose: P, emit: t }) {
31
+ const k = a(), C = a(), y = a(), v = a(!1), p = a(!1), l = a(!1), B = f(
33
32
  () => $(
34
33
  {
35
34
  width: o.activeWidth && (l.value || o.modelValue) ? d(o.activeWidth) : d(o.width)
36
35
  },
37
36
  "input"
38
37
  )
39
- ), S = f(
38
+ ), R = f(
40
39
  () => $(
41
40
  {
42
41
  "active-width": o.activeWidth ? d(o.activeWidth) : d(o.width)
43
42
  },
44
43
  "search"
45
44
  )
46
- ), x = f(() => ({
45
+ ), S = f(() => ({
47
46
  "show-arrow": !1,
48
47
  transition: "vft-zoom-in-top-fast",
49
48
  placement: "bottom-start",
@@ -51,83 +50,83 @@ const c = (
51
50
  offset: 3,
52
51
  width: 500,
53
52
  ...o.popoverCfg
54
- })), I = (e) => {
53
+ })), x = (e) => {
55
54
  t("update:modelValue", e);
56
- }, W = () => {
55
+ }, I = () => {
57
56
  m();
58
57
  };
59
- function E() {
58
+ function W() {
60
59
  l.value = !0;
61
60
  }
62
61
  function m() {
63
62
  l.value = !1;
64
63
  }
65
- const F = () => {
64
+ const E = () => {
66
65
  s(), t("update:modelValue", ""), t("clear");
67
66
  };
68
- function M() {
67
+ function F() {
69
68
  p.value = !0, t("mouseenter", o.modelValue);
70
69
  }
71
- function N() {
70
+ function M() {
72
71
  p.value = !1, t("mouseleave", o.modelValue);
73
72
  }
74
- const z = () => {
73
+ const N = () => {
75
74
  l.value = !0, v.value = !0, t("focus");
76
75
  };
77
- function D() {
76
+ function z() {
78
77
  v.value = !1, t("blur");
79
78
  }
80
- function K() {
79
+ function D() {
81
80
  s(), t("prefixClick", o.modelValue);
82
81
  }
83
- function U() {
82
+ function K() {
84
83
  s(), t("suffixClick", o.modelValue);
85
84
  }
86
- function A() {
85
+ function U() {
87
86
  s(), t("enter", o.modelValue);
88
87
  }
89
88
  function s() {
90
89
  o.usePopover && m(), y.value.blur();
91
90
  }
92
- const H = (e) => {
91
+ const A = (e) => {
93
92
  t("keydown", e);
94
- }, L = f(() => {
93
+ }, H = f(() => {
95
94
  var e, n;
96
95
  return (n = (e = k.value) == null ? void 0 : e.popperRef) == null ? void 0 : n.contentRef;
97
96
  });
98
- return B({
97
+ return P({
99
98
  isFocus: v,
100
99
  isHover: p,
101
100
  visible: l,
102
101
  hidePopover: m,
103
- showPopover: E
102
+ showPopover: W
104
103
  }), (e, n) => {
105
- const O = j("click-outside");
104
+ const L = j("click-outside");
106
105
  return h(), w(q, null, [
107
106
  G((h(), w("div", {
108
107
  ref_key: "searchRef",
109
108
  ref: C,
110
109
  class: g([r(c).b(), r(c).is("active", l.value || e.modelValue)]),
111
- style: J(S.value)
110
+ style: J(R.value)
112
111
  }, [
113
112
  Q(r(_), b({
114
113
  ref_key: "inputRef",
115
114
  ref: y
116
115
  }, e.$props, {
117
- inputStyle: R.value,
118
- onInput: I,
119
- onFocus: z,
120
- onEnter: A,
121
- onBlur: D,
122
- onMouseenter: M,
123
- onMouseleave: N,
124
- onPrefixClick: K,
125
- onSuffixClick: U,
116
+ inputStyle: B.value,
117
+ onInput: x,
118
+ onFocus: N,
119
+ onEnter: U,
120
+ onBlur: z,
121
+ onMouseenter: F,
122
+ onMouseleave: M,
123
+ onPrefixClick: D,
124
+ onSuffixClick: K,
126
125
  onChange: n[0] || (n[0] = (V) => {
127
126
  t("change", e.modelValue);
128
127
  }),
129
- onKeydown: H,
130
- onClear: F
128
+ onKeydown: A,
129
+ onClear: E
131
130
  }), T({ _: 2 }, [
132
131
  e.$slots.prefix ? {
133
132
  name: "prefix",
@@ -159,13 +158,13 @@ const c = (
159
158
  } : void 0
160
159
  ]), 1040, ["inputStyle"])
161
160
  ], 6)), [
162
- [O, W, L.value]
161
+ [L, I, H.value]
163
162
  ]),
164
163
  e.usePopover ? (h(), X(r(ee), b({
165
164
  key: 0,
166
165
  ref_key: "popoverRef",
167
166
  ref: k
168
- }, x.value, {
167
+ }, S.value, {
169
168
  "virtual-ref": C.value,
170
169
  visible: l.value,
171
170
  "onUpdate:visible": n[1] || (n[1] = (V) => l.value = V),
@@ -185,5 +184,5 @@ const c = (
185
184
  }
186
185
  });
187
186
  export {
188
- ve as default
187
+ ce as default
189
188
  };