@unicom-cloud/ui 0.8.153 → 0.8.154

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 (715) hide show
  1. package/.virtual/_rolldown/runtime.js +1 -1
  2. package/.vite/manifest.json +35 -1
  3. package/affix/Affix.js +1 -1
  4. package/affix/index.js +1 -1
  5. package/alert/Alert.js +3 -3
  6. package/alert/index.js +1 -1
  7. package/anchor/Anchor.js +1 -1
  8. package/anchor/Link.js +1 -1
  9. package/anchor/context.js +1 -1
  10. package/anchor/index.js +1 -1
  11. package/anchor/utils.js +1 -1
  12. package/app/App.js +1 -1
  13. package/app/context.js +1 -1
  14. package/app/index.js +1 -1
  15. package/app/useApp.js +1 -1
  16. package/auto-complete/AutoComplete.js +1 -1
  17. package/auto-complete/index.js +1 -1
  18. package/avatar/Avatar.js +1 -1
  19. package/avatar/Group.js +1 -1
  20. package/avatar/context.js +1 -1
  21. package/avatar/index.js +1 -1
  22. package/back-top/BackTop.js +3 -3
  23. package/back-top/index.js +1 -1
  24. package/badge/Badge.js +3 -3
  25. package/badge/Count.js +3 -3
  26. package/badge/index.js +1 -1
  27. package/badge/utils.js +1 -1
  28. package/breadcrumb/Breadcrumb.js +1 -1
  29. package/breadcrumb/Item.js +1 -1
  30. package/breadcrumb/context.js +1 -1
  31. package/breadcrumb/index.js +1 -1
  32. package/button/Button.js +1 -1
  33. package/button/Group.js +1 -1
  34. package/button/index.js +1 -1
  35. package/calendar/Calendar.js +1 -1
  36. package/calendar/Month.js +1 -1
  37. package/calendar/WeekList.js +1 -1
  38. package/calendar/Year.js +1 -1
  39. package/calendar/header/Panel.js +1 -1
  40. package/calendar/header/index.js +1 -1
  41. package/calendar/hook/useCellClassName.js +1 -1
  42. package/calendar/index.js +1 -1
  43. package/card/Card.js +1 -1
  44. package/card/Grid.js +1 -1
  45. package/card/Meta.js +1 -1
  46. package/card/index.js +1 -1
  47. package/carousel/Arrow.js +1 -1
  48. package/carousel/Carousel.js +1 -1
  49. package/carousel/Indicator.js +1 -1
  50. package/carousel/index.js +1 -1
  51. package/cascader/Cascader.js +1 -1
  52. package/cascader/base/node.js +1 -1
  53. package/cascader/base/store.js +1 -1
  54. package/cascader/hook/useRefCurrent.js +1 -1
  55. package/cascader/index.js +1 -1
  56. package/cascader/panel/List.js +3 -3
  57. package/cascader/panel/Option.js +1 -1
  58. package/cascader/panel/Search.js +1 -1
  59. package/cascader/utils.js +1 -1
  60. package/checkbox/Checkbox.js +1 -1
  61. package/checkbox/Group.js +1 -1
  62. package/checkbox/GroupBlock.js +1 -1
  63. package/checkbox/context.js +1 -1
  64. package/checkbox/index.js +1 -1
  65. package/checkbox/useCheckbox.js +1 -1
  66. package/collapse/Collapse.js +1 -1
  67. package/collapse/Item.js +3 -3
  68. package/collapse/context.js +1 -1
  69. package/collapse/index.js +1 -1
  70. package/color-picker/ColorPicker.js +2 -2
  71. package/color-picker/ControlBar.js +1 -1
  72. package/color-picker/InputAlpha.js +1 -1
  73. package/color-picker/InputHex.js +1 -1
  74. package/color-picker/InputRgb.js +1 -1
  75. package/color-picker/Mode.js +1 -1
  76. package/color-picker/Palette.js +1 -1
  77. package/color-picker/Panel.js +1 -1
  78. package/color-picker/colors.d.ts +1 -1
  79. package/color-picker/colors.js +1 -1
  80. package/color-picker/hooks/useColorPicker.js +1 -1
  81. package/color-picker/hooks/useControlBlock.js +1 -1
  82. package/color-picker/index.js +1 -1
  83. package/color-picker/interface.js +1 -1
  84. package/color-picker/utils.js +2 -2
  85. package/comment/Comment.js +1 -1
  86. package/comment/index.js +1 -1
  87. package/config-provider/ConfigProvider.js +1 -1
  88. package/config-provider/context.js +1 -1
  89. package/config-provider/index.js +1 -1
  90. package/config-provider/initUI.js +1 -1
  91. package/config-provider/useConfigProvider.js +1 -1
  92. package/constant/index.js +1 -1
  93. package/copy/Copy.js +1 -1
  94. package/copy/index.js +1 -1
  95. package/countdown/Countdown.js +1 -1
  96. package/countdown/index.js +1 -1
  97. package/countdown/utils.js +1 -1
  98. package/date-picker/DatePicker.js +1 -1
  99. package/date-picker/DatePickerRange.js +1 -1
  100. package/date-picker/Picker.js +1 -1
  101. package/date-picker/context.js +1 -1
  102. package/date-picker/hook/useCellClassName.js +1 -1
  103. package/date-picker/index.js +1 -1
  104. package/date-picker/panel/Body.js +1 -1
  105. package/date-picker/panel/Footer.js +1 -1
  106. package/date-picker/panel/Header.js +1 -1
  107. package/date-picker/panel/Shortcut.js +1 -1
  108. package/date-picker/panel/WeekList.js +1 -1
  109. package/date-picker/panel/date/index.js +1 -1
  110. package/date-picker/panel/month/index.js +1 -1
  111. package/date-picker/panel/quarter/index.js +1 -1
  112. package/date-picker/panel/range/index.js +1 -1
  113. package/date-picker/panel/week/index.js +1 -1
  114. package/date-picker/panel/year/index.js +1 -1
  115. package/date-picker/utils.js +1 -1
  116. package/descriptions/Descriptions.js +1 -1
  117. package/descriptions/index.js +1 -1
  118. package/details/Details.js +1 -1
  119. package/details/index.js +1 -1
  120. package/development/Development.js +1 -1
  121. package/development/index.js +1 -1
  122. package/divider/Divider.js +1 -1
  123. package/divider/index.js +1 -1
  124. package/draggable/Draggable.js +1 -1
  125. package/draggable/Item.js +1 -1
  126. package/draggable/index.js +1 -1
  127. package/draw/Draw.d.ts +0 -1
  128. package/draw/Draw.js +14 -14
  129. package/draw/constant.js +1 -1
  130. package/draw/index.js +1 -1
  131. package/drawer/Drawer.js +72 -67
  132. package/drawer/index.js +1 -1
  133. package/dropdown/Button.js +1 -1
  134. package/dropdown/Dropdown.js +1 -1
  135. package/dropdown/index.js +1 -1
  136. package/empty/Empty.js +1 -1
  137. package/empty/index.js +1 -1
  138. package/flex/Flex.js +1 -1
  139. package/flex/index.js +1 -1
  140. package/form/Control.js +1 -1
  141. package/form/Form.js +1 -1
  142. package/form/FormControl.js +1 -1
  143. package/form/FormItem.js +1 -1
  144. package/form/FormItemTip.js +3 -3
  145. package/form/FormLabel.js +1 -1
  146. package/form/FormLabelSymbol.js +1 -1
  147. package/form/FormList.js +1 -1
  148. package/form/FormProvider.js +1 -1
  149. package/form/constant.js +1 -1
  150. package/form/context.js +1 -1
  151. package/form/hook/useForm.js +1 -1
  152. package/form/hook/useFormContext.js +1 -1
  153. package/form/hook/useFormState.js +1 -1
  154. package/form/hook/useWatch.js +1 -1
  155. package/form/index.js +1 -1
  156. package/form/interface.js +1 -1
  157. package/form/promisify.js +1 -1
  158. package/form/store.js +1 -1
  159. package/form/utils.js +1 -1
  160. package/global-provider/GlobalProvider.js +1 -1
  161. package/global-provider/context.js +1 -1
  162. package/global-provider/index.js +1 -1
  163. package/grid/Grid.js +1 -1
  164. package/grid/Item.js +1 -1
  165. package/grid/context.js +1 -1
  166. package/grid/index.js +1 -1
  167. package/grid/utils.js +1 -1
  168. package/hooks/index.js +1 -1
  169. package/hooks/use-breakpoint/index.js +1 -1
  170. package/hooks/use-computed-state/index.js +1 -1
  171. package/hooks/use-create/index.js +1 -1
  172. package/hooks/use-creation/index.js +1 -1
  173. package/hooks/use-event/index.js +1 -1
  174. package/hooks/use-event-listener/index.js +1 -1
  175. package/hooks/use-force-update/index.js +1 -1
  176. package/hooks/use-fullscreen/index.js +1 -1
  177. package/hooks/use-id/index.js +1 -1
  178. package/hooks/use-in-view/index.js +1 -1
  179. package/hooks/use-intersection-observer/index.js +1 -1
  180. package/hooks/use-intersection-observers/index.js +1 -1
  181. package/hooks/use-interval/index.js +1 -1
  182. package/hooks/use-is-first-render/index.js +1 -1
  183. package/hooks/use-isomorphic-layout-effect/index.js +1 -1
  184. package/hooks/use-keyboard-event/index.js +1 -1
  185. package/hooks/use-latest/index.js +1 -1
  186. package/hooks/use-listen-window-resize/index.js +1 -1
  187. package/hooks/use-media/index.js +1 -1
  188. package/hooks/use-merge-props/index.js +1 -1
  189. package/hooks/use-merge-value/index.js +1 -1
  190. package/hooks/use-move/index.js +1 -1
  191. package/hooks/use-mutation-observers/index.js +1 -1
  192. package/hooks/use-online-status/index.js +1 -1
  193. package/hooks/use-overflow-hidden/index.js +1 -1
  194. package/hooks/use-override-ref/index.js +1 -1
  195. package/hooks/use-persist-callback/index.js +1 -1
  196. package/hooks/use-prefers-color-scheme-dark/index.js +1 -1
  197. package/hooks/use-previous/index.js +1 -1
  198. package/hooks/use-refs/index.js +1 -1
  199. package/hooks/use-resize-observer/index.js +1 -1
  200. package/hooks/use-resize-observers/index.js +1 -1
  201. package/hooks/use-responsive-state/index.js +1 -1
  202. package/hooks/use-set-state/index.js +1 -1
  203. package/hooks/use-state-callback/index.js +1 -1
  204. package/hooks/use-state-with-promise/index.js +1 -1
  205. package/hooks/use-update-effect/index.js +1 -1
  206. package/hooks/use-update-layout-effect/index.js +1 -1
  207. package/hooks/use-verification-code/index.js +1 -1
  208. package/hooks/use-watch/index.js +1 -1
  209. package/hooks/use-watermark/index.js +1 -1
  210. package/hooks/use-watermark/utils.js +1 -1
  211. package/hooks/use-window-size/index.js +1 -1
  212. package/hooks/useUnmountOnExit.js +1 -1
  213. package/icon/Icon.js +1 -1
  214. package/icon/addIconFromCdn.js +1 -1
  215. package/icon/index.js +1 -1
  216. package/icon-hover/IconHover.js +1 -1
  217. package/icon-hover/index.js +1 -1
  218. package/icons/file/File.js +1 -1
  219. package/icons/file/index.js +1 -1
  220. package/icons.js +1 -1
  221. package/image/Image.js +1 -1
  222. package/image/ImageFooter.js +1 -1
  223. package/image/ImagePreview.js +3 -3
  224. package/image/ImagePreviewArrow.js +1 -1
  225. package/image/ImagePreviewGroup.js +1 -1
  226. package/image/ImagePreviewToolbar.js +1 -1
  227. package/image/TriggerForToolbar.js +1 -1
  228. package/image/context.js +1 -1
  229. package/image/index.js +1 -1
  230. package/image/utils/getFixTranslate.js +1 -1
  231. package/image/utils/getScale.js +1 -1
  232. package/image/utils/hook/useImageStatus.js +1 -1
  233. package/image/utils/hook/useShowFooter.js +1 -1
  234. package/index.d.ts +2 -2
  235. package/index.js +813 -788
  236. package/input/Button.js +1 -1
  237. package/input/Group.js +1 -1
  238. package/input/Input.js +1 -1
  239. package/input/InputElement.js +1 -1
  240. package/input/Number.js +1 -1
  241. package/input/Password.js +1 -1
  242. package/input/Search.js +1 -1
  243. package/input/Tag.js +1 -1
  244. package/input/Textarea.js +1 -1
  245. package/input/autoSizeTextareaHeight.js +1 -1
  246. package/input/index.js +2 -2
  247. package/input/useComposition.js +1 -1
  248. package/input/utils.js +1 -1
  249. package/input-number/InputNumber.js +1 -1
  250. package/input-number/decimal.js +1 -1
  251. package/input-number/index.js +1 -1
  252. package/input-number/useSelectionRange.js +1 -1
  253. package/input-number/utils.js +1 -1
  254. package/input-tag/InputTag.js +1 -1
  255. package/input-tag/constant.js +1 -1
  256. package/input-tag/hook/useComputeAutoWidthDelay.js +1 -1
  257. package/input-tag/index.js +1 -1
  258. package/layout/Content.js +1 -1
  259. package/layout/Footer.js +1 -1
  260. package/layout/Header.js +1 -1
  261. package/layout/Layout.js +1 -1
  262. package/layout/Sider.js +1 -1
  263. package/layout/context.js +1 -1
  264. package/layout/index.js +1 -1
  265. package/link/Link.js +1 -1
  266. package/link/index.js +1 -1
  267. package/liquid-fill/LiquidFill.js +1 -1
  268. package/liquid-fill/index.js +1 -1
  269. package/list/Item.js +1 -1
  270. package/list/List.js +1 -1
  271. package/list/Meta.js +1 -1
  272. package/list/index.js +1 -1
  273. package/loading/Loading.js +1 -1
  274. package/loading/index.js +1 -1
  275. package/locale/ar-EG.js +1 -1
  276. package/locale/de-DE.js +1 -1
  277. package/locale/default.js +1 -1
  278. package/locale/en-US.js +1 -1
  279. package/locale/es-ES.js +1 -1
  280. package/locale/fr-FR.js +1 -1
  281. package/locale/id-ID.js +1 -1
  282. package/locale/it-IT.js +1 -1
  283. package/locale/ja-JP.js +1 -1
  284. package/locale/ko-KR.js +1 -1
  285. package/locale/ms-MY.js +1 -1
  286. package/locale/pt-BR.js +1 -1
  287. package/locale/pt-PT.js +1 -1
  288. package/locale/ru-RU.js +1 -1
  289. package/locale/th-TH.js +1 -1
  290. package/locale/tr-TR.js +1 -1
  291. package/locale/vi-VN.js +1 -1
  292. package/locale/zh-CN.js +1 -1
  293. package/locale/zh-HK.js +1 -1
  294. package/locale/zh-TW.js +1 -1
  295. package/marquee/Marquee.js +1 -1
  296. package/marquee/index.js +1 -1
  297. package/mask/Mask.js +21 -18
  298. package/mask/index.js +1 -1
  299. package/mask/interface.d.ts +1 -0
  300. package/masonry/Masonry.js +1 -1
  301. package/masonry/MasonryItem.js +1 -1
  302. package/masonry/hooks/useDelay.js +1 -1
  303. package/masonry/hooks/useGutter.js +1 -1
  304. package/masonry/hooks/usePositions.js +1 -1
  305. package/masonry/hooks/useRefs.js +1 -1
  306. package/masonry/index.js +1 -1
  307. package/mentions/Mentions.js +1 -1
  308. package/mentions/index.js +1 -1
  309. package/mentions/utils.js +1 -1
  310. package/menu/Indent.js +1 -1
  311. package/menu/Item.js +1 -1
  312. package/menu/ItemGroup.js +1 -1
  313. package/menu/Menu.js +1 -1
  314. package/menu/OverflowWrap.js +1 -1
  315. package/menu/context.js +1 -1
  316. package/menu/index.js +1 -1
  317. package/menu/sub-menu/Inline.js +3 -3
  318. package/menu/sub-menu/Pop.js +1 -1
  319. package/menu/sub-menu/index.js +1 -1
  320. package/menu/utils.js +1 -1
  321. package/message/Message.js +4 -5
  322. package/message/index.js +5 -5
  323. package/message/interface.d.ts +3 -3
  324. package/message/useMessage.js +1 -1
  325. package/modal/Confirm.js +1 -1
  326. package/modal/Modal.js +136 -134
  327. package/modal/config.js +1 -1
  328. package/modal/index.js +1 -1
  329. package/modal/use-modal/Hook.js +1 -1
  330. package/modal/use-modal/index.js +1 -1
  331. package/notice/Notice.js +1 -1
  332. package/notice/index.js +1 -1
  333. package/notification/Notification.js +3 -3
  334. package/notification/index.js +1 -1
  335. package/notification/useNotification.js +1 -1
  336. package/notification/withNotification.js +1 -1
  337. package/overflow-ellipsis/OverflowEllipsis.js +1 -1
  338. package/overflow-ellipsis/OverflowItem.js +1 -1
  339. package/overflow-ellipsis/index.js +1 -1
  340. package/package.json +1 -1
  341. package/page-header/PageHeader.js +1 -1
  342. package/page-header/index.js +1 -1
  343. package/pagination/PageItem.js +1 -1
  344. package/pagination/PageJumper.js +1 -1
  345. package/pagination/PageOption.js +1 -1
  346. package/pagination/Pagination.js +1 -1
  347. package/pagination/index.js +1 -1
  348. package/pagination/interface.js +1 -1
  349. package/picker/Input.js +1 -1
  350. package/picker/InputRange.js +1 -1
  351. package/picker/index.js +1 -1
  352. package/popconfirm/Popconfirm.js +1 -1
  353. package/popconfirm/index.js +1 -1
  354. package/popover/Popover.js +1 -1
  355. package/popover/index.js +1 -1
  356. package/portal/Portal.js +1 -1
  357. package/portal/index.js +1 -1
  358. package/progress/CircleProgress.js +1 -1
  359. package/progress/LineProgess.js +1 -1
  360. package/progress/Progress.js +1 -1
  361. package/progress/StepProgress.js +1 -1
  362. package/progress/index.js +1 -1
  363. package/qr-code/QRCode.js +1 -1
  364. package/qr-code/index.d.ts +1 -0
  365. package/qr-code/index.js +3 -3
  366. package/qr-code/src/index.js +2 -2
  367. package/qr-code/src/qrcodegen.d.ts +2 -2
  368. package/qr-code/src/qrcodegen.js +656 -710
  369. package/radio/Group.js +1 -1
  370. package/radio/GroupBlock.js +1 -1
  371. package/radio/Radio.js +1 -1
  372. package/radio/context.js +1 -1
  373. package/radio/index.js +1 -1
  374. package/rate/Rate.js +1 -1
  375. package/rate/index.js +1 -1
  376. package/resize-box/ResizeBox.js +1 -1
  377. package/resize-box/ResizeTrigger.js +1 -1
  378. package/resize-box/Split.js +1 -1
  379. package/resize-box/SplitGroup.js +1 -1
  380. package/resize-box/index.js +1 -1
  381. package/result/403.js +1 -1
  382. package/result/404.js +1 -1
  383. package/result/500.js +1 -1
  384. package/result/Result.js +1 -1
  385. package/result/index.js +1 -1
  386. package/rich-text/RichText.js +1 -1
  387. package/rich-text/Toolbar.js +1 -1
  388. package/rich-text/constant.js +1 -1
  389. package/rich-text/index.d.ts +19 -3
  390. package/rich-text/index.js +13 -2
  391. package/rich-text/lib/blots/block.js +1 -1
  392. package/rich-text/lib/blots/break.js +1 -1
  393. package/rich-text/lib/blots/container.js +1 -1
  394. package/rich-text/lib/blots/cursor.js +1 -1
  395. package/rich-text/lib/blots/embed.js +1 -1
  396. package/rich-text/lib/blots/inline.js +1 -1
  397. package/rich-text/lib/blots/scroll.js +1 -1
  398. package/rich-text/lib/blots/text.js +1 -1
  399. package/rich-text/lib/core/composition.js +1 -1
  400. package/rich-text/lib/core/editor.js +102 -102
  401. package/rich-text/lib/core/emitter.js +1 -1
  402. package/rich-text/lib/core/logger.js +1 -1
  403. package/rich-text/lib/core/module.js +1 -1
  404. package/rich-text/lib/core/rich.js +1 -1
  405. package/rich-text/lib/core/selection.js +80 -80
  406. package/rich-text/lib/core/theme.js +1 -1
  407. package/rich-text/lib/core/utils/createRegistryWithFormats.js +1 -1
  408. package/rich-text/lib/core/utils/scrollRectIntoView.js +1 -1
  409. package/rich-text/lib/delta/AttributeMap.js +1 -1
  410. package/rich-text/lib/delta/Op.js +1 -1
  411. package/rich-text/lib/delta/OpIterator.js +1 -1
  412. package/rich-text/lib/delta/index.js +1 -1
  413. package/rich-text/lib/diff/index.js +1 -1
  414. package/rich-text/lib/formats/align.js +1 -1
  415. package/rich-text/lib/formats/background.js +1 -1
  416. package/rich-text/lib/formats/blockquote.js +1 -1
  417. package/rich-text/lib/formats/bold.js +1 -1
  418. package/rich-text/lib/formats/code.js +1 -1
  419. package/rich-text/lib/formats/color.js +1 -1
  420. package/rich-text/lib/formats/direction.js +1 -1
  421. package/rich-text/lib/formats/emoji.js +1 -1
  422. package/rich-text/lib/formats/font.js +1 -1
  423. package/rich-text/lib/formats/formula.js +1 -1
  424. package/rich-text/lib/formats/header.js +1 -1
  425. package/rich-text/lib/formats/hr.js +1 -1
  426. package/rich-text/lib/formats/image.js +1 -1
  427. package/rich-text/lib/formats/indent.js +1 -1
  428. package/rich-text/lib/formats/italic.js +1 -1
  429. package/rich-text/lib/formats/lineHeight.js +1 -1
  430. package/rich-text/lib/formats/link.js +1 -1
  431. package/rich-text/lib/formats/list.js +1 -1
  432. package/rich-text/lib/formats/script.js +1 -1
  433. package/rich-text/lib/formats/size.js +1 -1
  434. package/rich-text/lib/formats/strike.js +1 -1
  435. package/rich-text/lib/formats/table.js +1 -1
  436. package/rich-text/lib/formats/underline.js +1 -1
  437. package/rich-text/lib/formats/video.js +1 -1
  438. package/rich-text/lib/index.js +1 -1
  439. package/rich-text/lib/modules/clipboard.js +132 -132
  440. package/rich-text/lib/modules/history.js +1 -1
  441. package/rich-text/lib/modules/image-resize/index.js +1 -1
  442. package/rich-text/lib/modules/image-resize/modules/Base.js +1 -1
  443. package/rich-text/lib/modules/image-resize/modules/DisplaySize.js +1 -1
  444. package/rich-text/lib/modules/image-resize/modules/Resize.js +1 -1
  445. package/rich-text/lib/modules/image-resize/options.js +1 -1
  446. package/rich-text/lib/modules/input.js +1 -1
  447. package/rich-text/lib/modules/keyboard.js +1 -1
  448. package/rich-text/lib/modules/normalizeExternalHTML/index.js +1 -1
  449. package/rich-text/lib/modules/normalizeExternalHTML/normalizers/googleDocs.js +1 -1
  450. package/rich-text/lib/modules/normalizeExternalHTML/normalizers/msWord.js +1 -1
  451. package/rich-text/lib/modules/table.js +1 -1
  452. package/rich-text/lib/modules/toolbar.js +1 -1
  453. package/rich-text/lib/modules/uiNode.js +1 -1
  454. package/rich-text/lib/modules/uploader.js +1 -1
  455. package/rich-text/lib/parchment/attributor/attributor.js +1 -1
  456. package/rich-text/lib/parchment/attributor/class.js +1 -1
  457. package/rich-text/lib/parchment/attributor/store.js +1 -1
  458. package/rich-text/lib/parchment/attributor/style.js +1 -1
  459. package/rich-text/lib/parchment/blot/abstract/container.js +1 -1
  460. package/rich-text/lib/parchment/blot/abstract/leaf.js +1 -1
  461. package/rich-text/lib/parchment/blot/abstract/parent.js +1 -1
  462. package/rich-text/lib/parchment/blot/abstract/shadow.js +1 -1
  463. package/rich-text/lib/parchment/blot/block.js +1 -1
  464. package/rich-text/lib/parchment/blot/embed.js +1 -1
  465. package/rich-text/lib/parchment/blot/inline.js +1 -1
  466. package/rich-text/lib/parchment/blot/scroll.js +1 -1
  467. package/rich-text/lib/parchment/blot/text.js +1 -1
  468. package/rich-text/lib/parchment/collection/linked-list.js +1 -1
  469. package/rich-text/lib/parchment/error.js +1 -1
  470. package/rich-text/lib/parchment/index.js +1 -1
  471. package/rich-text/lib/parchment/registry.js +18 -18
  472. package/rich-text/lib/parchment/scope.js +1 -1
  473. package/row-col/Col-.js +1 -1
  474. package/row-col/Col.js +1 -1
  475. package/row-col/Row.js +1 -1
  476. package/row-col/context.js +1 -1
  477. package/row-col/index.js +1 -1
  478. package/segmented/Segmented.js +1 -1
  479. package/segmented/index.js +1 -1
  480. package/select/Option.js +1 -1
  481. package/select/OptionGroup.js +1 -1
  482. package/select/Select.js +1 -1
  483. package/select/index.js +1 -1
  484. package/select/utils.js +1 -1
  485. package/select-view/Core.js +1 -1
  486. package/select-view/SelectView.js +1 -1
  487. package/select-view/index.js +1 -1
  488. package/skeleton/Image.js +1 -1
  489. package/skeleton/Skeleton.js +1 -1
  490. package/skeleton/Text.js +1 -1
  491. package/skeleton/index.js +1 -1
  492. package/slider/Button.js +1 -1
  493. package/slider/Dot.js +1 -1
  494. package/slider/Input.js +1 -1
  495. package/slider/Mark.js +1 -1
  496. package/slider/Slider.js +1 -1
  497. package/slider/Tick.js +1 -1
  498. package/slider/hook/useInterval.js +1 -1
  499. package/slider/hook/useLegalValue.js +1 -1
  500. package/slider/index.js +1 -1
  501. package/slider/utils.js +1 -1
  502. package/space/Space.js +1 -1
  503. package/space/index.js +1 -1
  504. package/speech-synthesis/SpeechSynthesis.js +1 -1
  505. package/speech-synthesis/index.js +1 -1
  506. package/spin/DotLoading.js +1 -1
  507. package/spin/Spin.js +1 -1
  508. package/spin/index.js +1 -1
  509. package/splitter/Panel.d.ts +1 -5
  510. package/splitter/Panel.js +4 -3
  511. package/splitter/SplitBar.js +1 -1
  512. package/splitter/Splitter.js +2 -2
  513. package/splitter/hooks/useItems.js +1 -1
  514. package/splitter/hooks/useResizable.js +1 -1
  515. package/splitter/hooks/useResize.js +1 -1
  516. package/splitter/hooks/useSizes.js +1 -1
  517. package/splitter/index.js +1 -1
  518. package/statistic/Statistic.js +1 -1
  519. package/statistic/index.js +1 -1
  520. package/statistic/interface.js +1 -1
  521. package/steps/Step.js +1 -1
  522. package/steps/Steps.js +1 -1
  523. package/steps/index.js +1 -1
  524. package/style/animation/fade.less +4 -4
  525. package/style/animation/slide.less +20 -20
  526. package/style/animation/zoom.less +12 -12
  527. package/style.css +1 -1
  528. package/suspense-fallback-test/SuspenseFallbackTest.js +1 -1
  529. package/suspense-fallback-test/index.js +1 -1
  530. package/switch/Switch.js +1 -1
  531. package/switch/index.js +1 -1
  532. package/table/ColGroup.js +1 -1
  533. package/table/Table.js +281 -270
  534. package/table/constant.js +1 -1
  535. package/table/context.js +1 -1
  536. package/table/hook/useColumns.js +1 -1
  537. package/table/hook/useComponent.js +1 -1
  538. package/table/hook/useExpand.js +1 -1
  539. package/table/hook/useRowSelection.js +1 -1
  540. package/table/hook/useSorter.js +1 -1
  541. package/table/hook/useStickyClassNames.js +1 -1
  542. package/table/hook/useStickyOffsets.js +1 -1
  543. package/table/hook/useThResizable.js +1 -1
  544. package/table/index.js +1 -1
  545. package/table/interface.d.ts +1 -1
  546. package/table/summary/Cell.js +1 -1
  547. package/table/summary/Row.js +1 -1
  548. package/table/summary/context.js +1 -1
  549. package/table/summary/index.js +1 -1
  550. package/table/tbody/DataRecordRenderer.js +1 -1
  551. package/table/tbody/Td.js +68 -78
  552. package/table/tbody/Tr.js +1 -1
  553. package/table/tbody/index.js +1 -1
  554. package/table/tfoot/index.js +1 -1
  555. package/table/th-resizable/index.js +1 -1
  556. package/table/thead/Column.js +1 -1
  557. package/table/thead/index.js +1 -1
  558. package/table/utils.d.ts +0 -2
  559. package/table/utils.js +12 -18
  560. package/tabs/TabContent.js +1 -1
  561. package/tabs/TabPane.js +1 -1
  562. package/tabs/Tabs.js +1 -1
  563. package/tabs/context.js +1 -1
  564. package/tabs/hook/useDomSize.js +1 -1
  565. package/tabs/hook/useHeaderScroll.js +1 -1
  566. package/tabs/index.js +1 -1
  567. package/tabs/tab-header/DropdownIcon.js +1 -1
  568. package/tabs/tab-header/TabInk.js +1 -1
  569. package/tabs/tab-header/TabNavIcon.js +1 -1
  570. package/tabs/tab-header/TabTitle.js +1 -1
  571. package/tabs/tab-header/index.js +1 -1
  572. package/tabs/utils.js +1 -1
  573. package/tag/Tag.js +1 -1
  574. package/tag/index.js +1 -1
  575. package/tag/utils.js +1 -1
  576. package/time-picker/Picker.js +1 -1
  577. package/time-picker/TimeColumn.js +1 -1
  578. package/time-picker/TimePicker.js +1 -1
  579. package/time-picker/TimePickerRange.js +1 -1
  580. package/time-picker/context.js +1 -1
  581. package/time-picker/index.js +1 -1
  582. package/time-picker/utils.js +1 -1
  583. package/timeline/Item.js +1 -1
  584. package/timeline/Timeline.js +1 -1
  585. package/timeline/index.js +1 -1
  586. package/timer/Timer.js +1 -1
  587. package/timer/index.js +1 -1
  588. package/tooltip/Tooltip.js +1 -1
  589. package/tooltip/index.js +1 -1
  590. package/tour/Tour.js +1 -1
  591. package/tour/index.js +1 -1
  592. package/transfer/Item.js +1 -1
  593. package/transfer/List.js +1 -1
  594. package/transfer/Transfer.js +1 -1
  595. package/transfer/index.js +1 -1
  596. package/tree/Animation.js +3 -3
  597. package/tree/Context2.js +1 -1
  598. package/tree/Node.js +1 -1
  599. package/tree/NodeList.js +1 -1
  600. package/tree/Tree.js +1 -1
  601. package/tree/context.js +1 -1
  602. package/tree/index.js +1 -1
  603. package/tree/utils.js +1 -1
  604. package/tree-select/List.js +1 -1
  605. package/tree-select/TreeSelect.js +1 -1
  606. package/tree-select/hook/useKeyCache.js +1 -1
  607. package/tree-select/hook/useStateValue.js +1 -1
  608. package/tree-select/hook/useTreeData.js +1 -1
  609. package/tree-select/index.js +1 -1
  610. package/tree-select/interface.js +1 -1
  611. package/tree-select/utils.js +1 -1
  612. package/trigger/Trigger.js +6 -6
  613. package/trigger/getPopupStyle.js +1 -1
  614. package/trigger/index.js +1 -1
  615. package/trigger/utils.js +1 -1
  616. package/typography/Base.js +1 -1
  617. package/typography/EditContent.js +1 -1
  618. package/typography/Ellipsis.js +1 -1
  619. package/typography/Operations.js +1 -1
  620. package/typography/Paragraph.js +1 -1
  621. package/typography/Text.js +1 -1
  622. package/typography/Title.js +1 -1
  623. package/typography/Typography.js +1 -1
  624. package/typography/index.js +1 -1
  625. package/typography/useCssEllipsis.js +1 -1
  626. package/typography/useEllipsis.js +1 -1
  627. package/upload/TriggerNode.js +1 -1
  628. package/upload/Upload.js +1 -1
  629. package/upload/Uploader.js +1 -1
  630. package/upload/constant.js +1 -1
  631. package/upload/index.js +1 -1
  632. package/upload/list/PictureItem.js +1 -1
  633. package/upload/list/TextItem.js +1 -1
  634. package/upload/list/UploadProgress.js +1 -1
  635. package/upload/list/index.js +1 -1
  636. package/upload/list/utils.js +1 -1
  637. package/upload/request.js +1 -1
  638. package/upload/utils.js +1 -1
  639. package/utils/callOrReturn.js +1 -1
  640. package/utils/callbackOriginRef.js +1 -1
  641. package/utils/caseName.js +1 -1
  642. package/utils/className.js +1 -1
  643. package/utils/constant.d.ts +1 -1
  644. package/utils/constant.js +1 -1
  645. package/utils/contextHolder.js +1 -1
  646. package/utils/copy.js +1 -1
  647. package/utils/date.js +1 -1
  648. package/utils/dayjs.js +1 -1
  649. package/utils/dom.js +1 -1
  650. package/utils/emitter.js +1 -1
  651. package/utils/fileRead.js +1 -1
  652. package/utils/fileToDataURL.js +1 -1
  653. package/utils/fillNBSP.js +1 -1
  654. package/utils/findRootElement.js +1 -1
  655. package/utils/findScrollParent.js +1 -1
  656. package/utils/getHighlightText.js +1 -1
  657. package/utils/getHotkeyHandler.js +1 -1
  658. package/utils/getScrollBarHeight.d.ts +3 -0
  659. package/utils/getScrollBarHeight.js +7 -0
  660. package/utils/getScrollBarSize.d.ts +3 -0
  661. package/utils/getScrollBarSize.js +7 -0
  662. package/utils/getScrollBarWidth.d.ts +3 -0
  663. package/utils/getScrollBarWidth.js +7 -0
  664. package/utils/getStringLength.js +1 -1
  665. package/utils/include.js +1 -1
  666. package/utils/index.d.ts +3 -0
  667. package/utils/index.js +235 -228
  668. package/utils/intersectionObserver.js +1 -1
  669. package/utils/is.d.ts +1 -1
  670. package/utils/is.js +9 -8
  671. package/utils/keyboardCode.js +1 -1
  672. package/utils/lodash.js +1 -1
  673. package/utils/math.js +1 -1
  674. package/utils/mergeProps.js +1 -1
  675. package/utils/mergedToString.js +1 -1
  676. package/utils/mutationObserver.js +1 -1
  677. package/utils/names.js +1 -1
  678. package/utils/omit.js +1 -1
  679. package/utils/pad.js +1 -1
  680. package/utils/pick.js +1 -1
  681. package/utils/pinyin.js +1 -1
  682. package/utils/react19Adapter.js +1 -1
  683. package/utils/ref.js +1 -1
  684. package/utils/resizeObserver.js +1 -1
  685. package/utils/responsiveObserve.js +1 -1
  686. package/utils/saveAs.js +1 -1
  687. package/utils/screenfull.js +1 -1
  688. package/utils/scrollIntoViewIfNeeded.js +1 -1
  689. package/utils/setCreateRoot.js +1 -1
  690. package/utils/setDarkTheme.js +1 -1
  691. package/utils/setPrimaryColor.js +1 -1
  692. package/utils/setTheme.js +1 -1
  693. package/utils/string.js +1 -1
  694. package/utils/style.js +1 -1
  695. package/utils/throttleByRaf.js +1 -1
  696. package/utils/throttleByRaf2.js +1 -1
  697. package/utils/toArray.js +1 -1
  698. package/utils/tree.js +1 -1
  699. package/utils/tween.js +1 -1
  700. package/utils/uuid.js +1 -1
  701. package/utils/validate.js +1 -1
  702. package/utils/warning.js +1 -1
  703. package/verification-code/VerificationCode.js +1 -1
  704. package/verification-code/index.js +1 -1
  705. package/version/index.js +11 -14
  706. package/virtual-list/Filler.js +1 -1
  707. package/virtual-list/VirtualList.js +1 -1
  708. package/virtual-list/constant.js +1 -1
  709. package/virtual-list/hook/useCacheChildrenNodes.js +1 -1
  710. package/virtual-list/hook/useComputeVirtualItemHeight.js +1 -1
  711. package/virtual-list/index.js +1 -1
  712. package/virtual-list/utils/algorithm.js +1 -1
  713. package/virtual-list/utils/item.js +1 -1
  714. package/watermark/Watermark.js +1 -1
  715. package/watermark/index.js +1 -1
