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
@@ -467,20 +467,20 @@ export declare const VftCheckbox: import("vft/es/utils").SFCWithInstall<{
467
467
  disabled: {
468
468
  type: globalThis.PropType<boolean>;
469
469
  };
470
- tag: {
471
- type: globalThis.PropType<string>;
472
- default: string;
470
+ min: {
471
+ type: globalThis.PropType<number>;
473
472
  };
474
473
  max: {
475
474
  type: globalThis.PropType<number>;
476
475
  };
476
+ tag: {
477
+ type: globalThis.PropType<string>;
478
+ default: string;
479
+ };
477
480
  validateEvent: {
478
481
  type: globalThis.PropType<boolean>;
479
482
  default: boolean;
480
483
  };
481
- min: {
482
- type: globalThis.PropType<number>;
483
- };
484
484
  textColor: {
485
485
  type: globalThis.PropType<string>;
486
486
  };
@@ -513,20 +513,20 @@ export declare const VftCheckbox: import("vft/es/utils").SFCWithInstall<{
513
513
  disabled: {
514
514
  type: globalThis.PropType<boolean>;
515
515
  };
516
- tag: {
517
- type: globalThis.PropType<string>;
518
- default: string;
516
+ min: {
517
+ type: globalThis.PropType<number>;
519
518
  };
520
519
  max: {
521
520
  type: globalThis.PropType<number>;
522
521
  };
522
+ tag: {
523
+ type: globalThis.PropType<string>;
524
+ default: string;
525
+ };
523
526
  validateEvent: {
524
527
  type: globalThis.PropType<boolean>;
525
528
  default: boolean;
526
529
  };
527
- min: {
528
- type: globalThis.PropType<number>;
529
- };
530
530
  textColor: {
531
531
  type: globalThis.PropType<string>;
532
532
  };
@@ -567,20 +567,20 @@ export declare const VftCheckbox: import("vft/es/utils").SFCWithInstall<{
567
567
  disabled: {
568
568
  type: globalThis.PropType<boolean>;
569
569
  };
570
- tag: {
571
- type: globalThis.PropType<string>;
572
- default: string;
570
+ min: {
571
+ type: globalThis.PropType<number>;
573
572
  };
574
573
  max: {
575
574
  type: globalThis.PropType<number>;
576
575
  };
576
+ tag: {
577
+ type: globalThis.PropType<string>;
578
+ default: string;
579
+ };
577
580
  validateEvent: {
578
581
  type: globalThis.PropType<boolean>;
579
582
  default: boolean;
580
583
  };
581
- min: {
582
- type: globalThis.PropType<number>;
583
- };
584
584
  textColor: {
585
585
  type: globalThis.PropType<string>;
586
586
  };
@@ -618,20 +618,20 @@ export declare const VftCheckbox: import("vft/es/utils").SFCWithInstall<{
618
618
  disabled: {
619
619
  type: globalThis.PropType<boolean>;
620
620
  };
621
- tag: {
622
- type: globalThis.PropType<string>;
623
- default: string;
621
+ min: {
622
+ type: globalThis.PropType<number>;
624
623
  };
625
624
  max: {
626
625
  type: globalThis.PropType<number>;
627
626
  };
627
+ tag: {
628
+ type: globalThis.PropType<string>;
629
+ default: string;
630
+ };
628
631
  validateEvent: {
629
632
  type: globalThis.PropType<boolean>;
630
633
  default: boolean;
631
634
  };
632
- min: {
633
- type: globalThis.PropType<number>;
634
- };
635
635
  textColor: {
636
636
  type: globalThis.PropType<string>;
637
637
  };
@@ -895,20 +895,20 @@ export declare const VftCheckboxGroup: import("vft/es/utils").SFCWithInstall<{
895
895
  disabled: {
896
896
  type: globalThis.PropType<boolean>;
897
897
  };
898
- tag: {
899
- type: globalThis.PropType<string>;
900
- default: string;
898
+ min: {
899
+ type: globalThis.PropType<number>;
901
900
  };
902
901
  max: {
903
902
  type: globalThis.PropType<number>;
904
903
  };
904
+ tag: {
905
+ type: globalThis.PropType<string>;
906
+ default: string;
907
+ };
905
908
  validateEvent: {
906
909
  type: globalThis.PropType<boolean>;
907
910
  default: boolean;
908
911
  };
909
- min: {
910
- type: globalThis.PropType<number>;
911
- };
912
912
  textColor: {
913
913
  type: globalThis.PropType<string>;
914
914
  };
@@ -941,20 +941,20 @@ export declare const VftCheckboxGroup: import("vft/es/utils").SFCWithInstall<{
941
941
  disabled: {
942
942
  type: globalThis.PropType<boolean>;
943
943
  };
944
- tag: {
945
- type: globalThis.PropType<string>;
946
- default: string;
944
+ min: {
945
+ type: globalThis.PropType<number>;
947
946
  };
948
947
  max: {
949
948
  type: globalThis.PropType<number>;
950
949
  };
950
+ tag: {
951
+ type: globalThis.PropType<string>;
952
+ default: string;
953
+ };
951
954
  validateEvent: {
952
955
  type: globalThis.PropType<boolean>;
953
956
  default: boolean;
954
957
  };
955
- min: {
956
- type: globalThis.PropType<number>;
957
- };
958
958
  textColor: {
959
959
  type: globalThis.PropType<string>;
960
960
  };
@@ -995,20 +995,20 @@ export declare const VftCheckboxGroup: import("vft/es/utils").SFCWithInstall<{
995
995
  disabled: {
996
996
  type: globalThis.PropType<boolean>;
997
997
  };
998
- tag: {
999
- type: globalThis.PropType<string>;
1000
- default: string;
998
+ min: {
999
+ type: globalThis.PropType<number>;
1001
1000
  };
1002
1001
  max: {
1003
1002
  type: globalThis.PropType<number>;
1004
1003
  };
1004
+ tag: {
1005
+ type: globalThis.PropType<string>;
1006
+ default: string;
1007
+ };
1005
1008
  validateEvent: {
1006
1009
  type: globalThis.PropType<boolean>;
1007
1010
  default: boolean;
1008
1011
  };
1009
- min: {
1010
- type: globalThis.PropType<number>;
1011
- };
1012
1012
  textColor: {
1013
1013
  type: globalThis.PropType<string>;
1014
1014
  };
@@ -1046,20 +1046,20 @@ export declare const VftCheckboxGroup: import("vft/es/utils").SFCWithInstall<{
1046
1046
  disabled: {
1047
1047
  type: globalThis.PropType<boolean>;
1048
1048
  };
1049
- tag: {
1050
- type: globalThis.PropType<string>;
1051
- default: string;
1049
+ min: {
1050
+ type: globalThis.PropType<number>;
1052
1051
  };
1053
1052
  max: {
1054
1053
  type: globalThis.PropType<number>;
1055
1054
  };
1055
+ tag: {
1056
+ type: globalThis.PropType<string>;
1057
+ default: string;
1058
+ };
1056
1059
  validateEvent: {
1057
1060
  type: globalThis.PropType<boolean>;
1058
1061
  default: boolean;
1059
1062
  };
1060
- min: {
1061
- type: globalThis.PropType<number>;
1062
- };
1063
1063
  textColor: {
1064
1064
  type: globalThis.PropType<string>;
1065
1065
  };
@@ -1,18 +1,7 @@
1
- interface ClampProps {
2
- text: string;
3
- /** 最大高度 */
4
- maxHeight?: string | number;
5
- /** 最多几行 */
6
- maxLines?: number;
7
- /** 是否需要展开设置 */
8
- expanded?: boolean;
9
- /** ...文字设置 */
10
- ellipsis?: string;
11
- /** resize 是否监听 */
12
- autoResize?: boolean;
13
- location?: 'start' | 'middle' | 'end';
14
- }
15
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<ClampProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
1
+ import type { ClampProps } from './types';
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<ClampProps>, {
3
+ isClamped: globalThis.ComputedRef<boolean>;
4
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
16
5
  "clamp-change": (data: boolean) => void;
17
6
  "update:expanded": (data: boolean) => void;
18
7
  }, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<ClampProps>>> & {
@@ -1,10 +1,10 @@
1
- import { defineComponent as M, ref as v, reactive as F, computed as u, watch as s, nextTick as E, onUnmounted as N, onMounted as V, openBlock as q, createElementBlock as D, normalizeStyle as G, createElementVNode as w, renderSlot as B } from "vue";
2
- import { addUnit as I } from "@vft/utils";
3
- import { addListener as J, removeListener as K } from "resize-detector";
4
- const P = ["aria-label"], Q = M({
1
+ import { defineComponent as M, ref as v, reactive as N, computed as u, watch as s, nextTick as E, onUnmounted as V, onMounted as q, openBlock as D, createElementBlock as G, normalizeStyle as I, createElementVNode as w, renderSlot as B } from "vue";
2
+ import { addUnit as J } from "@vft/utils";
3
+ import { addListener as K, removeListener as P } from "resize-detector";
4
+ const Q = ["title", "aria-label"], W = M({
5
5
  name: "vft-clamp"
6
- }), Z = /* @__PURE__ */ M({
7
- ...Q,
6
+ }), p = /* @__PURE__ */ M({
7
+ ...W,
8
8
  props: {
9
9
  text: {},
10
10
  maxHeight: {},
@@ -15,21 +15,21 @@ const P = ["aria-label"], Q = M({
15
15
  location: { default: "end" }
16
16
  },
17
17
  emits: ["clamp-change", "update:expanded"],
18
- setup(e, { emit: T }) {
19
- const R = T, a = v(null), r = v(null), x = v(null), l = F({
18
+ setup(e, { expose: T, emit: $ }) {
19
+ const R = $, a = v(null), r = v(null), x = v(null), l = N({
20
20
  offset: 0,
21
21
  localExpanded: e.expanded,
22
22
  unregisterResizeCallback: null
23
- }), $ = u(() => {
23
+ }), j = u(() => {
24
24
  if (!l.localExpanded && e.maxHeight)
25
- return I(e.maxHeight);
25
+ return J(e.maxHeight);
26
26
  }), y = () => {
27
- x.value && (x.value.textContent = O.value);
27
+ x.value && (x.value.textContent = S.value);
28
28
  }, c = () => {
29
29
  l.localExpanded || (y(), (d() || n.value) && g());
30
30
  }, k = () => {
31
- e.text && (l.offset = e.text.length, C(), e.autoResize && a.value && (J(a.value, c), l.unregisterResizeCallback = () => {
32
- a.value && K(a.value, c);
31
+ e.text && (l.offset = e.text.length, C(), e.autoResize && a.value && (K(a.value, c), l.unregisterResizeCallback = () => {
32
+ a.value && P(a.value, c);
33
33
  }), c());
34
34
  }, C = () => {
35
35
  var t;
@@ -42,19 +42,19 @@ const P = ["aria-label"], Q = M({
42
42
  ).length : 0, g = (...t) => {
43
43
  const [i = 0, f = l.offset] = t;
44
44
  if (f - i <= 3) {
45
- j();
45
+ U();
46
46
  return;
47
47
  }
48
48
  const o = Math.floor((f + i) / 2);
49
49
  h(o), d() ? g(i, o) : g(o, f);
50
50
  }, h = (t) => {
51
51
  l.offset = t, y();
52
- }, j = () => {
53
- U(), A();
54
52
  }, U = () => {
53
+ A(), O();
54
+ }, A = () => {
55
55
  for (; (!d() || m() < 2) && l.offset < e.text.length; )
56
56
  H(1);
57
- }, A = () => {
57
+ }, O = () => {
58
58
  for (; d() && m() > 1 && l.offset > 0; )
59
59
  H(-1);
60
60
  }, H = (t) => {
@@ -69,7 +69,7 @@ const P = ["aria-label"], Q = M({
69
69
  },
70
70
  { immediate: !0 }
71
71
  );
72
- const O = u(() => n.value ? S.value : e.text), S = u(() => {
72
+ const S = u(() => n.value ? F.value : e.text), F = u(() => {
73
73
  if (e.location === "start")
74
74
  return e.ellipsis + (e.text.slice(0, l.offset) || "").trim();
75
75
  if (e.location === "middle") {
@@ -108,17 +108,19 @@ const P = ["aria-label"], Q = M({
108
108
  k();
109
109
  });
110
110
  }
111
- ), N(() => {
111
+ ), V(() => {
112
112
  C();
113
- }), V(() => {
113
+ }), q(() => {
114
114
  k();
115
- }), (t, i) => (q(), D("div", {
115
+ }), T({
116
+ isClamped: n
117
+ }), (t, i) => (D(), G("div", {
116
118
  ref_key: "textClampRef",
117
119
  ref: a,
118
120
  class: "text-clamp",
119
- style: G({
121
+ style: I({
120
122
  overflow: "hidden",
121
- maxHeight: $.value
123
+ maxHeight: j.value
122
124
  })
123
125
  }, [
124
126
  w("span", {
@@ -135,8 +137,9 @@ const P = ["aria-label"], Q = M({
135
137
  w("span", {
136
138
  ref_key: "textRef",
137
139
  ref: x,
140
+ title: t.text,
138
141
  "aria-label": t.text
139
- }, null, 8, P),
142
+ }, null, 8, Q),
140
143
  B(t.$slots, "after", {
141
144
  expand: L,
142
145
  collapse: b,
@@ -149,5 +152,5 @@ const P = ["aria-label"], Q = M({
149
152
  }
150
153
  });
151
154
  export {
152
- Z as default
155
+ p as default
153
156
  };
@@ -25,7 +25,9 @@ export declare const VftClamp: import("vft/es/utils").SFCWithInstall<{
25
25
  }>> & {
26
26
  "onClamp-change"?: ((data: boolean) => any) | undefined;
27
27
  "onUpdate:expanded"?: ((data: boolean) => any) | undefined;
28
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
28
+ }, {
29
+ isClamped: globalThis.ComputedRef<boolean>;
30
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
29
31
  "clamp-change": (data: boolean) => void;
30
32
  "update:expanded": (data: boolean) => void;
31
33
  }, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<globalThis.ExtractPropTypes<{
@@ -87,7 +89,9 @@ export declare const VftClamp: import("vft/es/utils").SFCWithInstall<{
87
89
  }>> & {
88
90
  "onClamp-change"?: ((data: boolean) => any) | undefined;
89
91
  "onUpdate:expanded"?: ((data: boolean) => any) | undefined;
90
- }, {}, {}, {}, {}, {}>;
92
+ }, {
93
+ isClamped: globalThis.ComputedRef<boolean>;
94
+ }, {}, {}, {}, {}>;
91
95
  __isFragment?: undefined;
92
96
  __isTeleport?: undefined;
93
97
  __isSuspense?: undefined;
@@ -117,7 +121,9 @@ export declare const VftClamp: import("vft/es/utils").SFCWithInstall<{
117
121
  }>> & {
118
122
  "onClamp-change"?: ((data: boolean) => any) | undefined;
119
123
  "onUpdate:expanded"?: ((data: boolean) => any) | undefined;
120
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
124
+ }, {
125
+ isClamped: globalThis.ComputedRef<boolean>;
126
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
121
127
  "clamp-change": (data: boolean) => void;
122
128
  "update:expanded": (data: boolean) => void;
123
129
  }, string, {}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
@@ -138,4 +144,5 @@ export declare const VftClamp: import("vft/es/utils").SFCWithInstall<{
138
144
  }): any;
139
145
  };
140
146
  })> & Record<string, any>;
147
+ export * from './types';
141
148
  export default VftClamp;
@@ -0,0 +1,14 @@
1
+ export interface ClampProps {
2
+ text: string;
3
+ /** 最大高度 */
4
+ maxHeight?: string | number;
5
+ /** 最多几行 */
6
+ maxLines?: number;
7
+ /** 是否需要展开设置 */
8
+ expanded?: boolean;
9
+ /** ...文字设置 */
10
+ ellipsis?: string;
11
+ /** resize 是否监听 */
12
+ autoResize?: boolean;
13
+ location?: 'start' | 'middle' | 'end';
14
+ }
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,12 @@
1
+ import type { ClampTooltipProps } from './types';
2
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<ClampTooltipProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<ClampTooltipProps>>>, {}, {}>;
3
+ export default _default;
4
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
5
+ type __VLS_TypePropsToRuntimeProps<T> = {
6
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
7
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
8
+ } : {
9
+ type: import('vue').PropType<T[K]>;
10
+ required: true;
11
+ };
12
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./clamp-tooltip.vue2.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,47 @@
1
+ import { defineComponent as _, resolveComponent as m, openBlock as o, createElementBlock as d, Fragment as k, createVNode as l, unref as t, withCtx as r, mergeProps as s, createBlock as c } from "vue";
2
+ import { createReusableTemplate as y } from "@vueuse/core";
3
+ const v = /* @__PURE__ */ _({
4
+ __name: "clamp-tooltip",
5
+ props: {
6
+ showTooltip: { type: Boolean },
7
+ tooltipCfg: {},
8
+ text: {},
9
+ maxHeight: {},
10
+ maxLines: {},
11
+ expanded: { type: Boolean },
12
+ ellipsis: {},
13
+ autoResize: { type: Boolean },
14
+ location: {}
15
+ },
16
+ setup(B) {
17
+ const p = ref(), [i, n] = y();
18
+ return (e, C) => {
19
+ var a;
20
+ const f = m("vft-clamp"), u = m("vft-tooltip");
21
+ return o(), d(k, null, [
22
+ l(t(i), null, {
23
+ default: r(() => [
24
+ l(f, s({
25
+ ref_key: "clampRef",
26
+ ref: p
27
+ }, e.$props), null, 16)
28
+ ]),
29
+ _: 1
30
+ }),
31
+ e.showTooltip ? (o(), c(u, s({
32
+ key: 0,
33
+ disabled: !((a = t(p)) != null && a.isClamped),
34
+ content: e.text
35
+ }, e.tooltipCfg), {
36
+ default: r(() => [
37
+ l(t(n))
38
+ ]),
39
+ _: 1
40
+ }, 16, ["disabled", "content"])) : (o(), c(t(n), { key: 1 }))
41
+ ], 64);
42
+ };
43
+ }
44
+ });
45
+ export {
46
+ v as default
47
+ };
@@ -0,0 +1,61 @@
1
+ export * from './types';
2
+ export declare const VftClampTooltip: import("vft/es/utils").SFCWithInstall<import("vue").DefineComponent<{
3
+ showTooltip: {
4
+ type: globalThis.PropType<boolean>;
5
+ };
6
+ tooltipCfg: {
7
+ type: globalThis.PropType<Partial<import("..").ToolTipProps>>;
8
+ };
9
+ text: {
10
+ type: globalThis.PropType<string>;
11
+ required: true;
12
+ };
13
+ maxHeight: {
14
+ type: globalThis.PropType<string | number>;
15
+ };
16
+ maxLines: {
17
+ type: globalThis.PropType<number>;
18
+ };
19
+ expanded: {
20
+ type: globalThis.PropType<boolean>;
21
+ };
22
+ ellipsis: {
23
+ type: globalThis.PropType<string>;
24
+ };
25
+ autoResize: {
26
+ type: globalThis.PropType<boolean>;
27
+ };
28
+ location: {
29
+ type: globalThis.PropType<"start" | "end" | "middle">;
30
+ };
31
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
32
+ showTooltip: {
33
+ type: globalThis.PropType<boolean>;
34
+ };
35
+ tooltipCfg: {
36
+ type: globalThis.PropType<Partial<import("..").ToolTipProps>>;
37
+ };
38
+ text: {
39
+ type: globalThis.PropType<string>;
40
+ required: true;
41
+ };
42
+ maxHeight: {
43
+ type: globalThis.PropType<string | number>;
44
+ };
45
+ maxLines: {
46
+ type: globalThis.PropType<number>;
47
+ };
48
+ expanded: {
49
+ type: globalThis.PropType<boolean>;
50
+ };
51
+ ellipsis: {
52
+ type: globalThis.PropType<string>;
53
+ };
54
+ autoResize: {
55
+ type: globalThis.PropType<boolean>;
56
+ };
57
+ location: {
58
+ type: globalThis.PropType<"start" | "end" | "middle">;
59
+ };
60
+ }>>, {}, {}>> & Record<string, any>;
61
+ export default VftClampTooltip;
@@ -0,0 +1,12 @@
1
+ import "@vueuse/core";
2
+ import "@vft/utils";
3
+ import "../../utils/ns-cover.js";
4
+ import { withInstall as t } from "../../utils/vue/install.js";
5
+ import "lodash";
6
+ import "vue";
7
+ import o from "./clamp-tooltip.vue2.js";
8
+ const s = t(o);
9
+ export {
10
+ s as VftClampTooltip,
11
+ s as default
12
+ };
File without changes
@@ -0,0 +1,2 @@
1
+ import "vft/theme-style/base.css";
2
+ import "vft/theme-style/vft-clamp-tooltip.css";
File without changes
@@ -0,0 +1,2 @@
1
+ import "vft/theme-style/src/base.scss";
2
+ import "vft/theme-style/src/clamp-tooltip.scss";
@@ -0,0 +1,6 @@
1
+ import type { ClampProps } from '../clamp';
2
+ import type { ToolTipProps } from '../tooltip';
3
+ export interface ClampTooltipProps extends ClampProps {
4
+ showTooltip?: boolean;
5
+ tooltipCfg?: Partial<ToolTipProps>;
6
+ }
@@ -1,3 +1,4 @@
1
+ import type { MaybeRef } from '@vueuse/core';
1
2
  import type { App, Ref } from 'vue';
2
3
  import type { ConfigProviderContext } from '../constants';
3
4
  export declare function useGlobalConfig<K extends keyof ConfigProviderContext, D extends ConfigProviderContext[K]>(key: K, defaultValue?: D): Ref<Exclude<ConfigProviderContext[K], undefined> | D>;
@@ -22,9 +23,9 @@ export declare function useGlobalComponentSettings(block: string): {
22
23
  cssVarBlockName: (name: string) => string;
23
24
  };
24
25
  zIndex: {
25
- initialZIndex: globalThis.ComputedRef<number | undefined>;
26
+ initialZIndex: globalThis.ComputedRef<number>;
26
27
  currentZIndex: globalThis.ComputedRef<number>;
27
28
  nextZIndex: () => number;
28
29
  };
29
30
  };
30
- export declare const provideGlobalConfig: (config: MaybeRef<Partial<import("../config-provider.vue").ConfigProviderProps>>, app?: App, global?: boolean) => globalThis.ComputedRef<any> | undefined;
31
+ export declare const provideGlobalConfig: (config: MaybeRef<ConfigProviderContext>, app?: App, global?: boolean) => globalThis.ComputedRef<Partial<import("../config-provider.vue").ConfigProviderProps>> | undefined;
@@ -6,18 +6,19 @@ import "lodash";
6
6
  import { useNamespace as p } from "../../hooks/use-namespace/index.js";
7
7
  import "@popperjs/core";
8
8
  import "../../hooks/use-z-index/index.js";
9
- const o = (
9
+ const t = (
10
10
  /* hoist-static*/
11
11
  p("main")
12
12
  ), i = e({
13
- name: o.b()
13
+ name: t.b()
14
14
  }), h = /* @__PURE__ */ e({
15
15
  ...i,
16
16
  setup(c) {
17
- return (t, l) => (r(), m("main", {
18
- class: n(s(o).b())
17
+ return (o, l) => (r(), m("main", {
18
+ ref: "testRef",
19
+ class: n(s(t).b())
19
20
  }, [
20
- a(t.$slots, "default")
21
+ a(o.$slots, "default")
21
22
  ], 2));
22
23
  }
23
24
  });
@@ -9,6 +9,7 @@ import "../check-tag/index.js";
9
9
  import "../checkbox/index.js";
10
10
  import "../clamp/index.js";
11
11
  import "../clamp-toggle/index.js";
12
+ import "../clamp-tooltip/index.js";
12
13
  import "../col/index.js";
13
14
  import "../collapse-transition/index.js";
14
15
  import "../color-picker/index.js";
@@ -98,7 +99,7 @@ const R = { class: "vft-sub-menu" }, v = (
98
99
  N("context-menu")
99
100
  ), T = f({
100
101
  name: v.b()
101
- }), Mo = /* @__PURE__ */ f({
102
+ }), $o = /* @__PURE__ */ f({
102
103
  ...T,
103
104
  props: {
104
105
  axis: {},
@@ -186,5 +187,5 @@ const R = { class: "vft-sub-menu" }, v = (
186
187
  }
187
188
  });
188
189
  export {
189
- Mo as default
190
+ $o as default
190
191
  };
@@ -55,7 +55,7 @@ export declare const useRangePicker: (props: PanelRangeSharedProps, { defaultVal
55
55
  startOf: (unit: import("dayjs").OpUnitType) => Dayjs;
56
56
  endOf: (unit: import("dayjs").OpUnitType) => Dayjs;
57
57
  format: (template?: string | undefined) => string;
58
- 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;
58
+ 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;
59
59
  valueOf: () => number;
60
60
  unix: () => number;
61
61
  daysInMonth: () => number;