vft 0.0.97 → 0.0.99

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (194) hide show
  1. package/es/components/affix/affix.vue2.js +25 -26
  2. package/es/components/alert/alert.vue2.js +17 -18
  3. package/es/components/backtop/backtop.vue2.js +14 -15
  4. package/es/components/button/button-group.vue2.js +14 -15
  5. package/es/components/button/button.vue2.js +24 -25
  6. package/es/components/card/card.vue2.js +10 -11
  7. package/es/components/check-tag/check-tag.vue2.js +10 -11
  8. package/es/components/checkbox/checkbox-button.vue2.js +13 -14
  9. package/es/components/checkbox/checkbox-group.vue2.js +15 -16
  10. package/es/components/checkbox/checkbox.vue2.js +24 -25
  11. package/es/components/clamp/clamp.vue2.js +16 -17
  12. package/es/components/clamp-toggle/clamp-toggle.vue2.js +13 -14
  13. package/es/components/col/col.vue2.js +20 -21
  14. package/es/components/collapse-transition/src/collapse-transition.vue2.js +12 -13
  15. package/es/components/collection/collection-item.vue2.js +6 -7
  16. package/es/components/collection/collection.vue2.js +5 -7
  17. package/es/components/color-picker/color-picker.vue2.js +45 -46
  18. package/es/components/color-picker/components/alpha-slider.vue2.js +20 -21
  19. package/es/components/config-provider/config-provider.vue2.js +22 -23
  20. package/es/components/container/aside.vue2.js +12 -13
  21. package/es/components/container/container.vue2.js +10 -11
  22. package/es/components/container/footer.vue2.js +11 -12
  23. package/es/components/container/header.vue2.js +10 -11
  24. package/es/components/container/main.vue2.js +12 -13
  25. package/es/components/context-menu/context-menu.vue2.js +18 -19
  26. package/es/components/date-picker/date-picker-com/basic-date-table.vue2.js +87 -87
  27. package/es/components/date-picker/date-picker-com/basic-month-table.vue2.js +1 -1
  28. package/es/components/date-picker/date-picker-com/basic-year-table.vue2.js +1 -1
  29. package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +2 -2
  30. package/es/components/date-picker/date-picker-com/panel-month-range.vue2.js +39 -40
  31. package/es/components/date-time-select/date-time-select.vue2.js +20 -21
  32. package/es/components/descriptions/description-item.vue2.js +9 -10
  33. package/es/components/descriptions/description.vue2.js +20 -21
  34. package/es/components/descriptions/descriptions-row.vue2.js +15 -16
  35. package/es/components/dialog/dialog-content.vue2.js +12 -13
  36. package/es/components/dialog/dialog.vue2.js +40 -41
  37. package/es/components/divider/divider.vue2.js +10 -11
  38. package/es/components/dropdown/dropdown.vue2.js +38 -39
  39. package/es/components/empty/empty.vue2.js +11 -12
  40. package/es/components/footer-layout/footer-layout.vue2.js +7 -8
  41. package/es/components/form/form-item.vue2.js +43 -44
  42. package/es/components/form/form.vue2.js +28 -29
  43. package/es/components/full-screen/full-screen.vue2.js +15 -16
  44. package/es/components/header-layout/header-layout.vue2.js +21 -22
  45. package/es/components/horizontal-menu/horizontal-menu.vue2.js +50 -51
  46. package/es/components/icon/icon.vue2.js +12 -13
  47. package/es/components/icon-text/icon-text.vue2.js +13 -14
  48. package/es/components/iframe-layout/iframe-layout.vue2.js +15 -16
  49. package/es/components/iframe-layout/iframe-page.vue2.js +12 -13
  50. package/es/components/image/image.vue2.js +25 -26
  51. package/es/components/image-viewer/image-viewer.vue2.js +54 -55
  52. package/es/components/link/link.vue2.js +11 -12
  53. package/es/components/list-cell/list-cell.vue2.js +21 -22
  54. package/es/components/logo/logo.vue2.js +12 -13
  55. package/es/components/md-comment/md-comment.vue2.js +12 -13
  56. package/es/components/md-container/md-container.vue2.js +33 -34
  57. package/es/components/md-vue-playground/md-vue-playground.vue2.js +18 -19
  58. package/es/components/menu/menu-item-group.vue2.js +13 -14
  59. package/es/components/menu/menu-item.vue2.js +12 -13
  60. package/es/components/menu/menu.vue2.js +44 -45
  61. package/es/components/menu/sub-menu.vue2.js +30 -31
  62. package/es/components/multiple-tabs/multiple-tabs.vue2.js +35 -38
  63. package/es/components/overlay/overlay.vue2.js +23 -24
  64. package/es/components/page-wrapper/page-wrapper.vue2.js +17 -18
  65. package/es/components/pagination/pagination.vue2.js +17 -18
  66. package/es/components/popconfirm/popconfirm.vue2.js +17 -18
  67. package/es/components/popover/popover.vue2.js +31 -32
  68. package/es/components/popper/arrow.vue2.js +15 -16
  69. package/es/components/popper/content.vue2.js +38 -39
  70. package/es/components/popper/popper.vue2.js +13 -14
  71. package/es/components/popper/trigger.vue2.js +11 -12
  72. package/es/components/qrcode/qrcode.vue2.js +21 -22
  73. package/es/components/radio/radio-button.vue2.js +16 -17
  74. package/es/components/radio/radio-group.vue2.js +16 -17
  75. package/es/components/radio/radio.vue2.js +15 -16
  76. package/es/components/result/result.vue2.js +12 -13
  77. package/es/components/router-view-content/router-view-content.vue2.js +10 -11
  78. package/es/components/row/row.vue2.js +17 -18
  79. package/es/components/scrollbar/scrollbar.vue2.js +30 -31
  80. package/es/components/search/search.vue2.js +39 -40
  81. package/es/components/side-menu/side-menu.vue2.js +43 -45
  82. package/es/components/skeleton/skeleton-item.vue2.js +9 -10
  83. package/es/components/skeleton/skeleton.vue2.js +11 -12
  84. package/es/components/switch/switch.vue2.js +27 -28
  85. package/es/components/table/table.vue2.js +53 -50
  86. package/es/components/tabs/tab-nav.vue2.js +28 -29
  87. package/es/components/tabs/tab-pane.vue2.js +23 -24
  88. package/es/components/tabs/tabs.vue2.js +30 -31
  89. package/es/components/time-picker/common/picker.vue2.js +48 -49
  90. package/es/components/time-select/time-select.vue2.js +28 -29
  91. package/es/components/tooltip/content.vue2.js +36 -37
  92. package/es/components/tooltip/tooltip.vue2.js +15 -16
  93. package/es/components/tooltip/trigger.vue2.js +37 -38
  94. package/es/components/verify-code/verify-code.vue2.js +19 -20
  95. package/es/constants/date.js +7 -7
  96. package/es/package.json.js +1 -1
  97. package/lib/components/affix/affix.vue2.cjs +1 -1
  98. package/lib/components/alert/alert.vue2.cjs +1 -1
  99. package/lib/components/backtop/backtop.vue2.cjs +1 -1
  100. package/lib/components/button/button-group.vue2.cjs +1 -1
  101. package/lib/components/button/button.vue2.cjs +1 -1
  102. package/lib/components/card/card.vue2.cjs +1 -1
  103. package/lib/components/check-tag/check-tag.vue2.cjs +1 -1
  104. package/lib/components/checkbox/checkbox-button.vue2.cjs +1 -1
  105. package/lib/components/checkbox/checkbox-group.vue2.cjs +1 -1
  106. package/lib/components/checkbox/checkbox.vue2.cjs +1 -1
  107. package/lib/components/clamp/clamp.vue2.cjs +1 -1
  108. package/lib/components/clamp-toggle/clamp-toggle.vue2.cjs +1 -1
  109. package/lib/components/col/col.vue2.cjs +1 -1
  110. package/lib/components/collapse-transition/src/collapse-transition.vue2.cjs +1 -1
  111. package/lib/components/collection/collection-item.vue2.cjs +1 -1
  112. package/lib/components/collection/collection.vue2.cjs +1 -1
  113. package/lib/components/color-picker/color-picker.vue2.cjs +1 -1
  114. package/lib/components/color-picker/components/alpha-slider.vue2.cjs +1 -1
  115. package/lib/components/config-provider/config-provider.vue2.cjs +1 -1
  116. package/lib/components/container/aside.vue2.cjs +1 -1
  117. package/lib/components/container/container.vue2.cjs +1 -1
  118. package/lib/components/container/footer.vue2.cjs +1 -1
  119. package/lib/components/container/header.vue2.cjs +1 -1
  120. package/lib/components/container/main.vue2.cjs +1 -1
  121. package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
  122. package/lib/components/date-picker/date-picker-com/basic-date-table.vue2.cjs +1 -1
  123. package/lib/components/date-picker/date-picker-com/basic-month-table.vue2.cjs +1 -1
  124. package/lib/components/date-picker/date-picker-com/basic-year-table.vue2.cjs +1 -1
  125. package/lib/components/date-picker/date-picker-com/panel-date-pick.vue2.cjs +1 -1
  126. package/lib/components/date-picker/date-picker-com/panel-month-range.vue2.cjs +1 -1
  127. package/lib/components/date-time-select/date-time-select.vue2.cjs +1 -1
  128. package/lib/components/descriptions/description-item.vue2.cjs +1 -1
  129. package/lib/components/descriptions/description.vue2.cjs +1 -1
  130. package/lib/components/descriptions/descriptions-row.vue2.cjs +1 -1
  131. package/lib/components/dialog/dialog-content.vue2.cjs +1 -1
  132. package/lib/components/dialog/dialog.vue2.cjs +1 -1
  133. package/lib/components/divider/divider.vue2.cjs +1 -1
  134. package/lib/components/dropdown/dropdown.vue2.cjs +1 -1
  135. package/lib/components/empty/empty.vue2.cjs +1 -1
  136. package/lib/components/footer-layout/footer-layout.vue2.cjs +1 -1
  137. package/lib/components/form/form-item.vue2.cjs +1 -1
  138. package/lib/components/form/form.vue2.cjs +1 -1
  139. package/lib/components/full-screen/full-screen.vue2.cjs +1 -1
  140. package/lib/components/header-layout/header-layout.vue2.cjs +1 -1
  141. package/lib/components/horizontal-menu/horizontal-menu.vue2.cjs +1 -1
  142. package/lib/components/icon/icon.vue2.cjs +1 -1
  143. package/lib/components/icon-text/icon-text.vue2.cjs +1 -1
  144. package/lib/components/iframe-layout/iframe-layout.vue2.cjs +1 -1
  145. package/lib/components/iframe-layout/iframe-page.vue2.cjs +1 -1
  146. package/lib/components/image/image.vue2.cjs +1 -1
  147. package/lib/components/image-viewer/image-viewer.vue2.cjs +1 -1
  148. package/lib/components/link/link.vue2.cjs +1 -1
  149. package/lib/components/list-cell/list-cell.vue2.cjs +1 -1
  150. package/lib/components/logo/logo.vue2.cjs +1 -1
  151. package/lib/components/md-comment/md-comment.vue2.cjs +1 -1
  152. package/lib/components/md-container/md-container.vue2.cjs +1 -1
  153. package/lib/components/md-vue-playground/md-vue-playground.vue2.cjs +1 -1
  154. package/lib/components/menu/menu-item-group.vue2.cjs +1 -1
  155. package/lib/components/menu/menu-item.vue2.cjs +1 -1
  156. package/lib/components/menu/menu.vue2.cjs +1 -1
  157. package/lib/components/menu/sub-menu.vue2.cjs +1 -1
  158. package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
  159. package/lib/components/overlay/overlay.vue2.cjs +1 -1
  160. package/lib/components/page-wrapper/page-wrapper.vue2.cjs +1 -1
  161. package/lib/components/pagination/pagination.vue2.cjs +1 -1
  162. package/lib/components/popconfirm/popconfirm.vue2.cjs +1 -1
  163. package/lib/components/popover/popover.vue2.cjs +1 -1
  164. package/lib/components/popper/arrow.vue2.cjs +1 -1
  165. package/lib/components/popper/content.vue2.cjs +1 -1
  166. package/lib/components/popper/popper.vue2.cjs +1 -1
  167. package/lib/components/popper/trigger.vue2.cjs +1 -1
  168. package/lib/components/qrcode/qrcode.vue2.cjs +1 -1
  169. package/lib/components/radio/radio-button.vue2.cjs +1 -1
  170. package/lib/components/radio/radio-group.vue2.cjs +1 -1
  171. package/lib/components/radio/radio.vue2.cjs +1 -1
  172. package/lib/components/result/result.vue2.cjs +1 -1
  173. package/lib/components/router-view-content/router-view-content.vue2.cjs +1 -1
  174. package/lib/components/row/row.vue2.cjs +1 -1
  175. package/lib/components/scrollbar/scrollbar.vue2.cjs +1 -1
  176. package/lib/components/search/search.vue2.cjs +1 -1
  177. package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
  178. package/lib/components/skeleton/skeleton-item.vue2.cjs +1 -1
  179. package/lib/components/skeleton/skeleton.vue2.cjs +1 -1
  180. package/lib/components/switch/switch.vue2.cjs +1 -1
  181. package/lib/components/table/table.vue2.cjs +1 -1
  182. package/lib/components/tabs/tab-nav.vue2.cjs +1 -1
  183. package/lib/components/tabs/tab-pane.vue2.cjs +1 -1
  184. package/lib/components/tabs/tabs.vue2.cjs +1 -1
  185. package/lib/components/time-picker/common/picker.vue2.cjs +1 -1
  186. package/lib/components/time-select/time-select.vue2.cjs +1 -1
  187. package/lib/components/tooltip/content.vue2.cjs +1 -1
  188. package/lib/components/tooltip/tooltip.vue2.cjs +1 -1
  189. package/lib/components/tooltip/trigger.vue2.cjs +1 -1
  190. package/lib/components/verify-code/verify-code.vue2.cjs +1 -1
  191. package/lib/constants/date.cjs +1 -1
  192. package/lib/package.json.cjs +1 -1
  193. package/package.json +8 -8
  194. package/web-types.json +1 -1
