naive-ui 2.35.0 → 2.36.0

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 (393) hide show
  1. package/README.md +2 -0
  2. package/README.zh-CN.md +1 -0
  3. package/dist/index.js +2433 -667
  4. package/dist/index.prod.js +2 -2
  5. package/es/_internal/fade-in-expand-transition/src/FadeInExpandTransition.js +1 -0
  6. package/es/_internal/scrollbar/src/Scrollbar.js +11 -6
  7. package/es/_internal/select-menu/src/SelectMenu.d.ts +3 -3
  8. package/es/_internal/select-menu/src/SelectMenu.js +1 -0
  9. package/es/_internal/select-menu/src/styles/index.cssr.js +8 -0
  10. package/es/_internal/selection/src/Selection.d.ts +3 -1
  11. package/es/_internal/selection/src/Selection.js +4 -2
  12. package/es/_styles/common/_common.js +1 -1
  13. package/es/_styles/common/light.js +2 -2
  14. package/es/_utils/composable/use-collection.d.ts +1 -1
  15. package/es/_utils/composable/use-collection.js +2 -0
  16. package/es/_utils/css/color-to-class.js +1 -1
  17. package/es/affix/src/Affix.d.ts +2 -2
  18. package/es/affix/src/Affix.js +4 -2
  19. package/es/alert/src/Alert.js +3 -1
  20. package/es/anchor/src/AnchorAdapter.d.ts +1 -1
  21. package/es/auto-complete/src/AutoComplete.d.ts +1 -1
  22. package/es/button/src/Button.d.ts +1 -1
  23. package/es/button/src/Button.js +1 -1
  24. package/es/card/src/Card.d.ts +17 -1
  25. package/es/card/src/Card.js +12 -5
  26. package/es/carousel/src/Carousel.d.ts +5 -5
  27. package/es/carousel/src/Carousel.js +2 -1
  28. package/es/checkbox/src/Checkbox.d.ts +6 -6
  29. package/es/color-picker/src/ColorPickerSwatches.js +4 -3
  30. package/es/components.d.ts +3 -0
  31. package/es/components.js +3 -0
  32. package/es/config-provider/src/config.js +5 -5
  33. package/es/config-provider/src/internal-interface.d.ts +4 -0
  34. package/es/data-table/src/DataTable.d.ts +3 -3
  35. package/es/data-table/src/DataTable.js +1 -0
  36. package/es/data-table/src/MainTable.js +1 -0
  37. package/es/data-table/src/TableParts/Body.d.ts +3 -3
  38. package/es/data-table/src/TableParts/Body.js +5 -3
  39. package/es/data-table/src/interface.d.ts +1 -1
  40. package/es/date-picker/src/panel/date.d.ts +2 -2
  41. package/es/date-picker/src/panel/daterange.d.ts +2 -2
  42. package/es/date-picker/src/panel/datetime.d.ts +2 -2
  43. package/es/date-picker/src/panel/datetimerange.d.ts +2 -2
  44. package/es/date-picker/src/panel/month.d.ts +2 -2
  45. package/es/date-picker/src/panel/monthrange.d.ts +2 -2
  46. package/es/date-picker/src/panel/panelHeader.d.ts +720 -773
  47. package/es/date-picker/src/panel/use-calendar.d.ts +2 -2
  48. package/es/date-picker/src/panel/use-calendar.js +2 -2
  49. package/es/date-picker/src/panel/use-dual-calendar.d.ts +2 -2
  50. package/es/date-picker/src/panel/use-dual-calendar.js +4 -4
  51. package/es/date-picker/src/utils.js +1 -6
  52. package/es/date-picker/styles/_common.js +1 -1
  53. package/es/descriptions/src/Descriptions.d.ts +6 -0
  54. package/es/descriptions/src/Descriptions.js +22 -7
  55. package/es/descriptions/src/DescriptionsItem.d.ts +6 -0
  56. package/es/descriptions/src/DescriptionsItem.js +2 -0
  57. package/es/dialog/src/Dialog.js +6 -2
  58. package/es/dialog/src/DialogEnvironment.d.ts +1 -1
  59. package/es/dialog/src/DialogProvider.d.ts +3 -3
  60. package/es/dialog/src/dialogProps.d.ts +1 -1
  61. package/es/dropdown/src/Dropdown.d.ts +18 -0
  62. package/es/dropdown/src/Dropdown.js +1 -1
  63. package/es/dropdown/src/DropdownMenu.js +4 -1
  64. package/es/dropdown/src/DropdownOption.d.ts +5 -4
  65. package/es/dropdown/src/DropdownOption.js +2 -4
  66. package/es/dynamic-input/src/DynamicInput.d.ts +3 -0
  67. package/es/dynamic-input/src/DynamicInput.js +3 -3
  68. package/es/dynamic-tags/src/DynamicTags.d.ts +6 -0
  69. package/es/dynamic-tags/src/DynamicTags.js +4 -4
  70. package/es/equation/index.d.ts +1 -0
  71. package/es/equation/src/Equation.d.ts +2 -0
  72. package/es/form/src/FormItem.d.ts +1 -1
  73. package/es/form/src/utils.d.ts +1 -1
  74. package/es/input/src/Input.d.ts +4 -4
  75. package/es/input/src/styles/input.cssr.js +1 -1
  76. package/es/layout/src/Layout.d.ts +6 -0
  77. package/es/layout/src/Layout.js +8 -1
  78. package/es/layout/src/LayoutContent.d.ts +2 -0
  79. package/es/layout/src/LayoutSider.d.ts +9 -0
  80. package/es/layout/src/LayoutSider.js +12 -3
  81. package/es/legacy-grid/src/styles/index.cssr.js +2 -3
  82. package/es/legacy-grid/src/styles/rtl.cssr.js +2 -3
  83. package/es/loading-bar/src/LoadingBar.d.ts +2 -0
  84. package/es/loading-bar/src/LoadingBar.js +3 -1
  85. package/es/loading-bar/src/LoadingBarProvider.d.ts +3 -0
  86. package/es/loading-bar/src/LoadingBarProvider.js +2 -2
  87. package/es/locales/common/frFR.js +1 -1
  88. package/es/log/src/Log.d.ts +3 -3
  89. package/es/mention/src/Mention.d.ts +1 -1
  90. package/es/mention/src/utils.js +4 -4
  91. package/es/menu/src/Menu.d.ts +30 -13
  92. package/es/menu/src/Menu.js +101 -7
  93. package/es/menu/src/MenuOptionContent.d.ts +3 -0
  94. package/es/menu/src/MenuOptionContent.js +7 -2
  95. package/es/menu/src/Submenu.d.ts +23 -12
  96. package/es/menu/src/Submenu.js +9 -8
  97. package/es/menu/src/interface.d.ts +1 -0
  98. package/es/menu/src/styles/index.cssr.js +8 -4
  99. package/es/menu/src/use-menu-child.js +5 -5
  100. package/es/message/src/Message.d.ts +1 -1
  101. package/es/message/src/MessageProvider.d.ts +7 -4
  102. package/es/message/src/MessageProvider.js +3 -2
  103. package/es/modal/src/BodyWrapper.d.ts +12 -4
  104. package/es/modal/src/Modal.d.ts +16 -4
  105. package/es/modal/src/presetProps.d.ts +5 -1
  106. package/es/notification/src/NotificationEnvironment.js +1 -1
  107. package/es/notification/src/NotificationProvider.d.ts +3 -0
  108. package/es/notification/src/NotificationProvider.js +2 -2
  109. package/es/popconfirm/src/Popconfirm.d.ts +18 -0
  110. package/es/popover/src/Popover.d.ts +24 -0
  111. package/es/popover/src/Popover.js +7 -0
  112. package/es/popover/src/PopoverBody.d.ts +22 -1
  113. package/es/popover/src/PopoverBody.js +26 -10
  114. package/es/popover/src/interface.d.ts +1 -1
  115. package/es/popselect/src/Popselect.d.ts +18 -0
  116. package/es/popselect/src/Popselect.js +2 -1
  117. package/es/popselect/src/PopselectPanel.js +1 -0
  118. package/es/progress/src/Progress.d.ts +1 -1
  119. package/es/qr-code/index.d.ts +2 -0
  120. package/es/qr-code/index.js +1 -0
  121. package/es/qr-code/src/QrCode.d.ts +154 -0
  122. package/es/qr-code/src/QrCode.js +146 -0
  123. package/es/qr-code/src/qrcodegen.d.ts +94 -0
  124. package/es/qr-code/src/qrcodegen.js +948 -0
  125. package/es/qr-code/src/styles/index.cssr.d.ts +2 -0
  126. package/es/qr-code/src/styles/index.cssr.js +8 -0
  127. package/es/qr-code/styles/dark.d.ts +3 -0
  128. package/es/qr-code/styles/dark.js +11 -0
  129. package/es/qr-code/styles/index.d.ts +3 -0
  130. package/es/qr-code/styles/index.js +2 -0
  131. package/es/qr-code/styles/light.d.ts +9 -0
  132. package/es/qr-code/styles/light.js +12 -0
  133. package/es/radio/src/RadioGroup.d.ts +1 -0
  134. package/es/radio/src/RadioGroup.js +2 -1
  135. package/es/radio/src/styles/radio-group.cssr.js +1 -0
  136. package/es/result/src/Result.d.ts +1 -1
  137. package/es/scrollbar/src/Scrollbar.js +2 -0
  138. package/es/select/src/Select.d.ts +1 -1
  139. package/es/skeleton/src/Skeleton.js +4 -7
  140. package/es/slider/src/Slider.d.ts +6 -0
  141. package/es/slider/src/Slider.js +10 -3
  142. package/es/slider/src/utils.d.ts +2 -2
  143. package/es/slider/src/utils.js +4 -4
  144. package/es/space/src/Space.d.ts +3 -0
  145. package/es/space/src/Space.js +3 -3
  146. package/es/spin/src/Spin.d.ts +7 -1
  147. package/es/spin/src/Spin.js +4 -3
  148. package/es/split/index.d.ts +2 -0
  149. package/es/split/index.js +1 -0
  150. package/es/split/src/Split.d.ts +135 -0
  151. package/es/split/src/Split.js +145 -0
  152. package/es/split/src/styles/index.cssr.d.ts +2 -0
  153. package/es/split/src/styles/index.cssr.js +25 -0
  154. package/es/split/styles/dark.d.ts +3 -0
  155. package/es/split/styles/dark.js +6 -0
  156. package/es/split/styles/index.d.ts +3 -0
  157. package/es/split/styles/index.js +2 -0
  158. package/es/split/styles/light.d.ts +9 -0
  159. package/es/split/styles/light.js +13 -0
  160. package/es/steps/src/Steps.d.ts +1 -1
  161. package/es/tabs/src/Tab.js +3 -1
  162. package/es/tabs/src/Tabs.d.ts +6 -6
  163. package/es/tabs/src/Tabs.js +2 -2
  164. package/es/tabs/src/styles/index.cssr.js +12 -2
  165. package/es/theme-editor/src/ThemeEditor.d.ts +2 -2
  166. package/es/themes/dark.js +5 -1
  167. package/es/themes/light.js +5 -1
  168. package/es/thing/src/Thing.d.ts +6 -0
  169. package/es/thing/src/Thing.js +13 -4
  170. package/es/tooltip/src/Tooltip.d.ts +18 -0
  171. package/es/tree/index.d.ts +1 -0
  172. package/es/tree/index.js +1 -0
  173. package/es/tree/src/Tree.d.ts +11 -0
  174. package/es/tree/src/Tree.js +6 -3
  175. package/es/tree/src/TreeNode.js +30 -19
  176. package/es/tree/src/TreeNodeCheckbox.d.ts +1 -0
  177. package/es/tree/src/TreeNodeSwitcher.d.ts +1 -1
  178. package/es/tree/src/styles/index.cssr.js +4 -3
  179. package/es/tree/src/utils.d.ts +1 -0
  180. package/es/tree/src/utils.js +12 -0
  181. package/es/tree/styles/light.d.ts +2 -0
  182. package/es/tree/styles/light.js +3 -2
  183. package/es/tree-select/src/TreeSelect.d.ts +17 -10
  184. package/es/tree-select/src/TreeSelect.js +2 -2
  185. package/es/tree-select/styles/light.d.ts +1 -0
  186. package/es/upload/src/Upload.d.ts +6 -0
  187. package/es/upload/src/Upload.js +8 -3
  188. package/es/upload/src/UploadFileList.js +3 -2
  189. package/es/upload/src/UploadTrigger.js +3 -2
  190. package/es/upload/src/interface.d.ts +2 -0
  191. package/es/version.d.ts +1 -1
  192. package/es/version.js +1 -1
  193. package/es/virtual-list/index.d.ts +2 -0
  194. package/es/virtual-list/index.js +1 -0
  195. package/es/virtual-list/src/VirtualList.d.ts +146 -0
  196. package/es/virtual-list/src/VirtualList.js +102 -0
  197. package/es/watermark/src/Watermark.js +7 -0
  198. package/lib/_internal/fade-in-expand-transition/src/FadeInExpandTransition.js +1 -0
  199. package/lib/_internal/scrollbar/src/Scrollbar.js +11 -6
  200. package/lib/_internal/select-menu/src/SelectMenu.d.ts +3 -3
  201. package/lib/_internal/select-menu/src/SelectMenu.js +1 -0
  202. package/lib/_internal/select-menu/src/styles/index.cssr.js +8 -0
  203. package/lib/_internal/selection/src/Selection.d.ts +3 -1
  204. package/lib/_internal/selection/src/Selection.js +4 -2
  205. package/lib/_styles/common/_common.js +1 -1
  206. package/lib/_styles/common/light.js +2 -2
  207. package/lib/_utils/composable/use-collection.d.ts +1 -1
  208. package/lib/_utils/composable/use-collection.js +2 -0
  209. package/lib/_utils/css/color-to-class.js +1 -1
  210. package/lib/affix/src/Affix.d.ts +2 -2
  211. package/lib/affix/src/Affix.js +4 -2
  212. package/lib/alert/src/Alert.js +3 -1
  213. package/lib/anchor/src/AnchorAdapter.d.ts +1 -1
  214. package/lib/auto-complete/src/AutoComplete.d.ts +1 -1
  215. package/lib/button/src/Button.d.ts +1 -1
  216. package/lib/button/src/Button.js +1 -1
  217. package/lib/card/src/Card.d.ts +17 -1
  218. package/lib/card/src/Card.js +12 -5
  219. package/lib/carousel/src/Carousel.d.ts +5 -5
  220. package/lib/carousel/src/Carousel.js +2 -1
  221. package/lib/checkbox/src/Checkbox.d.ts +6 -6
  222. package/lib/color-picker/src/ColorPickerSwatches.js +4 -3
  223. package/lib/components.d.ts +3 -0
  224. package/lib/components.js +3 -0
  225. package/lib/config-provider/src/config.js +5 -5
  226. package/lib/config-provider/src/internal-interface.d.ts +4 -0
  227. package/lib/data-table/src/DataTable.d.ts +3 -3
  228. package/lib/data-table/src/DataTable.js +1 -0
  229. package/lib/data-table/src/MainTable.js +1 -0
  230. package/lib/data-table/src/TableParts/Body.d.ts +3 -3
  231. package/lib/data-table/src/TableParts/Body.js +5 -3
  232. package/lib/data-table/src/interface.d.ts +1 -1
  233. package/lib/date-picker/src/panel/date.d.ts +2 -2
  234. package/lib/date-picker/src/panel/daterange.d.ts +2 -2
  235. package/lib/date-picker/src/panel/datetime.d.ts +2 -2
  236. package/lib/date-picker/src/panel/datetimerange.d.ts +2 -2
  237. package/lib/date-picker/src/panel/month.d.ts +2 -2
  238. package/lib/date-picker/src/panel/monthrange.d.ts +2 -2
  239. package/lib/date-picker/src/panel/panelHeader.d.ts +720 -773
  240. package/lib/date-picker/src/panel/use-calendar.d.ts +2 -2
  241. package/lib/date-picker/src/panel/use-calendar.js +2 -2
  242. package/lib/date-picker/src/panel/use-dual-calendar.d.ts +2 -2
  243. package/lib/date-picker/src/panel/use-dual-calendar.js +4 -4
  244. package/lib/date-picker/src/utils.js +1 -6
  245. package/lib/date-picker/styles/_common.js +1 -1
  246. package/lib/descriptions/src/Descriptions.d.ts +6 -0
  247. package/lib/descriptions/src/Descriptions.js +22 -7
  248. package/lib/descriptions/src/DescriptionsItem.d.ts +6 -0
  249. package/lib/descriptions/src/DescriptionsItem.js +2 -0
  250. package/lib/dialog/src/Dialog.js +6 -2
  251. package/lib/dialog/src/DialogEnvironment.d.ts +1 -1
  252. package/lib/dialog/src/DialogProvider.d.ts +3 -3
  253. package/lib/dialog/src/dialogProps.d.ts +1 -1
  254. package/lib/dropdown/src/Dropdown.d.ts +18 -0
  255. package/lib/dropdown/src/Dropdown.js +1 -1
  256. package/lib/dropdown/src/DropdownMenu.js +4 -1
  257. package/lib/dropdown/src/DropdownOption.d.ts +5 -4
  258. package/lib/dropdown/src/DropdownOption.js +2 -4
  259. package/lib/dynamic-input/src/DynamicInput.d.ts +3 -0
  260. package/lib/dynamic-input/src/DynamicInput.js +3 -3
  261. package/lib/dynamic-tags/src/DynamicTags.d.ts +6 -0
  262. package/lib/dynamic-tags/src/DynamicTags.js +4 -4
  263. package/lib/equation/index.d.ts +1 -0
  264. package/lib/equation/src/Equation.d.ts +2 -0
  265. package/lib/form/src/FormItem.d.ts +1 -1
  266. package/lib/form/src/utils.d.ts +1 -1
  267. package/lib/input/src/Input.d.ts +4 -4
  268. package/lib/input/src/styles/input.cssr.js +1 -1
  269. package/lib/layout/src/Layout.d.ts +6 -0
  270. package/lib/layout/src/Layout.js +8 -1
  271. package/lib/layout/src/LayoutContent.d.ts +2 -0
  272. package/lib/layout/src/LayoutSider.d.ts +9 -0
  273. package/lib/layout/src/LayoutSider.js +12 -3
  274. package/lib/legacy-grid/src/styles/index.cssr.js +2 -3
  275. package/lib/legacy-grid/src/styles/rtl.cssr.js +2 -3
  276. package/lib/loading-bar/src/LoadingBar.d.ts +2 -0
  277. package/lib/loading-bar/src/LoadingBar.js +3 -1
  278. package/lib/loading-bar/src/LoadingBarProvider.d.ts +3 -0
  279. package/lib/loading-bar/src/LoadingBarProvider.js +2 -2
  280. package/lib/locales/common/frFR.js +1 -1
  281. package/lib/log/src/Log.d.ts +3 -3
  282. package/lib/mention/src/Mention.d.ts +1 -1
  283. package/lib/mention/src/utils.js +4 -4
  284. package/lib/menu/src/Menu.d.ts +30 -13
  285. package/lib/menu/src/Menu.js +101 -7
  286. package/lib/menu/src/MenuOptionContent.d.ts +3 -0
  287. package/lib/menu/src/MenuOptionContent.js +7 -2
  288. package/lib/menu/src/Submenu.d.ts +23 -12
  289. package/lib/menu/src/Submenu.js +9 -8
  290. package/lib/menu/src/interface.d.ts +1 -0
  291. package/lib/menu/src/styles/index.cssr.js +8 -4
  292. package/lib/menu/src/use-menu-child.js +5 -5
  293. package/lib/message/src/Message.d.ts +1 -1
  294. package/lib/message/src/MessageProvider.d.ts +7 -4
  295. package/lib/message/src/MessageProvider.js +3 -2
  296. package/lib/modal/src/BodyWrapper.d.ts +12 -4
  297. package/lib/modal/src/Modal.d.ts +16 -4
  298. package/lib/modal/src/presetProps.d.ts +5 -1
  299. package/lib/notification/src/NotificationEnvironment.js +1 -1
  300. package/lib/notification/src/NotificationProvider.d.ts +3 -0
  301. package/lib/notification/src/NotificationProvider.js +2 -2
  302. package/lib/popconfirm/src/Popconfirm.d.ts +18 -0
  303. package/lib/popover/src/Popover.d.ts +24 -0
  304. package/lib/popover/src/Popover.js +7 -0
  305. package/lib/popover/src/PopoverBody.d.ts +22 -1
  306. package/lib/popover/src/PopoverBody.js +26 -10
  307. package/lib/popover/src/interface.d.ts +1 -1
  308. package/lib/popselect/src/Popselect.d.ts +18 -0
  309. package/lib/popselect/src/Popselect.js +2 -1
  310. package/lib/popselect/src/PopselectPanel.js +1 -0
  311. package/lib/progress/src/Progress.d.ts +1 -1
  312. package/lib/qr-code/index.d.ts +2 -0
  313. package/lib/qr-code/index.js +9 -0
  314. package/lib/qr-code/src/QrCode.d.ts +154 -0
  315. package/lib/qr-code/src/QrCode.js +152 -0
  316. package/lib/qr-code/src/qrcodegen.d.ts +94 -0
  317. package/lib/qr-code/src/qrcodegen.js +949 -0
  318. package/lib/qr-code/src/styles/index.cssr.d.ts +2 -0
  319. package/lib/qr-code/src/styles/index.cssr.js +13 -0
  320. package/lib/qr-code/styles/dark.d.ts +3 -0
  321. package/lib/qr-code/styles/dark.js +13 -0
  322. package/lib/qr-code/styles/index.d.ts +3 -0
  323. package/lib/qr-code/styles/index.js +10 -0
  324. package/lib/qr-code/styles/light.d.ts +9 -0
  325. package/lib/qr-code/styles/light.js +14 -0
  326. package/lib/radio/src/RadioGroup.d.ts +1 -0
  327. package/lib/radio/src/RadioGroup.js +2 -1
  328. package/lib/radio/src/styles/radio-group.cssr.js +1 -0
  329. package/lib/result/src/Result.d.ts +1 -1
  330. package/lib/scrollbar/src/Scrollbar.js +2 -0
  331. package/lib/select/src/Select.d.ts +1 -1
  332. package/lib/skeleton/src/Skeleton.js +3 -6
  333. package/lib/slider/src/Slider.d.ts +6 -0
  334. package/lib/slider/src/Slider.js +10 -3
  335. package/lib/slider/src/utils.d.ts +2 -2
  336. package/lib/slider/src/utils.js +3 -3
  337. package/lib/space/src/Space.d.ts +3 -0
  338. package/lib/space/src/Space.js +3 -3
  339. package/lib/spin/src/Spin.d.ts +7 -1
  340. package/lib/spin/src/Spin.js +4 -3
  341. package/lib/split/index.d.ts +2 -0
  342. package/lib/split/index.js +9 -0
  343. package/lib/split/src/Split.d.ts +135 -0
  344. package/lib/split/src/Split.js +151 -0
  345. package/lib/split/src/styles/index.cssr.d.ts +2 -0
  346. package/lib/split/src/styles/index.cssr.js +30 -0
  347. package/lib/split/styles/dark.d.ts +3 -0
  348. package/lib/split/styles/dark.js +8 -0
  349. package/lib/split/styles/index.d.ts +3 -0
  350. package/lib/split/styles/index.js +10 -0
  351. package/lib/split/styles/light.d.ts +9 -0
  352. package/lib/split/styles/light.js +17 -0
  353. package/lib/steps/src/Steps.d.ts +1 -1
  354. package/lib/tabs/src/Tab.js +3 -1
  355. package/lib/tabs/src/Tabs.d.ts +6 -6
  356. package/lib/tabs/src/Tabs.js +2 -2
  357. package/lib/tabs/src/styles/index.cssr.js +12 -2
  358. package/lib/theme-editor/src/ThemeEditor.d.ts +2 -2
  359. package/lib/themes/dark.js +56 -52
  360. package/lib/themes/light.js +56 -52
  361. package/lib/thing/src/Thing.d.ts +6 -0
  362. package/lib/thing/src/Thing.js +13 -4
  363. package/lib/tooltip/src/Tooltip.d.ts +18 -0
  364. package/lib/tree/index.d.ts +1 -0
  365. package/lib/tree/index.js +3 -1
  366. package/lib/tree/src/Tree.d.ts +11 -0
  367. package/lib/tree/src/Tree.js +6 -3
  368. package/lib/tree/src/TreeNode.js +30 -19
  369. package/lib/tree/src/TreeNodeCheckbox.d.ts +1 -0
  370. package/lib/tree/src/TreeNodeSwitcher.d.ts +1 -1
  371. package/lib/tree/src/styles/index.cssr.js +4 -3
  372. package/lib/tree/src/utils.d.ts +1 -0
  373. package/lib/tree/src/utils.js +14 -1
  374. package/lib/tree/styles/light.d.ts +2 -0
  375. package/lib/tree/styles/light.js +3 -2
  376. package/lib/tree-select/src/TreeSelect.d.ts +17 -10
  377. package/lib/tree-select/src/TreeSelect.js +2 -2
  378. package/lib/tree-select/styles/light.d.ts +1 -0
  379. package/lib/upload/src/Upload.d.ts +6 -0
  380. package/lib/upload/src/Upload.js +8 -3
  381. package/lib/upload/src/UploadFileList.js +3 -2
  382. package/lib/upload/src/UploadTrigger.js +3 -2
  383. package/lib/upload/src/interface.d.ts +2 -0
  384. package/lib/version.d.ts +1 -1
  385. package/lib/version.js +1 -1
  386. package/lib/virtual-list/index.d.ts +2 -0
  387. package/lib/virtual-list/index.js +9 -0
  388. package/lib/virtual-list/src/VirtualList.d.ts +146 -0
  389. package/lib/virtual-list/src/VirtualList.js +105 -0
  390. package/lib/watermark/src/Watermark.js +7 -0
  391. package/package.json +15 -15
  392. package/volar.d.ts +4 -0
  393. package/web-types.json +773 -18
