vft 0.0.511 → 0.0.513

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 (149) hide show
  1. package/dist/index.css +1 -1
  2. package/es/components/autocomplete/autocomplete.vue.d.ts +2 -2
  3. package/es/components/autocomplete/index.d.ts +6 -6
  4. package/es/components/button/index.d.ts +9 -9
  5. package/es/components/cascader/cascader.vue2.js +202 -203
  6. package/es/components/cascader-panel/menu.vue2.js +49 -50
  7. package/es/components/clamp-toggle/clamp-toggle.vue2.js +18 -19
  8. package/es/components/color-picker/color-picker.vue2.js +133 -134
  9. package/es/components/config-provider/config-provider.vue.d.ts +0 -2
  10. package/es/components/config-provider/config-provider.vue2.js +4 -5
  11. package/es/components/config-provider/constants.d.ts +0 -1
  12. package/es/components/config-provider/constants.js +2 -3
  13. package/es/components/config-provider/hooks/use-global-config.js +30 -33
  14. package/es/components/config-provider/index.d.ts +0 -9
  15. package/es/components/config-provider/index.js +5 -6
  16. package/es/components/date-picker/composables/use-basic-date-table.js +82 -83
  17. package/es/components/date-picker/composables/use-month-range-header.js +14 -15
  18. package/es/components/date-picker/composables/use-panel-date-range.js +23 -24
  19. package/es/components/date-picker/date-picker-com/basic-month-table.vue2.js +38 -39
  20. package/es/components/date-picker/date-picker-com/basic-year-table.vue2.js +38 -39
  21. package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +183 -184
  22. package/es/components/date-picker/date-picker-com/panel-date-range.vue2.js +224 -225
  23. package/es/components/date-time-select/date-time-select.vue2.js +36 -39
  24. package/es/components/dropdown/dropdown-item-impl.vue.d.ts +1 -1
  25. package/es/components/dropdown/dropdown-item.vue.d.ts +1 -1
  26. package/es/components/dropdown/dropdown.vue.d.ts +1 -1
  27. package/es/components/dropdown/dropdown.vue2.js +67 -68
  28. package/es/components/dropdown/index.d.ts +33 -33
  29. package/es/components/empty/empty.vue2.js +38 -39
  30. package/es/components/full-screen/full-screen.vue2.js +17 -18
  31. package/es/components/image/image.vue2.js +59 -60
  32. package/es/components/image-viewer/image-viewer.vue2.js +44 -45
  33. package/es/components/index.js +97 -98
  34. package/es/components/md-container/md-container.vue2.js +74 -75
  35. package/es/components/md-container/toc.js +36 -37
  36. package/es/components/message-box/message-box.vue2.js +3 -3
  37. package/es/components/message-box/method.js +47 -48
  38. package/es/components/modal/modal-footer-action.vue2.js +24 -25
  39. package/es/components/multiple-tabs/multiple-tabs.vue2.js +15 -16
  40. package/es/components/multiple-tabs/use/use-tab-dropdown.js +53 -54
  41. package/es/components/popconfirm/index.d.ts +15 -15
  42. package/es/components/popconfirm/popconfirm.vue.d.ts +1 -1
  43. package/es/components/popconfirm/popconfirm.vue2.js +39 -40
  44. package/es/components/search/search.vue2.js +50 -51
  45. package/es/components/select/index.d.ts +4 -4
  46. package/es/components/select/select.vue.d.ts +4 -4
  47. package/es/components/select/useSelect.d.ts +4 -4
  48. package/es/components/select/useSelect.js +231 -232
  49. package/es/components/time-picker/time-picker-com/panel-time-pick.vue2.js +65 -66
  50. package/es/components/time-picker/time-picker-com/panel-time-range.vue2.js +133 -134
  51. package/es/components/transfer/transfer-panel.vue2.js +56 -57
  52. package/es/components/transfer/transfer.vue2.js +69 -70
  53. package/es/components/tree/tree.vue2.js +59 -60
  54. package/es/components/upload/upload-content.vue2.js +49 -50
  55. package/es/components/upload/upload-list.vue2.js +45 -46
  56. package/es/components/upload/upload.vue2.js +99 -100
  57. package/es/hooks/use-z-index/index.js +3 -3
  58. package/es/index.d.ts +0 -1
  59. package/es/index.js +1 -5
  60. package/es/package.json.d.ts +1 -1
  61. package/es/package.json.js +1 -1
  62. package/lib/components/autocomplete/autocomplete.vue.d.ts +2 -2
  63. package/lib/components/autocomplete/index.d.ts +6 -6
  64. package/lib/components/button/index.d.ts +9 -9
  65. package/lib/components/cascader/cascader.vue2.cjs +1 -1
  66. package/lib/components/cascader-panel/menu.vue2.cjs +4 -4
  67. package/lib/components/clamp-toggle/clamp-toggle.vue2.cjs +1 -1
  68. package/lib/components/color-picker/color-picker.vue2.cjs +1 -1
  69. package/lib/components/config-provider/config-provider.vue.d.ts +0 -2
  70. package/lib/components/config-provider/config-provider.vue2.cjs +1 -1
  71. package/lib/components/config-provider/constants.cjs +1 -1
  72. package/lib/components/config-provider/constants.d.ts +0 -1
  73. package/lib/components/config-provider/hooks/use-global-config.cjs +1 -1
  74. package/lib/components/config-provider/index.cjs +1 -1
  75. package/lib/components/config-provider/index.d.ts +0 -9
  76. package/lib/components/date-picker/composables/use-basic-date-table.cjs +1 -1
  77. package/lib/components/date-picker/composables/use-month-range-header.cjs +1 -1
  78. package/lib/components/date-picker/composables/use-panel-date-range.cjs +1 -1
  79. package/lib/components/date-picker/date-picker-com/basic-month-table.vue2.cjs +1 -1
  80. package/lib/components/date-picker/date-picker-com/basic-year-table.vue2.cjs +1 -1
  81. package/lib/components/date-picker/date-picker-com/panel-date-pick.vue2.cjs +1 -1
  82. package/lib/components/date-picker/date-picker-com/panel-date-range.vue2.cjs +1 -1
  83. package/lib/components/date-time-select/date-time-select.vue2.cjs +1 -1
  84. package/lib/components/dropdown/dropdown-item-impl.vue.d.ts +1 -1
  85. package/lib/components/dropdown/dropdown-item.vue.d.ts +1 -1
  86. package/lib/components/dropdown/dropdown.vue.d.ts +1 -1
  87. package/lib/components/dropdown/dropdown.vue2.cjs +1 -1
  88. package/lib/components/dropdown/index.d.ts +33 -33
  89. package/lib/components/empty/empty.vue2.cjs +1 -1
  90. package/lib/components/full-screen/full-screen.vue2.cjs +1 -1
  91. package/lib/components/image/image.vue2.cjs +1 -1
  92. package/lib/components/image-viewer/image-viewer.vue2.cjs +1 -1
  93. package/lib/components/index.cjs +1 -1
  94. package/lib/components/md-container/md-container.vue2.cjs +1 -1
  95. package/lib/components/md-container/toc.cjs +1 -1
  96. package/lib/components/message-box/message-box.vue2.cjs +1 -1
  97. package/lib/components/message-box/method.cjs +1 -1
  98. package/lib/components/modal/modal-footer-action.vue2.cjs +1 -1
  99. package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
  100. package/lib/components/multiple-tabs/use/use-tab-dropdown.cjs +1 -1
  101. package/lib/components/popconfirm/index.d.ts +15 -15
  102. package/lib/components/popconfirm/popconfirm.vue.d.ts +1 -1
  103. package/lib/components/popconfirm/popconfirm.vue2.cjs +1 -1
  104. package/lib/components/search/search.vue2.cjs +1 -1
  105. package/lib/components/select/index.d.ts +4 -4
  106. package/lib/components/select/select.vue.d.ts +4 -4
  107. package/lib/components/select/useSelect.cjs +1 -1
  108. package/lib/components/select/useSelect.d.ts +4 -4
  109. package/lib/components/time-picker/time-picker-com/panel-time-pick.vue2.cjs +1 -1
  110. package/lib/components/time-picker/time-picker-com/panel-time-range.vue2.cjs +1 -1
  111. package/lib/components/transfer/transfer-panel.vue2.cjs +1 -1
  112. package/lib/components/transfer/transfer.vue2.cjs +1 -1
  113. package/lib/components/tree/tree.vue2.cjs +1 -1
  114. package/lib/components/upload/upload-content.vue2.cjs +1 -1
  115. package/lib/components/upload/upload-list.vue2.cjs +1 -1
  116. package/lib/components/upload/upload.vue2.cjs +1 -1
  117. package/lib/index.cjs +1 -1
  118. package/lib/index.d.ts +0 -1
  119. package/lib/package.json.cjs +1 -1
  120. package/lib/package.json.d.ts +1 -1
  121. package/package.json +2 -2
  122. package/theme-style/index.css +1 -1
  123. package/theme-style/src/message-box.scss +2 -2
  124. package/theme-style/src/table.scss +2 -0
  125. package/theme-style/vft-message-box.css +1 -1
  126. package/theme-style/vft-table.css +1 -1
  127. package/web-types.json +1 -1
  128. package/es/locale/index.d.js +0 -1
  129. package/es/locale/index.d.ts +0 -26
  130. package/es/locale/index.js +0 -10
  131. package/es/locale/lang/en.d.ts +0 -183
  132. package/es/locale/lang/en.js +0 -241
  133. package/es/locale/lang/zh-cn.d.ts +0 -183
  134. package/es/locale/lang/zh-cn.js +0 -241
  135. package/es/locale/lang/zh-tw.d.ts +0 -183
  136. package/es/locale/lang/zh-tw.js +0 -241
  137. package/es/locale/use-locale.d.ts +0 -17
  138. package/es/locale/use-locale.js +0 -56
  139. package/lib/locale/index.cjs +0 -1
  140. package/lib/locale/index.d.cjs +0 -1
  141. package/lib/locale/index.d.ts +0 -26
  142. package/lib/locale/lang/en.cjs +0 -1
  143. package/lib/locale/lang/en.d.ts +0 -183
  144. package/lib/locale/lang/zh-cn.cjs +0 -1
  145. package/lib/locale/lang/zh-cn.d.ts +0 -183
  146. package/lib/locale/lang/zh-tw.cjs +0 -1
  147. package/lib/locale/lang/zh-tw.d.ts +0 -183
  148. package/lib/locale/use-locale.cjs +0 -1
  149. package/lib/locale/use-locale.d.ts +0 -17