@@ -1,4 +1,4 @@
1
- import { defineComponent as G, getCurrentInstance as re, computed as r, inject as L, ref as g, reactive as ie, watch as le, provide as ue, onMounted as ae, onBeforeUnmount as se, useSlots as pe, h as a, Fragment as me, withDirectives as ce, vShow as de } from "vue";
1
+ import { defineComponent as ne, getCurrentInstance as re, computed as r, inject as L, ref as g, reactive as ie, watch as le, provide as ue, onMounted as ae, onBeforeUnmount as se, useSlots as pe, h as a, Fragment as me, withDirectives as ce, vShow as de } from "vue";
2
2
  import "../divider/index.js";
3
3
  import { VftIcon as U } from "../icon/index.js";
4
4
  import "../avatar/index.js";
@@ -78,7 +78,7 @@ import "../md-vue-playground/index.js";
78
78
  import "../md-code-demo/index.js";
79
79
  import "../md-code-tabs/index.js";
80
80
  import "../message/index.js";
81
- import { useNamespace as k } from "../../hooks/use-namespace/index.js";
81
+ import { useNamespace as z } from "../../hooks/use-namespace/index.js";
82
82
  import "@popperjs/core";
83
83
  import "lodash";
84
84
  import "../../hooks/use-z-index/index.js";
