vft 0.0.154 → 0.0.156

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 (284) hide show
  1. package/attributes.json +1 -1
  2. package/dist/index.css +1 -1
  3. package/es/app-components/button/button-custom.d.ts +1 -1
  4. package/es/app-components/form/hooks/use-form-common-props.d.ts +5 -4
  5. package/es/app-components/hooks/use-id.d.ts +2 -1
  6. package/es/component.js +135 -133
  7. package/es/components/affix/affix.d.ts +2 -2
  8. package/es/components/affix/affix.vue.d.ts +1 -1
  9. package/es/components/affix/index.d.ts +3 -3
  10. package/es/components/autocomplete/autocomplete.vue.d.ts +18 -18
  11. package/es/components/autocomplete/index.d.ts +54 -54
  12. package/es/components/backtop/backtop.vue2.js +3 -2
  13. package/es/components/button/button-custom.d.ts +1 -1
  14. package/es/components/button/button.vue.d.ts +1 -1
  15. package/es/components/button/index.d.ts +3 -3
  16. package/es/components/button/use-button.d.ts +3 -3
  17. package/es/components/button/use-button.js +3 -3
  18. package/es/components/carousel/carousel.vue.d.ts +1 -1
  19. package/es/components/carousel/index.d.ts +19 -19
  20. package/es/components/carousel/use-carousel.d.ts +2 -2
  21. package/es/components/checkbox/composables/use-checkbox-disabled.d.ts +1 -1
  22. package/es/components/checkbox/composables/use-checkbox.d.ts +1 -1
  23. package/es/components/checkbox/index.d.ts +48 -48
  24. package/es/components/clamp/clamp.vue.d.ts +4 -15
  25. package/es/components/clamp/clamp.vue2.js +28 -25
  26. package/es/components/clamp/index.d.ts +10 -3
  27. package/es/components/clamp/types.d.ts +14 -0
  28. package/es/components/clamp/types.js +1 -0
  29. package/es/components/clamp-tooltip/clamp-tooltip.vue.d.ts +12 -0
  30. package/es/components/clamp-tooltip/clamp-tooltip.vue.js +4 -0
  31. package/es/components/clamp-tooltip/clamp-tooltip.vue2.js +47 -0
  32. package/es/components/clamp-tooltip/index.d.ts +61 -0
  33. package/es/components/clamp-tooltip/index.js +12 -0
  34. package/es/components/clamp-tooltip/style/css.d.ts +0 -0
  35. package/es/components/clamp-tooltip/style/css.js +2 -0
  36. package/es/components/clamp-tooltip/style/index.d.ts +0 -0
  37. package/es/components/clamp-tooltip/style/index.js +2 -0
  38. package/es/components/clamp-tooltip/types.d.ts +6 -0
  39. package/es/components/clamp-tooltip/types.js +1 -0
  40. package/es/components/config-provider/hooks/use-global-config.d.ts +3 -2
  41. package/es/components/container/main.vue2.js +6 -5
  42. package/es/components/context-menu/context-menu.vue2.js +3 -2
  43. package/es/components/date-picker/composables/use-range-picker.d.ts +1 -1
  44. package/es/components/date-picker/date-picker.d.ts +4 -20
  45. package/es/components/date-picker/index.d.ts +8 -40
  46. package/es/components/date-picker/props/date-picker.d.ts +1 -9
  47. package/es/components/date-picker/props/shared.d.ts +1 -1
  48. package/es/components/date-picker/utils.d.ts +1 -1
  49. package/es/components/dialog/dialog.vue.d.ts +2 -2
  50. package/es/components/dialog/index.d.ts +6 -6
  51. package/es/components/drawer/drawer.vue.d.ts +2 -2
  52. package/es/components/drawer/index.d.ts +6 -6
  53. package/es/components/dropdown/dropdown.vue.d.ts +3 -3
  54. package/es/components/dropdown/index.d.ts +45 -45
  55. package/es/components/footer-layout/footer-layout.vue2.js +3 -2
  56. package/es/components/form/hooks/use-form-common-props.d.ts +6 -4
  57. package/es/components/full-screen/full-screen.vue2.js +13 -10
  58. package/es/components/full-screen/index.d.ts +18 -0
  59. package/es/components/header-layout/header-layout.vue2.js +3 -2
  60. package/es/components/icon/icon.vue2.js +21 -20
  61. package/es/components/icon-text/icon-text.vue.d.ts +5 -0
  62. package/es/components/icon-text/icon-text.vue2.js +36 -27
  63. package/es/components/icon-text/index.d.ts +18 -0
  64. package/es/components/index.d.ts +1 -0
  65. package/es/components/index.js +335 -333
  66. package/es/components/loading/index.d.ts +17 -9
  67. package/es/components/loading/loading.d.ts +17 -9
  68. package/es/components/md-container/md-container.vue2.js +3 -2
  69. package/es/components/menu/menu-item.vue2.js +3 -2
  70. package/es/components/menu/sub-menu.vue2.js +24 -23
  71. package/es/components/modal/index.d.ts +11 -11
  72. package/es/components/modal/modal-footer-action.vue2.js +3 -2
  73. package/es/components/modal/modal.vue.d.ts +1 -1
  74. package/es/components/multiple-tabs/multiple-tabs.vue2.js +4 -3
  75. package/es/components/popconfirm/index.d.ts +11 -11
  76. package/es/components/popconfirm/popconfirm.vue.d.ts +1 -1
  77. package/es/components/popover/index.d.ts +8 -8
  78. package/es/components/popper/composables/use-content-dom.d.ts +3 -1
  79. package/es/components/popper/composables/use-content.d.ts +70 -6
  80. package/es/components/popper/index.d.ts +3 -3
  81. package/es/components/popper/popper.vue.d.ts +2 -1
  82. package/es/components/popper/utils.d.ts +45 -2
  83. package/es/components/progress/index.d.ts +4 -4
  84. package/es/components/radio/index.d.ts +24 -24
  85. package/es/components/radio/use-radio.d.ts +1 -1
  86. package/es/components/result/result.vue2.js +3 -2
  87. package/es/components/router-view-content/index.d.ts +12 -0
  88. package/es/components/router-view-content/router-view-content.vue.d.ts +2 -0
  89. package/es/components/router-view-content/router-view-content.vue2.js +48 -33
  90. package/es/components/select/defaults.d.ts +4 -3
  91. package/es/components/select/index.d.ts +60 -60
  92. package/es/components/select/select.vue.d.ts +30 -30
  93. package/es/components/select/useSelect.d.ts +19 -19
  94. package/es/components/side-menu/index.d.ts +8 -4
  95. package/es/components/side-menu/side-menu.vue.d.ts +2 -2
  96. package/es/components/side-menu/side-menu.vue2.js +6 -3
  97. package/es/components/slider/composables/use-slide.d.ts +6 -6
  98. package/es/components/slider/index.d.ts +2 -2
  99. package/es/components/slider/slider.d.ts +3 -3
  100. package/es/components/space/index.d.ts +5 -2
  101. package/es/components/space/space.d.ts +5 -2
  102. package/es/components/super-form/component-map.js +13 -12
  103. package/es/components/super-form/index.d.ts +3 -3
  104. package/es/components/super-form/super-form-action.vue2.js +3 -2
  105. package/es/components/super-form/super-form-item.vue2.js +3 -2
  106. package/es/components/super-form/super-form.vue.d.ts +1 -1
  107. package/es/components/super-form/super-form.vue2.js +3 -2
  108. package/es/components/table/field.js +19 -18
  109. package/es/components/table/index.d.ts +32 -32
  110. package/es/components/table/use/use-columns.d.ts +801 -3
  111. package/es/components/tabs/index.d.ts +6 -0
  112. package/es/components/tabs/tab-nav.vue.d.ts +2 -0
  113. package/es/components/tabs/tab-nav.vue2.js +95 -87
  114. package/es/components/tabs/tabs.vue.d.ts +2 -0
  115. package/es/components/tabs/tabs.vue2.js +42 -36
  116. package/es/components/time-picker/common/picker.vue.d.ts +6 -21
  117. package/es/components/time-picker/common/props.d.ts +2 -9
  118. package/es/components/time-picker/composables/use-time-picker.d.ts +2 -2
  119. package/es/components/time-picker/index.d.ts +8 -40
  120. package/es/components/time-picker/time-picker.d.ts +4 -20
  121. package/es/components/time-picker/utils.d.ts +1 -1
  122. package/es/components/time-select/time-select.vue.d.ts +1 -1
  123. package/es/components/tooltip/index.d.ts +16 -16
  124. package/es/components/tooltip/utils.d.ts +1 -1
  125. package/es/components/tree/index.d.ts +16 -16
  126. package/es/components/upload/index.d.ts +1 -1
  127. package/es/components/upload/upload.vue.d.ts +1 -1
  128. package/es/components/upload/use-handlers.d.ts +21 -1
  129. package/es/components/virtual-list/hooks/use-cache.d.ts +1 -1
  130. package/es/hooks/use-id/index.d.ts +2 -1
  131. package/es/hooks/use-model-toggle/index.d.ts +2 -2
  132. package/es/hooks/use-popper/index.d.ts +70 -7
  133. package/es/hooks/use-same-target/index.d.ts +3 -3
  134. package/es/hooks/use-z-index/index.d.ts +1 -1
  135. package/es/index.js +456 -454
  136. package/es/package.json.d.ts +1 -1
  137. package/es/package.json.js +1 -1
  138. package/lib/app-components/button/button-custom.d.ts +1 -1
  139. package/lib/app-components/form/hooks/use-form-common-props.d.ts +5 -4
  140. package/lib/app-components/hooks/use-id.d.ts +2 -1
  141. package/lib/component.cjs +1 -1
  142. package/lib/components/affix/affix.d.ts +2 -2
  143. package/lib/components/affix/affix.vue.d.ts +1 -1
  144. package/lib/components/affix/index.d.ts +3 -3
  145. package/lib/components/autocomplete/autocomplete.vue.d.ts +18 -18
  146. package/lib/components/autocomplete/index.d.ts +54 -54
  147. package/lib/components/backtop/backtop.vue2.cjs +1 -1
  148. package/lib/components/button/button-custom.d.ts +1 -1
  149. package/lib/components/button/button.vue.d.ts +1 -1
  150. package/lib/components/button/index.d.ts +3 -3
  151. package/lib/components/button/use-button.cjs +1 -1
  152. package/lib/components/button/use-button.d.ts +3 -3
  153. package/lib/components/carousel/carousel.vue.d.ts +1 -1
  154. package/lib/components/carousel/index.d.ts +19 -19
  155. package/lib/components/carousel/use-carousel.d.ts +2 -2
  156. package/lib/components/checkbox/composables/use-checkbox-disabled.d.ts +1 -1
  157. package/lib/components/checkbox/composables/use-checkbox.d.ts +1 -1
  158. package/lib/components/checkbox/index.d.ts +48 -48
  159. package/lib/components/clamp/clamp.vue.d.ts +4 -15
  160. package/lib/components/clamp/clamp.vue2.cjs +1 -1
  161. package/lib/components/clamp/index.d.ts +10 -3
  162. package/lib/components/clamp/types.cjs +1 -0
  163. package/lib/components/clamp/types.d.ts +14 -0
  164. package/lib/components/clamp-tooltip/clamp-tooltip.vue.cjs +1 -0
  165. package/lib/components/clamp-tooltip/clamp-tooltip.vue.d.ts +12 -0
  166. package/lib/components/clamp-tooltip/clamp-tooltip.vue2.cjs +1 -0
  167. package/lib/components/clamp-tooltip/index.cjs +1 -0
  168. package/lib/components/clamp-tooltip/index.d.ts +61 -0
  169. package/lib/components/clamp-tooltip/style/css.cjs +1 -0
  170. package/lib/components/clamp-tooltip/style/css.d.ts +0 -0
  171. package/lib/components/clamp-tooltip/style/index.cjs +1 -0
  172. package/lib/components/clamp-tooltip/style/index.d.ts +0 -0
  173. package/lib/components/clamp-tooltip/types.cjs +1 -0
  174. package/lib/components/clamp-tooltip/types.d.ts +6 -0
  175. package/lib/components/config-provider/hooks/use-global-config.d.ts +3 -2
  176. package/lib/components/container/main.vue2.cjs +1 -1
  177. package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
  178. package/lib/components/date-picker/composables/use-range-picker.d.ts +1 -1
  179. package/lib/components/date-picker/date-picker.d.ts +4 -20
  180. package/lib/components/date-picker/index.d.ts +8 -40
  181. package/lib/components/date-picker/props/date-picker.d.ts +1 -9
  182. package/lib/components/date-picker/props/shared.d.ts +1 -1
  183. package/lib/components/date-picker/utils.d.ts +1 -1
  184. package/lib/components/dialog/dialog.vue.d.ts +2 -2
  185. package/lib/components/dialog/index.d.ts +6 -6
  186. package/lib/components/drawer/drawer.vue.d.ts +2 -2
  187. package/lib/components/drawer/index.d.ts +6 -6
  188. package/lib/components/dropdown/dropdown.vue.d.ts +3 -3
  189. package/lib/components/dropdown/index.d.ts +45 -45
  190. package/lib/components/footer-layout/footer-layout.vue2.cjs +1 -1
  191. package/lib/components/form/hooks/use-form-common-props.d.ts +6 -4
  192. package/lib/components/full-screen/full-screen.vue2.cjs +1 -1
  193. package/lib/components/full-screen/index.d.ts +18 -0
  194. package/lib/components/header-layout/header-layout.vue2.cjs +1 -1
  195. package/lib/components/icon/icon.vue2.cjs +1 -1
  196. package/lib/components/icon-text/icon-text.vue.d.ts +5 -0
  197. package/lib/components/icon-text/icon-text.vue2.cjs +1 -1
  198. package/lib/components/icon-text/index.d.ts +18 -0
  199. package/lib/components/index.cjs +1 -1
  200. package/lib/components/index.d.ts +1 -0
  201. package/lib/components/loading/index.d.ts +17 -9
  202. package/lib/components/loading/loading.d.ts +17 -9
  203. package/lib/components/md-container/md-container.vue2.cjs +1 -1
  204. package/lib/components/menu/menu-item.vue2.cjs +1 -1
  205. package/lib/components/menu/sub-menu.vue2.cjs +1 -1
  206. package/lib/components/modal/index.d.ts +11 -11
  207. package/lib/components/modal/modal-footer-action.vue2.cjs +1 -1
  208. package/lib/components/modal/modal.vue.d.ts +1 -1
  209. package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
  210. package/lib/components/popconfirm/index.d.ts +11 -11
  211. package/lib/components/popconfirm/popconfirm.vue.d.ts +1 -1
  212. package/lib/components/popover/index.d.ts +8 -8
  213. package/lib/components/popper/composables/use-content-dom.d.ts +3 -1
  214. package/lib/components/popper/composables/use-content.d.ts +70 -6
  215. package/lib/components/popper/index.d.ts +3 -3
  216. package/lib/components/popper/popper.vue.d.ts +2 -1
  217. package/lib/components/popper/utils.d.ts +45 -2
  218. package/lib/components/progress/index.d.ts +4 -4
  219. package/lib/components/radio/index.d.ts +24 -24
  220. package/lib/components/radio/use-radio.d.ts +1 -1
  221. package/lib/components/result/result.vue2.cjs +1 -1
  222. package/lib/components/router-view-content/index.d.ts +12 -0
  223. package/lib/components/router-view-content/router-view-content.vue.d.ts +2 -0
  224. package/lib/components/router-view-content/router-view-content.vue2.cjs +1 -1
  225. package/lib/components/select/defaults.d.ts +4 -3
  226. package/lib/components/select/index.d.ts +60 -60
  227. package/lib/components/select/select.vue.d.ts +30 -30
  228. package/lib/components/select/useSelect.d.ts +19 -19
  229. package/lib/components/side-menu/index.d.ts +8 -4
  230. package/lib/components/side-menu/side-menu.vue.d.ts +2 -2
  231. package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
  232. package/lib/components/slider/composables/use-slide.d.ts +6 -6
  233. package/lib/components/slider/index.d.ts +2 -2
  234. package/lib/components/slider/slider.d.ts +3 -3
  235. package/lib/components/space/index.d.ts +5 -2
  236. package/lib/components/space/space.d.ts +5 -2
  237. package/lib/components/super-form/component-map.cjs +1 -1
  238. package/lib/components/super-form/index.d.ts +3 -3
  239. package/lib/components/super-form/super-form-action.vue2.cjs +1 -1
  240. package/lib/components/super-form/super-form-item.vue2.cjs +1 -1
  241. package/lib/components/super-form/super-form.vue.d.ts +1 -1
  242. package/lib/components/super-form/super-form.vue2.cjs +1 -1
  243. package/lib/components/table/field.cjs +1 -1
  244. package/lib/components/table/index.d.ts +32 -32
  245. package/lib/components/table/use/use-columns.d.ts +801 -3
  246. package/lib/components/tabs/index.d.ts +6 -0
  247. package/lib/components/tabs/tab-nav.vue.d.ts +2 -0
  248. package/lib/components/tabs/tab-nav.vue2.cjs +1 -1
  249. package/lib/components/tabs/tabs.vue.d.ts +2 -0
  250. package/lib/components/tabs/tabs.vue2.cjs +1 -1
  251. package/lib/components/time-picker/common/picker.vue.d.ts +6 -21
  252. package/lib/components/time-picker/common/props.d.ts +2 -9
  253. package/lib/components/time-picker/composables/use-time-picker.d.ts +2 -2
  254. package/lib/components/time-picker/index.d.ts +8 -40
  255. package/lib/components/time-picker/time-picker.d.ts +4 -20
  256. package/lib/components/time-picker/utils.d.ts +1 -1
  257. package/lib/components/time-select/time-select.vue.d.ts +1 -1
  258. package/lib/components/tooltip/index.d.ts +16 -16
  259. package/lib/components/tooltip/utils.d.ts +1 -1
  260. package/lib/components/tree/index.d.ts +16 -16
  261. package/lib/components/upload/index.d.ts +1 -1
  262. package/lib/components/upload/upload.vue.d.ts +1 -1
  263. package/lib/components/upload/use-handlers.d.ts +21 -1
  264. package/lib/components/virtual-list/hooks/use-cache.d.ts +1 -1
  265. package/lib/hooks/use-id/index.d.ts +2 -1
  266. package/lib/hooks/use-model-toggle/index.d.ts +2 -2
  267. package/lib/hooks/use-popper/index.d.ts +70 -7
  268. package/lib/hooks/use-same-target/index.d.ts +3 -3
  269. package/lib/hooks/use-z-index/index.d.ts +1 -1
  270. package/lib/index.cjs +1 -1
  271. package/lib/package.json.cjs +1 -1
  272. package/lib/package.json.d.ts +1 -1
  273. package/package.json +6 -6
  274. package/tags.json +1 -1
  275. package/theme-style/index.css +1 -1
  276. package/theme-style/src/clamp-tooltip.scss +0 -0
  277. package/theme-style/src/icon-text.scss +8 -0
  278. package/theme-style/src/switch.scss +56 -52
  279. package/theme-style/src/tabs.scss +11 -2
  280. package/theme-style/vft-clamp-tooltip.css +0 -0
  281. package/theme-style/vft-icon-text.css +1 -1
  282. package/theme-style/vft-switch.css +1 -1
  283. package/theme-style/vft-tabs.css +1 -1
  284. package/web-types.json +1 -1