@@ -0,0 +1,145 @@
1
+ import { h, defineComponent, ref, computed } from 'vue';
2
+ import { resolveSlot } from '../../_utils';
3
+ import useConfig from '../../_mixins/use-config';
4
+ import style from './styles/index.cssr';
5
+ import { useTheme } from '../../_mixins';
6
+ import { splitLight } from '../styles';
7
+ import { off, on } from 'evtd';
8
+ export const splitProps = Object.assign(Object.assign({}, useTheme.props), { direction: {
9
+ type: String,
10
+ default: 'horizontal'
11
+ }, resizeTriggerSize: {
12
+ type: Number,
13
+ default: 3
14
+ }, disabled: Boolean, defaultSize: {
15
+ type: Number,
16
+ default: 0.5
17
+ }, min: {
18
+ type: Number,
19
+ default: 0
20
+ }, max: {
21
+ type: Number,
22
+ default: 1
23
+ }, onDragStart: Function, onDragMove: Function, onDragEnd: Function });
24
+ export default defineComponent({
25
+ name: 'Split',
26
+ props: splitProps,
27
+ setup(props) {
28
+ const { mergedClsPrefixRef, inlineThemeDisabled } = useConfig(props);
29
+ const themeRef = useTheme('Split', '-split', style, splitLight, props, mergedClsPrefixRef);
30
+ const cssVarsRef = computed(() => {
31
+ const { self: { resizableTriggerColorHover } } = themeRef.value;
32
+ return {
33
+ '--n-resize-trigger-color-hover': resizableTriggerColorHover
34
+ };
35
+ });
36
+ const resizeTriggerElRef = ref(null);
37
+ const isDraggingRef = ref(false);
38
+ const currentSize = ref(props.defaultSize);
39
+ const firstPaneStyle = computed(() => {
40
+ const size = currentSize.value * 100;
41
+ return {
42
+ flex: `0 0 calc(${size}% - ${(props.resizeTriggerSize * size) / 100}px)`
43
+ };
44
+ });
45
+ const resizeTriggerStyle = computed(() => {
46
+ return props.direction === 'horizontal'
47
+ ? {
48
+ width: `${props.resizeTriggerSize}px`,
49
+ height: '100%'
50
+ }
51
+ : {
52
+ width: '100%',
53
+ height: `${props.resizeTriggerSize}px`
54
+ };
55
+ });
56
+ const resizeTriggerWrapperStyle = computed(() => {
57
+ const horizontal = props.direction === 'horizontal';
58
+ return {
59
+ width: horizontal ? `${props.resizeTriggerSize}px` : '',
60
+ height: horizontal ? '' : `${props.resizeTriggerSize}px`,
61
+ cursor: props.direction === 'horizontal' ? 'col-resize' : 'row-resize'
62
+ };
63
+ });
64
+ let offset = 0;
65
+ const handleMouseDown = (e) => {
66
+ e.preventDefault();
67
+ isDraggingRef.value = true;
68
+ if (props.onDragStart)
69
+ props.onDragStart(e);
70
+ const mouseMoveEvent = 'mousemove';
71
+ const mouseUpEvent = 'mouseup';
72
+ const onMouseMove = (e) => {
73
+ updateSize(e);
74
+ if (props.onDragMove)
75
+ props.onDragMove(e);
76
+ };
77
+ const onMouseUp = () => {
78
+ off(mouseMoveEvent, document, onMouseMove);
79
+ off(mouseUpEvent, document, onMouseUp);
80
+ isDraggingRef.value = false;
81
+ if (props.onDragEnd)
82
+ props.onDragEnd(e);
83
+ document.body.style.cursor = '';
84
+ };
85
+ document.body.style.cursor = resizeTriggerWrapperStyle.value.cursor;
86
+ on(mouseMoveEvent, document, onMouseMove);
87
+ on(mouseUpEvent, document, onMouseUp);
88
+ const resizeTriggerEl = resizeTriggerElRef.value;
89
+ if (resizeTriggerEl) {
90
+ const elRect = resizeTriggerEl.getBoundingClientRect();
91
+ if (props.direction === 'horizontal') {
92
+ offset = e.clientX - elRect.left;
93
+ }
94
+ else {
95
+ offset = elRect.top - e.clientY;
96
+ }
97
+ }
98
+ updateSize(e);
99
+ };
100
+ const updateSize = (event) => {
101
+ var _a, _b;
102
+ const parentRect = (_b = (_a = resizeTriggerElRef.value) === null || _a === void 0 ? void 0 : _a.parentElement) === null || _b === void 0 ? void 0 : _b.getBoundingClientRect();
103
+ if (!parentRect)
104
+ return;
105
+ const newSize = props.direction === 'horizontal'
106
+ ? (event.clientX - parentRect.left - offset) /
107
+ (parentRect.width - props.resizeTriggerSize)
108
+ : (event.clientY - parentRect.top + offset) /
109
+ (parentRect.height - props.resizeTriggerSize);
110
+ currentSize.value = newSize;
111
+ if (props.min) {
112
+ currentSize.value = Math.max(newSize, props.min);
113
+ }
114
+ if (props.max) {
115
+ currentSize.value = Math.min(currentSize.value, props.max);
116
+ }
117
+ };
118
+ return {
119
+ cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
120
+ resizeTriggerElRef,
121
+ isDragging: isDraggingRef,
122
+ mergedClsPrefix: mergedClsPrefixRef,
123
+ resizeTriggerWrapperStyle,
124
+ resizeTriggerStyle,
125
+ handleMouseDown,
126
+ firstPaneStyle
127
+ };
128
+ },
129
+ render() {
130
+ var _a, _b, _c, _d;
131
+ return (h("div", { class: [
132
+ `${this.mergedClsPrefix}-split`,
133
+ `${this.mergedClsPrefix}-split--${this.direction}`
134
+ ], style: this.cssVars },
135
+ h("div", { class: `${this.mergedClsPrefix}-split-pane-1`, style: this.firstPaneStyle }, (_b = (_a = this.$slots)[1]) === null || _b === void 0 ? void 0 : _b.call(_a)),
136
+ !this.disabled && (h("div", { ref: "resizeTriggerElRef", class: `${this.mergedClsPrefix}-split__resize-trigger-wrapper`, style: this.resizeTriggerWrapperStyle, onMousedown: this.handleMouseDown }, resolveSlot(this.$slots['resize-trigger'], () => [
137
+ h("div", { style: this.resizeTriggerStyle, class: [
138
+ `${this.mergedClsPrefix}-split__resize-trigger`,
139
+ this.isDragging &&
140
+ `${this.mergedClsPrefix}-split__resize-trigger--hover`
141
+ ] })
142
+ ]))),
143
+ h("div", { class: `${this.mergedClsPrefix}-split-pane-2` }, (_d = (_c = this.$slots)[2]) === null || _d === void 0 ? void 0 : _d.call(_c))));
144
+ }
145
+ });
@@ -0,0 +1,2 @@
1
+ declare const _default: import("css-render").CNode;
2
+ export default _default;
@@ -0,0 +1,25 @@
1
+ import { c, cB, cM, cE } from '../../../_utils/cssr';
2
+ // vars:
3
+ // --n-border-color
4
+ // --n-color
5
+ export default cB('split', `
6
+ display: flex;
7
+ width: 100%;
8
+ height: 100%;
9
+ `, [cM('horizontal', `
10
+ flex-direction: row;
11
+ `), cM('vertical', `
12
+ flex-direction: column;
13
+ `), cB('split-pane-1', `
14
+ overflow: hidden;
15
+ `), cB('split-pane-2', `
16
+ overflow: hidden;
17
+ flex: 1;
18
+ `), cE('resize-trigger', `
19
+ background-color: var(--n-border-color);
20
+ transition: background-color .3s var(--n-bezier);
21
+ `, [cM('hover', `
22
+ background-color: var(--n-resize-trigger-color-hover);
23
+ `), c('&:hover', `
24
+ background-color: var(--n-resize-trigger-color-hover);
25
+ `)])]);
@@ -0,0 +1,3 @@
1
+ import { type SplitTheme } from './light';
2
+ declare const splitDark: SplitTheme;
3
+ export default splitDark;
@@ -0,0 +1,6 @@
1
+ import { commonDark } from '../../_styles/common';
2
+ const splitDark = {
3
+ name: 'Split',
4
+ common: commonDark
5
+ };
6
+ export default splitDark;
@@ -0,0 +1,3 @@
1
+ export { default as splitDark } from './dark';
2
+ export { default as splitLight } from './light';
3
+ export type { SplitTheme, SplitThemeVars } from './light';
@@ -0,0 +1,2 @@
1
+ export { default as splitDark } from './dark';
2
+ export { default as splitLight } from './light';
@@ -0,0 +1,9 @@
1
+ import type { ThemeCommonVars } from '../../_styles/common';
2
+ import { type Theme } from '../../_mixins';
3
+ export declare const self: (vars: ThemeCommonVars) => {
4
+ resizableTriggerColorHover: string;
5
+ };
6
+ export type SplitThemeVars = ReturnType<typeof self>;
7
+ declare const themeLight: Theme<'Split', SplitThemeVars>;
8
+ export default themeLight;
9
+ export type SplitTheme = typeof themeLight;
@@ -0,0 +1,13 @@
1
+ import { commonLight } from '../../_styles/common';
2
+ export const self = (vars) => {
3
+ const { primaryColorHover } = vars;
4
+ return {
5
+ resizableTriggerColorHover: primaryColorHover
6
+ };
7
+ };
8
+ const themeLight = {
9
+ name: 'Split',
10
+ common: commonLight,
11
+ self
12
+ };
13
+ export default themeLight;
@@ -369,8 +369,8 @@ declare const _default: import("vue").DefineComponent<{
369
369
  indicatorIconSizeMedium: string;
370
370
  }, any>>>;
