vft 0.0.231 → 0.0.233

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 (462) hide show
  1. package/attributes.json +1 -1
  2. package/es/components/affix/affix.vue.d.ts +4 -6
  3. package/es/components/affix/index.d.ts +3 -3
  4. package/es/components/alert/alert.vue.d.ts +5 -7
  5. package/es/components/alert/index.d.ts +3 -3
  6. package/es/components/autocomplete/autocomplete.vue.d.ts +42 -44
  7. package/es/components/autocomplete/index.d.ts +108 -108
  8. package/es/components/avatar/avatar.vue.d.ts +4 -6
  9. package/es/components/avatar/index.d.ts +7 -7
  10. package/es/components/backtop/backtop.vue.d.ts +4 -6
  11. package/es/components/backtop/index.d.ts +7 -7
  12. package/es/components/button/button-group.vue.d.ts +2 -4
  13. package/es/components/button/button.vue.d.ts +6 -8
  14. package/es/components/button/index.d.ts +20 -20
  15. package/es/components/card/card.vue.d.ts +2 -4
  16. package/es/components/card/index.d.ts +3 -3
  17. package/es/components/carousel/carousel-item.vue.d.ts +2 -4
  18. package/es/components/carousel/carousel.vue.d.ts +9 -11
  19. package/es/components/carousel/index.d.ts +24 -24
  20. package/es/components/carousel/use-carousel.d.ts +1 -1
  21. package/es/components/check-tag/check-tag.vue.d.ts +4 -6
  22. package/es/components/check-tag/index.d.ts +3 -3
  23. package/es/components/checkbox/checkbox-button.vue.d.ts +4 -6
  24. package/es/components/checkbox/checkbox-group.vue.d.ts +4 -6
  25. package/es/components/checkbox/checkbox.vue.d.ts +4 -6
  26. package/es/components/checkbox/composables/use-checkbox-disabled.d.ts +1 -1
  27. package/es/components/checkbox/composables/use-checkbox-event.d.ts +1 -1
  28. package/es/components/checkbox/composables/use-checkbox-model.d.ts +1 -1
  29. package/es/components/checkbox/composables/use-checkbox-status.d.ts +1 -1
  30. package/es/components/checkbox/composables/use-checkbox.d.ts +2 -2
  31. package/es/components/checkbox/index.d.ts +15 -15
  32. package/es/components/clamp/clamp.vue.d.ts +10 -12
  33. package/es/components/clamp/index.d.ts +3 -3
  34. package/es/components/clamp-tooltip/index.d.ts +2 -2
  35. package/es/components/col/col.vue.d.ts +4 -6
  36. package/es/components/col/index.d.ts +3 -3
  37. package/es/components/collapse-transition/index.d.ts +20 -5
  38. package/es/components/collapse-transition/src/collapse-transition.vue.d.ts +2 -4
  39. package/es/components/collection/collection-item.vue.d.ts +2 -4
  40. package/es/components/collection/collection.vue.d.ts +2 -4
  41. package/es/components/color-picker/components/hue-slider.vue.d.ts +6 -6
  42. package/es/components/color-picker/components/predefine.vue.d.ts +6 -6
  43. package/es/components/color-picker/components/sv-panel.vue.d.ts +6 -6
  44. package/es/components/color-picker/composables/use-alpha-slider.d.ts +1 -1
  45. package/es/components/config-provider/config-provider.vue.d.ts +2 -4
  46. package/es/components/config-provider/hooks/use-global-config.d.ts +6 -6
  47. package/es/components/config-provider/hooks/use-global-config.js +4 -4
  48. package/es/components/config-provider/index.d.ts +11 -11
  49. package/es/components/container/aside.vue.d.ts +2 -4
  50. package/es/components/container/container.vue.d.ts +2 -4
  51. package/es/components/container/footer.vue.d.ts +2 -4
  52. package/es/components/container/header.vue.d.ts +2 -4
  53. package/es/components/container/index.d.ts +27 -27
  54. package/es/components/container/main.vue.d.ts +2 -4
  55. package/es/components/date-picker/composables/use-range-picker.d.ts +22 -22
  56. package/es/components/date-picker/date-picker-com/basic-date-table.vue.d.ts +10 -10
  57. package/es/components/date-picker/date-picker-com/basic-month-table.vue.d.ts +10 -10
  58. package/es/components/date-picker/date-picker-com/basic-year-table.vue.d.ts +2 -2
  59. package/es/components/date-picker/date-picker-com/panel-date-pick.vue.d.ts +14 -16
  60. package/es/components/date-picker/date-picker-com/panel-date-range.vue.d.ts +8 -10
  61. package/es/components/date-picker/date-picker-com/panel-month-range.vue.d.ts +6 -8
  62. package/es/components/date-picker/date-picker.d.ts +59 -59
  63. package/es/components/date-picker/index.d.ts +118 -118
  64. package/es/components/date-picker/panel-utils.d.ts +29 -29
  65. package/es/components/descriptions/description-item.vue.d.ts +2 -4
  66. package/es/components/descriptions/description.vue.d.ts +2 -4
  67. package/es/components/descriptions/index.d.ts +9 -9
  68. package/es/components/dialog/dialog-content.vue.d.ts +6 -8
  69. package/es/components/dialog/dialog.vue.d.ts +11 -13
  70. package/es/components/dialog/index.d.ts +7 -7
  71. package/es/components/divider/divider.vue.d.ts +2 -4
  72. package/es/components/divider/index.d.ts +3 -3
  73. package/es/components/drawer/drawer.vue.d.ts +11 -13
  74. package/es/components/drawer/index.d.ts +7 -7
  75. package/es/components/dropdown/dropdown-item-impl.vue.d.ts +6 -6
  76. package/es/components/dropdown/dropdown.vue.d.ts +7 -9
  77. package/es/components/dropdown/index.d.ts +24 -24
  78. package/es/components/empty/empty.vue.d.ts +2 -4
  79. package/es/components/empty/index.d.ts +3 -3
  80. package/es/components/focus-trap/focus-trap.vue.d.ts +2 -2
  81. package/es/components/focus-trap/utils.d.ts +1 -1
  82. package/es/components/footer-layout/footer-layout.vue.d.ts +2 -4
  83. package/es/components/footer-layout/index.d.ts +3 -3
  84. package/es/components/form/form-item.vue.d.ts +11 -13
  85. package/es/components/form/form.vue.d.ts +8 -10
  86. package/es/components/form/hooks/use-form-common-props.d.ts +2 -2
  87. package/es/components/form/hooks/use-form-item.d.ts +3 -3
  88. package/es/components/form/index.d.ts +27 -27
  89. package/es/components/full-screen/index.d.ts +4 -4
  90. package/es/components/header-layout/header-layout.vue.d.ts +2 -4
  91. package/es/components/header-layout/index.d.ts +7 -7
  92. package/es/components/horizontal-menu/index.d.ts +14 -14
  93. package/es/components/icon-text/index.d.ts +4 -4
  94. package/es/components/iframe-layout/index.d.ts +2 -2
  95. package/es/components/image/image.vue.d.ts +6 -8
  96. package/es/components/image/index.d.ts +3 -3
  97. package/es/components/image-viewer/image-viewer.vue.d.ts +4 -6
  98. package/es/components/image-viewer/index.d.ts +3 -3
  99. package/es/components/infinite-scroll/index.d.ts +14 -4
  100. package/es/components/input/index.d.ts +29 -29
  101. package/es/components/input/input.vue.d.ts +9 -11
  102. package/es/components/input/input.vue2.js +4 -4
  103. package/es/components/link/index.d.ts +11 -11
  104. package/es/components/link/link.vue.d.ts +4 -6
  105. package/es/components/loading/index.d.ts +4 -1
  106. package/es/components/md-code-demo/index.d.ts +5 -3
  107. package/es/components/md-code-demo/md-code-demo.d.ts +2 -2
  108. package/es/components/md-code-tabs/index.d.ts +5 -3
  109. package/es/components/md-container/index.d.ts +3 -3
  110. package/es/components/md-container/md-container.vue.d.ts +2 -4
  111. package/es/components/md-container/md-container.vue2.js +35 -35
  112. package/es/components/md-tabs/index.d.ts +3 -1
  113. package/es/components/menu/index.d.ts +49 -49
  114. package/es/components/menu/menu-item-group.vue.d.ts +2 -4
  115. package/es/components/menu/menu-item.vue.d.ts +5 -7
  116. package/es/components/menu/menu.vue.d.ts +5 -5
  117. package/es/components/menu/types.d.ts +1 -0
  118. package/es/components/message/message.vue.d.ts +4 -6
  119. package/es/components/modal/index.d.ts +38 -38
  120. package/es/components/modal/modal-footer-action.vue.d.ts +2 -4
  121. package/es/components/modal/modal.vue.d.ts +5 -7
  122. package/es/components/page-wrapper/index.d.ts +3 -3
  123. package/es/components/page-wrapper/page-wrapper.vue.d.ts +2 -4
  124. package/es/components/pagination/index.d.ts +4 -4
  125. package/es/components/popconfirm/index.d.ts +21 -21
  126. package/es/components/popconfirm/popconfirm.vue.d.ts +4 -6
  127. package/es/components/popover/directive.d.ts +1 -1
  128. package/es/components/popover/index.d.ts +7 -7
  129. package/es/components/popover/popover.vue.d.ts +5 -7
  130. package/es/components/popper/composables/use-content-dom.d.ts +1 -1
  131. package/es/components/popper/composables/use-content.d.ts +10 -10
  132. package/es/components/popper/content.vue.d.ts +4 -6
  133. package/es/components/popper/index.d.ts +3 -3
  134. package/es/components/popper/popper.vue.d.ts +4 -6
  135. package/es/components/popper/trigger.vue.d.ts +4 -6
  136. package/es/components/progress/index.d.ts +3 -3
  137. package/es/components/progress/progress.vue.d.ts +2 -4
  138. package/es/components/qrcode/index.d.ts +7 -3
  139. package/es/components/radio/index.d.ts +15 -15
  140. package/es/components/radio/radio-button.vue.d.ts +4 -6
  141. package/es/components/radio/radio-group.vue.d.ts +4 -6
  142. package/es/components/radio/radio.vue.d.ts +4 -6
  143. package/es/components/result/index.d.ts +2 -2
  144. package/es/components/row/index.d.ts +3 -3
  145. package/es/components/row/row.vue.d.ts +2 -4
  146. package/es/components/scrollbar/index.d.ts +6 -6
  147. package/es/components/scrollbar/scrollbar.vue.d.ts +4 -6
  148. package/es/components/scrollbar/util.d.ts +1 -1
  149. package/es/components/search/index.d.ts +19 -19
  150. package/es/components/search/search.vue.d.ts +8 -10
  151. package/es/components/select/defaults.d.ts +4 -5
  152. package/es/components/select/group-item.vue.d.ts +6 -6
  153. package/es/components/select/index.d.ts +992 -58
  154. package/es/components/select/option-item.vue.d.ts +6 -6
  155. package/es/components/select/select.vue.d.ts +52 -52
  156. package/es/components/select/useSelect.d.ts +44 -44
  157. package/es/components/side-menu/index.d.ts +7 -7
  158. package/es/components/side-menu/side-menu.vue.d.ts +3 -3
  159. package/es/components/skeleton/index.d.ts +3 -3
  160. package/es/components/skeleton/skeleton.vue.d.ts +5 -7
  161. package/es/components/slider/composables/use-slide.d.ts +1 -1
  162. package/es/components/slider/composables/use-slider-button.d.ts +1 -1
  163. package/es/components/slider/composables/use-watch.d.ts +1 -1
  164. package/es/components/slider/index.d.ts +4 -4
  165. package/es/components/slider/slider.vue.d.ts +6 -6
  166. package/es/components/space/index.d.ts +4 -10
  167. package/es/components/space/space.d.ts +5 -13
  168. package/es/components/space/use-space.d.ts +1 -1
  169. package/es/components/steps/index.d.ts +26 -26
  170. package/es/components/steps/item.vue.d.ts +2 -4
  171. package/es/components/steps/steps.vue.d.ts +7 -9
  172. package/es/components/super-form/index.d.ts +31 -313
  173. package/es/components/super-form/super-form-action.vue.d.ts +2 -4
  174. package/es/components/super-form/super-form.vue.d.ts +8 -20
  175. package/es/components/switch/index.d.ts +8 -8
  176. package/es/components/switch/switch.vue.d.ts +4 -4
  177. package/es/components/table/field.d.ts +1 -1
  178. package/es/components/table/index.d.ts +50 -50
  179. package/es/components/table/table.vue.d.ts +13 -15
  180. package/es/components/table/use/use-data-source.d.ts +2 -2
  181. package/es/components/tabs/index.d.ts +26 -18
  182. package/es/components/tabs/tab-pane.vue.d.ts +2 -4
  183. package/es/components/tabs/tabs.vue.d.ts +12 -4
  184. package/es/components/time-picker/common/picker.vue.d.ts +21 -23
  185. package/es/components/time-picker/composables/use-time-picker.d.ts +20 -20
  186. package/es/components/time-picker/index.d.ts +110 -110
  187. package/es/components/time-picker/time-picker-com/basic-time-spinner.vue.d.ts +6 -6
  188. package/es/components/time-picker/time-picker-com/panel-time-pick.vue.d.ts +5 -5
  189. package/es/components/time-picker/time-picker-com/panel-time-range.vue.d.ts +5 -5
  190. package/es/components/time-picker/time-picker.d.ts +55 -55
  191. package/es/components/time-select/time-select.vue.d.ts +20 -20
  192. package/es/components/timeline/index.d.ts +14 -14
  193. package/es/components/timeline/timeline-item.vue.d.ts +2 -4
  194. package/es/components/tooltip/content.vue.d.ts +4 -6
  195. package/es/components/tooltip/index.d.ts +16 -16
  196. package/es/components/tooltip/tooltip.vue.d.ts +8 -10
  197. package/es/components/tooltip/trigger.vue.d.ts +4 -6
  198. package/es/components/tooltip/utils.d.ts +2 -2
  199. package/es/components/tree/index.d.ts +599 -54
  200. package/es/components/tree/model/util.d.ts +1 -1
  201. package/es/components/tree/tree-node.vue.d.ts +6 -6
  202. package/es/components/tree/tree.vue.d.ts +19 -21
  203. package/es/components/upload/index.d.ts +10 -10
  204. package/es/components/upload/upload-content.vue.d.ts +5 -7
  205. package/es/components/upload/upload-dragger.vue.d.ts +4 -6
  206. package/es/components/upload/upload-list.vue.d.ts +8 -10
  207. package/es/components/upload/upload.vue.d.ts +10 -12
  208. package/es/components/upload/use-handlers.d.ts +2 -3
  209. package/es/components/virtual-list/builders/build-list.d.ts +44 -44
  210. package/es/components/virtual-list/components/dynamic-size-list.d.ts +6 -6
  211. package/es/components/virtual-list/components/fixed-size-grid.d.ts +13 -13
  212. package/es/components/virtual-list/components/fixed-size-list.d.ts +9 -9
  213. package/es/components/virtual-list/utils.d.ts +2 -2
  214. package/es/defaults.d.ts +1 -1
  215. package/es/hooks/use-popper/index.d.ts +10 -10
  216. package/es/hooks/use-popper-container/index.d.ts +4 -1
  217. package/es/hooks/use-popper-container/index.js +16 -15
  218. package/es/hooks/use-same-target/index.d.ts +1 -1
  219. package/es/index.d.ts +1 -1
  220. package/es/package.json.d.ts +1 -1
  221. package/es/package.json.js +1 -1
  222. package/es/utils/event.d.ts +1 -1
  223. package/es/utils/helper.d.ts +1 -1
  224. package/es/utils/ns-cover.d.ts +2 -2
  225. package/es/utils/ns-cover.js +21 -17
  226. package/es/utils/typescript.d.ts +1 -1
  227. package/es/utils/vue/install.d.ts +1 -1
  228. package/es/utils/vue/props/runtime.d.ts +4 -4
  229. package/es/utils/vue/vnode.d.ts +1 -1
  230. package/lib/components/affix/affix.vue.d.ts +4 -6
  231. package/lib/components/affix/index.d.ts +3 -3
  232. package/lib/components/alert/alert.vue.d.ts +5 -7
  233. package/lib/components/alert/index.d.ts +3 -3
  234. package/lib/components/autocomplete/autocomplete.vue.d.ts +42 -44
  235. package/lib/components/autocomplete/index.d.ts +108 -108
  236. package/lib/components/avatar/avatar.vue.d.ts +4 -6
  237. package/lib/components/avatar/index.d.ts +7 -7
  238. package/lib/components/backtop/backtop.vue.d.ts +4 -6
  239. package/lib/components/backtop/index.d.ts +7 -7
  240. package/lib/components/button/button-group.vue.d.ts +2 -4
  241. package/lib/components/button/button.vue.d.ts +6 -8
  242. package/lib/components/button/index.d.ts +20 -20
  243. package/lib/components/card/card.vue.d.ts +2 -4
  244. package/lib/components/card/index.d.ts +3 -3
  245. package/lib/components/carousel/carousel-item.vue.d.ts +2 -4
  246. package/lib/components/carousel/carousel.vue.d.ts +9 -11
  247. package/lib/components/carousel/index.d.ts +24 -24
  248. package/lib/components/carousel/use-carousel.d.ts +1 -1
  249. package/lib/components/check-tag/check-tag.vue.d.ts +4 -6
  250. package/lib/components/check-tag/index.d.ts +3 -3
  251. package/lib/components/checkbox/checkbox-button.vue.d.ts +4 -6
  252. package/lib/components/checkbox/checkbox-group.vue.d.ts +4 -6
  253. package/lib/components/checkbox/checkbox.vue.d.ts +4 -6
  254. package/lib/components/checkbox/composables/use-checkbox-disabled.d.ts +1 -1
  255. package/lib/components/checkbox/composables/use-checkbox-event.d.ts +1 -1
  256. package/lib/components/checkbox/composables/use-checkbox-model.d.ts +1 -1
  257. package/lib/components/checkbox/composables/use-checkbox-status.d.ts +1 -1
  258. package/lib/components/checkbox/composables/use-checkbox.d.ts +2 -2
  259. package/lib/components/checkbox/index.d.ts +15 -15
  260. package/lib/components/clamp/clamp.vue.d.ts +10 -12
  261. package/lib/components/clamp/index.d.ts +3 -3
  262. package/lib/components/clamp-tooltip/index.d.ts +2 -2
  263. package/lib/components/col/col.vue.d.ts +4 -6
  264. package/lib/components/col/index.d.ts +3 -3
  265. package/lib/components/collapse-transition/index.d.ts +20 -5
  266. package/lib/components/collapse-transition/src/collapse-transition.vue.d.ts +2 -4
  267. package/lib/components/collection/collection-item.vue.d.ts +2 -4
  268. package/lib/components/collection/collection.vue.d.ts +2 -4
  269. package/lib/components/color-picker/components/hue-slider.vue.d.ts +6 -6
  270. package/lib/components/color-picker/components/predefine.vue.d.ts +6 -6
  271. package/lib/components/color-picker/components/sv-panel.vue.d.ts +6 -6
  272. package/lib/components/color-picker/composables/use-alpha-slider.d.ts +1 -1
  273. package/lib/components/config-provider/config-provider.vue.d.ts +2 -4
  274. package/lib/components/config-provider/hooks/use-global-config.cjs +1 -1
  275. package/lib/components/config-provider/hooks/use-global-config.d.ts +6 -6
  276. package/lib/components/config-provider/index.d.ts +11 -11
  277. package/lib/components/container/aside.vue.d.ts +2 -4
  278. package/lib/components/container/container.vue.d.ts +2 -4
  279. package/lib/components/container/footer.vue.d.ts +2 -4
  280. package/lib/components/container/header.vue.d.ts +2 -4
  281. package/lib/components/container/index.d.ts +27 -27
  282. package/lib/components/container/main.vue.d.ts +2 -4
  283. package/lib/components/date-picker/composables/use-range-picker.d.ts +22 -22
  284. package/lib/components/date-picker/date-picker-com/basic-date-table.vue.d.ts +10 -10
  285. package/lib/components/date-picker/date-picker-com/basic-month-table.vue.d.ts +10 -10
  286. package/lib/components/date-picker/date-picker-com/basic-year-table.vue.d.ts +2 -2
  287. package/lib/components/date-picker/date-picker-com/panel-date-pick.vue.d.ts +14 -16
  288. package/lib/components/date-picker/date-picker-com/panel-date-range.vue.d.ts +8 -10
  289. package/lib/components/date-picker/date-picker-com/panel-month-range.vue.d.ts +6 -8
  290. package/lib/components/date-picker/date-picker.d.ts +59 -59
  291. package/lib/components/date-picker/index.d.ts +118 -118
  292. package/lib/components/date-picker/panel-utils.d.ts +29 -29
  293. package/lib/components/descriptions/description-item.vue.d.ts +2 -4
  294. package/lib/components/descriptions/description.vue.d.ts +2 -4
  295. package/lib/components/descriptions/index.d.ts +9 -9
  296. package/lib/components/dialog/dialog-content.vue.d.ts +6 -8
  297. package/lib/components/dialog/dialog.vue.d.ts +11 -13
  298. package/lib/components/dialog/index.d.ts +7 -7
  299. package/lib/components/divider/divider.vue.d.ts +2 -4
  300. package/lib/components/divider/index.d.ts +3 -3
  301. package/lib/components/drawer/drawer.vue.d.ts +11 -13
  302. package/lib/components/drawer/index.d.ts +7 -7
  303. package/lib/components/dropdown/dropdown-item-impl.vue.d.ts +6 -6
  304. package/lib/components/dropdown/dropdown.vue.d.ts +7 -9
  305. package/lib/components/dropdown/index.d.ts +24 -24
  306. package/lib/components/empty/empty.vue.d.ts +2 -4
  307. package/lib/components/empty/index.d.ts +3 -3
  308. package/lib/components/focus-trap/focus-trap.vue.d.ts +2 -2
  309. package/lib/components/focus-trap/utils.d.ts +1 -1
  310. package/lib/components/footer-layout/footer-layout.vue.d.ts +2 -4
  311. package/lib/components/footer-layout/index.d.ts +3 -3
  312. package/lib/components/form/form-item.vue.d.ts +11 -13
  313. package/lib/components/form/form.vue.d.ts +8 -10
  314. package/lib/components/form/hooks/use-form-common-props.d.ts +2 -2
  315. package/lib/components/form/hooks/use-form-item.d.ts +3 -3
  316. package/lib/components/form/index.d.ts +27 -27
  317. package/lib/components/full-screen/index.d.ts +4 -4
  318. package/lib/components/header-layout/header-layout.vue.d.ts +2 -4
  319. package/lib/components/header-layout/index.d.ts +7 -7
  320. package/lib/components/horizontal-menu/index.d.ts +14 -14
  321. package/lib/components/icon-text/index.d.ts +4 -4
  322. package/lib/components/iframe-layout/index.d.ts +2 -2
  323. package/lib/components/image/image.vue.d.ts +6 -8
  324. package/lib/components/image/index.d.ts +3 -3
  325. package/lib/components/image-viewer/image-viewer.vue.d.ts +4 -6
  326. package/lib/components/image-viewer/index.d.ts +3 -3
  327. package/lib/components/infinite-scroll/index.d.ts +14 -4
  328. package/lib/components/input/index.d.ts +29 -29
  329. package/lib/components/input/input.vue.d.ts +9 -11
  330. package/lib/components/input/input.vue2.cjs +1 -1
  331. package/lib/components/link/index.d.ts +11 -11
  332. package/lib/components/link/link.vue.d.ts +4 -6
  333. package/lib/components/loading/index.d.ts +4 -1
  334. package/lib/components/md-code-demo/index.d.ts +5 -3
  335. package/lib/components/md-code-demo/md-code-demo.d.ts +2 -2
  336. package/lib/components/md-code-tabs/index.d.ts +5 -3
  337. package/lib/components/md-container/index.d.ts +3 -3
  338. package/lib/components/md-container/md-container.vue.d.ts +2 -4
  339. package/lib/components/md-container/md-container.vue2.cjs +1 -1
  340. package/lib/components/md-tabs/index.d.ts +3 -1
  341. package/lib/components/menu/index.d.ts +49 -49
  342. package/lib/components/menu/menu-item-group.vue.d.ts +2 -4
  343. package/lib/components/menu/menu-item.vue.d.ts +5 -7
  344. package/lib/components/menu/menu.vue.d.ts +5 -5
  345. package/lib/components/menu/types.d.ts +1 -0
  346. package/lib/components/message/message.vue.d.ts +4 -6
  347. package/lib/components/modal/index.d.ts +38 -38
  348. package/lib/components/modal/modal-footer-action.vue.d.ts +2 -4
  349. package/lib/components/modal/modal.vue.d.ts +5 -7
  350. package/lib/components/page-wrapper/index.d.ts +3 -3
  351. package/lib/components/page-wrapper/page-wrapper.vue.d.ts +2 -4
  352. package/lib/components/pagination/index.d.ts +4 -4
  353. package/lib/components/popconfirm/index.d.ts +21 -21
  354. package/lib/components/popconfirm/popconfirm.vue.d.ts +4 -6
  355. package/lib/components/popover/directive.d.ts +1 -1
  356. package/lib/components/popover/index.d.ts +7 -7
  357. package/lib/components/popover/popover.vue.d.ts +5 -7
  358. package/lib/components/popper/composables/use-content-dom.d.ts +1 -1
  359. package/lib/components/popper/composables/use-content.d.ts +10 -10
  360. package/lib/components/popper/content.vue.d.ts +4 -6
  361. package/lib/components/popper/index.d.ts +3 -3
  362. package/lib/components/popper/popper.vue.d.ts +4 -6
  363. package/lib/components/popper/trigger.vue.d.ts +4 -6
  364. package/lib/components/progress/index.d.ts +3 -3
  365. package/lib/components/progress/progress.vue.d.ts +2 -4
  366. package/lib/components/qrcode/index.d.ts +7 -3
  367. package/lib/components/radio/index.d.ts +15 -15
  368. package/lib/components/radio/radio-button.vue.d.ts +4 -6
  369. package/lib/components/radio/radio-group.vue.d.ts +4 -6
  370. package/lib/components/radio/radio.vue.d.ts +4 -6
  371. package/lib/components/result/index.d.ts +2 -2
  372. package/lib/components/row/index.d.ts +3 -3
  373. package/lib/components/row/row.vue.d.ts +2 -4
  374. package/lib/components/scrollbar/index.d.ts +6 -6
  375. package/lib/components/scrollbar/scrollbar.vue.d.ts +4 -6
  376. package/lib/components/scrollbar/util.d.ts +1 -1
  377. package/lib/components/search/index.d.ts +19 -19
  378. package/lib/components/search/search.vue.d.ts +8 -10
  379. package/lib/components/select/defaults.d.ts +4 -5
  380. package/lib/components/select/group-item.vue.d.ts +6 -6
  381. package/lib/components/select/index.d.ts +992 -58
  382. package/lib/components/select/option-item.vue.d.ts +6 -6
  383. package/lib/components/select/select.vue.d.ts +52 -52
  384. package/lib/components/select/useSelect.d.ts +44 -44
  385. package/lib/components/side-menu/index.d.ts +7 -7
  386. package/lib/components/side-menu/side-menu.vue.d.ts +3 -3
  387. package/lib/components/skeleton/index.d.ts +3 -3
  388. package/lib/components/skeleton/skeleton.vue.d.ts +5 -7
  389. package/lib/components/slider/composables/use-slide.d.ts +1 -1
  390. package/lib/components/slider/composables/use-slider-button.d.ts +1 -1
  391. package/lib/components/slider/composables/use-watch.d.ts +1 -1
  392. package/lib/components/slider/index.d.ts +4 -4
  393. package/lib/components/slider/slider.vue.d.ts +6 -6
  394. package/lib/components/space/index.d.ts +4 -10
  395. package/lib/components/space/space.d.ts +5 -13
  396. package/lib/components/space/use-space.d.ts +1 -1
  397. package/lib/components/steps/index.d.ts +26 -26
  398. package/lib/components/steps/item.vue.d.ts +2 -4
  399. package/lib/components/steps/steps.vue.d.ts +7 -9
  400. package/lib/components/super-form/index.d.ts +31 -313
  401. package/lib/components/super-form/super-form-action.vue.d.ts +2 -4
  402. package/lib/components/super-form/super-form.vue.d.ts +8 -20
  403. package/lib/components/switch/index.d.ts +8 -8
  404. package/lib/components/switch/switch.vue.d.ts +4 -4
  405. package/lib/components/table/field.d.ts +1 -1
  406. package/lib/components/table/index.d.ts +50 -50
  407. package/lib/components/table/table.vue.d.ts +13 -15
  408. package/lib/components/table/use/use-data-source.d.ts +2 -2
  409. package/lib/components/tabs/index.d.ts +26 -18
  410. package/lib/components/tabs/tab-pane.vue.d.ts +2 -4
  411. package/lib/components/tabs/tabs.vue.d.ts +12 -4
  412. package/lib/components/time-picker/common/picker.vue.d.ts +21 -23
  413. package/lib/components/time-picker/composables/use-time-picker.d.ts +20 -20
  414. package/lib/components/time-picker/index.d.ts +110 -110
  415. package/lib/components/time-picker/time-picker-com/basic-time-spinner.vue.d.ts +6 -6
  416. package/lib/components/time-picker/time-picker-com/panel-time-pick.vue.d.ts +5 -5
  417. package/lib/components/time-picker/time-picker-com/panel-time-range.vue.d.ts +5 -5
  418. package/lib/components/time-picker/time-picker.d.ts +55 -55
  419. package/lib/components/time-select/time-select.vue.d.ts +20 -20
  420. package/lib/components/timeline/index.d.ts +14 -14
  421. package/lib/components/timeline/timeline-item.vue.d.ts +2 -4
  422. package/lib/components/tooltip/content.vue.d.ts +4 -6
  423. package/lib/components/tooltip/index.d.ts +16 -16
  424. package/lib/components/tooltip/tooltip.vue.d.ts +8 -10
  425. package/lib/components/tooltip/trigger.vue.d.ts +4 -6
  426. package/lib/components/tooltip/utils.d.ts +2 -2
  427. package/lib/components/tree/index.d.ts +599 -54
  428. package/lib/components/tree/model/util.d.ts +1 -1
  429. package/lib/components/tree/tree-node.vue.d.ts +6 -6
  430. package/lib/components/tree/tree.vue.d.ts +19 -21
  431. package/lib/components/upload/index.d.ts +10 -10
  432. package/lib/components/upload/upload-content.vue.d.ts +5 -7
  433. package/lib/components/upload/upload-dragger.vue.d.ts +4 -6
  434. package/lib/components/upload/upload-list.vue.d.ts +8 -10
  435. package/lib/components/upload/upload.vue.d.ts +10 -12
  436. package/lib/components/upload/use-handlers.d.ts +2 -3
  437. package/lib/components/virtual-list/builders/build-list.d.ts +44 -44
  438. package/lib/components/virtual-list/components/dynamic-size-list.d.ts +6 -6
  439. package/lib/components/virtual-list/components/fixed-size-grid.d.ts +13 -13
  440. package/lib/components/virtual-list/components/fixed-size-list.d.ts +9 -9
  441. package/lib/components/virtual-list/utils.d.ts +2 -2
  442. package/lib/defaults.d.ts +1 -1
  443. package/lib/hooks/use-popper/index.d.ts +10 -10
  444. package/lib/hooks/use-popper-container/index.cjs +1 -1
  445. package/lib/hooks/use-popper-container/index.d.ts +4 -1
  446. package/lib/hooks/use-same-target/index.d.ts +1 -1
  447. package/lib/index.d.ts +1 -1
  448. package/lib/package.json.cjs +1 -1
  449. package/lib/package.json.d.ts +1 -1
  450. package/lib/utils/event.d.ts +1 -1
  451. package/lib/utils/helper.d.ts +1 -1
  452. package/lib/utils/ns-cover.cjs +1 -1
  453. package/lib/utils/ns-cover.d.ts +2 -2
  454. package/lib/utils/typescript.d.ts +1 -1
  455. package/lib/utils/vue/install.d.ts +1 -1
  456. package/lib/utils/vue/props/runtime.d.ts +4 -4
  457. package/lib/utils/vue/vnode.d.ts +1 -1
  458. package/package.json +5 -5
  459. package/tags.json +1 -1
  460. package/web-types.json +1 -1
  461. package/es/components/context-menu/types.d.ts +0 -23
  462. package/lib/components/context-menu/types.d.ts +0 -23
