vft 0.0.89 → 0.0.91

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (240) hide show
  1. package/attributes.json +1 -1
  2. package/es/comp-resolver.js +20 -29
  3. package/es/components/affix/affix.vue2.js +34 -34
  4. package/es/components/alert/alert.vue2.js +44 -44
  5. package/es/components/avatar/avatar.vue2.js +28 -28
  6. package/es/components/backtop/backtop.vue2.js +11 -11
  7. package/es/components/button/button-group.vue2.js +8 -8
  8. package/es/components/button/button.vue2.js +39 -39
  9. package/es/components/card/card.vue2.js +20 -20
  10. package/es/components/check-tag/check-tag.vue2.js +14 -14
  11. package/es/components/checkbox/checkbox-button.vue2.js +61 -61
  12. package/es/components/checkbox/checkbox-group.vue2.js +27 -27
  13. package/es/components/checkbox/checkbox.vue2.js +81 -81
  14. package/es/components/clamp/clamp.vue2.js +59 -59
  15. package/es/components/clamp-toggle/clamp-toggle.vue2.js +25 -25
  16. package/es/components/col/col.vue2.js +33 -33
  17. package/es/components/color-picker/color-picker.vue2.js +126 -126
  18. package/es/components/color-picker/components/alpha-slider.vue2.js +12 -12
  19. package/es/components/config-provider/config-provider.vue2.js +29 -29
  20. package/es/components/container/aside.vue2.js +9 -9
  21. package/es/components/container/container.vue2.js +11 -11
  22. package/es/components/container/footer.vue2.js +8 -8
  23. package/es/components/container/header.vue2.js +9 -9
  24. package/es/components/context-menu/context-menu.vue2.js +29 -29
  25. package/es/components/date-picker/date-picker-com/basic-date-table.vue2.js +53 -53
  26. package/es/components/date-picker/date-picker-com/basic-month-table.vue2.js +19 -19
  27. package/es/components/date-picker/date-picker-com/basic-year-table.vue2.js +32 -32
  28. package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +168 -168
  29. package/es/components/date-picker/date-picker-com/panel-date-range.vue2.js +89 -89
  30. package/es/components/date-picker/date-picker-com/panel-month-range.vue2.js +38 -38
  31. package/es/components/descriptions/description-item.vue2.js +16 -16
  32. package/es/components/descriptions/description.vue2.js +54 -54
  33. package/es/components/descriptions/descriptions-row.vue2.js +24 -24
  34. package/es/components/dialog/dialog-content.vue2.js +30 -30
  35. package/es/components/dialog/dialog.vue2.js +64 -64
  36. package/es/components/divider/divider.vue2.js +20 -20
  37. package/es/components/dropdown/dropdown.vue.js +2 -127
  38. package/es/components/dropdown/dropdown.vue2.js +234 -181
  39. package/es/components/dropdown/index.js +10 -17
  40. package/es/components/dropdown/style/css.js +5 -0
  41. package/es/components/dropdown/style/index.js +5 -0
  42. package/es/components/dropdown/tokens.js +1 -1
  43. package/es/components/empty/empty.vue2.js +27 -27
  44. package/es/components/exception/exception.vue2.js +19 -19
  45. package/es/components/footer-layout/footer-layout.vue2.js +1 -1
  46. package/es/components/form/form-item.vue2.js +77 -77
  47. package/es/components/form/form.vue2.js +37 -37
  48. package/es/components/full-screen/full-screen.vue2.js +26 -15
  49. package/es/components/header-layout/header-layout.vue2.js +27 -27
  50. package/es/components/horizontal-menu/horizontal-menu.vue2.js +43 -43
  51. package/es/components/icon/icon.vue2.js +24 -24
  52. package/es/components/icon-text/icon-text.vue2.js +27 -27
  53. package/es/components/iframe-layout/iframe-layout.vue2.js +18 -18
  54. package/es/components/iframe-layout/iframe-page.vue2.js +11 -11
  55. package/es/components/image/image.vue2.js +73 -73
  56. package/es/components/image-viewer/image-viewer.vue2.js +109 -109
  57. package/es/components/index.js +145 -150
  58. package/es/components/input/input.vue2.js +175 -175
  59. package/es/components/link/link.vue2.js +27 -27
  60. package/es/components/list-cell/list-cell.vue2.js +8 -8
  61. package/es/components/logo/logo.vue2.js +27 -27
  62. package/es/components/md-container/md-container.vue2.js +1 -1
  63. package/es/components/md-vue-playground/md-vue-playground.vue2.js +16 -16
  64. package/es/components/menu/menu-item-group.vue2.js +15 -15
  65. package/es/components/menu/menu-item.vue2.js +56 -56
  66. package/es/components/menu/menu.vue2.js +20 -20
  67. package/es/components/menu/sub-menu.vue2.js +16 -16
  68. package/es/components/message/message.vue2.js +81 -81
  69. package/es/components/multiple-tabs/multiple-tabs.vue2.js +12 -12
  70. package/es/components/multiple-tabs/tab-content.vue2.js +16 -16
  71. package/es/components/overlay/overlay.vue2.js +14 -14
  72. package/es/components/page-wrapper/page-wrapper.vue2.js +12 -12
  73. package/es/components/pagination/components/jumper.vue2.js +22 -22
  74. package/es/components/pagination/components/next.vue2.js +12 -12
  75. package/es/components/pagination/components/pager.vue2.js +75 -75
  76. package/es/components/pagination/components/prev.vue2.js +13 -13
  77. package/es/components/pagination/components/sizes.vue2.js +11 -11
  78. package/es/components/pagination/components/total.vue2.js +8 -8
  79. package/es/components/pagination/pagination.vue2.js +28 -28
  80. package/es/components/popconfirm/popconfirm.vue2.js +50 -50
  81. package/es/components/popover/popover.vue2.js +44 -44
  82. package/es/components/popper/arrow.vue2.js +2 -2
  83. package/es/components/popper/content.vue2.js +34 -34
  84. package/es/components/popper/popper.vue2.js +5 -5
  85. package/es/components/popper/trigger.vue2.js +48 -48
  86. package/es/components/qrcode/qrcode.vue2.js +35 -35
  87. package/es/components/radio/radio-button.vue2.js +28 -28
  88. package/es/components/radio/radio-group.vue2.js +26 -26
  89. package/es/components/radio/radio.vue2.js +44 -44
  90. package/es/components/result/result.vue2.js +10 -10
  91. package/es/components/router-view-content/router-view-content.vue2.js +20 -20
  92. package/es/components/row/row.vue2.js +19 -19
  93. package/es/components/scrollbar/bar.vue2.js +19 -19
  94. package/es/components/scrollbar/scrollbar.vue2.js +67 -67
  95. package/es/components/scrollbar/thumb.vue2.js +41 -41
  96. package/es/components/search/search.vue2.js +65 -65
  97. package/es/components/side-menu/side-menu.vue2.js +36 -36
  98. package/es/components/skeleton/skeleton-item.vue2.js +13 -13
  99. package/es/components/skeleton/skeleton.vue2.js +19 -19
  100. package/es/components/switch/switch.vue2.js +128 -128
  101. package/es/components/table/index.js +5 -3
  102. package/es/components/table/table.vue2.js +70 -70
  103. package/es/components/tabs/tab-bar.vue2.js +15 -15
  104. package/es/components/tabs/tab-nav.vue2.js +33 -33
  105. package/es/components/tabs/tab-pane.vue2.js +21 -21
  106. package/es/components/tabs/tabs.vue2.js +64 -66
  107. package/es/components/tag/tag.vue2.js +7 -7
  108. package/es/components/time-picker/common/picker.vue2.js +14 -14
  109. package/es/components/time-picker/time-picker-com/basic-time-spinner.vue2.js +60 -60
  110. package/es/components/time-picker/time-picker-com/panel-time-pick.vue2.js +30 -30
  111. package/es/components/time-picker/time-picker-com/panel-time-range.vue2.js +57 -57
  112. package/es/components/time-select/time-select.vue2.js +29 -29
  113. package/es/components/tooltip/constants.js +1 -1
  114. package/es/components/tooltip/content.vue2.js +73 -73
  115. package/es/components/tooltip/tooltip.vue2.js +91 -91
  116. package/es/components/tooltip/trigger.vue2.js +33 -33
  117. package/es/components/verify-code/verify-code.vue2.js +25 -25
  118. package/es/index.js +208 -213
  119. package/es/package.json.js +1 -1
  120. package/lib/comp-resolver.cjs +1 -1
  121. package/lib/components/affix/affix.vue2.cjs +1 -1
  122. package/lib/components/alert/alert.vue2.cjs +1 -1
  123. package/lib/components/avatar/avatar.vue2.cjs +1 -1
  124. package/lib/components/backtop/backtop.vue2.cjs +1 -1
  125. package/lib/components/button/button-group.vue2.cjs +1 -1
  126. package/lib/components/button/button.vue2.cjs +1 -1
  127. package/lib/components/card/card.vue2.cjs +1 -1
  128. package/lib/components/check-tag/check-tag.vue2.cjs +1 -1
  129. package/lib/components/checkbox/checkbox-button.vue2.cjs +1 -1
  130. package/lib/components/checkbox/checkbox-group.vue2.cjs +1 -1
  131. package/lib/components/checkbox/checkbox.vue2.cjs +1 -1
  132. package/lib/components/clamp/clamp.vue2.cjs +1 -1
  133. package/lib/components/clamp-toggle/clamp-toggle.vue2.cjs +1 -1
  134. package/lib/components/col/col.vue2.cjs +1 -1
  135. package/lib/components/color-picker/color-picker.vue2.cjs +1 -1
  136. package/lib/components/color-picker/components/alpha-slider.vue2.cjs +1 -1
  137. package/lib/components/config-provider/config-provider.vue2.cjs +1 -1
  138. package/lib/components/container/aside.vue2.cjs +1 -1
  139. package/lib/components/container/container.vue2.cjs +1 -1
  140. package/lib/components/container/footer.vue2.cjs +1 -1
  141. package/lib/components/container/header.vue2.cjs +1 -1
  142. package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
  143. package/lib/components/date-picker/date-picker-com/basic-date-table.vue2.cjs +1 -1
  144. package/lib/components/date-picker/date-picker-com/basic-month-table.vue2.cjs +1 -1
  145. package/lib/components/date-picker/date-picker-com/basic-year-table.vue2.cjs +1 -1
  146. package/lib/components/date-picker/date-picker-com/panel-date-pick.vue2.cjs +1 -1
  147. package/lib/components/date-picker/date-picker-com/panel-date-range.vue2.cjs +1 -1
  148. package/lib/components/date-picker/date-picker-com/panel-month-range.vue2.cjs +1 -1
  149. package/lib/components/descriptions/description-item.vue2.cjs +1 -1
  150. package/lib/components/descriptions/description.vue2.cjs +1 -1
  151. package/lib/components/descriptions/descriptions-row.vue2.cjs +1 -1
  152. package/lib/components/dialog/dialog-content.vue2.cjs +1 -1
  153. package/lib/components/dialog/dialog.vue2.cjs +1 -1
  154. package/lib/components/divider/divider.vue2.cjs +1 -1
  155. package/lib/components/dropdown/dropdown.vue.cjs +1 -1
  156. package/lib/components/dropdown/dropdown.vue2.cjs +1 -1
  157. package/lib/components/dropdown/index.cjs +1 -1
  158. package/lib/components/dropdown/style/css.cjs +1 -1
  159. package/lib/components/dropdown/style/index.cjs +1 -1
  160. package/lib/components/dropdown/tokens.cjs +1 -1
  161. package/lib/components/empty/empty.vue2.cjs +1 -1
  162. package/lib/components/exception/exception.vue2.cjs +1 -1
  163. package/lib/components/footer-layout/footer-layout.vue2.cjs +1 -1
  164. package/lib/components/form/form-item.vue2.cjs +1 -1
  165. package/lib/components/form/form.vue2.cjs +1 -1
  166. package/lib/components/full-screen/full-screen.vue2.cjs +1 -1
  167. package/lib/components/header-layout/header-layout.vue2.cjs +1 -1
  168. package/lib/components/horizontal-menu/horizontal-menu.vue2.cjs +1 -1
  169. package/lib/components/icon/icon.vue2.cjs +1 -1
  170. package/lib/components/icon-text/icon-text.vue2.cjs +1 -1
  171. package/lib/components/iframe-layout/iframe-layout.vue2.cjs +1 -1
  172. package/lib/components/iframe-layout/iframe-page.vue2.cjs +1 -1
  173. package/lib/components/image/image.vue2.cjs +1 -1
  174. package/lib/components/image-viewer/image-viewer.vue2.cjs +1 -1
  175. package/lib/components/index.cjs +1 -1
  176. package/lib/components/input/input.vue2.cjs +1 -1
  177. package/lib/components/link/link.vue2.cjs +1 -1
  178. package/lib/components/list-cell/list-cell.vue2.cjs +1 -1
  179. package/lib/components/logo/logo.vue2.cjs +1 -1
  180. package/lib/components/md-container/md-container.vue2.cjs +1 -1
  181. package/lib/components/md-vue-playground/md-vue-playground.vue2.cjs +1 -1
  182. package/lib/components/menu/menu-item-group.vue2.cjs +1 -1
  183. package/lib/components/menu/menu-item.vue2.cjs +1 -1
  184. package/lib/components/menu/menu.vue2.cjs +1 -1
  185. package/lib/components/menu/sub-menu.vue2.cjs +1 -1
  186. package/lib/components/message/message.vue2.cjs +1 -1
  187. package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
  188. package/lib/components/multiple-tabs/tab-content.vue2.cjs +1 -1
  189. package/lib/components/overlay/overlay.vue2.cjs +1 -1
  190. package/lib/components/page-wrapper/page-wrapper.vue2.cjs +1 -1
  191. package/lib/components/pagination/components/jumper.vue2.cjs +1 -1
  192. package/lib/components/pagination/components/next.vue2.cjs +1 -1
  193. package/lib/components/pagination/components/pager.vue2.cjs +1 -1
  194. package/lib/components/pagination/components/prev.vue2.cjs +1 -1
  195. package/lib/components/pagination/components/sizes.vue2.cjs +1 -1
  196. package/lib/components/pagination/components/total.vue2.cjs +1 -1
  197. package/lib/components/pagination/pagination.vue2.cjs +1 -1
  198. package/lib/components/popconfirm/popconfirm.vue2.cjs +1 -1
  199. package/lib/components/popover/popover.vue2.cjs +1 -1
  200. package/lib/components/popper/arrow.vue2.cjs +1 -1
  201. package/lib/components/popper/content.vue2.cjs +1 -1
  202. package/lib/components/popper/trigger.vue2.cjs +1 -1
  203. package/lib/components/qrcode/qrcode.vue2.cjs +1 -1
  204. package/lib/components/radio/radio-button.vue2.cjs +1 -1
  205. package/lib/components/radio/radio-group.vue2.cjs +1 -1
  206. package/lib/components/radio/radio.vue2.cjs +1 -1
  207. package/lib/components/result/result.vue2.cjs +1 -1
  208. package/lib/components/router-view-content/router-view-content.vue2.cjs +1 -1
  209. package/lib/components/row/row.vue2.cjs +1 -1
  210. package/lib/components/scrollbar/bar.vue2.cjs +1 -1
  211. package/lib/components/scrollbar/scrollbar.vue2.cjs +1 -1
  212. package/lib/components/scrollbar/thumb.vue2.cjs +1 -1
  213. package/lib/components/search/search.vue2.cjs +1 -1
  214. package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
  215. package/lib/components/skeleton/skeleton-item.vue2.cjs +1 -1
  216. package/lib/components/skeleton/skeleton.vue2.cjs +1 -1
  217. package/lib/components/switch/switch.vue2.cjs +1 -1
  218. package/lib/components/table/index.cjs +1 -1
  219. package/lib/components/table/table.vue2.cjs +1 -1
  220. package/lib/components/tabs/tab-bar.vue2.cjs +1 -1
  221. package/lib/components/tabs/tab-nav.vue2.cjs +1 -1
  222. package/lib/components/tabs/tab-pane.vue2.cjs +1 -1
  223. package/lib/components/tabs/tabs.vue2.cjs +1 -1
  224. package/lib/components/tag/tag.vue2.cjs +1 -1
  225. package/lib/components/time-picker/common/picker.vue2.cjs +1 -1
  226. package/lib/components/time-picker/time-picker-com/basic-time-spinner.vue2.cjs +1 -1
  227. package/lib/components/time-picker/time-picker-com/panel-time-pick.vue2.cjs +1 -1
  228. package/lib/components/time-picker/time-picker-com/panel-time-range.vue2.cjs +1 -1
  229. package/lib/components/time-select/time-select.vue2.cjs +1 -1
  230. package/lib/components/tooltip/constants.cjs +1 -1
  231. package/lib/components/tooltip/content.vue2.cjs +1 -1
  232. package/lib/components/tooltip/tooltip.vue2.cjs +1 -1
  233. package/lib/components/tooltip/trigger.vue2.cjs +1 -1
  234. package/lib/components/verify-code/verify-code.vue2.cjs +1 -1
  235. package/lib/index.cjs +1 -1
  236. package/lib/package.json.cjs +1 -1
  237. package/package.json +5 -5
  238. package/tags.json +1 -1
  239. package/web-types.json +1 -1
  240. package/theme-style/vft-back-top.css +0 -1
