vft 0.0.32 → 0.0.33

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 (280) hide show
  1. package/dist/index.css +1 -1
  2. package/es/components/avatar/avatar.vue2.mjs +3 -2
  3. package/es/components/avatar/index.mjs +4 -3
  4. package/es/components/back-top/back-top.vue.d.ts +2 -2
  5. package/es/components/back-top/back-top.vue2.mjs +3 -2
  6. package/es/components/back-top/index.d.ts +2 -2
  7. package/es/components/back-top/index.mjs +4 -3
  8. package/es/components/back-top/use-back-top.mjs +11 -10
  9. package/es/components/clamp/clamp.vue2.mjs +10 -9
  10. package/es/components/clamp/index.mjs +4 -3
  11. package/es/components/clamp-toggle/clamp-toggle.vue2.mjs +3 -2
  12. package/es/components/clamp-toggle/index.mjs +4 -3
  13. package/es/components/collapse-transition/src/collapse-transition.vue2.mjs +6 -5
  14. package/es/components/config-provider/config-provider.vue2.mjs +3 -2
  15. package/es/components/config-provider/hooks/use-global-config.d.ts +1 -1
  16. package/es/components/config-provider/hooks/use-global-config.mjs +5 -4
  17. package/es/components/config-provider/index.mjs +11 -10
  18. package/es/components/context-menu/context-menu.vue2.mjs +4 -2
  19. package/es/components/descriptions/description-item.vue2.mjs +6 -5
  20. package/es/components/descriptions/description.vue2.mjs +14 -13
  21. package/es/components/descriptions/descriptions-cell.mjs +12 -11
  22. package/es/components/descriptions/descriptions-row.vue2.mjs +12 -11
  23. package/es/components/descriptions/index.mjs +6 -5
  24. package/es/components/divider/divider.vue2.mjs +6 -5
  25. package/es/components/divider/index.mjs +4 -3
  26. package/es/components/empty/empty.vue2.mjs +3 -2
  27. package/es/components/empty/index.mjs +6 -5
  28. package/es/components/exception/index.mjs +4 -3
  29. package/es/components/focus-trap/focus-trap.vue2.mjs +1 -1
  30. package/es/components/footer-layout/footer-layout.vue2.mjs +10 -9
  31. package/es/components/footer-layout/index.mjs +4 -3
  32. package/es/components/full-screen/full-screen.vue2.mjs +7 -6
  33. package/es/components/full-screen/index.mjs +4 -3
  34. package/es/components/header-layout/header-layout.vue2.mjs +3 -2
  35. package/es/components/header-layout/index.mjs +4 -3
  36. package/es/components/icon/icon.vue2.mjs +7 -6
  37. package/es/components/icon/index.mjs +5 -4
  38. package/es/components/icon-text/icon-text.vue.d.ts +2 -2
  39. package/es/components/icon-text/icon-text.vue2.mjs +10 -9
  40. package/es/components/icon-text/index.d.ts +2 -2
  41. package/es/components/icon-text/index.mjs +4 -3
  42. package/es/components/iframe-layout/iframe-layout.vue2.mjs +3 -2
  43. package/es/components/iframe-layout/iframe-page.vue2.mjs +3 -2
  44. package/es/components/iframe-layout/index.mjs +4 -3
  45. package/es/components/image/image.vue2.mjs +8 -7
  46. package/es/components/image/index.mjs +4 -3
  47. package/es/components/input/index.mjs +4 -3
  48. package/es/components/input/input.vue2.mjs +3 -2
  49. package/es/components/link/index.mjs +4 -3
  50. package/es/components/link/link.vue2.mjs +3 -2
  51. package/es/components/loading/loading.mjs +56 -50
  52. package/es/components/loading/service.mjs +20 -19
  53. package/es/components/logo/index.mjs +4 -3
  54. package/es/components/logo/logo.vue2.mjs +10 -9
  55. package/es/components/md-code-demo/index.mjs +4 -3
  56. package/es/components/md-code-demo/md-code-demo.mjs +4 -2
  57. package/es/components/md-code-tabs/index.mjs +4 -3
  58. package/es/components/md-comment/index.mjs +4 -3
  59. package/es/components/md-comment/md-comment.vue2.mjs +7 -6
  60. package/es/components/md-container/index.mjs +4 -3
  61. package/es/components/md-container/md-container.vue2.mjs +43 -42
  62. package/es/components/md-tabs/index.mjs +4 -3
  63. package/es/components/md-vue-playground/index.mjs +4 -3
  64. package/es/components/md-vue-playground/md-vue-playground.vue2.mjs +11 -10
  65. package/es/components/menu/index.d.ts +4 -4
  66. package/es/components/menu/index.mjs +9 -8
  67. package/es/components/menu/menu-collapse-transition.vue2.mjs +3 -2
  68. package/es/components/menu/menu-item-group.vue2.mjs +8 -7
  69. package/es/components/menu/menu-item.vue.d.ts +2 -2
  70. package/es/components/menu/menu-item.vue2.mjs +3 -2
  71. package/es/components/menu/menu.vue2.mjs +3 -2
  72. package/es/components/menu/sub-menu.vue2.mjs +3 -2
  73. package/es/components/menu/use-menu-css-var.mjs +3 -2
  74. package/es/components/message/index.mjs +8 -7
  75. package/es/components/message/message.vue2.mjs +5 -4
  76. package/es/components/message/method.mjs +17 -15
  77. package/es/components/multiple-tabs/multiple-tabs.vue2.mjs +3 -2
  78. package/es/components/multiple-tabs/tab-content.vue2.mjs +4 -2
  79. package/es/components/multiple-tabs/use/use-tab-dropdown.mjs +16 -16
  80. package/es/components/overlay/index.mjs +4 -3
  81. package/es/components/overlay/overlay.vue2.mjs +16 -15
  82. package/es/components/page-wrapper/index.mjs +4 -3
  83. package/es/components/page-wrapper/page-wrapper.vue2.mjs +6 -5
  84. package/es/components/pagination/components/jumper.vue2.mjs +15 -14
  85. package/es/components/pagination/components/pager.vue2.mjs +3 -2
  86. package/es/components/pagination/components/sizes.vue2.mjs +3 -2
  87. package/es/components/pagination/components/total.vue2.mjs +5 -4
  88. package/es/components/pagination/index.mjs +9 -8
  89. package/es/components/pagination/pagination.mjs +19 -18
  90. package/es/components/popover/index.d.ts +2 -2
  91. package/es/components/popover/index.mjs +4 -3
  92. package/es/components/popover/popover.vue.d.ts +2 -2
  93. package/es/components/popover/popover.vue2.mjs +3 -2
  94. package/es/components/popper/arrow.vue2.mjs +3 -2
  95. package/es/components/popper/composables/use-content-dom.mjs +3 -2
  96. package/es/components/popper/composables/use-content.mjs +4 -2
  97. package/es/components/popper/index.mjs +10 -9
  98. package/es/components/popper/trigger.vue2.mjs +11 -9
  99. package/es/components/qrcode/index.mjs +4 -3
  100. package/es/components/qrcode/qrcode.vue2.mjs +6 -5
  101. package/es/components/result/index.mjs +4 -3
  102. package/es/components/result/result.vue2.mjs +3 -2
  103. package/es/components/router-view-content/index.d.ts +6 -6
  104. package/es/components/router-view-content/index.mjs +4 -3
  105. package/es/components/router-view-content/router-view-content.vue.d.ts +6 -6
  106. package/es/components/router-view-content/router-view-content.vue2.mjs +17 -16
  107. package/es/components/search/index.mjs +4 -3
  108. package/es/components/search/search.vue2.mjs +3 -2
  109. package/es/components/side-menu/index.mjs +4 -3
  110. package/es/components/side-menu/side-menu.vue2.mjs +14 -12
  111. package/es/components/slot/only-child.mjs +3 -2
  112. package/es/components/tabs/index.mjs +9 -8
  113. package/es/components/tabs/tab-bar.vue2.mjs +3 -2
  114. package/es/components/tabs/tab-nav.vue2.mjs +3 -2
  115. package/es/components/tabs/tab-pane.vue2.mjs +3 -2
  116. package/es/components/tabs/tabs.vue2.mjs +3 -2
  117. package/es/components/tag/index.d.ts +2 -2
  118. package/es/components/tag/index.mjs +4 -3
  119. package/es/components/tag/tag.vue.d.ts +2 -2
  120. package/es/components/tag/tag.vue2.mjs +3 -2
  121. package/es/components/tooltip/content.vue2.mjs +12 -11
  122. package/es/components/tooltip/index.d.ts +2 -2
  123. package/es/components/tooltip/index.mjs +4 -3
  124. package/es/components/tooltip/tooltip.vue.d.ts +2 -2
  125. package/es/components/tooltip/tooltip.vue2.mjs +12 -10
  126. package/es/components/tooltip/trigger.vue2.mjs +7 -6
  127. package/es/components/tooltip/utils.mjs +6 -4
  128. package/es/hooks/use-cursor/index.mjs +4 -4
  129. package/es/hooks/use-id/index.mjs +6 -5
  130. package/es/hooks/use-namespace/index.d.ts +1 -1
  131. package/es/hooks/use-namespace/index.mjs +27 -26
  132. package/es/hooks/use-ordered-children/index.mjs +5 -4
  133. package/es/index.mjs +53 -51
  134. package/es/package.json.mjs +1 -1
  135. package/es/utils/index.d.ts +1 -0
  136. package/es/utils/index.mjs +19 -17
  137. package/es/utils/ns-cover.d.ts +1 -0
  138. package/es/utils/ns-cover.mjs +7 -0
  139. package/lib/components/avatar/avatar.vue2.js +1 -1
  140. package/lib/components/avatar/index.js +1 -1
  141. package/lib/components/back-top/back-top.vue.d.ts +2 -2
  142. package/lib/components/back-top/back-top.vue2.js +1 -1
  143. package/lib/components/back-top/index.d.ts +2 -2
  144. package/lib/components/back-top/index.js +1 -1
  145. package/lib/components/back-top/use-back-top.js +1 -1
  146. package/lib/components/clamp/clamp.vue2.js +1 -1
  147. package/lib/components/clamp/index.js +1 -1
  148. package/lib/components/clamp-toggle/clamp-toggle.vue2.js +1 -1
  149. package/lib/components/clamp-toggle/index.js +1 -1
  150. package/lib/components/collapse-transition/src/collapse-transition.vue2.js +1 -1
  151. package/lib/components/config-provider/config-provider.vue2.js +1 -1
  152. package/lib/components/config-provider/hooks/use-global-config.d.ts +1 -1
  153. package/lib/components/config-provider/hooks/use-global-config.js +1 -1
  154. package/lib/components/config-provider/index.js +1 -1
  155. package/lib/components/context-menu/context-menu.vue2.js +1 -1
  156. package/lib/components/descriptions/description-item.vue2.js +1 -1
  157. package/lib/components/descriptions/description.vue2.js +1 -1
  158. package/lib/components/descriptions/descriptions-cell.js +1 -1
  159. package/lib/components/descriptions/descriptions-row.vue2.js +1 -1
  160. package/lib/components/descriptions/index.js +1 -1
  161. package/lib/components/divider/divider.vue2.js +1 -1
  162. package/lib/components/divider/index.js +1 -1
  163. package/lib/components/empty/empty.vue2.js +1 -1
  164. package/lib/components/empty/index.js +1 -1
  165. package/lib/components/exception/index.js +1 -1
  166. package/lib/components/focus-trap/focus-trap.vue2.js +1 -1
  167. package/lib/components/footer-layout/footer-layout.vue2.js +1 -1
  168. package/lib/components/footer-layout/index.js +1 -1
  169. package/lib/components/full-screen/full-screen.vue2.js +1 -1
  170. package/lib/components/full-screen/index.js +1 -1
  171. package/lib/components/header-layout/header-layout.vue2.js +1 -1
  172. package/lib/components/header-layout/index.js +1 -1
  173. package/lib/components/icon/icon.vue2.js +1 -1
  174. package/lib/components/icon/index.js +1 -1
  175. package/lib/components/icon-text/icon-text.vue.d.ts +2 -2
  176. package/lib/components/icon-text/icon-text.vue2.js +1 -1
  177. package/lib/components/icon-text/index.d.ts +2 -2
  178. package/lib/components/icon-text/index.js +1 -1
  179. package/lib/components/iframe-layout/iframe-layout.vue2.js +1 -1
  180. package/lib/components/iframe-layout/iframe-page.vue2.js +1 -1
  181. package/lib/components/iframe-layout/index.js +1 -1
  182. package/lib/components/image/image.vue2.js +1 -1
  183. package/lib/components/image/index.js +1 -1
  184. package/lib/components/input/index.js +1 -1
  185. package/lib/components/input/input.vue2.js +1 -1
  186. package/lib/components/link/index.js +1 -1
  187. package/lib/components/link/link.vue2.js +1 -1
  188. package/lib/components/loading/loading.js +1 -1
  189. package/lib/components/loading/service.js +1 -1
  190. package/lib/components/logo/index.js +1 -1
  191. package/lib/components/logo/logo.vue2.js +1 -1
  192. package/lib/components/md-code-demo/index.js +1 -1
  193. package/lib/components/md-code-demo/md-code-demo.js +1 -1
  194. package/lib/components/md-code-tabs/index.js +1 -1
  195. package/lib/components/md-comment/index.js +1 -1
  196. package/lib/components/md-comment/md-comment.vue2.js +1 -1
  197. package/lib/components/md-container/index.js +1 -1
  198. package/lib/components/md-container/md-container.vue2.js +1 -1
  199. package/lib/components/md-tabs/index.js +1 -1
  200. package/lib/components/md-vue-playground/index.js +1 -1
  201. package/lib/components/md-vue-playground/md-vue-playground.vue2.js +1 -1
  202. package/lib/components/menu/index.d.ts +4 -4
  203. package/lib/components/menu/index.js +1 -1
  204. package/lib/components/menu/menu-collapse-transition.vue2.js +1 -1
  205. package/lib/components/menu/menu-item-group.vue2.js +1 -1
  206. package/lib/components/menu/menu-item.vue.d.ts +2 -2
  207. package/lib/components/menu/menu-item.vue2.js +1 -1
  208. package/lib/components/menu/menu.vue2.js +1 -1
  209. package/lib/components/menu/sub-menu.vue2.js +1 -1
  210. package/lib/components/menu/use-menu-css-var.js +1 -1
  211. package/lib/components/message/index.js +1 -1
  212. package/lib/components/message/message.vue2.js +1 -1
  213. package/lib/components/message/method.js +1 -1
  214. package/lib/components/multiple-tabs/multiple-tabs.vue2.js +1 -1
  215. package/lib/components/multiple-tabs/tab-content.vue2.js +1 -1
  216. package/lib/components/multiple-tabs/use/use-tab-dropdown.js +1 -1
  217. package/lib/components/overlay/index.js +1 -1
  218. package/lib/components/overlay/overlay.vue2.js +1 -1
  219. package/lib/components/page-wrapper/index.js +1 -1
  220. package/lib/components/page-wrapper/page-wrapper.vue2.js +1 -1
  221. package/lib/components/pagination/components/jumper.vue2.js +1 -1
  222. package/lib/components/pagination/components/pager.vue2.js +1 -1
  223. package/lib/components/pagination/components/sizes.vue2.js +1 -1
  224. package/lib/components/pagination/components/total.vue2.js +1 -1
  225. package/lib/components/pagination/index.js +1 -1
  226. package/lib/components/pagination/pagination.js +1 -1
  227. package/lib/components/popover/index.d.ts +2 -2
  228. package/lib/components/popover/index.js +1 -1
  229. package/lib/components/popover/popover.vue.d.ts +2 -2
  230. package/lib/components/popover/popover.vue2.js +1 -1
  231. package/lib/components/popper/arrow.vue2.js +1 -1
  232. package/lib/components/popper/composables/use-content-dom.js +1 -1
  233. package/lib/components/popper/composables/use-content.js +1 -1
  234. package/lib/components/popper/index.js +1 -1
  235. package/lib/components/popper/trigger.vue2.js +1 -1
  236. package/lib/components/qrcode/index.js +1 -1
  237. package/lib/components/qrcode/qrcode.vue2.js +1 -1
  238. package/lib/components/result/index.js +1 -1
  239. package/lib/components/result/result.vue2.js +1 -1
  240. package/lib/components/router-view-content/index.d.ts +6 -6
  241. package/lib/components/router-view-content/index.js +1 -1
  242. package/lib/components/router-view-content/router-view-content.vue.d.ts +6 -6
  243. package/lib/components/router-view-content/router-view-content.vue2.js +1 -1
  244. package/lib/components/search/index.js +1 -1
  245. package/lib/components/search/search.vue2.js +1 -1
  246. package/lib/components/side-menu/index.js +1 -1
  247. package/lib/components/side-menu/side-menu.vue2.js +1 -1
  248. package/lib/components/slot/only-child.js +1 -1
  249. package/lib/components/tabs/index.js +1 -1
  250. package/lib/components/tabs/tab-bar.vue2.js +1 -1
  251. package/lib/components/tabs/tab-nav.vue2.js +1 -1
  252. package/lib/components/tabs/tab-pane.vue2.js +1 -1
  253. package/lib/components/tabs/tabs.vue2.js +1 -1
  254. package/lib/components/tag/index.d.ts +2 -2
  255. package/lib/components/tag/index.js +1 -1
  256. package/lib/components/tag/tag.vue.d.ts +2 -2
  257. package/lib/components/tag/tag.vue2.js +1 -1
  258. package/lib/components/tooltip/content.vue2.js +1 -1
  259. package/lib/components/tooltip/index.d.ts +2 -2
  260. package/lib/components/tooltip/index.js +1 -1
  261. package/lib/components/tooltip/tooltip.vue.d.ts +2 -2
  262. package/lib/components/tooltip/tooltip.vue2.js +1 -1
  263. package/lib/components/tooltip/trigger.vue2.js +1 -1
  264. package/lib/components/tooltip/utils.js +1 -1
  265. package/lib/hooks/use-cursor/index.js +1 -1
  266. package/lib/hooks/use-id/index.js +1 -1
  267. package/lib/hooks/use-namespace/index.d.ts +1 -1
  268. package/lib/hooks/use-namespace/index.js +1 -1
  269. package/lib/hooks/use-ordered-children/index.js +1 -1
  270. package/lib/index.js +1 -1
  271. package/lib/package.json.js +1 -1
  272. package/lib/utils/index.d.ts +1 -0
  273. package/lib/utils/index.js +1 -1
  274. package/lib/utils/ns-cover.d.ts +1 -0
  275. package/lib/utils/ns-cover.js +1 -0
  276. package/package.json +1 -1
  277. package/theme-style/index.css +1 -1
  278. package/theme-style/src/side-menu.scss +1 -0
  279. package/theme-style/vft-md-basic-tabs.css +0 -0
  280. package/theme-style/vft-side-menu.css +1 -1