package/table/Table.js CHANGED
@@ -1,70 +1,71 @@
1
- /* 潘启宝 2026-03-24 17:57:08 星期二 */
1
+ /* 潘启宝 2026-04-03 14:07:06 星期五 */
2
2
  import { isArray as e, isArrayAndNotEmpty as t, isBoolean as n, isFunction as r, isNaN as i, isNil as a, isNumber as o, isObjectLike as s, isPlainObject as c, isString as l, isUndefined as ee } from "../utils/is.js";
3
3
  import te from "../utils/className.js";
4
4
  import { pickDataAttributes as ne } from "../utils/pick.js";
5
5
  import { off as re, on as ie } from "../utils/dom.js";
6
6
  import ae from "../config-provider/context.js";
7
7
  import "../config-provider/index.js";
8
+ import oe from "../utils/getScrollBarHeight.js";
9
+ import se from "../utils/getScrollBarWidth.js";
8
10
  import "../utils/tween.js";
9
- import oe from "../hooks/use-isomorphic-layout-effect/index.js";
10
- import se from "../hooks/use-resize-observers/index.js";
11
- import ce from "../hooks/use-update-effect/index.js";
12
- import { CHILDREN_NAME as le } from "../constant/index.js";
13
- import ue from "../spin/index.js";
14
- import de from "../pagination/index.js";
11
+ import ce from "../hooks/use-isomorphic-layout-effect/index.js";
12
+ import le from "../hooks/use-resize-observers/index.js";
13
+ import ue from "../hooks/use-update-effect/index.js";
14
+ import { CHILDREN_NAME as de } from "../constant/index.js";
15
+ import fe from "../spin/index.js";
16
+ import pe from "../pagination/index.js";
15
17
  import "./constant.js";