@@ -1,22 +1,21 @@
1
1
  import { defineComponent as F, ref as u, computed as A, createVNode as e, Fragment as E } from "vue";
2
2
  import { isArray as Y } from "@vft/utils";
3
- import { VftDatePicker as q } from "../date-picker/index.js";
4
- import { VftDropdown as z } from "../dropdown/index.js";
3
+ import { VftDatePicker as S } from "../date-picker/index.js";
4
+ import { VftDropdown as q } from "../dropdown/index.js";
5
5
  import { VftIcon as k } from "../icon/index.js";
6
6
  import "@vueuse/core";
7
7
  import "../config-provider/hooks/use-global-config.js";
8
8
  import "lodash-es";
9
9
  import "../form/index.js";
10
- import { useNamespace as B } from "../../hooks/use-namespace/index.js";
10
+ import { useNamespace as z } from "../../hooks/use-namespace/index.js";
11
11
  import "../../hooks/use-model-toggle/index.js";
12
12
  import "@popperjs/core";
13
13
  import "../../hooks/use-z-index/index.js";
14
- import G from "../../locale/use-locale.js";
15
14
  import v from "dayjs";
16
- const J = F({
15
+ const B = F({
17
16
  name: "vft-date-time-select"
18
- }), ce = /* @__PURE__ */ F({
19
- ...J,
17
+ }), oe = /* @__PURE__ */ F({
18
+ ...B,
20
19
  props: {
21
20
  dateList: {
22
21
  default: () => []
@@ -29,72 +28,70 @@ const J = F({
29
28
  setup(d, {
30
29
  emit: x
31
30
  }) {
32
- const H = x, l = B("date-time-select"), {
33
- t: I
34
- } = G(), C = u(!1), g = u(), M = u(I("vft.dateTimeSelect.placeholder")), t = u("");
35
- function N(o) {
31
+ const H = x, o = z("date-time-select"), C = u(!1), g = u(), I = u("请选择时间"), t = u("");
32
+ function M(n) {
36
33
  const {
37
34
  count: a,
38
35
  type: h,
39
36
  format: f,
40
- dateRange: n = !0,
37
+ dateRange: l = !0,
41
38
  startOfType: O,
42
39
  endOfType: V
43
- } = o;
40
+ } = n;
44
41
  let m, r, L;
45
- const p = f || d.defaultFormat, s = v().format(p), T = (i, j = !0) => {
42
+ const p = f || d.defaultFormat, s = v().format(p), R = (i, j = !0) => {
46
43
  let D;
47
- const R = j ? "startOf" : "endOf";
48
- return i === "week" ? D = v().add(a, i)[R](i).add(1, "day").format(p) : D = v().add(a, i)[R](i).format(p), D;
44
+ const T = j ? "startOf" : "endOf";
45
+ return i === "week" ? D = v().add(a, i)[T](i).add(1, "day").format(p) : D = v().add(a, i)[T](i).format(p), D;
49
46
  };
50
- O && (m = T(O)), V && (r = T(V, !1)), L = v().add(a, h).format(p);
47
+ O && (m = R(O)), V && (r = R(V, !1)), L = v().add(a, h).format(p);
51
48
  const c = m || r || L;
52
- return n ? m && r ? [c, r] : a > 0 ? [c !== r && r || s, c] : a === 0 ? [m || s, r || s] : [c, c !== r && r || s] : c;
49
+ return l ? m && r ? [c, r] : a > 0 ? [c !== r && r || s, c] : a === 0 ? [m || s, r || s] : [c, c !== r && r || s] : c;
53
50
  }
54
- function P(o, a) {
55
- g.value = o, y.value.handleClose(), t.value = N(a), H("change", t.value);
51
+ function N(n, a) {
52
+ g.value = n, y.value.handleClose(), t.value = M(a), H("change", t.value);
56
53
  }
57
- function S() {
54
+ function P() {
58
55
  t.value = "";
59
56
  }
60
57
  const w = A(() => Y(t.value) && t.value?.length ? `${t.value[0]} - ${t.value[1]}` : t.value), y = u();
61
- function $(o) {
62
- C.value = o;
58
+ function $(n) {
59
+ C.value = n;
63
60
  }
64
61
  const b = () => {
65
- const o = Y(d.dateList[0]) ? d.dateList : [d.dateList];
62
+ const n = Y(d.dateList[0]) ? d.dateList : [d.dateList];
66
63
  return e("div", {
67
- class: l.e("content")
68
- }, [e(E, null, [o.map((a, h) => e("div", {
64
+ class: o.e("content")
65
+ }, [e(E, null, [n.map((a, h) => e("div", {
69
66
  key: h,
70
- class: l.e("item-container")
71
- }, [a.map((f, n) => e("div", {
72
- class: [l.e("item"), l.is("active", g.value === n)],
73
- onClick: () => P(n, f)
67
+ class: o.e("item-container")
68
+ }, [a.map((f, l) => e("div", {
69
+ class: [o.e("item"), o.is("active", g.value === l)],
70
+ onClick: () => N(l, f)
74
71
  }, [e("span", {
75
- key: n
76
- }, [f.text]), g.value === n ? e(k, {
72
+ key: l
73
+ }, [f.text]), g.value === l ? e(k, {
77
74
  icon: "icon-check"
78
- }, null) : null])), e(q, {
75
+ }, null) : null])), e(S, {
79
76
  type: "daterange",
80
77
  "range-separator": "To",
81
78
  "start-placeholder": "Start date",
82
79
  "end-placeholder": "End date"
83
80
  }, null)]))])]);
84
81
  };
85
- return () => e(z, {
82
+ return () => e(q, {
86
83
  ref: y,
87
84
  trigger: "click",
88
85
  teleported: !1,
89
- class: l.b(),
86
+ class: o.b(),
90
87
  onVisibleChange: $
91
88
  }, {
92
89
  default: () => [e("span", {
93
- class: [l.e("trigger"), "cursor-pointer"]
90
+ class: [o.e("trigger"), "cursor-pointer"]
94
91
  }, [e("span", {
95
92
  class: [w.value ? "text" : "placeholder"]
96
- }, [w.value || M.value]), t.value ? e(k, {
97
- onClick: S,
93
+ }, [w.value || I.value]), t.value ? e(k, {
94
+ onClick: P,
98
95
  icon: "icon-circle-close",
99
96
  class: "hover:text-black"
100
97
  }, null) : null, t.value ? e(k, {
@@ -108,5 +105,5 @@ const J = F({
108
105
  }
109
106
  });
110
107
  export {
111
- ce as default
108
+ oe as default
112
109
  };
@@ -32,8 +32,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
32
32
  onClickimpl?: ((event: MouseEvent) => any) | undefined;
33
33
  }>, {
34
34
  disabled: boolean;
35
- command: object | string | number;
36
35
  icon: string;
36
+ command: object | string | number;
37
37
  divided: boolean;
38
38
  textValue: string;
39
39
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -30,8 +30,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
30
30
  onPointermove?: ((event: PointerEvent) => any) | undefined;
31
31
  }>, {
32
32
  disabled: boolean;
33
- command: object | string | number;
34
33
  icon: string;
34
+ command: object | string | number;
35
35
  divided: boolean;
36
36
  textValue: string;
37
37
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -43,8 +43,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
43
43
  teleported: boolean;
44
44
  }>>> & Readonly<{
45
45
  onClick?: ((val: MouseEvent) => any) | undefined;
46
- onCommand?: ((val: string) => any) | undefined;
47
46
  "onVisible-change"?: ((val: boolean) => any) | undefined;
47
+ onCommand?: ((val: string) => any) | undefined;
48
48
  }>, {
49
49
  disabled: boolean;
50
50
  maxHeight: number | string;
@@ -1,32 +1,31 @@
1
- import { defineComponent as S, getCurrentInstance as Z, ref as a, computed as b, watch as _, toRef as h, onBeforeUnmount as ee, provide as T, openBlock as $, createElementBlock as te, normalizeClass as x, unref as o, createVNode as r, createSlots as oe, withCtx as n, renderSlot as y, createBlock as ne, mergeProps as I, createCommentVNode as re } from "vue";
2
- import { VftButtonGroup as le, VftButton as O } from "../button/index.js";
1
+ import { defineComponent as S, getCurrentInstance as X, ref as a, computed as b, watch as Z, toRef as h, onBeforeUnmount as _, provide as T, openBlock as $, createElementBlock as ee, normalizeClass as x, unref as o, createVNode as r, createSlots as te, withCtx as n, renderSlot as y, createBlock as oe, mergeProps as I, createCommentVNode as ne } from "vue";
2
+ import { VftButtonGroup as re, VftButton as O } from "../button/index.js";
3
3
  import "../form/index.js";
4
- import { VftIcon as ie } from "../icon/index.js";
5
- import ae from "../roving-focus-group/roving-focus-group.vue2.js";
4
+ import { VftIcon as le } from "../icon/index.js";
5
+ import ie from "../roving-focus-group/roving-focus-group.vue2.js";
6
6
  import "../roving-focus-group/roving-focus-group-impl.vue2.js";
7
7
  import "../roving-focus-group/roving-focus-item.vue2.js";
8
8
  import "../roving-focus-group/types.js";
9
9
  import { EVENT_CODE as w } from "../../constants/aria.js";
10
- import { VftScrollbar as de } from "../scrollbar/index.js";
11
- import { OnlyChild as fe } from "../slot/only-child.js";
12
- import { VftTooltip as ue } from "../tooltip/index.js";
10
+ import { VftScrollbar as ae } from "../scrollbar/index.js";
11
+ import { OnlyChild as de } from "../slot/only-child.js";
12
+ import { VftTooltip as fe } from "../tooltip/index.js";
13
13
  import "@vueuse/core";
14
- import { isArray as se } from "@vft/utils";
15
- import { addUnit as ce } from "../../utils/helper.js";
14
+ import { isArray as ue } from "@vft/utils";
15
+ import { addUnit as se } from "../../utils/helper.js";
16
16
  import "lodash-es";
17
- import { useId as me } from "../../hooks/use-id/index.js";
18
- import { useNamespace as pe } from "../../hooks/use-namespace/index.js";
17
+ import { useId as ce } from "../../hooks/use-id/index.js";
18
+ import { useNamespace as me } from "../../hooks/use-namespace/index.js";
19
19
  import "../../hooks/use-model-toggle/index.js";
20
20
  import "@popperjs/core";
21
21
  import "../../hooks/use-z-index/index.js";
22
- import ve from "../../locale/use-locale.js";
23
- import { DROPDOWN_INJECTION_KEY as ge } from "./tokens.js";
24
- import { VftCollection as be } from "./types.js";
25
- import { useFormSize as he } from "../form/hooks/use-form-common-props.js";
26
- const ye = S({
22
+ import { DROPDOWN_INJECTION_KEY as pe } from "./tokens.js";
23
+ import { VftCollection as ve } from "./types.js";
24
+ import { useFormSize as ge } from "../form/hooks/use-form-common-props.js";
25
+ const be = S({
27
26
  name: "vft-dropdown"
28
- }), Me = /* @__PURE__ */ S({
29
- ...ye,
27
+ }), Ue = /* @__PURE__ */ S({
28
+ ...be,
30
29
  props: {
31
30
  trigger: { default: "hover" },
32
31
  effect: { default: "light" },
@@ -49,99 +48,99 @@ const ye = S({
49
48
  teleported: { type: Boolean, default: !0 }
50
49
  },
51
50
  emits: ["visible-change", "command", "click"],
52
- setup(e, { expose: z, emit: L }) {
53
- const { t: R } = ve(), d = e, u = L, l = pe("dropdown"), V = Z(), i = a(), C = a(), m = a(null), f = a(null), D = a(null), p = a(null), k = a(!1), N = [w.enter, w.space, w.down], H = b(() => ({
54
- maxHeight: ce(d.maxHeight)
55
- })), P = me().value, v = b(() => d.id || P);
56
- _(
51
+ setup(e, { expose: z, emit: R }) {
52
+ const d = e, u = R, l = me("dropdown"), L = X(), i = a(), C = a(), m = a(null), f = a(null), V = a(null), p = a(null), k = a(!1), N = [w.enter, w.space, w.down], D = b(() => ({
53
+ maxHeight: se(d.maxHeight)
54
+ })), H = ce().value, v = b(() => d.id || H);
55
+ Z(
57
56
  [i, h(d, "trigger")],
58
57
  ([t, c], [B]) => {
59
- const X = se(c) ? c : [c];
58
+ const Q = ue(c) ? c : [c];
60
59
  B?.$el?.removeEventListener && B.$el.removeEventListener(
61
60
  "pointerenter",
62
61
  s
63
62
  ), t?.$el?.removeEventListener && t.$el.removeEventListener(
64
63
  "pointerenter",
65
64
  s
66
- ), t?.$el?.addEventListener && X.includes("hover") && t.$el.addEventListener(
65
+ ), t?.$el?.addEventListener && Q.includes("hover") && t.$el.addEventListener(
67
66
  "pointerenter",
68
67
  s
69
68
  );
70
69
  },
71
70
  { immediate: !0 }
72
- ), ee(() => {
71
+ ), _(() => {
73
72
  i.value?.$el?.removeEventListener && i.value.$el.removeEventListener(
74
73
  "pointerenter",
75
74
  s
76
75
  );
77
76
  });
78
- function A() {
77
+ function P() {
79
78
  E();
80
79
  }
81
80
  function E() {
82
81
  m.value?.onClose();
83
82
  }
84
- function F() {
83
+ function A() {
85
84
  m.value?.onOpen();
86
85
  }
87
- const g = he();
88
- function K(...t) {
86
+ const g = ge();
87
+ function F(...t) {
89
88
  u("command", ...t);
90
89
  }
91
90
  function s() {
92
91
  i.value?.$el?.focus();
93
92
  }
94
- function U() {
93
+ function K() {
95
94
  }
96
- function G() {
95
+ function U() {
97
96
  o(f)?.focus(), p.value = null;
98
97
  }
99
- function J(t) {
98
+ function G(t) {
100
99
  p.value = t;
101
100
  }
102
- function M(t) {
101
+ function J(t) {
103
102
  k.value || (t.preventDefault(), t.stopImmediatePropagation());
104
103
  }
105
- function W() {
104
+ function M() {
106
105
  u("visible-change", !0);
107
106
  }
108
- function Y(t) {
107
+ function W(t) {
109
108
  t?.type === "keydown" && f.value?.focus();
110
109
  }
111
- function j() {
110
+ function Y() {
112
111
  u("visible-change", !1);
113
112
  }
114
- T(ge, {
113
+ T(pe, {
115
114
  contentRef: f,
116
115
  role: b(() => d.role),
117
116
  triggerId: v,
118
117
  isUsingKeyboard: k,
119
- onItemEnter: U,
120
- onItemLeave: G
118
+ onItemEnter: K,
119
+ onItemLeave: U
121
120
  }), T("elDropdown", {
122
- instance: V,
121
+ instance: L,
123
122
  dropdownSize: g,
124
- handleClick: A,
125
- commandHandler: K,
123
+ handleClick: P,
124
+ commandHandler: F,
126
125
  trigger: h(d, "trigger"),
127
126
  hideOnClick: h(d, "hideOnClick")
128
127
  });
129
- const q = (t) => {
128
+ const j = (t) => {
130
129
  t.preventDefault(), f.value?.focus?.({
131
130
  preventScroll: !0
132
131
  });
133
- }, Q = (t) => {
132
+ }, q = (t) => {
134
133
  u("click", t);
135
134
  };
136
135
  return z({
137
136
  handleClose: E,
138
- handleOpen: F,
137
+ handleOpen: A,
139
138
  // Todo
140
- onFocusAfterTrapped: q
141
- }), (t, c) => ($(), te("div", {
139
+ onFocusAfterTrapped: j
140
+ }), (t, c) => ($(), ee("div", {
142
141
  class: x([o(l).b(), o(l).is("disabled", e.disabled)])
143
142
  }, [
144
- r(o(ue), {
143
+ r(o(fe), {
145
144
  ref_key: "popperRef",
146
145
  ref: m,
147
146
  role: e.role,
@@ -166,28 +165,28 @@ const ye = S({
166
165
  teleported: e.teleported,
167
166
  pure: "",
168
167
  persistent: "",
169
- onBeforeShow: W,
170
- onShow: Y,
171
- onBeforeHide: j
172
- }, oe({
168
+ onBeforeShow: M,
169
+ onShow: W,
170
+ onBeforeHide: Y
171
+ }, te({
173
172
  content: n(() => [
174
- r(o(de), {
173
+ r(o(ae), {
175
174
  ref_key: "scrollbar",
176
- ref: D,
177
- "wrap-style": H.value,
175
+ ref: V,
176
+ "wrap-style": D.value,
178
177
  tag: "div",
179
178
  "view-class": [o(l).e("list"), "test"]
180
179
  }, {
181
180
  default: n(() => [
182
- r(o(ae), {
181
+ r(o(ie), {
183
182
  loop: e.loop,
184
183
  "current-tab-id": p.value,
185
184
  orientation: "horizontal",
186
- onCurrentTabIdChange: J,
187
- onEntryFocus: M
185
+ onCurrentTabIdChange: G,
186
+ onEntryFocus: J
188
187
  }, {
189
188
  default: n(() => [
190
- r(o(be), null, {
189
+ r(o(ve), null, {
191
190
  default: n(() => [
192
191
  y(t.$slots, "dropdown")
193
192
  ]),
@@ -205,7 +204,7 @@ const ye = S({
205
204
  e.splitButton ? void 0 : {
206
205
  name: "default",
207
206
  fn: n(() => [
208
- r(o(fe), {
207
+ r(o(de), {
209
208
  id: v.value,
210
209
  ref_key: "triggeringElementRef",
211
210
  ref: i,
@@ -221,7 +220,7 @@ const ye = S({
221
220
  key: "0"
222
221
  }
223
222
  ]), 1032, ["role", "effect", "popper-options", "hide-after", "placement", "popper-class", "reference-element", "trigger", "trigger-target-el", "show-after", "virtual-ref", "virtual-triggering", "disabled", "transition", "teleported"]),
224
- e.splitButton ? ($(), ne(o(le), { key: 0 }, {
223
+ e.splitButton ? ($(), oe(o(re), { key: 0 }, {
225
224
  default: n(() => [
226
225
  r(o(O), I({
227
226
  ref_key: "referenceElementRef",
@@ -231,7 +230,7 @@ const ye = S({
231
230
  type: e.type,
232
231
  disabled: e.disabled,
233
232
  tabindex: e.tabindex,
234
- onClick: Q
233
+ onClick: q
235
234
  }), {
236
235
  default: n(() => [
237
236
  y(t.$slots, "default")
@@ -249,22 +248,22 @@ const ye = S({
249
248
  class: o(l).e("caret-button"),
250
249
  disabled: e.disabled,
251
250
  tabindex: e.tabindex,
252
- "aria-label": o(R)("toggleDropdown")
251
+ "aria-label": "切换下拉菜单"
253
252
  }), {
254
253
  default: n(() => [
255
- r(o(ie), {
254
+ r(o(le), {
256
255
  class: x(o(l).e("icon")),
257
256
  icon: "icon-arrow-down"
258
257
  }, null, 8, ["class"])
259
258
  ]),
260
259
  _: 1
261
- }, 16, ["id", "size", "type", "class", "disabled", "tabindex", "aria-label"])
260
+ }, 16, ["id", "size", "type", "class", "disabled", "tabindex"])
262
261
  ]),
263
262
  _: 3
264
- })) : re("", !0)
263
+ })) : ne("", !0)
265
264
  ], 2));
266
265
  }
267
266
  });
268
267
  export {
269
- Me as default
268
+ Ue as default
270
269
  };
@@ -70,8 +70,8 @@ export declare const VftDropdown: import("vft/es/utils").SFCWithInstall<{
70
70
  buttonProps: ButtonProps;
71
71
  }>> & Readonly<{
72
72
  onClick?: ((val: MouseEvent) => any) | undefined;
73
- onCommand?: ((val: string) => any) | undefined;
74
73
  "onVisible-change"?: ((val: boolean) => any) | undefined;
74
+ onCommand?: ((val: string) => any) | undefined;
75
75
  }>, {
76
76
  handleClose: () => void;
77
77
  handleOpen: () => void;
@@ -172,8 +172,8 @@ export declare const VftDropdown: import("vft/es/utils").SFCWithInstall<{
172
172
  buttonProps: ButtonProps;
173
173
  }>> & Readonly<{
174
174
  onClick?: ((val: MouseEvent) => any) | undefined;
175
- onCommand?: ((val: string) => any) | undefined;
176
175
  "onVisible-change"?: ((val: boolean) => any) | undefined;
176
+ onCommand?: ((val: string) => any) | undefined;
177
177
  }>, {
178
178
  handleClose: () => void;
179
179
  handleOpen: () => void;
@@ -267,8 +267,8 @@ export declare const VftDropdown: import("vft/es/utils").SFCWithInstall<{
267
267
  buttonProps: ButtonProps;
268
268
  }>> & Readonly<{
269
269
  onClick?: ((val: MouseEvent) => any) | undefined;
270
- onCommand?: ((val: string) => any) | undefined;
271
270
  "onVisible-change"?: ((val: boolean) => any) | undefined;
271
+ onCommand?: ((val: string) => any) | undefined;
272
272
  }>, {
273
273
  handleClose: () => void;
274
274
  handleOpen: () => void;
@@ -303,14 +303,14 @@ export declare const VftDropdown: import("vft/es/utils").SFCWithInstall<{
303
303
  type: import("vue").PropType<boolean>;
304
304
  default: boolean;
305
305
  };
306
- command: {
307
- type: import("vue").PropType<string | number | object>;
308
- default: () => {};
309
- };
310
306
  icon: {
311
307
  type: import("vue").PropType<string>;
312
308
  default: string;
313
309
  };
310
+ command: {
311
+ type: import("vue").PropType<string | number | object>;
312
+ default: () => {};
313
+ };
314
314
  divided: {
315
315
  type: import("vue").PropType<boolean>;
316
316
  default: boolean;
@@ -329,8 +329,8 @@ export declare const VftDropdown: import("vft/es/utils").SFCWithInstall<{
329
329
  click: (event: PointerEvent) => void;
330
330
  }, import("vue").PublicProps, {
331
331
  disabled: boolean;
332
- command: object | string | number;
333
332
  icon: string;
333
+ command: object | string | number;
334
334
  divided: boolean;
335
335
  textValue: string;
336
336
  }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
@@ -345,14 +345,14 @@ export declare const VftDropdown: import("vft/es/utils").SFCWithInstall<{
345
345
  type: import("vue").PropType<boolean>;
346
346
  default: boolean;
347
347
  };
348
- command: {
349
- type: import("vue").PropType<string | number | object>;
350
- default: () => {};
351
- };
352
348
  icon: {
353
349
  type: import("vue").PropType<string>;
354
350
  default: string;
355
351
  };
352
+ command: {
353
+ type: import("vue").PropType<string | number | object>;
354
+ default: () => {};
355
+ };
356
356
  divided: {
357
357
  type: import("vue").PropType<boolean>;
358
358
  default: boolean;
@@ -367,8 +367,8 @@ export declare const VftDropdown: import("vft/es/utils").SFCWithInstall<{
367
367
  onPointermove?: ((event: PointerEvent) => any) | undefined;
368
368
  }>, {}, {}, {}, {}, {
369
369
  disabled: boolean;
370
- command: object | string | number;
371
370
  icon: string;
371
+ command: object | string | number;
372
372
  divided: boolean;
373
373
  textValue: string;
374
374
  }>;
@@ -380,14 +380,14 @@ export declare const VftDropdown: import("vft/es/utils").SFCWithInstall<{
380
380
  type: import("vue").PropType<boolean>;
381
381
  default: boolean;
382
382
  };
383
- command: {
384
- type: import("vue").PropType<string | number | object>;
385
- default: () => {};
386
- };
387
383
  icon: {
388
384
  type: import("vue").PropType<string>;
389
385
  default: string;
390
386
  };
387
+ command: {
388
+ type: import("vue").PropType<string | number | object>;
389
+ default: () => {};
390
+ };
391
391
  divided: {
392
392
  type: import("vue").PropType<boolean>;
393
393
  default: boolean;
@@ -406,8 +406,8 @@ export declare const VftDropdown: import("vft/es/utils").SFCWithInstall<{
406
406
  click: (event: PointerEvent) => void;
407
407
  }, string, {
408
408
  disabled: boolean;
409
- command: object | string | number;
410
409
  icon: string;
410
+ command: object | string | number;
411
411
  divided: boolean;
412
412
  textValue: string;
413
413
  }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
@@ -451,14 +451,14 @@ export declare const VftDropdownItem: import("vft/es/utils").SFCWithInstall<{
451
451
  type: import("vue").PropType<boolean>;
452
452
  default: boolean;
453
453
  };
454
- command: {
455
- type: import("vue").PropType<string | number | object>;
456
- default: () => {};
457
- };
458
454
  icon: {
459
455
  type: import("vue").PropType<string>;
460
456
  default: string;
461
457
  };
458
+ command: {
459
+ type: import("vue").PropType<string | number | object>;
460
+ default: () => {};
461
+ };
462
462
  divided: {
463
463
  type: import("vue").PropType<boolean>;
464
464
  default: boolean;
@@ -477,8 +477,8 @@ export declare const VftDropdownItem: import("vft/es/utils").SFCWithInstall<{
477
477
  click: (event: PointerEvent) => void;
478
478
  }, import("vue").PublicProps, {
479
479
  disabled: boolean;
480
- command: object | string | number;
481
480
  icon: string;
481
+ command: object | string | number;
482
482
  divided: boolean;
483
483
  textValue: string;
484
484
  }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
@@ -493,14 +493,14 @@ export declare const VftDropdownItem: import("vft/es/utils").SFCWithInstall<{
493
493
  type: import("vue").PropType<boolean>;
494
494
  default: boolean;
495
495
  };
496
- command: {
497
- type: import("vue").PropType<string | number | object>;
498
- default: () => {};
499
- };
500
496
  icon: {
501
497
  type: import("vue").PropType<string>;
502
498
  default: string;
503
499
  };
500
+ command: {
501
+ type: import("vue").PropType<string | number | object>;
502
+ default: () => {};
503
+ };
504
504
  divided: {
505
505
  type: import("vue").PropType<boolean>;
506
506
  default: boolean;
@@ -515,8 +515,8 @@ export declare const VftDropdownItem: import("vft/es/utils").SFCWithInstall<{
515
515
  onPointermove?: ((event: PointerEvent) => any) | undefined;
516
516
  }>, {}, {}, {}, {}, {
517
517
  disabled: boolean;
518
- command: object | string | number;
519
518
  icon: string;
519
+ command: object | string | number;
520
520
  divided: boolean;
521
521
  textValue: string;
522
522
  }>;
@@ -528,14 +528,14 @@ export declare const VftDropdownItem: import("vft/es/utils").SFCWithInstall<{
528
528
  type: import("vue").PropType<boolean>;
529
529
  default: boolean;
530
530
  };
531
- command: {
532
- type: import("vue").PropType<string | number | object>;
533
- default: () => {};
534
- };
535
531
  icon: {
536
532
  type: import("vue").PropType<string>;
537
533
  default: string;
538
534
  };
535
+ command: {
536
+ type: import("vue").PropType<string | number | object>;
537
+ default: () => {};
538
+ };
539
539
  divided: {
540
540
  type: import("vue").PropType<boolean>;
541
541
  default: boolean;
@@ -554,8 +554,8 @@ export declare const VftDropdownItem: import("vft/es/utils").SFCWithInstall<{
554
554
  click: (event: PointerEvent) => void;
555
555
  }, string, {
556
556
  disabled: boolean;
557
- command: object | string | number;
558
557
  icon: string;
558
+ command: object | string | number;
559
559
  divided: boolean;
560
560
  textValue: string;
561
561
  }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {