vft 0.0.46 → 0.0.48

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 (297) hide show
  1. package/dist/index.css +1 -1
  2. package/es/component.js +30 -27
  3. package/es/components/avatar/avatar.vue.d.ts +4 -4
  4. package/es/components/avatar/index.d.ts +4 -4
  5. package/es/components/avatar/index.js +4 -3
  6. package/es/components/back-top/back-top.vue.d.ts +21 -0
  7. package/es/components/back-top/back-top.vue2.js +23 -21
  8. package/es/components/back-top/index.d.ts +8 -1
  9. package/es/components/back-top/index.js +4 -3
  10. package/es/components/back-top/use-back-top.d.ts +1 -1
  11. package/es/components/back-top/use-back-top.js +23 -21
  12. package/es/components/clamp/index.js +4 -3
  13. package/es/components/clamp-toggle/clamp-toggle.vue2.js +15 -15
  14. package/es/components/clamp-toggle/index.js +4 -3
  15. package/es/components/config-provider/hooks/use-global-config.js +1 -1
  16. package/es/components/config-provider/index.js +11 -10
  17. package/es/components/context-menu/context-menu.vue2.js +3 -2
  18. package/es/components/descriptions/description.vue2.js +1 -1
  19. package/es/components/descriptions/index.js +6 -5
  20. package/es/components/divider/divider.vue.d.ts +2 -2
  21. package/es/components/divider/index.d.ts +2 -2
  22. package/es/components/divider/index.js +4 -3
  23. package/es/components/empty/index.js +6 -5
  24. package/es/components/exception/exception.vue2.js +13 -11
  25. package/es/components/exception/index.js +4 -3
  26. package/es/components/footer-layout/index.js +4 -3
  27. package/es/components/form/constants.d.ts +4 -0
  28. package/es/components/form/constants.js +5 -0
  29. package/es/components/form/form-item.vue.d.ts +133 -0
  30. package/es/components/form/form-item.vue.js +4 -0
  31. package/es/components/form/form-item.vue2.js +244 -0
  32. package/es/components/form/form-label-wrap.d.ts +11 -0
  33. package/es/components/form/form-label-wrap.js +70 -0
  34. package/es/components/form/form.vue.d.ts +168 -0
  35. package/es/components/form/form.vue.js +4 -0
  36. package/es/components/form/form.vue2.js +151 -0
  37. package/es/components/form/hooks/index.d.ts +2 -0
  38. package/es/components/form/hooks/index.js +10 -0
  39. package/es/components/form/hooks/use-form-common-props.d.ts +6 -0
  40. package/es/components/form/hooks/use-form-common-props.js +28 -0
  41. package/es/components/form/hooks/use-form-item.d.ts +18 -0
  42. package/es/components/form/hooks/use-form-item.js +48 -0
  43. package/es/components/form/index.d.ts +338 -0
  44. package/es/components/form/index.js +28 -0
  45. package/es/components/form/style/css.d.ts +0 -0
  46. package/es/components/form/style/css.js +2 -0
  47. package/es/components/form/style/index.d.ts +0 -0
  48. package/es/components/form/style/index.js +2 -0
  49. package/es/components/form/types.d.ts +43 -0
  50. package/es/components/form/types.js +9 -0
  51. package/es/components/form/utils.d.ts +9 -0
  52. package/es/components/form/utils.js +42 -0
  53. package/es/components/form-item/style/css.d.ts +0 -0
  54. package/es/components/form-item/style/css.js +2 -0
  55. package/es/components/form-item/style/index.d.ts +0 -0
  56. package/es/components/form-item/style/index.js +2 -0
  57. package/es/components/full-screen/index.js +4 -3
  58. package/es/components/header-layout/index.js +4 -3
  59. package/es/components/icon/icon.vue2.js +24 -24
  60. package/es/components/icon/index.js +5 -4
  61. package/es/components/icon-text/icon-text.vue2.js +20 -21
  62. package/es/components/icon-text/index.js +4 -3
  63. package/es/components/iframe-layout/index.js +4 -3
  64. package/es/components/image/index.js +4 -3
  65. package/es/components/index.d.ts +1 -0
  66. package/es/components/index.js +119 -103
  67. package/es/components/input/index.d.ts +4 -4
  68. package/es/components/input/index.js +4 -3
  69. package/es/components/input/input.vue.d.ts +4 -4
  70. package/es/components/input/input.vue2.js +28 -25
  71. package/es/components/link/index.js +4 -3
  72. package/es/components/logo/index.js +4 -3
  73. package/es/components/md-code-demo/index.js +4 -3
  74. package/es/components/md-code-tabs/index.js +4 -3
  75. package/es/components/md-comment/index.js +4 -3
  76. package/es/components/md-container/index.js +4 -3
  77. package/es/components/md-container/md-container.vue2.js +69 -66
  78. package/es/components/md-tabs/index.js +4 -3
  79. package/es/components/md-vue-playground/index.js +4 -3
  80. package/es/components/menu/index.js +9 -8
  81. package/es/components/menu/menu-item.vue2.js +4 -3
  82. package/es/components/menu/menu.vue2.js +1 -1
  83. package/es/components/menu/sub-menu.vue2.js +3 -2
  84. package/es/components/message/index.js +8 -7
  85. package/es/components/multiple-tabs/multiple-tabs.vue2.js +42 -40
  86. package/es/components/multiple-tabs/tab-content.vue2.js +3 -2
  87. package/es/components/multiple-tabs/use/use-tab-dropdown.js +20 -20
  88. package/es/components/overlay/index.js +4 -3
  89. package/es/components/page-wrapper/index.js +4 -3
  90. package/es/components/pagination/index.d.ts +2 -2
  91. package/es/components/pagination/index.js +9 -8
  92. package/es/components/pagination/pagination.d.ts +2 -2
  93. package/es/components/popover/index.d.ts +4 -4
  94. package/es/components/popover/index.js +4 -3
  95. package/es/components/popper/composables/use-content.d.ts +2 -2
  96. package/es/components/popper/index.d.ts +2 -2
  97. package/es/components/popper/index.js +10 -9
  98. package/es/components/popper/popper.vue.d.ts +2 -2
  99. package/es/components/qrcode/index.js +4 -3
  100. package/es/components/result/index.js +4 -3
  101. package/es/components/result/result.vue2.js +3 -2
  102. package/es/components/router-view-content/index.js +4 -3
  103. package/es/components/search/index.d.ts +3 -3
  104. package/es/components/search/index.js +4 -3
  105. package/es/components/search/search.vue.d.ts +3 -3
  106. package/es/components/search/search.vue2.js +3 -2
  107. package/es/components/side-menu/index.js +4 -3
  108. package/es/components/side-menu/side-menu.vue2.js +52 -54
  109. package/es/components/tabs/index.d.ts +2 -2
  110. package/es/components/tabs/index.js +9 -8
  111. package/es/components/tabs/tab-nav.vue2.js +4 -3
  112. package/es/components/tabs/tab-pane.vue2.js +1 -1
  113. package/es/components/tabs/tabs.vue.d.ts +2 -2
  114. package/es/components/tag/index.js +4 -3
  115. package/es/components/tag/tag.vue2.js +8 -7
  116. package/es/components/tooltip/index.d.ts +8 -8
  117. package/es/components/tooltip/index.js +4 -3
  118. package/es/components/tooltip/tooltip.vue.d.ts +2 -2
  119. package/es/components/tooltip/trigger.vue2.js +1 -1
  120. package/es/hooks/index.d.ts +2 -0
  121. package/es/hooks/index.js +30 -25
  122. package/es/hooks/use-id/index.js +3 -2
  123. package/es/hooks/use-ordered-children/index.js +5 -4
  124. package/es/hooks/use-popper/index.d.ts +2 -2
  125. package/es/hooks/use-prop/index.d.ts +2 -0
  126. package/es/hooks/use-prop/index.js +11 -0
  127. package/es/hooks/use-size/index.d.ts +7 -0
  128. package/es/hooks/use-size/index.js +9 -0
  129. package/es/index.js +203 -177
  130. package/es/package.json.js +1 -1
  131. package/es/utils/index.d.ts +1 -0
  132. package/es/utils/index.js +27 -22
  133. package/es/utils/ns-cover.d.ts +12 -0
  134. package/es/utils/ns-cover.js +17 -5
  135. package/es/utils/objects.d.ts +4 -0
  136. package/es/utils/objects.js +12 -0
  137. package/lib/component.cjs +1 -1
  138. package/lib/components/avatar/avatar.vue.d.ts +4 -4
  139. package/lib/components/avatar/index.cjs +1 -1
  140. package/lib/components/avatar/index.d.ts +4 -4
  141. package/lib/components/back-top/back-top.vue.d.ts +21 -0
  142. package/lib/components/back-top/back-top.vue2.cjs +1 -1
  143. package/lib/components/back-top/index.cjs +1 -1
  144. package/lib/components/back-top/index.d.ts +8 -1
  145. package/lib/components/back-top/use-back-top.cjs +1 -1
  146. package/lib/components/back-top/use-back-top.d.ts +1 -1
  147. package/lib/components/clamp/index.cjs +1 -1
  148. package/lib/components/clamp-toggle/clamp-toggle.vue2.cjs +1 -1
  149. package/lib/components/clamp-toggle/index.cjs +1 -1
  150. package/lib/components/config-provider/hooks/use-global-config.cjs +1 -1
  151. package/lib/components/config-provider/index.cjs +1 -1
  152. package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
  153. package/lib/components/descriptions/description.vue2.cjs +1 -1
  154. package/lib/components/descriptions/index.cjs +1 -1
  155. package/lib/components/divider/divider.vue.d.ts +2 -2
  156. package/lib/components/divider/index.cjs +1 -1
  157. package/lib/components/divider/index.d.ts +2 -2
  158. package/lib/components/empty/index.cjs +1 -1
  159. package/lib/components/exception/exception.vue2.cjs +1 -1
  160. package/lib/components/exception/index.cjs +1 -1
  161. package/lib/components/footer-layout/index.cjs +1 -1
  162. package/lib/components/form/constants.cjs +1 -0
  163. package/lib/components/form/constants.d.ts +4 -0
  164. package/lib/components/form/form-item.vue.cjs +1 -0
  165. package/lib/components/form/form-item.vue.d.ts +133 -0
  166. package/lib/components/form/form-item.vue2.cjs +1 -0
  167. package/lib/components/form/form-label-wrap.cjs +1 -0
  168. package/lib/components/form/form-label-wrap.d.ts +11 -0
  169. package/lib/components/form/form.vue.cjs +1 -0
  170. package/lib/components/form/form.vue.d.ts +168 -0
  171. package/lib/components/form/form.vue2.cjs +1 -0
  172. package/lib/components/form/hooks/index.cjs +1 -0
  173. package/lib/components/form/hooks/index.d.ts +2 -0
  174. package/lib/components/form/hooks/use-form-common-props.cjs +1 -0
  175. package/lib/components/form/hooks/use-form-common-props.d.ts +6 -0
  176. package/lib/components/form/hooks/use-form-item.cjs +1 -0
  177. package/lib/components/form/hooks/use-form-item.d.ts +18 -0
  178. package/lib/components/form/index.cjs +1 -0
  179. package/lib/components/form/index.d.ts +338 -0
  180. package/lib/components/form/style/css.cjs +1 -0
  181. package/lib/components/form/style/css.d.ts +0 -0
  182. package/lib/components/form/style/index.cjs +1 -0
  183. package/lib/components/form/style/index.d.ts +0 -0
  184. package/lib/components/form/types.cjs +1 -0
  185. package/lib/components/form/types.d.ts +43 -0
  186. package/lib/components/form/utils.cjs +1 -0
  187. package/lib/components/form/utils.d.ts +9 -0
  188. package/lib/components/form-item/style/css.cjs +1 -0
  189. package/lib/components/form-item/style/css.d.ts +0 -0
  190. package/lib/components/form-item/style/index.cjs +1 -0
  191. package/lib/components/form-item/style/index.d.ts +0 -0
  192. package/lib/components/full-screen/index.cjs +1 -1
  193. package/lib/components/header-layout/index.cjs +1 -1
  194. package/lib/components/icon/icon.vue2.cjs +1 -1
  195. package/lib/components/icon/index.cjs +1 -1
  196. package/lib/components/icon-text/icon-text.vue2.cjs +1 -1
  197. package/lib/components/icon-text/index.cjs +1 -1
  198. package/lib/components/iframe-layout/index.cjs +1 -1
  199. package/lib/components/image/index.cjs +1 -1
  200. package/lib/components/index.cjs +1 -1
  201. package/lib/components/index.d.ts +1 -0
  202. package/lib/components/input/index.cjs +1 -1
  203. package/lib/components/input/index.d.ts +4 -4
  204. package/lib/components/input/input.vue.d.ts +4 -4
  205. package/lib/components/input/input.vue2.cjs +1 -1
  206. package/lib/components/link/index.cjs +1 -1
  207. package/lib/components/logo/index.cjs +1 -1
  208. package/lib/components/md-code-demo/index.cjs +1 -1
  209. package/lib/components/md-code-tabs/index.cjs +1 -1
  210. package/lib/components/md-comment/index.cjs +1 -1
  211. package/lib/components/md-container/index.cjs +1 -1
  212. package/lib/components/md-container/md-container.vue2.cjs +1 -1
  213. package/lib/components/md-tabs/index.cjs +1 -1
  214. package/lib/components/md-vue-playground/index.cjs +1 -1
  215. package/lib/components/menu/index.cjs +1 -1
  216. package/lib/components/menu/menu-item.vue2.cjs +1 -1
  217. package/lib/components/menu/menu.vue2.cjs +1 -1
  218. package/lib/components/menu/sub-menu.vue2.cjs +1 -1
  219. package/lib/components/message/index.cjs +1 -1
  220. package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
  221. package/lib/components/multiple-tabs/tab-content.vue2.cjs +1 -1
  222. package/lib/components/multiple-tabs/use/use-tab-dropdown.cjs +1 -1
  223. package/lib/components/overlay/index.cjs +1 -1
  224. package/lib/components/page-wrapper/index.cjs +1 -1
  225. package/lib/components/pagination/index.cjs +1 -1
  226. package/lib/components/pagination/index.d.ts +2 -2
  227. package/lib/components/pagination/pagination.d.ts +2 -2
  228. package/lib/components/popover/index.cjs +1 -1
  229. package/lib/components/popover/index.d.ts +4 -4
  230. package/lib/components/popper/composables/use-content.d.ts +2 -2
  231. package/lib/components/popper/index.cjs +1 -1
  232. package/lib/components/popper/index.d.ts +2 -2
  233. package/lib/components/popper/popper.vue.d.ts +2 -2
  234. package/lib/components/qrcode/index.cjs +1 -1
  235. package/lib/components/result/index.cjs +1 -1
  236. package/lib/components/result/result.vue2.cjs +1 -1
  237. package/lib/components/router-view-content/index.cjs +1 -1
  238. package/lib/components/search/index.cjs +1 -1
  239. package/lib/components/search/index.d.ts +3 -3
  240. package/lib/components/search/search.vue.d.ts +3 -3
  241. package/lib/components/search/search.vue2.cjs +1 -1
  242. package/lib/components/side-menu/index.cjs +1 -1
  243. package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
  244. package/lib/components/tabs/index.cjs +1 -1
  245. package/lib/components/tabs/index.d.ts +2 -2
  246. package/lib/components/tabs/tab-nav.vue2.cjs +1 -1
  247. package/lib/components/tabs/tab-pane.vue2.cjs +1 -1
  248. package/lib/components/tabs/tabs.vue.d.ts +2 -2
  249. package/lib/components/tag/index.cjs +1 -1
  250. package/lib/components/tag/tag.vue2.cjs +1 -1
  251. package/lib/components/tooltip/index.cjs +1 -1
  252. package/lib/components/tooltip/index.d.ts +8 -8
  253. package/lib/components/tooltip/tooltip.vue.d.ts +2 -2
  254. package/lib/components/tooltip/trigger.vue2.cjs +1 -1
  255. package/lib/hooks/index.cjs +1 -1
  256. package/lib/hooks/index.d.ts +2 -0
  257. package/lib/hooks/use-id/index.cjs +1 -1
  258. package/lib/hooks/use-ordered-children/index.cjs +1 -1
  259. package/lib/hooks/use-popper/index.d.ts +2 -2
  260. package/lib/hooks/use-prop/index.cjs +1 -0
  261. package/lib/hooks/use-prop/index.d.ts +2 -0
  262. package/lib/hooks/use-size/index.cjs +1 -0
  263. package/lib/hooks/use-size/index.d.ts +7 -0
  264. package/lib/index.cjs +1 -1
  265. package/lib/package.json.cjs +1 -1
  266. package/lib/utils/index.cjs +1 -1
  267. package/lib/utils/index.d.ts +1 -0
  268. package/lib/utils/ns-cover.cjs +1 -1
  269. package/lib/utils/ns-cover.d.ts +12 -0
  270. package/lib/utils/objects.cjs +1 -0
  271. package/lib/utils/objects.d.ts +4 -0
  272. package/package.json +4 -5
  273. package/theme-style/dark/css-vars.css +1 -1
  274. package/theme-style/index.css +1 -1
  275. package/theme-style/src/common/var.scss +16 -9
  276. package/theme-style/src/dark/css-vars.scss +1 -1
  277. package/theme-style/src/dark/var.scss +13 -12
  278. package/theme-style/src/form-item.scss +0 -0
  279. package/theme-style/src/form.scss +241 -0
  280. package/theme-style/src/header-layout.scss +0 -4
  281. package/theme-style/src/index.scss +2 -0
  282. package/theme-style/src/md-container.scss +1 -3
  283. package/theme-style/src/menu.scss +3 -1
  284. package/theme-style/src/side-menu.scss +1 -3
  285. package/theme-style/vft-form-item.css +0 -0
  286. package/theme-style/vft-form.css +1 -0
  287. package/theme-style/vft-full-screen.css +1 -1
  288. package/theme-style/vft-header-layout.css +1 -1
  289. package/theme-style/vft-loading.css +1 -1
  290. package/theme-style/vft-md-container.css +1 -1
  291. package/theme-style/vft-menu.css +1 -1
  292. package/theme-style/vft-side-menu.css +1 -1
  293. package/theme-style/vft-tabs.css +1 -1
  294. package/es/components/back-top/types.d.ts +0 -13
  295. package/es/components/back-top/types.js +0 -1
  296. package/lib/components/back-top/types.cjs +0 -1
  297. package/lib/components/back-top/types.d.ts +0 -13
@@ -41,11 +41,11 @@ export declare const usePopper: (referenceElementRef: Ref<ReferenceElement>, pop
41
41
  popperEscapeOffsets: import("@popperjs/core").SideObject;
42
42
  } | undefined;
43
43
  offset?: {
44
- auto?: import("@popperjs/core").Offsets | undefined;
44
+ bottom?: import("@popperjs/core").Offsets | undefined;
45
45
  left?: import("@popperjs/core").Offsets | undefined;
46
46
  right?: import("@popperjs/core").Offsets | undefined;
47
- bottom?: import("@popperjs/core").Offsets | undefined;
48
47
  top?: import("@popperjs/core").Offsets | undefined;
48
+ auto?: import("@popperjs/core").Offsets | undefined;
49
49
  "auto-start"?: import("@popperjs/core").Offsets | undefined;
50
50
  "auto-end"?: import("@popperjs/core").Offsets | undefined;
51
51
  "top-start"?: import("@popperjs/core").Offsets | undefined;
@@ -0,0 +1,2 @@
1
+ import type { ComputedRef } from 'vue';
2
+ export declare const useProp: <T>(name: string) => ComputedRef<T | undefined>;
@@ -0,0 +1,11 @@
1
+ import { getCurrentInstance as p, computed as n } from "vue";
2
+ const c = (e) => {
3
+ const r = p();
4
+ return n(() => {
5
+ var o, t;
6
+ return (t = (o = r == null ? void 0 : r.proxy) == null ? void 0 : o.$props) == null ? void 0 : t[e];
7
+ });
8
+ };
9
+ export {
10
+ c as useProp
11
+ };
@@ -0,0 +1,7 @@
1
+ import { type ComponentSize } from 'vft/es/constants';
2
+ import type { InjectionKey, Ref } from 'vue';
3
+ export interface SizeContext {
4
+ size: Ref<ComponentSize>;
5
+ }
6
+ export declare const SIZE_INJECTION_KEY: InjectionKey<SizeContext>;
7
+ export declare const useGlobalSize: () => import("vue").ComputedRef<"" | "large" | "small" | "default">;
@@ -0,0 +1,9 @@
1
+ import { inject as t, computed as o, unref as n } from "vue";
2
+ const r = Symbol("size"), c = () => {
3
+ const e = t(r, {});
4
+ return o(() => n(e.size) || "");
5
+ };
6
+ export {
7
+ r as SIZE_INJECTION_KEY,
8
+ c as useGlobalSize
9
+ };
package/es/index.js CHANGED
@@ -1,23 +1,23 @@
1
1
  import e from "./defaults.js";
2
2
  import { VftDivider as m } from "./components/divider/index.js";
3
- import { VftIcon as n, VftIcon as x } from "./components/icon/index.js";
3
+ import { VftIcon as s, VftIcon as x } from "./components/icon/index.js";
4
4
  import { VftAvatar as i } from "./components/avatar/index.js";
5
5
  import { VftEmpty as V } from "./components/empty/index.js";
6
- import { VftResult as u } from "./components/result/index.js";
7
- import { VftTabPane as c, VftTabs as T } from "./components/tabs/index.js";
8
- import { VftPopper as I } from "./components/popper/index.js";
6
+ import { VftResult as d } from "./components/result/index.js";
7
+ import { VftTabPane as I, VftTabs as C } from "./components/tabs/index.js";
8
+ import { VftPopper as c } from "./components/popper/index.js";
9
9
  import { VftCollapseTransition as M } from "./components/collapse-transition/index.js";
10
- import { VftTooltip as D } from "./components/tooltip/index.js";
11
- import { VftPopover as y } from "./components/popover/index.js";
12
- import { VftMenu as b, VftMenuItem as L, VftMenuItemGroup as _, VftSubMenu as h } from "./components/menu/index.js";
13
- import { createContextMenu as S, destroyContextMenu as F } from "./components/context-menu/createContextMenu.js";
10
+ import { VftTooltip as y } from "./components/tooltip/index.js";
11
+ import { VftPopover as b } from "./components/popover/index.js";
12
+ import { VftMenu as v, VftMenuItem as F, VftMenuItemGroup as S, VftSubMenu as L } from "./components/menu/index.js";
13
+ import { createContextMenu as K, destroyContextMenu as h } from "./components/context-menu/createContextMenu.js";
14
14
  import { useContextMenu as R } from "./components/context-menu/useContextMenu.js";
15
- import { VftMultipleTabs as O } from "./components/multiple-tabs/index.js";
16
- import { VftHeaderLayout as k } from "./components/header-layout/index.js";
17
- import { VftFooterLayout as W } from "./components/footer-layout/index.js";
15
+ import { VftMultipleTabs as z } from "./components/multiple-tabs/index.js";
16
+ import { VftHeaderLayout as G } from "./components/header-layout/index.js";
17
+ import { VftFooterLayout as Y } from "./components/footer-layout/index.js";
18
18
  import { VftIframeLayout as H } from "./components/iframe-layout/index.js";
19
- import { VftRouterViewContent as B } from "./components/router-view-content/index.js";
20
- import { VftLogo as U } from "./components/logo/index.js";
19
+ import { VftRouterViewContent as Z } from "./components/router-view-content/index.js";
20
+ import { VftLogo as B } from "./components/logo/index.js";
21
21
  import { VftBackTop as Q } from "./components/back-top/index.js";
22
22
  import { VftConfigProvider as X } from "./components/config-provider/index.js";
23
23
  import { VftDescriptions as ee, VftDescriptionsItem as oe } from "./components/descriptions/index.js";
@@ -27,200 +27,226 @@ import { VftImage as ae } from "./components/image/index.js";
27
27
  import { VftInput as xe } from "./components/input/index.js";
28
28
  import { VftLink as ie } from "./components/link/index.js";
29
29
  import { VftPagination as Ve } from "./components/pagination/index.js";
30
- import { VftTag as ue } from "./components/tag/index.js";
31
- import { VftSideMenu as ce } from "./components/side-menu/index.js";
32
- import { VftQrcode as Ce } from "./components/qrcode/index.js";
30
+ import { VftTag as de } from "./components/tag/index.js";
31
+ import { VftSideMenu as Ie } from "./components/side-menu/index.js";
32
+ import { VftQrcode as Te } from "./components/qrcode/index.js";
33
33
  import { VftOverlay as Ee } from "./components/overlay/index.js";
34
34
  import { VftClamp as Pe } from "./components/clamp/index.js";
35
- import { VftClampToggle as ve } from "./components/clamp-toggle/index.js";
35
+ import { VftClampToggle as De } from "./components/clamp-toggle/index.js";
36
36
  import { VftPageWrapper as Ne } from "./components/page-wrapper/index.js";
37
- import { VftException as Le } from "./components/exception/index.js";
38
- import { VftSearch as he } from "./components/search/index.js";
39
- import { VftMdContainer as Se } from "./components/md-container/index.js";
40
- import { VftMdComment as Ke } from "./components/md-comment/index.js";
41
- import { VftMdTabs as Ae } from "./components/md-tabs/index.js";
42
- import { VftMdVuePlayground as Ge } from "./components/md-vue-playground/index.js";
43
- import { VftMdCodeDemo as ze } from "./components/md-code-demo/index.js";
44
- import { VftMdCodeTabs as Ye } from "./components/md-code-tabs/index.js";
45
- import { VftMessage as je, VftMessage as Be } from "./components/message/index.js";
46
- import { VftLoading as Ue } from "./components/loading/index.js";
47
- import { EVENT_CODE as Qe } from "./constants/aria.js";
48
- import { WEEK_DAYS as Xe, datePickTypes as $e } from "./constants/date.js";
49
- import { CHANGE_EVENT as oo, INPUT_EVENT as ro, UPDATE_MODEL_EVENT as to } from "./constants/event.js";
50
- import { INSTALLED_KEY as po } from "./constants/key.js";
51
- import { componentSizeMap as ao, componentSizes as no } from "./constants/size.js";
52
- import { _bem as so, defaultNamespace as io, namespaceContextKey as lo, useGetDerivedNamespace as Vo, useNamespace as uo } from "./hooks/use-namespace/index.js";
37
+ import { VftException as Fe } from "./components/exception/index.js";
38
+ import { VftSearch as Le } from "./components/search/index.js";
39
+ import { VftForm as Ke, VftFormItem as he } from "./components/form/index.js";
40
+ import { VftMdContainer as Re } from "./components/md-container/index.js";
41
+ import { VftMdComment as ze } from "./components/md-comment/index.js";
42
+ import { VftMdTabs as Ge } from "./components/md-tabs/index.js";
43
+ import { VftMdVuePlayground as Ye } from "./components/md-vue-playground/index.js";
44
+ import { VftMdCodeDemo as He } from "./components/md-code-demo/index.js";
45
+ import { VftMdCodeTabs as Ze } from "./components/md-code-tabs/index.js";
46
+ import { VftMessage as Be, VftMessage as Ue } from "./components/message/index.js";
47
+ import { VftLoading as qe } from "./components/loading/index.js";
48
+ import { EVENT_CODE as $e } from "./constants/aria.js";
49
+ import { WEEK_DAYS as oo, datePickTypes as ro } from "./constants/date.js";
50
+ import { CHANGE_EVENT as fo, INPUT_EVENT as po, UPDATE_MODEL_EVENT as mo } from "./constants/event.js";
51
+ import { INSTALLED_KEY as so } from "./constants/key.js";
52
+ import { componentSizeMap as no, componentSizes as io } from "./constants/size.js";
53
+ import { _bem as Vo, defaultNamespace as uo, namespaceContextKey as go, useGetDerivedNamespace as Io, useNamespace as Co } from "./hooks/use-namespace/index.js";
53
54
  import { useCursor as co } from "./hooks/use-cursor/index.js";
54
- import { usePopper as Co } from "./hooks/use-popper/index.js";
55
- import { defaultInitialZIndex as Eo, useZIndex as Mo, zIndexContextKey as Po } from "./hooks/use-z-index/index.js";
56
- import { FORWARD_REF_INJECTION_KEY as vo, useForwardRef as yo, useForwardRefDirective as No } from "./hooks/use-forward-ref/index.js";
57
- import { ID_INJECTION_KEY as Lo, useId as _o, useIdInjection as ho } from "./hooks/use-id/index.js";
58
- import { usePopperContainer as So, usePopperContainerId as Fo } from "./hooks/use-popper-container/index.js";
59
- import { useDelayedToggle as Ro } from "./hooks/use-delayed-toggle/index.js";
60
- import { useTimeout as Oo } from "./hooks/use-timeout/index.js";
61
- import { useOrderedChildren as ko } from "./hooks/use-ordered-children/index.js";
62
- import { createModelToggleComposable as Wo, useModelToggle as Yo, useModelToggleEmits as Ho } from "./hooks/use-model-toggle/index.js";
63
- import { withInstall as Bo, withInstallDirective as Jo, withInstallFunction as Uo, withNoopInstall as Zo } from "./utils/vue/install.js";
64
- import { PatchFlags as qo, ensureOnlyChild as Xo, flattedChildren as $o, getFirstValidNode as er, getNormalizedProps as or, isComment as rr, isFragment as tr, isTemplate as fr, isText as pr, isValidElementNode as mr, renderBlock as ar, renderIf as nr } from "./utils/vue/vnode.js";
65
- import { getSizeType as sr } from "./utils/helper.js";
66
- import { debugWarn as lr, throwError as Vr } from "./utils/error.js";
67
- import { composeEventHandlers as ur, whenMouse as gr } from "./utils/event.js";
68
- import { mutable as Tr } from "./utils/typescript.js";
69
- import { cssVarValue as Ir } from "./utils/ns-cover.js";
70
- import { makeInstaller as Mr } from "./make-installer.js";
71
- import { CompResolver as Dr } from "./comp-resolver.js";
72
- import { default as yr } from "dayjs";
73
- import { EmptyEnum as br } from "./components/empty/constants.js";
74
- import { TabsRootContextKey as _r } from "./components/tabs/types.js";
75
- import { default as wr } from "./components/popper/arrow.vue2.js";
76
- import { default as Fr } from "./components/popper/trigger.vue2.js";
77
- import { default as Rr } from "./components/popper/content.vue2.js";
78
- import { useTabDropdown as Or } from "./components/multiple-tabs/use/use-tab-dropdown.js";
79
- import { initAffixTabs as kr, useTabsDrag as zr } from "./components/multiple-tabs/use/use-multiple-tabs.js";
80
- import { configProviderContextKey as Yr, messageConfig as Hr } from "./components/config-provider/constants.js";
81
- import { provideGlobalConfig as Br, useGlobalComponentSettings as Jr, useGlobalConfig as Ur } from "./components/config-provider/hooks/use-global-config.js";
82
- import { paginationEmits as Qr } from "./components/pagination/pagination.js";
83
- import { elPaginationKey as Xr, usePagination as $r } from "./components/pagination/usePagination.js";
84
- import { messageDefaults as ot, messageTypes as rt } from "./components/message/types.js";
85
- import { vLoading as ft, createLoadingDirective as pt, vLoading as mt } from "./components/loading/directive.js";
86
- import { Loading as nt } from "./components/loading/service.js";
55
+ import { usePopper as Mo } from "./hooks/use-popper/index.js";
56
+ import { defaultInitialZIndex as yo, useZIndex as Do, zIndexContextKey as bo } from "./hooks/use-z-index/index.js";
57
+ import { FORWARD_REF_INJECTION_KEY as vo, useForwardRef as Fo, useForwardRefDirective as So } from "./hooks/use-forward-ref/index.js";
58
+ import { ID_INJECTION_KEY as _o, useId as Ko, useIdInjection as ho } from "./hooks/use-id/index.js";
59
+ import { usePopperContainer as Ro, usePopperContainerId as Oo } from "./hooks/use-popper-container/index.js";
60
+ import { useDelayedToggle as Ao } from "./hooks/use-delayed-toggle/index.js";
61
+ import { useTimeout as ko } from "./hooks/use-timeout/index.js";
62
+ import { useOrderedChildren as Wo } from "./hooks/use-ordered-children/index.js";
63
+ import { createModelToggleComposable as Jo, useModelToggle as Zo, useModelToggleEmits as jo } from "./hooks/use-model-toggle/index.js";
64
+ import { useProp as Uo } from "./hooks/use-prop/index.js";
65
+ import { SIZE_INJECTION_KEY as qo, useGlobalSize as Xo } from "./hooks/use-size/index.js";
66
+ import { withInstall as er, withInstallDirective as or, withInstallFunction as rr, withNoopInstall as tr } from "./utils/vue/install.js";
67
+ import { PatchFlags as pr, ensureOnlyChild as mr, flattedChildren as ar, getFirstValidNode as sr, getNormalizedProps as xr, isComment as nr, isFragment as ir, isTemplate as lr, isText as Vr, isValidElementNode as ur, renderBlock as dr, renderIf as gr } from "./utils/vue/vnode.js";
68
+ import { getSizeType as Cr } from "./utils/helper.js";
69
+ import { debugWarn as cr, throwError as Er } from "./utils/error.js";
70
+ import { composeEventHandlers as Pr, whenMouse as yr } from "./utils/event.js";
71
+ import { mutable as br } from "./utils/typescript.js";
72
+ import { cssVarValue as vr, generateCssVars as Fr, primaryColor as Sr, setRootCssVar as Lr } from "./utils/ns-cover.js";
73
+ import { getProp as Kr } from "./utils/objects.js";
74
+ import { makeInstaller as wr } from "./make-installer.js";
75
+ import { CompResolver as Or } from "./comp-resolver.js";
76
+ import { default as Ar } from "dayjs";
77
+ import { EmptyEnum as kr } from "./components/empty/constants.js";
78
+ import { TabsRootContextKey as Wr } from "./components/tabs/types.js";
79
+ import { default as Jr } from "./components/popper/arrow.vue2.js";
80
+ import { default as jr } from "./components/popper/trigger.vue2.js";
81
+ import { default as Ur } from "./components/popper/content.vue2.js";
82
+ import { useTabDropdown as qr } from "./components/multiple-tabs/use/use-tab-dropdown.js";
83
+ import { initAffixTabs as $r, useTabsDrag as et } from "./components/multiple-tabs/use/use-multiple-tabs.js";
84
+ import { configProviderContextKey as rt, messageConfig as tt } from "./components/config-provider/constants.js";
85
+ import { provideGlobalConfig as pt, useGlobalComponentSettings as mt, useGlobalConfig as at } from "./components/config-provider/hooks/use-global-config.js";
86
+ import { paginationEmits as xt } from "./components/pagination/pagination.js";
87
+ import { elPaginationKey as it, usePagination as lt } from "./components/pagination/usePagination.js";
88
+ import { formItemValidateStates as ut } from "./components/form/types.js";
89
+ import { formContextKey as gt, formItemContextKey as It } from "./components/form/constants.js";
90
+ import { useDisabled as Tt, useFormDisabled as ct, useFormSize as Et, useSize as Mt } from "./components/form/hooks/use-form-common-props.js";
91
+ import { useFormItem as yt, useFormItemInputId as Dt } from "./components/form/hooks/use-form-item.js";
92
+ import { messageDefaults as Nt, messageTypes as vt } from "./components/message/types.js";
93
+ import { vLoading as St, createLoadingDirective as Lt, vLoading as _t } from "./components/loading/directive.js";
94
+ import { Loading as ht } from "./components/loading/service.js";
87
95
  const r = e.install, t = e.version;
88
96
  export {
89
- oo as CHANGE_EVENT,
90
- Dr as CompResolver,
91
- Qe as EVENT_CODE,
92
- br as EmptyEnum,
97
+ fo as CHANGE_EVENT,
98
+ Or as CompResolver,
99
+ $e as EVENT_CODE,
100
+ kr as EmptyEnum,
93
101
  vo as FORWARD_REF_INJECTION_KEY,
94
- Lo as ID_INJECTION_KEY,
95
- ro as INPUT_EVENT,
96
- po as INSTALLED_KEY,
97
- n as Icon,
98
- je as Message,
99
- qo as PatchFlags,
100
- _r as TabsRootContextKey,
101
- to as UPDATE_MODEL_EVENT,
102
+ _o as ID_INJECTION_KEY,
103
+ po as INPUT_EVENT,
104
+ so as INSTALLED_KEY,
105
+ s as Icon,
106
+ Be as Message,
107
+ pr as PatchFlags,
108
+ qo as SIZE_INJECTION_KEY,
109
+ Wr as TabsRootContextKey,
110
+ mo as UPDATE_MODEL_EVENT,
102
111
  i as VftAvatar,
103
112
  Q as VftBackTop,
104
113
  Pe as VftClamp,
105
- ve as VftClampToggle,
114
+ De as VftClampToggle,
106
115
  M as VftCollapseTransition,
107
116
  X as VftConfigProvider,
108
117
  ee as VftDescriptions,
109
118
  oe as VftDescriptionsItem,
110
119
  m as VftDivider,
111
120
  V as VftEmpty,
112
- Le as VftException,
113
- W as VftFooterLayout,
121
+ Fe as VftException,
122
+ Y as VftFooterLayout,
123
+ Ke as VftForm,
124
+ he as VftFormItem,
114
125
  te as VftFullScreen,
115
- k as VftHeaderLayout,
126
+ G as VftHeaderLayout,
116
127
  x as VftIcon,
117
128
  pe as VftIconText,
118
129
  H as VftIframeLayout,
119
130
  ae as VftImage,
120
131
  xe as VftInput,
121
132
  ie as VftLink,
122
- Ue as VftLoading,
123
- ft as VftLoadingDirective,
124
- nt as VftLoadingService,
125
- U as VftLogo,
126
- ze as VftMdCodeDemo,
127
- Ye as VftMdCodeTabs,
128
- Ke as VftMdComment,
129
- Se as VftMdContainer,
130
- Ae as VftMdTabs,
131
- Ge as VftMdVuePlayground,
132
- b as VftMenu,
133
- L as VftMenuItem,
134
- _ as VftMenuItemGroup,
135
- Be as VftMessage,
136
- O as VftMultipleTabs,
133
+ qe as VftLoading,
134
+ St as VftLoadingDirective,
135
+ ht as VftLoadingService,
136
+ B as VftLogo,
137
+ He as VftMdCodeDemo,
138
+ Ze as VftMdCodeTabs,
139
+ ze as VftMdComment,
140
+ Re as VftMdContainer,
141
+ Ge as VftMdTabs,
142
+ Ye as VftMdVuePlayground,
143
+ v as VftMenu,
144
+ F as VftMenuItem,
145
+ S as VftMenuItemGroup,
146
+ Ue as VftMessage,
147
+ z as VftMultipleTabs,
137
148
  Ee as VftOverlay,
138
149
  Ne as VftPageWrapper,
139
150
  Ve as VftPagination,
140
- y as VftPopover,
141
- I as VftPopper,
142
- wr as VftPopperArrow,
143
- Rr as VftPopperContent,
144
- Fr as VftPopperTrigger,
145
- Ce as VftQrcode,
146
- u as VftResult,
147
- B as VftRouterViewContent,
148
- he as VftSearch,
149
- ce as VftSideMenu,
150
- h as VftSubMenu,
151
- c as VftTabPane,
152
- T as VftTabs,
153
- ue as VftTag,
154
- D as VftTooltip,
155
- Xe as WEEK_DAYS,
156
- so as _bem,
157
- ao as componentSizeMap,
158
- no as componentSizes,
159
- ur as composeEventHandlers,
160
- Yr as configProviderContextKey,
161
- S as createContextMenu,
162
- pt as createLoadingDirective,
163
- Wo as createModelToggleComposable,
164
- Ir as cssVarValue,
165
- $e as datePickTypes,
166
- yr as dayjs,
167
- lr as debugWarn,
151
+ b as VftPopover,
152
+ c as VftPopper,
153
+ Jr as VftPopperArrow,
154
+ Ur as VftPopperContent,
155
+ jr as VftPopperTrigger,
156
+ Te as VftQrcode,
157
+ d as VftResult,
158
+ Z as VftRouterViewContent,
159
+ Le as VftSearch,
160
+ Ie as VftSideMenu,
161
+ L as VftSubMenu,
162
+ I as VftTabPane,
163
+ C as VftTabs,
164
+ de as VftTag,
165
+ y as VftTooltip,
166
+ oo as WEEK_DAYS,
167
+ Vo as _bem,
168
+ no as componentSizeMap,
169
+ io as componentSizes,
170
+ Pr as composeEventHandlers,
171
+ rt as configProviderContextKey,
172
+ K as createContextMenu,
173
+ Lt as createLoadingDirective,
174
+ Jo as createModelToggleComposable,
175
+ vr as cssVarValue,
176
+ ro as datePickTypes,
177
+ Ar as dayjs,
178
+ cr as debugWarn,
168
179
  e as default,
169
- Eo as defaultInitialZIndex,
170
- io as defaultNamespace,
171
- F as destroyContextMenu,
172
- Xr as elPaginationKey,
173
- Xo as ensureOnlyChild,
174
- $o as flattedChildren,
175
- er as getFirstValidNode,
176
- or as getNormalizedProps,
177
- sr as getSizeType,
178
- kr as initAffixTabs,
180
+ yo as defaultInitialZIndex,
181
+ uo as defaultNamespace,
182
+ h as destroyContextMenu,
183
+ it as elPaginationKey,
184
+ mr as ensureOnlyChild,
185
+ ar as flattedChildren,
186
+ gt as formContextKey,
187
+ It as formItemContextKey,
188
+ ut as formItemValidateStates,
189
+ Fr as generateCssVars,
190
+ sr as getFirstValidNode,
191
+ xr as getNormalizedProps,
192
+ Kr as getProp,
193
+ Cr as getSizeType,
194
+ $r as initAffixTabs,
179
195
  r as install,
180
- rr as isComment,
181
- tr as isFragment,
182
- fr as isTemplate,
183
- pr as isText,
184
- mr as isValidElementNode,
185
- Mr as makeInstaller,
186
- Hr as messageConfig,
187
- ot as messageDefaults,
188
- rt as messageTypes,
189
- Tr as mutable,
190
- lo as namespaceContextKey,
191
- Qr as paginationEmits,
192
- Br as provideGlobalConfig,
193
- ar as renderBlock,
194
- nr as renderIf,
195
- Vr as throwError,
196
+ nr as isComment,
197
+ ir as isFragment,
198
+ lr as isTemplate,
199
+ Vr as isText,
200
+ ur as isValidElementNode,
201
+ wr as makeInstaller,
202
+ tt as messageConfig,
203
+ Nt as messageDefaults,
204
+ vt as messageTypes,
205
+ br as mutable,
206
+ go as namespaceContextKey,
207
+ xt as paginationEmits,
208
+ Sr as primaryColor,
209
+ pt as provideGlobalConfig,
210
+ dr as renderBlock,
211
+ gr as renderIf,
212
+ Lr as setRootCssVar,
213
+ Er as throwError,
196
214
  R as useContextMenu,
197
215
  co as useCursor,
198
- Ro as useDelayedToggle,
199
- yo as useForwardRef,
200
- No as useForwardRefDirective,
201
- Vo as useGetDerivedNamespace,
202
- Jr as useGlobalComponentSettings,
203
- Ur as useGlobalConfig,
204
- _o as useId,
216
+ Ao as useDelayedToggle,
217
+ Tt as useDisabled,
218
+ ct as useFormDisabled,
219
+ yt as useFormItem,
220
+ Dt as useFormItemInputId,
221
+ Et as useFormSize,
222
+ Fo as useForwardRef,
223
+ So as useForwardRefDirective,
224
+ Io as useGetDerivedNamespace,
225
+ mt as useGlobalComponentSettings,
226
+ at as useGlobalConfig,
227
+ Xo as useGlobalSize,
228
+ Ko as useId,
205
229
  ho as useIdInjection,
206
- Yo as useModelToggle,
207
- Ho as useModelToggleEmits,
208
- uo as useNamespace,
209
- ko as useOrderedChildren,
210
- $r as usePagination,
211
- Co as usePopper,
212
- So as usePopperContainer,
213
- Fo as usePopperContainerId,
214
- Or as useTabDropdown,
215
- zr as useTabsDrag,
216
- Oo as useTimeout,
217
- Mo as useZIndex,
218
- mt as vLoading,
230
+ Zo as useModelToggle,
231
+ jo as useModelToggleEmits,
232
+ Co as useNamespace,
233
+ Wo as useOrderedChildren,
234
+ lt as usePagination,
235
+ Mo as usePopper,
236
+ Ro as usePopperContainer,
237
+ Oo as usePopperContainerId,
238
+ Uo as useProp,
239
+ Mt as useSize,
240
+ qr as useTabDropdown,
241
+ et as useTabsDrag,
242
+ ko as useTimeout,
243
+ Do as useZIndex,
244
+ _t as vLoading,
219
245
  t as version,
220
- gr as whenMouse,
221
- Bo as withInstall,
222
- Jo as withInstallDirective,
223
- Uo as withInstallFunction,
224
- Zo as withNoopInstall,
225
- Po as zIndexContextKey
246
+ yr as whenMouse,
247
+ er as withInstall,
248
+ or as withInstallDirective,
249
+ rr as withInstallFunction,
250
+ tr as withNoopInstall,
251
+ bo as zIndexContextKey
226
252
  };
@@ -1,4 +1,4 @@
1
- const o = "0.0.46";
1
+ const o = "0.0.48";
2
2
  export {
3
3
  o as version
4
4
  };
@@ -4,3 +4,4 @@ export * from './error';
4
4
  export * from './event';
5
5
  export * from './typescript';
6
6
  export * from './ns-cover';
7
+ export * from './objects';
package/es/utils/index.js CHANGED
@@ -1,32 +1,37 @@
1
- import { withInstall as t, withInstallDirective as o, withInstallFunction as l, withNoopInstall as i } from "./vue/install.js";
2
- import { PatchFlags as s, ensureOnlyChild as a, flattedChildren as m, getFirstValidNode as d, getNormalizedProps as p, isComment as f, isFragment as h, isTemplate as x, isText as c, isValidElementNode as g, renderBlock as u, renderIf as w } from "./vue/vnode.js";
3
- import { getSizeType as F } from "./helper.js";
4
- import { debugWarn as V, throwError as C } from "./error.js";
5
- import { composeEventHandlers as T, whenMouse as b } from "./event.js";
6
- import { mutable as y } from "./typescript.js";
7
- import { cssVarValue as P } from "./ns-cover.js";
1
+ import { withInstall as t, withInstallDirective as o, withInstallFunction as s, withNoopInstall as l } from "./vue/install.js";
2
+ import { PatchFlags as i, ensureOnlyChild as n, flattedChildren as m, getFirstValidNode as p, getNormalizedProps as d, isComment as f, isFragment as h, isTemplate as x, isText as g, isValidElementNode as c, renderBlock as u, renderIf as w } from "./vue/vnode.js";
3
+ import { getSizeType as V } from "./helper.js";
4
+ import { debugWarn as F, throwError as N } from "./error.js";
5
+ import { composeEventHandlers as E, whenMouse as P } from "./event.js";
6
+ import { mutable as b } from "./typescript.js";
7
+ import { cssVarValue as z, generateCssVars as k, primaryColor as B, setRootCssVar as D } from "./ns-cover.js";
8
+ import { getProp as M } from "./objects.js";
8
9
  export {
9
- s as PatchFlags,
10
- T as composeEventHandlers,
11
- P as cssVarValue,
12
- V as debugWarn,
13
- a as ensureOnlyChild,
10
+ i as PatchFlags,
11
+ E as composeEventHandlers,
12
+ z as cssVarValue,
13
+ F as debugWarn,
14
+ n as ensureOnlyChild,
14
15
  m as flattedChildren,
15
- d as getFirstValidNode,
16
- p as getNormalizedProps,
17
- F as getSizeType,
16
+ k as generateCssVars,
17
+ p as getFirstValidNode,
18
+ d as getNormalizedProps,
19
+ M as getProp,
20
+ V as getSizeType,
18
21
  f as isComment,
19
22
  h as isFragment,
20
23
  x as isTemplate,
21
- c as isText,
22
- g as isValidElementNode,
23
- y as mutable,
24
+ g as isText,
25
+ c as isValidElementNode,
26
+ b as mutable,
27
+ B as primaryColor,
24
28
  u as renderBlock,
25
29
  w as renderIf,
26
- C as throwError,
27
- b as whenMouse,
30
+ D as setRootCssVar,
31
+ N as throwError,
32
+ P as whenMouse,
28
33
  t as withInstall,
29
34
  o as withInstallDirective,
30
- l as withInstallFunction,
31
- i as withNoopInstall
35
+ s as withInstallFunction,
36
+ l as withNoopInstall
32
37
  };
@@ -1 +1,13 @@
1
1
  export declare const cssVarValue: (prop: any, target?: HTMLElement) => import("vue").Ref<string>;
2
+ export declare const primaryColor: () => import("vue").Ref<string>;
3
+ export declare function generateCssVars(vars: Record<string, Numberish | undefined>, name: any): Record<string, Numberish | undefined>;
4
+ /**
5
+ * @description set html vars
6
+ * @author wfd
7
+ * @date 2023/1/30 09:35
8
+ * @example
9
+ * @param styleName
10
+ * @param value
11
+ * @param name
12
+ */
13
+ export declare function setRootCssVar(styleName: any, value?: any, name?: any): void;
@@ -1,7 +1,19 @@
1
- import { useGlobalConfig as r } from "../components/config-provider/hooks/use-global-config.js";
2
- import { cssVarValue as s } from "@vft/utils";
3
- import { unref as a } from "vue";
4
- const m = r("namespace"), u = (e, o = document.documentElement) => s(e, o, a(m));
1
+ import { useGlobalConfig as a } from "../components/config-provider/hooks/use-global-config.js";
2
+ import { cssVarValue as c, generateCssVars as u, isObject as m, setStyle as l } from "@vft/utils";
3
+ import { unref as t } from "vue";
4
+ const o = a("namespace"), i = (e, r = document.documentElement) => c(e, r, t(o), !0), d = () => i("primary-color");
5
+ function V(e, r) {
6
+ return u(e, r, t(o));
7
+ }
8
+ function g(e, r, n) {
9
+ let s;
10
+ m(e) ? s = e : s = {
11
+ [e]: r
12
+ }, l(V(s, n), "", document.documentElement, !1);
13
+ }
5
14
  export {
6
- u as cssVarValue
15
+ i as cssVarValue,
16
+ V as generateCssVars,
17
+ d as primaryColor,
18
+ g as setRootCssVar
7
19
  };
@@ -0,0 +1,4 @@
1
+ import type { Arrayable } from '.';
2
+ export declare const getProp: <T = any>(obj: Record<string, any>, path: Arrayable<string>, defaultValue?: any) => {
3
+ value: T;
4
+ };
@@ -0,0 +1,12 @@
1
+ import { get as u, set as g } from "lodash";
2
+ const s = (e, t, r) => ({
3
+ get value() {
4
+ return u(e, t, r);
5
+ },
6
+ set value(o) {
7
+ g(e, t, o);
8
+ }
9
+ });
10
+ export {
11
+ s as getProp
12
+ };