x-next 1.0.0 → 1.1.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 (792) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/LICENSE +21 -0
  3. package/README.md +12 -0
  4. package/dist/_hooks/use-form-item.d.ts +5 -3
  5. package/dist/_styles/palette-aliases.d.ts +1 -0
  6. package/dist/_utils/helpers.d.ts +0 -9
  7. package/dist/_utils/palette.d.ts +85 -0
  8. package/dist/components/_components/feedback-icon/index.vue.d.ts +156 -12
  9. package/dist/components/_components/icon-hover/index.vue.d.ts +13 -0
  10. package/dist/components/_components/input-label/input-label.d.ts +3 -1
  11. package/dist/components/_components/picker/input-range.vue.d.ts +223 -15
  12. package/dist/components/_components/picker/input.vue.d.ts +223 -15
  13. package/dist/components/_components/select-view/select-view.d.ts +3 -1
  14. package/dist/components/alert/Alert.vue.d.ts +207 -15
  15. package/dist/components/alert/index.d.ts +414 -30
  16. package/dist/components/button/Button.d.ts +12 -3
  17. package/dist/components/button/index.d.ts +24 -7
  18. package/dist/components/button/props.d.ts +6 -1
  19. package/dist/components/config-provider/ConfigProvider.d.ts +93 -0
  20. package/dist/components/config-provider/context.d.ts +18 -0
  21. package/dist/components/config-provider/index.d.ts +99 -0
  22. package/dist/components/date-picker/DatePanel.vue.d.ts +2 -1
  23. package/dist/components/date-picker/DatePicker.vue.d.ts +524 -66
  24. package/dist/components/date-picker/index.d.ts +1050 -133
  25. package/dist/components/date-picker/utils.d.ts +16 -6
  26. package/dist/components/dialog/Dialog.d.ts +1 -1
  27. package/dist/components/dialog/index.d.ts +7 -3
  28. package/dist/components/drawer/index.d.ts +101 -68
  29. package/dist/components/drawer/src/Drawer.vue.d.ts +49 -33
  30. package/dist/components/dropdown/Dropdown.vue.d.ts +16 -0
  31. package/dist/components/dropdown/DropdownButton.vue.d.ts +94 -27
  32. package/dist/components/dropdown/DropdownSubmenu.vue.d.ts +55 -3
  33. package/dist/components/dropdown/dropdown-panel.vue.d.ts +16 -0
  34. package/dist/components/dropdown/index.d.ts +378 -108
  35. package/dist/components/empty/Empty.d.ts +19 -0
  36. package/dist/components/empty/index.d.ts +15 -0
  37. package/dist/components/form/FormItem.vue.d.ts +39 -22
  38. package/dist/components/form/context.d.ts +0 -1
  39. package/dist/components/form/form-item-label.vue.d.ts +39 -3
  40. package/dist/components/form/index.d.ts +121 -61
  41. package/dist/components/form/interface.d.ts +12 -0
  42. package/dist/components/form-checkbox/Checkbox.d.ts +12 -0
  43. package/dist/components/form-checkbox/CheckboxGroup.d.ts +1 -1
  44. package/dist/components/form-checkbox/index.d.ts +27 -3
  45. package/dist/components/form-input/InputPassword.vue.d.ts +91 -6
  46. package/dist/components/form-input/index.d.ts +183 -12
  47. package/dist/components/form-input-number/InputNumber.d.ts +1 -1
  48. package/dist/components/form-input-number/index.d.ts +3 -3
  49. package/dist/components/form-input-tag/InputTag.d.ts +3 -1
  50. package/dist/components/form-input-tag/index.d.ts +6 -3
  51. package/dist/components/form-radio/Radio.d.ts +12 -0
  52. package/dist/components/form-radio/RadioGroup.d.ts +1 -1
  53. package/dist/components/form-radio/index.d.ts +27 -3
  54. package/dist/components/form-select/Select.d.ts +4 -2
  55. package/dist/components/form-select/SelectDropdown.vue.d.ts +21 -1
  56. package/dist/components/form-select/SelectOption.vue.d.ts +13 -0
  57. package/dist/components/form-select/context.d.ts +1 -0
  58. package/dist/components/form-select/hooks/use-select.d.ts +2 -1
  59. package/dist/components/form-select/index.d.ts +78 -8
  60. package/dist/components/form-slider/Slider.vue.d.ts +23 -5
  61. package/dist/components/form-slider/index.d.ts +35 -11
  62. package/dist/components/form-slider/slider-button.vue.d.ts +5 -1
  63. package/dist/components/form-slider/slider-input.vue.d.ts +3 -3
  64. package/dist/components/form-switch/Switch.vue.d.ts +39 -3
  65. package/dist/components/form-switch/index.d.ts +78 -6
  66. package/dist/components/form-textarea/Textarea.vue.d.ts +53 -4
  67. package/dist/components/form-textarea/index.d.ts +108 -9
  68. package/dist/components/image/Image.vue.d.ts +237 -19
  69. package/dist/components/image/ImagePreview.vue.d.ts +158 -12
  70. package/dist/components/image/ImagePreviewGroup.vue.d.ts +158 -12
  71. package/dist/components/image/index.d.ts +1109 -88
  72. package/dist/components/image/preview-arrow.vue.d.ts +79 -6
  73. package/dist/components/index.d.ts +1 -1
  74. package/dist/components/layout/LayoutSidebar.vue.d.ts +78 -6
  75. package/dist/components/layout/index.d.ts +156 -12
  76. package/dist/components/link/Link.vue.d.ts +79 -7
  77. package/dist/components/link/index.d.ts +159 -15
  78. package/dist/components/menu/Menu.d.ts +79 -6
  79. package/dist/components/menu/base-menu.vue.d.ts +79 -6
  80. package/dist/components/menu/index.d.ts +158 -12
  81. package/dist/components/menu/sub-menu-pop.vue.d.ts +79 -6
  82. package/dist/components/message/index.d.ts +573 -45
  83. package/dist/components/message/message.vue.d.ts +286 -22
  84. package/dist/components/pagination/page-item-ellipsis.vue.d.ts +41 -3
  85. package/dist/components/pagination/page-item-step.vue.d.ts +79 -6
  86. package/dist/components/pagination/page-jumper.vue.d.ts +4 -3
  87. package/dist/components/pagination/page-options.vue.d.ts +9 -5
  88. package/dist/components/popconfirm/index.d.ts +14 -14
  89. package/dist/components/popconfirm/src/Popconfirm.d.ts +7 -7
  90. package/dist/components/popconfirm/src/popup.vue.d.ts +91 -39
  91. package/dist/components/popconfirm/src/props.d.ts +2 -2
  92. package/dist/components/progress/Progress.vue.d.ts +159 -15
  93. package/dist/components/progress/circle.vue.d.ts +78 -6
  94. package/dist/components/progress/index.d.ts +318 -30
  95. package/dist/components/progress/line.vue.d.ts +42 -6
  96. package/dist/components/progress/steps.vue.d.ts +39 -3
  97. package/dist/components/rate/Rate.d.ts +2 -2
  98. package/dist/components/rate/index.d.ts +6 -6
  99. package/dist/components/skeleton/Skeleton.vue.d.ts +1 -1
  100. package/dist/components/skeleton/index.d.ts +3 -3
  101. package/dist/components/steps/Step.vue.d.ts +78 -6
  102. package/dist/components/steps/index.d.ts +156 -12
  103. package/dist/components/table/Table.d.ts +8 -14
  104. package/dist/components/table/hooks/use-drag.d.ts +0 -1
  105. package/dist/components/table/hooks/use-pagination.d.ts +3 -2
  106. package/dist/components/table/index.d.ts +25 -27
  107. package/dist/components/table/interface.d.ts +6 -1
  108. package/dist/components/table/locale.d.ts +23 -0
  109. package/dist/components/table/table-operation-td.d.ts +48 -98
  110. package/dist/components/table/table-td.d.ts +1 -1
  111. package/dist/components/table/table-tr.d.ts +1 -1
  112. package/dist/components/tabs/tabs-tab.vue.d.ts +52 -3
  113. package/dist/components/tag/Tag.vue.d.ts +93 -8
  114. package/dist/components/tag/index.d.ts +189 -18
  115. package/dist/components/time-picker/TimePanel.vue.d.ts +47 -31
  116. package/dist/components/time-picker/TimePicker.vue.d.ts +559 -67
  117. package/dist/components/time-picker/index.d.ts +1160 -140
  118. package/dist/components/trend-chart/themes.d.ts +2 -0
  119. package/dist/es/_container/client-only.js +16 -0
  120. package/dist/es/_container/render-function.js +16 -0
  121. package/dist/es/_container/resize-observer-v2.js +45 -0
  122. package/dist/es/_container/resize-observer.js +36 -0
  123. package/dist/es/_container/resize-trigger.vue.js +39 -0
  124. package/dist/es/_container/resize-trigger.vue2.js +58 -0
  125. package/dist/es/_hooks/use-children-components.js +17 -0
  126. package/dist/es/_hooks/use-component-ref.js +16 -0
  127. package/dist/es/_hooks/use-cursor.js +36 -0
  128. package/dist/es/_hooks/use-first-element.js +15 -0
  129. package/dist/es/_hooks/use-form-item.js +16 -0
  130. package/dist/es/_hooks/use-index.js +32 -0
  131. package/dist/es/_hooks/use-input.js +59 -0
  132. package/dist/es/_hooks/use-merge-state.js +16 -0
  133. package/dist/es/_hooks/use-overflow.js +46 -0
  134. package/dist/es/_hooks/use-pick-slots.js +11 -0
  135. package/dist/es/_hooks/use-popup-container.js +12 -0
  136. package/dist/es/_hooks/use-popup-manager.js +51 -0
  137. package/dist/es/_hooks/use-popup-overflow-hidden.js +29 -0
  138. package/dist/es/_hooks/use-pure-prop.js +11 -0
  139. package/dist/es/_hooks/use-resize-observer.js +22 -0
  140. package/dist/es/_hooks/use-responsive.js +20 -0
  141. package/dist/es/_hooks/use-scrollbar.js +18 -0
  142. package/dist/es/_hooks/use-size.js +16 -0
  143. package/dist/es/_hooks/use-state.js +10 -0
  144. package/dist/es/_hooks/use-teleport-container.js +22 -0
  145. package/dist/es/_hooks/use-trigger.js +19 -0
  146. package/dist/es/_styles/palette-aliases.js +188 -0
  147. package/dist/es/_utils/array.js +4 -0
  148. package/dist/es/_utils/config.js +15 -0
  149. package/dist/es/_utils/constant.js +56 -0
  150. package/dist/es/_utils/convert-case.js +5 -0
  151. package/dist/es/_utils/date.js +63 -0
  152. package/dist/es/_utils/debounce.js +12 -0
  153. package/dist/es/_utils/dom.js +102 -0
  154. package/dist/es/_utils/get-value-by-path.js +35 -0
  155. package/dist/es/_utils/helpers.js +27 -0
  156. package/dist/es/_utils/is-equal.js +30 -0
  157. package/dist/es/_utils/is.js +56 -0
  158. package/dist/es/_utils/keyboard.js +36 -0
  159. package/dist/es/_utils/keycode.js +9 -0
  160. package/dist/es/_utils/omit.js +9 -0
  161. package/dist/es/_utils/palette.js +57 -0
  162. package/dist/es/_utils/pick.js +10 -0
  163. package/dist/es/_utils/raf.js +5 -0
  164. package/dist/es/_utils/responsive-observe.js +60 -0
  165. package/dist/es/_utils/style.js +17 -0
  166. package/dist/es/_utils/throttle-by-raf.js +15 -0
  167. package/dist/es/_utils/use-prop-or-slot.js +7 -0
  168. package/dist/es/_utils/vue-eco.js +137 -0
  169. package/dist/es/_virtual/_commonjsHelpers.js +6 -0
  170. package/dist/es/_virtual/_plugin-vue_export-helper.js +9 -0
  171. package/dist/es/_virtual/advancedFormat.js +7 -0
  172. package/dist/es/_virtual/advancedFormat2.js +4 -0
  173. package/dist/es/_virtual/customParseFormat.js +7 -0
  174. package/dist/es/_virtual/customParseFormat2.js +4 -0
  175. package/dist/es/_virtual/dayjs.min.js +7 -0
  176. package/dist/es/_virtual/dayjs.min2.js +4 -0
  177. package/dist/es/_virtual/isBetween.js +7 -0
  178. package/dist/es/_virtual/isBetween2.js +4 -0
  179. package/dist/es/_virtual/quarterOfYear.js +7 -0
  180. package/dist/es/_virtual/quarterOfYear2.js +4 -0
  181. package/dist/es/_virtual/weekOfYear.js +7 -0
  182. package/dist/es/_virtual/weekOfYear2.js +4 -0
  183. package/dist/es/_virtual/weekYear.js +7 -0
  184. package/dist/es/_virtual/weekYear2.js +4 -0
  185. package/dist/es/_virtual/zh-cn.js +2 -0
  186. package/dist/es/_virtual/zh-cn2.js +4 -0
  187. package/dist/es/components/_components/auto-tooltip/auto-tooltip.js +71 -0
  188. package/dist/es/components/_components/feedback-icon/index.vue.js +15 -0
  189. package/dist/es/components/_components/feedback-icon/index.vue2.js +29 -0
  190. package/dist/es/components/_components/icon-hover/index.vue.js +30 -0
  191. package/dist/es/components/_components/icon-hover/index.vue2.js +45 -0
  192. package/dist/es/components/_components/input-label/input-label.js +141 -0
  193. package/dist/es/components/_components/picker/input-range.vue.js +92 -0
  194. package/dist/es/components/_components/picker/input-range.vue2.js +163 -0
  195. package/dist/es/components/_components/picker/input.vue.js +63 -0
  196. package/dist/es/components/_components/picker/input.vue2.js +114 -0
  197. package/dist/es/components/_components/select-view/select-view.js +226 -0
  198. package/dist/es/components/_components/transition/expand-transition.vue.js +22 -0
  199. package/dist/es/components/_components/transition/expand-transition.vue2.js +29 -0
  200. package/dist/es/components/alert/Alert.vue.js +73 -0
  201. package/dist/es/components/alert/Alert.vue2.js +163 -0
  202. package/dist/es/components/alert/index.js +8 -0
  203. package/dist/es/components/button/Button.js +73 -0
  204. package/dist/es/components/button/ButtonGroup.vue.js +14 -0
  205. package/dist/es/components/button/ButtonGroup.vue2.js +63 -0
  206. package/dist/es/components/button/context.js +4 -0
  207. package/dist/es/components/button/index.js +10 -0
  208. package/dist/es/components/button/props.js +60 -0
  209. package/dist/es/components/config-provider/ConfigProvider.js +97 -0
  210. package/dist/es/components/config-provider/context.js +4 -0
  211. package/dist/es/components/config-provider/index.js +11 -0
  212. package/dist/es/components/date-picker/DatePanel.vue.js +159 -0
  213. package/dist/es/components/date-picker/DatePanel.vue2.js +136 -0
  214. package/dist/es/components/date-picker/DatePicker.vue.js +390 -0
  215. package/dist/es/components/date-picker/DatePicker.vue2.js +450 -0
  216. package/dist/es/components/date-picker/index.js +56 -0
  217. package/dist/es/components/date-picker/lunar/data.js +9581 -0
  218. package/dist/es/components/date-picker/lunar/index.js +58 -0
  219. package/dist/es/components/date-picker/utils.js +200 -0
  220. package/dist/es/components/dialog/Dialog.js +196 -0
  221. package/dist/es/components/dialog/index.js +8 -0
  222. package/dist/es/components/dialog/props.js +95 -0
  223. package/dist/es/components/dialog/use.js +103 -0
  224. package/dist/es/components/dialog/warp.js +4 -0
  225. package/dist/es/components/draggable/Draggable.js +73 -0
  226. package/dist/es/components/draggable/directive.js +31 -0
  227. package/dist/es/components/draggable/index.js +8 -0
  228. package/dist/es/components/draggable/useDraggable.js +172 -0
  229. package/dist/es/components/draggable/utils/index.js +78 -0
  230. package/dist/es/components/draggable/utils/log.js +11 -0
  231. package/dist/es/components/drawer/index.js +8 -0
  232. package/dist/es/components/drawer/src/Drawer.vue.js +137 -0
  233. package/dist/es/components/drawer/src/Drawer.vue2.js +130 -0
  234. package/dist/es/components/drawer/src/props.js +101 -0
  235. package/dist/es/components/dropdown/Dropdown.vue.js +56 -0
  236. package/dist/es/components/dropdown/Dropdown.vue2.js +175 -0
  237. package/dist/es/components/dropdown/DropdownButton.vue.js +57 -0
  238. package/dist/es/components/dropdown/DropdownButton.vue2.js +152 -0
  239. package/dist/es/components/dropdown/DropdownGroup.vue.js +20 -0
  240. package/dist/es/components/dropdown/DropdownGroup.vue2.js +26 -0
  241. package/dist/es/components/dropdown/DropdownOption.vue.js +37 -0
  242. package/dist/es/components/dropdown/DropdownOption.vue2.js +65 -0
  243. package/dist/es/components/dropdown/DropdownSubmenu.vue.js +62 -0
  244. package/dist/es/components/dropdown/DropdownSubmenu.vue2.js +120 -0
  245. package/dist/es/components/dropdown/context.js +4 -0
  246. package/dist/es/components/dropdown/dropdown-panel.vue.js +49 -0
  247. package/dist/es/components/dropdown/dropdown-panel.vue2.js +69 -0
  248. package/dist/es/components/dropdown/index.js +25 -0
  249. package/dist/es/components/empty/Empty.js +82 -0
  250. package/dist/es/components/empty/index.js +8 -0
  251. package/dist/es/components/form/Form.vue.js +18 -0
  252. package/dist/es/components/form/Form.vue2.js +317 -0
  253. package/dist/es/components/form/FormItem.vue.js +93 -0
  254. package/dist/es/components/form/FormItem.vue2.js +409 -0
  255. package/dist/es/components/form/context.js +5 -0
  256. package/dist/es/components/form/form-item-label.vue.js +62 -0
  257. package/dist/es/components/form/form-item-label.vue2.js +54 -0
  258. package/dist/es/components/form/form-item-message.vue.js +37 -0
  259. package/dist/es/components/form/form-item-message.vue2.js +20 -0
  260. package/dist/es/components/form/index.js +10 -0
  261. package/dist/es/components/form/interface.js +4 -0
  262. package/dist/es/components/form/utils.js +24 -0
  263. package/dist/es/components/form-checkbox/Checkbox.js +176 -0
  264. package/dist/es/components/form-checkbox/CheckboxGroup.js +153 -0
  265. package/dist/es/components/form-checkbox/context.js +4 -0
  266. package/dist/es/components/form-checkbox/icon-check.js +52 -0
  267. package/dist/es/components/form-checkbox/index.js +10 -0
  268. package/dist/es/components/form-input/Input.js +360 -0
  269. package/dist/es/components/form-input/InputGroup.vue.js +14 -0
  270. package/dist/es/components/form-input/InputGroup.vue2.js +13 -0
  271. package/dist/es/components/form-input/InputPassword.vue.js +59 -0
  272. package/dist/es/components/form-input/InputPassword.vue2.js +83 -0
  273. package/dist/es/components/form-input/InputSearch.js +140 -0
  274. package/dist/es/components/form-input/index.js +14 -0
  275. package/dist/es/components/form-input-number/InputNumber.js +441 -0
  276. package/dist/es/components/form-input-number/index.js +8 -0
  277. package/dist/es/components/form-input-tag/InputTag.js +463 -0
  278. package/dist/es/components/form-input-tag/index.js +8 -0
  279. package/dist/es/components/form-input-tag/utils.js +32 -0
  280. package/dist/es/components/form-radio/Radio.js +182 -0
  281. package/dist/es/components/form-radio/RadioGroup.js +176 -0
  282. package/dist/es/components/form-radio/context.js +4 -0
  283. package/dist/es/components/form-radio/index.js +10 -0
  284. package/dist/es/components/form-select/Select.js +801 -0
  285. package/dist/es/components/form-select/SelectDropdown.vue.js +59 -0
  286. package/dist/es/components/form-select/SelectDropdown.vue2.js +69 -0
  287. package/dist/es/components/form-select/SelectOption.vue.js +60 -0
  288. package/dist/es/components/form-select/SelectOption.vue2.js +130 -0
  289. package/dist/es/components/form-select/SelectOptionGroup.vue.js +19 -0
  290. package/dist/es/components/form-select/SelectOptionGroup.vue2.js +28 -0
  291. package/dist/es/components/form-select/context.js +4 -0
  292. package/dist/es/components/form-select/hooks/use-options.js +95 -0
  293. package/dist/es/components/form-select/hooks/use-select.js +148 -0
  294. package/dist/es/components/form-select/index.js +20 -0
  295. package/dist/es/components/form-select/utils.js +91 -0
  296. package/dist/es/components/form-slider/Slider.vue.js +92 -0
  297. package/dist/es/components/form-slider/Slider.vue2.js +316 -0
  298. package/dist/es/components/form-slider/index.js +8 -0
  299. package/dist/es/components/form-slider/slider-button.vue.js +39 -0
  300. package/dist/es/components/form-slider/slider-button.vue2.js +87 -0
  301. package/dist/es/components/form-slider/slider-dots.vue.js +22 -0
  302. package/dist/es/components/form-slider/slider-dots.vue2.js +35 -0
  303. package/dist/es/components/form-slider/slider-input.vue.js +37 -0
  304. package/dist/es/components/form-slider/slider-input.vue2.js +39 -0
  305. package/dist/es/components/form-slider/slider-marks.vue.js +19 -0
  306. package/dist/es/components/form-slider/slider-marks.vue2.js +33 -0
  307. package/dist/es/components/form-slider/slider-ticks.vue.js +21 -0
  308. package/dist/es/components/form-slider/slider-ticks.vue2.js +50 -0
  309. package/dist/es/components/form-slider/utils.js +17 -0
  310. package/dist/es/components/form-switch/Switch.vue.js +56 -0
  311. package/dist/es/components/form-switch/Switch.vue2.js +275 -0
  312. package/dist/es/components/form-switch/index.js +8 -0
  313. package/dist/es/components/form-textarea/Textarea.vue.js +61 -0
  314. package/dist/es/components/form-textarea/Textarea.vue2.js +308 -0
  315. package/dist/es/components/form-textarea/index.js +8 -0
  316. package/dist/es/components/form-textarea/utils.js +31 -0
  317. package/dist/es/components/grid/Col.vue.js +16 -0
  318. package/dist/es/components/grid/Col.vue2.js +131 -0
  319. package/dist/es/components/grid/Grid.vue.js +15 -0
  320. package/dist/es/components/grid/Grid.vue2.js +98 -0
  321. package/dist/es/components/grid/GridItem.vue.js +16 -0
  322. package/dist/es/components/grid/GridItem.vue2.js +85 -0
  323. package/dist/es/components/grid/Row.vue.js +15 -0
  324. package/dist/es/components/grid/Row.vue2.js +84 -0
  325. package/dist/es/components/grid/context.js +10 -0
  326. package/dist/es/components/grid/hook/use-responsive-state.js +40 -0
  327. package/dist/es/components/grid/hook/use-responsive-value.js +23 -0
  328. package/dist/es/components/grid/index.js +14 -0
  329. package/dist/es/components/grid/utils/index.js +51 -0
  330. package/dist/es/components/image/Image.vue.js +91 -0
  331. package/dist/es/components/image/Image.vue2.js +259 -0
  332. package/dist/es/components/image/ImagePreview.vue.js +104 -0
  333. package/dist/es/components/image/ImagePreview.vue2.js +361 -0
  334. package/dist/es/components/image/ImagePreviewAction.js +66 -0
  335. package/dist/es/components/image/ImagePreviewGroup.vue.js +32 -0
  336. package/dist/es/components/image/ImagePreviewGroup.vue2.js +228 -0
  337. package/dist/es/components/image/context.js +6 -0
  338. package/dist/es/components/image/hooks/use-image-drag.js +45 -0
  339. package/dist/es/components/image/hooks/use-image-load-status.js +17 -0
  340. package/dist/es/components/image/image-footer.vue.js +35 -0
  341. package/dist/es/components/image/image-footer.vue2.js +21 -0
  342. package/dist/es/components/image/index.js +20 -0
  343. package/dist/es/components/image/preview-arrow.vue.js +49 -0
  344. package/dist/es/components/image/preview-arrow.vue2.js +30 -0
  345. package/dist/es/components/image/preview-toolbar.vue.js +28 -0
  346. package/dist/es/components/image/preview-toolbar.vue2.js +41 -0
  347. package/dist/es/components/image/utils/get-fix-translate.js +7 -0
  348. package/dist/es/components/image/utils/get-scale.js +49 -0
  349. package/dist/es/components/image/utils/index.js +10 -0
  350. package/dist/es/components/index.js +162 -0
  351. package/dist/es/components/layout/Layout.vue.js +14 -0
  352. package/dist/es/components/layout/Layout.vue2.js +31 -0
  353. package/dist/es/components/layout/LayoutContent.vue.js +27 -0
  354. package/dist/es/components/layout/LayoutFooter.vue.js +27 -0
  355. package/dist/es/components/layout/LayoutHeader.vue.js +27 -0
  356. package/dist/es/components/layout/LayoutSidebar.vue.js +38 -0
  357. package/dist/es/components/layout/LayoutSidebar.vue2.js +178 -0
  358. package/dist/es/components/layout/context.js +7 -0
  359. package/dist/es/components/layout/index.js +16 -0
  360. package/dist/es/components/link/Link.vue.js +31 -0
  361. package/dist/es/components/link/Link.vue2.js +99 -0
  362. package/dist/es/components/link/index.js +8 -0
  363. package/dist/es/components/menu/Menu.js +48 -0
  364. package/dist/es/components/menu/MenuItem.js +134 -0
  365. package/dist/es/components/menu/MenuSubMenu.js +161 -0
  366. package/dist/es/components/menu/base-menu.vue.js +39 -0
  367. package/dist/es/components/menu/base-menu.vue2.js +349 -0
  368. package/dist/es/components/menu/context.js +6 -0
  369. package/dist/es/components/menu/hooks/use-level.js +25 -0
  370. package/dist/es/components/menu/hooks/use-menu-context.js +8 -0
  371. package/dist/es/components/menu/hooks/use-menu-data-collector.js +63 -0
  372. package/dist/es/components/menu/hooks/use-menu-open-state.js +75 -0
  373. package/dist/es/components/menu/hooks/use-menu.js +16 -0
  374. package/dist/es/components/menu/indent.vue.js +36 -0
  375. package/dist/es/components/menu/index.js +14 -0
  376. package/dist/es/components/menu/item-group.vue.js +23 -0
  377. package/dist/es/components/menu/item-group.vue2.js +39 -0
  378. package/dist/es/components/menu/overflow-wrap.js +92 -0
  379. package/dist/es/components/menu/sub-menu-inline.vue.js +72 -0
  380. package/dist/es/components/menu/sub-menu-inline.vue2.js +50 -0
  381. package/dist/es/components/menu/sub-menu-pop.vue.js +111 -0
  382. package/dist/es/components/menu/sub-menu-pop.vue2.js +99 -0
  383. package/dist/es/components/message/index.js +8 -0
  384. package/dist/es/components/message/message-list.js +70 -0
  385. package/dist/es/components/message/message.vue.js +54 -0
  386. package/dist/es/components/message/message.vue2.js +142 -0
  387. package/dist/es/components/message/props.js +12 -0
  388. package/dist/es/components/message/warp.js +144 -0
  389. package/dist/es/components/message-box/MessageBox.js +180 -0
  390. package/dist/es/components/message-box/props.js +4 -0
  391. package/dist/es/components/message-box/warp.js +4 -0
  392. package/dist/es/components/network/Network.vue.js +60 -0
  393. package/dist/es/components/network/Network.vue2.js +178 -0
  394. package/dist/es/components/network/index.js +8 -0
  395. package/dist/es/components/network/utils.js +153 -0
  396. package/dist/es/components/notification/Notification.js +84 -0
  397. package/dist/es/components/notification/index.js +8 -0
  398. package/dist/es/components/notification/notification-list.js +72 -0
  399. package/dist/es/components/notification/props.js +65 -0
  400. package/dist/es/components/notification/warp.js +147 -0
  401. package/dist/es/components/pagination/Pagination.js +392 -0
  402. package/dist/es/components/pagination/index.js +8 -0
  403. package/dist/es/components/pagination/page-item-ellipsis.vue.js +23 -0
  404. package/dist/es/components/pagination/page-item-ellipsis.vue2.js +50 -0
  405. package/dist/es/components/pagination/page-item-step.vue.js +28 -0
  406. package/dist/es/components/pagination/page-item-step.vue2.js +66 -0
  407. package/dist/es/components/pagination/page-item.vue.js +24 -0
  408. package/dist/es/components/pagination/page-item.vue2.js +47 -0
  409. package/dist/es/components/pagination/page-jumper.vue.js +48 -0
  410. package/dist/es/components/pagination/page-jumper.vue2.js +68 -0
  411. package/dist/es/components/pagination/page-options.vue.js +20 -0
  412. package/dist/es/components/pagination/page-options.vue2.js +46 -0
  413. package/dist/es/components/pagination/utils.js +4 -0
  414. package/dist/es/components/popconfirm/index.js +8 -0
  415. package/dist/es/components/popconfirm/src/Popconfirm.js +74 -0
  416. package/dist/es/components/popconfirm/src/popup.vue.js +60 -0
  417. package/dist/es/components/popconfirm/src/popup.vue2.js +100 -0
  418. package/dist/es/components/popconfirm/src/props.js +82 -0
  419. package/dist/es/components/popover/Popover.js +86 -0
  420. package/dist/es/components/popover/index.js +8 -0
  421. package/dist/es/components/popover/props.js +139 -0
  422. package/dist/es/components/popup/Popup.js +61 -0
  423. package/dist/es/components/popup/index.js +8 -0
  424. package/dist/es/components/progress/Progress.vue.js +73 -0
  425. package/dist/es/components/progress/Progress.vue2.js +130 -0
  426. package/dist/es/components/progress/circle.vue.js +78 -0
  427. package/dist/es/components/progress/circle.vue2.js +83 -0
  428. package/dist/es/components/progress/index.js +8 -0
  429. package/dist/es/components/progress/line.vue.js +41 -0
  430. package/dist/es/components/progress/line.vue2.js +93 -0
  431. package/dist/es/components/progress/steps.vue.js +45 -0
  432. package/dist/es/components/progress/steps.vue2.js +56 -0
  433. package/dist/es/components/rate/Rate.js +390 -0
  434. package/dist/es/components/rate/index.js +8 -0
  435. package/dist/es/components/resize-box/ResizeBox.vue.js +53 -0
  436. package/dist/es/components/resize-box/ResizeBox.vue2.js +257 -0
  437. package/dist/es/components/resize-box/index.js +8 -0
  438. package/dist/es/components/scrollbar-v2/Scrollbar.vue.js +50 -0
  439. package/dist/es/components/scrollbar-v2/Scrollbar.vue2.js +268 -0
  440. package/dist/es/components/scrollbar-v2/index.js +8 -0
  441. package/dist/es/components/scrollbar-v2/thumb.vue.js +30 -0
  442. package/dist/es/components/scrollbar-v2/thumb.vue2.js +77 -0
  443. package/dist/es/components/skeleton/Skeleton.vue.js +14 -0
  444. package/dist/es/components/skeleton/Skeleton.vue2.js +37 -0
  445. package/dist/es/components/skeleton/SkeletonLine.vue.js +18 -0
  446. package/dist/es/components/skeleton/SkeletonLine.vue2.js +57 -0
  447. package/dist/es/components/skeleton/SkeletonShape.vue.js +12 -0
  448. package/dist/es/components/skeleton/SkeletonShape.vue2.js +38 -0
  449. package/dist/es/components/skeleton/index.js +12 -0
  450. package/dist/es/components/space/Space.js +85 -0
  451. package/dist/es/components/space/index.js +8 -0
  452. package/dist/es/components/spin/Spin.js +135 -0
  453. package/dist/es/components/spin/dot-loading.js +37 -0
  454. package/dist/es/components/spin/index.js +8 -0
  455. package/dist/es/components/steps/Step.vue.js +68 -0
  456. package/dist/es/components/steps/Step.vue2.js +115 -0
  457. package/dist/es/components/steps/Steps.vue.js +14 -0
  458. package/dist/es/components/steps/Steps.vue2.js +140 -0
  459. package/dist/es/components/steps/context.js +4 -0
  460. package/dist/es/components/steps/index.js +10 -0
  461. package/dist/es/components/table/Table.js +1574 -0
  462. package/dist/es/components/table/TableColumn.js +247 -0
  463. package/dist/es/components/table/context.js +5 -0
  464. package/dist/es/components/table/hooks/use-column-filter.js +47 -0
  465. package/dist/es/components/table/hooks/use-column-resize.js +27 -0
  466. package/dist/es/components/table/hooks/use-column-sorter.js +37 -0
  467. package/dist/es/components/table/hooks/use-drag.js +42 -0
  468. package/dist/es/components/table/hooks/use-expand.js +38 -0
  469. package/dist/es/components/table/hooks/use-filter.js +53 -0
  470. package/dist/es/components/table/hooks/use-pagination.js +30 -0
  471. package/dist/es/components/table/hooks/use-row-selection.js +57 -0
  472. package/dist/es/components/table/hooks/use-sorter.js +53 -0
  473. package/dist/es/components/table/hooks/use-span.js +46 -0
  474. package/dist/es/components/table/index.js +10 -0
  475. package/dist/es/components/table/locale.js +21 -0
  476. package/dist/es/components/table/table-col-group.vue.js +25 -0
  477. package/dist/es/components/table/table-col-group.vue2.js +36 -0
  478. package/dist/es/components/table/table-operation-td.js +117 -0
  479. package/dist/es/components/table/table-operation-th.js +64 -0
  480. package/dist/es/components/table/table-tbody.js +18 -0
  481. package/dist/es/components/table/table-td.js +174 -0
  482. package/dist/es/components/table/table-th.js +270 -0
  483. package/dist/es/components/table/table-thead.js +18 -0
  484. package/dist/es/components/table/table-tr.js +45 -0
  485. package/dist/es/components/table/utils.js +168 -0
  486. package/dist/es/components/tabs/TabPane.vue.js +27 -0
  487. package/dist/es/components/tabs/TabPane.vue2.js +73 -0
  488. package/dist/es/components/tabs/Tabs.js +290 -0
  489. package/dist/es/components/tabs/context.js +4 -0
  490. package/dist/es/components/tabs/index.js +10 -0
  491. package/dist/es/components/tabs/tabs-button.js +62 -0
  492. package/dist/es/components/tabs/tabs-nav-ink.vue.js +13 -0
  493. package/dist/es/components/tabs/tabs-nav-ink.vue2.js +49 -0
  494. package/dist/es/components/tabs/tabs-nav.js +216 -0
  495. package/dist/es/components/tabs/tabs-tab.vue.js +36 -0
  496. package/dist/es/components/tabs/tabs-tab.vue2.js +54 -0
  497. package/dist/es/components/tabs/utils.js +12 -0
  498. package/dist/es/components/tag/Tag.vue.js +50 -0
  499. package/dist/es/components/tag/Tag.vue2.js +180 -0
  500. package/dist/es/components/tag/index.js +8 -0
  501. package/dist/es/components/tag/interface.js +18 -0
  502. package/dist/es/components/time-picker/TimeColumn.vue.js +53 -0
  503. package/dist/es/components/time-picker/TimeColumn.vue2.js +55 -0
  504. package/dist/es/components/time-picker/TimePanel.vue.js +69 -0
  505. package/dist/es/components/time-picker/TimePanel.vue2.js +89 -0
  506. package/dist/es/components/time-picker/TimePicker.vue.js +159 -0
  507. package/dist/es/components/time-picker/TimePicker.vue2.js +279 -0
  508. package/dist/es/components/time-picker/TimeRangePanel.js +129 -0
  509. package/dist/es/components/time-picker/hooks/use-time-format.js +14 -0
  510. package/dist/es/components/time-picker/hooks/use-time-list.js +46 -0
  511. package/dist/es/components/time-picker/hooks/use-time-state.js +27 -0
  512. package/dist/es/components/time-picker/index.js +8 -0
  513. package/dist/es/components/time-picker/utils.js +56 -0
  514. package/dist/es/components/time-range-selector/TimeRangeSelector.vue.js +296 -0
  515. package/dist/es/components/time-range-selector/TimeRangeSelector.vue2.js +4 -0
  516. package/dist/es/components/time-range-selector/index.js +11 -0
  517. package/dist/es/components/timeline/index.js +8 -0
  518. package/dist/es/components/timeline/src/Timeline.js +65 -0
  519. package/dist/es/components/timeline/src/TimelineItem.js +63 -0
  520. package/dist/es/components/timeline/src/context.js +4 -0
  521. package/dist/es/components/timeline/src/props.js +84 -0
  522. package/dist/es/components/timeline-item/index.js +8 -0
  523. package/dist/es/components/tooltip/Tooltip.vue.js +135 -0
  524. package/dist/es/components/tooltip/Tooltip.vue2.js +4 -0
  525. package/dist/es/components/tooltip/index.js +8 -0
  526. package/dist/es/components/tooltip/props.js +146 -0
  527. package/dist/es/components/trend-chart/components/TrendChart.js +212 -0
  528. package/dist/es/components/trend-chart/components/trend-chart-curve.js +79 -0
  529. package/dist/es/components/trend-chart/components/trend-chart-grid.js +62 -0
  530. package/dist/es/components/trend-chart/components/trend-chart-labels.js +73 -0
  531. package/dist/es/components/trend-chart/helpers/genPath.js +22 -0
  532. package/dist/es/components/trend-chart/helpers/genPoints.js +21 -0
  533. package/dist/es/components/trend-chart/helpers/getPadding.js +21 -0
  534. package/dist/es/components/trend-chart/helpers/validatePadding.js +7 -0
  535. package/dist/es/components/trend-chart/index.js +8 -0
  536. package/dist/es/components/trend-chart/props.js +160 -0
  537. package/dist/es/components/trend-chart/themes.js +146 -0
  538. package/dist/es/components/trigger/Trigger.js +612 -0
  539. package/dist/es/components/trigger/context.js +4 -0
  540. package/dist/es/components/trigger/index.js +8 -0
  541. package/dist/es/components/trigger/utils.js +303 -0
  542. package/dist/es/components/virtual-list-v2/hooks/use-size.js +60 -0
  543. package/dist/es/components/virtual-list-v2/index.js +4 -0
  544. package/dist/es/components/virtual-list-v2/virtual-list-item.js +35 -0
  545. package/dist/es/components/virtual-list-v2/virtual-list.vue.js +53 -0
  546. package/dist/es/components/virtual-list-v2/virtual-list.vue2.js +126 -0
  547. package/dist/es/components/watermark/Watermark.js +158 -0
  548. package/dist/es/components/watermark/controller.js +107 -0
  549. package/dist/es/components/watermark/directive.js +25 -0
  550. package/dist/es/components/watermark/index.js +8 -0
  551. package/dist/es/components/watermark/utils.js +15 -0
  552. package/dist/es/directives/index.js +12 -0
  553. package/dist/es/directives/wave.js +44 -0
  554. package/dist/es/icons/_self/down.js +16 -0
  555. package/dist/es/icons/_self/dropdown/more.js +13 -0
  556. package/dist/es/icons/_self/empty-better.js +49 -0
  557. package/dist/es/icons/_self/eye-invisible.js +13 -0
  558. package/dist/es/icons/_self/eye.js +13 -0
  559. package/dist/es/icons/_self/full-screen.js +13 -0
  560. package/dist/es/icons/_self/left.js +16 -0
  561. package/dist/es/icons/_self/menu/down.js +13 -0
  562. package/dist/es/icons/_self/minus.js +13 -0
  563. package/dist/es/icons/_self/more-dot.js +13 -0
  564. package/dist/es/icons/_self/next.js +12 -0
  565. package/dist/es/icons/_self/original-size.js +13 -0
  566. package/dist/es/icons/_self/plus.js +12 -0
  567. package/dist/es/icons/_self/prev.js +12 -0
  568. package/dist/es/icons/_self/question-message.js +12 -0
  569. package/dist/es/icons/_self/right.js +16 -0
  570. package/dist/es/icons/_self/rotate-left.js +16 -0
  571. package/dist/es/icons/_self/rotate-right.js +16 -0
  572. package/dist/es/icons/_self/search.js +13 -0
  573. package/dist/es/icons/_self/up.js +16 -0
  574. package/dist/es/icons/_self/zoom-in.js +13 -0
  575. package/dist/es/icons/_self/zoom-out.js +13 -0
  576. package/dist/es/icons/_ui/calendar.js +13 -0
  577. package/dist/es/icons/_ui/time.js +12 -0
  578. package/dist/es/icons/animation/animation-loading.js +16 -0
  579. package/dist/es/icons/default/check-circle-fill.js +21 -0
  580. package/dist/es/icons/default/check.js +13 -0
  581. package/dist/es/icons/default/close-circle-fill.js +21 -0
  582. package/dist/es/icons/default/close.js +17 -0
  583. package/dist/es/icons/default/exclamation-circle-fill.js +21 -0
  584. package/dist/es/icons/default/exclamation.js +29 -0
  585. package/dist/es/icons/default/filter.js +16 -0
  586. package/dist/es/icons/default/info-circle-fill.js +21 -0
  587. package/dist/es/icons/default/link.js +16 -0
  588. package/dist/es/icons/default/minus-circle-fill.js +21 -0
  589. package/dist/es/icons/icon.js +126 -0
  590. package/dist/es/icons/index.js +12 -0
  591. package/dist/es/icons/public/finicon-meta.js +6537 -0
  592. package/dist/es/icons/public/finicon.js +1037 -0
  593. package/dist/es/icons/public/lucide.js +192 -0
  594. package/dist/es/icons/registry.js +18 -0
  595. package/dist/es/index.js +218 -0
  596. package/dist/es/locale/en-US.js +173 -0
  597. package/dist/es/locale/index.js +41 -0
  598. package/dist/es/locale/zh-CN.js +173 -0
  599. package/dist/es/node_modules/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/index.js +74 -0
  600. package/dist/es/node_modules/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/is.js +54 -0
  601. package/dist/es/node_modules/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/locale/en-US.js +49 -0
  602. package/dist/es/node_modules/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/rules/array.js +31 -0
  603. package/dist/es/node_modules/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/rules/base.js +59 -0
  604. package/dist/es/node_modules/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/rules/boolean.js +17 -0
  605. package/dist/es/node_modules/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/rules/custom.js +23 -0
  606. package/dist/es/node_modules/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/rules/number.js +25 -0
  607. package/dist/es/node_modules/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/rules/object.js +22 -0
  608. package/dist/es/node_modules/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/rules/string.js +26 -0
  609. package/dist/es/node_modules/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/rules/type.js +18 -0
  610. package/dist/es/node_modules/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/util.js +17 -0
  611. package/dist/es/node_modules/.pnpm/compute-scroll-into-view@3.1.1/node_modules/compute-scroll-into-view/dist/index.js +58 -0
  612. package/dist/es/node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/dayjs.min.js +282 -0
  613. package/dist/es/node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/locale/zh-cn.js +24 -0
  614. package/dist/es/node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/advancedFormat.js +54 -0
  615. package/dist/es/node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/customParseFormat.js +127 -0
  616. package/dist/es/node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/isBetween.js +19 -0
  617. package/dist/es/node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/quarterOfYear.js +33 -0
  618. package/dist/es/node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/weekOfYear.js +29 -0
  619. package/dist/es/node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/weekYear.js +19 -0
  620. package/dist/es/node_modules/.pnpm/number-precision@1.6.0/node_modules/number-precision/build/index.es.js +70 -0
  621. package/dist/es/node_modules/.pnpm/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +290 -0
  622. package/dist/es/node_modules/.pnpm/scroll-into-view-if-needed@3.1.0/node_modules/scroll-into-view-if-needed/dist/index.js +25 -0
  623. package/dist/es/node_modules/.pnpm/sortablejs@1.15.7/node_modules/sortablejs/modular/sortable.esm.js +1277 -0
  624. package/dist/es/style.css +1 -0
  625. package/dist/icons/_self/down.d.ts +39 -3
  626. package/dist/icons/_self/dropdown/more.d.ts +39 -3
  627. package/dist/icons/_self/empty-better.d.ts +39 -3
  628. package/dist/icons/_self/empty.d.ts +39 -3
  629. package/dist/icons/_self/eye-invisible.d.ts +39 -3
  630. package/dist/icons/_self/eye.d.ts +39 -3
  631. package/dist/icons/_self/full-screen.d.ts +39 -3
  632. package/dist/icons/_self/left.d.ts +39 -3
  633. package/dist/icons/_self/menu/down.d.ts +39 -3
  634. package/dist/icons/_self/minus.d.ts +39 -3
  635. package/dist/icons/_self/more-dot.d.ts +39 -3
  636. package/dist/icons/_self/next.d.ts +39 -3
  637. package/dist/icons/_self/original-size.d.ts +39 -3
  638. package/dist/icons/_self/plus.d.ts +39 -3
  639. package/dist/icons/_self/prev.d.ts +39 -3
  640. package/dist/icons/_self/question-message.d.ts +39 -3
  641. package/dist/icons/_self/right.d.ts +39 -3
  642. package/dist/icons/_self/rotate-left.d.ts +39 -3
  643. package/dist/icons/_self/rotate-right.d.ts +39 -3
  644. package/dist/icons/_self/search.d.ts +39 -3
  645. package/dist/icons/_self/up.d.ts +39 -3
  646. package/dist/icons/_self/zoom-in.d.ts +39 -3
  647. package/dist/icons/_self/zoom-out.d.ts +39 -3
  648. package/dist/icons/_ui/alone-left.d.ts +39 -3
  649. package/dist/icons/_ui/alone-margin-left.d.ts +39 -3
  650. package/dist/icons/_ui/alone-margin-right.d.ts +39 -3
  651. package/dist/icons/_ui/alone-right.d.ts +39 -3
  652. package/dist/icons/_ui/calendar.d.ts +39 -3
  653. package/dist/icons/_ui/time.d.ts +39 -3
  654. package/dist/icons/animation/animation-loading.d.ts +39 -3
  655. package/dist/icons/default/check-circle-fill.d.ts +39 -3
  656. package/dist/icons/default/check.d.ts +39 -3
  657. package/dist/icons/default/close-circle-fill.d.ts +39 -3
  658. package/dist/icons/default/close.d.ts +39 -3
  659. package/dist/icons/default/exclamation-circle-fill.d.ts +39 -3
  660. package/dist/icons/default/exclamation.d.ts +39 -3
  661. package/dist/icons/default/filter.d.ts +86 -0
  662. package/dist/icons/default/info-circle-fill.d.ts +39 -3
  663. package/dist/icons/default/link.d.ts +39 -3
  664. package/dist/icons/default/logo-simple.d.ts +39 -3
  665. package/dist/icons/default/minus-circle-fill.d.ts +39 -3
  666. package/dist/icons/icon.d.ts +160 -2
  667. package/dist/icons/index.d.ts +149 -12
  668. package/dist/icons/names.d.ts +5 -0
  669. package/dist/icons/public/finicon-meta.d.ts +4631 -0
  670. package/dist/icons/public/finicon.d.ts +4 -0
  671. package/dist/icons/public/lucide.d.ts +4 -0
  672. package/dist/icons/registry.d.ts +7 -0
  673. package/dist/index.cjs +66 -0
  674. package/dist/index.d.ts +13 -0
  675. package/dist/index.umd.js +62 -3
  676. package/dist/locale/en-US.d.ts +4 -0
  677. package/dist/locale/index.d.ts +46 -0
  678. package/dist/locale/interface.d.ts +249 -0
  679. package/dist/locale/zh-CN.d.ts +8 -0
  680. package/dist/style/alert.css +1 -0
  681. package/dist/style/alert.js +2 -0
  682. package/dist/style/base.css +1 -0
  683. package/dist/style/button.css +1 -0
  684. package/dist/style/button.js +2 -0
  685. package/dist/style/date-picker.css +1 -0
  686. package/dist/style/date-picker.js +2 -0
  687. package/dist/style/dialog.css +1 -0
  688. package/dist/style/dialog.js +2 -0
  689. package/dist/style/drawer.css +1 -0
  690. package/dist/style/drawer.js +2 -0
  691. package/dist/style/dropdown.css +1 -0
  692. package/dist/style/dropdown.js +2 -0
  693. package/dist/style/empty.css +1 -0
  694. package/dist/style/empty.js +2 -0
  695. package/dist/style/form-checkbox.css +1 -0
  696. package/dist/style/form-checkbox.js +2 -0
  697. package/dist/style/form-input-number.css +1 -0
  698. package/dist/style/form-input-number.js +2 -0
  699. package/dist/style/form-input-tag.css +1 -0
  700. package/dist/style/form-input-tag.js +2 -0
  701. package/dist/style/form-input.css +1 -0
  702. package/dist/style/form-input.js +2 -0
  703. package/dist/style/form-radio.css +1 -0
  704. package/dist/style/form-radio.js +2 -0
  705. package/dist/style/form-select.css +1 -0
  706. package/dist/style/form-select.js +2 -0
  707. package/dist/style/form-slider.css +1 -0
  708. package/dist/style/form-slider.js +2 -0
  709. package/dist/style/form-switch.css +1 -0
  710. package/dist/style/form-switch.js +2 -0
  711. package/dist/style/form-textarea.css +1 -0
  712. package/dist/style/form-textarea.js +2 -0
  713. package/dist/style/form.css +1 -0
  714. package/dist/style/form.js +2 -0
  715. package/dist/style/grid.css +1 -0
  716. package/dist/style/grid.js +2 -0
  717. package/dist/style/image.css +1 -0
  718. package/dist/style/image.js +2 -0
  719. package/dist/style/layout.css +1 -0
  720. package/dist/style/layout.js +2 -0
  721. package/dist/style/link.css +1 -0
  722. package/dist/style/link.js +2 -0
  723. package/dist/style/menu.css +1 -0
  724. package/dist/style/menu.js +2 -0
  725. package/dist/style/message-box.css +1 -0
  726. package/dist/style/message-box.js +2 -0
  727. package/dist/style/message.css +1 -0
  728. package/dist/style/message.js +2 -0
  729. package/dist/style/network.css +1 -0
  730. package/dist/style/network.js +2 -0
  731. package/dist/style/notification.css +1 -0
  732. package/dist/style/notification.js +2 -0
  733. package/dist/style/pagination.css +1 -0
  734. package/dist/style/pagination.js +2 -0
  735. package/dist/style/popconfirm.css +1 -0
  736. package/dist/style/popconfirm.js +2 -0
  737. package/dist/style/popover.css +1 -0
  738. package/dist/style/popover.js +2 -0
  739. package/dist/style/popup.css +1 -0
  740. package/dist/style/popup.js +2 -0
  741. package/dist/style/progress.css +1 -0
  742. package/dist/style/progress.js +2 -0
  743. package/dist/style/rate.css +1 -0
  744. package/dist/style/rate.js +2 -0
  745. package/dist/style/resize-box.css +1 -0
  746. package/dist/style/resize-box.js +2 -0
  747. package/dist/style/scrollbar-v2.css +1 -0
  748. package/dist/style/scrollbar-v2.js +2 -0
  749. package/dist/style/skeleton.css +1 -0
  750. package/dist/style/skeleton.js +2 -0
  751. package/dist/style/space.css +1 -0
  752. package/dist/style/space.js +2 -0
  753. package/dist/style/spin.css +1 -0
  754. package/dist/style/spin.js +2 -0
  755. package/dist/style/steps.css +1 -0
  756. package/dist/style/steps.js +2 -0
  757. package/dist/style/table.css +1 -0
  758. package/dist/style/table.js +2 -0
  759. package/dist/style/tabs.css +1 -0
  760. package/dist/style/tabs.js +2 -0
  761. package/dist/style/tag.css +1 -0
  762. package/dist/style/tag.js +2 -0
  763. package/dist/style/time-picker.css +1 -0
  764. package/dist/style/time-picker.js +2 -0
  765. package/dist/style/time-range-selector.css +1 -0
  766. package/dist/style/time-range-selector.js +2 -0
  767. package/dist/style/timeline.css +1 -0
  768. package/dist/style/timeline.js +2 -0
  769. package/dist/style/tooltip.css +1 -0
  770. package/dist/style/tooltip.js +2 -0
  771. package/dist/style/trigger.css +1 -0
  772. package/dist/style/trigger.js +2 -0
  773. package/dist/style/watermark.css +1 -0
  774. package/dist/style/watermark.js +2 -0
  775. package/dist/style.css +1 -1
  776. package/dist/types.d.ts +8 -8
  777. package/package.json +61 -25
  778. package/volar.d.ts +8 -8
  779. package/dist/_container/utils.d.ts +0 -12
  780. package/dist/_utils/number.d.ts +0 -193
  781. package/dist/_utils/pad.d.ts +0 -2
  782. package/dist/components/_components/render-function/index.d.ts +0 -14
  783. package/dist/components/form/validateMessages.d.ts +0 -46
  784. package/dist/components/message/Message.d.ts +0 -108
  785. package/dist/components/table/__tests__/table.spec.d.ts +0 -1
  786. package/dist/components/tag-cloud/index.d.ts +0 -0
  787. package/dist/components/trigger-old/index.d.ts +0 -488
  788. package/dist/components/trigger-old/src/_trigger.d.ts +0 -217
  789. package/dist/components/trigger-old/src/constant.d.ts +0 -8
  790. package/dist/components/trigger-old/src/trigger.d.ts +0 -288
  791. package/dist/components/trigger-old/src/utils.d.ts +0 -50
  792. package/dist/index.es.js +0 -40212
