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,4 +1,4 @@
1
- import { defineComponent as b, getCurrentInstance as h, inject as x, computed as m, onMounted as B, watch as c, onBeforeUnmount as g, openBlock as w, createBlock as M, unref as P, mergeProps as R, withCtx as k, renderSlot as L, createCommentVNode as F } from "vue";
1
+ import { defineComponent as y, getCurrentInstance as h, inject as g, computed as m, onMounted as x, watch as c, onBeforeUnmount as B, openBlock as w, createBlock as M, unref as P, mergeProps as R, withCtx as k, renderSlot as L, createCommentVNode as F } from "vue";
2
2
  import { isNil as I } from "lodash";
3
3
  import { unrefElement as K } from "@vueuse/core";
4
4
  import { OnlyChild as O } from "../slot/only-child.js";
@@ -9,11 +9,10 @@ import { useForwardRef as $ } from "../../hooks/use-forward-ref/index.js";
9
9
  import { isElement as v } from "@vft/utils";
10
10
  import "../../utils/ns-cover.js";
11
11
  import { POPPER_INJECTION_KEY as N } from "./constants.js";
12
- const V = b({
12
+ const E = /* @__PURE__ */ y({
13
13
  name: "VftPopperTrigger",
14
- inheritAttrs: !1
15
- }), G = /* @__PURE__ */ b({
16
- ...V,
14
+ inheritAttrs: !1,
15
+ __name: "trigger",
17
16
  props: {
18
17
  virtualRef: {},
19
18
  virtualTriggering: { type: Boolean },
@@ -27,8 +26,8 @@ const V = b({
27
26
  id: {},
28
27
  open: { type: Boolean }
29
28
  },
30
- setup(n, { expose: C }) {
31
- const y = h(), { role: a, triggerRef: d } = x(N, void 0);
29
+ setup(n, { expose: b }) {
30
+ const C = h(), { role: a, triggerRef: d } = g(N, void 0);
32
31
  $(d);
33
32
  const f = m(() => s.value ? n.id : void 0), l = m(() => {
34
33
  if (a && a.value === "tooltip")
@@ -38,7 +37,7 @@ const V = b({
38
37
  return a.value;
39
38
  }), p = m(() => s.value ? `${n.open}` : void 0);
40
39
  let o;
41
- return B(() => {
40
+ return x(() => {
42
41
  c(
43
42
  () => n.virtualRef,
44
43
  (e) => {
@@ -60,7 +59,7 @@ const V = b({
60
59
  "onContextmenu"
61
60
  ].forEach((t) => {
62
61
  var u;
63
- const i = y.props[t];
62
+ const i = C.props[t];
64
63
  i && (e.addEventListener(
65
64
  t.slice(2).toLowerCase(),
66
65
  i
@@ -93,9 +92,9 @@ const V = b({
93
92
  immediate: !0
94
93
  }
95
94
  );
96
- }), g(() => {
95
+ }), B(() => {
97
96
  o == null || o(), o = void 0;
98
- }), C({
97
+ }), b({
99
98
  /**
100
99
  * @description trigger element
101
100
  */
@@ -114,5 +113,5 @@ const V = b({
114
113
  }
115
114
  });
116
115
  export {
117
- G as default
116
+ E as default
118
117
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as s, ref as d, onMounted as p, openBlock as l, createElementBlock as w, createBlock as g, resolveDynamicComponent as v, unref as c } from "vue";
1
+ import { defineComponent as u, ref as d, onMounted as p, openBlock as l, createElementBlock as w, createBlock as g, resolveDynamicComponent as v, unref as c } from "vue";
2
2
  import { toDataURL as h } from "qrcode";
3
3
  import { useNamespace as C } from "../../hooks/use-namespace/index.js";
4
4
  import "@popperjs/core";
@@ -11,10 +11,9 @@ import { toCanvas as E } from "./toCanvas.js";
11
11
  const L = (
12
12
  /* hoist-static*/
13
13
  C("qrcode")
14
- ), k = s({
15
- name: L.b()
16
- }), q = /* @__PURE__ */ s({
17
- ...k,
14
+ ), T = /* @__PURE__ */ u({
15
+ name: L.b(),
16
+ __name: "qrcode",
18
17
  props: {
19
18
  value: {},
20
19
  options: {},
@@ -23,41 +22,41 @@ const L = (
23
22
  tag: { default: "canvas" }
24
23
  },
25
24
  emits: ["done", "error"],
26
- setup(o, { expose: f, emit: a }) {
25
+ setup(o, { expose: s, emit: a }) {
27
26
  const r = d(null);
28
27
  async function i() {
29
28
  try {
30
- const n = String(o.value), t = c(r);
31
- if (!t)
29
+ const n = String(o.value), e = c(r);
30
+ if (!e)
32
31
  return;
33
32
  if (o.tag === "canvas") {
34
- const e = await E({
35
- canvas: t,
33
+ const t = await E({
34
+ canvas: e,
36
35
  width: o.width,
37
36
  logo: o.logo,
38
37
  content: n,
39
38
  options: o.options || {}
40
39
  });
41
- a("done", { url: e, ctx: t.getContext("2d") });
40
+ a("done", { url: t, ctx: e.getContext("2d") });
42
41
  return;
43
42
  }
44
43
  if (o.tag === "img") {
45
- const e = await h(n, {
44
+ const t = await h(n, {
46
45
  errorCorrectionLevel: "H",
47
46
  width: o.width,
48
47
  ...o.options
49
48
  });
50
- c(r).src = e, a("done", { url: e });
49
+ c(r).src = t, a("done", { url: t });
51
50
  }
52
51
  } catch (n) {
53
52
  a("error", n);
54
53
  }
55
54
  }
56
- function u(n) {
57
- let t = "";
58
- const e = c(r);
59
- e instanceof HTMLCanvasElement ? t = e.toDataURL() : e instanceof HTMLImageElement && (t = e.src), t && y({
60
- url: t,
55
+ function f(n) {
56
+ let e = "";
57
+ const t = c(r);
58
+ t instanceof HTMLCanvasElement ? e = t.toDataURL() : t instanceof HTMLImageElement && (e = t.src), e && y({
59
+ url: e,
61
60
  fileName: n
62
61
  });
63
62
  }
@@ -65,9 +64,9 @@ const L = (
65
64
  const m = getCurrentInstance();
66
65
  return watch(m.props, () => {
67
66
  i();
68
- }, { deep: !0 }), f({
69
- download: u
70
- }), (n, t) => (l(), w("div", null, [
67
+ }, { deep: !0 }), s({
68
+ download: f
69
+ }), (n, e) => (l(), w("div", null, [
71
70
  (l(), g(v(n.tag), {
72
71
  ref_key: "wrapRef",
73
72
  ref: r
@@ -76,5 +75,5 @@ const L = (
76
75
  }
77
76
  });
78
77
  export {
79
- q as default
78
+ T as default
80
79
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as b, computed as B, openBlock as R, createElementBlock as S, normalizeClass as r, unref as e, withDirectives as C, createElementVNode as u, isRef as V, vModelRadio as g, normalizeStyle as k, withModifiers as w, renderSlot as z, createTextVNode as N, toDisplayString as $ } from "vue";
1
+ import { defineComponent as c, computed as B, openBlock as R, createElementBlock as S, normalizeClass as r, unref as e, withDirectives as C, createElementVNode as u, isRef as V, vModelRadio as g, normalizeStyle as k, withModifiers as w, renderSlot as z, createTextVNode as N, toDisplayString as $ } from "vue";
2
2
  import { useNamespace as D } from "../../hooks/use-namespace/index.js";
3
3
  import "@popperjs/core";
4
4
  import "lodash";
@@ -7,18 +7,17 @@ import "@vueuse/core";
7
7
  import "@vft/utils";
8
8
  import "../../utils/ns-cover.js";
9
9
  import { useRadio as E } from "./use-radio.js";
10
- const M = ["value", "name", "disabled"], F = b({
11
- name: "VftRadioButton"
12
- }), J = /* @__PURE__ */ b({
13
- ...F,
10
+ const M = ["value", "name", "disabled"], I = /* @__PURE__ */ c({
11
+ name: "VftRadioButton",
12
+ __name: "radio-button",
14
13
  props: {
15
14
  size: {},
16
15
  disabled: { type: Boolean },
17
16
  label: { type: [String, Number, Boolean] },
18
17
  name: {}
19
18
  },
20
- setup(f) {
21
- const p = f, t = D("radio"), { radioRef: v, focus: a, size: y, disabled: m, modelValue: s, radioGroup: l } = E(p), c = B(() => ({
19
+ setup(b) {
20
+ const f = b, t = D("radio"), { radioRef: p, focus: s, size: v, disabled: m, modelValue: a, radioGroup: l } = E(f), y = B(() => ({
22
21
  backgroundColor: (l == null ? void 0 : l.fill) || "",
23
22
  borderColor: (l == null ? void 0 : l.fill) || "",
24
23
  boxShadow: l != null && l.fill ? `-1px 0 0 0 ${l.fill}` : "",
@@ -29,29 +28,29 @@ const M = ["value", "name", "disabled"], F = b({
29
28
  return R(), S("label", {
30
29
  class: r([
31
30
  e(t).b("button"),
32
- e(t).is("active", e(s) === n.label),
31
+ e(t).is("active", e(a) === n.label),
33
32
  e(t).is("disabled", e(m)),
34
- e(t).is("focus", e(a)),
35
- e(t).bm("button", e(y))
33
+ e(t).is("focus", e(s)),
34
+ e(t).bm("button", e(v))
36
35
  ])
37
36
  }, [
38
37
  C(u("input", {
39
38
  ref_key: "radioRef",
40
- ref: v,
41
- "onUpdate:modelValue": o[0] || (o[0] = (i) => V(s) ? s.value = i : null),
39
+ ref: p,
40
+ "onUpdate:modelValue": o[0] || (o[0] = (i) => V(a) ? a.value = i : null),
42
41
  class: r(e(t).be("button", "original-radio")),
43
42
  value: n.label,
44
43
  type: "radio",
45
44
  name: n.name || ((d = e(l)) == null ? void 0 : d.name),
46
45
  disabled: e(m),
47
- onFocus: o[1] || (o[1] = (i) => a.value = !0),
48
- onBlur: o[2] || (o[2] = (i) => a.value = !1)
46
+ onFocus: o[1] || (o[1] = (i) => s.value = !0),
47
+ onBlur: o[2] || (o[2] = (i) => s.value = !1)
49
48
  }, null, 42, M), [
50
- [g, e(s)]
49
+ [g, e(a)]
51
50
  ]),
52
51
  u("span", {
53
52
  class: r(e(t).be("button", "inner")),
54
- style: k(e(s) === n.label ? c.value : {}),
53
+ style: k(e(a) === n.label ? y.value : {}),
55
54
  onKeydown: o[3] || (o[3] = w(() => {
56
55
  }, ["stop"]))
57
56
  }, [
@@ -64,5 +63,5 @@ const M = ["value", "name", "disabled"], F = b({
64
63
  }
65
64
  });
66
65
  export {
67
- J as default
66
+ I as default
68
67
  };
@@ -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
  };