@@ -1,16 +1,16 @@
1
1
  export declare const VftHorizontalMenu: import("vft/es/utils").SFCWithInstall<import("vue").DefineComponent<{
2
2
  menus: {
3
- type: import("vue").PropType<(Pick<import("vue-router").RouteLocationNormalized, "meta" | "path"> & {
4
- children?: import("vft/es/vft").MenuType[];
3
+ type: import("vue").PropType<(Pick<import("vue-router").RouteLocationNormalizedGeneric, "meta" | "path"> & {
4
+ children?: import("..").MenuType[] | undefined;
5
5
  title: string;
6
- icon?: string;
6
+ icon?: string | undefined;
7
7
  } & Record<string, any> & {
8
- type?: import("./constants").MenuTypeEnum;
8
+ type?: import("./constants").MenuTypeEnum | undefined;
9
9
  })[]>;
10
10
  required: true;
11
11
  };
12
12
  attrMapping: {
13
- type: import("vue").PropType<import("vft/es/vft").MenuAttrMapping>;
13
+ type: import("vue").PropType<import("..").MenuAttrMapping>;
14
14
  };
15
15
  openDisabled: {
16
16
  type: import("vue").PropType<boolean>;
@@ -19,7 +19,7 @@ export declare const VftHorizontalMenu: import("vft/es/utils").SFCWithInstall<im
19
19
  type: import("vue").PropType<boolean>;
20
20
  };
21
21
  subMenuCfg: {
22
- type: import("vue").PropType<Partial<import("vft/es/vft").SubMenuProps>>;
22
+ type: import("vue").PropType<Partial<import("..").SubMenuProps>>;
23
23
  };
24
24
  useRouterJump: {
25
25
  type: import("vue").PropType<boolean>;
@@ -34,7 +34,7 @@ export declare const VftHorizontalMenu: import("vft/es/utils").SFCWithInstall<im
34
34
  type: import("vue").PropType<(string | number)[]>;
35
35
  };
36
36
  menuOptions: {
37
- type: import("vue").PropType<Partial<import("vft/es/vft").MenuProps>>;
37
+ type: import("vue").PropType<Partial<import("..").MenuProps>>;
38
38
  };
39
39
  }, {
40
40
  isInSubMenu: import("vue").ComputedRef<any>;
@@ -48,17 +48,17 @@ export declare const VftHorizontalMenu: import("vft/es/utils").SFCWithInstall<im
48
48
  "sub-menu-click": (val: any) => void;
49
49
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
50
50
  menus: {
51
- type: import("vue").PropType<(Pick<import("vue-router").RouteLocationNormalized, "meta" | "path"> & {
52
- children?: import("vft/es/vft").MenuType[];
51
+ type: import("vue").PropType<(Pick<import("vue-router").RouteLocationNormalizedGeneric, "meta" | "path"> & {
52
+ children?: import("..").MenuType[] | undefined;
53
53
  title: string;
54
- icon?: string;
54
+ icon?: string | undefined;
55
55
  } & Record<string, any> & {
56
- type?: import("./constants").MenuTypeEnum;
56
+ type?: import("./constants").MenuTypeEnum | undefined;
57
57
  })[]>;
58
58
  required: true;
59
59
  };
60
60
  attrMapping: {
61
- type: import("vue").PropType<import("vft/es/vft").MenuAttrMapping>;
61
+ type: import("vue").PropType<import("..").MenuAttrMapping>;
62
62
  };
63
63
  openDisabled: {
64
64
  type: import("vue").PropType<boolean>;
@@ -67,7 +67,7 @@ export declare const VftHorizontalMenu: import("vft/es/utils").SFCWithInstall<im
67
67
  type: import("vue").PropType<boolean>;
68
68
  };
69
69
  subMenuCfg: {
70
- type: import("vue").PropType<Partial<import("vft/es/vft").SubMenuProps>>;
70
+ type: import("vue").PropType<Partial<import("..").SubMenuProps>>;
71
71
  };
72
72
  useRouterJump: {
73
73
  type: import("vue").PropType<boolean>;
@@ -82,7 +82,7 @@ export declare const VftHorizontalMenu: import("vft/es/utils").SFCWithInstall<im
82
82
  type: import("vue").PropType<(string | number)[]>;
83
83
  };
84
84
  menuOptions: {
85
- type: import("vue").PropType<Partial<import("vft/es/vft").MenuProps>>;
85
+ type: import("vue").PropType<Partial<import("..").MenuProps>>;
86
86
  };
87
87
  }>> & {
88
88
  onSelect?: ((val: {
@@ -4,7 +4,7 @@ export declare const VftIconText: import("vft/es/utils").SFCWithInstall<import("
4
4
  required: true;
5
5
  };
6
6
  icon: {
7
- type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
7
+ type: import("vue").PropType<string | import("..").IconProps>;
8
8
  };
9
9
  color: {
10
10
  type: import("vue").PropType<string>;
@@ -37,7 +37,7 @@ export declare const VftIconText: import("vft/es/utils").SFCWithInstall<import("
37
37
  type: import("vue").PropType<boolean>;
38
38
  };
39
39
  clampTooltipCfg: {
40
- type: import("vue").PropType<import("vft/es/vft").ClampTooltipProps>;
40
+ type: import("vue").PropType<import("..").ClampTooltipProps>;
41
41
  };
42
42
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
43
43
  text: {
@@ -45,7 +45,7 @@ export declare const VftIconText: import("vft/es/utils").SFCWithInstall<import("
45
45
  required: true;
46
46
  };
47
47
  icon: {
48
- type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
48
+ type: import("vue").PropType<string | import("..").IconProps>;
49
49
  };
50
50
  color: {
51
51
  type: import("vue").PropType<string>;
@@ -78,7 +78,7 @@ export declare const VftIconText: import("vft/es/utils").SFCWithInstall<import("
78
78
  type: import("vue").PropType<boolean>;
79
79
  };
80
80
  clampTooltipCfg: {
81
- type: import("vue").PropType<import("vft/es/vft").ClampTooltipProps>;
81
+ type: import("vue").PropType<import("..").ClampTooltipProps>;
82
82
  };
83
83
  }>>, {}, {}>> & Record<string, any>;
84
84
  export default VftIconText;
@@ -1,11 +1,11 @@
1
1
  export declare const VftIframeLayout: import("vft/es/utils").SFCWithInstall<import("vue").DefineComponent<{
2
2
  iframePages: {
3
- type: import("vue").PropType<import("vue-router").RouteLocationNormalized[]>;
3
+ type: import("vue").PropType<import("vue-router").RouteLocationNormalizedGeneric[]>;
4
4
  required: true;
5
5
  };
6
6
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
7
7
  iframePages: {
8
- type: import("vue").PropType<import("vue-router").RouteLocationNormalized[]>;
8
+ type: import("vue").PropType<import("vue-router").RouteLocationNormalizedGeneric[]>;
9
9
  required: true;
10
10
  };
11
11
  }>>, {}, {}>> & Record<string, any>;
@@ -13,12 +13,7 @@ export interface ImageProps {
13
13
  infinite?: boolean;
14
14
  closeOnPressEscape?: boolean;
15
15
  }
16
- declare function __VLS_template(): {
17
- placeholder?(_: {}): any;
18
- error?(_: {}): any;
19
- viewer?(_: {}): any;
20
- };
21
- declare const __VLS_component: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<ImageProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
16
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<ImageProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
22
17
  switch: (...args: any[]) => void;
23
18
  close: (...args: any[]) => void;
24
19
  error: (...args: any[]) => void;
@@ -30,8 +25,11 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_TypePropsToRu
30
25
  onLoad?: ((...args: any[]) => any) | undefined;
31
26
  onShow?: ((...args: any[]) => any) | undefined;
32
27
  onSwitch?: ((...args: any[]) => any) | undefined;
33
- }, {}, {}>;
34
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
28
+ }, {}, {}>, {
29
+ placeholder?(_: {}): any;
30
+ error?(_: {}): any;
31
+ viewer?(_: {}): any;
32
+ }>;
35
33
  export default _default;
36
34
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
37
35
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -142,9 +142,9 @@ export declare const VftImage: import("vft/es/utils").SFCWithInstall<{
142
142
  onShow?: ((...args: any[]) => any) | undefined;
143
143
  onSwitch?: ((...args: any[]) => any) | undefined;
144
144
  }, {}, {}, {}, {}, {}>;
145
- __isFragment?: never;
146
- __isTeleport?: never;
147
- __isSuspense?: never;
145
+ __isFragment?: undefined;
146
+ __isTeleport?: undefined;
147
+ __isSuspense?: undefined;
148
148
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
149
149
  hideOnClickModal: {
150
150
  type: import("vue").PropType<boolean>;
@@ -9,10 +9,7 @@ export interface ImageViewerProps {
9
9
  zoomRate?: number;
10
10
  }
11
11
  declare function setActiveItem(index: number): void;
12
- declare function __VLS_template(): {
13
- default?(_: {}): any;
14
- };
15
- declare const __VLS_component: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<ImageViewerProps>, {
12
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<ImageViewerProps>, {
16
13
  /** @description manually switch image */
17
14
  setActiveItem: typeof setActiveItem;
18
15
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -21,8 +18,9 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_TypePropsToRu
21
18
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<ImageViewerProps>>> & {
22
19
  onClose?: (() => any) | undefined;
23
20
  onSwitch?: ((index: number) => any) | undefined;
24
- }, {}, {}>;
25
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
21
+ }, {}, {}>, {
22
+ default?(_: {}): any;
23
+ }>;
26
24
  export default _default;
27
25
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
28
26
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -98,9 +98,9 @@ export declare const VftImageViewer: import("vft/es/utils").SFCWithInstall<{
98
98
  }, {
99
99
  setActiveItem: (index: number) => void;
100
100
  }, {}, {}, {}, {}>;
101
- __isFragment?: never;
102
- __isTeleport?: never;
103
- __isSuspense?: never;
101
+ __isFragment?: undefined;
102
+ __isTeleport?: undefined;
103
+ __isSuspense?: undefined;
104
104
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
105
105
  urlList: {
106
106
  type: import("vue").PropType<string[]>;
@@ -1,16 +1,26 @@
1
- import InfiniteScroll from './infinite-scroll';
2
1
  import type { SFCWithInstall } from 'vft/es/utils';
3
- declare const _InfiniteScroll: SFCWithInstall<typeof InfiniteScroll>;
2
+ declare const _InfiniteScroll: SFCWithInstall<import("vue").ObjectDirective<HTMLElement & {
3
+ VftInfiniteScroll: {
4
+ container: Window | HTMLElement;
5
+ containerEl: HTMLElement;
6
+ instance: import("vue").ComponentPublicInstance;
7
+ delay: number;
8
+ lastScrollTop: number;
9
+ cb: () => void;
10
+ onScroll: () => void;
11
+ observer?: MutationObserver | undefined;
12
+ };
13
+ }, () => void>>;
4
14
  export default _InfiniteScroll;
5
15
  export declare const VftInfiniteScroll: SFCWithInstall<import("vue").ObjectDirective<HTMLElement & {
6
16
  VftInfiniteScroll: {
7
- container: HTMLElement | Window;
17
+ container: Window | HTMLElement;
8
18
  containerEl: HTMLElement;
9
19
  instance: import("vue").ComponentPublicInstance;
10
20
  delay: number;
11
21
  lastScrollTop: number;
12
22
  cb: () => void;
13
23
  onScroll: () => void;
14
- observer?: MutationObserver;
24
+ observer?: MutationObserver | undefined;
15
25
  };
16
26
  }, () => void>>;
@@ -21,8 +21,8 @@ export declare const VftInput: import("vft/es/utils").SFCWithInstall<{
21
21
  };
22
22
  autosize: {
23
23
  type: import("vue").PropType<boolean | {
24
- minRows?: number;
25
- maxRows?: number;
24
+ minRows?: number | undefined;
25
+ maxRows?: number | undefined;
26
26
  }>;
27
27
  };
28
28
  autocomplete: {
@@ -53,13 +53,13 @@ export declare const VftInput: import("vft/es/utils").SFCWithInstall<{
53
53
  type: import("vue").PropType<boolean>;
54
54
  };
55
55
  suffixIcon: {
56
- type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
56
+ type: import("vue").PropType<string | import("..").IconProps>;
57
57
  };
58
58
  prefixIcon: {
59
- type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
59
+ type: import("vue").PropType<string | import("..").IconProps>;
60
60
  };
61
61
  clearIcon: {
62
- type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
62
+ type: import("vue").PropType<string | import("..").IconProps>;
63
63
  };
64
64
  containerRole: {
65
65
  type: import("vue").PropType<string>;
@@ -98,8 +98,8 @@ export declare const VftInput: import("vft/es/utils").SFCWithInstall<{
98
98
  ref: import("vue").ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
99
99
  textareaStyle: import("vue").ComputedRef<import("vue").StyleValue>;
100
100
  autosize: boolean | {
101
- minRows?: number;
102
- maxRows?: number;
101
+ minRows?: number | undefined;
102
+ maxRows?: number | undefined;
103
103
  };
104
104
  focus: () => Promise<void>;
105
105
  blur: () => void | undefined;
@@ -143,8 +143,8 @@ export declare const VftInput: import("vft/es/utils").SFCWithInstall<{
143
143
  };
144
144
  autosize: {
145
145
  type: import("vue").PropType<boolean | {
146
- minRows?: number;
147
- maxRows?: number;
146
+ minRows?: number | undefined;
147
+ maxRows?: number | undefined;
148
148
  }>;
149
149
  };
150
150
  autocomplete: {
@@ -175,13 +175,13 @@ export declare const VftInput: import("vft/es/utils").SFCWithInstall<{
175
175
  type: import("vue").PropType<boolean>;
176
176
  };
177
177
  suffixIcon: {
178
- type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
178
+ type: import("vue").PropType<string | import("..").IconProps>;
179
179
  };
180
180
  prefixIcon: {
181
- type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
181
+ type: import("vue").PropType<string | import("..").IconProps>;
182
182
  };
183
183
  clearIcon: {
184
- type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
184
+ type: import("vue").PropType<string | import("..").IconProps>;
185
185
  };
186
186
  containerRole: {
187
187
  type: import("vue").PropType<string>;
@@ -242,8 +242,8 @@ export declare const VftInput: import("vft/es/utils").SFCWithInstall<{
242
242
  };
243
243
  autosize: {
244
244
  type: import("vue").PropType<boolean | {
245
- minRows?: number;
246
- maxRows?: number;
245
+ minRows?: number | undefined;
246
+ maxRows?: number | undefined;
247
247
  }>;
248
248
  };
249
249
  autocomplete: {
@@ -274,13 +274,13 @@ export declare const VftInput: import("vft/es/utils").SFCWithInstall<{
274
274
  type: import("vue").PropType<boolean>;
275
275
  };
276
276
  suffixIcon: {
277
- type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
277
+ type: import("vue").PropType<string | import("..").IconProps>;
278
278
  };
279
279
  prefixIcon: {
280
- type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
280
+ type: import("vue").PropType<string | import("..").IconProps>;
281
281
  };
282
282
  clearIcon: {
283
- type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
283
+ type: import("vue").PropType<string | import("..").IconProps>;
284
284
  };
285
285
  containerRole: {
286
286
  type: import("vue").PropType<string>;
@@ -319,8 +319,8 @@ export declare const VftInput: import("vft/es/utils").SFCWithInstall<{
319
319
  ref: import("vue").ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
320
320
  textareaStyle: import("vue").ComputedRef<import("vue").StyleValue>;
321
321
  autosize: boolean | {
322
- minRows?: number;
323
- maxRows?: number;
322
+ minRows?: number | undefined;
323
+ maxRows?: number | undefined;
324
324
  };
325
325
  focus: () => Promise<void>;
326
326
  blur: () => void | undefined;
@@ -328,9 +328,9 @@ export declare const VftInput: import("vft/es/utils").SFCWithInstall<{
328
328
  clear: () => void;
329
329
  resizeTextarea: () => void;
330
330
  }, {}, {}, {}, {}>;
331
- __isFragment?: never;
332
- __isTeleport?: never;
333
- __isSuspense?: never;
331
+ __isFragment?: undefined;
332
+ __isTeleport?: undefined;
333
+ __isSuspense?: undefined;
334
334
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
335
335
  id: {
336
336
  type: import("vue").PropType<string>;
@@ -352,8 +352,8 @@ export declare const VftInput: import("vft/es/utils").SFCWithInstall<{
352
352
  };
353
353
  autosize: {
354
354
  type: import("vue").PropType<boolean | {
355
- minRows?: number;
356
- maxRows?: number;
355
+ minRows?: number | undefined;
356
+ maxRows?: number | undefined;
357
357
  }>;
358
358
  };
359
359
  autocomplete: {
@@ -384,13 +384,13 @@ export declare const VftInput: import("vft/es/utils").SFCWithInstall<{
384
384
  type: import("vue").PropType<boolean>;
385
385
  };
386
386
  suffixIcon: {
387
- type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
387
+ type: import("vue").PropType<string | import("..").IconProps>;
388
388
  };
389
389
  prefixIcon: {
390
- type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
390
+ type: import("vue").PropType<string | import("..").IconProps>;
391
391
  };
392
392
  clearIcon: {
393
- type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
393
+ type: import("vue").PropType<string | import("..").IconProps>;
394
394
  };
395
395
  containerRole: {
396
396
  type: import("vue").PropType<string>;
@@ -429,8 +429,8 @@ export declare const VftInput: import("vft/es/utils").SFCWithInstall<{
429
429
  ref: import("vue").ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
430
430
  textareaStyle: import("vue").ComputedRef<import("vue").StyleValue>;
431
431
  autosize: boolean | {
432
- minRows?: number;
433
- maxRows?: number;
432
+ minRows?: number | undefined;
433
+ maxRows?: number | undefined;
434
434
  };
435
435
  focus: () => Promise<void>;
436
436
  blur: () => void | undefined;
@@ -29,13 +29,7 @@ export interface InputProps {
29
29
  validateEvent?: boolean;
30
30
  inputStyle?: StyleValue;
31
31
  }
32
- declare function __VLS_template(): {
33
- prepend?(_: {}): any;
34
- prefix?(_: {}): any;
35
- suffix?(_: {}): any;
36
- append?(_: {}): any;
37
- };
38
- declare const __VLS_component: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<InputProps>, {
32
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<InputProps>, {
39
33
  /** @description HTML input element */
40
34
  input: import("vue").ShallowRef<HTMLInputElement | undefined>;
41
35
  /** @description HTML textarea element */
@@ -46,8 +40,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_TypePropsToRu
46
40
  textareaStyle: import("vue").ComputedRef<StyleValue>;
47
41
  /** @description from props (used on unit test) */
48
42
  autosize: boolean | {
49
- minRows?: number;
50
- maxRows?: number;
43
+ minRows?: number | undefined;
44
+ maxRows?: number | undefined;
51
45
  };
52
46
  /** @description HTML input element native method */
53
47
  focus: () => Promise<void>;
@@ -91,8 +85,12 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_TypePropsToRu
91
85
  onClear?: (() => any) | undefined;
92
86
  onSuffixClick?: ((value: any) => any) | undefined;
93
87
  onPrefixClick?: ((value: any) => any) | undefined;
94
- }, {}, {}>;
95
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
88
+ }, {}, {}>, {
89
+ prepend?(_: {}): any;
90
+ prefix?(_: {}): any;
91
+ suffix?(_: {}): any;
92
+ append?(_: {}): any;
93
+ }>;
96
94
  export default _default;
97
95
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
98
96
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),F=require("@vft/constants"),ee=require("@vft/use"),r=require("@vft/utils");require("../form/index.cjs");const w=require("../icon/index.cjs"),te=require("@vueuse/core"),M=require("../../utils/error.cjs");require("../../utils/ns-cover.cjs");const Se=require("lodash-es"),ne=require("../../hooks/use-namespace/index.cjs");require("../../hooks/use-model-toggle/index.cjs");require("@popperjs/core");require("../../hooks/use-z-index/index.cjs");const oe=require("./utils.cjs"),ae=require("../form/hooks/use-form-item.cjs"),le=require("../form/hooks/use-form-common-props.cjs"),ze=["role"],Ie=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form"],Ne=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form"],Pe=e.defineComponent({__name:"input",props:{id:{},size:{default:""},disabled:{type:Boolean},modelValue:{},type:{default:"text"},resize:{},autosize:{type:[Object,Boolean],default:!1},autocomplete:{default:"off"},formatter:{},parser:{},placeholder:{},form:{},readonly:{type:Boolean},clearable:{type:Boolean},showPassword:{type:Boolean},showWordLimit:{type:Boolean},suffixIcon:{},prefixIcon:{},clearIcon:{},containerRole:{},label:{},tabindex:{default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:[Boolean,null,String,Object,Array]}},emits:{[F.UPDATE_MODEL_EVENT]:n=>r.isString(n),input:n=>r.isString(n),change:n=>r.isString(n),suffixClick:n=>r.isString(n),prefixClick:n=>r.isString(n),focus:n=>n instanceof FocusEvent,blur:n=>n instanceof FocusEvent,clear:()=>!0,enter:()=>!0,mouseleave:n=>n instanceof MouseEvent,mouseenter:n=>n instanceof MouseEvent,keydown:n=>n instanceof Event,compositionstart:n=>n instanceof CompositionEvent,compositionupdate:n=>n instanceof CompositionEvent,compositionend:n=>n instanceof CompositionEvent},setup(n,{expose:se,emit:re}){const l=re,y=e.useAttrs(),d=e.useSlots(),A=e.computed(()=>{const t={};return n.containerRole==="combobox"&&(t["aria-haspopup"]=y["aria-haspopup"],t["aria-owns"]=y["aria-owns"],t["aria-expanded"]=y["aria-expanded"]),t}),ue=e.computed(()=>[n.type==="textarea"?O.b():o.b(),o.m(de.value),o.is("disabled",m.value),o.is("exceed",ve.value),o.is("focus",p.value),{[o.b("group")]:d.prepend||d.append,[o.bm("group","append")]:d.append,[o.bm("group","prepend")]:d.prepend,[o.m("prefix")]:d.prefix||n.prefixIcon,[o.m("suffix")]:d.suffix||n.suffixIcon||n.clearable||n.showPassword,[o.bm("suffix","password-clear")]:B.value&&P.value},y.class]),ie=e.getCurrentInstance(),ce=e.computed(()=>[o.e("wrapper"),o.is("focus",p.value)]),u=ee.useAttrs({excludeKeys:e.computed(()=>Object.keys(A.value))}),{form:S,formItem:s}=ae.useFormItem(),{inputId:D}=ae.useFormItemInputId(ie.props,{formItemContext:s}),de=le.useFormSize(),m=le.useFormDisabled(),o=ne.useNamespace("input"),O=ne.useNamespace("textarea"),x=e.shallowRef(),f=e.shallowRef(),p=e.ref(!1),z=e.ref(!1),h=e.ref(!1),E=e.ref(!1),R=e.ref(),I=e.shallowRef(n.inputStyle),g=e.computed(()=>x.value||f.value),N=e.computed(()=>r.singleAttrToObj(n.prefixIcon,"icon",{size:16})),K=e.computed(()=>r.singleAttrToObj(n.suffixIcon,"icon",{size:16})),me=e.computed(()=>r.singleAttrToObj(n.clearIcon,"icon",{icon:"icon-circle-close",size:16})),$=e.computed(()=>(S==null?void 0:S.statusIcon)??!1),k=e.computed(()=>(s==null?void 0:s.validateState)||""),j=e.computed(()=>k.value&&{validating:"icon-loading",success:"icon-circle-check",error:"icon-circle-close"}[k.value]),fe=e.computed(()=>E.value?{icon:"icon-view",size:16}:{icon:"icon-hide",size:16}),pe=e.computed(()=>[y.style,n.inputStyle]),L=e.computed(()=>[n.inputStyle,I.value,{resize:n.resize}]),c=e.computed(()=>Se.isNil(n.modelValue)?"":String(n.modelValue)),B=e.computed(()=>n.clearable&&!m.value&&!n.readonly&&!!c.value&&(p.value||z.value)),P=e.computed(()=>n.showPassword&&!m.value&&!n.readonly&&!!c.value&&(!!c.value||p.value)),v=e.computed(()=>n.showWordLimit&&!!u.value.maxlength&&(n.type==="text"||n.type==="textarea")&&!m.value&&!n.readonly&&!n.showPassword),T=e.computed(()=>Array.from(c.value).length),ve=e.computed(()=>!!v.value&&T.value>Number(u.value.maxlength)),ye=e.computed(()=>!!d.suffix||!!n.suffixIcon||B.value||n.showPassword||v.value||!!k.value&&$.value),[he,ge]=ee.useCursor(x);te.useResizeObserver(f,t=>{if(!v.value||n.resize!=="both")return;const a=t[0],{width:i}=a.contentRect;R.value={right:`calc(100% - ${i+15+6}px)`}});const V=()=>{if(!(!te.isClient||n.type!=="textarea"))if(n.autosize){const t=r.isObject(n.autosize)?n.autosize.minRows:void 0,a=r.isObject(n.autosize)?n.autosize.maxRows:void 0;I.value={...oe.calcTextareaHeight(f.value,t,a)}}else I.value={minHeight:oe.calcTextareaHeight(f.value).minHeight}},b=()=>{const t=g.value;!t||t.value===c.value||(t.value=c.value)},q=async t=>{he();let{value:a}=t.target;if(u.value.maxlength&&a.length>=u.value.maxlength&&(a=a.slice(0,Number(u.value.maxlength))),n.formatter&&(a=n.parser?n.parser(a):a,a=n.formatter(a)),!h.value){if(a===c.value){b();return}l(F.UPDATE_MODEL_EVENT,a),l("input",a),await e.nextTick(),b(),ge()}},W=t=>{l("change",t.target.value)},ke=()=>{l("suffixClick",n.modelValue)},be=()=>{l("prefixClick",n.modelValue)},H=t=>{l("compositionstart",t),h.value=!0},Ce=t=>/([(\uAC00-\uD7AF)|\u3130-\u318F])+/.test(t),U=t=>{var C;l("compositionupdate",t);const a=(C=t.target)==null?void 0:C.value,i=a[a.length-1]||"";h.value=!Ce(i)},G=t=>{l("compositionend",t),h.value&&(h.value=!1,q(t))},we=()=>{E.value=!E.value,J()},J=async()=>{var t;await e.nextTick(),(t=g.value)==null||t.focus()},xe=()=>{var t;return(t=g.value)==null?void 0:t.blur()},Q=t=>{p.value=!0,l("focus",t)},X=t=>{var a;p.value=!1,l("blur",t),n.validateEvent&&((a=s==null?void 0:s.validate)==null||a.call(s,"blur").catch(i=>M.debugWarn(i)))},Ee=t=>{z.value=!1,l("mouseleave",t)},Be=t=>{z.value=!0,l("mouseenter",t)},Y=t=>{let a=t.key;if(t.target.type==="number"&&["e","+","-0","E"].includes(a))return t.returnValue=!1,!1;l("keydown",t)},Ve=()=>{var t;(t=g.value)==null||t.select()},Z=()=>{l(F.UPDATE_MODEL_EVENT,""),l("change",""),l("clear"),l("input","")};return e.watch(()=>n.modelValue,()=>{var t;e.nextTick(()=>V()),n.validateEvent&&((t=s==null?void 0:s.validate)==null||t.call(s,"change").catch(a=>M.debugWarn(a)))}),e.watch(c,()=>b()),e.watch(()=>n.type,async()=>{await e.nextTick(),b(),V()}),e.onMounted(()=>{!n.formatter&&n.parser&&M.debugWarn("VftInput","If you set the parser, you also need to set the formatter."),b(),e.nextTick(V)}),se({input:x,textarea:f,ref:g,textareaStyle:L,autosize:n.autosize,focus:J,blur:xe,select:Ve,clear:Z,resizeTextarea:V}),(t,a)=>{var i,C,_;return e.withDirectives((e.openBlock(),e.createElementBlock("div",e.mergeProps(A.value,{class:ue.value,style:pe.value,role:t.containerRole,onMouseenter:Be,onMouseleave:Ee}),[t.type!=="textarea"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.$slots.prepend?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(o).be("group","prepend"))},[e.renderSlot(t.$slots,"prepend")],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(ce.value)},[t.$slots.prefix||(i=N.value)!=null&&i.icon?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(o).e("prefix"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(o).e("prefix-inner")),onClick:be},[e.renderSlot(t.$slots,"prefix"),(C=N.value)!=null&&C.icon?(e.openBlock(),e.createBlock(e.unref(w.VftIcon),e.mergeProps({key:0,pointer:""},N.value,{class:e.unref(o).e("icon")}),null,16,["class"])):e.createCommentVNode("",!0)],2)],2)):e.createCommentVNode("",!0),e.createElementVNode("input",e.mergeProps({id:e.unref(D),ref_key:"input",ref:x,class:e.unref(o).e("inner")},e.unref(u),{type:t.showPassword?E.value?"text":"password":t.type,disabled:e.unref(m),formatter:t.formatter,parser:t.parser,readonly:t.readonly,autocomplete:t.autocomplete,tabindex:t.tabindex,"aria-label":t.label,placeholder:t.placeholder,style:t.inputStyle,form:t.form,onCompositionstart:H,onCompositionupdate:U,onCompositionend:G,onInput:q,onFocus:Q,onBlur:X,onChange:W,onKeydown:Y,onKeyup:a[0]||(a[0]=e.withKeys(Te=>l("enter"),["enter"]))}),null,16,Ie),ye.value?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(e.unref(o).e("suffix"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(o).e("suffix-inner")),onClick:ke},[!B.value||!P.value||!v.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.renderSlot(t.$slots,"suffix"),(_=K.value)!=null&&_.icon?(e.openBlock(),e.createBlock(e.unref(w.VftIcon),e.mergeProps({key:0},K.value,{class:e.unref(o).e("icon")}),null,16,["class"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),B.value?(e.openBlock(),e.createBlock(e.unref(w.VftIcon),e.mergeProps({key:1,pointer:"",class:[e.unref(o).e("icon"),e.unref(o).e("clear")]},me.value,{onMousedown:e.withModifiers(e.unref(r.noop),["prevent"]),onClick:e.withModifiers(Z,["stop"])}),null,16,["class","onMousedown"])):e.createCommentVNode("",!0),P.value?(e.openBlock(),e.createBlock(e.unref(w.VftIcon),e.mergeProps({key:2},fe.value,{class:[e.unref(o).e("icon"),e.unref(o).e("password")],onClick:we}),null,16,["class"])):e.createCommentVNode("",!0),v.value?(e.openBlock(),e.createElementBlock("span",{key:3,class:e.normalizeClass(e.unref(o).e("count"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(o).e("count-inner"))},e.toDisplayString(T.value)+" / "+e.toDisplayString(e.unref(u).maxlength),3)],2)):e.createCommentVNode("",!0),k.value&&j.value&&$.value?(e.openBlock(),e.createBlock(e.unref(w.VftIcon),{key:4,icon:j.value,class:e.normalizeClass([e.unref(o).e("icon"),e.unref(o).e("validateIcon"),e.unref(o).is("loading",k.value==="validating")])},null,8,["icon","class"])):e.createCommentVNode("",!0)],2)],2)):e.createCommentVNode("",!0)],2),t.$slots.append?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(o).be("group","append"))},[e.renderSlot(t.$slots,"append")],2)):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("textarea",e.mergeProps({id:e.unref(D),ref_key:"textarea",ref:f,class:e.unref(O).e("inner")},e.unref(u),{tabindex:t.tabindex,disabled:e.unref(m),readonly:t.readonly,autocomplete:t.autocomplete,style:L.value,"aria-label":t.label,placeholder:t.placeholder,form:t.form,onCompositionstart:H,onCompositionupdate:U,onCompositionend:G,onInput:q,onFocus:Q,onBlur:X,onChange:W,onKeydown:Y}),null,16,Ne),v.value?(e.openBlock(),e.createElementBlock("span",{key:0,style:e.normalizeStyle(R.value),class:e.normalizeClass(e.unref(o).e("count"))},e.toDisplayString(T.value)+" / "+e.toDisplayString(e.unref(u).maxlength),7)):e.createCommentVNode("",!0)],64))],16,ze)),[[e.vShow,t.type!=="hidden"]])}}});exports.default=Pe;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),F=require("@vft/constants"),ee=require("@vft/use"),r=require("@vft/utils");require("../form/index.cjs");const w=require("../icon/index.cjs"),te=require("@vueuse/core"),M=require("../../utils/error.cjs");require("../../utils/ns-cover.cjs");const Se=require("lodash-es"),ne=require("../../hooks/use-namespace/index.cjs");require("../../hooks/use-model-toggle/index.cjs");require("@popperjs/core");require("../../hooks/use-z-index/index.cjs");const oe=require("./utils.cjs"),ae=require("../form/hooks/use-form-common-props.cjs"),le=require("../form/hooks/use-form-item.cjs"),ze=["role"],Ie=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form"],Ne=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form"],Pe=e.defineComponent({__name:"input",props:{id:{},size:{default:""},disabled:{type:Boolean},modelValue:{},type:{default:"text"},resize:{},autosize:{type:[Object,Boolean],default:!1},autocomplete:{default:"off"},formatter:{},parser:{},placeholder:{},form:{},readonly:{type:Boolean},clearable:{type:Boolean},showPassword:{type:Boolean},showWordLimit:{type:Boolean},suffixIcon:{},prefixIcon:{},clearIcon:{},containerRole:{},label:{},tabindex:{default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:[Boolean,null,String,Object,Array]}},emits:{[F.UPDATE_MODEL_EVENT]:n=>r.isString(n),input:n=>r.isString(n),change:n=>r.isString(n),suffixClick:n=>r.isString(n),prefixClick:n=>r.isString(n),focus:n=>n instanceof FocusEvent,blur:n=>n instanceof FocusEvent,clear:()=>!0,enter:()=>!0,mouseleave:n=>n instanceof MouseEvent,mouseenter:n=>n instanceof MouseEvent,keydown:n=>n instanceof Event,compositionstart:n=>n instanceof CompositionEvent,compositionupdate:n=>n instanceof CompositionEvent,compositionend:n=>n instanceof CompositionEvent},setup(n,{expose:se,emit:re}){const l=re,y=e.useAttrs(),d=e.useSlots(),A=e.computed(()=>{const t={};return n.containerRole==="combobox"&&(t["aria-haspopup"]=y["aria-haspopup"],t["aria-owns"]=y["aria-owns"],t["aria-expanded"]=y["aria-expanded"]),t}),ue=e.computed(()=>[n.type==="textarea"?O.b():o.b(),o.m(de.value),o.is("disabled",m.value),o.is("exceed",ve.value),o.is("focus",p.value),{[o.b("group")]:d.prepend||d.append,[o.bm("group","append")]:d.append,[o.bm("group","prepend")]:d.prepend,[o.m("prefix")]:d.prefix||n.prefixIcon,[o.m("suffix")]:d.suffix||n.suffixIcon||n.clearable||n.showPassword,[o.bm("suffix","password-clear")]:B.value&&P.value},y.class]),ie=e.getCurrentInstance(),ce=e.computed(()=>[o.e("wrapper"),o.is("focus",p.value)]),u=ee.useAttrs({excludeKeys:e.computed(()=>Object.keys(A.value))}),{form:S,formItem:s}=le.useFormItem(),{inputId:D}=le.useFormItemInputId(ie.props,{formItemContext:s}),de=ae.useFormSize(),m=ae.useFormDisabled(),o=ne.useNamespace("input"),O=ne.useNamespace("textarea"),x=e.shallowRef(),f=e.shallowRef(),p=e.ref(!1),z=e.ref(!1),h=e.ref(!1),E=e.ref(!1),R=e.ref(),I=e.shallowRef(n.inputStyle),g=e.computed(()=>x.value||f.value),N=e.computed(()=>r.singleAttrToObj(n.prefixIcon,"icon",{size:16})),K=e.computed(()=>r.singleAttrToObj(n.suffixIcon,"icon",{size:16})),me=e.computed(()=>r.singleAttrToObj(n.clearIcon,"icon",{icon:"icon-circle-close",size:16})),$=e.computed(()=>(S==null?void 0:S.statusIcon)??!1),k=e.computed(()=>(s==null?void 0:s.validateState)||""),j=e.computed(()=>k.value&&{validating:"icon-loading",success:"icon-circle-check",error:"icon-circle-close"}[k.value]),fe=e.computed(()=>E.value?{icon:"icon-view",size:16}:{icon:"icon-hide",size:16}),pe=e.computed(()=>[y.style,n.inputStyle]),L=e.computed(()=>[n.inputStyle,I.value,{resize:n.resize}]),c=e.computed(()=>Se.isNil(n.modelValue)?"":String(n.modelValue)),B=e.computed(()=>n.clearable&&!m.value&&!n.readonly&&!!c.value&&(p.value||z.value)),P=e.computed(()=>n.showPassword&&!m.value&&!n.readonly&&!!c.value&&(!!c.value||p.value)),v=e.computed(()=>n.showWordLimit&&!!u.value.maxlength&&(n.type==="text"||n.type==="textarea")&&!m.value&&!n.readonly&&!n.showPassword),T=e.computed(()=>Array.from(c.value).length),ve=e.computed(()=>!!v.value&&T.value>Number(u.value.maxlength)),ye=e.computed(()=>!!d.suffix||!!n.suffixIcon||B.value||n.showPassword||v.value||!!k.value&&$.value),[he,ge]=ee.useCursor(x);te.useResizeObserver(f,t=>{if(!v.value||n.resize!=="both")return;const a=t[0],{width:i}=a.contentRect;R.value={right:`calc(100% - ${i+15+6}px)`}});const V=()=>{if(!(!te.isClient||n.type!=="textarea"))if(n.autosize){const t=r.isObject(n.autosize)?n.autosize.minRows:void 0,a=r.isObject(n.autosize)?n.autosize.maxRows:void 0;I.value={...oe.calcTextareaHeight(f.value,t,a)}}else I.value={minHeight:oe.calcTextareaHeight(f.value).minHeight}},b=()=>{const t=g.value;!t||t.value===c.value||(t.value=c.value)},q=async t=>{he();let{value:a}=t.target;if(u.value.maxlength&&a.length>=u.value.maxlength&&(a=a.slice(0,Number(u.value.maxlength))),n.formatter&&(a=n.parser?n.parser(a):a,a=n.formatter(a)),!h.value){if(a===c.value){b();return}l(F.UPDATE_MODEL_EVENT,a),l("input",a),await e.nextTick(),b(),ge()}},W=t=>{l("change",t.target.value)},ke=()=>{l("suffixClick",n.modelValue)},be=()=>{l("prefixClick",n.modelValue)},H=t=>{l("compositionstart",t),h.value=!0},Ce=t=>/([(\uAC00-\uD7AF)|\u3130-\u318F])+/.test(t),U=t=>{var C;l("compositionupdate",t);const a=(C=t.target)==null?void 0:C.value,i=a[a.length-1]||"";h.value=!Ce(i)},G=t=>{l("compositionend",t),h.value&&(h.value=!1,q(t))},we=()=>{E.value=!E.value,J()},J=async()=>{var t;await e.nextTick(),(t=g.value)==null||t.focus()},xe=()=>{var t;return(t=g.value)==null?void 0:t.blur()},Q=t=>{p.value=!0,l("focus",t)},X=t=>{var a;p.value=!1,l("blur",t),n.validateEvent&&((a=s==null?void 0:s.validate)==null||a.call(s,"blur").catch(i=>M.debugWarn(i)))},Ee=t=>{z.value=!1,l("mouseleave",t)},Be=t=>{z.value=!0,l("mouseenter",t)},Y=t=>{let a=t.key;if(t.target.type==="number"&&["e","+","-0","E"].includes(a))return t.returnValue=!1,!1;l("keydown",t)},Ve=()=>{var t;(t=g.value)==null||t.select()},Z=()=>{l(F.UPDATE_MODEL_EVENT,""),l("change",""),l("clear"),l("input","")};return e.watch(()=>n.modelValue,()=>{var t;e.nextTick(()=>V()),n.validateEvent&&((t=s==null?void 0:s.validate)==null||t.call(s,"change").catch(a=>M.debugWarn(a)))}),e.watch(c,()=>b()),e.watch(()=>n.type,async()=>{await e.nextTick(),b(),V()}),e.onMounted(()=>{!n.formatter&&n.parser&&M.debugWarn("VftInput","If you set the parser, you also need to set the formatter."),b(),e.nextTick(V)}),se({input:x,textarea:f,ref:g,textareaStyle:L,autosize:n.autosize,focus:J,blur:xe,select:Ve,clear:Z,resizeTextarea:V}),(t,a)=>{var i,C,_;return e.withDirectives((e.openBlock(),e.createElementBlock("div",e.mergeProps(A.value,{class:ue.value,style:pe.value,role:t.containerRole,onMouseenter:Be,onMouseleave:Ee}),[t.type!=="textarea"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.$slots.prepend?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(o).be("group","prepend"))},[e.renderSlot(t.$slots,"prepend")],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(ce.value)},[t.$slots.prefix||(i=N.value)!=null&&i.icon?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(o).e("prefix"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(o).e("prefix-inner")),onClick:be},[e.renderSlot(t.$slots,"prefix"),(C=N.value)!=null&&C.icon?(e.openBlock(),e.createBlock(e.unref(w.VftIcon),e.mergeProps({key:0,pointer:""},N.value,{class:e.unref(o).e("icon")}),null,16,["class"])):e.createCommentVNode("",!0)],2)],2)):e.createCommentVNode("",!0),e.createElementVNode("input",e.mergeProps({id:e.unref(D),ref_key:"input",ref:x,class:e.unref(o).e("inner")},e.unref(u),{type:t.showPassword?E.value?"text":"password":t.type,disabled:e.unref(m),formatter:t.formatter,parser:t.parser,readonly:t.readonly,autocomplete:t.autocomplete,tabindex:t.tabindex,"aria-label":t.label,placeholder:t.placeholder,style:t.inputStyle,form:t.form,onCompositionstart:H,onCompositionupdate:U,onCompositionend:G,onInput:q,onFocus:Q,onBlur:X,onChange:W,onKeydown:Y,onKeyup:a[0]||(a[0]=e.withKeys(Te=>l("enter"),["enter"]))}),null,16,Ie),ye.value?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(e.unref(o).e("suffix"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(o).e("suffix-inner")),onClick:ke},[!B.value||!P.value||!v.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.renderSlot(t.$slots,"suffix"),(_=K.value)!=null&&_.icon?(e.openBlock(),e.createBlock(e.unref(w.VftIcon),e.mergeProps({key:0},K.value,{class:e.unref(o).e("icon")}),null,16,["class"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),B.value?(e.openBlock(),e.createBlock(e.unref(w.VftIcon),e.mergeProps({key:1,pointer:"",class:[e.unref(o).e("icon"),e.unref(o).e("clear")]},me.value,{onMousedown:e.withModifiers(e.unref(r.noop),["prevent"]),onClick:e.withModifiers(Z,["stop"])}),null,16,["class","onMousedown"])):e.createCommentVNode("",!0),P.value?(e.openBlock(),e.createBlock(e.unref(w.VftIcon),e.mergeProps({key:2},fe.value,{class:[e.unref(o).e("icon"),e.unref(o).e("password")],onClick:we}),null,16,["class"])):e.createCommentVNode("",!0),v.value?(e.openBlock(),e.createElementBlock("span",{key:3,class:e.normalizeClass(e.unref(o).e("count"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(o).e("count-inner"))},e.toDisplayString(T.value)+" / "+e.toDisplayString(e.unref(u).maxlength),3)],2)):e.createCommentVNode("",!0),k.value&&j.value&&$.value?(e.openBlock(),e.createBlock(e.unref(w.VftIcon),{key:4,icon:j.value,class:e.normalizeClass([e.unref(o).e("icon"),e.unref(o).e("validateIcon"),e.unref(o).is("loading",k.value==="validating")])},null,8,["icon","class"])):e.createCommentVNode("",!0)],2)],2)):e.createCommentVNode("",!0)],2),t.$slots.append?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(o).be("group","append"))},[e.renderSlot(t.$slots,"append")],2)):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("textarea",e.mergeProps({id:e.unref(D),ref_key:"textarea",ref:f,class:e.unref(O).e("inner")},e.unref(u),{tabindex:t.tabindex,disabled:e.unref(m),readonly:t.readonly,autocomplete:t.autocomplete,style:L.value,"aria-label":t.label,placeholder:t.placeholder,form:t.form,onCompositionstart:H,onCompositionupdate:U,onCompositionend:G,onInput:q,onFocus:Q,onBlur:X,onChange:W,onKeydown:Y}),null,16,Ne),v.value?(e.openBlock(),e.createElementBlock("span",{key:0,style:e.normalizeStyle(R.value),class:e.normalizeClass(e.unref(o).e("count"))},e.toDisplayString(T.value)+" / "+e.toDisplayString(e.unref(u).maxlength),7)):e.createCommentVNode("",!0)],64))],16,ze)),[[e.vShow,t.type!=="hidden"]])}}});exports.default=Pe;
@@ -10,13 +10,13 @@ export declare const VftLink: import("vft/es/utils").SFCWithInstall<{
10
10
  type: import("vue").PropType<boolean>;
11
11
  };
