naive-ui 2.34.2 → 2.34.3

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 (674) hide show
  1. package/dist/index.js +11964 -9783
  2. package/dist/index.prod.js +3 -2
  3. package/es/_internal/loading/src/Loading.d.ts +1 -1
  4. package/es/_internal/scrollbar/src/Scrollbar.d.ts +4 -4
  5. package/es/_internal/scrollbar/styles/light.d.ts +2 -2
  6. package/es/_internal/select-menu/src/interface.d.ts +7 -7
  7. package/es/_internal/select-menu/styles/light.d.ts +2 -2
  8. package/es/_internal/selection/src/interface.d.ts +1 -1
  9. package/es/_internal/selection/styles/light.d.ts +2 -2
  10. package/es/_mixins/use-config.d.ts +1 -1
  11. package/es/_mixins/use-form-item.d.ts +2 -2
  12. package/es/_mixins/use-theme.d.ts +6 -6
  13. package/es/_styles/common/light.d.ts +1 -1
  14. package/es/_utils/cssr/create-key.d.ts +3 -3
  15. package/es/_utils/env/is-native-lazy-load.d.ts +1 -1
  16. package/es/_utils/env/is-native-lazy-load.js +2 -3
  17. package/es/_utils/naive/extract-public-props.d.ts +4 -4
  18. package/es/_utils/naive/mutable.d.ts +1 -1
  19. package/es/_utils/naive/prop.d.ts +1 -1
  20. package/es/_utils/vue/call.d.ts +1 -1
  21. package/es/affix/src/Affix.d.ts +1 -1
  22. package/es/affix/src/utils.d.ts +1 -1
  23. package/es/alert/src/Alert.d.ts +1 -1
  24. package/es/alert/styles/light.d.ts +2 -2
  25. package/es/anchor/src/AnchorAdapter.d.ts +1 -1
  26. package/es/anchor/src/Link.d.ts +1 -1
  27. package/es/anchor/src/utils.d.ts +1 -1
  28. package/es/anchor/styles/light.d.ts +2 -2
  29. package/es/auto-complete/src/AutoComplete.d.ts +1 -1
  30. package/es/auto-complete/src/interface.d.ts +5 -5
  31. package/es/auto-complete/styles/light.d.ts +2 -2
  32. package/es/avatar/src/Avatar.d.ts +1 -1
  33. package/es/avatar/src/Avatar.js +7 -1
  34. package/es/avatar/src/interface.d.ts +2 -2
  35. package/es/avatar/styles/light.d.ts +3 -3
  36. package/es/avatar-group/src/AvatarGroup.d.ts +1 -1
  37. package/es/avatar-group/styles/light.d.ts +2 -2
  38. package/es/back-top/src/BackTop.d.ts +1 -1
  39. package/es/back-top/styles/light.d.ts +2 -2
  40. package/es/badge/src/Badge.d.ts +7 -1
  41. package/es/badge/src/Badge.js +15 -3
  42. package/es/badge/styles/light.d.ts +2 -2
  43. package/es/breadcrumb/src/Breadcrumb.d.ts +1 -1
  44. package/es/breadcrumb/src/BreadcrumbItem.d.ts +1 -1
  45. package/es/breadcrumb/styles/light.d.ts +2 -2
  46. package/es/button/src/Button.d.ts +4 -4
  47. package/es/button/src/interface.d.ts +2 -2
  48. package/es/button/styles/light.d.ts +2 -2
  49. package/es/button-group/src/ButtonGroup.d.ts +1 -1
  50. package/es/button-group/styles/light.d.ts +1 -1
  51. package/es/calendar/src/Calendar.d.ts +1 -1
  52. package/es/calendar/src/interface.d.ts +2 -2
  53. package/es/calendar/styles/light.d.ts +2 -2
  54. package/es/card/src/Card.d.ts +23 -18
  55. package/es/card/src/Card.js +8 -7
  56. package/es/card/styles/light.d.ts +2 -2
  57. package/es/carousel/src/Carousel.d.ts +2 -2
  58. package/es/carousel/src/CarouselDots.d.ts +1 -1
  59. package/es/carousel/styles/light.d.ts +2 -2
  60. package/es/cascader/src/Cascader.d.ts +11 -1
  61. package/es/cascader/src/CascaderMenu.d.ts +1 -0
  62. package/es/cascader/src/CascaderOption.d.ts +1 -0
  63. package/es/cascader/src/CascaderSelectMenu.d.ts +1 -0
  64. package/es/cascader/src/CascaderSubmenu.d.ts +1 -0
  65. package/es/cascader/src/interface.d.ts +11 -11
  66. package/es/cascader/styles/light.d.ts +3 -2
  67. package/es/checkbox/src/Checkbox.d.ts +12 -1
  68. package/es/checkbox/src/Checkbox.js +2 -1
  69. package/es/checkbox/src/CheckboxGroup.d.ts +1 -1
  70. package/es/checkbox/src/interface.d.ts +2 -2
  71. package/es/checkbox/src/styles/index.cssr.js +1 -0
  72. package/es/checkbox/styles/_common.d.ts +1 -0
  73. package/es/checkbox/styles/_common.js +2 -1
  74. package/es/checkbox/styles/light.d.ts +3 -2
  75. package/es/code/src/Code.d.ts +1 -1
  76. package/es/code/styles/light.d.ts +2 -2
  77. package/es/collapse/src/Collapse.d.ts +1 -1
  78. package/es/collapse/src/CollapseItem.d.ts +1 -1
  79. package/es/collapse/src/interface.d.ts +4 -4
  80. package/es/collapse/styles/light.d.ts +2 -2
  81. package/es/collapse-transition/src/CollapseTransition.d.ts +1 -1
  82. package/es/collapse-transition/styles/light.d.ts +2 -2
  83. package/es/color-picker/src/ColorPicker.d.ts +1 -1
  84. package/es/color-picker/src/interface.d.ts +5 -5
  85. package/es/color-picker/src/utils.d.ts +2 -2
  86. package/es/color-picker/styles/light.d.ts +2 -2
  87. package/es/config-provider/src/ConfigProvider.d.ts +1 -1
  88. package/es/config-provider/src/interface.d.ts +1 -1
  89. package/es/config-provider/src/internal-interface.d.ts +3 -5
  90. package/es/config-provider/src/katex.d.ts +1 -1
  91. package/es/countdown/src/Countdown.d.ts +1 -1
  92. package/es/create.d.ts +1 -1
  93. package/es/data-table/src/DataTable.d.ts +14 -0
  94. package/es/data-table/src/HeaderButton/FilterButton.d.ts +2 -0
  95. package/es/data-table/src/HeaderButton/FilterMenu.d.ts +2 -0
  96. package/es/data-table/src/TableParts/Body.d.ts +2 -0
  97. package/es/data-table/src/TableParts/Cell.d.ts +4 -0
  98. package/es/data-table/src/TableParts/Header.d.ts +2 -0
  99. package/es/data-table/src/interface.d.ts +52 -52
  100. package/es/data-table/styles/light.d.ts +4 -2
  101. package/es/date-picker/src/DatePicker.d.ts +2 -2
  102. package/es/date-picker/src/DatePicker.js +2 -2
  103. package/es/date-picker/src/config.d.ts +1 -1
  104. package/es/date-picker/src/interface.d.ts +21 -21
  105. package/es/date-picker/src/panel/use-panel-common.d.ts +1 -1
  106. package/es/date-picker/styles/light.d.ts +2 -2
  107. package/es/descriptions/src/Descriptions.d.ts +2 -2
  108. package/es/descriptions/src/DescriptionsItem.d.ts +1 -1
  109. package/es/descriptions/styles/light.d.ts +2 -2
  110. package/es/dialog/src/DialogProvider.d.ts +5 -5
  111. package/es/dialog/src/dialogProps.d.ts +1 -1
  112. package/es/dialog/src/interface.d.ts +1 -1
  113. package/es/dialog/styles/light.d.ts +2 -2
  114. package/es/discrete/src/discreteApp.d.ts +2 -2
  115. package/es/discrete/src/interface.d.ts +3 -3
  116. package/es/divider/src/Divider.d.ts +1 -1
  117. package/es/divider/styles/light.d.ts +2 -2
  118. package/es/drawer/src/Drawer.d.ts +1 -1
  119. package/es/drawer/src/DrawerBodyWrapper.d.ts +1 -1
  120. package/es/drawer/src/DrawerContent.d.ts +1 -1
  121. package/es/drawer/src/interface.d.ts +1 -1
  122. package/es/drawer/styles/light.d.ts +2 -2
  123. package/es/dropdown/src/Dropdown.d.ts +1 -1
  124. package/es/dropdown/src/interface.d.ts +21 -21
  125. package/es/dropdown/styles/light.d.ts +2 -2
  126. package/es/dynamic-input/src/DynamicInput.d.ts +1 -1
  127. package/es/dynamic-input/src/interface.d.ts +1 -1
  128. package/es/dynamic-input/styles/light.d.ts +2 -2
  129. package/es/dynamic-tags/src/DynamicTags.d.ts +1 -1
  130. package/es/dynamic-tags/src/interface.d.ts +3 -3
  131. package/es/dynamic-tags/styles/light.d.ts +1 -1
  132. package/es/element/src/Element.d.ts +1 -1
  133. package/es/element/styles/light.d.ts +1 -1
  134. package/es/ellipsis/src/Ellipsis.d.ts +1 -1
  135. package/es/ellipsis/src/Ellipsis.js +7 -1
  136. package/es/ellipsis/styles/light.d.ts +1 -1
  137. package/es/empty/src/Empty.d.ts +1 -1
  138. package/es/empty/styles/light.d.ts +2 -2
  139. package/es/equation/styles/light.d.ts +2 -2
  140. package/es/form/src/Form.d.ts +11 -2
  141. package/es/form/src/FormItem.d.ts +14 -4
  142. package/es/form/src/FormItem.js +2 -1
  143. package/es/form/src/FormItemCol.d.ts +12 -3
  144. package/es/form/src/FormItemGridItem.d.ts +12 -3
  145. package/es/form/src/FormItemRow.d.ts +11 -2
  146. package/es/form/src/interface.d.ts +19 -19
  147. package/es/form/src/styles/form-item.cssr.js +1 -0
  148. package/es/form/styles/_common.d.ts +1 -0
  149. package/es/form/styles/_common.js +2 -1
  150. package/es/form/styles/light.d.ts +3 -2
  151. package/es/gradient-text/src/GradientText.d.ts +2 -2
  152. package/es/gradient-text/styles/light.d.ts +2 -2
  153. package/es/grid/src/Grid.d.ts +1 -1
  154. package/es/grid/src/GridItem.d.ts +1 -1
  155. package/es/icon/src/Icon.d.ts +2 -2
  156. package/es/icon/styles/light.d.ts +2 -2
  157. package/es/icon-wrapper/src/IconWrapper.d.ts +1 -1
  158. package/es/icon-wrapper/styles/light.d.ts +2 -2
  159. package/es/image/src/Image.d.ts +1 -1
  160. package/es/image/src/Image.js +5 -1
  161. package/es/image/src/ImageGroup.d.ts +1 -1
  162. package/es/image/src/ImagePreview.js +5 -4
  163. package/es/image/src/utils.d.ts +1 -1
  164. package/es/image/styles/light.d.ts +2 -2
  165. package/es/input/src/Input.d.ts +1 -1
  166. package/es/input/src/InputGroup.d.ts +1 -1
  167. package/es/input/src/InputGroupLabel.d.ts +1 -1
  168. package/es/input/src/interface.d.ts +4 -4
  169. package/es/input/src/styles/input.cssr.js +1 -0
  170. package/es/input/styles/light.d.ts +2 -2
  171. package/es/input-number/src/InputNumber.d.ts +1 -1
  172. package/es/input-number/src/interface.d.ts +2 -2
  173. package/es/input-number/styles/light.d.ts +2 -2
  174. package/es/layout/src/Layout.d.ts +1 -1
  175. package/es/layout/src/LayoutFooter.d.ts +1 -1
  176. package/es/layout/src/LayoutHeader.d.ts +1 -1
  177. package/es/layout/src/LayoutSider.d.ts +1 -1
  178. package/es/layout/src/interface.d.ts +1 -1
  179. package/es/layout/styles/light.d.ts +2 -2
  180. package/es/legacy-grid/src/Col.d.ts +1 -1
  181. package/es/legacy-grid/src/Row.d.ts +1 -1
  182. package/es/legacy-grid/src/interface.d.ts +1 -1
  183. package/es/legacy-grid/styles/dark.d.ts +1 -1
  184. package/es/legacy-grid/styles/light.d.ts +1 -1
  185. package/es/legacy-transfer/src/Transfer.d.ts +11 -1
  186. package/es/legacy-transfer/src/TransferFilter.d.ts +1 -0
  187. package/es/legacy-transfer/src/TransferList.d.ts +1 -0
  188. package/es/legacy-transfer/src/TransferListItem.d.ts +1 -0
  189. package/es/legacy-transfer/src/interface.d.ts +3 -3
  190. package/es/legacy-transfer/styles/light.d.ts +3 -2
  191. package/es/list/src/List.d.ts +1 -1
  192. package/es/list/styles/light.d.ts +2 -2
  193. package/es/loading-bar/src/LoadingBarProvider.d.ts +4 -4
  194. package/es/loading-bar/styles/light.d.ts +2 -2
  195. package/es/locales/common/enUS.d.ts +1 -1
  196. package/es/locales/common/koKR.js +9 -9
  197. package/es/locales/utils/index.d.ts +1 -1
  198. package/es/log/src/Log.d.ts +1 -1
  199. package/es/log/styles/light.d.ts +2 -2
  200. package/es/mention/src/Mention.d.ts +1 -1
  201. package/es/mention/src/interface.d.ts +1 -1
  202. package/es/mention/styles/light.d.ts +2 -2
  203. package/es/menu/src/Menu.d.ts +2 -2
  204. package/es/menu/src/Submenu.js +2 -2
  205. package/es/menu/src/interface.d.ts +11 -11
  206. package/es/menu/src/use-menu-child-props.d.ts +1 -1
  207. package/es/menu/styles/light.d.ts +2 -2
  208. package/es/message/src/MessageProvider.d.ts +5 -7
  209. package/es/message/src/message-props.d.ts +2 -2
  210. package/es/message/src/types.d.ts +3 -3
  211. package/es/message/styles/light.d.ts +2 -2
  212. package/es/modal/src/BodyWrapper.d.ts +9 -0
  213. package/es/modal/src/Modal.d.ts +14 -1
  214. package/es/modal/src/interface.d.ts +1 -1
  215. package/es/modal/src/presetProps.d.ts +5 -1
  216. package/es/modal/styles/light.d.ts +2 -2
  217. package/es/notification/src/NotificationEnvironment.d.ts +1 -1
  218. package/es/notification/src/NotificationProvider.d.ts +7 -7
  219. package/es/notification/styles/light.d.ts +2 -2
  220. package/es/number-animation/src/NumberAnimation.d.ts +1 -1
  221. package/es/page-header/src/PageHeader.d.ts +1 -1
  222. package/es/page-header/styles/light.d.ts +2 -2
  223. package/es/pagination/src/Pagination.d.ts +9 -2
  224. package/es/pagination/src/Pagination.js +6 -4
  225. package/es/pagination/src/interface.d.ts +9 -8
  226. package/es/pagination/src/utils.d.ts +1 -1
  227. package/es/pagination/styles/light.d.ts +2 -2
  228. package/es/popconfirm/src/Popconfirm.d.ts +2 -2
  229. package/es/popconfirm/src/interface.d.ts +1 -1
  230. package/es/popconfirm/styles/light.d.ts +2 -2
  231. package/es/popover/src/Popover.d.ts +2 -2
  232. package/es/popover/src/interface.d.ts +3 -3
  233. package/es/popover/styles/light.d.ts +2 -2
  234. package/es/popselect/src/Popselect.d.ts +2 -2
  235. package/es/popselect/src/interface.d.ts +2 -2
  236. package/es/popselect/styles/light.d.ts +1 -1
  237. package/es/progress/src/Line.js +3 -1
  238. package/es/progress/src/Progress.d.ts +1 -1
  239. package/es/progress/src/interface.d.ts +1 -1
  240. package/es/progress/styles/light.d.ts +2 -2
  241. package/es/radio/src/Radio.d.ts +8 -1
  242. package/es/radio/src/Radio.js +2 -1
  243. package/es/radio/src/RadioButton.d.ts +1 -1
  244. package/es/radio/src/RadioGroup.d.ts +10 -1
  245. package/es/radio/src/interface.d.ts +2 -2
  246. package/es/radio/src/styles/radio.cssr.js +1 -0
  247. package/es/radio/src/use-radio.d.ts +1 -1
  248. package/es/radio/styles/_common.d.ts +1 -0
  249. package/es/radio/styles/_common.js +2 -1
  250. package/es/radio/styles/light.d.ts +3 -2
  251. package/es/rate/src/Rate.d.ts +1 -1
  252. package/es/rate/src/interface.d.ts +2 -2
  253. package/es/rate/styles/light.d.ts +2 -2
  254. package/es/result/src/Result.d.ts +1 -1
  255. package/es/result/styles/light.d.ts +2 -2
  256. package/es/scrollbar/src/Scrollbar.d.ts +2 -2
  257. package/es/select/src/Select.d.ts +5 -1
  258. package/es/select/src/Select.js +5 -2
  259. package/es/select/src/interface.d.ts +12 -12
  260. package/es/select/styles/light.d.ts +2 -2
  261. package/es/skeleton/src/Skeleton.d.ts +1 -1
  262. package/es/skeleton/styles/light.d.ts +2 -2
  263. package/es/slider/src/Slider.d.ts +1 -1
  264. package/es/slider/src/interface.d.ts +1 -1
  265. package/es/slider/src/utils.d.ts +3 -3
  266. package/es/slider/styles/light.d.ts +2 -2
  267. package/es/space/src/Space.d.ts +3 -3
  268. package/es/space/styles/light.d.ts +2 -2
  269. package/es/spin/src/Spin.d.ts +1 -1
  270. package/es/spin/styles/light.d.ts +2 -2
  271. package/es/statistic/src/Statistic.d.ts +1 -1
  272. package/es/statistic/styles/light.d.ts +2 -2
  273. package/es/steps/src/Step.d.ts +1 -1
  274. package/es/steps/src/Steps.d.ts +1 -1
  275. package/es/steps/styles/light.d.ts +2 -2
  276. package/es/switch/src/Switch.d.ts +1 -1
  277. package/es/switch/src/interface.d.ts +2 -2
  278. package/es/switch/styles/light.d.ts +2 -2
  279. package/es/table/src/Table.d.ts +1 -1
  280. package/es/table/styles/light.d.ts +2 -2
  281. package/es/tabs/src/Tab.d.ts +1 -1
  282. package/es/tabs/src/TabPane.d.ts +1 -1
  283. package/es/tabs/src/Tabs.d.ts +123 -1
  284. package/es/tabs/src/Tabs.js +83 -61
  285. package/es/tabs/src/interface.d.ts +8 -8
  286. package/es/tabs/src/styles/index.cssr.js +49 -2
  287. package/es/tabs/styles/_common.d.ts +12 -0
  288. package/es/tabs/styles/_common.js +12 -0
  289. package/es/tabs/styles/light.d.ts +14 -2
  290. package/es/tag/src/Tag.d.ts +1 -1
  291. package/es/tag/styles/light.d.ts +2 -2
  292. package/es/themes/interface.d.ts +1 -1
  293. package/es/themes/utils.d.ts +2 -2
  294. package/es/thing/src/Thing.d.ts +1 -1
  295. package/es/thing/styles/light.d.ts +2 -2
  296. package/es/time/src/Time.d.ts +1 -1
  297. package/es/time-picker/src/TimePicker.d.ts +1 -1
  298. package/es/time-picker/src/interface.d.ts +9 -9
  299. package/es/time-picker/styles/light.d.ts +2 -2
  300. package/es/timeline/src/Timeline.d.ts +1 -1
  301. package/es/timeline/src/TimelineItem.d.ts +1 -1
  302. package/es/timeline/styles/light.d.ts +2 -2
  303. package/es/tooltip/src/Tooltip.d.ts +2 -2
  304. package/es/tooltip/styles/light.d.ts +2 -2
  305. package/es/transfer/src/Transfer.d.ts +11 -1
  306. package/es/transfer/src/TransferFilter.d.ts +1 -0
  307. package/es/transfer/src/TransferList.d.ts +1 -0
  308. package/es/transfer/src/TransferListItem.d.ts +1 -0
  309. package/es/transfer/src/interface.d.ts +6 -6
  310. package/es/transfer/styles/light.d.ts +3 -2
  311. package/es/tree/src/Tree.d.ts +24 -12
  312. package/es/tree/src/Tree.js +36 -34
  313. package/es/tree/src/TreeNode.js +4 -2
  314. package/es/tree/src/TreeNodeCheckbox.d.ts +1 -0
  315. package/es/tree/src/interface.d.ts +16 -16
  316. package/es/tree/styles/light.d.ts +3 -2
  317. package/es/tree-select/src/TreeSelect.d.ts +22 -5
  318. package/es/tree-select/src/TreeSelect.js +1 -1
  319. package/es/tree-select/src/interface.d.ts +12 -12
  320. package/es/tree-select/styles/light.d.ts +3 -2
  321. package/es/typography/src/a.d.ts +1 -1
  322. package/es/typography/src/blockquote.d.ts +1 -1
  323. package/es/typography/src/create-header.d.ts +1 -1
  324. package/es/typography/src/ol.d.ts +1 -1
  325. package/es/typography/src/p.d.ts +1 -1
  326. package/es/typography/src/text.d.ts +1 -1
  327. package/es/typography/src/ul.d.ts +1 -1
  328. package/es/typography/styles/light.d.ts +2 -2
  329. package/es/upload/src/Upload.d.ts +1 -1
  330. package/es/upload/src/Upload.js +2 -4
  331. package/es/upload/src/interface.d.ts +16 -16
  332. package/es/upload/src/utils.js +7 -9
  333. package/es/upload/styles/light.d.ts +2 -2
  334. package/es/version.d.ts +1 -1
  335. package/es/version.js +1 -1
  336. package/es/watermark/src/Watermark.d.ts +1 -1
  337. package/es/watermark/styles/light.d.ts +1 -1
  338. package/lib/_internal/loading/src/Loading.d.ts +1 -1
  339. package/lib/_internal/scrollbar/src/Scrollbar.d.ts +4 -4
  340. package/lib/_internal/scrollbar/styles/light.d.ts +2 -2
  341. package/lib/_internal/select-menu/src/interface.d.ts +7 -7
  342. package/lib/_internal/select-menu/styles/light.d.ts +2 -2
  343. package/lib/_internal/selection/src/interface.d.ts +1 -1
  344. package/lib/_internal/selection/styles/light.d.ts +2 -2
  345. package/lib/_mixins/use-config.d.ts +1 -1
  346. package/lib/_mixins/use-form-item.d.ts +2 -2
  347. package/lib/_mixins/use-theme.d.ts +6 -6
  348. package/lib/_styles/common/light.d.ts +1 -1
  349. package/lib/_utils/cssr/create-key.d.ts +3 -3
  350. package/lib/_utils/env/is-native-lazy-load.d.ts +1 -1
  351. package/lib/_utils/env/is-native-lazy-load.js +2 -3
  352. package/lib/_utils/naive/extract-public-props.d.ts +4 -4
  353. package/lib/_utils/naive/mutable.d.ts +1 -1
  354. package/lib/_utils/naive/prop.d.ts +1 -1
  355. package/lib/_utils/vue/call.d.ts +1 -1
  356. package/lib/affix/src/Affix.d.ts +1 -1
  357. package/lib/affix/src/utils.d.ts +1 -1
  358. package/lib/alert/src/Alert.d.ts +1 -1
  359. package/lib/alert/styles/light.d.ts +2 -2
  360. package/lib/anchor/src/AnchorAdapter.d.ts +1 -1
  361. package/lib/anchor/src/Link.d.ts +1 -1
  362. package/lib/anchor/src/utils.d.ts +1 -1
  363. package/lib/anchor/styles/light.d.ts +2 -2
  364. package/lib/auto-complete/src/AutoComplete.d.ts +1 -1
  365. package/lib/auto-complete/src/interface.d.ts +5 -5
  366. package/lib/auto-complete/styles/light.d.ts +2 -2
  367. package/lib/avatar/src/Avatar.d.ts +1 -1
  368. package/lib/avatar/src/Avatar.js +7 -1
  369. package/lib/avatar/src/interface.d.ts +2 -2
  370. package/lib/avatar/styles/light.d.ts +3 -3
  371. package/lib/avatar-group/src/AvatarGroup.d.ts +1 -1
  372. package/lib/avatar-group/styles/light.d.ts +2 -2
  373. package/lib/back-top/src/BackTop.d.ts +1 -1
  374. package/lib/back-top/styles/light.d.ts +2 -2
  375. package/lib/badge/src/Badge.d.ts +7 -1
  376. package/lib/badge/src/Badge.js +15 -3
  377. package/lib/badge/styles/light.d.ts +2 -2
  378. package/lib/breadcrumb/src/Breadcrumb.d.ts +1 -1
  379. package/lib/breadcrumb/src/BreadcrumbItem.d.ts +1 -1
  380. package/lib/breadcrumb/styles/light.d.ts +2 -2
  381. package/lib/button/src/Button.d.ts +4 -4
  382. package/lib/button/src/interface.d.ts +2 -2
  383. package/lib/button/styles/light.d.ts +2 -2
  384. package/lib/button-group/src/ButtonGroup.d.ts +1 -1
  385. package/lib/button-group/styles/light.d.ts +1 -1
  386. package/lib/calendar/src/Calendar.d.ts +1 -1
  387. package/lib/calendar/src/interface.d.ts +2 -2
  388. package/lib/calendar/styles/light.d.ts +2 -2
  389. package/lib/card/src/Card.d.ts +23 -18
  390. package/lib/card/src/Card.js +8 -7
  391. package/lib/card/styles/light.d.ts +2 -2
  392. package/lib/carousel/src/Carousel.d.ts +2 -2
  393. package/lib/carousel/src/CarouselDots.d.ts +1 -1
  394. package/lib/carousel/styles/light.d.ts +2 -2
  395. package/lib/cascader/src/Cascader.d.ts +11 -1
  396. package/lib/cascader/src/CascaderMenu.d.ts +1 -0
  397. package/lib/cascader/src/CascaderOption.d.ts +1 -0
  398. package/lib/cascader/src/CascaderSelectMenu.d.ts +1 -0
  399. package/lib/cascader/src/CascaderSubmenu.d.ts +1 -0
  400. package/lib/cascader/src/interface.d.ts +11 -11
  401. package/lib/cascader/styles/light.d.ts +3 -2
  402. package/lib/checkbox/src/Checkbox.d.ts +12 -1
  403. package/lib/checkbox/src/Checkbox.js +2 -1
  404. package/lib/checkbox/src/CheckboxGroup.d.ts +1 -1
  405. package/lib/checkbox/src/interface.d.ts +2 -2
  406. package/lib/checkbox/src/styles/index.cssr.js +1 -0
  407. package/lib/checkbox/styles/_common.d.ts +1 -0
  408. package/lib/checkbox/styles/_common.js +2 -1
  409. package/lib/checkbox/styles/light.d.ts +3 -2
  410. package/lib/code/src/Code.d.ts +1 -1
  411. package/lib/code/styles/light.d.ts +2 -2
  412. package/lib/collapse/src/Collapse.d.ts +1 -1
  413. package/lib/collapse/src/CollapseItem.d.ts +1 -1
  414. package/lib/collapse/src/interface.d.ts +4 -4
  415. package/lib/collapse/styles/light.d.ts +2 -2
  416. package/lib/collapse-transition/src/CollapseTransition.d.ts +1 -1
  417. package/lib/collapse-transition/styles/light.d.ts +2 -2
  418. package/lib/color-picker/src/ColorPicker.d.ts +1 -1
  419. package/lib/color-picker/src/interface.d.ts +5 -5
  420. package/lib/color-picker/src/utils.d.ts +2 -2
  421. package/lib/color-picker/styles/light.d.ts +2 -2
  422. package/lib/config-provider/src/ConfigProvider.d.ts +1 -1
  423. package/lib/config-provider/src/interface.d.ts +1 -1
  424. package/lib/config-provider/src/internal-interface.d.ts +3 -5
  425. package/lib/config-provider/src/katex.d.ts +1 -1
  426. package/lib/countdown/src/Countdown.d.ts +1 -1
  427. package/lib/create.d.ts +1 -1
  428. package/lib/data-table/src/DataTable.d.ts +14 -0
  429. package/lib/data-table/src/HeaderButton/FilterButton.d.ts +2 -0
  430. package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +2 -0
  431. package/lib/data-table/src/TableParts/Body.d.ts +2 -0
  432. package/lib/data-table/src/TableParts/Cell.d.ts +4 -0
  433. package/lib/data-table/src/TableParts/Header.d.ts +2 -0
  434. package/lib/data-table/src/interface.d.ts +52 -52
  435. package/lib/data-table/styles/light.d.ts +4 -2
  436. package/lib/date-picker/src/DatePicker.d.ts +2 -2
  437. package/lib/date-picker/src/DatePicker.js +2 -2
  438. package/lib/date-picker/src/config.d.ts +1 -1
  439. package/lib/date-picker/src/interface.d.ts +21 -21
  440. package/lib/date-picker/src/panel/use-panel-common.d.ts +1 -1
  441. package/lib/date-picker/styles/light.d.ts +2 -2
  442. package/lib/descriptions/src/Descriptions.d.ts +2 -2
  443. package/lib/descriptions/src/DescriptionsItem.d.ts +1 -1
  444. package/lib/descriptions/styles/light.d.ts +2 -2
  445. package/lib/dialog/src/DialogProvider.d.ts +5 -5
  446. package/lib/dialog/src/dialogProps.d.ts +1 -1
  447. package/lib/dialog/src/interface.d.ts +1 -1
  448. package/lib/dialog/styles/light.d.ts +2 -2
  449. package/lib/discrete/src/discreteApp.d.ts +2 -2
  450. package/lib/discrete/src/interface.d.ts +3 -3
  451. package/lib/divider/src/Divider.d.ts +1 -1
  452. package/lib/divider/styles/light.d.ts +2 -2
  453. package/lib/drawer/src/Drawer.d.ts +1 -1
  454. package/lib/drawer/src/DrawerBodyWrapper.d.ts +1 -1
  455. package/lib/drawer/src/DrawerContent.d.ts +1 -1
  456. package/lib/drawer/src/interface.d.ts +1 -1
  457. package/lib/drawer/styles/light.d.ts +2 -2
  458. package/lib/dropdown/src/Dropdown.d.ts +1 -1
  459. package/lib/dropdown/src/interface.d.ts +21 -21
  460. package/lib/dropdown/styles/light.d.ts +2 -2
  461. package/lib/dynamic-input/src/DynamicInput.d.ts +1 -1
  462. package/lib/dynamic-input/src/interface.d.ts +1 -1
  463. package/lib/dynamic-input/styles/light.d.ts +2 -2
  464. package/lib/dynamic-tags/src/DynamicTags.d.ts +1 -1
  465. package/lib/dynamic-tags/src/interface.d.ts +3 -3
  466. package/lib/dynamic-tags/styles/light.d.ts +1 -1
  467. package/lib/element/src/Element.d.ts +1 -1
  468. package/lib/element/styles/light.d.ts +1 -1
  469. package/lib/ellipsis/src/Ellipsis.d.ts +1 -1
  470. package/lib/ellipsis/src/Ellipsis.js +6 -0
  471. package/lib/ellipsis/styles/light.d.ts +1 -1
  472. package/lib/empty/src/Empty.d.ts +1 -1
  473. package/lib/empty/styles/light.d.ts +2 -2
  474. package/lib/equation/styles/light.d.ts +2 -2
  475. package/lib/form/src/Form.d.ts +11 -2
  476. package/lib/form/src/FormItem.d.ts +14 -4
  477. package/lib/form/src/FormItem.js +2 -1
  478. package/lib/form/src/FormItemCol.d.ts +12 -3
  479. package/lib/form/src/FormItemGridItem.d.ts +12 -3
  480. package/lib/form/src/FormItemRow.d.ts +11 -2
  481. package/lib/form/src/interface.d.ts +19 -19
  482. package/lib/form/src/styles/form-item.cssr.js +1 -0
  483. package/lib/form/styles/_common.d.ts +1 -0
  484. package/lib/form/styles/_common.js +2 -1
  485. package/lib/form/styles/light.d.ts +3 -2
  486. package/lib/gradient-text/src/GradientText.d.ts +2 -2
  487. package/lib/gradient-text/styles/light.d.ts +2 -2
  488. package/lib/grid/src/Grid.d.ts +1 -1
  489. package/lib/grid/src/GridItem.d.ts +1 -1
  490. package/lib/icon/src/Icon.d.ts +2 -2
  491. package/lib/icon/styles/light.d.ts +2 -2
  492. package/lib/icon-wrapper/src/IconWrapper.d.ts +1 -1
  493. package/lib/icon-wrapper/styles/light.d.ts +2 -2
  494. package/lib/image/src/Image.d.ts +1 -1
  495. package/lib/image/src/Image.js +5 -1
  496. package/lib/image/src/ImageGroup.d.ts +1 -1
  497. package/lib/image/src/ImagePreview.js +5 -4
  498. package/lib/image/src/utils.d.ts +1 -1
  499. package/lib/image/styles/light.d.ts +2 -2
  500. package/lib/input/src/Input.d.ts +1 -1
  501. package/lib/input/src/InputGroup.d.ts +1 -1
  502. package/lib/input/src/InputGroupLabel.d.ts +1 -1
  503. package/lib/input/src/interface.d.ts +4 -4
  504. package/lib/input/src/styles/input.cssr.js +1 -0
  505. package/lib/input/styles/light.d.ts +2 -2
  506. package/lib/input-number/src/InputNumber.d.ts +1 -1
  507. package/lib/input-number/src/interface.d.ts +2 -2
  508. package/lib/input-number/styles/light.d.ts +2 -2
  509. package/lib/layout/src/Layout.d.ts +1 -1
  510. package/lib/layout/src/LayoutFooter.d.ts +1 -1
  511. package/lib/layout/src/LayoutHeader.d.ts +1 -1
  512. package/lib/layout/src/LayoutSider.d.ts +1 -1
  513. package/lib/layout/src/interface.d.ts +1 -1
  514. package/lib/layout/styles/light.d.ts +2 -2
  515. package/lib/legacy-grid/src/Col.d.ts +1 -1
  516. package/lib/legacy-grid/src/Row.d.ts +1 -1
  517. package/lib/legacy-grid/src/interface.d.ts +1 -1
  518. package/lib/legacy-grid/styles/dark.d.ts +1 -1
  519. package/lib/legacy-grid/styles/light.d.ts +1 -1
  520. package/lib/legacy-transfer/src/Transfer.d.ts +11 -1
  521. package/lib/legacy-transfer/src/TransferFilter.d.ts +1 -0
  522. package/lib/legacy-transfer/src/TransferList.d.ts +1 -0
  523. package/lib/legacy-transfer/src/TransferListItem.d.ts +1 -0
  524. package/lib/legacy-transfer/src/interface.d.ts +3 -3
  525. package/lib/legacy-transfer/styles/light.d.ts +3 -2
  526. package/lib/list/src/List.d.ts +1 -1
  527. package/lib/list/styles/light.d.ts +2 -2
  528. package/lib/loading-bar/src/LoadingBarProvider.d.ts +4 -4
  529. package/lib/loading-bar/styles/light.d.ts +2 -2
  530. package/lib/locales/common/enUS.d.ts +1 -1
  531. package/lib/locales/common/koKR.js +9 -9
  532. package/lib/locales/utils/index.d.ts +1 -1
  533. package/lib/log/src/Log.d.ts +1 -1
  534. package/lib/log/styles/light.d.ts +2 -2
  535. package/lib/mention/src/Mention.d.ts +1 -1
  536. package/lib/mention/src/interface.d.ts +1 -1
  537. package/lib/mention/styles/light.d.ts +2 -2
  538. package/lib/menu/src/Menu.d.ts +2 -2
  539. package/lib/menu/src/Submenu.js +2 -2
  540. package/lib/menu/src/interface.d.ts +11 -11
  541. package/lib/menu/src/use-menu-child-props.d.ts +1 -1
  542. package/lib/menu/styles/light.d.ts +2 -2
  543. package/lib/message/src/MessageProvider.d.ts +5 -7
  544. package/lib/message/src/message-props.d.ts +2 -2
  545. package/lib/message/src/types.d.ts +3 -3
  546. package/lib/message/styles/light.d.ts +2 -2
  547. package/lib/modal/src/BodyWrapper.d.ts +9 -0
  548. package/lib/modal/src/Modal.d.ts +14 -1
  549. package/lib/modal/src/interface.d.ts +1 -1
  550. package/lib/modal/src/presetProps.d.ts +5 -1
  551. package/lib/modal/styles/light.d.ts +2 -2
  552. package/lib/notification/src/NotificationEnvironment.d.ts +1 -1
  553. package/lib/notification/src/NotificationProvider.d.ts +7 -7
  554. package/lib/notification/styles/light.d.ts +2 -2
  555. package/lib/number-animation/src/NumberAnimation.d.ts +1 -1
  556. package/lib/page-header/src/PageHeader.d.ts +1 -1
  557. package/lib/page-header/styles/light.d.ts +2 -2
  558. package/lib/pagination/src/Pagination.d.ts +9 -2
  559. package/lib/pagination/src/Pagination.js +6 -4
  560. package/lib/pagination/src/interface.d.ts +9 -8
  561. package/lib/pagination/src/utils.d.ts +1 -1
  562. package/lib/pagination/styles/light.d.ts +2 -2
  563. package/lib/popconfirm/src/Popconfirm.d.ts +2 -2
  564. package/lib/popconfirm/src/interface.d.ts +1 -1
  565. package/lib/popconfirm/styles/light.d.ts +2 -2
  566. package/lib/popover/src/Popover.d.ts +2 -2
  567. package/lib/popover/src/interface.d.ts +3 -3
  568. package/lib/popover/styles/light.d.ts +2 -2
  569. package/lib/popselect/src/Popselect.d.ts +2 -2
  570. package/lib/popselect/src/interface.d.ts +2 -2
  571. package/lib/popselect/styles/light.d.ts +1 -1
  572. package/lib/progress/src/Line.js +3 -1
  573. package/lib/progress/src/Progress.d.ts +1 -1
  574. package/lib/progress/src/interface.d.ts +1 -1
  575. package/lib/progress/styles/light.d.ts +2 -2
  576. package/lib/radio/src/Radio.d.ts +8 -1
  577. package/lib/radio/src/Radio.js +2 -1
  578. package/lib/radio/src/RadioButton.d.ts +1 -1
  579. package/lib/radio/src/RadioGroup.d.ts +10 -1
  580. package/lib/radio/src/interface.d.ts +2 -2
  581. package/lib/radio/src/styles/radio.cssr.js +1 -0
  582. package/lib/radio/src/use-radio.d.ts +1 -1
  583. package/lib/radio/styles/_common.d.ts +1 -0
  584. package/lib/radio/styles/_common.js +2 -1
  585. package/lib/radio/styles/light.d.ts +3 -2
  586. package/lib/rate/src/Rate.d.ts +1 -1
  587. package/lib/rate/src/interface.d.ts +2 -2
  588. package/lib/rate/styles/light.d.ts +2 -2
  589. package/lib/result/src/Result.d.ts +1 -1
  590. package/lib/result/styles/light.d.ts +2 -2
  591. package/lib/scrollbar/src/Scrollbar.d.ts +2 -2
  592. package/lib/select/src/Select.d.ts +5 -1
  593. package/lib/select/src/Select.js +5 -2
  594. package/lib/select/src/interface.d.ts +12 -12
  595. package/lib/select/styles/light.d.ts +2 -2
  596. package/lib/skeleton/src/Skeleton.d.ts +1 -1
  597. package/lib/skeleton/styles/light.d.ts +2 -2
  598. package/lib/slider/src/Slider.d.ts +1 -1
  599. package/lib/slider/src/interface.d.ts +1 -1
  600. package/lib/slider/src/utils.d.ts +3 -3
  601. package/lib/slider/styles/light.d.ts +2 -2
  602. package/lib/space/src/Space.d.ts +3 -3
  603. package/lib/space/styles/light.d.ts +2 -2
  604. package/lib/spin/src/Spin.d.ts +1 -1
  605. package/lib/spin/styles/light.d.ts +2 -2
  606. package/lib/statistic/src/Statistic.d.ts +1 -1
  607. package/lib/statistic/styles/light.d.ts +2 -2
  608. package/lib/steps/src/Step.d.ts +1 -1
  609. package/lib/steps/src/Steps.d.ts +1 -1
  610. package/lib/steps/styles/light.d.ts +2 -2
  611. package/lib/switch/src/Switch.d.ts +1 -1
  612. package/lib/switch/src/interface.d.ts +2 -2
  613. package/lib/switch/styles/light.d.ts +2 -2
  614. package/lib/table/src/Table.d.ts +1 -1
  615. package/lib/table/styles/light.d.ts +2 -2
  616. package/lib/tabs/src/Tab.d.ts +1 -1
  617. package/lib/tabs/src/TabPane.d.ts +1 -1
  618. package/lib/tabs/src/Tabs.d.ts +123 -1
  619. package/lib/tabs/src/Tabs.js +83 -61
  620. package/lib/tabs/src/interface.d.ts +8 -8
  621. package/lib/tabs/src/styles/index.cssr.js +49 -2
  622. package/lib/tabs/styles/_common.d.ts +12 -0
  623. package/lib/tabs/styles/_common.js +12 -0
  624. package/lib/tabs/styles/light.d.ts +14 -2
  625. package/lib/tag/src/Tag.d.ts +1 -1
  626. package/lib/tag/styles/light.d.ts +2 -2
  627. package/lib/themes/interface.d.ts +1 -1
  628. package/lib/themes/utils.d.ts +2 -2
  629. package/lib/thing/src/Thing.d.ts +1 -1
  630. package/lib/thing/styles/light.d.ts +2 -2
  631. package/lib/time/src/Time.d.ts +1 -1
  632. package/lib/time-picker/src/TimePicker.d.ts +1 -1
  633. package/lib/time-picker/src/interface.d.ts +9 -9
  634. package/lib/time-picker/styles/light.d.ts +2 -2
  635. package/lib/timeline/src/Timeline.d.ts +1 -1
  636. package/lib/timeline/src/TimelineItem.d.ts +1 -1
  637. package/lib/timeline/styles/light.d.ts +2 -2
  638. package/lib/tooltip/src/Tooltip.d.ts +2 -2
  639. package/lib/tooltip/styles/light.d.ts +2 -2
  640. package/lib/transfer/src/Transfer.d.ts +11 -1
  641. package/lib/transfer/src/TransferFilter.d.ts +1 -0
  642. package/lib/transfer/src/TransferList.d.ts +1 -0
  643. package/lib/transfer/src/TransferListItem.d.ts +1 -0
  644. package/lib/transfer/src/interface.d.ts +6 -6
  645. package/lib/transfer/styles/light.d.ts +3 -2
  646. package/lib/tree/src/Tree.d.ts +24 -12
  647. package/lib/tree/src/Tree.js +36 -34
  648. package/lib/tree/src/TreeNode.js +4 -2
  649. package/lib/tree/src/TreeNodeCheckbox.d.ts +1 -0
  650. package/lib/tree/src/interface.d.ts +16 -16
  651. package/lib/tree/styles/light.d.ts +3 -2
  652. package/lib/tree-select/src/TreeSelect.d.ts +22 -5
  653. package/lib/tree-select/src/TreeSelect.js +1 -1
  654. package/lib/tree-select/src/interface.d.ts +12 -12
  655. package/lib/tree-select/styles/light.d.ts +3 -2
  656. package/lib/typography/src/a.d.ts +1 -1
  657. package/lib/typography/src/blockquote.d.ts +1 -1
  658. package/lib/typography/src/create-header.d.ts +1 -1
  659. package/lib/typography/src/ol.d.ts +1 -1
  660. package/lib/typography/src/p.d.ts +1 -1
  661. package/lib/typography/src/text.d.ts +1 -1
  662. package/lib/typography/src/ul.d.ts +1 -1
  663. package/lib/typography/styles/light.d.ts +2 -2
  664. package/lib/upload/src/Upload.d.ts +1 -1
  665. package/lib/upload/src/Upload.js +2 -4
  666. package/lib/upload/src/interface.d.ts +16 -16
  667. package/lib/upload/src/utils.js +7 -9
  668. package/lib/upload/styles/light.d.ts +2 -2
  669. package/lib/version.d.ts +1 -1
  670. package/lib/version.js +1 -1
  671. package/lib/watermark/src/Watermark.d.ts +1 -1
  672. package/lib/watermark/styles/light.d.ts +1 -1
  673. package/package.json +13 -13
  674. package/web-types.json +80 -14