371
371
  }>>, {
372
+ status: "wait" | "error" | "finish" | "process";
372
373
  size: "small" | "medium";
373
374
  vertical: boolean;
374
- status: "wait" | "error" | "finish" | "process";
375
375
  }, {}>;
376
376
  export default _default;
@@ -75,7 +75,9 @@ export default defineComponent({
75
75
  onClick: trigger === 'click' ? this.activateTab : undefined,
76
76
  onMouseenter: trigger === 'hover' ? this.activateTab : undefined,
77
77
  style: internalAddable ? undefined : style
78
- }, this.internalCreatedByPane
78
+ },
79
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
80
+ this.internalCreatedByPane
79
81
  ? (this.tabProps || {})
80
82
  : this.$attrs)),
81
83
  h("span", { class: `${clsPrefix}-tabs-tab__label` }, internalAddable ? (h(Fragment, null,
@@ -21,7 +21,7 @@ export declare const tabsProps: {
21
21
  readonly default: "medium";
22
22
  };
23
23
  readonly placement: {
24
- readonly type: PropType<"left" | "right" | "bottom" | "top">;
24
+ readonly type: PropType<"left" | "right" | "top" | "bottom">;
25
25
  readonly default: "top";
26
26
  };
27
27
  readonly tabStyle: PropType<string | CSSProperties>;
@@ -337,7 +337,7 @@ declare const _default: import("vue").DefineComponent<{
337
337
  readonly default: "medium";
338
338
  };
339
339
  readonly placement: {
340
- readonly type: PropType<"left" | "right" | "bottom" | "top">;
340
+ readonly type: PropType<"left" | "right" | "top" | "bottom">;
341
341
  readonly default: "top";
342
342
  };
343
343
  readonly tabStyle: PropType<string | CSSProperties>;
@@ -680,7 +680,7 @@ declare const _default: import("vue").DefineComponent<{
680
680
  $forceUpdate: () => void;
681
681
  $nextTick: typeof nextTick;
682
682
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
683
- } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {}) | null>;
683
+ } & Omit<{}, never> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {}) | null>;
684
684
  scrollWrapperElRef: import("vue").Ref<HTMLElement | null>;