@@ -1,4 +1,4 @@
1
- import { defineComponent as P, ref as u, computed as s, resolveDirective as j, openBlock as h, createElementBlock as w, Fragment as q, withDirectives as G, normalizeClass as g, unref as n, normalizeStyle as J, createVNode as Q, mergeProps as b, createSlots as T, withCtx as r, renderSlot as i, createBlock as X, createElementVNode as Y, createCommentVNode as Z } from "vue";
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";
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";
@@ -6,115 +6,115 @@ import "@popperjs/core";
6
6
  import "lodash";
7
7
  import "../../hooks/use-z-index/index.js";
8
8
  import "@vueuse/core";
9
- import { addUnit as c } from "@vft/utils";
9
+ import { addUnit as d } from "@vft/utils";
10
10
  import { generateCssVars as $ } from "../../utils/ns-cover.js";
11
- const d = (
11
+ const c = (
12
12
  /* hoist-static*/
13
13
  oe("search")
14
14
  ), te = P({
15
- name: d.b()
15
+ name: c.b()
16
16
  }), ve = /* @__PURE__ */ P({
17
17
  ...te,
18
18
  props: {
19
+ width: { default: 200 },
20
+ activeWidth: {},
21
+ usePopover: { type: Boolean, default: !0 },
22
+ popoverCfg: {},
19
23
  modelValue: { default: "" },
20
- placeholder: null,
21
24
  clearable: { type: Boolean, default: !0 },
25
+ placeholder: {},
22
26
  suffixIcon: { default: { icon: "ico-ep:search", color: "#8B8C8C", pointer: !0 } },
23
- prefixIcon: null,
24
- clearIcon: null,
25
- width: { default: 200 },
26
- activeWidth: null,
27
- usePopover: { type: Boolean, default: !0 },
28
- popoverCfg: null
27
+ prefixIcon: {},
28
+ clearIcon: {}
29
29
  },
30
30
  emits: ["update:modelValue", "blur", "focus", "clear", "enter", "prefixClick", "suffixClick", "mouseenter", "mouseleave", "keydown", "change"],
31
- setup(e, { expose: x, emit: t }) {
32
- const k = u(), C = u(), y = u(), v = u(!1), p = u(!1), l = u(!1), B = s(
31
+ setup(o, { expose: B, emit: t }) {
32
+ const k = a(), C = a(), y = a(), v = a(!1), p = a(!1), n = a(!1), R = f(
33
33
  () => $(
34
34
  {
35
- width: e.activeWidth && (l.value || e.modelValue) ? c(e.activeWidth) : c(e.width)
35
+ width: o.activeWidth && (n.value || o.modelValue) ? d(o.activeWidth) : d(o.width)
36
36
  },
37
37
  "input"
38
38
  )
39
- ), R = s(
39
+ ), S = f(
40
40
  () => $(
41
41
  {
42
- "active-width": e.activeWidth ? c(e.activeWidth) : c(e.width)
42
+ "active-width": o.activeWidth ? d(o.activeWidth) : d(o.width)
43
43
  },
44
44
  "search"
45
45
  )
46
- ), S = s(() => ({
46
+ ), x = f(() => ({
47
47
  "show-arrow": !1,
48
48
  transition: "vft-zoom-in-top-fast",
49
49
  placement: "bottom-start",
50
50
  "hide-after": 100,
51
51
  offset: 3,
52
52
  width: 500,
53
- ...e.popoverCfg
54
- })), I = (o) => {
55
- t("update:modelValue", o);
53
+ ...o.popoverCfg
54
+ })), I = (e) => {
55
+ t("update:modelValue", e);
56
56
  }, W = () => {
57
57
  m();
58
58
  };
59
59
  function E() {
60
- l.value = !0;
60
+ n.value = !0;
61
61
  }
62
62
  function m() {
63
- l.value = !1;
63
+ n.value = !1;
64
64
  }
65
65
  const F = () => {
66
- f(), t("clear");
66
+ s(), t("clear");
67
67
  };
68
68
  function M() {
69
- p.value = !0, t("mouseenter", e.modelValue);
69
+ p.value = !0, t("mouseenter", o.modelValue);
70
70
  }
71
71
  function N() {
72
- p.value = !1, t("mouseleave", e.modelValue);
72
+ p.value = !1, t("mouseleave", o.modelValue);
73
73
  }
74
74
  const z = () => {
75
- l.value = !0, v.value = !0, t("focus");
75
+ n.value = !0, v.value = !0, t("focus");
76
76
  };
77
77
  function D() {
78
78
  v.value = !1, t("blur");
79
79
  }
80
80
  function K() {
81
- f(), t("prefixClick", e.modelValue);
81
+ s(), t("prefixClick", o.modelValue);
82
82
  }
83
83
  function U() {
84
- f(), t("suffixClick", e.modelValue);
84
+ s(), t("suffixClick", o.modelValue);
85
85
  }
86
86
  function A() {
87
- f(), t("enter", e.modelValue);
87
+ s(), t("enter", o.modelValue);
88
88
  }
89
- function f() {
90
- e.usePopover && m(), y.value.blur();
89
+ function s() {
90
+ o.usePopover && m(), y.value.blur();
91
91
  }
92
- const H = (o) => {
93
- t("keydown", o);
94
- }, L = s(() => {
95
- var o, a;
96
- return (a = (o = k.value) == null ? void 0 : o.popperRef) == null ? void 0 : a.contentRef;
92
+ const H = (e) => {
93
+ t("keydown", e);
94
+ }, L = f(() => {
95
+ var e, l;
96
+ return (l = (e = k.value) == null ? void 0 : e.popperRef) == null ? void 0 : l.contentRef;
97
97
  });
98
- return x({
98
+ return B({
99
99
  isFocus: v,
100
100
  isHover: p,
101
- visible: l,
101
+ visible: n,
102
102
  hidePopover: m,
103
103
  showPopover: E
104
- }), (o, a) => {
104
+ }), (e, l) => {
105
105
  const O = j("click-outside");
106
106
  return h(), w(q, null, [
107
107
  G((h(), w("div", {
108
108
  ref_key: "searchRef",
109
109
  ref: C,
110
- class: g([n(d).b(), n(d).is("active", l.value || e.modelValue)]),
111
- style: J(n(R))
110
+ class: g([r(c).b(), r(c).is("active", n.value || e.modelValue)]),
111
+ style: J(S.value)
112
112
  }, [
113
- Q(n(_), b({
113
+ Q(r(_), b({
114
114
  ref_key: "inputRef",
115
115
  ref: y
116
- }, o.$props, {
117
- inputStyle: n(B),
116
+ }, e.$props, {
117
+ inputStyle: R.value,
118
118
  onInput: I,
119
119
  onFocus: z,
120
120
  onEnter: A,
@@ -123,59 +123,59 @@ const d = (
123
123
  onMouseleave: N,
124
124
  onPrefixClick: K,
125
125
  onSuffixClick: U,
126
- onChange: a[0] || (a[0] = (V) => {
126
+ onChange: l[0] || (l[0] = (V) => {
127
127
  t("change", e.modelValue);
128
128
  }),
129
129
  onKeydown: H,
130
130
  onClear: F
131
131
  }), T({ _: 2 }, [
132
- o.$slots.prefix ? {
132
+ e.$slots.prefix ? {
133
133
  name: "prefix",
134
- fn: r(() => [
135
- i(o.$slots, "prefix")
134
+ fn: u(() => [
135
+ i(e.$slots, "prefix")
136
136
  ]),
137
137
  key: "0"
138
138
  } : void 0,
139
- o.$slots.suffix ? {
139
+ e.$slots.suffix ? {
140
140
  name: "suffix",
141
- fn: r(() => [
142
- i(o.$slots, "suffix")
141
+ fn: u(() => [
142
+ i(e.$slots, "suffix")
143
143
  ]),
144
144
  key: "1"
145
145
  } : void 0,
146
- o.$slots.prepend ? {
146
+ e.$slots.prepend ? {
147
147
  name: "prepend",
148
- fn: r(() => [
149
- i(o.$slots, "prepend")
148
+ fn: u(() => [
149
+ i(e.$slots, "prepend")
150
150
  ]),
151
151
  key: "2"
152
152
  } : void 0,
153
- o.$slots.append ? {
153
+ e.$slots.append ? {
154
154
  name: "append",
155
- fn: r(() => [
156
- i(o.$slots, "append")
155
+ fn: u(() => [
156
+ i(e.$slots, "append")
157
157
  ]),
158
158
  key: "3"
159
159
  } : void 0
160
160
  ]), 1040, ["inputStyle"])
161
161
  ], 6)), [
162
- [O, W, n(L)]
162
+ [O, W, L.value]
163
163
  ]),
164
- e.usePopover ? (h(), X(n(ee), b({
164
+ e.usePopover ? (h(), X(r(ee), b({
165
165
  key: 0,
166
166
  ref_key: "popoverRef",
167
167
  ref: k
168
- }, n(S), {
168
+ }, x.value, {
169
169
  "virtual-ref": C.value,
170
- visible: l.value,
171
- "onUpdate:visible": a[1] || (a[1] = (V) => l.value = V),
170
+ visible: n.value,
171
+ "onUpdate:visible": l[1] || (l[1] = (V) => n.value = V),
172
172
  "virtual-triggering": ""
173
173
  }), {
174
- default: r(() => [
174
+ default: u(() => [
175
175
  Y("div", {
176
- class: g(n(d).e("content"))
176
+ class: g(r(c).e("content"))
177
177
  }, [
178
- i(o.$slots, "default")
178
+ i(e.$slots, "default")
179
179
  ], 2)
180
180
  ]),
181
181
  _: 3
@@ -1,4 +1,4 @@
1
- import { defineComponent as I, toRefs as le, useSlots as ne, getCurrentInstance as re, ref as C, computed as v, h as M, createVNode as f, onMounted as ie, nextTick as ae, watch as pe, isVNode as ue } from "vue";
1
+ import { defineComponent as I, toRefs as ne, useSlots as le, getCurrentInstance as re, ref as C, computed as v, h as M, createVNode as f, onMounted as ie, nextTick as ae, watch as pe, isVNode as ue } from "vue";
2
2
  import "../divider/index.js";
3
3
  import { VftIcon as se } from "../icon/index.js";
4
4
  import "../avatar/index.js";
@@ -96,14 +96,14 @@ function Ce(b) {
96
96
  }
97
97
  const Me = I({
98
98
  name: u.b()
99
- }), lo = /* @__PURE__ */ I({
99
+ }), no = /* @__PURE__ */ I({
100
100
  ...Me,
101
101
  props: {
102
102
  isFixedLeft: {
103
103
  type: Boolean,
104
104
  default: !0
105
105
  },
106
- menus: null,
106
+ menus: {},
107
107
  width: {
108
108
  default: 200
109
109
  },
@@ -113,7 +113,7 @@ const Me = I({
113
113
  collapseWidth: {
114
114
  default: 50
115
115
  },
116
- attrMapping: null,
116
+ attrMapping: {},
117
117
  menuTopBottomHeight: {
118
118
  default: 0
119
119
  },
@@ -121,7 +121,7 @@ const Me = I({
121
121
  type: Boolean,
122
122
  default: !1
123
123
  },
124
- dragOption: null,
124
+ dragOption: {},
125
125
  dragWidthCfg: {
126
126
  type: [Boolean, Object],
127
127
  default: !1
@@ -153,8 +153,8 @@ const Me = I({
153
153
  type: Boolean,
154
154
  default: !1
155
155
  },
156
- defaultActive: null,
157
- defaultOpeneds: null
156
+ defaultActive: {},
157
+ defaultOpeneds: {}
158
158
  },
159
159
  emits: ["update:collapse", "update:width", "dragEnd", "dragWidthEnd", "select", "subMenuClick", "menuItemMouseenter", "menuItemMouseleave"],
160
160
  setup(b, {
@@ -165,9 +165,9 @@ const Me = I({
165
165
  defaultActive: S,
166
166
  collapse: h,
167
167
  uniqueOpened: P,
168
- defaultOpeneds: O,
168
+ defaultOpeneds: x,
169
169
  openMenuCollapse: H
170
- } = le(t), r = ne(), B = re(), _ = C(), a = v(() => ({
170
+ } = ne(t), r = le(), B = re(), _ = C(), a = v(() => ({
171
171
  path: "path",
172
172
  children: "children",
173
173
  title: "title",
@@ -181,12 +181,12 @@ const Me = I({
181
181
  !e || (o = e.meta) != null && o.hideSide && !t.useRouterJump || (_.value = e.path);
182
182
  });
183
183
  const U = (e) => {
184
- var l;
184
+ var n;
185
185
  const o = e.e;
186
186
  if (t.autoScrollActiveDom && o) {
187
- const p = fe(t.autoScrollActiveDom) ? t.autoScrollActiveDom : 0, n = o.target;
188
- (l = y.value) != null && l.menu && n && setTimeout(() => {
189
- y.value.menu.scrollTop = y.value.menu.scrollTop + (n.getBoundingClientRect().top - y.value.menu.getBoundingClientRect().top) + p;
187
+ const p = fe(t.autoScrollActiveDom) ? t.autoScrollActiveDom : 0, l = o.target;
188
+ (n = y.value) != null && n.menu && l && setTimeout(() => {
189
+ y.value.menu.scrollTop = y.value.menu.scrollTop + (l.getBoundingClientRect().top - y.value.menu.getBoundingClientRect().top) + p;
190
190
  }, 300);
191
191
  }
192
192
  c("subMenuClick", e);
@@ -195,8 +195,8 @@ const Me = I({
195
195
  }, Z = (e) => {
196
196
  c("menuItemMouseleave", e);
197
197
  }, T = (e, o) => {
198
- const l = e[a.value.path], p = e[a.value.title], n = e == null ? void 0 : e[a.value.children], m = e == null ? void 0 : e[a.value.index], s = e == null ? void 0 : e[a.value.icon], d = !!(e != null && e[a.value.disabled]), g = t.disabledJudgeTurnOver ? !d : d, N = m || l || o + p;
199
- return n != null && n.length ? M(
198
+ const n = e[a.value.path], p = e[a.value.title], l = e == null ? void 0 : e[a.value.children], m = e == null ? void 0 : e[a.value.index], s = e == null ? void 0 : e[a.value.icon], d = !!(e != null && e[a.value.disabled]), g = t.disabledJudgeTurnOver ? !d : d, N = m || n || o + p;
199
+ return l != null && l.length ? M(
200
200
  // @ts-ignore
201
201
  ce,
202
202
  {
@@ -210,7 +210,7 @@ const Me = I({
210
210
  popperClass: u.e("popper")
211
211
  },
212
212
  {
213
- default: () => n == null ? void 0 : n.map((i, X) => {
213
+ default: () => l == null ? void 0 : l.map((i, X) => {
214
214
  var V;
215
215
  const w = i[a.value.path], W = i[a.value.index], ee = i[a.value.icon], te = i[a.value.title], A = !!i[a.value.disabled], oe = t.disabledJudgeTurnOver ? !A : A;
216
216
  return (V = i == null ? void 0 : i[a.value.children]) != null && V.length ? T(i, X) : (
@@ -234,10 +234,10 @@ const Me = I({
234
234
  }
235
235
  ) : M(j, {
236
236
  ...e,
237
- key: m || l,
238
- index: m || l,
237
+ key: m || n,
238
+ index: m || n,
239
239
  title: p,
240
- route: l,
240
+ route: n,
241
241
  icon: s,
242
242
  disabled: t.openDisabled && g,
243
243
  onMouseenter: () => F(e),
@@ -255,33 +255,33 @@ const Me = I({
255
255
  } : {},
256
256
  height: `calc(100% - ${t.menuTopBottomHeight}px)`
257
257
  })), z = v(() => {
258
- var o, l;
258
+ var o, n;
259
259
  let e;
260
260
  return M(f(de, {
261
261
  ref: y,
262
262
  onSelect: Y,
263
263
  onOpen: U,
264
264
  defaultActive: (S == null ? void 0 : S.value) || _.value,
265
- defaultOpeneds: O == null ? void 0 : O.value,
266
- class: [u.e("con"), (o = t.dragOption) != null && o.dragClassName ? u.e((l = t.dragOption) == null ? void 0 : l.dragClassName) : ""],
265
+ defaultOpeneds: x == null ? void 0 : x.value,
266
+ class: [u.e("con"), (o = t.dragOption) != null && o.dragClassName ? u.e((n = t.dragOption) == null ? void 0 : n.dragClassName) : ""],
267
267
  style: $.value,
268
268
  collapse: H.value ? h.value : !1,
269
269
  uniqueOpened: P.value,
270
270
  collapseTransition: !1
271
- }, Ce(e = t.menus.map((p, n) => T(p, n))) ? e : {
271
+ }, Ce(e = t.menus.map((p, l) => T(p, l))) ? e : {
272
272
  default: () => [e]
273
273
  }));
274
274
  }), D = B.appContext.config.globalProperties.$router;
275
275
  async function Y(e) {
276
- var o, l, p;
276
+ var o, n, p;
277
277
  if (t.useRouterJump) {
278
278
  const {
279
- go: n
279
+ go: l
280
280
  } = ve(D), m = e.route;
281
281
  let s = e.route;
282
282
  e.indexPath.some((g) => me(g)) && (s = e.indexPath.slice(-2).join("/"));
283
- const d = (p = (l = (o = D.getRoutes().filter((g) => g.path === s)) == null ? void 0 : o[0]) == null ? void 0 : l.meta) == null ? void 0 : p.linkTarget;
284
- n(d ? {
283
+ const d = (p = (n = (o = D.getRoutes().filter((g) => g.path === s)) == null ? void 0 : o[0]) == null ? void 0 : n.meta) == null ? void 0 : p.linkTarget;
284
+ l(d ? {
285
285
  url: m,
286
286
  winOpenOpt: {
287
287
  target: d
@@ -292,10 +292,10 @@ const Me = I({
292
292
  }
293
293
  ie(() => {
294
294
  ae(() => {
295
- var e, o, l;
295
+ var e, o, n;
296
296
  if ((e = t.dragOption) != null && e.dragClassName) {
297
- const p = (l = document.querySelectorAll("." + u.e((o = t.dragOption) == null ? void 0 : o.dragClassName))) == null ? void 0 : l[0], {
298
- initSortable: n
297
+ const p = (n = document.querySelectorAll("." + u.e((o = t.dragOption) == null ? void 0 : o.dragClassName))) == null ? void 0 : n[0], {
298
+ initSortable: l
299
299
  } = be(p, {
300
300
  draggable: ".vft-menu-item",
301
301
  onEnd: (m) => {
@@ -307,11 +307,11 @@ const Me = I({
307
307
  },
308
308
  ...t.dragOption
309
309
  });
310
- n();
310
+ l();
311
311
  }
312
312
  });
313
313
  });
314
- const x = C(), R = C(), k = C(), G = v(() => ({
314
+ const O = C(), R = C(), k = C(), G = v(() => ({
315
315
  ...t.collapseWidth === 0 && h.value ? {
316
316
  borderRight: "none"
317
317
  } : {},
@@ -320,16 +320,16 @@ const Me = I({
320
320
  }));
321
321
  pe(() => h.value, (e) => {
322
322
  e ? c("update:width", t.collapseWidth) : c("update:width", k.value || t.width), k.value = t.width;
323
- }), t.dragWidthCfg && ye(x, R, B);
323
+ }), t.dragWidthCfg && ye(O, R, B);
324
324
  const K = v(() => ({
325
325
  left: q(t.width)
326
326
  })), Q = v(() => [u.b(), t.isFixedLeft ? u.m("fixed") : ""]);
327
327
  return L({
328
- sideRef: x
328
+ sideRef: O
329
329
  }), () => {
330
330
  var e;
331
331
  return f("div", {
332
- ref: x,
332
+ ref: O,
333
333
  class: Q.value,
334
334
  style: G.value
335
335
  }, [r.top ? f("div", {
@@ -354,5 +354,5 @@ const Me = I({
354
354
  }
355
355
  });
356
356
  export {
357
- lo as default
357
+ no as default
358
358
  };
@@ -1,31 +1,31 @@
1
- import { defineComponent as m, openBlock as r, createElementBlock as n, normalizeClass as a, unref as e, createBlock as i, createCommentVNode as c } from "vue";
2
- import { useNamespace as p } from "../../hooks/use-namespace/index.js";
1
+ import { defineComponent as m, openBlock as r, createElementBlock as n, normalizeClass as a, unref as e, createBlock as i, createCommentVNode as p } from "vue";
2
+ import { useNamespace as c } from "../../hooks/use-namespace/index.js";
3
3
  import "@popperjs/core";
4
4
  import "lodash";
5
5
  import "../../hooks/use-z-index/index.js";
6
6
  import "@vueuse/core";
7
7
  import "@vft/utils";
8
8
  import "../../utils/ns-cover.js";
9
- import { VftIcon as l } from "../icon/index.js";
10
- const s = m({
9
+ import { VftIcon as s } from "../icon/index.js";
10
+ const l = m({
11
11
  name: "VftSkeletonItem"
12
- }), N = /* @__PURE__ */ m({
13
- ...s,
12
+ }), g = /* @__PURE__ */ m({
13
+ ...l,
14
14
  props: {
15
15
  variant: { default: "text" }
16
16
  },
17
- setup(t) {
18
- const o = p("skeleton");
19
- return (f, u) => (r(), n("div", {
20
- class: a([e(o).e("item"), e(o).e(t.variant)])
17
+ setup(f) {
18
+ const t = c("skeleton");
19
+ return (o, u) => (r(), n("div", {
20
+ class: a([e(t).e("item"), e(t).e(o.variant)])
21
21
  }, [
22
- t.variant === "image" ? (r(), i(e(l), {
22
+ o.variant === "image" ? (r(), i(e(s), {
23
23
  key: 0,
24
24
  icon: "ico-ep:picture-filled"
25
- })) : c("", !0)
25
+ })) : p("", !0)
26
26
  ], 2));
27
27
  }
28
28
  });
29
29
  export {
30
- N as default
30
+ g as default
31
31
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as k, computed as y, unref as t, openBlock as r, createElementBlock as l, mergeProps as u, Fragment as n, renderList as d, renderSlot as c, createVNode as h, normalizeClass as f, createBlock as B, createCommentVNode as $, normalizeProps as w } from "vue";
1
+ import { defineComponent as k, computed as y, unref as t, openBlock as o, createElementBlock as a, mergeProps as u, Fragment as s, renderList as p, renderSlot as d, createVNode as h, normalizeClass as f, createBlock as B, createCommentVNode as $, normalizeProps as w } from "vue";
2
2
  import { useNamespace as v } from "../../hooks/use-namespace/index.js";
3
3
  import "@popperjs/core";
4
4
  import "lodash";
@@ -7,12 +7,12 @@ import "@vueuse/core";
7
7
  import "@vft/utils";
8
8
  import "../../utils/ns-cover.js";
9
9
  import { useThrottleRender as C } from "../../hooks/use-throttle-render/index.js";
10
- import p from "./skeleton-item.vue2.js";
11
- const a = (
10
+ import c from "./skeleton-item.vue2.js";
11
+ const r = (
12
12
  /* hoist-static*/
13
13
  v("skeleton")
14
14
  ), N = k({
15
- name: a.b()
15
+ name: r.b()
16
16
  }), q = /* @__PURE__ */ k({
17
17
  ...N,
18
18
  props: {
@@ -20,34 +20,34 @@ const a = (
20
20
  count: { default: 1 },
21
21
  rows: { default: 3 },
22
22
  loading: { type: Boolean, default: !0 },
23
- throttle: null
23
+ throttle: {}
24
24
  },
25
- setup(e, { expose: g }) {
26
- const s = C(y(() => e.loading), e.throttle);
25
+ setup(n, { expose: g }) {
26
+ const l = C(y(() => n.loading), n.throttle);
27
27
  return g({
28
28
  /** @description loading state */
29
- uiLoading: s
30
- }), (o, b) => t(s) ? (r(), l("div", u({
29
+ uiLoading: l
30
+ }), (e, b) => t(l) ? (o(), a("div", u({
31
31
  key: 0,
32
- class: [t(a).b(), t(a).is("animated", e.animated)]
33
- }, o.$attrs), [
34
- (r(!0), l(n, null, d(e.count, (m) => (r(), l(n, { key: m }, [
35
- e.loading ? c(o.$slots, "template", { key: m }, () => [
36
- h(p, {
37
- class: f(t(a).is("first")),
32
+ class: [t(r).b(), t(r).is("animated", e.animated)]
33
+ }, e.$attrs), [
34
+ (o(!0), a(s, null, p(e.count, (m) => (o(), a(s, { key: m }, [
35
+ e.loading ? d(e.$slots, "template", { key: m }, () => [
36
+ h(c, {
37
+ class: f(t(r).is("first")),
38
38
  variant: "p"
39
39
  }, null, 8, ["class"]),
40
- (r(!0), l(n, null, d(e.rows, (i) => (r(), B(p, {
40
+ (o(!0), a(s, null, p(e.rows, (i) => (o(), B(c, {
41
41
  key: i,
42
42
  class: f([
43
- t(a).e("paragraph"),
44
- t(a).is("last", i === e.rows && e.rows > 1)
43
+ t(r).e("paragraph"),
44
+ t(r).is("last", i === e.rows && e.rows > 1)
45
45
  ]),
46
46
  variant: "p"
47
47
  }, null, 8, ["class"]))), 128))
48
48
  ]) : $("", !0)
49
49
  ], 64))), 128))
50
- ], 16)) : c(o.$slots, "default", w(u({ key: 1 }, o.$attrs)));
50
+ ], 16)) : d(e.$slots, "default", w(u({ key: 1 }, e.$attrs)));
51
51
  }
52
52
  });
53
53
  export {