@@ -52,13 +52,14 @@ import "lodash";
52
52
  import "../../hooks/use-z-index/index.mjs";
53
53
  import "@vueuse/core";
54
54
  import "@vue/shared";
55
+ import "../../utils/ns-cover.mjs";
55
56
  import { useBackTop as I } from "./use-back-top.mjs";
56
57
  const i = (
57
58
  /* hoist-static*/
58
59
  _("back-top")
59
60
  ), N = c({
60
61
  name: i.b()
61
- }), Vt = /* @__PURE__ */ c({
62
+ }), jt = /* @__PURE__ */ c({
62
63
  ...N,
63
64
  props: {
64
65
  visibilityHeight: { default: 200 },
@@ -100,5 +101,5 @@ const i = (
100
101
  }
101
102
  });
102
103
  export {
103
- Vt as default
104
+ jt as default
104
105
  };
@@ -16,7 +16,7 @@ export declare const VftBackTop: import("vft/es/utils").SFCWithInstall<import("v
16
16
  required: false;
17
17
  };
18
18
  icon: {
19
- type: import("vue").PropType<import("..").IconProps | undefined>;
19
+ type: import("vue").PropType<string | import("..").IconProps | undefined>;
20
20
  required: false;
21
21
  };
22
22
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -37,7 +37,7 @@ export declare const VftBackTop: import("vft/es/utils").SFCWithInstall<import("v
37
37
  required: false;
38
38
  };
39
39
  icon: {
40
- type: import("vue").PropType<import("..").IconProps | undefined>;
40
+ type: import("vue").PropType<string | import("..").IconProps | undefined>;
41
41
  required: false;
42
42
  };
43
43
  }>> & {
@@ -2,9 +2,10 @@ import { withInstall as t } from "../../utils/vue/install.mjs";
2
2
  import "vue";
3
3
  import "@vue/shared";
4
4
  import "@vft/utils";
5
+ import "../../utils/ns-cover.mjs";
5
6
  import o from "./back-top.vue2.mjs";
6
- const f = t(o);
7
+ const s = t(o);
7
8
  export {
8
- f as VftBackTop,
9
- f as default
9
+ s as VftBackTop,
10
+ s as default
10
11
  };
@@ -2,23 +2,24 @@ import { shallowRef as u, ref as f, onMounted as m, watch as h, nextTick as T }
2
2
  import { useThrottleFn as g, useEventListener as b, useTimeoutFn as k } from "@vueuse/core";
3
3
  import "@vue/shared";
4
4
  import { throwError as a } from "../../utils/error.mjs";
5
- const E = (t, c, i) => {
6
- const e = u(), o = u(), r = f(!1), n = () => {
5
+ import "../../utils/ns-cover.mjs";
6
+ const q = (t, c, i) => {
7
+ const e = u(), l = u(), r = f(!1), n = () => {
7
8
  e.value && e.value.scrollTo({ left: 0, top: 0, behavior: "smooth" });
8
9
  }, s = () => {
9
10
  e.value && (r.value = e.value.scrollTop >= t.visibilityHeight);
10
- }, v = (l) => {
11
- n(), c("click", l);
11
+ }, v = (o) => {
12
+ n(), c("click", o);
12
13
  }, d = g(s, 300, !0);
13
- return b(o, "scroll", d), m(() => {
14
- o.value = document, e.value = document.documentElement, t.target && k(() => {
15
- e.value = document.querySelector(t.target) ?? void 0, e.value || a(i, `target does not exist: ${t.target}`), o.value = e.value;
14
+ return b(l, "scroll", d), m(() => {
15
+ l.value = document, e.value = document.documentElement, t.target && k(() => {
16
+ e.value = document.querySelector(t.target) ?? void 0, e.value || a(i, `target does not exist: ${t.target}`), l.value = e.value;
16
17
  }, 10);
17
18
  }), h(
18
19
  () => t.target,
19
- (l) => {
20
+ (o) => {
20
21
  T(() => {
21
- l && (e.value = document.querySelector(l) ?? void 0, e.value || a(i, `target does not exist: ${l}`), e.value && (r.value = e.value.scrollTop >= t.visibilityHeight), o.value = e.value);
22
+ o && (e.value = document.querySelector(o) ?? void 0, e.value || a(i, `target does not exist: ${o}`), e.value && (r.value = e.value.scrollTop >= t.visibilityHeight), l.value = e.value);
22
23
  });
23
24
  }
24
25
  ), {
@@ -27,5 +28,5 @@ const E = (t, c, i) => {
27
28
  };
28
29
  };
29
30
  export {
30
- E as useBackTop
31
+ q as useBackTop
31
32
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as T, ref as v, reactive as S, computed as r, watch as s, nextTick as E, onUnmounted as p, onMounted as F, openBlock as V, createElementBlock as q, normalizeStyle as D, unref as R, createElementVNode as B, renderSlot as M } from "vue";
1
+ import { defineComponent as T, ref as v, reactive as O, computed as r, watch as s, nextTick as E, onUnmounted as S, onMounted as F, openBlock as V, createElementBlock as q, normalizeStyle as D, unref as R, createElementVNode as B, renderSlot as M } from "vue";
2
2
  import { addUnit as G } from "@vft/utils";
3
3
  import { addListener as I, removeListener as J } from "resize-detector";
4
4
  import { useNamespace as K } from "../../hooks/use-namespace/index.mjs";
@@ -7,12 +7,13 @@ import "lodash";
7
7
  import "../../hooks/use-z-index/index.mjs";
8
8
  import "@vueuse/core";
9
9
  import "@vue/shared";
10
+ import "../../utils/ns-cover.mjs";
10
11
  const P = ["aria-label"], Q = (
11
12
  /* hoist-static*/
12
13
  K("clamp")
13
14
  ), W = T({
14
15
  name: Q.b()
15
- }), ie = /* @__PURE__ */ T({
16
+ }), oe = /* @__PURE__ */ T({
16
17
  ...W,
17
18
  props: {
18
19
  text: null,
@@ -25,7 +26,7 @@ const P = ["aria-label"], Q = (
25
26
  },
26
27
  emits: ["clamp-change", "update:expanded"],
27
28
  setup(e, { emit: y }) {
28
- const a = v(null), u = v(null), m = v(null), l = S({
29
+ const a = v(null), u = v(null), m = v(null), l = O({
29
30
  offset: 0,
30
31
  localExpanded: e.expanded,
31
32
  unregisterResizeCallback: null
@@ -33,7 +34,7 @@ const P = ["aria-label"], Q = (
33
34
  if (!l.localExpanded && e.maxHeight)
34
35
  return G(e.maxHeight);
35
36
  }), k = () => {
36
- m.value && (m.value.textContent = N.value);
37
+ m.value && (m.value.textContent = A.value);
37
38
  }, c = () => {
38
39
  l.localExpanded || (k(), (d() || n.value) && g());
39
40
  }, C = () => {
@@ -62,11 +63,11 @@ const P = ["aria-label"], Q = (
62
63
  }, h = (t) => {
63
64
  l.offset = t, k();
64
65
  }, j = () => {
65
- U(), A();
66
+ U(), p();
66
67
  }, U = () => {
67
68
  for (; (!d() || x() < 2) && l.offset < e.text.length; )
68
69
  b(1);
69
- }, A = () => {
70
+ }, p = () => {
70
71
  for (; d() && x() > 1 && l.offset > 0; )
71
72
  b(-1);
72
73
  }, b = (t) => {
@@ -81,7 +82,7 @@ const P = ["aria-label"], Q = (
81
82
  },
82
83
  { immediate: !0 }
83
84
  );
84
- const N = r(() => n.value ? O.value : e.text), O = r(() => {
85
+ const A = r(() => n.value ? N.value : e.text), N = r(() => {
85
86
  if (e.location === "start")
86
87
  return e.ellipsis + (e.text.slice(0, l.offset) || "").trim();
87
88
  if (e.location === "middle") {
@@ -120,7 +121,7 @@ const P = ["aria-label"], Q = (
120
121
  C();
121
122
  });
122
123
  }
123
- ), p(() => {
124
+ ), S(() => {
124
125
  H();
125
126
  }), F(() => {
126
127
  C();
@@ -161,5 +162,5 @@ const P = ["aria-label"], Q = (
161
162
  }
162
163
  });
163
164
  export {
164
- ie as default
165
+ oe as default
165
166
  };
@@ -2,9 +2,10 @@ import { withInstall as t } from "../../utils/vue/install.mjs";
2
2
  import "vue";
3
3
  import "@vue/shared";
4
4
  import "@vft/utils";
5
+ import "../../utils/ns-cover.mjs";
5
6
  import m from "./clamp.vue2.mjs";
6
- const f = t(m);
7
+ const l = t(m);
7
8
  export {
8
- f as VftClamp,
9
- f as default
9
+ l as VftClamp,
10
+ l as default
10
11
  };
@@ -6,13 +6,14 @@ import "lodash";
6
6
  import "../../hooks/use-z-index/index.mjs";
7
7
  import "@vueuse/core";
8
8
  import "@vue/shared";
9
+ import "../../utils/ns-cover.mjs";
9
10
  import { VftClamp as y } from "../clamp/index.mjs";
10
11
  const h = ["onClick"], l = (
11
12
  /* hoist-static*/
12
13
  p("clamp-toggle")
13
14
  ), k = i({
14
15
  name: l.b()
15
- }), j = /* @__PURE__ */ i({
16
+ }), q = /* @__PURE__ */ i({
16
17
  ...k,
17
18
  props: {
18
19
  text: null,
@@ -52,5 +53,5 @@ const h = ["onClick"], l = (
52
53
  }
53
54
  });
54
55
  export {
55
- j as default
56
+ q as default
56
57
  };
@@ -2,9 +2,10 @@ import { withInstall as t } from "../../utils/vue/install.mjs";
2
2
  import "vue";
3
3
  import "@vue/shared";
4
4
  import "@vft/utils";
5
+ import "../../utils/ns-cover.mjs";
5
6
  import o from "./clamp-toggle.vue2.mjs";
6
- const f = t(o);
7
+ const l = t(o);
7
8
  export {
8
- f as VftClampToggle,
9
- f as default
9
+ l as VftClampToggle,
10
+ l as default
10
11
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as o, openBlock as e, createBlock as s, Transition as i, mergeProps as n, unref as r, toHandlers as p, withCtx as g, renderSlot as m } from "vue";
1
+ import { defineComponent as o, openBlock as e, createBlock as s, Transition as i, mergeProps as n, unref as r, toHandlers as p, withCtx as m, renderSlot as g } from "vue";
2
2
  import { useNamespace as l } from "../../../hooks/use-namespace/index.mjs";
3
3
  import "@popperjs/core";
4
4
  import "lodash";
@@ -6,9 +6,10 @@ import "../../../hooks/use-z-index/index.mjs";
6
6
  import "@vueuse/core";
7
7
  import "@vue/shared";
8
8
  import "@vft/utils";
9
+ import "../../../utils/ns-cover.mjs";
9
10
  const f = o({
10
11
  name: "VtfCollapseTransition"
11
- }), _ = /* @__PURE__ */ o({
12
+ }), u = /* @__PURE__ */ o({
12
13
  ...f,
13
14
  setup(y) {
14
15
  const a = l("collapse-transition"), d = {
@@ -34,13 +35,13 @@ const f = o({
34
35
  return (t, c) => (e(), s(i, n({
35
36
  name: r(a).b()
36
37
  }, p(d)), {
37
- default: g(() => [
38
- m(t.$slots, "default")
38
+ default: m(() => [
39
+ g(t.$slots, "default")
39
40
  ]),
40
41
  _: 3
41
42
  }, 16, ["name"]));
42
43
  }
43
44
  });
44
45
  export {
45
- _ as default
46
+ u as default
46
47
  };
@@ -6,6 +6,7 @@ import "lodash";
6
6
  import "../../hooks/use-z-index/index.mjs";
7
7
  import "@vueuse/core";
8
8
  import "@vue/shared";
9
+ import "../../utils/ns-cover.mjs";
9
10
  import { provideGlobalConfig as L } from "./hooks/use-global-config.mjs";
10
11
  import { messageConfig as S } from "./constants.mjs";
11
12
  const i = (
@@ -13,7 +14,7 @@ const i = (
13
14
  E("config-provider")
14
15
  ), T = s({
15
16
  name: i.b()
16
- }), N = /* @__PURE__ */ s({
17
+ }), P = /* @__PURE__ */ s({
17
18
  ...T,
18
19
  props: {
19
20
  theme: { default: "light" },
@@ -71,5 +72,5 @@ const i = (
71
72
  }
72
73
  });
73
74
  export {
74
- N as default
75
+ P as default
75
76
  };
@@ -5,7 +5,7 @@ export declare function useGlobalConfig<K extends keyof ConfigProviderContext, D
5
5
  export declare function useGlobalConfig(): Ref<ConfigProviderContext>;
6
6
  export declare function useGlobalComponentSettings(block: string): {
7
7
  ns: {
8
- namespace: import("vue").ComputedRef<string>;
8
+ namespace: Ref<string>;
9
9
  b: (blockSuffix?: string) => string;
10
10
  e: (element?: string | undefined) => string;
11
11
  m: (modifier?: string | undefined) => string;
@@ -1,6 +1,7 @@
1
1
  import { ref as v, getCurrentInstance as l, inject as p, computed as i, provide as g, unref as x } from "vue";
2
2
  import "@vue/shared";
3
3
  import { debugWarn as C } from "../../../utils/error.mjs";
4
+ import "../../../utils/ns-cover.mjs";
4
5
  import { keysOf as a } from "@vft/utils";
5
6
  import { useNamespace as b, defaultNamespace as I, namespaceContextKey as y } from "../../../hooks/use-namespace/index.mjs";
6
7
  import "@popperjs/core";
@@ -16,7 +17,7 @@ function d(t, o = void 0) {
16
17
  return ((n = r.value) == null ? void 0 : n[t]) ?? o;
17
18
  }) : r;
18
19
  }
19
- function q(t) {
20
+ function A(t) {
20
21
  const o = d(), r = b(
21
22
  t,
22
23
  i(() => {
@@ -34,7 +35,7 @@ function q(t) {
34
35
  zIndex: n
35
36
  };
36
37
  }
37
- const A = (t, o, r = !1) => {
38
+ const B = (t, o, r = !1) => {
38
39
  const n = !!l(), e = n ? d() : void 0, u = (o == null ? void 0 : o.provide) ?? (n ? g : void 0);
39
40
  if (!u) {
40
41
  C(
@@ -61,7 +62,7 @@ const A = (t, o, r = !1) => {
61
62
  return n;
62
63
  };
63
64
  export {
64
- A as provideGlobalConfig,
65
- q as useGlobalComponentSettings,
65
+ B as provideGlobalConfig,
66
+ A as useGlobalComponentSettings,
66
67
  d as useGlobalConfig
67
68
  };
@@ -2,16 +2,17 @@ import { withInstall as o } from "../../utils/vue/install.mjs";
2
2
  import "vue";
3
3
  import "@vue/shared";
4
4
  import "@vft/utils";
5
+ import "../../utils/ns-cover.mjs";
5
6
  import t from "./config-provider.vue2.mjs";
6
- import { configProviderContextKey as s, messageConfig as a } from "./constants.mjs";
7
- import { provideGlobalConfig as C, useGlobalComponentSettings as d, useGlobalConfig as x } from "./hooks/use-global-config.mjs";
8
- const n = o(t);
7
+ import { configProviderContextKey as a, messageConfig as g } from "./constants.mjs";
8
+ import { provideGlobalConfig as d, useGlobalComponentSettings as x, useGlobalConfig as b } from "./hooks/use-global-config.mjs";
9
+ const p = o(t);
9
10
  export {
10
- n as VftConfigProvider,
11
- s as configProviderContextKey,
12
- n as default,
13
- a as messageConfig,
14
- C as provideGlobalConfig,
15
- d as useGlobalComponentSettings,
16
- x as useGlobalConfig
11
+ p as VftConfigProvider,
12
+ a as configProviderContextKey,
13
+ p as default,
14
+ g as messageConfig,
15
+ d as provideGlobalConfig,
16
+ x as useGlobalComponentSettings,
17
+ b as useGlobalConfig
17
18
  };
@@ -46,12 +46,14 @@ import "../md-vue-playground/index.mjs";
46
46
  import "../md-code-demo/index.mjs";
47
47
  import "../md-code-tabs/index.mjs";
48
48
  import "../message/index.mjs";
49
+ import "../config-provider/hooks/use-global-config.mjs";
49
50
  import "@popperjs/core";
50
51
  import "lodash";
51
52
  import "../../hooks/use-z-index/index.mjs";
52
53
  import "@vueuse/core";
53
54
  import "@vue/shared";
54
- const H = { class: "vft-sub-menu" }, Ht = /* @__PURE__ */ w({
55
+ import "../../utils/ns-cover.mjs";
56
+ const H = { class: "vft-sub-menu" }, Lt = /* @__PURE__ */ w({
55
57
  __name: "context-menu",
56
58
  props: {
57
59
  axis: null,
@@ -125,5 +127,5 @@ const H = { class: "vft-sub-menu" }, Ht = /* @__PURE__ */ w({
125
127
  }
126
128
  });
127
129
  export {
128
- Ht as default
130
+ Lt as default
129
131
  };
@@ -6,13 +6,14 @@ import "../../hooks/use-z-index/index.mjs";
6
6
  import "@vueuse/core";
7
7
  import "@vue/shared";
8
8
  import "@vft/utils";
9
+ import "../../utils/ns-cover.mjs";
9
10
  const o = (
10
11
  /* hoist-static*/
11
12
  n("descriptions-item")
12
- ), a = l({
13
+ ), r = l({
13
14
  name: o.b()
14
- }), b = /* @__PURE__ */ l({
15
- ...a,
15
+ }), h = /* @__PURE__ */ l({
16
+ ...r,
16
17
  props: {
17
18
  label: null,
18
19
  span: { default: 1 },
@@ -23,10 +24,10 @@ const o = (
23
24
  className: null,
24
25
  labelClassName: null
25
26
  },
26
- setup(r) {
27
+ setup(a) {
27
28
  return (t, s) => e(t.$slots, "default");
28
29
  }
29
30
  });
30
31
  export {
31
- b as default
32
+ h as default
32
33
  };
@@ -2,6 +2,7 @@ import { defineComponent as N, useSlots as E, getCurrentInstance as w, provide a
2
2
  import "@vue/shared";
3
3
  import { flattedChildren as L } from "../../utils/vue/vnode.mjs";
4
4
  import "@vft/utils";
5
+ import "../../utils/ns-cover.mjs";
5
6
  import { useNamespace as R } from "../../hooks/use-namespace/index.mjs";
6
7
  import "@popperjs/core";
7
8
  import "lodash";
@@ -14,7 +15,7 @@ const o = (
14
15
  R("descriptions")
15
16
  ), q = N({
16
17
  name: o.b()
17
- }), Y = /* @__PURE__ */ N({
18
+ }), Z = /* @__PURE__ */ N({
18
19
  ...q,
19
20
  props: {
20
21
  border: { type: Boolean, default: !1 },
@@ -27,24 +28,24 @@ const o = (
27
28
  setup(s) {
28
29
  const f = E(), S = w();
29
30
  z(j, S.props);
30
- const $ = V(() => [o.b(), o.m("small")]), h = (t, a, e, l = !1) => (t.props || (t.props = {}), a > e && (t.props.span = e), l && (t.props.span = a), t), x = () => {
31
+ const $ = V(() => [o.b(), o.m("small")]), h = (t, a, e, r = !1) => (t.props || (t.props = {}), a > e && (t.props.span = e), r && (t.props.span = a), t), x = () => {
31
32
  var y;
32
33
  const t = L((y = f.default) == null ? void 0 : y.call(f)).filter(
33
- (r) => {
34
+ (l) => {
34
35
  var c;
35
- return ((c = r == null ? void 0 : r.type) == null ? void 0 : c.name) === "ElDescriptionsItem";
36
+ return ((c = l == null ? void 0 : l.type) == null ? void 0 : c.name) === "ElDescriptionsItem";
36
37
  }
37
38
  ), a = [];
38
- let e = [], l = s.column, b = 0;
39
- return t.forEach((r, c) => {
39
+ let e = [], r = s.column, b = 0;
40
+ return t.forEach((l, c) => {
40
41
  var g;
41
- const m = ((g = r == null ? void 0 : r.props) == null ? void 0 : g.span) || 1;
42
- if (c < t.length - 1 && (b += m > l ? l : m), c === t.length - 1) {
42
+ const m = ((g = l == null ? void 0 : l.props) == null ? void 0 : g.span) || 1;
43
+ if (c < t.length - 1 && (b += m > r ? r : m), c === t.length - 1) {
43
44
  const B = s.column - b % s.column;
44
- e.push(h(r, B, l, !0)), a.push(e);
45
+ e.push(h(l, B, r, !0)), a.push(e);
45
46
  return;
46
47
  }
47
- m < l ? (l -= m, e.push(r)) : (e.push(h(r, m, l)), a.push(e), l = s.column, e = []);
48
+ m < r ? (r -= m, e.push(l)) : (e.push(h(l, m, r)), a.push(e), r = s.column, e = []);
48
49
  }), a;
49
50
  };
50
51
  return (t, a) => (p(), d("div", {
@@ -76,8 +77,8 @@ const o = (
76
77
  class: n([i(o).e("table"), i(o).is("bordered", s.border)])
77
78
  }, [
78
79
  u("tbody", null, [
79
- (p(!0), d(I, null, K(x(), (e, l) => (p(), F(T, {
80
- key: l,
80
+ (p(!0), d(I, null, K(x(), (e, r) => (p(), F(T, {
81
+ key: r,
81
82
  row: e
82
83
  }, null, 8, ["row"]))), 128))
83
84
  ])
@@ -87,5 +88,5 @@ const o = (
87
88
  }
88
89
  });
89
90
  export {
90
- Y as default
91
+ Z as default
91
92
  };
@@ -7,8 +7,9 @@ import "../../hooks/use-z-index/index.mjs";
7
7
  import "@vueuse/core";
8
8
  import "@vue/shared";
9
9
  import { getNormalizedProps as j } from "../../utils/vue/vnode.mjs";
10
+ import "../../utils/ns-cover.mjs";
10
11
  import { descriptionsKey as D } from "./token.mjs";
11
- const q = S({
12
+ const B = S({
12
13
  name: "VftDescriptionsCell",
13
14
  props: {
14
15
  cell: {
@@ -27,10 +28,10 @@ const q = S({
27
28
  };
28
29
  },
29
30
  render() {
30
- var h, n, g, f, c, u;
31
+ var h, n, g, f, o, u;
31
32
  const e = j(
32
33
  this.cell
33
- ), { border: p, direction: N } = this.descriptions, l = N === "vertical", o = ((g = (n = (h = this.cell) == null ? void 0 : h.children) == null ? void 0 : n.label) == null ? void 0 : g.call(n)) || e.label, d = (u = (c = (f = this.cell) == null ? void 0 : f.children) == null ? void 0 : c.default) == null ? void 0 : u.call(c), i = e.span, a = e.align ? `is-${e.align}` : "", C = e.labelAlign ? `is-${e.labelAlign}` : a, m = e.className, b = e.labelClassName, r = {
34
+ ), { border: p, direction: N } = this.descriptions, l = N === "vertical", c = ((g = (n = (h = this.cell) == null ? void 0 : h.children) == null ? void 0 : n.label) == null ? void 0 : g.call(n)) || e.label, m = (u = (o = (f = this.cell) == null ? void 0 : f.children) == null ? void 0 : o.default) == null ? void 0 : u.call(o), i = e.span, a = e.align ? `is-${e.align}` : "", C = e.labelAlign ? `is-${e.labelAlign}` : a, d = e.className, b = e.labelClassName, r = {
34
35
  width: y(e.width),
35
36
  minWidth: y(e.minWidth)
36
37
  }, t = w("descriptions");
@@ -50,7 +51,7 @@ const q = S({
50
51
  ],
51
52
  colSpan: l ? i : 1
52
53
  },
53
- o
54
+ c
54
55
  );
55
56
  case "content":
56
57
  return s(
@@ -63,11 +64,11 @@ const q = S({
63
64
  t.is("bordered-content", p),
64
65
  t.is("vertical-content", l),
65
66
  a,
66
- m
67
+ d
67
68
  ],
68
69
  colSpan: l ? i : i * 2 - 1
69
70
  },
70
- d
71
+ m
71
72
  );
72
73
  default:
73
74
  return s(
@@ -78,19 +79,19 @@ const q = S({
78
79
  colSpan: i
79
80
  },
80
81
  [
81
- A(o) ? void 0 : s(
82
+ A(c) ? void 0 : s(
82
83
  "span",
83
84
  {
84
85
  class: [t.e("label"), b]
85
86
  },
86
- o
87
+ c
87
88
  ),
88
89
  s(
89
90
  "span",
90
91
  {
91
- class: [t.e("content"), m]
92
+ class: [t.e("content"), d]
92
93
  },
93
- d
94
+ m
94
95
  )
95
96
  ]
96
97
  );
@@ -98,5 +99,5 @@ const q = S({
98
99
  }
99
100
  });
100
101
  export {
101
- q as default
102
+ B as default
102
103
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as d, inject as y, unref as r, openBlock as t, createElementBlock as n, Fragment as o, createElementVNode as m, renderList as u, createBlock as a, createVNode as s } from "vue";
1
+ import { defineComponent as d, inject as y, unref as r, openBlock as t, createElementBlock as o, Fragment as n, createElementVNode as m, renderList as u, createBlock as p, createVNode as s } from "vue";
2
2
  import { useNamespace as f } from "../../hooks/use-namespace/index.mjs";
3
3
  import "@popperjs/core";
4
4
  import "lodash";
@@ -6,6 +6,7 @@ import "../../hooks/use-z-index/index.mjs";
6
6
  import "@vueuse/core";
7
7
  import "@vue/shared";
8
8
  import "@vft/utils";
9
+ import "../../utils/ns-cover.mjs";
9
10
  import c from "./descriptions-cell.mjs";
10
11
  import { descriptionsKey as k } from "./token.mjs";
11
12
  const g = { key: 1 }, _ = (
@@ -13,16 +14,16 @@ const g = { key: 1 }, _ = (
13
14
  f("descriptions-row")
14
15
  ), b = d({
15
16
  name: _.b()
16
- }), F = /* @__PURE__ */ d({
17
+ }), K = /* @__PURE__ */ d({
17
18
  ...b,
18
19
  props: {
19
20
  row: { default: [] }
20
21
  },
21
22
  setup(i) {
22
- const p = y(k, {});
23
- return (w, h) => r(p).direction === "vertical" ? (t(), n(o, { key: 0 }, [
23
+ const a = y(k, {});
24
+ return (w, h) => r(a).direction === "vertical" ? (t(), o(n, { key: 0 }, [
24
25
  m("tr", null, [
25
- (t(!0), n(o, null, u(i.row, (e, l) => (t(), a(r(c), {
26
+ (t(!0), o(n, null, u(i.row, (e, l) => (t(), p(r(c), {
26
27
  key: `tr1-${l}`,
27
28
  cell: e,
28
29
  tag: "th",
@@ -30,18 +31,18 @@ const g = { key: 1 }, _ = (
30
31
  }, null, 8, ["cell"]))), 128))
31
32
  ]),
32
33
  m("tr", null, [
33
- (t(!0), n(o, null, u(i.row, (e, l) => (t(), a(r(c), {
34
+ (t(!0), o(n, null, u(i.row, (e, l) => (t(), p(r(c), {
34
35
  key: `tr2-${l}`,
35
36
  cell: e,
36
37
  tag: "td",
37
38
  type: "content"
38
39
  }, null, 8, ["cell"]))), 128))
39
40
  ])
40
- ], 64)) : (t(), n("tr", g, [
41
- (t(!0), n(o, null, u(i.row, (e, l) => (t(), n(o, {
41
+ ], 64)) : (t(), o("tr", g, [
42
+ (t(!0), o(n, null, u(i.row, (e, l) => (t(), o(n, {
42
43
  key: `tr3-${l}`
43
44
  }, [
44
- r(p).border ? (t(), n(o, { key: 0 }, [
45
+ r(a).border ? (t(), o(n, { key: 0 }, [
45
46
  s(r(c), {
46
47
  cell: e,
47
48
  tag: "td",
@@ -52,7 +53,7 @@ const g = { key: 1 }, _ = (
52
53
  tag: "td",
53
54
  type: "content"
54
55
  }, null, 8, ["cell"])
55
- ], 64)) : (t(), a(r(c), {
56
+ ], 64)) : (t(), p(r(c), {
56
57
  key: 1,
57
58
  cell: e,
58
59
  tag: "td",
@@ -63,5 +64,5 @@ const g = { key: 1 }, _ = (
63
64
  }
64
65
  });
65
66
  export {
66
- F as default
67
+ K as default
67
68
  };
@@ -2,13 +2,14 @@ import { withInstall as o, withNoopInstall as i } from "../../utils/vue/install.
2
2
  import "vue";
3
3
  import "@vue/shared";
4
4
  import "@vft/utils";
5
+ import "../../utils/ns-cover.mjs";
5
6
  import m from "./description.vue2.mjs";
6
7
  import t from "./description-item.vue2.mjs";
7
- const e = o(m, {
8
+ const a = o(m, {
8
9
  DescriptionsItem: t
9
- }), a = i(t);
10
+ }), l = i(t);
10
11
  export {
11
- e as VftDescriptions,
12
- a as VftDescriptionsItem,
13
- e as default
12
+ a as VftDescriptions,
13
+ l as VftDescriptionsItem,
14
+ a as default
14
15
  };