685
685
  addTabFixed: import("vue").Ref<boolean>;
686
686
  tabWrapperStyle: import("vue").ComputedRef<{
@@ -726,7 +726,7 @@ declare const _default: import("vue").DefineComponent<{
726
726
  '--n-tab-color-segment': string;
727
727
  }> | undefined;
728
728
  themeClass: import("vue").Ref<string> | undefined;
729
- animationDirection: import("vue").Ref<"prev" | "next">;
729
+ animationDirection: import("vue").Ref<"next" | "prev">;
730
730
  renderNameListRef: {
731
731
  value: Array<string | number>;
732
732
  };
@@ -752,7 +752,7 @@ declare const _default: import("vue").DefineComponent<{
752
752
  readonly default: "medium";
753
753
  };
754
754
  readonly placement: {
755
- readonly type: PropType<"left" | "right" | "bottom" | "top">;
755
+ readonly type: PropType<"left" | "right" | "top" | "bottom">;
756
756
  readonly default: "top";
757
757
  };
758
758
  readonly tabStyle: PropType<string | CSSProperties>;
@@ -1052,7 +1052,7 @@ declare const _default: import("vue").DefineComponent<{
1052
1052
  readonly type: TabsType;
1053
1053
  readonly size: "small" | "medium" | "large";
1054
1054
  readonly closable: boolean;
1055
- readonly placement: "left" | "right" | "bottom" | "top";
1055
+ readonly placement: "left" | "right" | "top" | "bottom";
1056
1056
  readonly trigger: "click" | "hover";
1057
1057
  readonly animated: boolean;
1058
1058
  readonly tabsPadding: number;
@@ -295,7 +295,7 @@ export default defineComponent({
295
295
  }
296
296
  }
297
297
  if (type !== 'segment') {
298
- deriveScrollShadow((_b = xScrollInstRef.value) === null || _b === void 0 ? void 0 : _b.$el);
298
+ deriveScrollShadow(((_b = xScrollInstRef.value) === null || _b === void 0 ? void 0 : _b.$el) || null);
299
299
  }
300
300
  }
301
301
  const handleNavResize = throttle(_handleNavResize, 64);
@@ -326,7 +326,7 @@ export default defineComponent({
326
326
  addTabFixedRef.value = false;
327
327
  }
328
328
  }
329
- deriveScrollShadow((_a = xScrollInstRef.value) === null || _a === void 0 ? void 0 : _a.$el);
329
+ deriveScrollShadow(((_a = xScrollInstRef.value) === null || _a === void 0 ? void 0 : _a.$el) || null);
330
330
  }