@@ -9,7 +9,7 @@ declare const exposedLoadingProps: {
9
9
  default: undefined;
10
10
  };
11
11
  };
12
- export declare type BaseLoadingExposedProps = ExtractPublicPropTypes<typeof exposedLoadingProps>;
12
+ export type BaseLoadingExposedProps = ExtractPublicPropTypes<typeof exposedLoadingProps>;
13
13
  declare const _default: import("vue").DefineComponent<{
14
14
  strokeWidth: {
15
15
  type: NumberConstructor;
@@ -93,8 +93,8 @@ declare const scrollbarProps: {
93
93
  colorHover: string;
94
94
  }, any>>>;
95
95
  };
96
- export declare type ScrollbarProps = ExtractPublicPropTypes<typeof scrollbarProps>;
97
- export declare type ScrollbarInternalProps = ExtractInternalPropTypes<typeof scrollbarProps>;
96
+ export type ScrollbarProps = ExtractPublicPropTypes<typeof scrollbarProps>;
97
+ export type ScrollbarInternalProps = ExtractInternalPropTypes<typeof scrollbarProps>;
98
98
  declare const Scrollbar: import("vue").DefineComponent<{
99
99
  readonly size: {
100
100
  readonly type: NumberConstructor;
@@ -234,8 +234,8 @@ declare const Scrollbar: import("vue").DefineComponent<{
234
234
  readonly triggerDisplayManually: boolean;
235
235
  readonly internalHoistYRail: boolean;
236
236
  }>;
237
- declare type NativeScrollbarProps = Omit<HTMLAttributes, keyof ScrollbarInternalProps>;
238
- declare type MergedProps = Partial<ScrollbarInternalProps & NativeScrollbarProps>;
237
+ type NativeScrollbarProps = Omit<HTMLAttributes, keyof ScrollbarInternalProps>;
238
+ type MergedProps = Partial<ScrollbarInternalProps & NativeScrollbarProps>;
239
239
  export default Scrollbar;
240
240
  export declare const XScrollbar: new () => {
241
241
  $props: MergedProps;
@@ -4,7 +4,7 @@ export declare const self: (vars: ThemeCommonVars) => {
4
4
  color: string;
5
5
  colorHover: string;
6
6
  };
7
- export declare type ScrollbarThemeVars = ReturnType<typeof self>;
7
+ export type ScrollbarThemeVars = ReturnType<typeof self>;
8
8
  declare const scrollbarLight: Theme<'Scrollbar', ScrollbarThemeVars>;
9
9
  export default scrollbarLight;
10
- export declare type ScrollbarTheme = typeof scrollbarLight;
10
+ export type ScrollbarTheme = typeof scrollbarLight;
@@ -1,20 +1,20 @@
1
1
  import { VNodeChild, Ref, UnwrapRef, VNode, HTMLAttributes } from 'vue';
2
2
  import { TreeNode } from 'treemate';
3
3
  import type { SelectBaseOption, SelectGroupOption, SelectIgnoredOption } from '../../../select/src/interface';
4
- export declare type Size = 'small' | 'medium' | 'large' | 'huge';
5
- export declare type RenderLabel = (option: SelectBaseOption & SelectGroupOption & SelectIgnoredOption, selected: boolean) => VNodeChild;
6
- export declare type RenderLabelImpl = (option: SelectBaseOption | SelectGroupOption | SelectIgnoredOption, selected: boolean) => VNodeChild;
7
- export declare type RenderOption = (info: {
4
+ export type Size = 'small' | 'medium' | 'large' | 'huge';
5
+ export type RenderLabel = (option: SelectBaseOption & SelectGroupOption & SelectIgnoredOption, selected: boolean) => VNodeChild;
6
+ export type RenderLabelImpl = (option: SelectBaseOption | SelectGroupOption | SelectIgnoredOption, selected: boolean) => VNodeChild;
7
+ export type RenderOption = (info: {
8
8
  node: VNode;
9
9
  option: SelectBaseOption & SelectGroupOption & SelectIgnoredOption;
10
10
  selected: boolean;
11
11
  }) => VNodeChild;
12
- export declare type RenderOptionImpl = (info: {
12
+ export type RenderOptionImpl = (info: {
13
13
  node: VNode;
14
14
  option: SelectBaseOption | SelectGroupOption | SelectIgnoredOption;
15
15
  selected: boolean;
16
16
  }) => VNodeChild;
17
- export declare type NodeProps = (option: SelectBaseOption | SelectGroupOption) => HTMLAttributes & Record<string, unknown>;
17
+ export type NodeProps = (option: SelectBaseOption | SelectGroupOption) => HTMLAttributes & Record<string, unknown>;
18
18
  export interface InternalSelectMenuInjection {
19
19
  handleOptionMouseEnter: (e: MouseEvent, tmNode: TreeNode<SelectBaseOption>) => void;
20
20
  handleOptionClick: (e: MouseEvent, tmNode: TreeNode<SelectBaseOption>) => void;
@@ -37,4 +37,4 @@ export interface InternalExposedProps {
37
37
  }
38
38
  export declare const internalSelectionMenuInjectionKey: import("vue").InjectionKey<InternalSelectMenuInjection>;
39
39
  export declare const internalSelectionMenuBodyInjectionKey: import("vue").InjectionKey<Ref<HTMLElement | null>>;
40
- export declare type InternalSelectMenuRef = UnwrapRef<InternalExposedProps>;
40
+ export type InternalSelectMenuRef = UnwrapRef<InternalExposedProps>;
@@ -34,7 +34,7 @@ export declare const self: (vars: ThemeCommonVars) => {
34
34
  optionPaddingHuge: string;
35
35
  loadingSize: string;
36
36
  };
37
- export declare type InternalSelectMenuThemeVars = ReturnType<typeof self>;
37
+ export type InternalSelectMenuThemeVars = ReturnType<typeof self>;
38
38
  declare const internalSelectMenuLight: import("../../../_mixins").Theme<"InternalSelectMenu", {
39
39
  optionFontSizeSmall: string;
40
40
  optionFontSizeMedium: string;
@@ -89,4 +89,4 @@ declare const internalSelectMenuLight: import("../../../_mixins").Theme<"Interna
89
89
  }, any>;
90
90
  }>;
91
91
  export default internalSelectMenuLight;
92
- export declare type InternalSelectMenuTheme = typeof internalSelectMenuLight;
92
+ export type InternalSelectMenuTheme = typeof internalSelectMenuLight;
@@ -1,6 +1,6 @@
1
1
  import { VNodeChild } from 'vue';
2
2
  import type { SelectOption } from '../../../select/src/interface';
3
- export declare type RenderTag = (props: {
3
+ export type RenderTag = (props: {
4
4
  option: SelectOption;
5
5
  handleClose: () => void;
6
6
  }) => VNodeChild;
@@ -53,7 +53,7 @@ declare const self: (vars: ThemeCommonVars) => {
53
53
  clearSize: string;
54
54
  arrowSize: string;
55
55
  };
56
- export declare type InternalSelectionThemeVars = ReturnType<typeof self>;
56
+ export type InternalSelectionThemeVars = ReturnType<typeof self>;
57
57
  declare const internalSelectionLight: import("../../../_mixins").Theme<"InternalSelection", {
58
58
  fontSizeTiny: string;
59
59
  fontSizeSmall: string;
@@ -124,4 +124,4 @@ declare const internalSelectionLight: import("../../../_mixins").Theme<"Internal
124
124
  }, any>;
125
125
  }>;
126
126
  export default internalSelectionLight;
127
- export declare type InternalSelectionTheme = typeof internalSelectionLight;
127
+ export type InternalSelectionTheme = typeof internalSelectionLight;
@@ -1,6 +1,6 @@
1
1
  import { ComputedRef, Ref } from 'vue';
2
2
  import type { RtlEnabledState, GlobalComponentConfig, Breakpoints } from '../config-provider/src/internal-interface';
3
- declare type UseConfigProps = Readonly<{
3
+ type UseConfigProps = Readonly<{
4
4
  bordered?: boolean;
5
5
  [key: string]: unknown;
6
6
  }>;
@@ -1,7 +1,7 @@
1
1
  import { ComputedRef, Ref } from 'vue';
2
2
  import type { FormValidationStatus } from '../form/src/interface';
3
- declare type FormItemSize = 'small' | 'medium' | 'large';
4
- declare type AllowedSize = 'tiny' | 'small' | 'medium' | 'large' | 'huge' | number;
3
+ type FormItemSize = 'small' | 'medium' | 'large';
4
+ type AllowedSize = 'tiny' | 'small' | 'medium' | 'large' | 'huge' | number;
5
5
  export interface FormItemInjection {
6
6
  path: Ref<string | undefined>;
7
7
  disabled: Ref<boolean>;
@@ -18,25 +18,25 @@ export interface ThemePropsReactive<T> {
18
18
  themeOverrides?: ExtractThemeOverrides<T>;
19
19
  builtinThemeOverrides?: ExtractThemeOverrides<T>;
20
20
  }
21
- export declare type ExtractThemeVars<T> = T extends Theme<unknown, infer U, unknown> ? unknown extends U ? {} : U : {};
22
- export declare type ExtractPeerOverrides<T> = T extends Theme<unknown, unknown, infer V> ? {
21
+ export type ExtractThemeVars<T> = T extends Theme<unknown, infer U, unknown> ? unknown extends U ? {} : U : {};
22
+ export type ExtractPeerOverrides<T> = T extends Theme<unknown, unknown, infer V> ? {
23
23
  peers?: {
24
24
  [k in keyof V]?: ExtractThemeOverrides<V[k]>;
25
25
  };
26
26
  } : T;
27
- export declare type ExtractMergedPeerOverrides<T> = T extends Theme<unknown, unknown, infer V> ? {
27
+ export type ExtractMergedPeerOverrides<T> = T extends Theme<unknown, unknown, infer V> ? {
28
28
  [k in keyof V]?: ExtractPeerOverrides<V[k]>;
29
29
  } : T;
30
- export declare type ExtractThemeOverrides<T> = Partial<ExtractThemeVars<T>> & ExtractPeerOverrides<T> & {
30
+ export type ExtractThemeOverrides<T> = Partial<ExtractThemeVars<T>> & ExtractPeerOverrides<T> & {
31
31
  common?: ThemeCommonVars;
32
32
  };
33
33
  export declare function createTheme<N extends string, T, R>(theme: Theme<N, T, R>): Theme<N, T, R>;
34
- declare type UseThemeProps<T> = Readonly<{
34
+ type UseThemeProps<T> = Readonly<{
35
35
  theme?: T | undefined;
36
36
  themeOverrides?: ExtractThemeOverrides<T>;
37
37
  builtinThemeOverrides?: ExtractThemeOverrides<T>;
38
38
  }>;
39
- export declare type MergedTheme<T> = T extends Theme<unknown, infer V, infer W> ? {
39
+ export type MergedTheme<T> = T extends Theme<unknown, infer V, infer W> ? {
40
40
  common: ThemeCommonVars;
41
41
  self: V;
42
42
  peers: W;
@@ -104,4 +104,4 @@ declare const derived: {
104
104
  name: "common";
105
105
  };
106
106
  export default derived;
107
- export declare type ThemeCommonVars = typeof derived;
107
+ export type ThemeCommonVars = typeof derived;
@@ -37,8 +37,8 @@ interface characterMap {
37
37
  m: 'M';
38
38
  [key: string]: string;
39
39
  }
40
- declare type char = '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '0' | 'q' | 'w' | 'e' | 'r' | 't' | 'y' | 'u' | 'i' | 'o' | 'p' | 'a' | 's' | 'd' | 'f' | 'g' | 'h' | 'j' | 'k' | 'l' | 'z' | 'x' | 'c' | 'v' | 'b' | 'n' | 'm';
41
- declare type RestChars<T> = T extends `${char}${infer P}` ? P : '';
42
- declare type UpperFirst<T> = T extends `${infer P}${string}` ? `${characterMap[P]}${RestChars<T>}` : T;
40
+ type char = '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '0' | 'q' | 'w' | 'e' | 'r' | 't' | 'y' | 'u' | 'i' | 'o' | 'p' | 'a' | 's' | 'd' | 'f' | 'g' | 'h' | 'j' | 'k' | 'l' | 'z' | 'x' | 'c' | 'v' | 'b' | 'n' | 'm';
41
+ type RestChars<T> = T extends `${char}${infer P}` ? P : '';
42
+ type UpperFirst<T> = T extends `${infer P}${string}` ? `${characterMap[P]}${RestChars<T>}` : T;
43
43
  export declare function createKey<P extends string, S extends string>(prefix: P, suffix: S): S extends 'default' ? P : `${P}${UpperFirst<S>}`;
44
44
  export {};
@@ -1 +1 @@
1
- export declare const isImageSupportNativeLazy = false;
1
+ export declare const isImageSupportNativeLazy: boolean;
@@ -1,3 +1,2 @@
1
- export const isImageSupportNativeLazy = false;
2
- // Keep it to false currently, we will provide a prop to make it configuable
3
- // typeof document !== 'undefined' && 'loading' in document.createElement('img')
1
+ import { isBrowser } from './is-browser';
2
+ export const isImageSupportNativeLazy = isBrowser && 'loading' in document.createElement('img');
@@ -1,9 +1,9 @@
1
1
  import { ExtractPropTypes } from 'vue';
2
2
  import { useTheme } from '../../_mixins';
3
- declare type themePropKeys = keyof typeof useTheme.props;
4
- declare type RemoveReadonly<T> = {
3
+ type themePropKeys = keyof typeof useTheme.props;
4
+ type RemoveReadonly<T> = {
5
5
  -readonly [key in keyof T]: T[key];
6
6
  };
7
- export declare type ExtractPublicPropTypes<T> = Omit<Partial<RemoveReadonly<ExtractPropTypes<T>>>, Exclude<themePropKeys, 'themeOverrides'> | Extract<keyof T, `internal${string}`>>;
8
- export declare type ExtractInternalPropTypes<T> = Partial<ExtractPropTypes<T>>;
7
+ export type ExtractPublicPropTypes<T> = Omit<Partial<RemoveReadonly<ExtractPropTypes<T>>>, Exclude<themePropKeys, 'themeOverrides'> | Extract<keyof T, `internal${string}`>>;
8
+ export type ExtractInternalPropTypes<T> = Partial<ExtractPropTypes<T>>;
9
9
  export {};
@@ -1,3 +1,3 @@
1
- export declare type Mutable<T> = T extends Record<string, unknown> ? {
1
+ export type Mutable<T> = T extends Record<string, unknown> ? {
2
2
  -readonly [P in keyof T]: T[P] extends ReadonlyArray<infer U> ? Array<Mutable<U>> : Mutable<T[P]>;
3
3
  } : T;
@@ -6,6 +6,6 @@ interface SmallerSizeMap {
6
6
  large: 'medium';
7
7
  huge: 'large';
8
8
  }
9
- declare type SmallerSize<T extends keyof SmallerSizeMap> = SmallerSizeMap[T];
9
+ type SmallerSize<T extends keyof SmallerSizeMap> = SmallerSizeMap[T];
10
10
  export declare function smallerSize<T extends keyof SmallerSizeMap>(size: T): SmallerSize<T>;
11
11
  export {};
@@ -4,4 +4,4 @@ declare function call<A1, A2>(funcs: MaybeArray<(a1: A1, a2: A2) => void>, a1: A
4
4
  declare function call<A1, A2, A3>(funcs: MaybeArray<(a1: A1, a2: A2, a3: A3) => void>, a1: A1, a2: A2, a3: A3): void;
5
5
  declare function call<A1, A2, A3, A4>(funcs: MaybeArray<(a1: A1, a2: A2, a3: A3, a4: A4) => void>, a1: A1, a2: A2, a3: A3, a4: A4): void;
6
6
  export { call };
7
- export declare type MaybeArray<T> = T | T[];
7
+ export type MaybeArray<T> = T | T[];
@@ -28,7 +28,7 @@ export declare const affixProps: {
28
28
  };
29
29
  };
30
30
  export declare const affixPropKeys: ("bottom" | "top" | "position" | "target" | "listenTo" | "triggerTop" | "triggerBottom" | "offsetTop" | "offsetBottom")[];
31
- export declare type AffixProps = ExtractPublicPropTypes<typeof affixProps>;
31
+ export type AffixProps = ExtractPublicPropTypes<typeof affixProps>;
32
32
  declare const _default: import("vue").DefineComponent<{
33
33
  readonly listenTo: PropType<string | ScrollTarget | (() => HTMLElement) | undefined>;
34
34
  readonly top: NumberConstructor;
@@ -1,4 +1,4 @@
1
- export declare type ScrollTarget = Window | Document | HTMLElement;
1
+ export type ScrollTarget = Window | Document | HTMLElement;
2
2
  export declare function getScrollTop(target: ScrollTarget): number;
3
3
  export declare function getRect(target: ScrollTarget): {
4
4
  top: number;
@@ -215,7 +215,7 @@ export declare const alertProps: {
215
215
  padding: string;
216
216
  }, any>>>;
217
217
  };
218
- export declare type AlertProps = ExtractPublicPropTypes<typeof alertProps>;
218
+ export type AlertProps = ExtractPublicPropTypes<typeof alertProps>;
219
219
  declare const _default: import("vue").DefineComponent<{
220
220
  title: StringConstructor;
221
221
  showIcon: {
@@ -65,7 +65,7 @@ declare const self: (vars: ThemeCommonVars) => {
65
65
  closeMarginRtl: string;
66
66
  padding: string;
67
67
  };
68
- export declare type AlertThemeVars = ReturnType<typeof self>;
68
+ export type AlertThemeVars = ReturnType<typeof self>;
69
69
  declare const alertLight: Theme<'Alert', AlertThemeVars>;
70
70
  export default alertLight;
71
- export declare type AlertTheme = typeof alertLight;
71
+ export type AlertTheme = typeof alertLight;
@@ -87,7 +87,7 @@ export declare const anchorProps: {
87
87
  railWidth: string;
88
88
  }, any>>>;
89
89
  };
90
- export declare type AnchorProps = ExtractPublicPropTypes<typeof anchorProps>;
90
+ export type AnchorProps = ExtractPublicPropTypes<typeof anchorProps>;
91
91
  declare const _default: import("vue").DefineComponent<{
92
92
  readonly type: {
93
93
  readonly type: import("vue").PropType<"block" | "rail">;
@@ -13,7 +13,7 @@ export declare const anchorLinkProps: {
13
13
  readonly title: StringConstructor;
14
14
  readonly href: StringConstructor;
15
15
  };
16
- export declare type AnchorLinkProps = ExtractPublicPropTypes<typeof anchorLinkProps>;
16
+ export type AnchorLinkProps = ExtractPublicPropTypes<typeof anchorLinkProps>;
17
17
  declare const _default: import("vue").DefineComponent<{
18
18
  readonly title: StringConstructor;
19
19
  readonly href: StringConstructor;
@@ -1,4 +1,4 @@
1
- export declare type OffsetTarget = Window | Document | HTMLElement;
1
+ export type OffsetTarget = Window | Document | HTMLElement;
2
2
  export declare function getOffset(el: HTMLElement, scrollTarget: OffsetTarget): {
3
3
  top: number;
4
4
  height: number;
@@ -13,7 +13,7 @@ export declare const self: (vars: ThemeCommonVars) => {
13
13
  linkPadding: string;
14
14
  railWidth: string;
15
15
  };
16
- export declare type AnchorThemeVars = ReturnType<typeof self>;
16
+ export type AnchorThemeVars = ReturnType<typeof self>;
17
17
  declare const anchorLight: Theme<'Anchor', AnchorThemeVars>;
18
18
  export default anchorLight;
19
- export declare type AnchorTheme = typeof anchorLight;
19
+ export type AnchorTheme = typeof anchorLight;
@@ -413,7 +413,7 @@ export declare const autoCompleteProps: {
413
413
  }, any>;
414
414
  }>>>;
415
415
  };
416
- export declare type AutoCompleteProps = ExtractPublicPropTypes<typeof autoCompleteProps>;
416
+ export type AutoCompleteProps = ExtractPublicPropTypes<typeof autoCompleteProps>;
417
417
  declare const _default: import("vue").DefineComponent<{
418
418
  readonly to: {
419
419
  type: PropType<string | boolean | HTMLElement>;
@@ -1,12 +1,12 @@
1
1
  import { SelectGroupOption, SelectBaseOption } from '../../select/src/interface';
2
- export declare type AutoCompleteOption = SelectBaseOption<string, string>;
2
+ export type AutoCompleteOption = SelectBaseOption<string, string>;
3
3
  export interface AutoCompleteGroupOption extends Omit<SelectGroupOption, 'children'> {
4
4
  children: AutoCompleteOptions;
5
5
  }
6
- export declare type AutoCompleteOptions = Array<AutoCompleteOption | AutoCompleteGroupOption | string>;
7
- export declare type OnUpdateValue = (value: string & (string | null)) => void;
8
- export declare type OnUpdateImpl = (value: string | null) => void;
9
- export declare type OnSelect = (value: string | number) => void;
6
+ export type AutoCompleteOptions = Array<AutoCompleteOption | AutoCompleteGroupOption | string>;
7
+ export type OnUpdateValue = (value: string & (string | null)) => void;
8
+ export type OnUpdateImpl = (value: string | null) => void;
9
+ export type OnSelect = (value: string | number) => void;
10
10
  export interface AutoCompleteInst {
11
11
  focus: () => void;
12
12
  blur: () => void;
@@ -121,5 +121,5 @@ declare const autoCompleteLight: import("../../_mixins").Theme<"AutoComplete", {
121
121
  }, any>;
122
122
  }>;
123
123
  export default autoCompleteLight;
124
- export declare type AutoCompleteTheme = typeof autoCompleteLight;
125
- export declare type AutoCompleteThemeVars = ReturnType<typeof self>;
124
+ export type AutoCompleteTheme = typeof autoCompleteLight;
125
+ export type AutoCompleteThemeVars = ReturnType<typeof self>;
@@ -68,7 +68,7 @@ export declare const avatarProps: {
68
68
  colorPopover: string;
69
69
  }, any>>>;
70
70
  };
71
- export declare type AvatarProps = ExtractPublicPropTypes<typeof avatarProps>;
71
+ export type AvatarProps = ExtractPublicPropTypes<typeof avatarProps>;
72
72
  declare const _default: import("vue").DefineComponent<{
73
73
  readonly size: PropType<Size>;
74
74
  readonly src: StringConstructor;
@@ -203,7 +203,13 @@ export default defineComponent({
203
203
  }
204
204
  else if (src) {
205
205
  const { imgProps } = this;
206
- return h('img', Object.assign(Object.assign({}, imgProps), { loading: isImageSupportNativeLazy && lazy ? 'lazy' : 'eager', src: isImageSupportNativeLazy
206
+ return h('img', Object.assign(Object.assign({}, imgProps), { loading:
207
+ // If interseciton observer options is set, do not use native lazy
208
+ isImageSupportNativeLazy &&
209
+ !this.intersectionObserverOptions &&
210
+ lazy
211
+ ? 'lazy'
212
+ : 'eager', src: isImageSupportNativeLazy
207
213
  ? src
208
214
  : shouldStartLoading || loaded
209
215
  ? src
@@ -1,2 +1,2 @@
1
- export declare type Size = number | 'small' | 'medium' | 'large';
2
- export declare type ObjectFit = 'fill' | 'contain' | 'cover' | 'none' | 'scale-down';
1
+ export type Size = number | 'small' | 'medium' | 'large';
2
+ export type ObjectFit = 'fill' | 'contain' | 'cover' | 'none' | 'scale-down';
@@ -13,8 +13,8 @@ export declare const self: (vars: ThemeCommonVars) => {
13
13
  colorModal: string;
14
14
  colorPopover: string;
15
15
  };
16
- export declare type AvatarThemeVars = ReturnType<typeof self>;
16
+ export type AvatarThemeVars = ReturnType<typeof self>;
17
17
  declare const avatarLight: Theme<'Avatar', AvatarThemeVars>;
18
18
  export default avatarLight;
19
- export declare type AvatarTheme = typeof avatarLight;
20
- export declare type AvatarGroupTheme = typeof avatarLight;
19
+ export type AvatarTheme = typeof avatarLight;
20
+ export type AvatarGroupTheme = typeof avatarLight;
@@ -68,7 +68,7 @@ export declare const avatarGroupProps: {
68
68
  }, any>;
69
69
  }>>>;
70
70
  };
71
- export declare type AvatarGroupProps = ExtractPublicPropTypes<typeof avatarGroupProps>;
71
+ export type AvatarGroupProps = ExtractPublicPropTypes<typeof avatarGroupProps>;
72
72
  declare const _default: import("vue").DefineComponent<{
73
73
  readonly max: NumberConstructor;
74
74
  readonly maxStyle: PropType<string | CSSProperties>;
@@ -1,4 +1,4 @@
1
- export declare type AvatarGroupThemeVars = {};
1
+ export type AvatarGroupThemeVars = {};
2
2
  export declare const self: () => {
3
3
  gap: string;
4
4
  };
@@ -20,4 +20,4 @@ declare const avatarGroupLight: import("../../_mixins").Theme<"AvatarGroup", {
20
20
  }, any>;
21
21
  }>;
22
22
  export default avatarGroupLight;
23
- export declare type AvatarGroupTheme = typeof avatarGroupLight;
23
+ export type AvatarGroupTheme = typeof avatarGroupLight;
@@ -72,7 +72,7 @@ export declare const backTopProps: {
72
72
  iconSize: string;
73
73
  }, any>>>;
74
74
  };
75
- export declare type BackTopProps = ExtractPublicPropTypes<typeof backTopProps>;
75
+ export type BackTopProps = ExtractPublicPropTypes<typeof backTopProps>;
76
76
  declare const _default: import("vue").DefineComponent<{
77
77
  readonly show: {
78
78
  readonly type: PropType<boolean | undefined>;
@@ -14,7 +14,7 @@ declare const self: (vars: ThemeCommonVars) => {
14
14
  borderRadius: string;
15
15
  iconSize: string;
16
16
  };
17
- export declare type BackTopThemeVars = ReturnType<typeof self>;
17
+ export type BackTopThemeVars = ReturnType<typeof self>;
18
18
  declare const backTopLight: Theme<'BackTop', BackTopThemeVars>;
19
19
  export default backTopLight;
20
- export declare type BackTopTheme = typeof backTopLight;
20
+ export type BackTopTheme = typeof backTopLight;
@@ -15,6 +15,7 @@ export declare const badgeProps: {
15
15
  readonly showZero: BooleanConstructor;
16
16
  readonly processing: BooleanConstructor;
17
17
  readonly color: StringConstructor;
18
+ readonly offset: PropType<readonly [string | number, string | number]>;
18
19
  readonly theme: PropType<import("../../_mixins").Theme<"Badge", {
19
20
  color: string;
20
21
  colorInfo: string;
@@ -43,7 +44,7 @@ export declare const badgeProps: {
43
44
  fontFamily: string;
44
45
  }, any>>>;
45
46
  };
46
- export declare type BadgeProps = ExtractPublicPropTypes<typeof badgeProps>;
47
+ export type BadgeProps = ExtractPublicPropTypes<typeof badgeProps>;
47
48
  declare const _default: import("vue").DefineComponent<{
48
49
  readonly value: PropType<string | number>;
49
50
  readonly max: NumberConstructor;
@@ -59,6 +60,7 @@ declare const _default: import("vue").DefineComponent<{
59
60
  readonly showZero: BooleanConstructor;
60
61
  readonly processing: BooleanConstructor;
61
62
  readonly color: StringConstructor;
63
+ readonly offset: PropType<readonly [string | number, string | number]>;
62
64
  readonly theme: PropType<import("../../_mixins").Theme<"Badge", {
63
65
  color: string;
64
66
  colorInfo: string;
@@ -103,6 +105,9 @@ declare const _default: import("vue").DefineComponent<{
103
105
  }> | undefined;
104
106
  themeClass: import("vue").Ref<string> | undefined;
105
107
  onRender: (() => void) | undefined;
108
+ offsetStyle: import("vue").ComputedRef<{
109
+ transform: string;
110
+ } | undefined>;
106
111
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
107
112
  readonly value: PropType<string | number>;
108
113
  readonly max: NumberConstructor;
@@ -118,6 +123,7 @@ declare const _default: import("vue").DefineComponent<{
118
123
  readonly showZero: BooleanConstructor;
119
124
  readonly processing: BooleanConstructor;
120
125
  readonly color: StringConstructor;
126
+ readonly offset: PropType<readonly [string | number, string | number]>;
121
127
  readonly theme: PropType<import("../../_mixins").Theme<"Badge", {
122
128
  color: string;
123
129
  colorInfo: string;
@@ -11,7 +11,7 @@ export const badgeProps = Object.assign(Object.assign({}, useTheme.props), { val
11
11
  }, show: {
12
12
  type: Boolean,
13
13
  default: true
14
- }, showZero: Boolean, processing: Boolean, color: String });
14
+ }, showZero: Boolean, processing: Boolean, color: String, offset: Array });
15
15
  export default defineComponent({
16
16
  name: 'Badge',
17
17
  props: badgeProps,
@@ -62,6 +62,17 @@ export default defineComponent({
62
62
  return hash;
63
63
  }), cssVarsRef, props)
64
64
  : undefined;
65
+ const offsetStyleRef = computed(() => {
66
+ const { offset } = props;
67
+ if (!offset)
68
+ return undefined;
69
+ const [x, y] = offset;
70
+ const reslovedOffsetX = typeof x === 'number' ? `${x}px` : x;
71
+ const reslovedOffsetY = typeof y === 'number' ? `${y}px` : y;
72
+ return {
73
+ transform: `translate(calc(${(rtlEnabledRef === null || rtlEnabledRef === void 0 ? void 0 : rtlEnabledRef.value) ? '50%' : '-50%'} + ${reslovedOffsetX}), ${reslovedOffsetY})`
74
+ };
75
+ });
65
76
  return {
66
77
  rtlEnabled: rtlEnabledRef,
67
78
  mergedClsPrefix: mergedClsPrefixRef,
@@ -71,7 +82,8 @@ export default defineComponent({
71
82
  handleAfterLeave,
72
83
  cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
73
84
  themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
74
- onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender
85
+ onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender,
86
+ offsetStyle: offsetStyleRef
75
87
  };
76
88
  },
77
89
  render() {
@@ -90,7 +102,7 @@ export default defineComponent({
90
102
  ], style: this.cssVars },
91
103
  children,
92
104
  h(Transition, { name: "fade-in-scale-up-transition", onAfterEnter: this.handleAfterEnter, onAfterLeave: this.handleAfterLeave }, {
93
- default: () => this.showBadge ? (h("sup", { class: `${mergedClsPrefix}-badge-sup`, title: getTitleAttribute(this.value) },
105
+ default: () => this.showBadge ? (h("sup", { class: `${mergedClsPrefix}-badge-sup`, title: getTitleAttribute(this.value), style: this.offsetStyle },
94
106
  resolveSlot($slots.value, () => [
95
107
  !this.dot ? (h(NBaseSlotMachine, { clsPrefix: mergedClsPrefix, appeared: this.appeared, max: this.max, value: this.value })) : null
96
108
  ]),
@@ -9,7 +9,7 @@ declare const self: (vars: ThemeCommonVars) => {
9
9
  fontSize: string;
10
10
  fontFamily: string;
11
11
  };
12
- export declare type BadgeThemeVars = ReturnType<typeof self>;
12
+ export type BadgeThemeVars = ReturnType<typeof self>;
13
13
  declare const badgeLight: Theme<'Badge', BadgeThemeVars>;
14
14
  export default badgeLight;
15
- export declare type BadgeTheme = typeof badgeLight;
15
+ export type BadgeTheme = typeof badgeLight;
@@ -50,7 +50,7 @@ export declare const breadcrumbProps: {
50
50
  fontWeightActive: string;
51
51
  }, any>>>;
52
52
  };
53
- export declare type BreadcrumbProps = ExtractPublicPropTypes<typeof breadcrumbProps>;
53
+ export type BreadcrumbProps = ExtractPublicPropTypes<typeof breadcrumbProps>;
54
54
  declare const _default: import("vue").DefineComponent<{
55
55
  readonly separator: {
56
56
  readonly type: StringConstructor;
@@ -8,7 +8,7 @@ export declare const breadcrumbItemProps: {
8
8
  };
9
9
  readonly onClick: PropType<(e: MouseEvent) => void>;
10
10
  };
11
- export declare type BreadcrumbItemProps = Partial<ExtractPropTypes<typeof breadcrumbItemProps>>;
11
+ export type BreadcrumbItemProps = Partial<ExtractPropTypes<typeof breadcrumbItemProps>>;
12
12
  declare const _default: import("vue").DefineComponent<{
13
13
  readonly separator: StringConstructor;
14
14
  readonly href: StringConstructor;
@@ -13,7 +13,7 @@ export declare const self: (vars: ThemeCommonVars) => {
13
13
  separatorColor: string;
14
14
  fontWeightActive: string;
15
15
  };
16
- export declare type BreadcrumbThemeVars = ReturnType<typeof self>;
16
+ export type BreadcrumbThemeVars = ReturnType<typeof self>;
17
17
  declare const breadcrumbLight: Theme<'Breadcrumb', BreadcrumbThemeVars>;
18
18
  export default breadcrumbLight;
19
- export declare type BreadcrumbTheme = typeof breadcrumbLight;
19
+ export type BreadcrumbTheme = typeof breadcrumbLight;
@@ -664,7 +664,7 @@ export declare const buttonProps: {
664
664
  rippleDuration: string;
665
665
  }, any>>>;
666
666
  };
667
- export declare type ButtonProps = ExtractPublicPropTypes<typeof buttonProps>;
667
+ export type ButtonProps = ExtractPublicPropTypes<typeof buttonProps>;
668
668
  declare const Button: import("vue").DefineComponent<{
669
669
  readonly color: StringConstructor;
670
670
  readonly textColor: StringConstructor;
@@ -2067,9 +2067,9 @@ declare const Button: import("vue").DefineComponent<{
2067
2067
  readonly attrType: "button" | "reset" | "submit";
2068
2068
  readonly nativeFocusBehavior: boolean;
2069
2069
  }>;
2070
- declare type InternalButtonProps = ExtractPropTypes<typeof buttonProps>;
2071
- declare type NativeButtonProps = Omit<ButtonHTMLAttributes, keyof InternalButtonProps>;
2072
- declare type MergedProps = Partial<InternalButtonProps & NativeButtonProps>;
2070
+ type InternalButtonProps = ExtractPropTypes<typeof buttonProps>;
2071
+ type NativeButtonProps = Omit<ButtonHTMLAttributes, keyof InternalButtonProps>;
2072
+ type MergedProps = Partial<InternalButtonProps & NativeButtonProps>;
2073
2073
  export default Button;
2074
2074
  export declare const XButton: new () => {
2075
2075
  $props: MergedProps;
@@ -1,2 +1,2 @@
1
- export declare type Size = 'tiny' | 'small' | 'medium' | 'large';
2
- export declare type Type = 'default' | 'tertiary' | 'primary' | 'info' | 'success' | 'warning' | 'error';
1
+ export type Size = 'tiny' | 'small' | 'medium' | 'large';
2
+ export type Type = 'default' | 'tertiary' | 'primary' | 'info' | 'success' | 'warning' | 'error';