16
- import { TableContext as fe } from "./context.js";
17
- import pe from "./hook/useComponent.js";
18
- import me from "./hook/useColumns.js";
19
- import { deepCloneData as he, getOriginData as u, getScrollBarWidth as ge, getSorterFn as _e, getSorterPriority as ve } from "./utils.js";
20
- import ye from "./hook/useExpand.js";
21
- import be from "./hook/useRowSelection.js";
22
- import xe from "./hook/useSorter.js";
23
- import Se from "./hook/useStickyClassNames.js";
24
- import Ce from "./hook/useStickyOffsets.js";
25
- import we from "../hooks/use-window-size/index.js";
26
- import d from "./ColGroup.js";
27
- import Te from "./tbody/index.js";
28
- import Ee from "./tfoot/index.js";
29
- import De from "./thead/index.js";
30
- import Oe, { forwardRef as ke, useCallback as Ae, useContext as je, useEffect as Me, useImperativeHandle as Ne, useMemo as f, useRef as p, useState as m } from "react";
31
- import Pe from "lodash/merge";
32
- import { Fragment as Fe, jsx as h, jsxs as g } from "react/jsx-runtime";
33
- import Ie from "lodash/throttle";
18
+ import { TableContext as me } from "./context.js";
19
+ import he from "./hook/useComponent.js";
20
+ import ge from "./hook/useColumns.js";
21
+ import { deepCloneData as _e, getOriginData as u, getSorterFn as ve, getSorterPriority as ye } from "./utils.js";
22
+ import be from "./hook/useExpand.js";
23
+ import xe from "./hook/useRowSelection.js";
24
+ import Se from "./hook/useSorter.js";
25
+ import Ce from "./hook/useStickyClassNames.js";
26
+ import we from "./hook/useStickyOffsets.js";
27
+ import Te from "../hooks/use-window-size/index.js";
28
+ import Ee from "./ColGroup.js";
29
+ import De from "./tbody/index.js";
30
+ import Oe from "./tfoot/index.js";
31
+ import ke from "./thead/index.js";
32
+ import Ae, { forwardRef as je, useContext as Me, useEffect as Ne, useImperativeHandle as Pe, useMemo as d, useRef as f, useState as p } from "react";
33
+ import Fe from "lodash/merge";
34
+ import { Fragment as Ie, jsx as m, jsxs as h } from "react/jsx-runtime";
34
35
  //#region components/pc/table/Table.tsx