331
331
  const handleTabsResize = throttle(_handleTabsResize, 64);
332
332
  function handleAdd() {
@@ -124,7 +124,9 @@ export default cB('tabs', `
124
124
  box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, .12);
125
125
  `)]), cM('shadow-end', [c('&::after', `
126
126
  box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, .12);
127
- `)])])]), cM('left, right', [cB('tabs-nav-scroll-wrapper', [c('&::before', `
127
+ `)])])]), cM('left, right', [cB('tabs-nav-scroll-content', `
128
+ flex-direction: column;
129
+ `), cB('tabs-nav-scroll-wrapper', [c('&::before', `
128
130
  top: 0;
129
131
  left: 0;
130
132
  right: 0;
@@ -160,6 +162,7 @@ export default cB('tabs', `
160
162
  display: flex;
161
163
  position: relative;
162
164
  min-width: 100%;
165
+ min-height: 100%;
163
166
  width: fit-content;
164
167
  box-sizing: border-box;
165
168
  `), cB('tabs-wrapper', `
@@ -293,7 +296,6 @@ export default cB('tabs', `
293
296
  `), cB('tabs-pad', `
294
297
  flex-grow: 1;
295
298
  transition: border-color .3s var(--n-bezier);
296
- border-bottom: 1px solid var(--n-tab-border-color);
297
299
  `), cB('tabs-tab-pad', `
298
300
  transition: border-color .3s var(--n-bezier);
299
301
  `), cB('tabs-tab', `
@@ -334,6 +336,8 @@ export default cB('tabs', `
334
336
  border-bottom: 1px solid #0000;
335
337
  `)]), cB('tabs-tab-pad', `
336
338
  border-bottom: 1px solid var(--n-tab-border-color);
339
+ `), cB('tabs-pad', `
340
+ border-bottom: 1px solid var(--n-tab-border-color);
337
341
  `)])]), cM('left', [cM('card-type', [cB('tabs-tab', `
338
342
  border-top-left-radius: var(--n-tab-border-radius);
339
343
  border-bottom-left-radius: var(--n-tab-border-radius);
@@ -341,6 +345,8 @@ export default cB('tabs', `
341
345
  border-right: 1px solid #0000;
342
346
  `)]), cB('tabs-tab-pad', `
343
347
  border-right: 1px solid var(--n-tab-border-color);
348
+ `), cB('tabs-pad', `
349
+ border-right: 1px solid var(--n-tab-border-color);
344
350
  `)])]), cM('right', [cM('card-type', [cB('tabs-tab', `
345
351
  border-top-right-radius: var(--n-tab-border-radius);
346
352
  border-bottom-right-radius: var(--n-tab-border-radius);
@@ -348,6 +354,8 @@ export default cB('tabs', `
348
354
  border-left: 1px solid #0000;
349
355
  `)]), cB('tabs-tab-pad', `
350
356
  border-left: 1px solid var(--n-tab-border-color);
357
+ `), cB('tabs-pad', `
358
+ border-left: 1px solid var(--n-tab-border-color);
351
359
  `)])]), cM('bottom', [cM('card-type', [cB('tabs-tab', `
352
360
  border-bottom-left-radius: var(--n-tab-border-radius);
353
361
  border-bottom-right-radius: var(--n-tab-border-radius);
@@ -355,4 +363,6 @@ export default cB('tabs', `
355
363
  border-top: 1px solid #0000;
356
364
  `)]), cB('tabs-tab-pad', `
357
365
  border-top: 1px solid var(--n-tab-border-color);
366
+ `), cB('tabs-pad', `
367
+ border-top: 1px solid var(--n-tab-border-color);
358
368
  `)])])])]);