12
12
  route: {
13
- type: import("vue").PropType<import("vue-router").RouteLocationRaw | import("@vft/router").WinOpenType>;
13
+ type: import("vue").PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric | import("@vft/router").WinOpenType>;
14
14
  };
15
15
  isReplace: {
16
16
  type: import("vue").PropType<boolean>;
17
17
  };
18
18
  icon: {
19
- type: import("vue").PropType<import("vft/es/vft").IconProps>;
19
+ type: import("vue").PropType<import("..").IconProps>;
20
20
  };
21
21
  }>> & {
22
22
  onClick?: ((...args: any[]) => any) | undefined;
@@ -33,13 +33,13 @@ export declare const VftLink: import("vft/es/utils").SFCWithInstall<{
33
33
  type: import("vue").PropType<boolean>;
34
34
  };
35
35
  route: {
36
- type: import("vue").PropType<import("vue-router").RouteLocationRaw | import("@vft/router").WinOpenType>;
36
+ type: import("vue").PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric | import("@vft/router").WinOpenType>;
37
37
  };
38
38
  isReplace: {
39
39
  type: import("vue").PropType<boolean>;
40
40
  };
41
41
  icon: {
42
- type: import("vue").PropType<import("vft/es/vft").IconProps>;
42
+ type: import("vue").PropType<import("..").IconProps>;
43
43
  };
44
44
  }>> & {
45
45
  onClick?: ((...args: any[]) => any) | undefined;
@@ -61,20 +61,20 @@ export declare const VftLink: import("vft/es/utils").SFCWithInstall<{
61
61
  type: import("vue").PropType<boolean>;
62
62
  };
63
63
  route: {
64
- type: import("vue").PropType<import("vue-router").RouteLocationRaw | import("@vft/router").WinOpenType>;
64
+ type: import("vue").PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric | import("@vft/router").WinOpenType>;
65
65
  };
66
66
  isReplace: {
67
67
  type: import("vue").PropType<boolean>;
68
68
  };
69
69
  icon: {
70
- type: import("vue").PropType<import("vft/es/vft").IconProps>;
70
+ type: import("vue").PropType<import("..").IconProps>;
71
71
  };
72
72
  }>> & {
73
73
  onClick?: ((...args: any[]) => any) | undefined;
74
74
  }, {}, {}, {}, {}, {}>;