@@ -42,6 +42,9 @@ export declare const VftTabs: import("vft/es/utils").SFCWithInstall<import("vue"
42
42
  fixExtraScrollWidth: {
43
43
  type: globalThis.PropType<number>;
44
44
  };
45
+ trigger: {
46
+ type: globalThis.PropType<"click" | "hover">;
47
+ };
45
48
  }, {
46
49
  currentName: globalThis.Ref<string | number>;
47
50
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -129,6 +132,9 @@ export declare const VftTabs: import("vft/es/utils").SFCWithInstall<import("vue"
129
132
  fixExtraScrollWidth: {
130
133
  type: globalThis.PropType<number>;
131
134
  };
135
+ trigger: {
136
+ type: globalThis.PropType<"click" | "hover">;
137
+ };
132
138
  }>> & {
133
139
  "onUpdate:modelValue"?: ((name: string | number) => any) | undefined;
134
140
  onTabClick?: ((pane: {
@@ -16,6 +16,8 @@ interface TabNavProps {
16
16
  arrowRightIconCfg?: IconProps;
17
17
  fixTabCount?: number;
18
18
  fixExtraScrollWidth?: number;
19
+ /** tab 触发方式 */
20
+ trigger?: 'click' | 'hover';
19
21
  }
20
22
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<TabNavProps>, {
21
23
  scrollToActiveTab: () => Promise<void>;
@@ -1,7 +1,7 @@
1
- import { defineComponent as D, getCurrentInstance as et, inject as it, ref as b, computed as B, watch as z, onMounted as nt, onUpdated as rt, createVNode as s, nextTick as at } from "vue";
2
- import { useDocumentVisibility as lt, useWindowFocus as st, useResizeObserver as ct } from "@vueuse/core";
3
- import { capitalize as $ } from "@vft/utils";
4
- import { throwError as ut } from "../../utils/error.js";
1
+ import { defineComponent as V, getCurrentInstance as ot, inject as it, ref as b, computed as S, watch as z, onMounted as rt, onUpdated as nt, createVNode as s, mergeProps as at, useSlots as lt, nextTick as st } from "vue";
2
+ import { useDocumentVisibility as ct, useWindowFocus as ut, useResizeObserver as mt } from "@vueuse/core";
3
+ import { capitalize as y } from "@vft/utils";
4
+ import { throwError as ft } from "../../utils/error.js";
5
5
  import "../../utils/ns-cover.js";
6
6
  import "lodash";
7
7
  import "../alert/index.js";
@@ -13,6 +13,7 @@ import "../check-tag/index.js";
13
13
  import "../checkbox/index.js";
14
14
  import "../clamp/index.js";
15
15
  import "../clamp-toggle/index.js";
16
+ import "../clamp-tooltip/index.js";
16
17
  import "../col/index.js";
17
18
  import "../collapse-transition/index.js";
18
19
  import "../color-picker/index.js";
@@ -33,7 +34,7 @@ import "../form/index.js";
33
34
  import "../full-screen/index.js";
34
35
  import "../header-layout/index.js";
35
36
  import "../horizontal-menu/index.js";
36
- import { VftIcon as S } from "../icon/index.js";
37
+ import { VftIcon as $ } from "../icon/index.js";
37
38
  import "../icon-text/index.js";
38
39
  import "../iframe-layout/index.js";
39
40
  import "../image/index.js";
@@ -88,22 +89,22 @@ import "../md-comment/index.js";
88
89
  import "../md-container/index.js";
89
90
  import "../md-tabs/index.js";
90
91
  import "../md-vue-playground/index.js";
91
- import { useNamespace as M } from "../../hooks/use-namespace/index.js";
92
+ import { useNamespace as D } from "../../hooks/use-namespace/index.js";
92
93
  import "@popperjs/core";
93
94
  import "../../hooks/use-z-index/index.js";
94
95
  import "../message/index.js";
95
96
  import "../infinite-scroll/index.js";
96
97
  import "../progress-i/index.js";
97
98
  import { EVENT_CODE as k } from "@vft/constants";
98
- import { TabsRootContextKey as mt } from "./types.js";
99
- import ft from "./tab-bar.vue2.js";
99
+ import { TabsRootContextKey as pt } from "./types.js";
100
+ import vt from "./tab-bar.vue2.js";
100
101
  const q = (
101
102
  /* hoist-static*/
102
- M("tab-nav")
103
- ), pt = D({
103
+ D("tab-nav")
104
+ ), dt = V({
104
105
  name: q.b()
105
- }), ae = /* @__PURE__ */ D({
106
- ...pt,
106
+ }), so = /* @__PURE__ */ V({
107
+ ...dt,
107
108
  props: {
108
109
  panes: {},
109
110
  editable: {
@@ -128,6 +129,9 @@ const q = (
128
129
  },
129
130
  fixExtraScrollWidth: {
130
131
  default: 0
132
+ },
133
+ trigger: {
134
+ default: "click"
131
135
  }
132
136
  },
133
137
  emits: ["tabClick", "tabRemove", "tabAdd", "tabContextmenu"],
@@ -136,132 +140,136 @@ const q = (
136
140
  emit: j
137
141
  }) {
138
142
  var W;
139
- const g = j, U = et(), h = it(mt);
140
- h || ut(q.b(), "<vft-tabs><tab-nav /></vft-tabs>");
141
- const n = M("tabs"), X = lt(), Y = st(), y = b(), p = b(), x = b(), P = b(), c = b(!1), u = b(0), O = b(!1), T = b(!0), w = B(() => ["top", "bottom"].includes(h.props.tabPosition) ? "width" : "height"), G = B(() => ({
143
+ const C = j, U = ot(), g = it(pt);
144
+ g || ft(q.b(), "<vft-tabs><tab-nav /></vft-tabs>");
145
+ const r = D("tabs"), X = ct(), Y = ut(), I = b(), p = b(), x = b(), P = b(), c = b(!1), u = b(0), B = b(!1), T = b(!0), w = S(() => ["top", "bottom"].includes(g.props.tabPosition) ? "width" : "height"), G = S(() => ({
142
146
  transform: `translate${w.value === "width" ? "X" : "Y"}(-${u.value}px)`
143
147
  })), J = () => {
144
148
  if (!p.value)
145
149
  return;
146
- const t = p.value[`offset${$(w.value)}`], e = u.value;
147
- e && (u.value = e > t ? e - t : 0);
150
+ const t = p.value[`offset${y(w.value)}`], o = u.value;
151
+ o && (u.value = o > t ? o - t : 0);
148
152
  }, Q = () => {
149
153
  if (!p.value || !x.value)
150
154
  return;
151
- const t = x.value[`offset${$(w.value)}`], e = p.value[`offset${$(w.value)}`], o = u.value;
152
- t - o <= e || (u.value = t - o > e * 2 ? o + e : t - e);
153
- }, A = async () => {
154
- const t = x.value, e = P.value;
155
- if (!c.value || !y.value || !p.value || !t)
155
+ const t = x.value[`offset${y(w.value)}`], o = p.value[`offset${y(w.value)}`], e = u.value;
156
+ t - e <= o || (u.value = t - e > o * 2 ? e + o : t - o);
157
+ }, N = async () => {
158
+ const t = x.value, o = P.value;
159
+ if (!c.value || !I.value || !p.value || !t)
156
160
  return;
157
- await at();
158
- const o = y.value.querySelector(".is-active");
159
- if (!o)
161
+ await st();
162
+ const e = I.value.querySelector(".is-active");
163
+ if (!e)
160
164
  return;
161
- const C = p.value, d = ["top", "bottom"].includes(h.props.tabPosition), a = o.getBoundingClientRect(), r = C.getBoundingClientRect(), m = d ? t.offsetWidth - r.width : t.offsetHeight - r.height, l = u.value;
165
+ const h = p.value, d = ["top", "bottom"].includes(g.props.tabPosition), a = e.getBoundingClientRect(), n = h.getBoundingClientRect(), m = d ? t.offsetWidth - n.width : t.offsetHeight - n.height, l = u.value;
162
166
  let v = l;
163
- const I = i.fixTabCount ? ((e == null ? void 0 : e.offsetWidth) || 0) + i.fixExtraScrollWidth : 0;
164
- d ? (a.left - I < r.left && (v = l - (r.left - a.left + I)), a.right > r.right && (v = l + a.right - r.right)) : (a.top < r.top && (v = l - (r.top - a.top)), a.bottom > r.bottom && (v = l + (a.bottom - r.bottom))), v = Math.max(v, 0), u.value = Math.min(v, m);
165
- }, E = () => {
167
+ const R = i.fixTabCount ? ((o == null ? void 0 : o.offsetWidth) || 0) + i.fixExtraScrollWidth : 0;
168
+ d ? (a.left - R < n.left && (v = l - (n.left - a.left + R)), a.right > n.right && (v = l + a.right - n.right)) : (a.top < n.top && (v = l - (n.top - a.top)), a.bottom > n.bottom && (v = l + (a.bottom - n.bottom))), v = Math.max(v, 0), u.value = Math.min(v, m);
169
+ }, A = () => {
166
170
  if (!x.value || !p.value)
167
171
  return;
168
- const t = x.value[`offset${$(w.value)}`], e = p.value[`offset${$(w.value)}`], o = u.value;
169
- e < t ? (c.value = c.value || {}, c.value.prev = o, c.value.next = o + e < t, t - o < e && (u.value = t - e)) : (c.value = !1, o > 0 && (u.value = 0));
172
+ const t = x.value[`offset${y(w.value)}`], o = p.value[`offset${y(w.value)}`], e = u.value;
173
+ o < t ? (c.value = c.value || {}, c.value.prev = e, c.value.next = e + o < t, t - e < o && (u.value = t - o)) : (c.value = !1, e > 0 && (u.value = 0));
170
174
  }, Z = (t) => {
171
- const e = t.code, {
172
- up: o,
173
- down: C,
175
+ const o = t.code, {
176
+ up: e,
177
+ down: h,
174
178
  left: d,
175
179
  right: a
176
180
  } = k;
177
- if (![o, C, d, a].includes(e))
181
+ if (![e, h, d, a].includes(o))
178
182
  return;
179
- const r = Array.from(t.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")), m = r.indexOf(t.target);
183
+ const n = Array.from(t.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")), m = n.indexOf(t.target);
180
184
  let l;
181
- e === d || e === o ? m === 0 ? l = r.length - 1 : l = m - 1 : m < r.length - 1 ? l = m + 1 : l = 0, r[l].focus(), r[l].click(), F();
182
- }, F = () => {
183
- T.value && (O.value = !0);
184
- }, R = () => O.value = !1;
185
+ o === d || o === e ? m === 0 ? l = n.length - 1 : l = m - 1 : m < n.length - 1 ? l = m + 1 : l = 0, n[l].focus(), n[l].click(), E();
186
+ }, E = () => {
187
+ T.value && (B.value = !0);
188
+ }, O = () => B.value = !1;
185
189
  z(X, (t) => {
186
190
  t === "hidden" ? T.value = !1 : t === "visible" && setTimeout(() => T.value = !0, 50);
187
191
  }), z(Y, (t) => {
188
192
  t ? setTimeout(() => T.value = !0, 50) : T.value = !1;
189
- }), ct(y, E), nt(() => setTimeout(() => A(), 0)), rt(() => E()), H({
190
- scrollToActiveTab: A,
191
- removeFocus: R
193
+ }), mt(I, A), rt(() => setTimeout(() => N(), 0)), nt(() => A()), H({
194
+ scrollToActiveTab: N,
195
+ removeFocus: O
192
196
  }), z(() => i.panes, () => U.update(), {
193
197
  flush: "post"
194
198
  });
195
- const _ = B(() => {
196
- var t, e;
199
+ const _ = S(() => {
200
+ var t, o;
197
201
  return c.value ? [s("span", {
198
- class: [n.e("nav-prev"), n.is("disabled", !c.value.prev)],
202
+ class: [r.e("nav-prev"), r.is("disabled", !c.value.prev)],
199
203
  onClick: J
200
- }, [(t = i.arrowLeftIconCfg) != null && t.icon ? s(S, i.arrowLeftIconCfg, null) : null]), s("span", {
201
- class: [n.e("nav-next"), n.is("disabled", !c.value.next)],
204
+ }, [(t = i.arrowLeftIconCfg) != null && t.icon ? s($, i.arrowLeftIconCfg, null) : null]), s("span", {
205
+ class: [r.e("nav-next"), r.is("disabled", !c.value.next)],
202
206
  onClick: Q
203
- }, [(e = i.arrowRightIconCfg) != null && e.icon ? s(S, i.arrowRightIconCfg, null) : null])] : null;
204
- }), tt = B(() => (t) => {
205
- var e;
206
- return (e = i.panes.slice(0, t)) == null ? void 0 : e.map((o, C) => {
207
- var L, K, V;
208
- const d = o.uid, a = o.props.disabled, r = o.props.name ?? o.index ?? `${C}`, m = !a && (o.isClosable || i.editable);
209
- o.index = `${C}`;
207
+ }, [(o = i.arrowRightIconCfg) != null && o.icon ? s($, i.arrowRightIconCfg, null) : null])] : null;
208
+ }), tt = S(() => (t) => {
209
+ var o;
210
+ return (o = i.panes.slice(0, t)) == null ? void 0 : o.map((e, h) => {
211
+ var L, K, M;
212
+ const d = e.uid, a = e.props.disabled, n = e.props.name ?? e.index ?? `${h}`, m = !a && (e.isClosable || i.editable);
213
+ e.index = `${h}`;
210
214
  const l = m ? s("span", {
211
215
  class: "is-icon-close",
212
- onClick: (f) => g("tabRemove", o, f)
213
- }, [(L = i.closeIconCfg) != null && L.icon ? s(S, i.closeIconCfg, null) : null]) : null, v = ((V = (K = o.slots).label) == null ? void 0 : V.call(K)) || o.props.label, I = !a && o.active ? 0 : -1;
214
- return s("div", {
216
+ onClick: (f) => C("tabRemove", e, f)
217
+ }, [(L = i.closeIconCfg) != null && L.icon ? s($, i.closeIconCfg, null) : null]) : null, v = ((M = (K = e.slots).label) == null ? void 0 : M.call(K)) || e.props.label, R = !a && e.active ? 0 : -1;
218
+ return s("div", at({
215
219
  ref: `tab-${d}`,
216
- class: [n.e("item"), n.is(h.props.tabPosition), n.is("active", o.active), n.is("disabled", a), n.is("closable", m), n.is("focus", O.value)],
217
- id: `tab-${r}`,
220
+ class: [r.e("item"), r.is(g.props.tabPosition), r.is("active", e.active), r.is("disabled", a), r.is("closable", m), r.is("focus", B.value)],
221
+ id: `tab-${n}`,
218
222
  key: `tab-${d}`,
219
- "aria-controls": `pane-${r}`,
223
+ "aria-controls": `pane-${n}`,
220
224
  role: "tab",
221
- "aria-selected": o.active,
222
- tabindex: I,
223
- onFocus: () => F(),
224
- onBlur: () => R(),
225
- onClick: (f) => {
226
- R(), g("tabClick", o, r, f);
227
- },
225
+ "aria-selected": e.active,
226
+ tabindex: R,
227
+ onFocus: () => E(),
228
+ onBlur: () => O()
229
+ }, {
230
+ [i.trigger === "click" ? "onClick" : "onMouseenter"]: (f) => {
231
+ O(), C("tabClick", e, n, f);
232
+ }
233
+ }, {
228
234
  onContextmenu: (f) => {
229
- f.preventDefault(), g("tabContextmenu", {
230
- pane: o,
231
- index: C,
235
+ f.preventDefault(), C("tabContextmenu", {
236
+ pane: e,
237
+ index: h,
232
238
  event: f
233
239
  });
234
240
  },
235
241
  onKeydown: (f) => {
236
- m && (f.code === k.delete || f.code === k.backspace) && g("tabRemove", o, f);
242
+ m && (f.code === k.delete || f.code === k.backspace) && C("tabRemove", e, f);
237
243
  }
238
- }, [v, l]);
244
+ }), [v, l]);
239
245
  });
240
- }), ot = i.editable || i.addable ? s("span", {
241
- class: n.e("new-tab"),
246
+ }), et = i.editable || i.addable ? s("span", {
247
+ class: r.e("new-tab"),
242
248
  tabindex: "0",
243
- onClick: () => g("tabAdd"),
249
+ onClick: () => C("tabAdd"),
244
250
  onKeydown: (t) => {
245
- t.code === k.enter && g("tabAdd");
251
+ t.code === k.enter && C("tabAdd");
246
252
  }
247
- }, [(W = i.addIconCfg) != null && W.icon ? s(S, i.addIconCfg, null) : null]) : null, N = (t = !1) => s("div", {
248
- class: [n.e("nav"), n.is(h.props.tabPosition), n.is("fixed-nav", t), n.is("stretch", i.stretch && ["top", "bottom"].includes(h.props.tabPosition))],
249
- ref: t ? P : x,
253
+ }, [(W = i.addIconCfg) != null && W.icon ? s($, i.addIconCfg, null) : null]) : null;
254
+ lt();
255
+ const F = (t = !1) => s("div", {
256
+ class: [r.e("nav"), r.is(g.props.tabPosition), r.is("fixed-nav", t), r.is("stretch", i.stretch && ["top", "bottom"].includes(g.props.tabPosition))],
257
+ ref: t ? P.value : x.value,
250
258
  style: t ? {} : G.value,
251
259
  role: "tablist",
252
260
  onKeydown: Z
253
- }, [i.showBar ? s(ft, {
261
+ }, [i.showBar ? s(vt, {
254
262
  tabs: [...i.panes]
255
263
  }, null) : null, tt.value(t ? i.fixTabCount : void 0)]);
256
264
  return () => s("div", {
257
- ref: y,
258
- class: [n.e("nav-wrap"), n.is("scrollable", !!c.value), n.is(h.props.tabPosition)]
265
+ ref: I.value,
266
+ class: [r.e("nav-wrap"), r.is("scrollable", !!c.value), r.is(g.props.tabPosition)]
259
267
  }, [_.value, s("div", {
260
- class: [n.e("nav-scroll"), n.is("have-fixed-tab", !!i.fixTabCount)],
261
- ref: p
262
- }, [N(), i.fixTabCount ? N(!0) : null, ot])]);
268
+ class: [r.e("nav-scroll"), r.is("have-fixed-tab", !!i.fixTabCount)],
269
+ ref: p.value
270
+ }, [F(), i.fixTabCount ? F(!0) : null, et])]);
263
271
  }
264
272
  });
265
273
  export {
266
- ae as default
274
+ so as default
267
275
  };
@@ -22,6 +22,8 @@ export interface TabsProps {
22
22
  arrowRightIconCfg?: IconProps;
23
23
  fixTabCount?: number;
24
24
  fixExtraScrollWidth?: number;
25
+ /** tab 触发方式 */
26
+ trigger?: 'click' | 'hover';
25
27
  }
26
28
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<TabsProps>, {
27
29
  currentName: globalThis.Ref<string | number>;
@@ -1,4 +1,4 @@
1
- import { defineComponent as I, getCurrentInstance as h, useSlots as S, ref as v, watch as g, nextTick as M, computed as c, createVNode as s, provide as W } from "vue";
1
+ import { defineComponent as I, getCurrentInstance as C, useSlots as S, ref as v, watch as h, nextTick as M, computed as c, createVNode as d, provide as W } from "vue";
2
2
  import "@vueuse/core";
3
3
  import { isUndefined as x } from "@vft/utils";
4
4
  import "../../utils/ns-cover.js";
@@ -10,11 +10,11 @@ import "../../hooks/use-z-index/index.js";
10
10
  import { UPDATE_MODEL_EVENT as U } from "@vft/constants";
11
11
  import $ from "./tab-nav.vue2.js";
12
12
  import { TabsRootContextKey as F } from "./types.js";
13
- const d = (
13
+ const l = (
14
14
  /* hoist-static*/
15
15
  D("tabs")
16
16
  ), K = I({
17
- name: d.b()
17
+ name: l.b()
18
18
  }), oe = /* @__PURE__ */ I({
19
19
  ...K,
20
20
  props: {
@@ -49,6 +49,9 @@ const d = (
49
49
  },
50
50
  fixExtraScrollWidth: {
51
51
  default: 0
52
+ },
53
+ trigger: {
54
+ default: "click"
52
55
  }
53
56
  },
54
57
  emits: ["update:modelValue", "tabClick", "tabContextMenu", "tabChange", "tabRemove", "tabAdd", "edit"],
@@ -56,49 +59,49 @@ const d = (
56
59
  expose: w,
57
60
  emit: T
58
61
  }) {
59
- const a = T, R = h(), n = S(), f = v(), r = v(t.modelValue ?? "0"), u = async (e, o = !1) => {
60
- var i, l, C;
62
+ const a = T, R = C(), o = S(), f = v(), r = v(t.modelValue ?? "0"), u = async (e, n = !1) => {
63
+ var i, s, g;
61
64
  if (!(r.value === e || x(e)))
62
65
  try {
63
- await ((i = t.beforeLeave) == null ? void 0 : i.call(t, e, r.value)) !== !1 && (r.value = e, o && (a(U, e), a("tabChange", e)), (C = (l = f.value) == null ? void 0 : l.removeFocus) == null || C.call(l));
66
+ await ((i = t.beforeLeave) == null ? void 0 : i.call(t, e, r.value)) !== !1 && (r.value = e, n && (a(U, e), a("tabChange", e)), (g = (s = f.value) == null ? void 0 : s.removeFocus) == null || g.call(s));
64
67
  } catch {
65
68
  }
66
- }, y = (e, o, i) => {
67
- e.props.disabled || (u(o, !0), a("tabClick", e, i));
68
- }, L = (e, o) => {
69
- e.props.disabled || x(e.props.name) || (o.stopPropagation(), a("edit", e.props.name, "remove"), a("tabRemove", e.props.name));
69
+ }, y = (e, n, i) => {
70
+ e.props.disabled || (u(n, !0), a("tabClick", e, i));
71
+ }, L = (e, n) => {
72
+ e.props.disabled || x(e.props.name) || (n.stopPropagation(), a("edit", e.props.name, "remove"), a("tabRemove", e.props.name));
70
73
  };
71
- g(() => t.modelValue, (e) => u(e)), g(r, async () => {
74
+ h(() => t.modelValue, (e) => u(e)), h(r, async () => {
72
75
  var e;
73
76
  await M(), (e = f.value) == null || e.scrollToActiveTab();
74
77
  });
75
- const p = () => {
78
+ const B = () => {
76
79
  a("edit", void 0, "add"), a("tabAdd");
77
- }, B = (e, o, i) => {
78
- a("tabContextMenu", e, o, i);
80
+ }, P = (e, n, i) => {
81
+ a("tabContextMenu", e, n, i);
79
82
  }, m = c(() => {
80
83
  var e;
81
- return s("div", {
82
- class: d.e("content")
83
- }, [(e = n.default) == null ? void 0 : e.call(n)]);
84
+ return d("div", {
85
+ class: l.e("content")
86
+ }, [(e = o.default) == null ? void 0 : e.call(o)]);
84
87
  }), {
85
- children: P,
86
- addChild: E,
87
- removeChild: A
88
- } = O(h(), "vft-tab-pane");
88
+ children: E,
89
+ addChild: k,
90
+ removeChild: p
91
+ } = O(C(), "vft-tab-pane");
89
92
  W(F, {
90
93
  props: R.props,
91
94
  currentName: r,
92
- registerPane: E,
93
- unregisterPane: A
95
+ registerPane: k,
96
+ unregisterPane: p
94
97
  }), w({
95
98
  currentName: r
96
99
  });
97
- const V = c(() => ({
100
+ const A = c(() => ({
98
101
  icon: "icon-plus",
99
102
  size: 12,
100
103
  ...t.addIconCfg
101
- })), k = c(() => ({
104
+ })), V = c(() => ({
102
105
  icon: "icon-close",
103
106
  size: 14,
104
107
  ...t.closeIconCfg
@@ -112,29 +115,32 @@ const d = (
112
115
  ...t.arrowRightIconCfg
113
116
  })), b = c(() => {
114
117
  var e;
115
- return s("div", {
116
- class: [d.e("header"), d.is(t.tabPosition)]
117
- }, [s($, {
118
+ return d("div", {
119
+ class: [l.e("header"), l.is(t.tabPosition)]
120
+ }, [d($, {
118
121
  ref: f.value,
119
- panes: P.value,
122
+ panes: E.value,
120
123
  stretch: t.stretch,
121
124
  showBar: t.showBar,
122
- closeIconCfg: k.value,
123
- addIconCfg: V.value,
125
+ closeIconCfg: V.value,
126
+ addIconCfg: A.value,
124
127
  arrowRightIconCfg: z.value,
125
128
  arrowLeftIconCfg: N.value,
126
129
  editable: t.editable,
127
130
  fixTabCount: t.fixTabCount,
128
131
  fixExtraScrollWidth: t.fixExtraScrollWidth,
129
132
  addable: t.addable,
133
+ trigger: t.trigger,
130
134
  onTabClick: y,
131
135
  onTabRemove: L,
132
- onTabAdd: p,
133
- onTabContextmenu: B
134
- }, null), (e = n.headerRight) == null ? void 0 : e.call(n)]);
136
+ onTabAdd: B,
137
+ onTabContextmenu: P
138
+ }, null), o.navRight ? d("div", {
139
+ class: "nav-right"
140
+ }, [(e = o.navRight) == null ? void 0 : e.call(o)]) : null]);
135
141
  });
136
- return () => s("div", {
137
- class: [d.b(), d.m(t.tabPosition)]
142
+ return () => d("div", {
143
+ class: [l.b(), l.m(t.tabPosition)]
138
144
  }, [...t.tabPosition !== "bottom" ? [b.value, m.value] : [m.value, b.value]]);
139
145
  }
140
146
  });
@@ -1,3 +1,4 @@
1
+ import type { Options } from '@popperjs/core';
1
2
  import type { Dayjs } from 'dayjs';
2
3
  import type { DateModelType, DayOrDays, PickerOptions, SingleOrRange } from './props';
3
4
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
@@ -61,15 +62,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
61
62
  readonly readonly: import("vft/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
62
63
  readonly disabled: import("vft/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
63
64
  readonly placeholder: import("vft/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
64
- readonly popperOptions: import("vft/es/utils").EpPropFinalized<(new (...args: any[]) => any) | (() => Options) | {
65
- (): Options;
66
- new (): any;
67
- readonly prototype: any;
68
- } | ((new (...args: any[]) => any) | (() => Options) | {
69
- (): Options;
70
- new (): any;
71
- readonly prototype: any;
72
- })[], unknown, unknown, () => {}, boolean>;
65
+ readonly popperOptions: import("vft/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<Options>) | (() => Partial<Options>) | ((new (...args: any[]) => Partial<Options>) | (() => Partial<Options>))[], unknown, unknown, () => {}, boolean>;
73
66
  readonly modelValue: import("vft/es/utils").EpPropFinalized<(new (...args: any[]) => string | number | Date | [DateModelType, DateModelType]) | (() => import("./props").ModelValueType) | ((new (...args: any[]) => string | number | Date | [DateModelType, DateModelType]) | (() => import("./props").ModelValueType))[], unknown, unknown, "", boolean>;
74
67
  readonly rangeSeparator: import("vft/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "-", boolean>;
75
68
  readonly startPlaceholder: StringConstructor;
@@ -182,15 +175,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
182
175
  readonly readonly: import("vft/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
183
176
  readonly disabled: import("vft/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
184
177
  readonly placeholder: import("vft/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
185
- readonly popperOptions: import("vft/es/utils").EpPropFinalized<(new (...args: any[]) => any) | (() => Options) | {
186
- (): Options;
187
- new (): any;
188
- readonly prototype: any;
189
- } | ((new (...args: any[]) => any) | (() => Options) | {
190
- (): Options;
191
- new (): any;
192
- readonly prototype: any;
193
- })[], unknown, unknown, () => {}, boolean>;
178
+ readonly popperOptions: import("vft/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<Options>) | (() => Partial<Options>) | ((new (...args: any[]) => Partial<Options>) | (() => Partial<Options>))[], unknown, unknown, () => {}, boolean>;
194
179
  readonly modelValue: import("vft/es/utils").EpPropFinalized<(new (...args: any[]) => string | number | Date | [DateModelType, DateModelType]) | (() => import("./props").ModelValueType) | ((new (...args: any[]) => string | number | Date | [DateModelType, DateModelType]) | (() => import("./props").ModelValueType))[], unknown, unknown, "", boolean>;
195
180
  readonly rangeSeparator: import("vft/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "-", boolean>;
196
181
  readonly startPlaceholder: StringConstructor;
@@ -224,13 +209,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
224
209
  readonly modelValue: import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => string | number | Date | [DateModelType, DateModelType]) | (() => import("./props").ModelValueType) | ((new (...args: any[]) => string | number | Date | [DateModelType, DateModelType]) | (() => import("./props").ModelValueType))[], unknown, unknown>;
225
210
  readonly readonly: import("vft/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
226
211
  readonly disabled: import("vft/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
212
+ readonly tabindex: import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>;
227
213
  readonly placeholder: string;
228
214
  readonly clearable: import("vft/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
229
215
  readonly prefixIcon: import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => (string | globalThis.Component) & {}) | (() => string | globalThis.Component) | ((new (...args: any[]) => (string | globalThis.Component) & {}) | (() => string | globalThis.Component))[], unknown, unknown>;
230
216
  readonly clearIcon: import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => (string | globalThis.Component) & {}) | (() => string | globalThis.Component) | ((new (...args: any[]) => (string | globalThis.Component) & {}) | (() => string | globalThis.Component))[], unknown, unknown>;
231
- readonly tabindex: import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>;
232
217
  readonly validateEvent: import("vft/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
233
- readonly popperOptions: any;
218
+ readonly popperOptions: Partial<Options>;
234
219
  readonly popperClass: string;
235
220
  readonly editable: import("vft/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
236
221
  readonly rangeSeparator: string;
@@ -249,7 +234,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
249
234
  type: string;
250
235
  defaultValue: import("vft/es/utils").EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => SingleOrRange<Date>))[], unknown, unknown> | undefined;
251
236
  pick: (date?: any, visible?: boolean) => void;
252
- "select-range": (start: number, end: number, pos?: "max" | "min" | undefined) => void;
237
+ "select-range": (start: number, end: number, pos?: "min" | "max" | undefined) => void;
253
238
  "set-picker-option": <T extends keyof PickerOptions>(e: [T, PickerOptions[T]]) => void;
254
239
  "calendar-change": (e: [Date, false | Date]) => void;
255
240
  "panel-change": (value: [Dayjs, Dayjs], mode: "year" | "month", view: unknown) => void;
@@ -1,3 +1,4 @@
1
+ import type { Options } from '@popperjs/core';
1
2
  import type { Dayjs } from 'dayjs';
2
3
  import type { Component, ExtractPropTypes } from 'vue';
3
4
  export type SingleOrRange<T> = T | [T, T];
@@ -70,15 +71,7 @@ export declare const timePickerDefaultProps: {
70
71
  readonly readonly: import("vft/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
71
72
  readonly disabled: import("vft/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
72
73
  readonly placeholder: import("vft/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
73
- readonly popperOptions: import("vft/es/utils").EpPropFinalized<(new (...args: any[]) => any) | (() => Options) | {
74
- (): Options;
75
- new (): any;
76
- readonly prototype: any;
77
- } | ((new (...args: any[]) => any) | (() => Options) | {
78
- (): Options;
79
- new (): any;
80
- readonly prototype: any;
81
- })[], unknown, unknown, () => {}, boolean>;
74
+ readonly popperOptions: import("vft/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<Options>) | (() => Partial<Options>) | ((new (...args: any[]) => Partial<Options>) | (() => Partial<Options>))[], unknown, unknown, () => {}, boolean>;
82
75
  readonly modelValue: import("vft/es/utils").EpPropFinalized<(new (...args: any[]) => string | number | Date | [DateModelType, DateModelType]) | (() => ModelValueType) | ((new (...args: any[]) => string | number | Date | [DateModelType, DateModelType]) | (() => ModelValueType))[], unknown, unknown, "", boolean>;
83
76
  readonly rangeSeparator: import("vft/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "-", boolean>;
84
77
  readonly startPlaceholder: StringConstructor;
@@ -56,7 +56,7 @@ export declare const useOldValue: (props: {
56
56
  startOf: (unit: import("dayjs").OpUnitType) => Dayjs;
57
57
  endOf: (unit: import("dayjs").OpUnitType) => Dayjs;
58
58
  format: (template?: string | undefined) => string;
59
- diff: (date?: string | number | Date | Dayjs | null | undefined, unit?: "s" | "ms" | "y" | "D" | "M" | "year" | "month" | "date" | "dates" | "week" | "h" | "day" | "hour" | "minute" | "second" | "millisecond" | "hours" | "minutes" | "seconds" | "milliseconds" | "days" | "months" | "years" | "d" | "m" | "weeks" | "w" | "quarter" | "quarters" | "Q" | undefined, float?: boolean | undefined) => number;
59
+ diff: (date?: string | number | Date | Dayjs | null | undefined, unit?: "s" | "ms" | "y" | "D" | "M" | "year" | "month" | "date" | "dates" | "week" | "h" | "hours" | "minutes" | "seconds" | "hour" | "minute" | "second" | "day" | "millisecond" | "milliseconds" | "days" | "months" | "years" | "d" | "m" | "weeks" | "w" | "quarter" | "quarters" | "Q" | undefined, float?: boolean | undefined) => number;
60
60
  valueOf: () => number;
61
61
  unix: () => number;
62
62
  daysInMonth: () => number;
@@ -126,7 +126,7 @@ export declare const useOldValue: (props: {
126
126
  startOf: (unit: import("dayjs").OpUnitType) => Dayjs;
127
127
  endOf: (unit: import("dayjs").OpUnitType) => Dayjs;
128
128
  format: (template?: string | undefined) => string;
129
- diff: (date?: string | number | Date | Dayjs | null | undefined, unit?: "s" | "ms" | "y" | "D" | "M" | "year" | "month" | "date" | "dates" | "week" | "h" | "day" | "hour" | "minute" | "second" | "millisecond" | "hours" | "minutes" | "seconds" | "milliseconds" | "days" | "months" | "years" | "d" | "m" | "weeks" | "w" | "quarter" | "quarters" | "Q" | undefined, float?: boolean | undefined) => number;
129
+ diff: (date?: string | number | Date | Dayjs | null | undefined, unit?: "s" | "ms" | "y" | "D" | "M" | "year" | "month" | "date" | "dates" | "week" | "h" | "hours" | "minutes" | "seconds" | "hour" | "minute" | "second" | "day" | "millisecond" | "milliseconds" | "days" | "months" | "years" | "d" | "m" | "weeks" | "w" | "quarter" | "quarters" | "Q" | undefined, float?: boolean | undefined) => number;
130
130
  valueOf: () => number;
131
131
  unix: () => number;
132
132
  daysInMonth: () => number;