@@ -117,8 +117,8 @@ declare const _default: import("vue").DefineComponent<{}, {
117
117
  }>;
118
118
  theme: import("vue").ComputedRef<GlobalThemeOverrides>;
119
119
  showPanel: import("vue").Ref<boolean>;
120
- tempOverrides: any;
121
- overrides: any;
120
+ tempOverrides: import("vue").Ref<any>;
121
+ overrides: import("vue").Ref<any>;
122
122
  compNamePattern: import("vue").Ref<string>;
123
123
  tempCompNamePattern: import("vue").Ref<string>;
124
124
  varNamePattern: import("vue").Ref<string>;
package/es/themes/dark.js CHANGED
@@ -54,6 +54,7 @@ import { popconfirmDark } from '../popconfirm/styles';
54
54
  import { popoverDark } from '../popover/styles';
55
55
  import { popselectDark } from '../popselect/styles';
56
56
  import { progressDark } from '../progress/styles';
57
+ import { qrcodeDark } from '../qr-code/styles';
57
58
  import { radioDark } from '../radio/styles';
58
59
  import { rateDark } from '../rate/styles';
59
60
  import { resultDark } from '../result/styles';
@@ -80,6 +81,7 @@ import { typographyDark } from '../typography/styles';
80
81
  import { treeDark } from '../tree/styles';