75
- __isFragment?: never;
76
- __isTeleport?: never;
77
- __isSuspense?: never;
75
+ __isFragment?: undefined;
76
+ __isTeleport?: undefined;
77
+ __isSuspense?: undefined;
78
78
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
79
79
  type: {
80
80
  type: import("vue").PropType<"default" | "success" | "primary" | "warning" | "info" | "danger">;
@@ -86,13 +86,13 @@ export declare const VftLink: import("vft/es/utils").SFCWithInstall<{
86
86
  type: import("vue").PropType<boolean>;
87
87
  };
88
88
  route: {
89
- type: import("vue").PropType<import("vue-router").RouteLocationRaw | import("@vft/router").WinOpenType>;
89
+ type: import("vue").PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric | import("@vft/router").WinOpenType>;
90
90
  };
91
91
  isReplace: {
92
92
  type: import("vue").PropType<boolean>;
93
93
  };
94
94
  icon: {
95
- type: import("vue").PropType<import("vft/es/vft").IconProps>;
95
+ type: import("vue").PropType<import("..").IconProps>;
96
96
  };
97
97
  }>> & {
98
98
  onClick?: ((...args: any[]) => any) | undefined;
@@ -1,13 +1,11 @@
1
1
  import type { LinkProps } from './types';
2
- declare function __VLS_template(): {
3
- default?(_: {}): any;
4
- };
5
- declare const __VLS_component: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<LinkProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<LinkProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
3
  click: (...args: any[]) => void;
7
4
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<LinkProps>>> & {
8
5
  onClick?: ((...args: any[]) => any) | undefined;
9
- }, {}, {}>;
10
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
6
+ }, {}, {}>, {
7
+ default?(_: {}): any;
8
+ }>;
11
9
  export default _default;