@@ -0,0 +1,1574 @@
1
+ import { defineComponent as $l, toRefs as zl, computed as h, ref as p, reactive as we, watch as ne, watchEffect as Ml, toRef as Wl, provide as Ol, onMounted as jl, createVNode as u, Fragment as ke, mergeProps as k, isVNode as Hl } from "vue";
2
+ import { isObject as Re, isFunction as K, isNumber as L, isString as Il, isArray as _l, isUndefined as Vl, isNull as Nl } from "../../_utils/is.js";
3
+ import { debounce as ft } from "../../_utils/debounce.js";
4
+ import { getGroupColumns as Gl, mapArrayWithChildren as Ul, mapRawTableData as Yl, getColumnsFromSlot as ql } from "./utils.js";
5
+ import { useRowSelection as Jl } from "./hooks/use-row-selection.js";
6
+ import { useExpand as Ql } from "./hooks/use-expand.js";
7
+ import { usePagination as Xl } from "./hooks/use-pagination.js";
8
+ import Zl from "../../icons/_self/plus.js";
9
+ import ea from "../../icons/default/minus-circle-fill.js";
10
+ import { Spin as ta } from "../spin/index.js";
11
+ import { Pagination as la } from "../pagination/index.js";
12
+ import { Empty as aa } from "../empty/index.js";
13
+ import re from "./table-col-group.vue.js";
14
+ import na from "./table-thead.js";
15
+ import ra from "./table-tbody.js";
16
+ import U from "./table-tr.js";
17
+ import oa from "./table-th.js";
18
+ import oe from "./table-td.js";
19
+ import ua from "./table-operation-th.js";
20
+ import mt from "./table-operation-td.js";
21
+ import ia from "../virtual-list-v2/virtual-list.vue.js";
22
+ import ht from "../../_container/resize-observer.js";
23
+ import { omit as sa } from "../../_utils/omit.js";
24
+ import { useDrag as ca } from "./hooks/use-drag.js";
25
+ import { useColumnResize as da } from "./hooks/use-column-resize.js";
26
+ import { tableInjectionKey as fa } from "./context.js";
27
+ import { useFilter as ma } from "./hooks/use-filter.js";
28
+ import { useSorter as ha } from "./hooks/use-sorter.js";
29
+ import { useSpan as vt } from "./hooks/use-span.js";
30
+ import { useChildrenComponents as va } from "../../_hooks/use-children-components.js";
31
+ import { Scrollbar as gt } from "../scrollbar-v2/index.js";
32
+ import { useComponentRef as Ee } from "../../_hooks/use-component-ref.js";
33
+ import { useSize as ga } from "../../_hooks/use-size.js";
34
+ import { useLocale as ya } from "../../locale/index.js";
35
+ import { useScrollbar as ba } from "../../_hooks/use-scrollbar.js";
36
+ import { getValueByPath as Le, setValueByPath as yt } from "../../_utils/get-value-by-path.js";
37
+ import { getClassNameMixin as pa } from "../../_utils/config.js";
38
+ function xa(t) {
39
+ return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !Hl(t);
40
+ }
41
+ const bt = {
42
+ wrapper: !0,
43
+ cell: !1,
44
+ headerCell: !1,
45
+ bodyCell: !1
46
+ }, un = /* @__PURE__ */ $l({
47
+ name: "Table",
48
+ props: {
49
+ /**
50
+ * @zh 表格的列描述信息
51
+ * @en Column info of the table
52
+ */
53
+ columns: {
54
+ type: Array,
55
+ default: () => []
56
+ },
57
+ /**
58
+ * @zh 表格的数据
59
+ * @en Table data
60
+ */
61
+ data: {
62
+ type: Array,
63
+ default: () => []
64
+ },
65
+ /**
66
+ * @zh 是否显示边框
67
+ * @en Whether to show the border
68
+ */
69
+ bordered: {
70
+ type: [Boolean, Object],
71
+ default: !1
72
+ },
73
+ /**
74
+ * @zh 是否显示选中效果
75
+ * @en Whether to show the hover effect
76
+ */
77
+ hoverable: {
78
+ type: Boolean,
79
+ default: !0
80
+ },
81
+ /**
82
+ * @zh 是否开启斑马纹效果
83
+ * @en Whether to enable the stripe effect
84
+ */
85
+ stripe: {
86
+ type: Boolean,
87
+ default: !1
88
+ },
89
+ /**
90
+ * @zh 表格的大小
91
+ * @en The size of the table
92
+ * @values 'mini','small','medium','large'
93
+ * @defaultValue 'large'
94
+ */
95
+ size: {
96
+ type: String,
97
+ default: void 0
98
+ },
99
+ /**
100
+ * @zh 表格的 table-layout 属性设置为 fixed,设置为 fixed 后,表格的宽度不会被内容撑开超出 100%。
101
+ * @en The table-layout property of the table is set to fixed. After it is set to fixed, the width of the table will not be stretched beyond 100% by the content.
102
+ */
103
+ tableLayoutFixed: {
104
+ type: Boolean,
105
+ default: !1
106
+ },
107
+ /**
108
+ * @zh 是否为加载中状态
109
+ * @en Whether it is loading state
110
+ */
111
+ loading: {
112
+ type: [Boolean, Object],
113
+ default: !1
114
+ },
115
+ /**
116
+ * @zh 表格的行选择器配置
117
+ * @en Table row selector configuration
118
+ */
119
+ rowSelection: {
120
+ type: Object
121
+ },
122
+ /**
123
+ * @zh 表格的展开行配置
124
+ * @en Expand row configuration of the table
125
+ */
126
+ expandable: {
127
+ type: Object
128
+ },
129
+ /**
130
+ * @zh 表格的滚动属性配置。`2.13.0` 版本增加字符型值的支持。`2.20.0` 版本增加 `minWidth`,`maxHeight` 的支持。
131
+ * @en Scrolling attribute configuration of the table. The `2.13.0` version adds support for character values. `2.20.0` version adds support for `minWidth`, `maxHeight`.
132
+ */
133
+ scroll: {
134
+ type: Object
135
+ },
136
+ /**
137
+ * @zh 分页的属性配置
138
+ * @en Pagination properties configuration
139
+ */
140
+ pagination: {
141
+ type: [Boolean, Object],
142
+ default: !0
143
+ },
144
+ /**
145
+ * @zh 分页选择器的位置
146
+ * @en The position of the page selector
147
+ * @values 'tl','top',tr','bl','bottom','br'
148
+ */
149
+ pagePosition: {
150
+ type: String,
151
+ default: "br"
152
+ },
153
+ /**
154
+ * @zh 树形表格的缩进距离
155
+ * @en The indentation distance of the tree table
156
+ */
157
+ indentSize: {
158
+ type: Number,
159
+ default: 16
160
+ },
161
+ /**
162
+ * @zh 表格行 `key` 的取值字段
163
+ * @en Value field of table row `key`
164
+ */
165
+ rowKey: {
166
+ type: String,
167
+ default: "key"
168
+ },
169
+ /**
170
+ * @zh 是否显示表头
171
+ * @en Whether to show the header
172
+ */
173
+ showHeader: {
174
+ type: Boolean,
175
+ default: !0
176
+ },
177
+ /**
178
+ * @zh 传递虚拟列表属性,传入此参数以开启虚拟滚动 [VirtualListProps](#VirtualListProps)
179
+ * @en Pass the virtual list attribute, pass in this parameter to turn on virtual scrolling [VirtualListProps](#VirtualListProps)
180
+ * @type VirtualListProps
181
+ */
182
+ virtualListProps: {
183
+ type: Object
184
+ },
185
+ /**
186
+ * @zh 单元格合并方法(索引从数据项开始计数)
187
+ * @en Cell merge method (The index starts counting from the data item)
188
+ * @version 2.10.0
189
+ */
190
+ spanMethod: {
191
+ type: Function
192
+ },
193
+ /**
194
+ * @zh 是否让合并方法的索引包含所有
195
+ * @en Whether to make the index of the span method contain all
196
+ * @version 2.18.0
197
+ */
198
+ spanAll: {
199
+ type: Boolean,
200
+ default: !1
201
+ },
202
+ components: {
203
+ type: Object
204
+ },
205
+ /**
206
+ * @zh 数据懒加载函数,传入时开启懒加载功能
207
+ * @en Data lazy loading function, open the lazy loading function when it is passed in
208
+ * @version 2.13.0
209
+ */
210
+ loadMore: {
211
+ type: Function
212
+ },
213
+ /**
214
+ * @zh 筛选图标是否左对齐
215
+ * @en Whether the filter icon is aligned to the left
216
+ * @version 2.13.0
217
+ */
218
+ filterIconAlignLeft: {
219
+ type: Boolean,
220
+ default: !1
221
+ },
222
+ /**
223
+ * @zh 是否在子树为空时隐藏展开按钮
224
+ * @en Whether to hide expand button when subtree is empty
225
+ * @version 2.14.0
226
+ */
227
+ hideExpandButtonOnEmpty: {
228
+ type: Boolean,
229
+ default: !1
230
+ },
231
+ /**
232
+ * @zh 表格行元素的类名。`2.34.0` 版本增加函数值支持
233
+ * @en The class name of the table row element. The `2.34.0` version adds support for function values.
234
+ * @version 2.16.0
235
+ */
236
+ rowClass: {
237
+ type: [String, Array, Object, Function]
238
+ },
239
+ /**
240
+ * @zh 表格拖拽排序的配置
241
+ * @en Table drag and drop sorting configuration
242
+ * @version 2.16.0
243
+ */
244
+ draggable: {
245
+ type: Object
246
+ },
247
+ /**
248
+ * @zh 是否允许调整列宽
249
+ * @en Whether to allow the column width to be adjusted
250
+ * @version 2.16.0
251
+ */
252
+ columnResizable: {
253
+ type: Boolean
254
+ },
255
+ /**
256
+ * @zh 显示表尾总结行
257
+ * @en Show footer summary row
258
+ * @version 2.21.0
259
+ */
260
+ summary: {
261
+ type: [Boolean, Function]
262
+ },
263
+ /**
264
+ * @zh 总结行的首列文字
265
+ * @en The first column of text in the summary line
266
+ * @version 2.21.0
267
+ */
268
+ summaryText: {
269
+ type: String,
270
+ default: void 0
271
+ },
272
+ /**
273
+ * @zh 总结行的单元格合并方法
274
+ * @en Cell Merge Method for Summarizing Rows
275
+ * @version 2.21.0
276
+ */
277
+ summarySpanMethod: {
278
+ type: Function
279
+ },
280
+ /**
281
+ * @zh 已选择的行(受控模式)优先于 `rowSelection`
282
+ * @en Selected row (controlled mode) takes precedence over `rowSelection`
283
+ * @version 2.25.0
284
+ */
285
+ selectedKeys: {
286
+ type: Array
287
+ },
288
+ /**
289
+ * @zh 默认已选择的行(非受控模式)优先于 `rowSelection`
290
+ * @en The selected row by default (uncontrolled mode) takes precedence over `rowSelection`
291
+ * @version 2.25.0
292
+ */
293
+ defaultSelectedKeys: {
294
+ type: Array
295
+ },
296
+ /**
297
+ * @zh 显示的展开行、子树(受控模式)优先于 `expandable`
298
+ * @en Displayed Expanded Row, Subtree (Controlled Mode) takes precedence over `expandable`
299
+ * @version 2.25.0
300
+ */
301
+ expandedKeys: {
302
+ type: Array
303
+ },
304
+ /**
305
+ * @zh 默认显示的展开行、子树(非受控模式)优先于 `expandable`
306
+ * @en Expand row, Subtree displayed by default (Uncontrolled mode) takes precedence over `expandable`
307
+ * @version 2.25.0
308
+ */
309
+ defaultExpandedKeys: {
310
+ type: Array
311
+ },
312
+ /**
313
+ * @zh 是否默认展开所有的行
314
+ * @en Whether to expand all rows by default
315
+ * @version 2.25.0
316
+ */
317
+ defaultExpandAllRows: {
318
+ type: Boolean,
319
+ default: !1
320
+ },
321
+ /**
322
+ * @zh 是否开启表头吸顶
323
+ * @en Whether to open the sticky header
324
+ * @version 2.30.0
325
+ */
326
+ stickyHeader: {
327
+ type: [Boolean, Number],
328
+ default: !1
329
+ },
330
+ /**
331
+ * @zh 是否开启虚拟滚动条
332
+ * @en Whether to enable virtual scroll bar
333
+ * @version 2.38.0
334
+ */
335
+ scrollbar: {
336
+ type: [Object, Boolean],
337
+ default: !0
338
+ },
339
+ /**
340
+ * @zh 是否展示空子树
341
+ * @en Whether to display empty subtrees
342
+ * @version 2.51.0
343
+ */
344
+ showEmptyTree: {
345
+ type: Boolean,
346
+ default: !1
347
+ }
348
+ },
349
+ emits: {
350
+ "update:selectedKeys": (t) => !0,
351
+ "update:expandedKeys": (t) => !0,
352
+ /**
353
+ * @zh 点击展开行时触发
354
+ * @en Triggered when a row is clicked to expand
355
+ * @param {string | number} rowKey
356
+ * @param {TableData} record
357
+ */
358
+ expand: (t, d) => !0,
359
+ /**
360
+ * @zh 已展开的数据行发生改变时触发
361
+ * @en Triggered when the expanded data row changes
362
+ * @param {(string | number)[]} rowKeys
363
+ */
364
+ expandedChange: (t) => !0,
365
+ /**
366
+ * @zh 点击行选择器时触发
367
+ * @en Triggered when the row selector is clicked
368
+ * @param {string | number[]} rowKeys
369
+ * @param {string | number} rowKey
370
+ * @param {TableData} record
371
+ */
372
+ select: (t, d, s) => !0,
373
+ /**
374
+ * @zh 点击全选选择器时触发
375
+ * @en Triggered when the select all selector is clicked
376
+ * @param {boolean} checked
377
+ */
378
+ selectAll: (t) => !0,
379
+ /**
380
+ * @zh 已选择的数据行发生改变时触发
381
+ * @en Triggered when the selected data row changes
382
+ * @param {(string | number)[]} rowKeys
383
+ */
384
+ selectionChange: (t) => !0,
385
+ /**
386
+ * @zh 排序规则发生改变时触发
387
+ * @en Triggered when the collation changes
388
+ * @param {string} dataIndex
389
+ * @param {string} direction
390
+ */
391
+ sorterChange: (t, d) => !0,
392
+ /**
393
+ * @zh 过滤选项发生改变时触发
394
+ * @en Triggered when the filter options are changed
395
+ * @param {string} dataIndex
396
+ * @param {string[]} filteredValues
397
+ */
398
+ filterChange: (t, d) => !0,
399
+ /**
400
+ * @zh 表格分页发生改变时触发
401
+ * @en Triggered when the table pagination changes
402
+ * @param {number} page
403
+ */
404
+ pageChange: (t) => !0,
405
+ /**
406
+ * @zh 表格每页数据数量发生改变时触发
407
+ * @en Triggered when the number of data per page of the table changes
408
+ * @param {number} pageSize
409
+ */
410
+ pageSizeChange: (t) => !0,
411
+ /**
412
+ * @zh 表格数据发生变化时触发
413
+ * @en Triggered when table data changes
414
+ * @param {TableData[]} data
415
+ * @param {TableChangeExtra} extra
416
+ * @param {TableData[]} currentData
417
+ * @version 2.40.0 增加 currentData
418
+ */
419
+ change: (t, d, s) => !0,
420
+ /**
421
+ * @zh 单元格 hover 进入时触发
422
+ * @en Triggered when hovering into a cell
423
+ * @param {TableData} record
424
+ * @param {TableColumnData} column
425
+ * @param {Event} ev
426
+ */
427
+ cellMouseEnter: (t, d, s) => !0,
428
+ /**
429
+ * @zh 单元格 hover 退出时触发
430
+ * @en Triggered when hovering out of a cell
431
+ * @param {TableData} record
432
+ * @param {TableColumnData} column
433
+ * @param {Event} ev
434
+ */
435
+ cellMouseLeave: (t, d, s) => !0,
436
+ /**
437
+ * @zh 点击单元格时触发
438
+ * @en Triggered when a cell is clicked
439
+ * @param {TableData} record
440
+ * @param {TableColumnData} column
441
+ * @param {Event} ev
442
+ */
443
+ cellClick: (t, d, s) => !0,
444
+ /**
445
+ * @zh 点击行数据时触发
446
+ * @en Triggered when row data is clicked
447
+ * @param {TableData} record
448
+ * @param {Event} ev
449
+ */
450
+ rowClick: (t, d) => !0,
451
+ /**
452
+ * @zh 点击表头数据时触发
453
+ * @en Triggered when the header data is clicked
454
+ * @param {TableColumnData} column
455
+ * @param {Event} ev
456
+ */
457
+ headerClick: (t, d) => !0,
458
+ /**
459
+ * @zh 调整列宽时触发
460
+ * @en Triggered when column width is adjusted
461
+ * @param {string} dataIndex
462
+ * @param {number} width
463
+ * @version 2.28.0
464
+ */
465
+ columnResize: (t, d) => !0,
466
+ /**
467
+ * @zh 双击行数据时触发
468
+ * @en Triggered when row data is double clicked
469
+ * @param {TableData} record
470
+ * @param {Event} ev
471
+ */
472
+ rowDblclick: (t, d) => !0,
473
+ /**
474
+ * @zh 双击单元格时触发
475
+ * @en Triggered when a cell is double clicked
476
+ * @param {TableData} record
477
+ * @param {TableColumnData} column
478
+ * @param {Event} ev
479
+ */
480
+ cellDblclick: (t, d, s) => !0,
481
+ /**
482
+ * @zh 右击行数据时触发
483
+ * @en Triggered when row data is right clicked
484
+ * @param {TableData} record
485
+ * @param {Event} ev
486
+ */
487
+ rowContextmenu: (t, d) => !0,
488
+ /**
489
+ * @zh 右击单元格时触发
490
+ * @en Triggered when a cell is right clicked
491
+ * @param {TableData} record
492
+ * @param {TableColumnData} column
493
+ * @param {Event} ev
494
+ */
495
+ cellContextmenu: (t, d, s) => !0
496
+ },
497
+ /**
498
+ * @zh 表格列定义。启用时会屏蔽 columns 属性
499
+ * @en Table column definitions. When enabled, the columns attribute is masked
500
+ * @slot columns
501
+ */
502
+ /**
503
+ * @zh 展开行图标
504
+ * @en Expand row icon
505
+ * @slot expand-icon
506
+ * @binding {boolean} expanded
507
+ * @binding {TableData} record
508
+ */
509
+ /**
510
+ * @zh 展开行内容
511
+ * @en Expand row content
512
+ * @slot expand-row
513
+ * @binding {TableData} record
514
+ */
515
+ /**
516
+ * @zh 表格底部
517
+ * @en Table Footer
518
+ * @slot footer
519
+ */
520
+ /**
521
+ * @zh 拖拽锚点图标
522
+ * @en Drag handle icon
523
+ * @slot drag-handle-icon
524
+ * @version 2.16.0
525
+ */
526
+ /**
527
+ * @zh 自定义 tbody 元素
528
+ * @en Custom tbody element
529
+ * @slot tbody
530
+ * @version 2.16.0
531
+ */
532
+ /**
533
+ * @zh 自定义 tr 元素
534
+ * @en Custom tr element
535
+ * @slot tr
536
+ * @binding {TableData} record
537
+ * @binding {number} rowIndex
538
+ * @version 2.16.0
539
+ */
540
+ /**
541
+ * @zh 自定义 td 元素
542
+ * @en Custom td element
543
+ * @slot td
544
+ * @binding {TableColumnData} column
545
+ * @binding {TableData} record
546
+ * @binding {number} rowIndex
547
+ * @version 2.16.0
548
+ */
549
+ /**
550
+ * @zh 分页器左侧内容
551
+ * @en Content on the left side of the pagination
552
+ * @slot pagination-left
553
+ * @version 2.18.0
554
+ */
555
+ /**
556
+ * @zh 分页器右侧内容
557
+ * @en Content on the right side of the pagination
558
+ * @slot pagination-right
559
+ * @version 2.18.0
560
+ */
561
+ /**
562
+ * @zh 总结行
563
+ * @en Content on the right side of the pagination
564
+ * @slot summary-cell
565
+ * @binding {TableColumnData} column
566
+ * @binding {TableData} record
567
+ * @binding {number} rowIndex
568
+ * @version 2.23.0
569
+ */
570
+ /**
571
+ * @zh 空白展示
572
+ * @en Empty
573
+ * @slot empty
574
+ */
575
+ /**
576
+ * @zh 自定义 thead 元素
577
+ * @en Custom thead element
578
+ * @slot thead
579
+ * @version 2.26.0
580
+ */
581
+ /**
582
+ * @zh 自定义 th 元素
583
+ * @en Custom th element
584
+ * @slot th
585
+ * @binding {TableColumnData} column
586
+ * @version 2.26.0
587
+ */
588
+ setup(t, {
589
+ emit: d,
590
+ slots: s
591
+ }) {
592
+ const {
593
+ columns: pt,
594
+ rowKey: Ae,
595
+ rowSelection: ue,
596
+ expandable: xt,
597
+ loadMore: Ct,
598
+ filterIconAlignLeft: St,
599
+ selectedKeys: wt,
600
+ defaultSelectedKeys: kt,
601
+ expandedKeys: Rt,
602
+ defaultExpandedKeys: Et,
603
+ defaultExpandAllRows: Lt,
604
+ spanMethod: At,
605
+ draggable: Bt,
606
+ summarySpanMethod: Dt,
607
+ scrollbar: Y,
608
+ showEmptyTree: Pt
609
+ } = zl(t), i = pa("table"), {
610
+ t: Ft
611
+ } = ya(), A = h(() => Re(t.bordered) ? {
612
+ ...bt,
613
+ ...t.bordered
614
+ } : {
615
+ ...bt,
616
+ wrapper: t.bordered
617
+ }), {
618
+ children: Be,
619
+ components: Kt
620
+ } = va("TableColumn"), Tt = h(() => {
621
+ var e;
622
+ return ((e = ue.value) == null ? void 0 : e.checkStrictly) ?? !0;
623
+ }), {
624
+ displayScrollbar: q,
625
+ scrollbarProps: T
626
+ } = ba(Y), B = h(() => {
627
+ var a, n, r, o;
628
+ const e = !!((a = t.scroll) != null && a.x || (n = t.scroll) != null && n.minWidth), l = !!((r = t.scroll) != null && r.y || (o = t.scroll) != null && o.maxHeight);
629
+ return {
630
+ x: e,
631
+ y: l
632
+ };
633
+ }), ie = p(), $ = p({}), {
634
+ componentRef: $t,
635
+ elementRef: zt
636
+ } = Ee("containerRef"), {
637
+ componentRef: De,
638
+ elementRef: J
639
+ } = Ee("containerRef"), {
640
+ componentRef: Mt,
641
+ elementRef: Pe
642
+ } = Ee("containerRef"), Fe = h(() => z.value ? J.value : zt.value), z = h(() => B.value.y || t.stickyHeader || te.value || B.value.x && b.value.length === 0), se = we(/* @__PURE__ */ new Map()), ce = p();
643
+ ne([Kt, se], ([e, l]) => {
644
+ if (e.length > 0) {
645
+ const a = [];
646
+ e.forEach((n) => {
647
+ const r = l.get(n);
648
+ r && a.push(r);
649
+ }), ce.value = a;
650
+ } else
651
+ ce.value = void 0;
652
+ });
653
+ const de = /* @__PURE__ */ new Map(), v = p([]), fe = p([]), {
654
+ resizingColumn: Wt,
655
+ columnWidth: D,
656
+ handleThMouseDown: Ot
657
+ } = da($, d);
658
+ ne([pt, ce, D], ([e, l]) => {
659
+ const a = Gl(l ?? e ?? [], de, D);
660
+ v.value = a.dataColumns, fe.value = a.groupColumns;
661
+ }, {
662
+ immediate: !0,
663
+ deep: !0
664
+ });
665
+ const me = h(() => ["tl", "top", "tr"].includes(t.pagePosition)), M = p(!1), W = p(!1), he = p(!1);
666
+ Ml(() => {
667
+ var n, r, o;
668
+ let e = !1, l = !1, a = !1;
669
+ ((n = t.rowSelection) != null && n.fixed || (r = t.expandable) != null && r.fixed || (o = t.draggable) != null && o.fixed) && (e = !0);
670
+ for (const c of v.value)
671
+ c.fixed === "left" ? (e = !0, a = !0) : c.fixed === "right" && (l = !0);
672
+ e !== M.value && (M.value = e), l !== W.value && (W.value = l), a !== he.value && (he.value = a);
673
+ });
674
+ const jt = h(() => {
675
+ for (const e of v.value)
676
+ if (e.ellipsis)
677
+ return !0;
678
+ return !1;
679
+ }), O = (e) => {
680
+ const l = {
681
+ type: e,
682
+ page: _.value,
683
+ pageSize: F.value,
684
+ sorter: j.value,
685
+ filters: P.value,
686
+ dragTarget: e === "drag" ? I.data : void 0
687
+ };
688
+ d("change", He.value, l, R.value);
689
+ }, Ke = (e, l) => {
690
+ Ht.value = {
691
+ ...P.value,
692
+ [e]: l
693
+ }, ge(), d("filterChange", e, l), O("filter");
694
+ }, Te = (e, l) => {
695
+ Vt.value = l ? {
696
+ field: e,
697
+ direction: l
698
+ } : void 0, ge(), d("sorterChange", e, l), O("sorter");
699
+ }, {
700
+ _filters: Ht,
701
+ computedFilters: P,
702
+ resetFilters: It,
703
+ clearFilters: _t
704
+ } = ma({
705
+ columns: v,
706
+ onFilterChange: Ke
707
+ }), {
708
+ _sorter: Vt,
709
+ computedSorter: j,
710
+ resetSorters: Nt,
711
+ clearSorters: Gt
712
+ } = ha({
713
+ columns: v,
714
+ onSorterChange: Te
715
+ }), $e = /* @__PURE__ */ new Set(), Ut = h(() => {
716
+ const e = [];
717
+ $e.clear();
718
+ const l = (a) => {
719
+ if (_l(a) && a.length > 0)
720
+ for (const n of a)
721
+ e.push(n[Ae.value]), n.disabled && $e.add(n[Ae.value]), n.children && l(n.children);
722
+ };
723
+ return l(t.data), e;
724
+ }), Yt = h(() => {
725
+ const e = [], l = (a) => {
726
+ for (const n of a)
727
+ e.push(n.key), n.children && l(n.children);
728
+ };
729
+ return l(b.value), e;
730
+ }), ze = h(() => {
731
+ const e = [], l = (a) => {
732
+ for (const n of a)
733
+ n.disabled || e.push(n.key), n.children && l(n.children);
734
+ };
735
+ return l(b.value), e;
736
+ }), {
737
+ selectedRowKeys: qt,
738
+ currentSelectedRowKeys: Me,
739
+ handleSelect: Jt,
740
+ handleSelectAllLeafs: Qt,
741
+ handleSelectAll: Xt,
742
+ select: Zt,
743
+ selectAll: el,
744
+ clearSelected: tl
745
+ } = Jl({
746
+ selectedKeys: wt,
747
+ defaultSelectedKeys: kt,
748
+ rowSelection: ue,
749
+ currentAllRowKeys: Yt,
750
+ currentAllEnabledRowKeys: ze,
751
+ emit: d
752
+ }), {
753
+ expandedRowKeys: We,
754
+ handleExpand: ll,
755
+ expand: al,
756
+ expandAll: nl
757
+ } = Ql({
758
+ expandedKeys: Rt,
759
+ defaultExpandedKeys: Et,
760
+ defaultExpandAllRows: Lt,
761
+ expandable: xt,
762
+ allRowKeys: Ut,
763
+ emit: d
764
+ }), ve = we({}), rl = (e, l) => {
765
+ e && (ve[l.key] = e);
766
+ }, ol = (e) => {
767
+ var l, a;
768
+ for (const n of Object.keys(P.value)) {
769
+ const r = P.value[n], o = de.get(n);
770
+ if (o && ((l = o.filterable) != null && l.filter) && r.length > 0) {
771
+ const c = (a = o.filterable) == null ? void 0 : a.filter(r, e.raw);
772
+ if (!c)
773
+ return c;
774
+ }
775
+ }
776
+ return !0;
777
+ }, {
778
+ dragType: H,
779
+ dragState: I,
780
+ handleDragStart: ul,
781
+ handleDragEnter: il,
782
+ handleDragover: sl,
783
+ handleDragEnd: cl,
784
+ handleDrop: dl
785
+ } = ca(Bt), Oe = h(() => {
786
+ const e = (l) => {
787
+ const a = [];
788
+ for (const n of l) {
789
+ const r = {
790
+ raw: n,
791
+ key: n[t.rowKey],
792
+ disabled: n.disabled,
793
+ expand: n.expand,
794
+ isLeaf: n.isLeaf
795
+ };
796
+ n.children ? (r.isLeaf = !1, r.children = e(n.children)) : t.loadMore && !n.isLeaf ? (r.isLeaf = !1, ve[r.key] && (r.children = e(ve[r.key]))) : r.isLeaf = !0, r.hasSubtree = !!(r.children ? !t.hideExpandButtonOnEmpty || r.children.length > 0 : t.loadMore && !r.isLeaf), a.push(r);
797
+ }
798
+ return a;
799
+ };
800
+ return e(t.data ?? []);
801
+ }), je = h(() => {
802
+ const e = (l) => l.reduce((a, n) => (ol(n) && a.push({
803
+ ...n,
804
+ children: n.children ? e(n.children) : void 0
805
+ }), a), []);
806
+ return Object.keys(P.value).length > 0 ? e(Oe.value) : Oe.value;
807
+ }), R = h(() => {
808
+ var l, a;
809
+ const e = Ul(je.value);
810
+ if (e.length > 0) {
811
+ if ((l = j.value) != null && l.field) {
812
+ const o = de.get(j.value.field);
813
+ if (o && ((a = o.sortable) == null ? void 0 : a.sorter) !== !0) {
814
+ const {
815
+ field: c,
816
+ direction: m
817
+ } = j.value;
818
+ e.sort((g, w) => {
819
+ var f;
820
+ const x = Le(g.raw, c), ae = Le(w.raw, c);
821
+ if ((f = o.sortable) != null && f.sorter && K(o.sortable.sorter))
822
+ return o.sortable.sorter(g.raw, w.raw, {
823
+ dataIndex: c,
824
+ direction: m
825
+ });
826
+ const N = x === ae ? 0 : x > ae ? 1 : -1;
827
+ return m === "descend" ? -N : N;
828
+ });
829
+ }
830
+ }
831
+ const {
832
+ sourcePath: n,
833
+ targetPath: r
834
+ } = I;
835
+ if (I.dragging && r.length && r.toString() !== n.toString() && n.length === r.length && n.slice(0, -1).toString() === r.slice(0, -1).toString()) {
836
+ let o = e;
837
+ for (let c = 0; c < n.length; c++) {
838
+ const m = n[c];
839
+ if (c >= n.length - 1) {
840
+ const w = o[m], x = r[c];
841
+ x > m ? (o.splice(x + 1, 0, w), o.splice(m, 1)) : (o.splice(x, 0, w), o.splice(m + 1, 1));
842
+ } else
843
+ o = o[m].children ?? [];
844
+ }
845
+ }
846
+ }
847
+ return e;
848
+ }), {
849
+ page: _,
850
+ pageSize: F,
851
+ handlePageChange: fl,
852
+ handlePageSizeChange: ml,
853
+ resetPage: ge,
854
+ clampPage: hl
855
+ } = Xl(t, d);
856
+ ne(() => [R.value.length, F.value], ([e]) => hl(e), {
857
+ immediate: !0
858
+ });
859
+ const {
860
+ mergedSize: vl
861
+ } = ga(Wl(t, "size"), {
862
+ defaultValue: "large"
863
+ }), gl = h(() => {
864
+ var e;
865
+ return ((e = ue.value) == null ? void 0 : e.onlyCurrent) ?? !1;
866
+ });
867
+ ne(_, (e, l) => {
868
+ e !== l && gl.value && tl();
869
+ });
870
+ const b = h(() => t.pagination && R.value.length > F.value ? R.value.slice((_.value - 1) * F.value, _.value * F.value) : R.value), He = h(() => Yl(b.value)), yl = () => v.value.reduce((e, l, a) => {
871
+ if (l.dataIndex)
872
+ if (a === 0)
873
+ yt(e, l.dataIndex, t.summaryText ?? Ft("table.summaryText"), {
874
+ addPath: !0
875
+ });
876
+ else {
877
+ let n = 0, r = !1;
878
+ b.value.forEach((o) => {
879
+ if (l.dataIndex) {
880
+ const c = Le(o.raw, l.dataIndex);
881
+ L(c) ? n += c : !Vl(c) && !Nl(c) && (r = !0);
882
+ }
883
+ }), yt(e, l.dataIndex, r ? "" : n, {
884
+ addPath: !0
885
+ });
886
+ }
887
+ return e;
888
+ }, {}), Ie = (e) => e && e.length > 0 ? e.map((l) => ({
889
+ raw: l,
890
+ key: l[t.rowKey]
891
+ })) : [], S = h(() => t.summary ? K(t.summary) ? Ie(t.summary({
892
+ columns: v.value,
893
+ data: He.value
894
+ })) : Ie([yl()]) : []), Q = p(0), X = p(!0), Z = p(!0), ye = () => {
895
+ let e = !0, l = !0;
896
+ const a = Fe.value;
897
+ a && (e = Q.value === 0, l = Math.ceil(Q.value + a.offsetWidth) >= a.scrollWidth), e !== X.value && (X.value = e), l !== Z.value && (Z.value = l);
898
+ }, bl = () => X.value && Z.value ? i.modifier("scroll-position-both") : X.value ? i.modifier("scroll-position-left") : Z.value ? i.modifier("scroll-position-right") : i.modifier("scroll-position-middle"), pl = () => {
899
+ const e = [];
900
+ return M.value && e.push(i.modifier("has-fixed-col-left")), W.value && e.push(i.modifier("has-fixed-col-right")), e;
901
+ }, _e = (e) => {
902
+ e.target.scrollLeft !== Q.value && (Q.value = e.target.scrollLeft), ye();
903
+ }, Ve = (e) => {
904
+ _e(e);
905
+ const {
906
+ scrollLeft: l
907
+ } = e.target;
908
+ Pe.value && (Pe.value.scrollLeft = l), ie.value && (ie.value.scrollLeft = l);
909
+ }, Ne = (e, l) => {
910
+ d("rowClick", e.raw, l);
911
+ }, xl = (e, l) => {
912
+ d("rowDblclick", e.raw, l);
913
+ }, Cl = (e, l) => {
914
+ d("rowContextmenu", e.raw, l);
915
+ }, Ge = (e, l, a) => {
916
+ d("cellClick", e.raw, l, a);
917
+ }, Ue = ft((e, l, a) => {
918
+ d("cellMouseEnter", e.raw, l, a);
919
+ }, 30), Ye = ft((e, l, a) => {
920
+ d("cellMouseLeave", e.raw, l, a);
921
+ }, 30), qe = (e, l, a) => {
922
+ d("cellDblclick", e.raw, l, a);
923
+ }, Je = (e, l, a) => {
924
+ d("cellContextmenu", e.raw, l, a);
925
+ }, Sl = (e, l) => {
926
+ d("headerClick", e, l);
927
+ }, y = h(() => {
928
+ var c, m;
929
+ const e = [], l = M.value || W.value;
930
+ let a, n, r;
931
+ ((c = t.draggable) == null ? void 0 : c.type) === "handle" && (a = {
932
+ name: "drag-handle",
933
+ title: t.draggable.title,
934
+ width: t.draggable.width,
935
+ fixed: t.draggable.fixed || l
936
+ }, e.push(a)), t.expandable && (n = {
937
+ name: "expand",
938
+ title: t.expandable.title,
939
+ width: t.expandable.width,
940
+ fixed: t.expandable.fixed || l
941
+ }, e.push(n)), t.rowSelection && (r = {
942
+ name: t.rowSelection.type === "radio" ? "selection-radio" : "selection-checkbox",
943
+ title: t.rowSelection.title,
944
+ width: t.rowSelection.width,
945
+ fixed: t.rowSelection.fixed || l
946
+ }, e.push(r)), !he.value && e.length > 0 && e[e.length - 1].fixed && (e[e.length - 1].isLastLeftFixed = !0);
947
+ const o = (m = t.components) == null ? void 0 : m.operations;
948
+ return K(o) ? o({
949
+ dragHandle: a,
950
+ expand: n,
951
+ selection: r
952
+ }) : e;
953
+ }), wl = h(() => {
954
+ var e, l, a, n;
955
+ if (B.value.x) {
956
+ const r = {
957
+ width: L((e = t.scroll) == null ? void 0 : e.x) ? `${(l = t.scroll) == null ? void 0 : l.x}px` : (a = t.scroll) == null ? void 0 : a.x
958
+ };
959
+ return (n = t.scroll) != null && n.minWidth && (r.minWidth = L(t.scroll.minWidth) ? `${t.scroll.minWidth}px` : t.scroll.minWidth), r;
960
+ }
961
+ }), ee = h(() => {
962
+ var e, l, a, n;
963
+ if (B.value.x && b.value.length > 0) {
964
+ const r = {
965
+ width: L((e = t.scroll) == null ? void 0 : e.x) ? `${(l = t.scroll) == null ? void 0 : l.x}px` : (a = t.scroll) == null ? void 0 : a.x
966
+ };
967
+ return (n = t.scroll) != null && n.minWidth && (r.minWidth = L(t.scroll.minWidth) ? `${t.scroll.minWidth}px` : t.scroll.minWidth), r;
968
+ }
969
+ });
970
+ Ol(fa, we({
971
+ loadMore: Ct,
972
+ addLazyLoadData: rl,
973
+ slots: s,
974
+ sorter: j,
975
+ filters: P,
976
+ filterIconAlignLeft: St,
977
+ resizingColumn: Wt,
978
+ checkStrictly: Tt,
979
+ currentAllEnabledRowKeys: ze,
980
+ currentSelectedRowKeys: Me,
981
+ addColumn: (e, l) => {
982
+ se.set(e, l);
983
+ },
984
+ removeColumn: (e) => {
985
+ se.delete(e);
986
+ },
987
+ onSelectAll: Xt,
988
+ onSelect: Jt,
989
+ onSelectAllLeafs: Qt,
990
+ onSorterChange: Te,
991
+ onFilterChange: Ke,
992
+ onThMouseDown: Ot
993
+ }));
994
+ const Qe = h(() => [i.block, i.modifier(`size-${vl.value}`), {
995
+ [i.modifier("border")]: A.value.wrapper,
996
+ [i.modifier("border-cell")]: A.value.cell,
997
+ [i.modifier("border-header-cell")]: !A.value.cell && A.value.headerCell,
998
+ [i.modifier("border-body-cell")]: !A.value.cell && A.value.bodyCell,
999
+ [i.modifier("stripe")]: t.stripe,
1000
+ [i.modifier("hover")]: t.hoverable,
1001
+ [i.modifier("dragging")]: I.dragging,
1002
+ [i.modifier("type-selection")]: !!t.rowSelection,
1003
+ [i.modifier("empty")]: t.data && b.value.length === 0,
1004
+ [i.modifier("layout-fixed")]: t.tableLayoutFixed || B.value.x || z.value || jt.value
1005
+ }]), kl = h(() => [i.modifier("pagination"), {
1006
+ [i.modifier("pagination-left")]: t.pagePosition === "tl" || t.pagePosition === "bl",
1007
+ [i.modifier("pagination-center")]: t.pagePosition === "top" || t.pagePosition === "bottom",
1008
+ [i.modifier("pagination-right")]: t.pagePosition === "tr" || t.pagePosition === "br",
1009
+ [i.modifier("pagination-top")]: me.value
1010
+ }]), Rl = h(() => {
1011
+ const e = pl();
1012
+ return B.value.x && e.push(bl()), z.value && e.push(i.modifier("scroll-y")), e;
1013
+ }), te = h(() => !!t.virtualListProps), be = p({}), Xe = () => {
1014
+ const e = {};
1015
+ for (const l of Object.keys($.value))
1016
+ e[l] = $.value[l].offsetWidth;
1017
+ be.value = e;
1018
+ }, V = p(!1), Ze = () => J.value ? J.value.offsetWidth > J.value.clientWidth : !1, El = () => {
1019
+ const e = Ze();
1020
+ V.value !== e && (V.value = e), ye(), Xe();
1021
+ };
1022
+ jl(() => {
1023
+ V.value = Ze(), Xe();
1024
+ });
1025
+ const Ll = h(() => Re(t.loading) ? t.loading : {
1026
+ loading: t.loading,
1027
+ dot: "color"
1028
+ }), et = () => u(U, {
1029
+ empty: !0
1030
+ }, {
1031
+ default: () => [u(oe, {
1032
+ colSpan: v.value.length + y.value.length
1033
+ }, {
1034
+ default: () => {
1035
+ var e;
1036
+ return [((e = s.empty) == null ? void 0 : e.call(s)) ?? u(aa, null, null)];
1037
+ }
1038
+ })]
1039
+ }), Al = (e) => {
1040
+ var l;
1041
+ if (e.expand)
1042
+ return K(e.expand) ? e.expand() : e.expand;
1043
+ if (s["expand-row"])
1044
+ return s["expand-row"]({
1045
+ record: e.raw
1046
+ });
1047
+ if ((l = t.expandable) != null && l.expandedRowRender)
1048
+ return t.expandable.expandedRowRender(e.raw);
1049
+ }, tt = h(() => [].concat(y.value, v.value)), Bl = h(() => t.spanAll ? tt.value : v.value), {
1050
+ tableSpan: lt,
1051
+ removedCells: at
1052
+ } = vt({
1053
+ spanMethod: At,
1054
+ data: b,
1055
+ columns: Bl
1056
+ }), {
1057
+ tableSpan: nt,
1058
+ removedCells: rt
1059
+ } = vt({
1060
+ spanMethod: Dt,
1061
+ data: S,
1062
+ columns: tt
1063
+ }), le = (e) => {
1064
+ if (!(!te.value || !e || !be.value[e]))
1065
+ return {
1066
+ width: `${be.value[e]}px`
1067
+ };
1068
+ }, Dl = (e, l) => u(U, {
1069
+ key: `table-summary-${l}`,
1070
+ class: [i.element("tr-summary"), K(t.rowClass) ? t.rowClass(e.raw, l) : t.rowClass],
1071
+ onClick: (a) => Ne(e, a)
1072
+ }, {
1073
+ default: () => [y.value.map((a, n) => {
1074
+ const r = `${l}-${n}-${e.key}`, [o, c] = nt.value[r] ?? [1, 1];
1075
+ if (rt.value.includes(r))
1076
+ return null;
1077
+ const m = le(a.name);
1078
+ return u(mt, {
1079
+ style: m,
1080
+ operationColumn: a,
1081
+ operations: y.value,
1082
+ record: e,
1083
+ rowSpan: o,
1084
+ colSpan: c,
1085
+ summary: !0
1086
+ }, null);
1087
+ }), v.value.map((a, n) => {
1088
+ const r = `${l}-${y.value.length + n}-${e.key}`, [o, c] = nt.value[r] ?? [1, 1];
1089
+ if (rt.value.includes(r))
1090
+ return null;
1091
+ const m = le(a.dataIndex);
1092
+ return u(oe, {
1093
+ key: `td-${r}`,
1094
+ style: m,
1095
+ rowIndex: l,
1096
+ record: e,
1097
+ column: a,
1098
+ operations: y.value,
1099
+ dataColumns: v.value,
1100
+ rowSpan: o,
1101
+ colSpan: c,
1102
+ summary: !0,
1103
+ onClick: (g) => Ge(e, a, g),
1104
+ onDblclick: (g) => qe(e, a, g),
1105
+ onMouseenter: (g) => Ue(e, a, g),
1106
+ onMouseleave: (g) => Ye(e, a, g),
1107
+ onContextmenu: (g) => Je(e, a, g)
1108
+ }, {
1109
+ td: s.td,
1110
+ cell: s["summary-cell"]
1111
+ });
1112
+ })],
1113
+ tr: s.tr
1114
+ }), ot = () => S.value && S.value.length > 0 ? u("tfoot", null, [S.value.map((e, l) => Dl(e, l))]) : null, ut = (e, l = !0) => {
1115
+ var r, o, c;
1116
+ const a = e.key, n = We.value.includes(a);
1117
+ return u("button", {
1118
+ type: "button",
1119
+ class: i.element("expand-btn"),
1120
+ onClick: (m) => {
1121
+ ll(a, e.raw), l && m.stopPropagation();
1122
+ }
1123
+ }, [((r = s["expand-icon"]) == null ? void 0 : r.call(s, {
1124
+ expanded: n,
1125
+ record: e.raw
1126
+ })) ?? ((c = (o = t.expandable) == null ? void 0 : o.icon) == null ? void 0 : c.call(o, n, e.raw)) ?? (n ? u(ea, null, null) : u(Zl, null, null))]);
1127
+ }, Pl = (e, {
1128
+ indentSize: l,
1129
+ indexPath: a,
1130
+ allowDrag: n,
1131
+ expandContent: r
1132
+ }) => {
1133
+ var o, c;
1134
+ if (e.hasSubtree)
1135
+ return ((o = e.children) == null ? void 0 : o.length) === 0 && Pt.value ? et() : (c = e.children) == null ? void 0 : c.map((m, g) => pe(m, g, {
1136
+ indentSize: l,
1137
+ indexPath: a,
1138
+ allowDrag: n
1139
+ }));
1140
+ if (r) {
1141
+ const m = Fe.value;
1142
+ return u(U, {
1143
+ key: `${e.key}-expand`,
1144
+ expand: !0
1145
+ }, {
1146
+ default: () => [u(oe, {
1147
+ isFixedExpand: M.value || W.value,
1148
+ containerWidth: m == null ? void 0 : m.clientWidth,
1149
+ colSpan: v.value.length + y.value.length
1150
+ }, xa(r) ? r : {
1151
+ default: () => [r]
1152
+ })]
1153
+ });
1154
+ }
1155
+ return null;
1156
+ }, pe = (e, l, {
1157
+ indentSize: a = 0,
1158
+ indexPath: n,
1159
+ allowDrag: r = !0
1160
+ } = {}) => {
1161
+ var N;
1162
+ const o = e.key, c = (n ?? []).concat(l), m = Al(e), g = We.value.includes(o), w = I.sourceKey === e.key, x = H.value ? {
1163
+ draggable: r,
1164
+ onDragstart: (f) => {
1165
+ r && ul(f, e.key, c, e.raw);
1166
+ },
1167
+ onDragend: (f) => {
1168
+ r && cl(f);
1169
+ }
1170
+ } : {}, ae = H.value ? {
1171
+ onDragenter: (f) => {
1172
+ r && il(f, c);
1173
+ },
1174
+ onDragover: (f) => {
1175
+ r && sl(f);
1176
+ },
1177
+ onDrop: (f) => {
1178
+ r && (O("drag"), dl(f));
1179
+ }
1180
+ } : {};
1181
+ return u(ke, null, [u(U, k({
1182
+ key: o,
1183
+ class: [{
1184
+ [i.element("tr-draggable")]: H.value === "row",
1185
+ [i.element("tr-drag")]: w
1186
+ }, K(t.rowClass) ? t.rowClass(e.raw, l) : t.rowClass],
1187
+ rowIndex: l,
1188
+ record: e,
1189
+ checked: t.rowSelection && ((N = qt.value) == null ? void 0 : N.includes(o)),
1190
+ onClick: (f) => Ne(e, f),
1191
+ onDblclick: (f) => xl(e, f),
1192
+ onContextmenu: (f) => Cl(e, f)
1193
+ }, H.value === "row" ? x : {}, ae), {
1194
+ default: () => [y.value.map((f, E) => {
1195
+ const G = `${l}-${E}-${e.key}`, [xe, Ce] = t.spanAll ? lt.value[G] ?? [1, 1] : [1, 1];
1196
+ if (t.spanAll && at.value.includes(G))
1197
+ return null;
1198
+ const Se = le(f.name);
1199
+ return u(mt, k({
1200
+ key: `operation-td-${E}`,
1201
+ style: Se,
1202
+ operationColumn: f,
1203
+ operations: y.value,
1204
+ record: e,
1205
+ hasExpand: !!m,
1206
+ selectedRowKeys: Me.value,
1207
+ rowSpan: xe,
1208
+ colSpan: Ce,
1209
+ renderExpandBtn: ut
1210
+ }, H.value === "handle" ? x : {}), {
1211
+ "drag-handle-icon": s["drag-handle-icon"]
1212
+ });
1213
+ }), v.value.map((f, E) => {
1214
+ const G = `${l}-${t.spanAll ? y.value.length + E : E}-${e.key}`, [xe, Ce] = lt.value[G] ?? [1, 1];
1215
+ if (at.value.includes(G))
1216
+ return null;
1217
+ const Se = E === 0 ? {
1218
+ showExpandBtn: e.hasSubtree,
1219
+ indentSize: e.hasSubtree ? a - 20 : a
1220
+ } : {}, Tl = le(f.dataIndex);
1221
+ return u(oe, k({
1222
+ key: `td-${E}`,
1223
+ style: Tl,
1224
+ rowIndex: l,
1225
+ record: e,
1226
+ column: f,
1227
+ operations: y.value,
1228
+ dataColumns: v.value,
1229
+ rowSpan: xe,
1230
+ renderExpandBtn: ut,
1231
+ colSpan: Ce
1232
+ }, Se, {
1233
+ onClick: (C) => Ge(e, f, C),
1234
+ onDblclick: (C) => qe(e, f, C),
1235
+ onMouseenter: (C) => Ue(e, f, C),
1236
+ onMouseleave: (C) => Ye(e, f, C),
1237
+ onContextmenu: (C) => Je(e, f, C)
1238
+ }), {
1239
+ td: s.td
1240
+ });
1241
+ })],
1242
+ tr: s.tr
1243
+ }), g && Pl(e, {
1244
+ indentSize: a + t.indentSize,
1245
+ indexPath: c,
1246
+ allowDrag: r && !w,
1247
+ expandContent: m
1248
+ })]);
1249
+ }, it = () => {
1250
+ const e = b.value.some((l) => !!l.hasSubtree);
1251
+ return u(ra, null, {
1252
+ default: () => [b.value.length > 0 ? b.value.map((l, a) => pe(l, a, {
1253
+ indentSize: e ? 20 : 0
1254
+ })) : et()],
1255
+ tbody: s.tbody
1256
+ });
1257
+ }, st = () => u(na, null, {
1258
+ default: () => [fe.value.map((e, l) => u(U, {
1259
+ key: `header-row-${l}`
1260
+ }, {
1261
+ default: () => [l === 0 && y.value.map((a, n) => {
1262
+ var r;
1263
+ return u(ua, {
1264
+ key: `operation-th-${n}`,
1265
+ ref: (o) => {
1266
+ o != null && o.$el && a.name && ($.value[a.name] = o.$el);
1267
+ },
1268
+ operationColumn: a,
1269
+ operations: y.value,
1270
+ selectAll: !!(a.name === "selection-checkbox" && ((r = t.rowSelection) != null && r.showCheckedAll)),
1271
+ rowSpan: fe.value.length
1272
+ }, null);
1273
+ }), e.map((a, n) => {
1274
+ const r = t.columnResizable && !!a.dataIndex && n < e.length - 1;
1275
+ return u(oa, {
1276
+ key: `th-${n}`,
1277
+ ref: (o) => {
1278
+ o != null && o.$el && a.dataIndex && ($.value[a.dataIndex] = o.$el);
1279
+ },
1280
+ column: a,
1281
+ operations: y.value,
1282
+ dataColumns: v.value,
1283
+ resizable: r,
1284
+ onClick: (o) => Sl(a, o)
1285
+ }, {
1286
+ th: s.th
1287
+ });
1288
+ })]
1289
+ }))],
1290
+ thead: s.thead
1291
+ }), Fl = () => {
1292
+ var e, l;
1293
+ if (z.value) {
1294
+ const a = L(t.stickyHeader) ? `${t.stickyHeader}px` : void 0, n = [(e = T.value) == null ? void 0 : e.outerClass];
1295
+ t.stickyHeader && n.push(i.element("header-sticky"));
1296
+ const r = {
1297
+ top: a,
1298
+ ...(l = T.value) == null ? void 0 : l.outerStyle
1299
+ }, o = q.value ? gt : "div";
1300
+ return u(ke, null, [t.showHeader && u(o, k({
1301
+ ref: Mt,
1302
+ class: [i.element("header"), {
1303
+ [i.element("header-sticky")]: t.stickyHeader && !q.value
1304
+ }],
1305
+ style: {
1306
+ overflowY: V.value ? "scroll" : void 0,
1307
+ top: q.value ? void 0 : a
1308
+ }
1309
+ }, Y.value ? {
1310
+ hide: b.value.length !== 0,
1311
+ disableVertical: !0,
1312
+ ...T.value,
1313
+ outerClass: n,
1314
+ outerStyle: r
1315
+ } : void 0), {
1316
+ default: () => [u("table", {
1317
+ class: i.element("element"),
1318
+ style: wl.value,
1319
+ cellpadding: 0,
1320
+ cellspacing: 0
1321
+ }, [u(re, {
1322
+ dataColumns: v.value,
1323
+ operations: y.value,
1324
+ columnWidth: D
1325
+ }, null), st()])]
1326
+ }), u(ht, {
1327
+ onResize: El
1328
+ }, {
1329
+ default: () => {
1330
+ var c;
1331
+ return [te.value && b.value.length ? u(ia, k({
1332
+ ref: De,
1333
+ class: i.element("body"),
1334
+ data: b.value,
1335
+ itemKey: "key",
1336
+ component: {
1337
+ list: "table",
1338
+ content: "tbody"
1339
+ },
1340
+ listAttrs: {
1341
+ class: i.element("element"),
1342
+ style: ee.value
1343
+ },
1344
+ paddingPosition: "list",
1345
+ height: "auto"
1346
+ }, t.virtualListProps, {
1347
+ onScroll: Ve
1348
+ }), {
1349
+ item: ({
1350
+ item: m,
1351
+ index: g
1352
+ }) => pe(m, g)
1353
+ }) : u(o, k({
1354
+ ref: De,
1355
+ class: i.element("body"),
1356
+ style: {
1357
+ maxHeight: (c = t.scroll) != null && c.y ? L(t.scroll.y) ? `${t.scroll.y}px` : t.scroll.y : "100%"
1358
+ }
1359
+ }, Y.value ? {
1360
+ outerStyle: {
1361
+ display: "flex",
1362
+ minHeight: "0"
1363
+ },
1364
+ ...T.value
1365
+ } : void 0, {
1366
+ onScroll: Ve
1367
+ }), {
1368
+ default: () => [u("table", {
1369
+ class: i.element("element"),
1370
+ style: ee.value,
1371
+ cellpadding: 0,
1372
+ cellspacing: 0
1373
+ }, [b.value.length !== 0 && u(re, {
1374
+ dataColumns: v.value,
1375
+ operations: y.value,
1376
+ columnWidth: D
1377
+ }, null), it()])]
1378
+ })];
1379
+ }
1380
+ }), S.value && S.value.length > 0 && u("div", {
1381
+ ref: ie,
1382
+ class: i.element("tfoot"),
1383
+ style: {
1384
+ overflowY: V.value ? "scroll" : "hidden"
1385
+ }
1386
+ }, [u("table", {
1387
+ class: i.element("element"),
1388
+ style: ee.value,
1389
+ cellpadding: 0,
1390
+ cellspacing: 0
1391
+ }, [u(re, {
1392
+ dataColumns: v.value,
1393
+ operations: y.value,
1394
+ columnWidth: D
1395
+ }, null), ot()])])]);
1396
+ }
1397
+ return u(ht, {
1398
+ onResize: () => ye()
1399
+ }, {
1400
+ default: () => [u("table", {
1401
+ class: i.element("element"),
1402
+ cellpadding: 0,
1403
+ cellspacing: 0,
1404
+ style: ee.value
1405
+ }, [u(re, {
1406
+ dataColumns: v.value,
1407
+ operations: y.value,
1408
+ columnWidth: D
1409
+ }, null), t.showHeader && st(), it(), S.value && S.value.length > 0 && ot()])]
1410
+ });
1411
+ }, ct = (e) => {
1412
+ var n;
1413
+ const l = (n = t.scroll) != null && n.maxHeight ? {
1414
+ maxHeight: t.scroll.maxHeight
1415
+ } : void 0, a = q.value ? gt : "div";
1416
+ return u(ke, null, [u("div", {
1417
+ class: [i.element("container"), Rl.value]
1418
+ }, [u(a, k({
1419
+ ref: $t,
1420
+ class: [i.element("content"), {
1421
+ [i.element("content-scroll-x")]: !z.value
1422
+ }],
1423
+ style: l
1424
+ }, Y.value ? {
1425
+ outerStyle: {
1426
+ height: "100%"
1427
+ },
1428
+ ...T.value
1429
+ } : void 0, {
1430
+ onScroll: _e
1431
+ }), {
1432
+ default: () => [e ? u("table", {
1433
+ class: i.element("element"),
1434
+ cellpadding: 0,
1435
+ cellspacing: 0
1436
+ }, [e()]) : Fl()]
1437
+ })]), s.footer && u("div", {
1438
+ class: i.element("footer")
1439
+ }, [s.footer()])]);
1440
+ }, dt = () => {
1441
+ var l, a;
1442
+ const e = Re(t.pagination) ? sa(t.pagination, ["current", "pageSize", "defaultCurrent", "defaultPageSize"]) : {};
1443
+ return u("div", {
1444
+ class: kl.value
1445
+ }, [(l = s["pagination-left"]) == null ? void 0 : l.call(s), u(la, k({
1446
+ total: je.value.length,
1447
+ current: _.value,
1448
+ pageSize: F.value,
1449
+ onChange: (n) => {
1450
+ fl(n), O("pagination");
1451
+ },
1452
+ onPageSizeChange: (n) => {
1453
+ ml(n), ge(), O("pagination");
1454
+ }
1455
+ }, e), null), (a = s["pagination-right"]) == null ? void 0 : a.call(s)]);
1456
+ }, Kl = h(() => {
1457
+ var e, l;
1458
+ if (Il((e = t.scroll) == null ? void 0 : e.y) && te.value)
1459
+ return {
1460
+ height: (l = t.scroll) == null ? void 0 : l.y
1461
+ };
1462
+ });
1463
+ return {
1464
+ render: () => {
1465
+ var a, n;
1466
+ const e = ((a = s.default) == null ? void 0 : a.call(s)) ?? [], l = e && ql(e).length > 0;
1467
+ return s.default && !l ? u("div", {
1468
+ class: Qe.value
1469
+ }, [ct(() => e)]) : (Be.value = ((n = s.columns) == null ? void 0 : n.call(s)) ?? e, u("div", {
1470
+ class: Qe.value,
1471
+ style: Kl.value
1472
+ }, [Be.value, u(ta, Ll.value, {
1473
+ default: () => [t.pagination !== !1 && (b.value.length > 0 || R.value.length > 0) && me.value && dt(), ct(), t.pagination !== !1 && (b.value.length > 0 || R.value.length > 0) && !me.value && dt()]
1474
+ })]));
1475
+ },
1476
+ selfExpand: al,
1477
+ selfExpandAll: nl,
1478
+ selfSelect: Zt,
1479
+ selfSelectAll: el,
1480
+ selfResetFilters: It,
1481
+ selfClearFilters: _t,
1482
+ selfResetSorters: Nt,
1483
+ selfClearSorters: Gt
1484
+ };
1485
+ },
1486
+ methods: {
1487
+ /**
1488
+ * @zh 设置全选状态
1489
+ * @en Set select all state
1490
+ * @param { boolean } checked
1491
+ * @public
1492
+ * @version 2.22.0
1493
+ */
1494
+ selectAll(t) {
1495
+ return this.selfSelectAll(t);
1496
+ },
1497
+ /**
1498
+ * @zh 设置行选择器状态
1499
+ * @en Set row selector state
1500
+ * @param { string | number | (string | number)[] } rowKey
1501
+ * @param { boolean } checked
1502
+ * @public
1503
+ * @version 2.31.0
1504
+ */
1505
+ select(t, d) {
1506
+ return this.selfSelect(t, d);
1507
+ },
1508
+ /**
1509
+ * @zh 设置全部展开状态
1510
+ * @en Set all expanded state
1511
+ * @param { boolean } checked
1512
+ * @public
1513
+ * @version 2.31.0
1514
+ */
1515
+ expandAll(t) {
1516
+ return this.selfExpandAll(t);
1517
+ },
1518
+ /**
1519
+ * @zh 设置展开状态
1520
+ * @en Set select all state
1521
+ * @param { string | number | (string | number)[] } rowKey
1522
+ * @param { boolean } checked
1523
+ * @public
1524
+ * @version 2.31.0
1525
+ */
1526
+ expand(t, d) {
1527
+ return this.selfExpand(t, d);
1528
+ },
1529
+ /**
1530
+ * @zh 重置列的筛选器
1531
+ * @en Reset the filter for columns
1532
+ * @param { string | string[] } dataIndex
1533
+ * @public
1534
+ * @version 2.31.0
1535
+ */
1536
+ resetFilters(t) {
1537
+ return this.selfResetFilters(t);
1538
+ },
1539
+ /**
1540
+ * @zh 清空列的筛选器
1541
+ * @en Clear the filter for columns
1542
+ * @param { string | string[] } dataIndex
1543
+ * @public
1544
+ * @version 2.31.0
1545
+ */
1546
+ clearFilters(t) {
1547
+ return this.selfClearFilters(t);
1548
+ },
1549
+ /**
1550
+ * @zh 重置列的排序
1551
+ * @en Reset the order of columns
1552
+ * @public
1553
+ * @version 2.31.0
1554
+ */
1555
+ resetSorters() {
1556
+ return this.selfResetSorters();
1557
+ },
1558
+ /**
1559
+ * @zh 清空列的排序
1560
+ * @en Clear the order of columns
1561
+ * @public
1562
+ * @version 2.31.0
1563
+ */
1564
+ clearSorters() {
1565
+ return this.selfClearSorters();
1566
+ }
1567
+ },
1568
+ render() {
1569
+ return this.render();
1570
+ }
1571
+ });
1572
+ export {
1573
+ un as default
1574
+ };