@@ -87,14 +87,13 @@ import { throwError as q } from "../../utils/error.js";
87
87
  import "../../utils/ns-cover.js";
88
88
  import be from "./use-menu.js";
89
89
  import { useMenuCssVar as he } from "./use-menu-css-var.js";
90
- const z = (
90
+ const k = (
91
91
  /* hoist-static*/
92
- k("sub-menu")
93
- ), Te = G({
94
- name: z.b(),
95
- inheritAttrs: !1
96
- }), tt = /* @__PURE__ */ G({
97
- ...Te,
92
+ z("sub-menu")
93
+ ), ot = /* @__PURE__ */ ne({
94
+ name: k.b(),
95
+ inheritAttrs: !1,
96
+ __name: "sub-menu",
98
97
  props: {
99
98
  index: {},
100
99
  showTimeout: {
@@ -130,19 +129,19 @@ const z = (
130
129
  },
131
130
  emits: ["mouseenter", "mouseleave"],
132
131
  setup(o, {
133
- expose: J,
132
+ expose: G,
134
133
  emit: E
135
134
  }) {
136
135
  const f = re(), {
137
136
  indexPath: T,
138
137
  parentMenu: A
139
- } = be(f, r(() => o.index)), p = k("menu"), s = k("sub-menu"), e = L("rootMenu");
140
- e || q(z.b(), "can not inject root menu");
138
+ } = be(f, r(() => o.index)), p = z("menu"), s = z("sub-menu"), e = L("rootMenu");
139
+ e || q(k.b(), "can not inject root menu");
141
140
  const u = L(`subMenu:${A.value.uid}`);
142
- u || q(z.b(), "can not inject sub menu");
141
+ u || q(k.b(), "can not inject sub menu");
143
142
  const w = g({});
144
143
  let m;
145
- const B = g(!1), K = g(), P = g(null), j = r(() => d.value === "horizontal" && C.value ? "bottom-start" : "right-start"), C = r(() => u.level === 0), y = r(() => o.teleported === void 0 ? C.value : o.teleported), Q = r(() => e.props.collapse ? `${p.namespace.value}-zoom-in-left` : `${p.namespace.value}-zoom-in-top`), W = r(() => d.value === "horizontal" && C.value ? ["bottom-start", "bottom-end", "top-start", "top-end", "right-start", "left-start"] : ["right-start", "left-start", "bottom-start", "bottom-end", "top-start", "top-end"]), c = r(() => e.openedMenus.includes(o.index)), M = r(() => {
144
+ const B = g(!1), J = g(), P = g(null), j = r(() => d.value === "horizontal" && C.value ? "bottom-start" : "right-start"), C = r(() => u.level === 0), y = r(() => o.teleported === void 0 ? C.value : o.teleported), K = r(() => e.props.collapse ? `${p.namespace.value}-zoom-in-left` : `${p.namespace.value}-zoom-in-top`), Q = r(() => d.value === "horizontal" && C.value ? ["bottom-start", "bottom-end", "top-start", "top-end", "right-start", "left-start"] : ["right-start", "left-start", "bottom-start", "bottom-end", "top-start", "top-end"]), c = r(() => e.openedMenus.includes(o.index)), M = r(() => {
146
145
  let t = !1;
147
146
  return Object.values(w.value).forEach((l) => {
148
147
  l.active && (t = !0);
@@ -156,11 +155,11 @@ const z = (
156
155
  } : {
157
156
  borderBottomColor: M.value ? e.props.activeTextColor ? $.value : "" : "transparent",
158
157
  color: M.value ? $.value : O.value
159
- }), X = () => {
158
+ }), W = () => {
160
159
  var t, l, i;
161
160
  return (i = (l = (t = P.value) == null ? void 0 : t.popperRef) == null ? void 0 : l.popperInstanceRef) == null ? void 0 : i.destroy();
162
- }, Y = (t) => {
163
- t || X();
161
+ }, X = (t) => {
162
+ t || W();
164
163
  }, R = (t) => {
165
164
  if (e.props.menuTrigger === "hover" && e.props.mode === "horizontal" || e.props.collapse && e.props.mode === "vertical" || o.disabled)
166
165
  return;
@@ -178,11 +177,11 @@ const z = (
178
177
  } = Z(() => {
179
178
  e.openMenu(o.index, T.value);
180
179
  }, l), y.value && ((i = A.value.vnode.el) == null || i.dispatchEvent(new MouseEvent("mouseenter"))), E("mouseenter", t)));
181
- }, _ = () => {
180
+ }, Y = () => {
182
181
  e.inSubMenuMouseEnterTimer && clearTimeout(e.inSubMenuMouseEnterTimer), e.inSubMenuMouseleaveTimer && clearTimeout(e.inSubMenuMouseleaveTimer), e.inSubMenuMouseEnterTimer = setTimeout(() => {
183
182
  e.inSubMenu = !0;
184
183
  }, o.showTimeout + 10);
185
- }, ee = () => {
184
+ }, _ = () => {
186
185
  e.inSubMenuMouseEnterTimer && clearTimeout(e.inSubMenuMouseEnterTimer), e.inSubMenuMouseleaveTimer && clearTimeout(e.inSubMenuMouseleaveTimer), e.inSubMenuMouseleaveTimer = setTimeout(() => {
187
186
  e.inSubMenu = !1;
188
187
  }, o.hideTimeout - 10);
@@ -194,7 +193,7 @@ const z = (
194
193
  !B.value && e.closeMenu(o.index, T.value);
195
194
  }, o.hideTimeout), y.value && l && ((i = f.parent) == null ? void 0 : i.type.name) === "vft-sub-menu" && ((n = u.handleMouseleave) == null || n.call(u, t, !0)), E("mouseleave", t));
196
195
  };
197
- le(() => e.props.collapse, (t) => Y(!!t));
196
+ le(() => e.props.collapse, (t) => X(!!t));
198
197
  {
199
198
  const t = (i) => {
200
199
  w.value[i.index] = i;
@@ -209,21 +208,21 @@ const z = (
209
208
  level: u.level + 1
210
209
  });
211
210
  }
212
- J({
211
+ G({
213
212
  opened: c
214
213
  }), ae(() => {
215
214
  e.addSubMenu(x), u.addSubMenu(x);
216
215
  }), se(() => {
217
216
  u.removeSubMenu(x), e.removeSubMenu(x);
218
217
  });
219
- const v = pe(), D = r(() => I(o.icon, "icon")), oe = r(() => I(o.expandIcon, "icon")), te = r(() => I(o.collapseIcon, "icon")), ne = r(() => d.value === "horizontal" && C.value || d.value === "vertical" && !e.props.collapse ? {
218
+ const v = pe(), D = r(() => I(o.icon, "icon")), ee = r(() => I(o.expandIcon, "icon")), oe = r(() => I(o.collapseIcon, "icon")), te = r(() => d.value === "horizontal" && C.value || d.value === "vertical" && !e.props.collapse ? {
220
219
  icon: "ico-ep:arrow-down",
221
220
  size: 20,
222
- ...oe.value
221
+ ...ee.value
223
222
  } : {
224
223
  icon: "ico-ep:arrow-right",
225
224
  size: 18,
226
- ...te.value
225
+ ...oe.value
227
226
  }), H = r(() => Me(f, "title"));
228
227
  return () => {
229
228
  var i;
@@ -234,7 +233,7 @@ const z = (
234
233
  title: f.props.title
235
234
  }, H.value), o.showArrow ? a(U, {
236
235
  class: s.e("icon-arrow"),
237
- ...ne.value,
236
+ ...te.value,
238
237
  style: {
239
238
  transform: c.value ? "rotateZ(180deg)" : "none"
240
239
  }
@@ -249,8 +248,8 @@ const z = (
249
248
  popperClass: o.popperClass,
250
249
  placement: j.value,
251
250
  teleported: y.value,
252
- fallbackPlacements: W.value,
253
- transition: Q.value,
251
+ fallbackPlacements: Q.value,
252
+ transition: K.value,
254
253
  gpuAcceleration: !1,
255
254
  ...o.toolTipCfg
256
255
  }, {
@@ -282,7 +281,7 @@ const z = (
282
281
  style: [N.value, {
283
282
  backgroundColor: F.value
284
283
  }],
285
- ref: K,
284
+ ref: J,
286
285
  onClick: R
287
286
  }, t) : null, a(ve, {}, {
288
287
  default: () => {
@@ -300,13 +299,13 @@ const z = (
300
299
  role: "menuitem",
301
300
  ariaHaspopup: !0,
302
301
  ariaExpanded: c.value,
303
- onMouseenter: [_, (n) => b(n)],
304
- onMouseleave: [ee, (n) => S(n, !0)],
302
+ onMouseenter: [Y, (n) => b(n)],
303
+ onMouseleave: [_, (n) => S(n, !0)],
305
304
  onFocus: b
306
305
  }, [l]);
307
306
  };
308
307
  }
309
308
  });
310
309
  export {
311
- tt as default
310
+ ot as default
312
311
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as P, ref as b, getCurrentInstance as E, computed as h, watchEffect as H, unref as r, openBlock as x, createElementBlock as R, normalizeClass as K, normalizeStyle as $, createVNode as S, withCtx as C, Fragment as F, renderList as U, createBlock as j } from "vue";
1
+ import { defineComponent as D, ref as b, getCurrentInstance as E, computed as h, watchEffect as H, unref as r, openBlock as x, createElementBlock as R, normalizeClass as K, normalizeStyle as $, createVNode as S, withCtx as C, Fragment as F, renderList as U, createBlock as j } from "vue";
2
2
  import { useRouterHelper as q, getRouterKeyPath as f, listenerRouteChange as G } from "@vft/router";
3
3
  import { useMultipleTabStore as J, useTabs as L } from "@vft/store";
4
4
  import { useRefs as O } from "@vft/use";
@@ -91,13 +91,12 @@ import "../md-code-tabs/index.js";
91
91
  import "../message/index.js";
92
92
  import tt from "./tab-content.vue2.js";
93
93
  import { initAffixTabs as et, useTabsDrag as ot } from "./use/use-multiple-tabs.js";
94
- const M = (
94
+ const P = (
95
95
  /* hoist-static*/
96
96
  X("multiple-tabs")
97
- ), rt = P({
98
- name: M.b()
99
- }), qe = /* @__PURE__ */ P({
100
- ...rt,
97
+ ), je = /* @__PURE__ */ D({
98
+ name: P.b(),
99
+ __name: "multiple-tabs",
101
100
  props: {
102
101
  tabsStyle: {},
103
102
  contextMenuStyle: {},
@@ -106,9 +105,7 @@ const M = (
106
105
  setup(d) {
107
106
  const i = et();
108
107
  d.canDrag && ot(i);
109
- const u = J(), m = b(""), a = b(0), v = b(), p = E().appContext.config.globalProperties.$router;
110
- console.log(p, "===---");
111
- const { go: g } = q(p), c = h(() => u.getTabList.filter((t) => {
108
+ const u = J(), m = b(""), a = b(0), v = b(), s = E().appContext.config.globalProperties.$router, { go: g } = q(s), c = h(() => u.getTabList.filter((t) => {
112
109
  var e;
113
110
  return !((e = t.meta) != null && e.hideTab);
114
111
  }));
@@ -118,37 +115,37 @@ const M = (
118
115
  const e = c.value.findIndex((o) => f(o) === m.value);
119
116
  e === -1 ? a.value = ((t = c.value) == null ? void 0 : t.length) - 1 : a.value = e, a.value = a.value < (i == null ? void 0 : i.length) ? (i == null ? void 0 : i.length) - 1 : a.value;
120
117
  }
121
- }), console.log(p, "===---"), W(() => {
122
- console.log(p, "===---"), v.value = r(p.currentRoute);
118
+ }), W(() => {
119
+ v.value = r(s.currentRoute);
123
120
  }), G((t) => {
124
121
  var T;
125
122
  if (!t || (T = t.meta) != null && T.hasTokenToRoot)
126
123
  return;
127
- const { meta: e = {} } = t, { currentActivePath: o, hideTab: n } = e, l = n ? o : null, s = f(t);
128
- if (m.value !== s && (m.value = s), l) {
129
- let y = p.getRoutes().find((D) => D.path === o);
124
+ const { meta: e = {} } = t, { currentActivePath: o, hideTab: n } = e, p = n ? o : null, l = f(t);
125
+ if (m.value !== l && (m.value = l), p) {
126
+ let y = s.getRoutes().find((z) => z.path === o);
130
127
  y && u.addTab(y, r(v), a.value, t);
131
128
  } else
132
129
  u.addTab(r(t), r(v), a.value);
133
130
  });
134
- function k(t) {
135
- var n, l;
131
+ function M(t) {
132
+ var n, p;
136
133
  if (m.value === t.paneName)
137
134
  return;
138
135
  const e = c.value[t.attrs.index];
139
136
  m.value = t.paneName;
140
- const o = (l = (n = e == null ? void 0 : e.meta) == null ? void 0 : n.hideActiveRoute) == null ? void 0 : l.fullPath;
137
+ const o = (p = (n = e == null ? void 0 : e.meta) == null ? void 0 : n.hideActiveRoute) == null ? void 0 : p.fullPath;
141
138
  g(o || e.fullPath || e.path);
142
139
  }
143
- function B(t) {
144
- u.closeTabByKey(t, p);
140
+ function k(t) {
141
+ u.closeTabByKey(t, s);
145
142
  }
146
- const [I, N] = O();
147
- function w(t) {
143
+ const [B, I] = O();
144
+ function N(t) {
148
145
  const e = t.pane.attrs.index, o = t.event;
149
- I.value[e].handleContext(o);
146
+ B.value[e].handleContext(o);
150
147
  }
151
- const V = h(() => ({ ..._({
148
+ const w = h(() => ({ ..._({
152
149
  padding: "4px 0 0",
153
150
  "border-bottom": "none",
154
151
  "header-height": "26px",
@@ -160,11 +157,11 @@ const M = (
160
157
  "scroll-padding": "0 20px",
161
158
  "header-margin": "0 0 0 8px",
162
159
  "item-border": "none"
163
- }, "tabs"), ...d.tabsStyle })), { closeCurrent: A } = L();
160
+ }, "tabs"), ...d.tabsStyle })), { closeCurrent: V } = L();
164
161
  Q("command+e, ctrl+e", function() {
165
- return A(), !1;
162
+ return V(), !1;
166
163
  });
167
- const z = h(() => ({
164
+ const A = h(() => ({
168
165
  ..._({
169
166
  "sub-item-height": "40px",
170
167
  "item-min-width": "150px"
@@ -172,34 +169,34 @@ const M = (
172
169
  ...d.contextMenuStyle
173
170
  }));
174
171
  return (t, e) => (x(), R("div", {
175
- class: K(r(M).b()),
176
- style: $(V.value)
172
+ class: K(r(P).b()),
173
+ style: $(w.value)
177
174
  }, [
178
175
  S(r(Y), {
179
176
  showBar: !1,
180
177
  "model-value": m.value,
181
178
  "onUpdate:modelValue": e[0] || (e[0] = (o) => m.value = o),
182
- onTabClick: k,
183
- onTabRemove: B,
184
- onTabContextMenu: w
179
+ onTabClick: M,
180
+ onTabRemove: k,
181
+ onTabContextMenu: N
185
182
  }, {
186
183
  default: C(() => [
187
184
  (x(!0), R(F, null, U(c.value, (o, n) => {
188
- var l;
185
+ var p;
189
186
  return x(), j(r(Z), {
190
187
  key: r(f)(o) + n,
191
- closable: !((l = o.meta) != null && l.affix),
188
+ closable: !((p = o.meta) != null && p.affix),
192
189
  index: n,
193
190
  name: r(f)(o)
194
191
  }, {
195
192
  label: C(() => {
196
- var s;
193
+ var l;
197
194
  return [
198
195
  S(tt, {
199
- contextMenuStyle: z.value,
200
- affixNum: (s = r(i)) == null ? void 0 : s.length,
196
+ contextMenuStyle: A.value,
197
+ affixNum: (l = r(i)) == null ? void 0 : l.length,
201
198
  ref_for: !0,
202
- ref: r(N)(n),
199
+ ref: r(I)(n),
203
200
  tabItem: o
204
201
  }, null, 8, ["contextMenuStyle", "affixNum", "tabItem"])
205
202
  ];
@@ -214,5 +211,5 @@ const M = (
214
211
  }
215
212
  });
216
213
  export {
217
- qe as default
214
+ je as default
218
215
  };
@@ -1,18 +1,17 @@
1
- import { defineComponent as c, useSlots as x, createVNode as y, renderSlot as u, h as r } from "vue";
2
- import { useNamespace as v } from "../../hooks/use-namespace/index.js";
1
+ import { defineComponent as k, useSlots as y, createVNode as v, renderSlot as l, h as r } from "vue";
2
+ import { useNamespace as x } 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
- import { noop as l } from "@vft/utils";
7
+ import { noop as u } from "@vft/utils";
8
8
  import "../../utils/ns-cover.js";
9
9
  const i = (
10
10
  /* hoist-static*/
11
- v("overlay")
12
- ), C = c({
13
- name: i.b()
14
- }), V = /* @__PURE__ */ c({
15
- ...C,
11
+ x("overlay")
12
+ ), h = /* @__PURE__ */ k({
13
+ name: i.b(),
14
+ __name: "overlay",
16
15
  props: {
17
16
  mask: { type: Boolean },
18
17
  onlyNode: { type: Boolean },
@@ -21,39 +20,39 @@ const i = (
21
20
  zIndex: {}
22
21
  },
23
22
  emits: ["click"],
24
- setup(o, { emit: d }) {
25
- const m = (t) => {
26
- if (!t)
27
- return { onClick: l, onMousedown: l, onMouseup: l };
23
+ setup(o, { emit: c }) {
24
+ const d = (n) => {
25
+ if (!n)
26
+ return { onClick: u, onMousedown: u, onMouseup: u };
28
27
  let s = !1, a = !1;
29
28
  return { onClick: (e) => {
30
- s && a && t(e), s = a = !1;
29
+ s && a && n(e), s = a = !1;
31
30
  }, onMousedown: (e) => {
32
31
  s = e.target === e.currentTarget;
33
32
  }, onMouseup: (e) => {
34
33
  a = e.target === e.currentTarget;
35
34
  } };
36
- }, n = x(), p = (t) => {
37
- d("click", t);
38
- }, { onClick: f, onMousedown: M, onMouseup: k } = m(o.customMaskEvent ? void 0 : p);
39
- return () => o.mask ? y(
35
+ }, t = y(), m = (n) => {
36
+ c("click", n);
37
+ }, { onClick: p, onMousedown: f, onMouseup: M } = d(o.customMaskEvent ? void 0 : m);
38
+ return () => o.mask ? v(
40
39
  "div",
41
40
  {
42
41
  class: [i.b(), o.overlayClass],
43
42
  style: {
44
43
  zIndex: o.zIndex
45
44
  },
46
- onClick: f,
47
- onMousedown: M,
48
- onMouseup: k
45
+ onClick: p,
46
+ onMousedown: f,
47
+ onMouseup: M
49
48
  },
50
- [u(n, "default")],
49
+ [l(t, "default")],
51
50
  14,
52
51
  ["onClick", "onMouseup", "onMousedown"]
53
52
  ) : o.onlyNode ? r(
54
53
  "div",
55
54
  {},
56
- [u(n, "default")]
55
+ [l(t, "default")]
57
56
  ) : r(
58
57
  "div",
59
58
  {
@@ -67,10 +66,10 @@ const i = (
67
66
  left: "0px"
68
67
  }
69
68
  },
70
- [u(n, "default")]
69
+ [l(t, "default")]
71
70
  );
72
71
  }
73
72
  });
74
73
  export {
75
- V as default
74
+ h as default
76
75
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as p, openBlock as n, createElementBlock as i, normalizeClass as o, unref as e, createElementVNode as r, toDisplayString as l, renderSlot as m } from "vue";
1
+ import { defineComponent as a, openBlock as n, createElementBlock as i, normalizeClass as r, unref as e, createElementVNode as o, toDisplayString as l, renderSlot as m } from "vue";
2
2
  import { useNamespace as c } from "../../hooks/use-namespace/index.js";
3
3
  import "@popperjs/core";
4
4
  import "lodash";
@@ -10,33 +10,32 @@ import { useRouterHelper as d } from "@vft/router";
10
10
  const t = (
11
11
  /* hoist-static*/
12
12
  c("page-wrapper")
13
- ), u = p({
14
- name: t.b()
15
- }), S = /* @__PURE__ */ p({
16
- ...u,
13
+ ), E = /* @__PURE__ */ a({
14
+ name: t.b(),
15
+ __name: "page-wrapper",
17
16
  props: {
18
17
  title: {}
19
18
  },
20
- setup(f) {
21
- const { getTitle: a } = d();
22
- return (s, _) => (n(), i("div", {
23
- class: o(e(t).b())
19
+ setup(u) {
20
+ const { getTitle: s } = d();
21
+ return (p, f) => (n(), i("div", {
22
+ class: r(e(t).b())
24
23
  }, [
25
- r("div", {
26
- class: o(e(t).e("header"))
24
+ o("div", {
25
+ class: r(e(t).e("header"))
27
26
  }, [
28
- r("span", {
29
- class: o(e(t).e("title"))
30
- }, l(s.title || e(a)), 3)
27
+ o("span", {
28
+ class: r(e(t).e("title"))
29
+ }, l(p.title || e(s)), 3)
31
30
  ], 2),
32
- r("div", {
33
- class: o(e(t).e("content"))
31
+ o("div", {
32
+ class: r(e(t).e("content"))
34
33
  }, [
35
- m(s.$slots, "default")
34
+ m(p.$slots, "default")
36
35
  ], 2)
37
36
  ], 2));
38
37
  }
39
38
  });
40
39
  export {
41
- S as default
40
+ E as default
42
41
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as k, useSlots as w, getCurrentInstance as E, computed as s, ref as x, watch as M, provide as j, h as r } from "vue";
1
+ import { defineComponent as U, useSlots as w, getCurrentInstance as E, computed as s, ref as x, watch as M, provide as j, h as r } from "vue";
2
2
  import { useNamespace as L } from "../../hooks/use-namespace/index.js";
3
3
  import "@popperjs/core";
4
4
  import "lodash";
@@ -16,10 +16,9 @@ import { vftPaginationKey as V } from "./usePagination.js";
16
16
  const l = (
17
17
  /* hoist-static*/
18
18
  L("pagination")
19
- ), q = k({
20
- name: l.b()
21
- }), le = /* @__PURE__ */ k({
22
- ...q,
19
+ ), ie = /* @__PURE__ */ U({
20
+ name: l.b(),
21
+ __name: "pagination",
23
22
  props: {
24
23
  total: {},
25
24
  pageSize: {},
@@ -67,7 +66,7 @@ const l = (
67
66
  setup(e, {
68
67
  emit: g
69
68
  }) {
70
- const c = w(), o = E().vnode.props || {}, h = "onUpdate:currentPage" in o || "onUpdate:current-page" in o || "onCurrentChange" in o, m = "onUpdate:pageSize" in o || "onUpdate:page-size" in o || "onSizeChange" in o, y = s(() => {
69
+ const c = w(), o = E().vnode.props || {}, h = "onUpdate:currentPage" in o || "onUpdate:current-page" in o || "onCurrentChange" in o, m = "onUpdate:pageSize" in o || "onUpdate:page-size" in o || "onSizeChange" in o, k = s(() => {
71
70
  if (!t(e.total) && !t(e.pageCount) || t(e.currentPage) && !h)
72
71
  return !1;
73
72
  if (e.layout.includes("sizes")) {
@@ -103,15 +102,15 @@ const l = (
103
102
  function z(a) {
104
103
  i.value = a;
105
104
  }
106
- function T(a) {
105
+ function y(a) {
107
106
  v.value = a;
108
107
  const n = u.value;
109
108
  i.value > n && (i.value = n);
110
109
  }
111
- function B() {
110
+ function T() {
112
111
  e.disabled || (i.value -= 1, g("prev-click", i.value));
113
112
  }
114
- function I() {
113
+ function B() {
115
114
  e.disabled || (i.value += 1, g("next-click", i.value));
116
115
  }
117
116
  function d(a, n) {
@@ -122,12 +121,12 @@ const l = (
122
121
  disabled: s(() => e.disabled),
123
122
  currentPage: i,
124
123
  changeEvent: z,
125
- handleSizeChange: T
124
+ handleSizeChange: y
126
125
  }), () => {
127
126
  var b;
128
- if (!y.value || !e.layout || e.hideOnSinglePage && u.value <= 1)
127
+ if (!k.value || !e.layout || e.hideOnSinglePage && u.value <= 1)
129
128
  return null;
130
- const a = [], n = [], $ = r("div", {
129
+ const a = [], n = [], I = r("div", {
131
130
  class: l.e("rightwrapper")
132
131
  }, n), S = {
133
132
  prev: r(O, {
@@ -135,7 +134,7 @@ const l = (
135
134
  currentPage: i.value,
136
135
  prevText: e.prevText,
137
136
  prevIcon: e.prevIcon,
138
- onClick: B
137
+ onClick: T
139
138
  }),
140
139
  jumper: r(W, {
141
140
  size: e.small ? "small" : "default"
@@ -153,7 +152,7 @@ const l = (
153
152
  pageCount: u.value,
154
153
  nextText: e.nextText,
155
154
  nextIcon: e.nextIcon,
156
- onClick: I
155
+ onClick: B
157
156
  }),
158
157
  sizes: r(R, {
159
158
  pageSize: v.value,
@@ -166,15 +165,15 @@ const l = (
166
165
  total: r(K, {
167
166
  total: t(e.total) ? e.total : 0
168
167
  })
169
- }, U = e.layout.split(",").map((f) => f.trim());
168
+ }, $ = e.layout.split(",").map((f) => f.trim());
170
169
  let C = !1;
171
- return U.forEach((f) => {
170
+ return $.forEach((f) => {
172
171
  if (f === "->") {
173
172
  C = !0;
174
173
  return;
175
174
  }
176
175
  C ? n.push(S[f]) : a.push(S[f]);
177
- }), d(a[0], l.is("first")), d(a[a.length - 1], l.is("last")), C && n.length > 0 && (d(n[0], l.is("first")), d(n[n.length - 1], l.is("last")), a.push($)), r("div", {
176
+ }), d(a[0], l.is("first")), d(a[a.length - 1], l.is("last")), C && n.length > 0 && (d(n[0], l.is("first")), d(n[n.length - 1], l.is("last")), a.push(I)), r("div", {
178
177
  role: "pagination",
179
178
  "aria-label": "pagination",
180
179
  class: [l.b(), l.is("background", e.background), {
@@ -185,5 +184,5 @@ const l = (
185
184
  }
186
185
  });
187
186
  export {
188
- le as default
187
+ ie as default
189
188
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as C, ref as w, computed as p, openBlock as d, createBlock as y, unref as t, mergeProps as $, withCtx as n, createElementVNode as a, normalizeClass as r, normalizeStyle as b, createCommentVNode as B, createTextVNode as c, toDisplayString as s, createVNode as T, renderSlot as I } from "vue";
1
+ import { defineComponent as N, ref as w, computed as p, openBlock as d, createBlock as y, unref as t, mergeProps as $, withCtx as n, createElementVNode as a, normalizeClass as r, normalizeStyle as b, createCommentVNode as B, createTextVNode as c, toDisplayString as s, createVNode as T, renderSlot as I } from "vue";
2
2
  import { VftButton as h } from "../button/index.js";
3
3
  import { VftIcon as P } from "../icon/index.js";
4
4
  import { VftTooltip as S } from "../tooltip/index.js";
@@ -9,10 +9,9 @@ import "../../hooks/use-z-index/index.js";
9
9
  import "@vueuse/core";
10
10
  import { addUnit as E } from "@vft/utils";
11
11
  import "../../utils/ns-cover.js";
12
- const R = C({
13
- name: "ElPopconfirm"
14
- }), M = /* @__PURE__ */ C({
15
- ...R,
12
+ const L = /* @__PURE__ */ N({
13
+ name: "ElPopconfirm",
14
+ __name: "popconfirm",
16
15
  props: {
17
16
  title: {},
18
17
  confirmButtonText: {},
@@ -28,19 +27,19 @@ const R = C({
28
27
  width: { default: 150 }
29
28
  },
30
29
  emits: ["confirm", "cancel"],
31
- setup(k, { emit: f }) {
32
- const l = k, o = A("popconfirm"), m = w(), u = () => {
30
+ setup(C, { emit: f }) {
31
+ const l = C, o = A("popconfirm"), m = w(), u = () => {
33
32
  var e, i;
34
33
  (i = (e = m.value) == null ? void 0 : e.onClose) == null || i.call(e);
35
- }, v = p(() => ({
34
+ }, k = p(() => ({
36
35
  width: E(l.width)
37
- })), V = (e) => {
36
+ })), v = (e) => {
38
37
  f("confirm", e), u();
39
- }, g = (e) => {
38
+ }, V = (e) => {
40
39
  f("cancel", e), u();
41
- }, z = p(
40
+ }, g = p(
42
41
  () => l.confirmButtonText || "确认"
43
- ), N = p(
42
+ ), z = p(
44
43
  () => l.cancelButtonText || "取消"
45
44
  );
46
45
  return (e, i) => (d(), y(t(S), $({
@@ -50,7 +49,7 @@ const R = C({
50
49
  effect: "light"
51
50
  }, e.$attrs, {
52
51
  "popper-class": `${t(o).namespace.value}-popover`,
53
- "popper-style": v.value,
52
+ "popper-style": k.value,
54
53
  teleported: e.teleported,
55
54
  "fallback-placements": ["bottom", "top", "right", "left"],
56
55
  "hide-after": e.hideAfter,
@@ -79,10 +78,10 @@ const R = C({
79
78
  size: "small",
80
79
  type: e.cancelButtonType === "text" ? "" : e.cancelButtonType,
81
80
  text: e.cancelButtonType === "text",
82
- onClick: g
81
+ onClick: V
83
82
  }, {
84
83
  default: n(() => [
85
- c(s(N.value), 1)
84
+ c(s(z.value), 1)
86
85
  ]),
87
86
  _: 1
88
87
  }, 8, ["type", "text"]),
@@ -90,10 +89,10 @@ const R = C({
90
89
  size: "small",
91
90
  type: e.confirmButtonType === "text" ? "" : e.confirmButtonType,
92
91
  text: e.confirmButtonType === "text",
93
- onClick: V
92
+ onClick: v
94
93
  }, {
95
94
  default: n(() => [
96
- c(s(z.value), 1)
95
+ c(s(g.value), 1)
97
96
  ]),
98
97
  _: 1
99
98
  }, 8, ["type", "text"])
@@ -108,5 +107,5 @@ const R = C({
108
107
  }
109
108
  });
110
109
  export {
111
- M as default
110
+ L as default
112
111
  };