81
82
  import { uploadDark } from '../upload/styles';
82
83
  import { watermarkDark } from '../watermark/styles';
84
+ import { splitDark } from '../split/styles';
83
85
  export const darkTheme = {
84
86
  name: 'dark',
85
87
  common: commonDark,
@@ -138,6 +140,7 @@ export const darkTheme = {
138
140
  Popover: popoverDark,
139
141
  Popselect: popselectDark,
140
142
  Progress: progressDark,
143
+ QrCode: qrcodeDark,
141
144
  Radio: radioDark,
142
145
  Rate: rateDark,
143
146
  Result: resultDark,
@@ -163,5 +166,6 @@ export const darkTheme = {
163
166
  TreeSelect: treeSelectDark,
164
167
  Typography: typographyDark,
165
168
  Upload: uploadDark,
166
- Watermark: watermarkDark
169
+ Watermark: watermarkDark,
170
+ Split: splitDark
167
171
  };
@@ -56,6 +56,7 @@ import { popconfirmLight } from '../popconfirm/styles';
56
56
  import { popoverLight } from '../popover/styles';
57
57
  import { popselectLight } from '../popselect/styles';
58
58
  import { progressLight } from '../progress/styles';
59
+ import { qrcodeLight } from '../qr-code/styles';
59
60
  import { radioLight } from '../radio/styles';
60
61
  import { rateLight } from '../rate/styles';
61
62
  import { resultLight } from '../result/styles';
@@ -82,6 +83,7 @@ import { treeLight } from '../tree/styles';
82
83
  import { treeSelectLight } from '../tree-select/styles';
83
84
  import { uploadLight } from '../upload/styles';
84
85
  import { watermarkLight } from '../watermark/styles';
86
+ import { splitLight } from '../split/styles';
85
87
  export const lightTheme = {
86
88
  name: 'light',
87
89
  common: commonLight,
@@ -140,6 +142,7 @@ export const lightTheme = {
140
142
  Popover: popoverLight,
141
143
  Popselect: popselectLight,
142
144
  Progress: progressLight,
145
+ QrCode: qrcodeLight,
143
146
  Radio: radioLight,
144
147
  Rate: rateLight,
145
148
  Row: rowLight,
@@ -165,5 +168,6 @@ export const lightTheme = {
165
168
  TreeSelect: treeSelectLight,
166
169
  Typography: typographyLight,
167
170
  Upload: uploadLight,
168
- Watermark: watermarkLight
171
+ Watermark: watermarkLight,
172
+ Split: splitLight
169
173
  };
@@ -4,8 +4,10 @@ export declare const thingProps: {
4
4
  title: StringConstructor;
5
5
  titleExtra: StringConstructor;
6
6
  description: StringConstructor;
7
+ descriptionClass: StringConstructor;
7
8
  descriptionStyle: PropType<string | CSSProperties>;
8
9
  content: StringConstructor;
10
+ contentClass: StringConstructor;
9
11
  contentStyle: PropType<string | CSSProperties>;
10
12
  contentIndented: BooleanConstructor;
11
13
  theme: PropType<import("../../_mixins").Theme<"Thing", {
@@ -32,8 +34,10 @@ declare const _default: import("vue").DefineComponent<{
32
34
  title: StringConstructor;
33
35
  titleExtra: StringConstructor;
34
36
  description: StringConstructor;
37
+ descriptionClass: StringConstructor;
35
38
  descriptionStyle: PropType<string | CSSProperties>;
36
39
  content: StringConstructor;
40
+ contentClass: StringConstructor;
37
41
  contentStyle: PropType<string | CSSProperties>;
38
42
  contentIndented: BooleanConstructor;
39
43
  theme: PropType<import("../../_mixins").Theme<"Thing", {
@@ -58,8 +62,10 @@ declare const _default: import("vue").DefineComponent<{
58
62
  title: StringConstructor;
59
63
  titleExtra: StringConstructor;
60
64
  description: StringConstructor;
65
+ descriptionClass: StringConstructor;
61
66
  descriptionStyle: PropType<string | CSSProperties>;
62
67
  content: StringConstructor;
68
+ contentClass: StringConstructor;
63
69
  contentStyle: PropType<string | CSSProperties>;
64
70
  contentIndented: BooleanConstructor;
65
71
  theme: PropType<import("../../_mixins").Theme<"Thing", {
@@ -2,7 +2,7 @@ import { h, defineComponent, computed, Fragment } from 'vue';
2
2
  import { useConfig, useTheme, useThemeClass, useRtl } from '../../_mixins';
3
3
  import { thingLight } from '../styles';
4
4
  import style from './styles/index.cssr';
5
- export const thingProps = Object.assign(Object.assign({}, useTheme.props), { title: String, titleExtra: String, description: String, descriptionStyle: [String, Object], content: String, contentStyle: [String, Object], contentIndented: Boolean });
5
+ export const thingProps = Object.assign(Object.assign({}, useTheme.props), { title: String, titleExtra: String, description: String, descriptionClass: String, descriptionStyle: [String, Object], content: String, contentClass: String, contentStyle: [String, Object], contentIndented: Boolean });
6
6
  export default defineComponent({
7
7
  name: 'Thing',
8
8
  props: thingProps,
@@ -53,7 +53,10 @@ export default defineComponent({
53
53
  slots['header-extra'] || props.titleExtra ? (h("div", { class: `${mergedClsPrefix}-thing-header__extra` }, slots['header-extra']
54
54
  ? slots['header-extra']()
55
55
  : props.titleExtra)) : null),
56
- slots.description || props.description ? (h("div", { class: `${mergedClsPrefix}-thing-main__description`, style: props.descriptionStyle }, slots.description
56
+ slots.description || props.description ? (h("div", { class: [
57
+ `${mergedClsPrefix}-thing-main__description`,
58
+ props.descriptionClass
59
+ ], style: props.descriptionStyle }, slots.description
57
60
  ? slots.description()
58
61
  : props.description)) : null)) : null)) : (h(Fragment, null,
59
62
  slots.header ||
@@ -64,10 +67,16 @@ export default defineComponent({
64
67
  slots['header-extra'] || props.titleExtra ? (h("div", { class: `${mergedClsPrefix}-thing-header__extra` }, slots['header-extra']
65
68
  ? slots['header-extra']()
66
69
  : props.titleExtra)) : null)) : null,
67
- slots.description || props.description ? (h("div", { class: `${mergedClsPrefix}-thing-main__description`, style: props.descriptionStyle }, slots.description
70
+ slots.description || props.description ? (h("div", { class: [
71
+ `${mergedClsPrefix}-thing-main__description`,
72
+ props.descriptionClass
73
+ ], style: props.descriptionStyle }, slots.description
68
74
  ? slots.description()
69
75
  : props.description)) : null)),
70
- slots.default || props.content ? (h("div", { class: `${mergedClsPrefix}-thing-main__content`, style: props.contentStyle }, slots.default ? slots.default() : props.content)) : null,
76
+ slots.default || props.content ? (h("div", { class: [
77
+ `${mergedClsPrefix}-thing-main__content`,
78
+ props.contentClass
79
+ ], style: props.contentStyle }, slots.default ? slots.default() : props.content)) : null,
71
80
  slots.footer ? (h("div", { class: `${mergedClsPrefix}-thing-main__footer` }, slots.footer())) : null,
72
81
  slots.action ? (h("div", { class: `${mergedClsPrefix}-thing-main__action` }, slots.action())) : null)));
73
82
  };
@@ -103,7 +103,10 @@ export declare const tooltipProps: {
103
103
  type: import("vue").PropType<"show" | "if">;
104
104
  default: string;
105
105
  };
106
+ arrowClass: StringConstructor;
106
107
  arrowStyle: import("vue").PropType<string | import("vue").CSSProperties>;
108
+ arrowWrapperClass: StringConstructor;
109
+ arrowWrapperStyle: import("vue").PropType<string | import("vue").CSSProperties>;
107
110
  flip: {
108
111
  type: BooleanConstructor;
109
112
  default: boolean;
@@ -127,8 +130,11 @@ export declare const tooltipProps: {
127
130
  default: undefined;
128
131
  };
129
132
  scrollable: BooleanConstructor;
133
+ contentClass: StringConstructor;
130
134
  contentStyle: import("vue").PropType<string | import("vue").CSSProperties>;
135
+ headerClass: StringConstructor;
131
136
  headerStyle: import("vue").PropType<string | import("vue").CSSProperties>;
137
+ footerClass: StringConstructor;
132
138
  footerStyle: import("vue").PropType<string | import("vue").CSSProperties>;
133
139
  onClickoutside: import("vue").PropType<(e: MouseEvent) => void>;
134
140
  'onUpdate:show': import("vue").PropType<import("../../_utils").MaybeArray<(value: boolean) => void>>;
@@ -256,7 +262,10 @@ declare const _default: import("vue").DefineComponent<{
256
262
  type: import("vue").PropType<"show" | "if">;
257
263
  default: string;
258
264
  };
265
+ arrowClass: StringConstructor;
259
266
  arrowStyle: import("vue").PropType<string | import("vue").CSSProperties>;
267
+ arrowWrapperClass: StringConstructor;
268
+ arrowWrapperStyle: import("vue").PropType<string | import("vue").CSSProperties>;
260
269
  flip: {
261
270
  type: BooleanConstructor;
262
271
  default: boolean;
@@ -280,8 +289,11 @@ declare const _default: import("vue").DefineComponent<{
280
289
  default: undefined;
281
290
  };
282
291
  scrollable: BooleanConstructor;
292
+ contentClass: StringConstructor;
283
293
  contentStyle: import("vue").PropType<string | import("vue").CSSProperties>;
294
+ headerClass: StringConstructor;
284
295
  headerStyle: import("vue").PropType<string | import("vue").CSSProperties>;
296
+ footerClass: StringConstructor;
285
297
  footerStyle: import("vue").PropType<string | import("vue").CSSProperties>;
286
298
  onClickoutside: import("vue").PropType<(e: MouseEvent) => void>;
287
299
  'onUpdate:show': import("vue").PropType<import("../../_utils").MaybeArray<(value: boolean) => void>>;
@@ -558,7 +570,10 @@ declare const _default: import("vue").DefineComponent<{
558
570
  type: import("vue").PropType<"show" | "if">;
559
571
  default: string;
560
572
  };
573
+ arrowClass: StringConstructor;
561
574
  arrowStyle: import("vue").PropType<string | import("vue").CSSProperties>;
575
+ arrowWrapperClass: StringConstructor;
576
+ arrowWrapperStyle: import("vue").PropType<string | import("vue").CSSProperties>;
562
577
  flip: {
563
578
  type: BooleanConstructor;
564
579
  default: boolean;
@@ -582,8 +597,11 @@ declare const _default: import("vue").DefineComponent<{
582
597
  default: undefined;
583
598
  };
584
599
  scrollable: BooleanConstructor;
600
+ contentClass: StringConstructor;
585
601
  contentStyle: import("vue").PropType<string | import("vue").CSSProperties>;
602
+ headerClass: StringConstructor;
586
603
  headerStyle: import("vue").PropType<string | import("vue").CSSProperties>;
604
+ footerClass: StringConstructor;
587
605
  footerStyle: import("vue").PropType<string | import("vue").CSSProperties>;
588
606
  onClickoutside: import("vue").PropType<(e: MouseEvent) => void>;
589
607
  'onUpdate:show': import("vue").PropType<import("../../_utils").MaybeArray<(value: boolean) => void>>;
@@ -1,3 +1,4 @@
1
1
  export { default as NTree, treeProps } from './src/Tree';
2
2
  export type { TreeProps } from './src/Tree';
3
3
  export type { TreeOption, TreeDragInfo, TreeDropInfo, TreeInst } from './src/interface';
4
+ export { treeGetClickTarget } from './src/utils';
package/es/tree/index.js CHANGED
@@ -1 +1,2 @@
1
1
  export { default as NTree, treeProps } from './src/Tree';
2
+ export { treeGetClickTarget } from './src/utils';