35
36
  var Le = [], Re = [];
36
- function ze(ke, ze) {
37
- let _ = {
37
+ function ze(je, ze) {
38
+ let g = {
38
39
  showHeader: !0,
39
40
  border: !0,
40
41
  hover: !0,
41
42
  rowKey: "key",
42
43
  pagePosition: "br",
43
- childrenColumnName: le,
44
+ childrenColumnName: de,
44
45
  indentSize: 16,
45
46
  showSorterTooltip: !0
46
- }, { prefixCls: Be, getPrefixCls: Ve, loadingElement: He, size: Ue, renderEmpty: We, componentConfig: Ge, rtl: v } = je(ae), y = Pe({}, _, Ge?.Table, ke), { style: Ke, className: qe, component: Je, border: b, borderCell: Ye, columns: Xe = Re, data: x = Le, scroll: S, noDataElement: Ze, showHeader: Qe, stripe: $e, hover: et, pagination: C, onChange: w, pagePosition: T, childrenColumnName: E, indentSize: tt, rowSelection: D, tableLayoutFixed: nt, header: rt, footer: it, virtualized: O, renderPagination: at, summary: ot, rowKey: st, triggerProps: ct, size: lt = Ue, expandProps: ut } = y, dt = f(() => {
47
+ }, { prefixCls: Be, getPrefixCls: Ve, loadingElement: He, size: Ue, renderEmpty: We, componentConfig: Ge, rtl: _ } = Me(ae), v = Fe({}, g, Ge?.Table, je), { style: Ke, className: qe, component: Je, border: y, borderCell: Ye, columns: Xe = Re, data: b = Le, scroll: x, noDataElement: Ze, showHeader: Qe, stripe: $e, hover: et, pagination: S, onChange: C, pagePosition: w, childrenColumnName: T, indentSize: tt, rowSelection: E, tableLayoutFixed: nt, header: rt, footer: it, virtualized: D, renderPagination: at, summary: ot, rowKey: O, triggerProps: st, size: ct = Ue, expandProps: lt } = v, ut = d(() => {
47
48
  let e = tt;
48
- return l(e) && (e = Number.parseFloat(e), i(e) && (e = _.indentSize)), e;
49
- }, [tt]), k = c(C) ? C : {}, A = c(S) && S.x, ft = f(() => he(x, E), [x, E]), j = Ve?.("table"), pt = [
49
+ return l(e) && (e = Number.parseFloat(e), i(e) && (e = g.indentSize)), e;
50
+ }, [tt]), k = c(S) ? S : {}, A = c(x) && x.x, dt = d(() => _e(b, T), [b, T]), j = Ve?.("table"), ft = [
50
51
  "default",
51
52
  "mini",
52
53
  "small",
53
54
  "large"
54
- ].includes(lt) ? lt : "default", M = p(null), N = p(null), mt = p(null), P = p(null), F = p(null), ht = p(null), gt = p(null), _t = p(null), I = p(null), L = p(0), vt = p(!1), [yt, R] = me(y), { currentFilters: bt, defaultSorters: xt } = zt(), [z, St] = m(1), [Ct, wt] = m(k.pageSize || k.defaultPageSize || 10), [Tt, Et] = m(bt), [Dt, Ot] = m(0), [kt, At] = m([]), jt = Ce(R), [Mt, Nt] = Se(yt, R, j), { currentSorter: B, activeSorters: V, getNextActiveSorters: Pt, updateStateSorters: Ft } = xe(R, xt), { ComponentTable: H, ComponentBodyWrapper: It, ComponentHeaderWrapper: Lt } = pe(Je), Rt = f(() => r(st) ? (e) => st(u(e)) : (e) => e[st], [st]);
55
- function zt() {
55
+ ].includes(ct) ? ct : "default", M = f(null), pt = f(null), N = f(null), P = f(null), mt = f(null), ht = f(null), gt = f(null), F = f(null), I = f(null), _t = f(null), vt = f(null), yt = f(null), L = f(0), bt = f(!1), [xt, R] = ge(v), { currentFilters: St, defaultSorters: Ct } = Vt(), [z, wt] = p(1), [Tt, Et] = p(k.pageSize || k.defaultPageSize || 10), [Dt, Ot] = p(St), [kt, At] = p(0), [jt, Mt] = p([]), Nt = we(R), [Pt, Ft] = Ce(xt, R, j), { currentSorter: B, activeSorters: V, getNextActiveSorters: It, updateStateSorters: Lt } = Se(R, Ct), { ComponentTable: H, ComponentBodyWrapper: Rt, ComponentHeaderWrapper: zt } = he(Je), Bt = d(() => r(O) ? (e) => O(u(e)) : (e) => e[O], [O]);
56
+ function Vt() {
56
57
  let e = {}, t = [];
57
58
  return R.forEach((n) => {
58
59
  let r = n.dataIndex || n.key;
59
60
  n.defaultFilters && (e[r] = n.defaultFilters), n.filteredValue && (e[r] = n.filteredValue);
60
61
  let i = "defaultSortOrder" in n && !a(n.defaultSortOrder), s = "sortOrder" in n && !a(n.sortOrder);
61
62
  if (i || s) {
62
- let e = ve(n.sorter), i = s ? n.sortOrder : n.defaultSortOrder;
63
+ let e = ye(n.sorter), i = s ? n.sortOrder : n.defaultSortOrder;
63
64
  if (i) {
64
65
  let a = {
65
66
  field: r,
66
67
  direction: i,
67
- sorterFn: _e(n.sorter),
68
+ sorterFn: ve(n.sorter),
68
69
  priority: e
69
70
  };
70
71
  o(e) ? t.every((e) => o(e.priority) || !e.direction) && t.push(a) : t.every((e) => !e.direction) ? t.push(a) : t = [a];
@@ -75,31 +76,31 @@ function ze(ke, ze) {
75
76
  defaultSorters: t
76
77
  };
77
78
  }
78
- let U = f(() => {
79
+ let U = d(() => {
79
80
  let e = R.filter((e) => "filteredValue" in e), t = {};
80
81
  return e.length && e.forEach((e, n) => {
81
82
  let r = e.key || e.dataIndex || n;
82
83
  r !== void 0 && (t[r] = e.filteredValue);
83
84
  }), t;
84
- }, [R]), W = f(() => Object.keys(U).length ? U : Tt, [Tt, U]);
85
- function Bt(e, t) {
86
- let n = fn(t);
85
+ }, [R]), W = d(() => Object.keys(U).length ? U : Dt, [Dt, U]);
86
+ function Ht(e, t) {
87
+ let n = hn(t);
87
88
  if (!n) return;
88
89
  let r = {
89
90
  direction: e,
90
91
  field: t,
91
- sorterFn: _e(n.sorter),
92
- priority: ve(n.sorter)
93
- }, i = Pt(r);
94
- Ft(r, i);
95
- let a = Gt(r, i, W), o = X(a);
96
- w?.(J(a), r, W, {
92
+ sorterFn: ve(n.sorter),
93
+ priority: ye(n.sorter)
94
+ }, i = It(r);
95
+ Lt(r, i);
96
+ let a = Jt(r, i, W), o = Y(a);
97
+ C?.(q(a), r, W, {
97
98
  currentData: u(o),
98
99
  currentAllData: u(a),
99
100
  action: "sort"
100
101
  });
101
102
  }
102
- function Vt(e) {
103
+ function Ut(e) {
103
104
  let t = function(e, t) {
104
105
  return (n, r) => {
105
106
  let i = e(n, r);
@@ -116,7 +117,7 @@ function ze(ke, ze) {
116
117
  return 0;
117
118
  };
118
119
  }
119
- function Ht(t, n) {
120
+ function Wt(t, n) {
120
121
  let r = {
121
122
  ...W,
122
123
  [t.dataIndex]: n
@@ -125,317 +126,327 @@ function ze(ke, ze) {
125
126
  ...U
126
127
  };
127
128
  if (e(n) && n.length) {
128
- Et(i);
129
- let e = Gt(B, V, r), t = X(e);
130
- w?.(J(e), V.length === 1 ? V[0] : V, r, {
129
+ Ot(i);
130
+ let e = Jt(B, V, r), t = Y(e);
131
+ C?.(q(e), V.length === 1 ? V[0] : V, r, {
131
132
  currentData: u(t),
132
133
  currentAllData: u(e),
133
134
  action: "filter"
134
135
  });
135
- } else e(n) && !n.length && Ut(t);
136
+ } else e(n) && !n.length && Gt(t);
136
137
  }
137
- function Ut({ dataIndex: e }) {
138
+ function Gt({ dataIndex: e }) {
138
139
  let t = { ...W };
139
- delete t[e], Et(t);
140
- let n = Gt(B, V, t), r = X(n);
141
- w?.(J(n), V.length === 1 ? V[0] : V, t, {
140
+ delete t[e], Ot(t);
141
+ let n = Jt(B, V, t), r = Y(n);
142
+ C?.(q(n), V.length === 1 ? V[0] : V, t, {
142
143
  currentData: u(r),
143
144
  currentAllData: u(n),
144
145
  action: "filter"
145
146
  });
146
147
  }
147
- let G = !!R.find((e) => e.fixed === "left"), K = !!R.find((e) => e.fixed === "right"), Wt = G || K;
148
- function Gt(t, n, i) {
149
- let a = (ft || []).slice();
148
+ let G = !!R.find((e) => e.fixed === "left"), Kt = !!R.find((e) => e.fixed === "right"), qt = G || Kt;
149
+ function Jt(t, n, i) {
150
+ let a = (dt || []).slice();
150
151
  Object.keys(i).forEach((e) => {
151
152
  if (i[e] && i[e].length) {
152
- let t = fn(e);
153
+ let t = hn(e);
153
154
  t && r(t.onFilter) && (a = a.filter((n) => i[e].reduce((e, r) => e || t.onFilter(r, n), !1)));
154
155
  }
155
156
  });
156
- let o = (t) => t.slice().sort(Vt(n)).map((t) => e(t[E]) ? {
157
+ let o = (t) => t.slice().sort(Ut(n)).map((t) => e(t[T]) ? {
157
158
  ...t,
158
- [E]: o(t[E])
159
+ [T]: o(t[T])
159
160
  } : t);
160
161
  return t.direction && r(t.sorterFn) || n.length ? o(a) : a;
161
162
  }
162
- let q = Gt(B, V, W);
163
- function J(t = q) {
164
- let n = k.pageSize || Ct || 10, r = pt, i = "top";
165
- i = T === "tl" || T === "bl" ? "bottom" : "top";
163
+ let K = Jt(B, V, W);
164
+ function q(t = K) {
165
+ let n = k.pageSize || Tt || 10, r = ft, i = "top";
166
+ i = w === "tl" || w === "bl" ? "bottom" : "top";
166
167
  let a = e(t) ? t.length : 0, o = Math.ceil(a / n) < z ? 1 : z;
167
- o !== z && St(o);
168
+ o !== z && wt(o);
168
169
  let c = {
169
170
  size: r,
170
171
  total: a,
171
172
  pageSize: n,
172
173
  current: o,
173
174
  selectProps: { triggerProps: {
174
- ...ct,
175
+ ...st,
175
176
  position: i
176
177
  } }
177
178
  };
178
- return s(C) && C.selectProps && (c.selectProps = {
179
+ return s(S) && S.selectProps && (c.selectProps = {
179
180
  ...c.selectProps,
180
- ...C.selectProps
181
+ ...S.selectProps
181
182
  }), c = {
182
183
  ...c,
183
184
  ...k
184
- }, c.onChange = pn, c;
185
+ }, c.onChange = gn, c;
185
186
  }
186
- let Kt = J(), Y = X();
187
- function X(e = q, t = Kt) {
187
+ let Yt = q(), J = Y();
188
+ function Y(e = K, t = Yt) {
188
189
  let { current: n = 0, pageSize: r = 10 } = t;
189
- return C === !1 || c(C) && x.length <= r ? e : e.slice((n - 1) * r, n * r);
190
+ return S === !1 || c(S) && b.length <= r ? e : e.slice((n - 1) * r, n * r);
190
191
  }
191
- let Z = !!(S && S.y), Q = ot?.(u(q)), qt = ot && Oe.isValidElement(Q) && Q.props.fixed, Jt = Z && qt;
192
- oe(() => {
193
- Xt();
194
- let e = M.current, t = N.current, n = P.current;
195
- t && ie(t, "scroll", $);
196
- let r = e && e.parentNode;
197
- return e && r && ie(r, "scroll", $), n && ie(n, "scroll", $), () => {
198
- t && re(t, "scroll", $), r && re(r, "scroll", $), n && re(n, "scroll", $);
192
+ let X = !!(x && x.y), Z = ot?.(u(K)), Xt = ot && Ae.isValidElement(Z) && Z.props.fixed, Zt = X && Xt;
193
+ ce(() => {
194
+ $t();
195
+ let e = F.current, t = I.current, n = M.current, r = N.current, i = t?.parentNode || e;
196
+ return ie(i, "scroll", Q), ie(n, "scroll", Q), ie(r, "scroll", Q), () => {
197
+ re(n, "scroll", Q), re(i, "scroll", Q), re(r, "scroll", Q);
199
198
  };
200
199
  }, [
200
+ F.current,
201
+ I.current,
202
+ M.current,
203
+ N.current,
201
204
  G,
202
- K,
203
- S?.x,
204
- S?.y,
205
+ Kt,
206
+ x?.x,
207
+ x?.y,
205
208
  R.length,
206
- x,
207
- O,
208
- Y.length === 0
209
- ]), ce(() => {
210
- let { total: e, pageSize: t } = J(x);
211
- Math.ceil(e / t) < z && St(1);
212
- }, [x?.length]), ce(() => {
213
- $t();
209
+ b,
210
+ D,
211
+ J.length === 0
212
+ ]), ue(() => {
213
+ let { total: e, pageSize: t } = q(b);
214
+ Math.ceil(e / t) < z && wt(1);
215
+ }, [b?.length]), ue(() => {
216
+ nn();
214
217
  }, [
215
- x,
218
+ b,
216
219
  G,
217
- K,
218
- v
219
- ]), Ne(ze, () => ({
220
+ Kt,
221
+ _
222
+ ]), Pe(ze, () => ({
220
223
  getRootElement() {
221
- return Yt();
224
+ return Qt();
222
225
  },
223
- scrollIntoView: (e) => {
224
- let t = mt.current.getVirtualList();
226
+ scrollIntoView(e) {
227
+ let t = pt.current?.getVirtualList?.();
225
228
  t && t.scrollTo({ key: e });
226
229
  }
227
230
  }));
228
- function Yt() {
229
- return F.current;
231
+ function Qt() {
232
+ return P.current;
230
233
  }
231
- ce(() => (bn(), () => {}), [Qe]), se((e) => {
232
- Xt();
233
- }, [Zt()], { immediate: !0 }), we(Xt);
234
- function Xt() {
235
- if (Wt || A) {
236
- $t();
237
- let e = Zt();
234
+ ue(() => (Cn(), () => {}), [Qe]), le((e) => {
235
+ $t();
236
+ }, [en()], { immediate: !0 }), Te($t);
237
+ function $t() {
238
+ if (qt || A) {
239
+ nn();
240
+ let e = en();
238
241
  if (e) {
239
242
  let t = e.clientWidth ?? e.getBoundingClientRect().width;
240
- dt && (t -= dt - 16), Ot(t);
243
+ ut && (t -= ut - 16), At(t);
241
244
  }
242
245
  }
243
- bn();
246
+ Cn();
244
247
  }
245
- function Zt() {
246
- return N.current || _t.current || gt.current || ht.current || F.current;
248
+ function en() {
249
+ return M.current || gt.current || ht.current || mt.current || P.current;
247
250
  }
248
- let Qt = Ae(Ie(() => {
249
- let e = F.current, t = Z ? N.current : I.current && I.current.parentNode;
250
- if (t) {
251
- let n = v ? -t.scrollLeft : t.scrollLeft, r = n === 0, i = n + 1 >= t.children[0].getBoundingClientRect().width - t.getBoundingClientRect().width;
252
- r && i ? nn(e.classList, `${j}-scroll-position-both`) : r ? nn(e.classList, `${j}-scroll-position-${v ? "right" : "left"}`) : i ? nn(e.classList, `${j}-scroll-position-${v ? "left" : "right"}`) : nn(e.classList, `${j}-scroll-position-middle`);
253
- } else e && tn(e.classList);
254
- }, 100), [
255
- F.current,
256
- N.current,
257
- Z,
258
- v
259
- ]);
260
- function $t() {
261
- if (Wt || A) {
262
- let e = F.current;
263
- e && (G && en(e.classList, `${j}-has-fixed-col-left`), K && en(e.classList, `${j}-has-fixed-col-right`)), Qt();
251
+ function tn() {
252
+ F.current, I.current;
253
+ let e = M.current;
254
+ N.current;
255
+ let t = P.current, n = X ? e : vt.current?.parentNode;
256
+ if (n) {
257
+ let e = _ ? -n.scrollLeft : n.scrollLeft, r = e === 0, i = e + 1 >= n.children[0].getBoundingClientRect().width - n.getBoundingClientRect().width;
258
+ r && i ? on(t.classList, `${j}-scroll-position-both`) : r ? on(t.classList, `${j}-scroll-position-${_ ? "right" : "left"}`) : i ? on(t.classList, `${j}-scroll-position-${_ ? "left" : "right"}`) : on(t.classList, `${j}-scroll-position-middle`);
259
+ } else an(t.classList);
260
+ }
261
+ function nn() {
262
+ if (qt || A) {
263
+ let e = P.current;
264
+ e && (G && rn(e.classList, `${j}-has-fixed-col-left`), Kt && rn(e.classList, `${j}-has-fixed-col-right`)), tn();
264
265
  }
265
266
  }
266
- function en(e, t) {
267
+ function rn(e, t) {
267
268
  e.contains(t) || e.add(t);
268
269
  }
269
- function tn(e) {
270
- e.remove(`${j}-scroll-position-both`), e.remove(`${j}-scroll-position-left`), e.remove(`${j}-scroll-position-right`), e.remove(`${j}-scroll-position-middle`);
270
+ function an(e) {
271
+ e instanceof DOMTokenList && (e.remove(`${j}-scroll-position-both`), e.remove(`${j}-scroll-position-left`), e.remove(`${j}-scroll-position-right`), e.remove(`${j}-scroll-position-middle`));
271
272
  }
272
- function nn(e, t) {
273
- e.contains(t) || (tn(e), e.add(t));
273
+ function on(e, t) {
274
+ e.contains(t) || (an(e), e.add(t));
274
275
  }
275
- let { selectedRowKeys: rn, indeterminateKeys: an, onCheckAll: on, onCheck: sn, onCheckRadio: cn, setSelectedRowKeys: ln, allSelectedRowKeys: un, flattenData: dn } = be(y, Y, ft, Rt);
276
- function fn(e) {
276
+ let { selectedRowKeys: sn, indeterminateKeys: cn, onCheckAll: ln, onCheck: un, onCheckRadio: dn, setSelectedRowKeys: fn, allSelectedRowKeys: pn, flattenData: mn } = xe(v, J, dt, Bt);
277
+ function hn(e) {
277
278
  return R.find((t, n) => ee(t.key) ? ee(t.dataIndex) ? o(e) ? n === e : !1 : t.dataIndex === e : o(t.key) && l(e) ? t.key.toString() === e : t.key === e);
278
279
  }
279
- function pn(e, t) {
280
- St(e), wt(t), e !== z && mn(), D && !D.checkCrossPage && rn.length && (ln([]), D.onChange?.([], []));
280
+ function gn(e, t) {
281
+ wt(e), Et(t), e !== z && _n(), E && !E.checkCrossPage && sn.length && (fn([]), E.onChange?.([], []));
281
282
  let n = {
282
- ...J(),
283
+ ...q(),
283
284
  current: e,
284
285
  pageSize: t
285
286
  };
286
- w?.(n, V.length === 1 ? V[0] : V, W, {
287
- currentData: u(X(q, n)),
288
- currentAllData: u(q),
287
+ C?.(n, V.length === 1 ? V[0] : V, W, {
288
+ currentData: u(Y(K, n)),
289
+ currentAllData: u(K),
289
290
  action: "paginate"
290
291
  }), k.onChange?.(e, t);
291
292
  }
292
- function mn() {
293
- let e = N.current;
293
+ function _n() {
294
+ let e = M.current;
294
295
  e && e.scrollTo({
295
296
  top: 0,
296
297
  behavior: "smooth"
297
298
  });
298
299
  }
299
- function $(e) {
300
- let { target: t } = e, n = N.current, r = M.current?.parentNode, i = P.current;
301
- t.scrollLeft !== L.current && (r && (r.scrollLeft = t.scrollLeft), n && (n.scrollLeft = t.scrollLeft), i && (i.scrollLeft = t.scrollLeft), $t()), L.current = e.target.scrollLeft;
300
+ function Q(e) {
301
+ let { target: t } = e, { scrollLeft: n } = t ?? {}, r = F.current, i = I.current, a = M.current, o = N.current, s = i?.parentNode || r;
302
+ n === L.current || (s && (s === t || (s.scrollLeft = n)), a && (a === t || (a.scrollLeft = n)), o && (o === t || (o.scrollLeft = n)), nn()), L.current = n;
302
303
  }
303
- function hn(e) {
304
- let { target: t } = e, n = I.current;
305
- t.scrollLeft !== L.current && (n.scrollLeft = t.scrollLeft, $t()), L.current = e.target.scrollLeft;
304
+ function vn(e) {
305
+ let { target: t } = e, { scrollLeft: n } = t ?? {}, r = vt.current;
306
+ n === L.current || (r.scrollLeft = n, nn()), L.current = n;
306
307
  }
307
- let [gn, _n] = ye(y, dn, Rt), vn = {}, yn = {};
308
- S && (S.x && (o(S.x) || l(S.x)) && (vn = { width: S.x }), S.y && (o(S.y) || l(S.y)) && (yn = { maxHeight: S.y }));
309
- function bn() {
310
- let e = M.current, t = P.current, n = N.current, r = e?.parentNode;
311
- ge(n) ? (r && (vt.current = !0, r.style.overflowY = "scroll"), t && (t.style.overflowY = "scroll")) : vt.current && (vt.current = !1, r.style.overflowY = "auto", t && (t.style.overflowY = "auto"));
308
+ let [yn, bn] = be(v, mn, Bt), xn = {}, Sn = {};
309
+ x && ((o(x.x) || l(x.x)) && (xn = { width: x.x }), (o(x.y) || l(x.y)) && (Sn = { maxHeight: x.y }));
310
+ function Cn() {
311
+ let e = F.current, t = I.current, n = M.current, r = N.current, i = t?.parentNode || e, a = oe(i);
312
+ if (a) {
313
+ let e = `-${a}px`;
314
+ i && (i.style.marginBottom = e, i.style.paddingBottom = "0px"), r && (r.style.marginBottom = e, r.style.paddingBottom = "0px");
315
+ }
316
+ setTimeout(() => {
317
+ let e = se(n);
318
+ e ? (`${e}`, i && (bt.current = !0, i.style.overflowY = "scroll"), r && (r.style.overflowY = "scroll")) : bt.current && (bt.current = !1, i.style.overflowY = "auto", r && (r.style.overflowY = "auto"));
319
+ }, 7);
312
320
  }
313
- let xn = /* @__PURE__ */ h(De, {
314
- ...y,
321
+ let wn = /* @__PURE__ */ m(ke, {
322
+ ...v,
315
323
  activeSorters: V,
316
324
  currentSorter: B,
317
- selectedRowKeys: rn,
325
+ selectedRowKeys: sn,
318
326
  currentFilters: W,
319
- onCheckAll: on,
320
- onSort: Bt,
321
- data: Y,
322
- onHandleFilter: Ht,
323
- onHandleFilterReset: Ut,
327
+ onCheckAll: ln,
328
+ onSort: Ht,
329
+ data: J,
330
+ onHandleFilter: Wt,
331
+ onHandleFilterReset: Gt,
324
332
  prefixCls: j,
325
- allSelectedRowKeys: un,
326
- groupColumns: yt,
327
- stickyOffsets: jt,
328
- groupStickyClassNames: Mt
333
+ allSelectedRowKeys: pn,
334
+ groupColumns: xt,
335
+ stickyOffsets: Nt,
336
+ groupStickyClassNames: Pt
329
337
  });
330
- function Sn() {
331
- let e = A && S.x === "max-content";
332
- return Z || O ? /* @__PURE__ */ h(Lt, {
338
+ function Tn() {
339
+ let e = A && x.x === "max-content";
340
+ return X || D ? /* @__PURE__ */ m(zt, {
341
+ ref: F,
333
342
  className: `${j}-header`,
334
- children: /* @__PURE__ */ g(H, {
335
- ref: M,
336
- style: e ? {} : vn,
343
+ children: /* @__PURE__ */ h(H, {
344
+ ref: I,
345
+ style: e ? {} : xn,
337
346
  className: `${j}-header-table`,
338
- children: [/* @__PURE__ */ h(d, {
347
+ children: [/* @__PURE__ */ m(Ee, {
339
348
  columns: R,
340
349
  prefixCls: j,
341
350
  producer: !1,
342
- columnWidths: e && S.y ? kt : null
343
- }), xn]
351
+ columnWidths: e && x.y ? jt : null
352
+ }), wn]
344
353
  })
345
- }) : xn;
354
+ }) : wn;
346
355
  }
347
- let Cn = Q && /* @__PURE__ */ h(Ee, {
356
+ let En = Z && /* @__PURE__ */ m(Oe, {
348
357
  prefixCls: j,
349
358
  summary: ot,
350
- data: Y,
359
+ data: J,
351
360
  columns: R,
352
- stickyOffsets: jt,
353
- stickyClassNames: Nt
354
- }), wn = /* @__PURE__ */ h(Te, {
355
- ...y,
361
+ stickyOffsets: Nt,
362
+ stickyClassNames: Ft
363
+ }), Dn = /* @__PURE__ */ m(De, {
364
+ ...v,
356
365
  ref: (e) => {
357
- mt.current = e, O && Y.length === 0 && (N.current = e?.getRootElement?.());
366
+ pt.current = e, D && (J.length, M.current = pt.current?.getRootElement?.());
358
367
  },
359
- selectedRowKeys: rn,
360
- indeterminateKeys: an,
361
- expandedRowKeys: gn,
362
- onCheck: sn,
363
- onCheckRadio: cn,
364
- onClickExpandBtn: _n,
368
+ selectedRowKeys: sn,
369
+ indeterminateKeys: cn,
370
+ expandedRowKeys: yn,
371
+ onCheck: un,
372
+ onCheckRadio: dn,
373
+ onClickExpandBtn: bn,
365
374
  columns: R,
366
- data: Y,
375
+ data: J,
367
376
  prefixCls: j,
368
- hasFixedColumn: Wt,
369
- tableViewWidth: Dt,
370
- indentSize: dt,
377
+ hasFixedColumn: qt,
378
+ tableViewWidth: kt,
379
+ indentSize: ut,
371
380
  noDataElement: Ze || We("Table"),
372
381
  activeSorters: V,
373
382
  currentSorter: B,
374
- stickyOffsets: jt,
375
- stickyClassNames: Nt,
376
- getRowKey: Rt
377
- }), Tn = !O && !Jt ? /* @__PURE__ */ g(Fe, { children: [wn, Cn] }) : wn;
378
- if (Me(() => (y.consoleTable && console.table(x), () => {}), [x, y.consoleTable]), !(e(Xe) && Xe.length)) return null;
379
- function En() {
380
- let e = c(S) && S.x === "max-content" && !!S.y && t(x);
381
- return Z && !O ? /* @__PURE__ */ h(It, {
382
- ref: N,
383
- style: yn,
383
+ stickyOffsets: Nt,
384
+ stickyClassNames: Ft,
385
+ getRowKey: Bt
386
+ }), On = !D && !Zt ? /* @__PURE__ */ h(Ie, { children: [Dn, En] }) : Dn;
387
+ if (Ne(() => (v.consoleTable && console.table(b), () => {}), [b, v.consoleTable]), !(e(Xe) && Xe.length)) return null;
388
+ function kn() {
389
+ let e = c(x) && x.x === "max-content" && !!x.y && t(b);
390
+ return X && !D ? /* @__PURE__ */ m(Rt, {
391
+ ref: M,
392
+ style: Sn,
384
393
  className: te(`${j}-content-body`, `${j}-body`),
385
- children: /* @__PURE__ */ g(H, {
386
- style: vn,
394
+ children: /* @__PURE__ */ h(H, {
395
+ ref: _t,
396
+ style: xn,
387
397
  className: `${j}-body-table`,
388
- children: [/* @__PURE__ */ h(d, {
398
+ children: [/* @__PURE__ */ m(Ee, {
389
399
  columns: R,
390
400
  prefixCls: j,
391
401
  producer: e,
392
- onSetColumnWidths: At,
393
- expandedRowKeys: gn,
394
- data: x
395
- }), Tn]
402
+ onSetColumnWidths: Mt,
403
+ expandedRowKeys: yn,
404
+ data: b
405
+ }), On]
396
406
  })
397
- }) : Tn;
407
+ }) : On;
398
408
  }
399
- function Dn() {
409
+ function An() {
400
410
  let e = {};
401
- A && (e = { width: S.x });
402
- let t = /* @__PURE__ */ h("div", {
411
+ A && (e = { width: x.x });
412
+ let t = /* @__PURE__ */ m("div", {
403
413
  className: `${j}-tfoot`,
404
- ref: P,
405
- children: /* @__PURE__ */ g(H, {
414
+ ref: N,
415
+ children: /* @__PURE__ */ h(H, {
416
+ ref: yt,
406
417
  style: e,
407
418
  className: `${j}-tfoot-table`,
408
- children: [/* @__PURE__ */ h(d, {
419
+ children: [/* @__PURE__ */ m(Ee, {
409
420
  columns: R,
410
421
  prefixCls: j
411
- }), Cn]
422
+ }), En]
412
423
  })
413
- }), n = Q && Z && qt === "top", i = Q && (Z && qt === "bottom" || O), a = /* @__PURE__ */ g(Fe, { children: [
414
- Qe ? Sn() : null,
424
+ }), n = Z && X && Xt === "top", i = Z && (X && Xt === "bottom" || D), a = /* @__PURE__ */ h(Ie, { children: [
425
+ Qe ? Tn() : null,
415
426
  n && t,
416
- En(),
427
+ kn(),
417
428
  i && t
418
- ] }), o = r(rt) && rt(Y), s = r(it) && it(Y);
419
- return /* @__PURE__ */ g(Fe, { children: [
420
- !!o && /* @__PURE__ */ h("div", {
429
+ ] }), o = r(rt) && rt(J), s = r(it) && it(J);
430
+ return /* @__PURE__ */ h(Ie, { children: [
431
+ !!o && /* @__PURE__ */ m("div", {
421
432
  className: `${j}-header-`,
422
433
  children: o
423
434
  }),
424
- /* @__PURE__ */ h("div", {
425
- ref: ht,
435
+ /* @__PURE__ */ m("div", {
436
+ ref: mt,
426
437
  className: `${j}-container`,
427
- children: /* @__PURE__ */ h("div", {
428
- ref: gt,
438
+ children: /* @__PURE__ */ m("div", {
439
+ ref: ht,
429
440
  className: `${j}-content-scroll`,
430
- children: /* @__PURE__ */ h("div", {
431
- ref: _t,
441
+ children: /* @__PURE__ */ m("div", {
442
+ ref: gt,
432
443
  className: `${j}-content-inner`,
433
- onScroll: Z ? void 0 : hn,
434
- children: Z || O ? a : /* @__PURE__ */ g(H, {
435
- ref: I,
444
+ onScroll: X ? void 0 : vn,
445
+ children: X || D ? a : /* @__PURE__ */ h(H, {
446
+ ref: vt,
436
447
  style: e,
437
448
  className: `${j}-content-inner-table`,
438
- children: [/* @__PURE__ */ h(d, {
449
+ children: [/* @__PURE__ */ m(Ee, {
439
450
  prefixCls: j,
440
451
  columns: R
441
452
  }), a]
@@ -443,60 +454,60 @@ function ze(ke, ze) {
443
454
  })
444
455
  })
445
456
  }),
446
- !!s && /* @__PURE__ */ h("div", {
457
+ !!s && /* @__PURE__ */ m("div", {
447
458
  className: `${j}-footer`,
448
459
  children: s
449
460
  })
450
461
  ] });
451
462
  }
452
- let On = c(b) ? b.wrapper : b, kn = c(b) ? b.cell : Ye, An = c(b) ? b.cell || b.headerCell : Ye, jn = c(b) ? b.cell || b.bodyCell : Ye, Mn = te(j, Qe ? `${j}-has-header` : `${j}-no-header`, `${j}-size-${pt}`, {
453
- [`${j}-border`]: On,
454
- [`${j}-border-cell`]: kn,
455
- [`${j}-border-header-cell`]: !kn && An,
456
- [`${j}-border-body-cell`]: !kn && jn,
463
+ let jn = c(y) ? y.wrapper : y, Mn = c(y) ? y.cell : Ye, Nn = c(y) ? y.cell || y.headerCell : Ye, Pn = c(y) ? y.cell || y.bodyCell : Ye, Fn = te(j, Qe ? `${j}-has-header` : `${j}-no-header`, `${j}-size-${ft}`, {
464
+ [`${j}-border`]: jn,
465
+ [`${j}-border-cell`]: Mn,
466
+ [`${j}-border-header-cell`]: !Mn && Nn,
467
+ [`${j}-border-body-cell`]: !Mn && Pn,
457
468
  [`${j}-stripe`]: $e,
458
469
  [`${j}-hover`]: et,
459
- [`${j}-type-radio`]: D && D.type === "radio",
460
- [`${j}-layout-fixed`]: nt || S && (S.x || S.y) || Xe.find((e) => e.ellipsis),
461
- [`${j}-fixed-column`]: Wt,
462
- [`${j}-virtualized`]: O,
463
- [`${j}-rtl`]: v
464
- }, qe), Nn = T === "tl" || T === "tr" || T === "topCenter", Pn = te(`${j}-pagination`, {
465
- [`${j}-pagination-left`]: T === "tl" || T === "bl",
466
- [`${j}-pagination-center`]: T === "topCenter" || T === "bottomCenter",
467
- [`${j}-pagination-top`]: Nn
468
- }), Fn = y.loading;
469
- n(Fn) && (Fn = { loading: Fn });
470
- let In = C !== !1 && (q.length !== 0 || Kt?.total > 0), Ln;
471
- if (In) {
472
- let e = /* @__PURE__ */ h(de, { ...Kt });
473
- Ln = r(at) ? at(e) : /* @__PURE__ */ h("div", {
474
- className: Pn,
470
+ [`${j}-type-radio`]: E && E.type === "radio",
471
+ [`${j}-layout-fixed`]: nt || x && (x.x || x.y) || Xe.find((e) => e.ellipsis),
472
+ [`${j}-fixed-column`]: qt,
473
+ [`${j}-virtualized`]: D,
474
+ [`${j}-rtl`]: _
475
+ }, qe), In = w === "tl" || w === "tr" || w === "topCenter", Ln = te(`${j}-pagination`, {
476
+ [`${j}-pagination-left`]: w === "tl" || w === "bl",
477
+ [`${j}-pagination-center`]: w === "topCenter" || w === "bottomCenter",
478
+ [`${j}-pagination-top`]: In
479
+ }), $ = v.loading;
480
+ n($) && ($ = { loading: $ });
481
+ let Rn = S !== !1 && (K.length !== 0 || Yt?.total > 0), zn;
482
+ if (Rn) {
483
+ let e = /* @__PURE__ */ m(pe, { ...Yt });
484
+ zn = r(at) ? at(e) : /* @__PURE__ */ m("div", {
485
+ className: Ln,
475
486
  children: e
476
487
  });
477
488
  }
478
- return /* @__PURE__ */ h(fe.Provider, {
479
- value: y,
480
- children: /* @__PURE__ */ h("div", {
481
- ref: F,
489
+ return /* @__PURE__ */ m(me.Provider, {
490
+ value: v,
491
+ children: /* @__PURE__ */ m("div", {
492
+ ref: P,
482
493
  style: Ke,
483
- className: Mn,
484
- ...ne(y),
485
- children: /* @__PURE__ */ g(ue, {
494
+ className: Fn,
495
+ ...ne(v),
496
+ children: /* @__PURE__ */ h(fe, {
486
497
  className: `${j}-spin`,
487
498
  element: He,
488
- ...Fn,
499
+ ...$,
489
500
  children: [
490
- Nn && Ln,
491
- Dn(),
492
- !Nn && Ln
501
+ In && zn,
502
+ An(),
503
+ !In && zn
493
504
  ]
494
505
  })
495
506
  })
496
507
  });
497
508
  }
498
- var _ = ke(ze);
499
- _.displayName = "Table";
509
+ var g = je(ze);
510
+ g.displayName = "Table";
500
511
  //#endregion
501
- export { _ as default };
512
+ export { g as default };
502
513
  /* 独立思考,明辨是非 */