12
10
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
13
11
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -4,7 +4,10 @@ import { Loading } from './service';
4
4
  export declare const VftLoading: {
5
5
  install(app: App): void;
6
6
  directive: import("vue").Directive<import("./directive").VftLoading, import("./directive").LoadingBinding>;
7
- service: (options?: import("./types").LoadingOptions) => import("./loading").LoadingInstance;
7
+ service: (options?: Partial<Omit<import("./types").LoadingOptionsResolved, "target" | "parent"> & {
8
+ target: string | HTMLElement;
9
+ body: boolean;
10
+ }>) => Record<string, any>;
8
11
  };
9
12
  export default VftLoading;
10
13
  export { vLoading as VftLoadingDirective, Loading as VftLoadingService, vLoading, };
@@ -4,7 +4,7 @@ export declare const VftMdCodeDemo: import("vft/es/utils").SFCWithInstall<import
4
4
  required: true;
5
5
  };
6
6
  type: {
7
- type: import("vue").PropType<"normal" | "vue" | "react">;
7
+ type: import("vue").PropType<"vue" | "normal" | "react">;
8
8
  default: string;
9
9
  };
10
10
  title: {
@@ -19,13 +19,15 @@ export declare const VftMdCodeDemo: import("vft/es/utils").SFCWithInstall<import
19
19
  type: StringConstructor;
20
20
  required: true;
21
21
  };
22
- }, () => import("vue").VNode, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
22
+ }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
23
+ [key: string]: any;
24
+ }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
23
25
  id: {
24
26
  type: StringConstructor;
25
27
  required: true;
26
28
  };
27
29
  type: {
28
- type: import("vue").PropType<"normal" | "vue" | "react">;
30
+ type: import("vue").PropType<"vue" | "normal" | "react">;
29
31
  default: string;
30
32
  };
31
33
  title: {