@yh-ui/components 1.0.30 → 1.0.37

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 (425) hide show
  1. package/dist/affix/index.d.ts +1 -202
  2. package/dist/affix/src/affix.d.vue.ts +66 -0
  3. package/dist/affix/src/affix.vue.d.ts +6 -55
  4. package/dist/ai-action-group/index.d.ts +1 -108
  5. package/dist/ai-action-group/src/ai-action-group.d.vue.ts +40 -0
  6. package/dist/ai-action-group/src/ai-action-group.vue.d.ts +4 -29
  7. package/dist/ai-agent-card/index.d.ts +1 -174
  8. package/dist/ai-agent-card/src/ai-agent-card.d.vue.ts +62 -0
  9. package/dist/ai-agent-card/src/ai-agent-card.vue.d.ts +7 -50
  10. package/dist/ai-artifacts/index.d.ts +1 -274
  11. package/dist/ai-artifacts/src/ai-artifacts.d.ts +1 -1
  12. package/dist/ai-artifacts/src/ai-artifacts.d.vue.ts +91 -0
  13. package/dist/ai-artifacts/src/ai-artifacts.vue.d.ts +8 -80
  14. package/dist/ai-attachments/index.d.ts +1 -357
  15. package/dist/ai-attachments/src/ai-attachments.d.vue.ts +107 -0
  16. package/dist/ai-attachments/src/ai-attachments.vue.d.ts +12 -123
  17. package/dist/ai-bubble/index.d.ts +54 -54
  18. package/dist/ai-bubble/src/ai-bubble.d.vue.ts +273 -0
  19. package/dist/ai-bubble/src/ai-bubble.vue.d.ts +11 -11
  20. package/dist/ai-bubble-list/index.d.ts +1 -150
  21. package/dist/ai-bubble-list/src/ai-bubble-list.d.vue.ts +93 -0
  22. package/dist/ai-bubble-list/src/ai-bubble-list.vue.d.ts +7 -7
  23. package/dist/ai-chat/index.d.ts +1 -162
  24. package/dist/ai-chat/src/ai-chat.d.vue.ts +63 -0
  25. package/dist/ai-chat/src/ai-chat.vue.d.ts +7 -44
  26. package/dist/ai-code-block/index.d.ts +1 -218
  27. package/dist/ai-code-block/src/ai-code-block.d.vue.ts +73 -0
  28. package/dist/ai-code-block/src/ai-code-block.vue.d.ts +3 -59
  29. package/dist/ai-code-editor/index.d.ts +8 -69
  30. package/dist/ai-code-editor/src/ai-code-editor.d.vue.ts +71 -0
  31. package/dist/ai-code-editor/src/ai-code-editor.vue.d.ts +8 -69
  32. package/dist/ai-code-runner/index.d.ts +1 -66
  33. package/dist/ai-code-runner/src/ai-code-runner.d.vue.ts +34 -0
  34. package/dist/ai-code-runner/src/ai-code-runner.vue.d.ts +3 -36
  35. package/dist/ai-conversations/index.d.ts +1 -214
  36. package/dist/ai-conversations/src/ai-conversations.d.vue.ts +75 -0
  37. package/dist/ai-conversations/src/ai-conversations.vue.d.ts +3 -55
  38. package/dist/ai-editor-sender/index.d.ts +1 -415
  39. package/dist/ai-editor-sender/src/ai-editor-sender.d.ts +1 -1
  40. package/dist/ai-editor-sender/src/ai-editor-sender.d.vue.ts +134 -0
  41. package/dist/ai-editor-sender/src/ai-editor-sender.vue.d.ts +7 -114
  42. package/dist/ai-file-card/index.d.ts +7 -209
  43. package/dist/ai-file-card/src/ai-file-card.d.vue.ts +78 -0
  44. package/dist/ai-file-card/src/ai-file-card.vue.d.ts +5 -62
  45. package/dist/ai-mention/index.d.ts +12 -352
  46. package/dist/ai-mention/src/ai-mention.d.vue.ts +115 -0
  47. package/dist/ai-mention/src/ai-mention.vue.d.ts +11 -107
  48. package/dist/ai-mermaid/index.d.ts +1 -222
  49. package/dist/ai-mermaid/src/ai-mermaid.d.vue.ts +76 -0
  50. package/dist/ai-mermaid/src/ai-mermaid.vue.d.ts +4 -61
  51. package/dist/ai-prompts/index.d.ts +1 -102
  52. package/dist/ai-prompts/src/ai-prompts.d.vue.ts +44 -0
  53. package/dist/ai-prompts/src/ai-prompts.vue.d.ts +6 -27
  54. package/dist/ai-provider/index.d.ts +1 -263
  55. package/dist/ai-provider/src/ai-provider.d.vue.ts +85 -0
  56. package/dist/ai-provider/src/ai-provider.vue.d.ts +5 -56
  57. package/dist/ai-sender/index.d.ts +1 -234
  58. package/dist/ai-sender/src/ai-sender.d.vue.ts +74 -0
  59. package/dist/ai-sender/src/ai-sender.vue.d.ts +8 -70
  60. package/dist/ai-sources/index.d.ts +1 -134
  61. package/dist/ai-sources/src/ai-sources.d.vue.ts +47 -0
  62. package/dist/ai-sources/src/ai-sources.vue.d.ts +3 -34
  63. package/dist/ai-thinking/index.d.ts +1 -150
  64. package/dist/ai-thinking/src/ai-thinking.d.vue.ts +53 -0
  65. package/dist/ai-thinking/src/ai-thinking.vue.d.ts +4 -40
  66. package/dist/ai-thought-chain/index.d.ts +10 -268
  67. package/dist/ai-thought-chain/src/ai-thought-chain.d.vue.ts +92 -0
  68. package/dist/ai-thought-chain/src/ai-thought-chain.vue.d.ts +9 -84
  69. package/dist/ai-voice-trigger/index.d.ts +1 -153
  70. package/dist/ai-voice-trigger/src/ai-voice-trigger.d.vue.ts +49 -0
  71. package/dist/ai-voice-trigger/src/ai-voice-trigger.vue.d.ts +4 -43
  72. package/dist/ai-welcome/index.d.ts +1 -129
  73. package/dist/ai-welcome/src/ai-welcome.d.vue.ts +51 -0
  74. package/dist/ai-welcome/src/ai-welcome.vue.d.ts +3 -32
  75. package/dist/alert/index.d.ts +1 -289
  76. package/dist/alert/src/alert.d.vue.ts +106 -0
  77. package/dist/alert/src/alert.vue.d.ts +10 -81
  78. package/dist/autocomplete/index.d.ts +1 -365
  79. package/dist/autocomplete/src/autocomplete.d.vue.ts +63 -0
  80. package/dist/autocomplete/src/autocomplete.vue.d.ts +20 -68
  81. package/dist/avatar/index.d.ts +17 -140
  82. package/dist/avatar/src/avatar.d.vue.ts +22 -0
  83. package/dist/avatar/src/avatar.vue.d.ts +5 -32
  84. package/dist/back-top/index.d.ts +1 -153
  85. package/dist/back-top/src/back-top.d.vue.ts +54 -0
  86. package/dist/back-top/src/back-top.vue.d.ts +5 -42
  87. package/dist/badge/index.d.ts +1 -151
  88. package/dist/badge/src/badge.d.vue.ts +22 -0
  89. package/dist/badge/src/badge.vue.d.ts +3 -34
  90. package/dist/breadcrumb/index.d.ts +2 -177
  91. package/dist/breadcrumb/src/breadcrumb-item.d.vue.ts +42 -0
  92. package/dist/breadcrumb/src/breadcrumb-item.vue.d.ts +1 -1
  93. package/dist/breadcrumb/src/breadcrumb.d.vue.ts +41 -0
  94. package/dist/button/index.d.ts +38 -242
  95. package/dist/button/src/button.d.vue.ts +44 -0
  96. package/dist/button/src/button.vue.d.ts +11 -56
  97. package/dist/calendar/index.d.ts +1 -429
  98. package/dist/calendar/src/calendar.d.vue.ts +137 -0
  99. package/dist/calendar/src/calendar.vue.d.ts +10 -130
  100. package/dist/card/index.d.ts +1 -155
  101. package/dist/card/src/card.d.vue.ts +26 -0
  102. package/dist/card/src/card.vue.d.ts +4 -35
  103. package/dist/carousel/index.d.ts +2 -443
  104. package/dist/carousel/src/carousel-item.d.vue.ts +18 -0
  105. package/dist/carousel/src/carousel.d.vue.ts +144 -0
  106. package/dist/carousel/src/carousel.vue.d.ts +16 -107
  107. package/dist/cascader/index.d.ts +108 -459
  108. package/dist/cascader/src/cascader-panel.d.vue.ts +39 -0
  109. package/dist/cascader/src/cascader-panel.vue.d.ts +8 -37
  110. package/dist/cascader/src/cascader.d.vue.ts +63 -0
  111. package/dist/cascader/src/cascader.vue.d.ts +22 -77
  112. package/dist/category-nav/index.d.ts +1 -219
  113. package/dist/category-nav/src/category-nav.d.vue.ts +86 -0
  114. package/dist/category-nav/src/category-nav.vue.d.ts +10 -61
  115. package/dist/checkbox/index.d.ts +50 -323
  116. package/dist/checkbox/src/checkbox-group.d.vue.ts +24 -0
  117. package/dist/checkbox/src/checkbox-group.vue.d.ts +6 -33
  118. package/dist/checkbox/src/checkbox.d.vue.ts +32 -0
  119. package/dist/checkbox/src/checkbox.vue +28 -12
  120. package/dist/checkbox/src/checkbox.vue.d.ts +8 -41
  121. package/dist/col/index.d.ts +1 -188
  122. package/dist/col/src/col.d.vue.ts +114 -0
  123. package/dist/col/src/col.vue.d.ts +4 -4
  124. package/dist/color-picker/index.d.ts +1 -89
  125. package/dist/color-picker/src/alpha-slider.d.vue.ts +10 -0
  126. package/dist/color-picker/src/alpha-slider.vue.d.ts +4 -13
  127. package/dist/color-picker/src/color-picker.d.vue.ts +60 -0
  128. package/dist/color-picker/src/color-picker.vue.d.ts +4 -45
  129. package/dist/color-picker/src/hue-slider.d.vue.ts +9 -0
  130. package/dist/color-picker/src/hue-slider.vue.d.ts +4 -13
  131. package/dist/color-picker/src/sv-panel.d.vue.ts +11 -0
  132. package/dist/color-picker/src/sv-panel.vue.d.ts +4 -13
  133. package/dist/config-provider/index.d.ts +2 -2
  134. package/dist/config-provider/src/config-provider.d.ts +2 -2
  135. package/dist/container/index.d.ts +5 -208
  136. package/dist/container/src/aside.d.vue.ts +15 -0
  137. package/dist/container/src/aside.vue +4 -1
  138. package/dist/container/src/aside.vue.d.ts +2 -23
  139. package/dist/container/src/container.d.vue.ts +13 -0
  140. package/dist/container/src/container.vue +4 -1
  141. package/dist/container/src/container.vue.d.ts +1 -10
  142. package/dist/container/src/footer.d.vue.ts +15 -0
  143. package/dist/container/src/footer.vue +4 -1
  144. package/dist/container/src/footer.vue.d.ts +2 -23
  145. package/dist/container/src/header.d.vue.ts +15 -0
  146. package/dist/container/src/header.vue +4 -1
  147. package/dist/container/src/header.vue.d.ts +2 -23
  148. package/dist/container/src/main.d.vue.ts +13 -0
  149. package/dist/container/src/main.vue +4 -1
  150. package/dist/container/src/main.vue.d.ts +1 -10
  151. package/dist/countdown/index.d.ts +1 -419
  152. package/dist/countdown/src/countdown.d.vue.ts +146 -0
  153. package/dist/countdown/src/countdown.vue.d.ts +16 -121
  154. package/dist/coupon-card/index.d.ts +1 -340
  155. package/dist/coupon-card/src/coupon-card.d.ts +2 -2
  156. package/dist/coupon-card/src/coupon-card.d.vue.ts +121 -0
  157. package/dist/coupon-card/src/coupon-card.vue.d.ts +15 -100
  158. package/dist/date-picker/index.d.ts +1 -604
  159. package/dist/date-picker/src/date-picker.d.vue.ts +372 -0
  160. package/dist/date-picker/src/date-picker.vue.d.ts +31 -31
  161. package/dist/date-picker/src/date-table.d.vue.ts +37 -0
  162. package/dist/date-picker/src/date-table.vue.d.ts +6 -16
  163. package/dist/date-picker/src/month-table.d.vue.ts +19 -0
  164. package/dist/date-picker/src/month-table.vue.d.ts +5 -14
  165. package/dist/date-picker/src/quarter-table.d.vue.ts +19 -0
  166. package/dist/date-picker/src/quarter-table.vue.d.ts +5 -14
  167. package/dist/date-picker/src/year-table.d.vue.ts +19 -0
  168. package/dist/date-picker/src/year-table.vue.d.ts +5 -14
  169. package/dist/dayjs-plugins.cjs +43 -18
  170. package/dist/dayjs-plugins.d.ts +7 -7
  171. package/dist/dayjs-plugins.mjs +14 -15
  172. package/dist/dayjs.cjs +3 -5
  173. package/dist/dayjs.d.ts +1 -2
  174. package/dist/dayjs.mjs +1 -2
  175. package/dist/descriptions/index.d.ts +2 -492
  176. package/dist/descriptions/src/description-item.d.vue.ts +99 -0
  177. package/dist/descriptions/src/description-item.vue.d.ts +5 -5
  178. package/dist/descriptions/src/descriptions.d.vue.ts +106 -0
  179. package/dist/descriptions/src/descriptions.vue +29 -12
  180. package/dist/descriptions/src/descriptions.vue.d.ts +4 -4
  181. package/dist/dialog/index.d.ts +2 -665
  182. package/dist/dialog/src/dialog.d.vue.ts +217 -0
  183. package/dist/dialog/src/dialog.vue.d.ts +22 -200
  184. package/dist/divider/index.d.ts +1 -113
  185. package/dist/divider/src/divider.d.vue.ts +69 -0
  186. package/dist/divider/src/divider.vue +8 -2
  187. package/dist/divider/src/divider.vue.d.ts +3 -3
  188. package/dist/drawer/index.d.ts +13 -391
  189. package/dist/drawer/src/drawer.d.vue.ts +141 -0
  190. package/dist/drawer/src/drawer.vue.d.ts +10 -120
  191. package/dist/dropdown/index.d.ts +3 -627
  192. package/dist/dropdown/src/dropdown-item.d.vue.ts +78 -0
  193. package/dist/dropdown/src/dropdown-item.vue +9 -2
  194. package/dist/dropdown/src/dropdown-item.vue.d.ts +2 -2
  195. package/dist/dropdown/src/dropdown-menu.d.vue.ts +24 -0
  196. package/dist/dropdown/src/dropdown-menu.vue +4 -1
  197. package/dist/dropdown/src/dropdown.d.vue.ts +158 -0
  198. package/dist/dropdown/src/dropdown.vue.d.ts +15 -132
  199. package/dist/empty/index.d.ts +1 -78
  200. package/dist/empty/src/empty.d.vue.ts +19 -0
  201. package/dist/empty/src/empty.vue +26 -9
  202. package/dist/empty/src/empty.vue.d.ts +2 -23
  203. package/dist/filter-bar/index.d.ts +1 -281
  204. package/dist/filter-bar/src/filter-bar.d.vue.ts +87 -0
  205. package/dist/filter-bar/src/filter-bar.vue.d.ts +9 -92
  206. package/dist/form/index.d.ts +3 -690
  207. package/dist/form/src/form-item.d.vue.ts +144 -0
  208. package/dist/form/src/form-item.vue.d.ts +7 -7
  209. package/dist/form/src/form-schema.d.vue.ts +116 -0
  210. package/dist/form/src/form-schema.vue.d.ts +30 -36
  211. package/dist/form/src/form.d.vue.ts +158 -0
  212. package/dist/form/src/form.vue.d.ts +5 -5
  213. package/dist/gantt-chart/index.d.ts +1 -305
  214. package/dist/gantt-chart/src/gantt-chart.d.vue.ts +51 -0
  215. package/dist/gantt-chart/src/gantt-chart.vue.d.ts +18 -63
  216. package/dist/grid/index.d.ts +2 -226
  217. package/dist/grid/src/grid-item.d.vue.ts +17 -0
  218. package/dist/grid/src/grid-item.vue +13 -10
  219. package/dist/grid/src/grid-item.vue.d.ts +2 -27
  220. package/dist/grid/src/grid.d.vue.ts +20 -0
  221. package/dist/grid/src/grid.vue +12 -6
  222. package/dist/grid/src/grid.vue.d.ts +3 -34
  223. package/dist/icon/index.d.ts +15 -15
  224. package/dist/icon/src/icon.d.vue.ts +87 -0
  225. package/dist/icon/src/icon.vue.d.ts +5 -5
  226. package/dist/image/index.d.ts +31 -82
  227. package/dist/image/src/image-viewer.d.vue.ts +68 -0
  228. package/dist/image/src/image-viewer.vue.d.ts +4 -55
  229. package/dist/image/src/image.d.vue.ts +178 -0
  230. package/dist/image/src/image.vue.d.ts +10 -10
  231. package/dist/image-magnifier/index.d.ts +1 -462
  232. package/dist/image-magnifier/src/image-magnifier.d.ts +2 -2
  233. package/dist/image-magnifier/src/image-magnifier.d.vue.ts +154 -0
  234. package/dist/image-magnifier/src/image-magnifier.vue.d.ts +13 -130
  235. package/dist/infinite-scroll/index.d.ts +1 -270
  236. package/dist/infinite-scroll/src/infinite-scroll.d.vue.ts +93 -0
  237. package/dist/infinite-scroll/src/infinite-scroll.vue.d.ts +6 -71
  238. package/dist/input/index.d.ts +70 -511
  239. package/dist/input/src/input.d.vue.ts +76 -0
  240. package/dist/input/src/input.vue.d.ts +28 -87
  241. package/dist/input-number/index.d.ts +45 -300
  242. package/dist/input-number/src/input-number.d.vue.ts +50 -0
  243. package/dist/input-number/src/input-number.vue.d.ts +17 -60
  244. package/dist/input-tag/index.d.ts +1 -433
  245. package/dist/input-tag/src/input-tag.d.vue.ts +71 -0
  246. package/dist/input-tag/src/input-tag.vue.d.ts +31 -86
  247. package/dist/loading/index.d.ts +1 -1
  248. package/dist/lucky-draw/index.d.ts +1 -203
  249. package/dist/lucky-draw/src/lucky-draw.d.ts +1 -1
  250. package/dist/lucky-draw/src/lucky-draw.d.vue.ts +74 -0
  251. package/dist/lucky-draw/src/lucky-draw.vue.d.ts +6 -55
  252. package/dist/marquee/index.d.ts +1 -305
  253. package/dist/marquee/src/marquee.d.vue.ts +106 -0
  254. package/dist/marquee/src/marquee.vue.d.ts +6 -80
  255. package/dist/mention/index.d.ts +90 -432
  256. package/dist/mention/src/mention.d.vue.ts +84 -0
  257. package/dist/mention/src/mention.vue.d.ts +36 -101
  258. package/dist/menu/index.d.ts +4 -890
  259. package/dist/menu/src/menu-item-group.d.vue.ts +26 -0
  260. package/dist/menu/src/menu-item.d.vue.ts +52 -0
  261. package/dist/menu/src/menu-item.vue +20 -7
  262. package/dist/menu/src/menu-item.vue.d.ts +1 -1
  263. package/dist/menu/src/menu-recursive-item.d.vue.ts +6 -0
  264. package/dist/menu/src/menu-recursive-item.vue.d.ts +1 -10
  265. package/dist/menu/src/menu.d.vue.ts +209 -0
  266. package/dist/menu/src/menu.vue.d.ts +14 -177
  267. package/dist/menu/src/sub-menu.d.vue.ts +87 -0
  268. package/dist/menu/src/sub-menu.vue.d.ts +1 -1
  269. package/dist/message/index.d.ts +1 -1
  270. package/dist/message/src/message.d.vue.ts +32 -0
  271. package/dist/message/src/message.vue.d.ts +7 -44
  272. package/dist/message-box/index.d.ts +1 -1
  273. package/dist/message-box/src/message-box.d.vue.ts +17 -0
  274. package/dist/message-box/src/message-box.vue.d.ts +2 -11
  275. package/dist/notification/index.d.ts +1 -1
  276. package/dist/notification/src/notification.d.vue.ts +30 -0
  277. package/dist/notification/src/notification.vue.d.ts +8 -37
  278. package/dist/pagination/index.d.ts +29 -29
  279. package/dist/pagination/src/pagination.d.vue.ts +149 -0
  280. package/dist/pagination/src/pagination.vue.d.ts +12 -12
  281. package/dist/popconfirm/index.d.ts +1 -433
  282. package/dist/popconfirm/src/popconfirm.d.vue.ts +148 -0
  283. package/dist/popconfirm/src/popconfirm.vue.d.ts +13 -122
  284. package/dist/popover/index.d.ts +1 -392
  285. package/dist/popover/src/popover.d.vue.ts +139 -0
  286. package/dist/popover/src/popover.vue.d.ts +11 -109
  287. package/dist/price/index.d.ts +1 -363
  288. package/dist/price/src/price.d.ts +3 -3
  289. package/dist/price/src/price.d.vue.ts +223 -0
  290. package/dist/price/src/price.vue.d.ts +12 -12
  291. package/dist/product-card/index.d.ts +1 -557
  292. package/dist/product-card/src/product-card.d.ts +3 -3
  293. package/dist/product-card/src/product-card.d.vue.ts +188 -0
  294. package/dist/product-card/src/product-card.vue.d.ts +15 -160
  295. package/dist/progress/index.d.ts +1 -321
  296. package/dist/progress/src/progress.d.vue.ts +199 -0
  297. package/dist/progress/src/progress.vue.d.ts +8 -8
  298. package/dist/radio/index.d.ts +51 -339
  299. package/dist/radio/src/radio-button.d.vue.ts +25 -0
  300. package/dist/radio/src/radio-button.vue.d.ts +6 -27
  301. package/dist/radio/src/radio-group.d.vue.ts +23 -0
  302. package/dist/radio/src/radio-group.vue.d.ts +6 -31
  303. package/dist/radio/src/radio.d.vue.ts +26 -0
  304. package/dist/radio/src/radio.vue +24 -5
  305. package/dist/radio/src/radio.vue.d.ts +6 -29
  306. package/dist/rate/index.d.ts +1 -313
  307. package/dist/rate/src/rate.d.vue.ts +109 -0
  308. package/dist/rate/src/rate.vue.d.ts +10 -89
  309. package/dist/result/index.d.ts +1 -73
  310. package/dist/result/src/result.d.vue.ts +23 -0
  311. package/dist/result/src/result.vue +11 -2
  312. package/dist/result/src/result.vue.d.ts +2 -23
  313. package/dist/row/index.d.ts +1 -98
  314. package/dist/row/src/row.d.ts +1 -1
  315. package/dist/row/src/row.d.vue.ts +60 -0
  316. package/dist/row/src/row.vue.d.ts +1 -1
  317. package/dist/sanitize.cjs +33 -23
  318. package/dist/sanitize.mjs +28 -20
  319. package/dist/scrollbar/index.d.ts +1 -192
  320. package/dist/scrollbar/src/scrollbar.d.vue.ts +67 -0
  321. package/dist/scrollbar/src/scrollbar.vue.d.ts +4 -46
  322. package/dist/scrollbar/src/thumb.d.vue.ts +16 -0
  323. package/dist/scrollbar/src/thumb.vue.d.ts +4 -31
  324. package/dist/select/index.d.ts +74 -464
  325. package/dist/select/src/option.d.vue.ts +15 -0
  326. package/dist/select/src/option.vue.d.ts +2 -23
  327. package/dist/select/src/select.d.vue.ts +68 -0
  328. package/dist/select/src/select.vue.d.ts +28 -95
  329. package/dist/skeleton/index.d.ts +2 -278
  330. package/dist/skeleton/src/skeleton-item.d.vue.ts +83 -0
  331. package/dist/skeleton/src/skeleton-item.vue.d.ts +2 -2
  332. package/dist/skeleton/src/skeleton.d.vue.ts +89 -0
  333. package/dist/skeleton/src/skeleton.vue.d.ts +2 -2
  334. package/dist/sku-selector/index.d.ts +1 -222
  335. package/dist/sku-selector/src/sku-selector.d.vue.ts +84 -0
  336. package/dist/sku-selector/src/sku-selector.vue.d.ts +9 -62
  337. package/dist/slider/index.d.ts +1 -471
  338. package/dist/slider/src/slider-button.d.vue.ts +43 -0
  339. package/dist/slider/src/slider-button.vue.d.ts +10 -41
  340. package/dist/slider/src/slider.d.vue.ts +164 -0
  341. package/dist/slider/src/slider.vue.d.ts +13 -129
  342. package/dist/smart-address/index.d.ts +1 -324
  343. package/dist/smart-address/src/smart-address.d.vue.ts +110 -0
  344. package/dist/smart-address/src/smart-address.vue.d.ts +8 -102
  345. package/dist/space/index.d.ts +1 -142
  346. package/dist/space/src/space.d.vue.ts +22 -0
  347. package/dist/space/src/space.vue +28 -15
  348. package/dist/space/src/space.vue.d.ts +3 -34
  349. package/dist/spin/index.d.ts +6 -161
  350. package/dist/spin/src/spin.d.vue.ts +66 -0
  351. package/dist/spin/src/spin.vue.d.ts +4 -47
  352. package/dist/steps/index.d.ts +2 -606
  353. package/dist/steps/src/step.d.vue.ts +105 -0
  354. package/dist/steps/src/step.vue.d.ts +4 -4
  355. package/dist/steps/src/steps.d.vue.ts +94 -0
  356. package/dist/steps/src/steps.vue +4 -1
  357. package/dist/steps/src/steps.vue.d.ts +9 -78
  358. package/dist/submit-bar/index.d.ts +1 -291
  359. package/dist/submit-bar/src/submit-bar.d.vue.ts +102 -0
  360. package/dist/submit-bar/src/submit-bar.vue.d.ts +6 -79
  361. package/dist/switch/index.d.ts +1 -372
  362. package/dist/switch/src/switch.d.vue.ts +133 -0
  363. package/dist/switch/src/switch.vue.d.ts +7 -98
  364. package/dist/table/index.d.ts +2 -1488
  365. package/dist/table/src/table-column.d.vue.ts +71 -0
  366. package/dist/table/src/table-column.vue.d.ts +12 -71
  367. package/dist/table/src/table.d.vue.ts +493 -0
  368. package/dist/table/src/table.vue.d.ts +25 -337
  369. package/dist/table/src/use-virtual-scroll.mjs +3 -1
  370. package/dist/tabs/index.d.ts +2 -583
  371. package/dist/tabs/src/tab-pane.d.vue.ts +77 -0
  372. package/dist/tabs/src/tab-pane.vue +11 -3
  373. package/dist/tabs/src/tab-pane.vue.d.ts +2 -2
  374. package/dist/tabs/src/tabs.d.vue.ts +110 -0
  375. package/dist/tabs/src/tabs.vue.d.ts +8 -98
  376. package/dist/tag/index.d.ts +1 -245
  377. package/dist/tag/src/tag.d.vue.ts +42 -0
  378. package/dist/tag/src/tag.vue.d.ts +14 -53
  379. package/dist/time-picker/index.d.ts +1 -619
  380. package/dist/time-picker/src/time-picker.d.vue.ts +67 -0
  381. package/dist/time-picker/src/time-picker.vue.d.ts +29 -102
  382. package/dist/time-picker/src/time-spinner.d.vue.ts +46 -0
  383. package/dist/time-picker/src/time-spinner.vue.d.ts +6 -45
  384. package/dist/time-select/index.d.ts +1 -379
  385. package/dist/time-select/src/time-select.d.vue.ts +51 -0
  386. package/dist/time-select/src/time-select.vue.d.ts +22 -67
  387. package/dist/tooltip/index.d.ts +15 -463
  388. package/dist/tooltip/src/tooltip.d.vue.ts +167 -0
  389. package/dist/tooltip/src/tooltip.vue.d.ts +13 -138
  390. package/dist/transfer/src/transfer-panel.d.vue.ts +45 -0
  391. package/dist/transfer/src/transfer-panel.vue.d.ts +12 -51
  392. package/dist/transfer/src/transfer.d.vue.ts +68 -0
  393. package/dist/transfer/src/transfer.vue.d.ts +15 -62
  394. package/dist/tree/index.d.ts +2 -632
  395. package/dist/tree/src/tree-node.d.vue.ts +18 -0
  396. package/dist/tree/src/tree-node.vue.d.ts +1 -10
  397. package/dist/tree/src/tree.d.vue.ts +228 -0
  398. package/dist/tree/src/tree.vue.d.ts +13 -161
  399. package/dist/tree-select/index.d.ts +1 -435
  400. package/dist/tree-select/src/tree-select.d.vue.ts +141 -0
  401. package/dist/tree-select/src/tree-select.vue.d.ts +19 -129
  402. package/dist/typography/index.d.ts +4 -612
  403. package/dist/typography/src/link.d.vue.ts +21 -0
  404. package/dist/typography/src/link.vue +13 -3
  405. package/dist/typography/src/link.vue.d.ts +5 -30
  406. package/dist/typography/src/paragraph.d.vue.ts +22 -0
  407. package/dist/typography/src/paragraph.vue.d.ts +3 -34
  408. package/dist/typography/src/text.d.vue.ts +29 -0
  409. package/dist/typography/src/text.vue +4 -1
  410. package/dist/typography/src/text.vue.d.ts +2 -39
  411. package/dist/typography/src/title.d.vue.ts +26 -0
  412. package/dist/typography/src/title.vue +4 -1
  413. package/dist/typography/src/title.vue.d.ts +2 -37
  414. package/dist/upload/index.d.ts +1 -391
  415. package/dist/upload/src/upload.d.vue.ts +134 -0
  416. package/dist/upload/src/upload.vue.d.ts +13 -109
  417. package/dist/waterfall/index.d.ts +1 -57
  418. package/dist/waterfall/src/waterfall.d.vue.ts +56 -0
  419. package/dist/waterfall/src/waterfall.vue.d.ts +4 -4
  420. package/dist/watermark/index.d.ts +1 -236
  421. package/dist/watermark/src/watermark.d.vue.ts +143 -0
  422. package/dist/watermark/src/watermark.vue.d.ts +6 -6
  423. package/package.json +8 -9
  424. package/dist/component.d.ts +0 -284
  425. package/dist/env.d.ts +0 -11
@@ -1,1493 +1,7 @@
1
1
  import Table from './src/table.vue';
2
2
  import TableColumn from './src/table-column.vue';
3
- export declare const YhTable: import("@yh-ui/utils").SFCWithInstall<{
4
- new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
5
- readonly data: {
6
- readonly type: import("vue").PropType<Record<string, unknown>[]>;
7
- readonly default: () => never[];
8
- };
9
- readonly columns: {
10
- readonly type: import("vue").PropType<import("./index.js").TableColumn[]>;
11
- readonly default: () => never[];
12
- };
13
- readonly rowKey: {
14
- readonly type: import("vue").PropType<import("./index.js").RowKey>;
15
- readonly default: "id";
16
- };
17
- readonly size: {
18
- readonly type: import("vue").PropType<import("./index.js").TableSize>;
19
- readonly default: "default";
20
- };
21
- readonly height: {
22
- readonly type: import("vue").PropType<number | string>;
23
- };
24
- readonly maxHeight: {
25
- readonly type: import("vue").PropType<number | string>;
26
- };
27
- readonly width: {
28
- readonly type: import("vue").PropType<number | string>;
29
- };
30
- readonly border: {
31
- readonly type: import("vue").PropType<boolean | "full" | "outer" | "inner" | "none">;
32
- readonly default: false;
33
- };
34
- readonly stripe: {
35
- readonly type: BooleanConstructor;
36
- readonly default: false;
37
- };
38
- readonly highlightCurrentRow: {
39
- readonly type: BooleanConstructor;
40
- readonly default: false;
41
- };
42
- readonly currentRowKey: {
43
- readonly type: import("vue").PropType<string | number>;
44
- };
45
- readonly showHeader: {
46
- readonly type: BooleanConstructor;
47
- readonly default: true;
48
- };
49
- readonly emptyText: {
50
- readonly type: StringConstructor;
51
- readonly default: "";
52
- };
53
- readonly fit: {
54
- readonly type: BooleanConstructor;
55
- readonly default: true;
56
- };
57
- readonly sortConfig: {
58
- readonly type: import("vue").PropType<import("./index.js").TableSortConfig>;
59
- };
60
- readonly filterConfig: {
61
- readonly type: import("vue").PropType<import("./index.js").TableFilterConfig>;
62
- };
63
- readonly pagination: {
64
- readonly type: import("vue").PropType<boolean | import("./index.js").TablePaginationConfig>;
65
- readonly default: false;
66
- };
67
- readonly selectionConfig: {
68
- readonly type: import("vue").PropType<import("./index.js").TableSelectionConfig>;
69
- };
70
- readonly expandConfig: {
71
- readonly type: import("vue").PropType<import("./index.js").TableExpandConfig>;
72
- };
73
- readonly treeConfig: {
74
- readonly type: import("vue").PropType<import("./index.js").TableTreeConfig>;
75
- };
76
- readonly virtualConfig: {
77
- readonly type: import("vue").PropType<import("./index.js").TableVirtualConfig>;
78
- };
79
- readonly dragConfig: {
80
- readonly type: import("vue").PropType<import("./index.js").TableDragConfig>;
81
- };
82
- readonly summaryConfig: {
83
- readonly type: import("vue").PropType<import("./index.js").TableSummaryConfig>;
84
- };
85
- readonly toolbarConfig: {
86
- readonly type: import("vue").PropType<import("./index.js").TableToolbarConfig>;
87
- };
88
- readonly emptyConfig: {
89
- readonly type: import("vue").PropType<import("./index.js").TableEmptyConfig>;
90
- };
91
- readonly loading: {
92
- readonly type: import("vue").PropType<boolean | import("./index.js").TableLoadingConfig>;
93
- readonly default: false;
94
- };
95
- readonly rowConfig: {
96
- readonly type: import("vue").PropType<import("./index.js").TableRowConfig>;
97
- };
98
- readonly headerConfig: {
99
- readonly type: import("vue").PropType<import("./index.js").TableHeaderConfig>;
100
- };
101
- readonly contextMenuConfig: {
102
- readonly type: import("vue").PropType<import("./index.js").TableContextMenuConfig>;
103
- };
104
- readonly tableLayout: {
105
- readonly type: import("vue").PropType<"auto" | "fixed">;
106
- readonly default: "fixed";
107
- };
108
- readonly tooltipEffect: {
109
- readonly type: import("vue").PropType<"dark" | "light">;
110
- readonly default: "dark";
111
- };
112
- readonly spanMethod: {
113
- readonly type: import("vue").PropType<(params: {
114
- row: Record<string, unknown>;
115
- column: import("./index.js").TableColumn;
116
- rowIndex: number;
117
- columnIndex: number;
118
- }) => {
119
- rowspan: number;
120
- colspan: number;
121
- } | [number, number] | void>;
122
- };
123
- readonly rowClassName: {
124
- readonly type: import("vue").PropType<string | ((params: {
125
- row: Record<string, unknown>;
126
- rowIndex: number;
127
- }) => string)>;
128
- };
129
- readonly rowStyle: {
130
- readonly type: import("vue").PropType<import("vue").CSSProperties | ((params: {
131
- row: Record<string, unknown>;
132
- rowIndex: number;
133
- }) => import("vue").CSSProperties)>;
134
- };
135
- readonly cellClassName: {
136
- readonly type: import("vue").PropType<string | ((params: {
137
- row: Record<string, unknown>;
138
- column: import("./index.js").TableColumn;
139
- rowIndex: number;
140
- columnIndex: number;
141
- }) => string)>;
142
- };
143
- readonly cellStyle: {
144
- readonly type: import("vue").PropType<import("vue").CSSProperties | ((params: {
145
- row: Record<string, unknown>;
146
- column: import("./index.js").TableColumn;
147
- rowIndex: number;
148
- columnIndex: number;
149
- }) => import("vue").CSSProperties)>;
150
- };
151
- readonly headerRowClassName: {
152
- readonly type: import("vue").PropType<string | ((params: {
153
- rowIndex: number;
154
- }) => string)>;
155
- };
156
- readonly headerRowStyle: {
157
- readonly type: import("vue").PropType<import("vue").CSSProperties | ((params: {
158
- rowIndex: number;
159
- }) => import("vue").CSSProperties)>;
160
- };
161
- readonly headerCellClassName: {
162
- readonly type: import("vue").PropType<string | ((params: {
163
- column: import("./index.js").TableColumn;
164
- columnIndex: number;
165
- }) => string)>;
166
- };
167
- readonly headerCellStyle: {
168
- readonly type: import("vue").PropType<import("vue").CSSProperties | ((params: {
169
- column: import("./index.js").TableColumn;
170
- columnIndex: number;
171
- }) => import("vue").CSSProperties)>;
172
- };
173
- readonly lazy: {
174
- readonly type: BooleanConstructor;
175
- readonly default: false;
176
- };
177
- readonly loadMethod: {
178
- readonly type: import("vue").PropType<(row: Record<string, unknown>) => Promise<Record<string, unknown>[]>>;
179
- };
180
- readonly resizable: {
181
- readonly type: BooleanConstructor;
182
- readonly default: false;
183
- };
184
- readonly showIndex: {
185
- readonly type: BooleanConstructor;
186
- readonly default: false;
187
- };
188
- readonly indexConfig: {
189
- readonly type: import("vue").PropType<{
190
- label?: string;
191
- width?: number | string;
192
- fixed?: import("./index.js").FixedPosition;
193
- method?: (rowIndex: number) => number | string;
194
- }>;
195
- };
196
- readonly autoHeight: {
197
- readonly type: BooleanConstructor;
198
- readonly default: false;
199
- };
200
- readonly keepScroll: {
201
- readonly type: BooleanConstructor;
202
- readonly default: false;
203
- };
204
- readonly syncScroll: {
205
- readonly type: BooleanConstructor;
206
- readonly default: true;
207
- };
208
- readonly scrollOptimize: {
209
- readonly type: BooleanConstructor;
210
- readonly default: true;
211
- };
212
- readonly themeOverrides: {
213
- readonly type: import("vue").PropType<import("@yh-ui/theme").ComponentThemeVars>;
214
- readonly default: undefined;
215
- };
216
- }>> & Readonly<{
217
- onSelect?: ((_selection: Record<string, unknown>[], _row: Record<string, unknown>) => any) | undefined;
218
- onScroll?: ((_params: {
219
- scrollTop: number;
220
- scrollLeft: number;
221
- isEnd: boolean;
222
- }) => any) | undefined;
223
- "onSelect-all"?: ((_selection: Record<string, unknown>[]) => any) | undefined;
224
- "onDrag-end"?: ((_params: {
225
- type: "row" | "column";
226
- oldIndex: number;
227
- newIndex: number;
228
- data: unknown[];
229
- }) => any) | undefined;
230
- "onExpand-change"?: ((_row: Record<string, unknown>, _expandedRows: Record<string, unknown>[]) => any) | undefined;
231
- "onCurrent-change"?: ((_currentRow: Record<string, unknown> | null, _oldRow: Record<string, unknown> | null) => any) | undefined;
232
- "onUpdate:data"?: ((_data: Record<string, unknown>[]) => any) | undefined;
233
- "onColumn-resize"?: ((_column: import("./index.js").TableColumn<Record<string, unknown>>, _width: number) => any) | undefined;
234
- "onSort-change"?: ((_params: {
235
- column: import("./index.js").TableColumn;
236
- prop: string;
237
- order: import("./index.js").SortOrder;
238
- }) => any) | undefined;
239
- "onFilter-change"?: ((_filters: Record<string, unknown[]>) => any) | undefined;
240
- "onPage-change"?: ((_params: {
241
- currentPage: number;
242
- pageSize: number;
243
- }) => any) | undefined;
244
- "onSelection-change"?: ((_selectedRows: Record<string, unknown>[], _selectedRowKeys: (string | number)[]) => any) | undefined;
245
- "onRow-click"?: ((_row: Record<string, unknown>, _column: import("./index.js").TableColumn<Record<string, unknown>>, _event: MouseEvent) => any) | undefined;
246
- "onRow-dblclick"?: ((_row: Record<string, unknown>, _column: import("./index.js").TableColumn<Record<string, unknown>>, _event: MouseEvent) => any) | undefined;
247
- "onRow-contextmenu"?: ((_row: Record<string, unknown>, _column: import("./index.js").TableColumn<Record<string, unknown>>, _event: MouseEvent) => any) | undefined;
248
- "onCell-click"?: ((_row: Record<string, unknown>, _column: import("./index.js").TableColumn<Record<string, unknown>>, _cell: HTMLElement, _event: MouseEvent) => any) | undefined;
249
- "onCell-dblclick"?: ((_row: Record<string, unknown>, _column: import("./index.js").TableColumn<Record<string, unknown>>, _cell: HTMLElement, _event: MouseEvent) => any) | undefined;
250
- "onHeader-click"?: ((_column: import("./index.js").TableColumn<Record<string, unknown>>, _event: MouseEvent) => any) | undefined;
251
- "onHeader-contextmenu"?: ((_column: import("./index.js").TableColumn<Record<string, unknown>>, _event: MouseEvent) => any) | undefined;
252
- "onColumn-visible-change"?: ((_columns: import("./index.js").TableColumn<Record<string, unknown>>[]) => any) | undefined;
253
- "onUpdate:currentRowKey"?: ((_key: string | number | undefined) => any) | undefined;
254
- }>, {
255
- getSelectionRows: () => Record<string, unknown>[];
256
- getSelectionRowKeys: () => Array<string | number>;
257
- toggleRowSelection: (row: Record<string, unknown>, selected?: boolean) => void;
258
- toggleAllSelection: () => void;
259
- clearSelection: () => void;
260
- setCurrentRow: (row: Record<string, unknown> | null) => void;
261
- toggleRowExpansion: (row: Record<string, unknown>, expanded?: boolean) => void;
262
- setExpandedRowKeys: (keys: Array<string | number>) => void;
263
- getExpandedRowKeys: () => Array<string | number>;
264
- sort: (prop: string, order: import("./index.js").SortOrder) => void;
265
- clearSort: () => void;
266
- filter: (prop: string, values: unknown[]) => void;
267
- clearFilter: (props?: string | string[]) => void;
268
- doLayout: () => void;
269
- refresh: () => void;
270
- scrollTo: (options: {
271
- left?: number;
272
- top?: number;
273
- row?: Record<string, unknown>;
274
- rowIndex?: number;
275
- column?: import("./index.js").TableColumn;
276
- columnIndex?: number;
277
- }) => void;
278
- getTableData: () => {
279
- fullData: Record<string, unknown>[];
280
- tableData: Record<string, unknown>[];
281
- };
282
- exportData: (config?: Record<string, unknown>) => Promise<string | void>;
283
- print: (config?: Record<string, unknown>) => Promise<void>;
284
- openImport: (config?: Record<string, unknown>) => Promise<Record<string, unknown>[]>;
285
- importFile: (file: File, config?: Record<string, unknown>) => Promise<Record<string, unknown>[]>;
286
- importData: (content: string | Record<string, unknown>[], config?: Record<string, unknown>) => Promise<Record<string, unknown>[]>;
287
- printMultiple: (tables: Array<{
288
- title?: string;
289
- data: Record<string, unknown>[];
290
- columns?: import("./index.js").TableColumn[];
291
- config?: Record<string, unknown>;
292
- }>, config?: Record<string, unknown>) => Promise<void>;
293
- printTemplate: (templateHtml: string, config?: Record<string, unknown>) => Promise<void>;
294
- toggleFullscreen: () => void;
295
- getColumns: () => import("./index.js").TableColumn[];
296
- setColumnVisible: (prop: string, visible: boolean) => void;
297
- resetColumns: () => void;
298
- insertRow: (row: Record<string, unknown>, index?: number) => void;
299
- removeRow: (row: Record<string, unknown> | Record<string, unknown>[]) => void;
300
- updateRow: (row: Record<string, unknown>, newRow: Record<string, unknown>) => void;
301
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
302
- select: (_selection: Record<string, unknown>[], _row: Record<string, unknown>) => void;
303
- scroll: (_params: {
304
- scrollTop: number;
305
- scrollLeft: number;
306
- isEnd: boolean;
307
- }) => void;
308
- "select-all": (_selection: Record<string, unknown>[]) => void;
309
- "drag-end": (_params: {
310
- type: "row" | "column";
311
- oldIndex: number;
312
- newIndex: number;
313
- data: unknown[];
314
- }) => void;
315
- "expand-change": (_row: Record<string, unknown>, _expandedRows: Record<string, unknown>[]) => void;
316
- "current-change": (_currentRow: Record<string, unknown> | null, _oldRow: Record<string, unknown> | null) => void;
317
- "update:data": (_data: Record<string, unknown>[]) => void;
318
- "column-resize": (_column: import("./index.js").TableColumn<Record<string, unknown>>, _width: number) => void;
319
- "sort-change": (_params: {
320
- column: import("./index.js").TableColumn;
321
- prop: string;
322
- order: import("./index.js").SortOrder;
323
- }) => void;
324
- "filter-change": (_filters: Record<string, unknown[]>) => void;
325
- "page-change": (_params: {
326
- currentPage: number;
327
- pageSize: number;
328
- }) => void;
329
- "selection-change": (_selectedRows: Record<string, unknown>[], _selectedRowKeys: (string | number)[]) => void;
330
- "row-click": (_row: Record<string, unknown>, _column: import("./index.js").TableColumn<Record<string, unknown>>, _event: MouseEvent) => void;
331
- "row-dblclick": (_row: Record<string, unknown>, _column: import("./index.js").TableColumn<Record<string, unknown>>, _event: MouseEvent) => void;
332
- "row-contextmenu": (_row: Record<string, unknown>, _column: import("./index.js").TableColumn<Record<string, unknown>>, _event: MouseEvent) => void;
333
- "cell-click": (_row: Record<string, unknown>, _column: import("./index.js").TableColumn<Record<string, unknown>>, _cell: HTMLElement, _event: MouseEvent) => void;
334
- "cell-dblclick": (_row: Record<string, unknown>, _column: import("./index.js").TableColumn<Record<string, unknown>>, _cell: HTMLElement, _event: MouseEvent) => void;
335
- "header-click": (_column: import("./index.js").TableColumn<Record<string, unknown>>, _event: MouseEvent) => void;
336
- "header-contextmenu": (_column: import("./index.js").TableColumn<Record<string, unknown>>, _event: MouseEvent) => void;
337
- "column-visible-change": (_columns: import("./index.js").TableColumn<Record<string, unknown>>[]) => void;
338
- "update:currentRowKey": (_key: string | number | undefined) => void;
339
- }, import("vue").PublicProps, {
340
- readonly data: Record<string, unknown>[];
341
- readonly size: import("./index.js").TableSize;
342
- readonly pagination: boolean | import("./index.js").TablePaginationConfig;
343
- readonly loading: boolean | import("./index.js").TableLoadingConfig;
344
- readonly emptyText: string;
345
- readonly themeOverrides: import("@yh-ui/theme").ComponentThemeVars;
346
- readonly tableLayout: "fixed" | "auto";
347
- readonly border: boolean | "none" | "full" | "inner" | "outer";
348
- readonly columns: import("./index.js").TableColumn<Record<string, unknown>>[];
349
- readonly lazy: boolean;
350
- readonly showHeader: boolean;
351
- readonly resizable: boolean;
352
- readonly fit: boolean;
353
- readonly rowKey: import("./index.js").RowKey;
354
- readonly stripe: boolean;
355
- readonly highlightCurrentRow: boolean;
356
- readonly tooltipEffect: "dark" | "light";
357
- readonly showIndex: boolean;
358
- readonly autoHeight: boolean;
359
- readonly keepScroll: boolean;
360
- readonly syncScroll: boolean;
361
- readonly scrollOptimize: boolean;
362
- }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
363
- P: {};
364
- B: {};
365
- D: {};
366
- C: {};
367
- M: {};
368
- Defaults: {};
369
- }, Readonly<import("vue").ExtractPropTypes<{
370
- readonly data: {
371
- readonly type: import("vue").PropType<Record<string, unknown>[]>;
372
- readonly default: () => never[];
373
- };
374
- readonly columns: {
375
- readonly type: import("vue").PropType<import("./index.js").TableColumn[]>;
376
- readonly default: () => never[];
377
- };
378
- readonly rowKey: {
379
- readonly type: import("vue").PropType<import("./index.js").RowKey>;
380
- readonly default: "id";
381
- };
382
- readonly size: {
383
- readonly type: import("vue").PropType<import("./index.js").TableSize>;
384
- readonly default: "default";
385
- };
386
- readonly height: {
387
- readonly type: import("vue").PropType<number | string>;
388
- };
389
- readonly maxHeight: {
390
- readonly type: import("vue").PropType<number | string>;
391
- };
392
- readonly width: {
393
- readonly type: import("vue").PropType<number | string>;
394
- };
395
- readonly border: {
396
- readonly type: import("vue").PropType<boolean | "full" | "outer" | "inner" | "none">;
397
- readonly default: false;
398
- };
399
- readonly stripe: {
400
- readonly type: BooleanConstructor;
401
- readonly default: false;
402
- };
403
- readonly highlightCurrentRow: {
404
- readonly type: BooleanConstructor;
405
- readonly default: false;
406
- };
407
- readonly currentRowKey: {
408
- readonly type: import("vue").PropType<string | number>;
409
- };
410
- readonly showHeader: {
411
- readonly type: BooleanConstructor;
412
- readonly default: true;
413
- };
414
- readonly emptyText: {
415
- readonly type: StringConstructor;
416
- readonly default: "";
417
- };
418
- readonly fit: {
419
- readonly type: BooleanConstructor;
420
- readonly default: true;
421
- };
422
- readonly sortConfig: {
423
- readonly type: import("vue").PropType<import("./index.js").TableSortConfig>;
424
- };
425
- readonly filterConfig: {
426
- readonly type: import("vue").PropType<import("./index.js").TableFilterConfig>;
427
- };
428
- readonly pagination: {
429
- readonly type: import("vue").PropType<boolean | import("./index.js").TablePaginationConfig>;
430
- readonly default: false;
431
- };
432
- readonly selectionConfig: {
433
- readonly type: import("vue").PropType<import("./index.js").TableSelectionConfig>;
434
- };
435
- readonly expandConfig: {
436
- readonly type: import("vue").PropType<import("./index.js").TableExpandConfig>;
437
- };
438
- readonly treeConfig: {
439
- readonly type: import("vue").PropType<import("./index.js").TableTreeConfig>;
440
- };
441
- readonly virtualConfig: {
442
- readonly type: import("vue").PropType<import("./index.js").TableVirtualConfig>;
443
- };
444
- readonly dragConfig: {
445
- readonly type: import("vue").PropType<import("./index.js").TableDragConfig>;
446
- };
447
- readonly summaryConfig: {
448
- readonly type: import("vue").PropType<import("./index.js").TableSummaryConfig>;
449
- };
450
- readonly toolbarConfig: {
451
- readonly type: import("vue").PropType<import("./index.js").TableToolbarConfig>;
452
- };
453
- readonly emptyConfig: {
454
- readonly type: import("vue").PropType<import("./index.js").TableEmptyConfig>;
455
- };
456
- readonly loading: {
457
- readonly type: import("vue").PropType<boolean | import("./index.js").TableLoadingConfig>;
458
- readonly default: false;
459
- };
460
- readonly rowConfig: {
461
- readonly type: import("vue").PropType<import("./index.js").TableRowConfig>;
462
- };
463
- readonly headerConfig: {
464
- readonly type: import("vue").PropType<import("./index.js").TableHeaderConfig>;
465
- };
466
- readonly contextMenuConfig: {
467
- readonly type: import("vue").PropType<import("./index.js").TableContextMenuConfig>;
468
- };
469
- readonly tableLayout: {
470
- readonly type: import("vue").PropType<"auto" | "fixed">;
471
- readonly default: "fixed";
472
- };
473
- readonly tooltipEffect: {
474
- readonly type: import("vue").PropType<"dark" | "light">;
475
- readonly default: "dark";
476
- };
477
- readonly spanMethod: {
478
- readonly type: import("vue").PropType<(params: {
479
- row: Record<string, unknown>;
480
- column: import("./index.js").TableColumn;
481
- rowIndex: number;
482
- columnIndex: number;
483
- }) => {
484
- rowspan: number;
485
- colspan: number;
486
- } | [number, number] | void>;
487
- };
488
- readonly rowClassName: {
489
- readonly type: import("vue").PropType<string | ((params: {
490
- row: Record<string, unknown>;
491
- rowIndex: number;
492
- }) => string)>;
493
- };
494
- readonly rowStyle: {
495
- readonly type: import("vue").PropType<import("vue").CSSProperties | ((params: {
496
- row: Record<string, unknown>;
497
- rowIndex: number;
498
- }) => import("vue").CSSProperties)>;
499
- };
500
- readonly cellClassName: {
501
- readonly type: import("vue").PropType<string | ((params: {
502
- row: Record<string, unknown>;
503
- column: import("./index.js").TableColumn;
504
- rowIndex: number;
505
- columnIndex: number;
506
- }) => string)>;
507
- };
508
- readonly cellStyle: {
509
- readonly type: import("vue").PropType<import("vue").CSSProperties | ((params: {
510
- row: Record<string, unknown>;
511
- column: import("./index.js").TableColumn;
512
- rowIndex: number;
513
- columnIndex: number;
514
- }) => import("vue").CSSProperties)>;
515
- };
516
- readonly headerRowClassName: {
517
- readonly type: import("vue").PropType<string | ((params: {
518
- rowIndex: number;
519
- }) => string)>;
520
- };
521
- readonly headerRowStyle: {
522
- readonly type: import("vue").PropType<import("vue").CSSProperties | ((params: {
523
- rowIndex: number;
524
- }) => import("vue").CSSProperties)>;
525
- };
526
- readonly headerCellClassName: {
527
- readonly type: import("vue").PropType<string | ((params: {
528
- column: import("./index.js").TableColumn;
529
- columnIndex: number;
530
- }) => string)>;
531
- };
532
- readonly headerCellStyle: {
533
- readonly type: import("vue").PropType<import("vue").CSSProperties | ((params: {
534
- column: import("./index.js").TableColumn;
535
- columnIndex: number;
536
- }) => import("vue").CSSProperties)>;
537
- };
538
- readonly lazy: {
539
- readonly type: BooleanConstructor;
540
- readonly default: false;
541
- };
542
- readonly loadMethod: {
543
- readonly type: import("vue").PropType<(row: Record<string, unknown>) => Promise<Record<string, unknown>[]>>;
544
- };
545
- readonly resizable: {
546
- readonly type: BooleanConstructor;
547
- readonly default: false;
548
- };
549
- readonly showIndex: {
550
- readonly type: BooleanConstructor;
551
- readonly default: false;
552
- };
553
- readonly indexConfig: {
554
- readonly type: import("vue").PropType<{
555
- label?: string;
556
- width?: number | string;
557
- fixed?: import("./index.js").FixedPosition;
558
- method?: (rowIndex: number) => number | string;
559
- }>;
560
- };
561
- readonly autoHeight: {
562
- readonly type: BooleanConstructor;
563
- readonly default: false;
564
- };
565
- readonly keepScroll: {
566
- readonly type: BooleanConstructor;
567
- readonly default: false;
568
- };
569
- readonly syncScroll: {
570
- readonly type: BooleanConstructor;
571
- readonly default: true;
572
- };
573
- readonly scrollOptimize: {
574
- readonly type: BooleanConstructor;
575
- readonly default: true;
576
- };
577
- readonly themeOverrides: {
578
- readonly type: import("vue").PropType<import("@yh-ui/theme").ComponentThemeVars>;
579
- readonly default: undefined;
580
- };
581
- }>> & Readonly<{
582
- onSelect?: ((_selection: Record<string, unknown>[], _row: Record<string, unknown>) => any) | undefined;
583
- onScroll?: ((_params: {
584
- scrollTop: number;
585
- scrollLeft: number;
586
- isEnd: boolean;
587
- }) => any) | undefined;
588
- "onSelect-all"?: ((_selection: Record<string, unknown>[]) => any) | undefined;
589
- "onDrag-end"?: ((_params: {
590
- type: "row" | "column";
591
- oldIndex: number;
592
- newIndex: number;
593
- data: unknown[];
594
- }) => any) | undefined;
595
- "onExpand-change"?: ((_row: Record<string, unknown>, _expandedRows: Record<string, unknown>[]) => any) | undefined;
596
- "onCurrent-change"?: ((_currentRow: Record<string, unknown> | null, _oldRow: Record<string, unknown> | null) => any) | undefined;
597
- "onUpdate:data"?: ((_data: Record<string, unknown>[]) => any) | undefined;
598
- "onColumn-resize"?: ((_column: import("./index.js").TableColumn<Record<string, unknown>>, _width: number) => any) | undefined;
599
- "onSort-change"?: ((_params: {
600
- column: import("./index.js").TableColumn;
601
- prop: string;
602
- order: import("./index.js").SortOrder;
603
- }) => any) | undefined;
604
- "onFilter-change"?: ((_filters: Record<string, unknown[]>) => any) | undefined;
605
- "onPage-change"?: ((_params: {
606
- currentPage: number;
607
- pageSize: number;
608
- }) => any) | undefined;
609
- "onSelection-change"?: ((_selectedRows: Record<string, unknown>[], _selectedRowKeys: (string | number)[]) => any) | undefined;
610
- "onRow-click"?: ((_row: Record<string, unknown>, _column: import("./index.js").TableColumn<Record<string, unknown>>, _event: MouseEvent) => any) | undefined;
611
- "onRow-dblclick"?: ((_row: Record<string, unknown>, _column: import("./index.js").TableColumn<Record<string, unknown>>, _event: MouseEvent) => any) | undefined;
612
- "onRow-contextmenu"?: ((_row: Record<string, unknown>, _column: import("./index.js").TableColumn<Record<string, unknown>>, _event: MouseEvent) => any) | undefined;
613
- "onCell-click"?: ((_row: Record<string, unknown>, _column: import("./index.js").TableColumn<Record<string, unknown>>, _cell: HTMLElement, _event: MouseEvent) => any) | undefined;
614
- "onCell-dblclick"?: ((_row: Record<string, unknown>, _column: import("./index.js").TableColumn<Record<string, unknown>>, _cell: HTMLElement, _event: MouseEvent) => any) | undefined;
615
- "onHeader-click"?: ((_column: import("./index.js").TableColumn<Record<string, unknown>>, _event: MouseEvent) => any) | undefined;
616
- "onHeader-contextmenu"?: ((_column: import("./index.js").TableColumn<Record<string, unknown>>, _event: MouseEvent) => any) | undefined;
617
- "onColumn-visible-change"?: ((_columns: import("./index.js").TableColumn<Record<string, unknown>>[]) => any) | undefined;
618
- "onUpdate:currentRowKey"?: ((_key: string | number | undefined) => any) | undefined;
619
- }>, {
620
- getSelectionRows: () => Record<string, unknown>[];
621
- getSelectionRowKeys: () => Array<string | number>;
622
- toggleRowSelection: (row: Record<string, unknown>, selected?: boolean) => void;
623
- toggleAllSelection: () => void;
624
- clearSelection: () => void;
625
- setCurrentRow: (row: Record<string, unknown> | null) => void;
626
- toggleRowExpansion: (row: Record<string, unknown>, expanded?: boolean) => void;
627
- setExpandedRowKeys: (keys: Array<string | number>) => void;
628
- getExpandedRowKeys: () => Array<string | number>;
629
- sort: (prop: string, order: import("./index.js").SortOrder) => void;
630
- clearSort: () => void;
631
- filter: (prop: string, values: unknown[]) => void;
632
- clearFilter: (props?: string | string[]) => void;
633
- doLayout: () => void;
634
- refresh: () => void;
635
- scrollTo: (options: {
636
- left?: number;
637
- top?: number;
638
- row?: Record<string, unknown>;
639
- rowIndex?: number;
640
- column?: import("./index.js").TableColumn;
641
- columnIndex?: number;
642
- }) => void;
643
- getTableData: () => {
644
- fullData: Record<string, unknown>[];
645
- tableData: Record<string, unknown>[];
646
- };
647
- exportData: (config?: Record<string, unknown>) => Promise<string | void>;
648
- print: (config?: Record<string, unknown>) => Promise<void>;
649
- openImport: (config?: Record<string, unknown>) => Promise<Record<string, unknown>[]>;
650
- importFile: (file: File, config?: Record<string, unknown>) => Promise<Record<string, unknown>[]>;
651
- importData: (content: string | Record<string, unknown>[], config?: Record<string, unknown>) => Promise<Record<string, unknown>[]>;
652
- printMultiple: (tables: Array<{
653
- title?: string;
654
- data: Record<string, unknown>[];
655
- columns?: import("./index.js").TableColumn[];
656
- config?: Record<string, unknown>;
657
- }>, config?: Record<string, unknown>) => Promise<void>;
658
- printTemplate: (templateHtml: string, config?: Record<string, unknown>) => Promise<void>;
659
- toggleFullscreen: () => void;
660
- getColumns: () => import("./index.js").TableColumn[];
661
- setColumnVisible: (prop: string, visible: boolean) => void;
662
- resetColumns: () => void;
663
- insertRow: (row: Record<string, unknown>, index?: number) => void;
664
- removeRow: (row: Record<string, unknown> | Record<string, unknown>[]) => void;
665
- updateRow: (row: Record<string, unknown>, newRow: Record<string, unknown>) => void;
666
- }, {}, {}, {}, {
667
- readonly data: Record<string, unknown>[];
668
- readonly size: import("./index.js").TableSize;
669
- readonly pagination: boolean | import("./index.js").TablePaginationConfig;
670
- readonly loading: boolean | import("./index.js").TableLoadingConfig;
671
- readonly emptyText: string;
672
- readonly themeOverrides: import("@yh-ui/theme").ComponentThemeVars;
673
- readonly tableLayout: "fixed" | "auto";
674
- readonly border: boolean | "none" | "full" | "inner" | "outer";
675
- readonly columns: import("./index.js").TableColumn<Record<string, unknown>>[];
676
- readonly lazy: boolean;
677
- readonly showHeader: boolean;
678
- readonly resizable: boolean;
679
- readonly fit: boolean;
680
- readonly rowKey: import("./index.js").RowKey;
681
- readonly stripe: boolean;
682
- readonly highlightCurrentRow: boolean;
683
- readonly tooltipEffect: "dark" | "light";
684
- readonly showIndex: boolean;
685
- readonly autoHeight: boolean;
686
- readonly keepScroll: boolean;
687
- readonly syncScroll: boolean;
688
- readonly scrollOptimize: boolean;
689
- }>;
690
- __isFragment?: never;
691
- __isTeleport?: never;
692
- __isSuspense?: never;
693
- } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
694
- readonly data: {
695
- readonly type: import("vue").PropType<Record<string, unknown>[]>;
696
- readonly default: () => never[];
697
- };
698
- readonly columns: {
699
- readonly type: import("vue").PropType<import("./index.js").TableColumn[]>;
700
- readonly default: () => never[];
701
- };
702
- readonly rowKey: {
703
- readonly type: import("vue").PropType<import("./index.js").RowKey>;
704
- readonly default: "id";
705
- };
706
- readonly size: {
707
- readonly type: import("vue").PropType<import("./index.js").TableSize>;
708
- readonly default: "default";
709
- };
710
- readonly height: {
711
- readonly type: import("vue").PropType<number | string>;
712
- };
713
- readonly maxHeight: {
714
- readonly type: import("vue").PropType<number | string>;
715
- };
716
- readonly width: {
717
- readonly type: import("vue").PropType<number | string>;
718
- };
719
- readonly border: {
720
- readonly type: import("vue").PropType<boolean | "full" | "outer" | "inner" | "none">;
721
- readonly default: false;
722
- };
723
- readonly stripe: {
724
- readonly type: BooleanConstructor;
725
- readonly default: false;
726
- };
727
- readonly highlightCurrentRow: {
728
- readonly type: BooleanConstructor;
729
- readonly default: false;
730
- };
731
- readonly currentRowKey: {
732
- readonly type: import("vue").PropType<string | number>;
733
- };
734
- readonly showHeader: {
735
- readonly type: BooleanConstructor;
736
- readonly default: true;
737
- };
738
- readonly emptyText: {
739
- readonly type: StringConstructor;
740
- readonly default: "";
741
- };
742
- readonly fit: {
743
- readonly type: BooleanConstructor;
744
- readonly default: true;
745
- };
746
- readonly sortConfig: {
747
- readonly type: import("vue").PropType<import("./index.js").TableSortConfig>;
748
- };
749
- readonly filterConfig: {
750
- readonly type: import("vue").PropType<import("./index.js").TableFilterConfig>;
751
- };
752
- readonly pagination: {
753
- readonly type: import("vue").PropType<boolean | import("./index.js").TablePaginationConfig>;
754
- readonly default: false;
755
- };
756
- readonly selectionConfig: {
757
- readonly type: import("vue").PropType<import("./index.js").TableSelectionConfig>;
758
- };
759
- readonly expandConfig: {
760
- readonly type: import("vue").PropType<import("./index.js").TableExpandConfig>;
761
- };
762
- readonly treeConfig: {
763
- readonly type: import("vue").PropType<import("./index.js").TableTreeConfig>;
764
- };
765
- readonly virtualConfig: {
766
- readonly type: import("vue").PropType<import("./index.js").TableVirtualConfig>;
767
- };
768
- readonly dragConfig: {
769
- readonly type: import("vue").PropType<import("./index.js").TableDragConfig>;
770
- };
771
- readonly summaryConfig: {
772
- readonly type: import("vue").PropType<import("./index.js").TableSummaryConfig>;
773
- };
774
- readonly toolbarConfig: {
775
- readonly type: import("vue").PropType<import("./index.js").TableToolbarConfig>;
776
- };
777
- readonly emptyConfig: {
778
- readonly type: import("vue").PropType<import("./index.js").TableEmptyConfig>;
779
- };
780
- readonly loading: {
781
- readonly type: import("vue").PropType<boolean | import("./index.js").TableLoadingConfig>;
782
- readonly default: false;
783
- };
784
- readonly rowConfig: {
785
- readonly type: import("vue").PropType<import("./index.js").TableRowConfig>;
786
- };
787
- readonly headerConfig: {
788
- readonly type: import("vue").PropType<import("./index.js").TableHeaderConfig>;
789
- };
790
- readonly contextMenuConfig: {
791
- readonly type: import("vue").PropType<import("./index.js").TableContextMenuConfig>;
792
- };
793
- readonly tableLayout: {
794
- readonly type: import("vue").PropType<"auto" | "fixed">;
795
- readonly default: "fixed";
796
- };
797
- readonly tooltipEffect: {
798
- readonly type: import("vue").PropType<"dark" | "light">;
799
- readonly default: "dark";
800
- };
801
- readonly spanMethod: {
802
- readonly type: import("vue").PropType<(params: {
803
- row: Record<string, unknown>;
804
- column: import("./index.js").TableColumn;
805
- rowIndex: number;
806
- columnIndex: number;
807
- }) => {
808
- rowspan: number;
809
- colspan: number;
810
- } | [number, number] | void>;
811
- };
812
- readonly rowClassName: {
813
- readonly type: import("vue").PropType<string | ((params: {
814
- row: Record<string, unknown>;
815
- rowIndex: number;
816
- }) => string)>;
817
- };
818
- readonly rowStyle: {
819
- readonly type: import("vue").PropType<import("vue").CSSProperties | ((params: {
820
- row: Record<string, unknown>;
821
- rowIndex: number;
822
- }) => import("vue").CSSProperties)>;
823
- };
824
- readonly cellClassName: {
825
- readonly type: import("vue").PropType<string | ((params: {
826
- row: Record<string, unknown>;
827
- column: import("./index.js").TableColumn;
828
- rowIndex: number;
829
- columnIndex: number;
830
- }) => string)>;
831
- };
832
- readonly cellStyle: {
833
- readonly type: import("vue").PropType<import("vue").CSSProperties | ((params: {
834
- row: Record<string, unknown>;
835
- column: import("./index.js").TableColumn;
836
- rowIndex: number;
837
- columnIndex: number;
838
- }) => import("vue").CSSProperties)>;
839
- };
840
- readonly headerRowClassName: {
841
- readonly type: import("vue").PropType<string | ((params: {
842
- rowIndex: number;
843
- }) => string)>;
844
- };
845
- readonly headerRowStyle: {
846
- readonly type: import("vue").PropType<import("vue").CSSProperties | ((params: {
847
- rowIndex: number;
848
- }) => import("vue").CSSProperties)>;
849
- };
850
- readonly headerCellClassName: {
851
- readonly type: import("vue").PropType<string | ((params: {
852
- column: import("./index.js").TableColumn;
853
- columnIndex: number;
854
- }) => string)>;
855
- };
856
- readonly headerCellStyle: {
857
- readonly type: import("vue").PropType<import("vue").CSSProperties | ((params: {
858
- column: import("./index.js").TableColumn;
859
- columnIndex: number;
860
- }) => import("vue").CSSProperties)>;
861
- };
862
- readonly lazy: {
863
- readonly type: BooleanConstructor;
864
- readonly default: false;
865
- };
866
- readonly loadMethod: {
867
- readonly type: import("vue").PropType<(row: Record<string, unknown>) => Promise<Record<string, unknown>[]>>;
868
- };
869
- readonly resizable: {
870
- readonly type: BooleanConstructor;
871
- readonly default: false;
872
- };
873
- readonly showIndex: {
874
- readonly type: BooleanConstructor;
875
- readonly default: false;
876
- };
877
- readonly indexConfig: {
878
- readonly type: import("vue").PropType<{
879
- label?: string;
880
- width?: number | string;
881
- fixed?: import("./index.js").FixedPosition;
882
- method?: (rowIndex: number) => number | string;
883
- }>;
884
- };
885
- readonly autoHeight: {
886
- readonly type: BooleanConstructor;
887
- readonly default: false;
888
- };
889
- readonly keepScroll: {
890
- readonly type: BooleanConstructor;
891
- readonly default: false;
892
- };
893
- readonly syncScroll: {
894
- readonly type: BooleanConstructor;
895
- readonly default: true;
896
- };
897
- readonly scrollOptimize: {
898
- readonly type: BooleanConstructor;
899
- readonly default: true;
900
- };
901
- readonly themeOverrides: {
902
- readonly type: import("vue").PropType<import("@yh-ui/theme").ComponentThemeVars>;
903
- readonly default: undefined;
904
- };
905
- }>> & Readonly<{
906
- onSelect?: ((_selection: Record<string, unknown>[], _row: Record<string, unknown>) => any) | undefined;
907
- onScroll?: ((_params: {
908
- scrollTop: number;
909
- scrollLeft: number;
910
- isEnd: boolean;
911
- }) => any) | undefined;
912
- "onSelect-all"?: ((_selection: Record<string, unknown>[]) => any) | undefined;
913
- "onDrag-end"?: ((_params: {
914
- type: "row" | "column";
915
- oldIndex: number;
916
- newIndex: number;
917
- data: unknown[];
918
- }) => any) | undefined;
919
- "onExpand-change"?: ((_row: Record<string, unknown>, _expandedRows: Record<string, unknown>[]) => any) | undefined;
920
- "onCurrent-change"?: ((_currentRow: Record<string, unknown> | null, _oldRow: Record<string, unknown> | null) => any) | undefined;
921
- "onUpdate:data"?: ((_data: Record<string, unknown>[]) => any) | undefined;
922
- "onColumn-resize"?: ((_column: import("./index.js").TableColumn<Record<string, unknown>>, _width: number) => any) | undefined;
923
- "onSort-change"?: ((_params: {
924
- column: import("./index.js").TableColumn;
925
- prop: string;
926
- order: import("./index.js").SortOrder;
927
- }) => any) | undefined;
928
- "onFilter-change"?: ((_filters: Record<string, unknown[]>) => any) | undefined;
929
- "onPage-change"?: ((_params: {
930
- currentPage: number;
931
- pageSize: number;
932
- }) => any) | undefined;
933
- "onSelection-change"?: ((_selectedRows: Record<string, unknown>[], _selectedRowKeys: (string | number)[]) => any) | undefined;
934
- "onRow-click"?: ((_row: Record<string, unknown>, _column: import("./index.js").TableColumn<Record<string, unknown>>, _event: MouseEvent) => any) | undefined;
935
- "onRow-dblclick"?: ((_row: Record<string, unknown>, _column: import("./index.js").TableColumn<Record<string, unknown>>, _event: MouseEvent) => any) | undefined;
936
- "onRow-contextmenu"?: ((_row: Record<string, unknown>, _column: import("./index.js").TableColumn<Record<string, unknown>>, _event: MouseEvent) => any) | undefined;
937
- "onCell-click"?: ((_row: Record<string, unknown>, _column: import("./index.js").TableColumn<Record<string, unknown>>, _cell: HTMLElement, _event: MouseEvent) => any) | undefined;
938
- "onCell-dblclick"?: ((_row: Record<string, unknown>, _column: import("./index.js").TableColumn<Record<string, unknown>>, _cell: HTMLElement, _event: MouseEvent) => any) | undefined;
939
- "onHeader-click"?: ((_column: import("./index.js").TableColumn<Record<string, unknown>>, _event: MouseEvent) => any) | undefined;
940
- "onHeader-contextmenu"?: ((_column: import("./index.js").TableColumn<Record<string, unknown>>, _event: MouseEvent) => any) | undefined;
941
- "onColumn-visible-change"?: ((_columns: import("./index.js").TableColumn<Record<string, unknown>>[]) => any) | undefined;
942
- "onUpdate:currentRowKey"?: ((_key: string | number | undefined) => any) | undefined;
943
- }>, {
944
- getSelectionRows: () => Record<string, unknown>[];
945
- getSelectionRowKeys: () => Array<string | number>;
946
- toggleRowSelection: (row: Record<string, unknown>, selected?: boolean) => void;
947
- toggleAllSelection: () => void;
948
- clearSelection: () => void;
949
- setCurrentRow: (row: Record<string, unknown> | null) => void;
950
- toggleRowExpansion: (row: Record<string, unknown>, expanded?: boolean) => void;
951
- setExpandedRowKeys: (keys: Array<string | number>) => void;
952
- getExpandedRowKeys: () => Array<string | number>;
953
- sort: (prop: string, order: import("./index.js").SortOrder) => void;
954
- clearSort: () => void;
955
- filter: (prop: string, values: unknown[]) => void;
956
- clearFilter: (props?: string | string[]) => void;
957
- doLayout: () => void;
958
- refresh: () => void;
959
- scrollTo: (options: {
960
- left?: number;
961
- top?: number;
962
- row?: Record<string, unknown>;
963
- rowIndex?: number;
964
- column?: import("./index.js").TableColumn;
965
- columnIndex?: number;
966
- }) => void;
967
- getTableData: () => {
968
- fullData: Record<string, unknown>[];
969
- tableData: Record<string, unknown>[];
970
- };
971
- exportData: (config?: Record<string, unknown>) => Promise<string | void>;
972
- print: (config?: Record<string, unknown>) => Promise<void>;
973
- openImport: (config?: Record<string, unknown>) => Promise<Record<string, unknown>[]>;
974
- importFile: (file: File, config?: Record<string, unknown>) => Promise<Record<string, unknown>[]>;
975
- importData: (content: string | Record<string, unknown>[], config?: Record<string, unknown>) => Promise<Record<string, unknown>[]>;
976
- printMultiple: (tables: Array<{
977
- title?: string;
978
- data: Record<string, unknown>[];
979
- columns?: import("./index.js").TableColumn[];
980
- config?: Record<string, unknown>;
981
- }>, config?: Record<string, unknown>) => Promise<void>;
982
- printTemplate: (templateHtml: string, config?: Record<string, unknown>) => Promise<void>;
983
- toggleFullscreen: () => void;
984
- getColumns: () => import("./index.js").TableColumn[];
985
- setColumnVisible: (prop: string, visible: boolean) => void;
986
- resetColumns: () => void;
987
- insertRow: (row: Record<string, unknown>, index?: number) => void;
988
- removeRow: (row: Record<string, unknown> | Record<string, unknown>[]) => void;
989
- updateRow: (row: Record<string, unknown>, newRow: Record<string, unknown>) => void;
990
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
991
- select: (_selection: Record<string, unknown>[], _row: Record<string, unknown>) => void;
992
- scroll: (_params: {
993
- scrollTop: number;
994
- scrollLeft: number;
995
- isEnd: boolean;
996
- }) => void;
997
- "select-all": (_selection: Record<string, unknown>[]) => void;
998
- "drag-end": (_params: {
999
- type: "row" | "column";
1000
- oldIndex: number;
1001
- newIndex: number;
1002
- data: unknown[];
1003
- }) => void;
1004
- "expand-change": (_row: Record<string, unknown>, _expandedRows: Record<string, unknown>[]) => void;
1005
- "current-change": (_currentRow: Record<string, unknown> | null, _oldRow: Record<string, unknown> | null) => void;
1006
- "update:data": (_data: Record<string, unknown>[]) => void;
1007
- "column-resize": (_column: import("./index.js").TableColumn<Record<string, unknown>>, _width: number) => void;
1008
- "sort-change": (_params: {
1009
- column: import("./index.js").TableColumn;
1010
- prop: string;
1011
- order: import("./index.js").SortOrder;
1012
- }) => void;
1013
- "filter-change": (_filters: Record<string, unknown[]>) => void;
1014
- "page-change": (_params: {
1015
- currentPage: number;
1016
- pageSize: number;
1017
- }) => void;
1018
- "selection-change": (_selectedRows: Record<string, unknown>[], _selectedRowKeys: (string | number)[]) => void;
1019
- "row-click": (_row: Record<string, unknown>, _column: import("./index.js").TableColumn<Record<string, unknown>>, _event: MouseEvent) => void;
1020
- "row-dblclick": (_row: Record<string, unknown>, _column: import("./index.js").TableColumn<Record<string, unknown>>, _event: MouseEvent) => void;
1021
- "row-contextmenu": (_row: Record<string, unknown>, _column: import("./index.js").TableColumn<Record<string, unknown>>, _event: MouseEvent) => void;
1022
- "cell-click": (_row: Record<string, unknown>, _column: import("./index.js").TableColumn<Record<string, unknown>>, _cell: HTMLElement, _event: MouseEvent) => void;
1023
- "cell-dblclick": (_row: Record<string, unknown>, _column: import("./index.js").TableColumn<Record<string, unknown>>, _cell: HTMLElement, _event: MouseEvent) => void;
1024
- "header-click": (_column: import("./index.js").TableColumn<Record<string, unknown>>, _event: MouseEvent) => void;
1025
- "header-contextmenu": (_column: import("./index.js").TableColumn<Record<string, unknown>>, _event: MouseEvent) => void;
1026
- "column-visible-change": (_columns: import("./index.js").TableColumn<Record<string, unknown>>[]) => void;
1027
- "update:currentRowKey": (_key: string | number | undefined) => void;
1028
- }, string, {
1029
- readonly data: Record<string, unknown>[];
1030
- readonly size: import("./index.js").TableSize;
1031
- readonly pagination: boolean | import("./index.js").TablePaginationConfig;
1032
- readonly loading: boolean | import("./index.js").TableLoadingConfig;
1033
- readonly emptyText: string;
1034
- readonly themeOverrides: import("@yh-ui/theme").ComponentThemeVars;
1035
- readonly tableLayout: "fixed" | "auto";
1036
- readonly border: boolean | "none" | "full" | "inner" | "outer";
1037
- readonly columns: import("./index.js").TableColumn<Record<string, unknown>>[];
1038
- readonly lazy: boolean;
1039
- readonly showHeader: boolean;
1040
- readonly resizable: boolean;
1041
- readonly fit: boolean;
1042
- readonly rowKey: import("./index.js").RowKey;
1043
- readonly stripe: boolean;
1044
- readonly highlightCurrentRow: boolean;
1045
- readonly tooltipEffect: "dark" | "light";
1046
- readonly showIndex: boolean;
1047
- readonly autoHeight: boolean;
1048
- readonly keepScroll: boolean;
1049
- readonly syncScroll: boolean;
1050
- readonly scrollOptimize: boolean;
1051
- }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
1052
- $slots: {
1053
- [x: string]: ((props: {
1054
- column: import("./index.js").TableColumn<Record<string, unknown>>;
1055
- columnIndex: number;
1056
- }) => any) | undefined;
1057
- } & {
1058
- [x: string]: ((props: {
1059
- column: import("./index.js").TableColumn<Record<string, unknown>>;
1060
- columnIndex: number;
1061
- }) => any) | undefined;
1062
- } & {
1063
- [x: string]: ((props: {
1064
- row: Record<string, unknown>;
1065
- column: import("./index.js").TableColumn<Record<string, unknown>>;
1066
- rowIndex: number;
1067
- cellValue: unknown;
1068
- }) => any) | undefined;
1069
- } & {
1070
- [x: `summary-${string}`]: ((props: {
1071
- column: import("./index.js").TableColumn<Record<string, unknown>>;
1072
- columnIndex: number;
1073
- data: Record<string, unknown>[];
1074
- }) => any) | undefined;
1075
- } & {
1076
- toolbar?: (props: {}) => any;
1077
- } & {
1078
- 'toolbar-left-prefix'?: (props: {}) => any;
1079
- } & {
1080
- 'toolbar-left'?: (props: {}) => any;
1081
- } & {
1082
- 'toolbar-left-suffix'?: (props: {}) => any;
1083
- } & {
1084
- 'toolbar-right-prefix'?: (props: {}) => any;
1085
- } & {
1086
- 'toolbar-right'?: (props: {}) => any;
1087
- } & {
1088
- 'toolbar-right-suffix'?: (props: {}) => any;
1089
- } & {
1090
- empty?: (props: {}) => any;
1091
- } & {
1092
- expand?: (props: {
1093
- row: Record<string, unknown>;
1094
- rowIndex: number;
1095
- }) => any;
1096
- } & {
1097
- summary?: (props: {}) => any;
1098
- } & {
1099
- loading?: (props: {}) => any;
1100
- } & {
1101
- default?: (props: {}) => any;
1102
- };
1103
- })> & {
1104
- TableColumn: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
1105
- label: {
1106
- type: import("vue").PropType<string>;
1107
- default: string;
1108
- };
1109
- filters: {
1110
- type: import("vue").PropType<{
1111
- text: string;
1112
- value: unknown;
1113
- }[]>;
1114
- default: () => never[];
1115
- };
1116
- fixed: {
1117
- type: import("vue").PropType<boolean | "left" | "right">;
1118
- default: boolean;
1119
- };
1120
- type: {
1121
- type: import("vue").PropType<"radio" | "expand" | "index" | "selection">;
1122
- default: undefined;
1123
- };
1124
- maxWidth: {
1125
- type: import("vue").PropType<string | number>;
1126
- default: undefined;
1127
- };
1128
- width: {
1129
- type: import("vue").PropType<string | number>;
1130
- default: string;
1131
- };
1132
- minWidth: {
1133
- type: import("vue").PropType<string | number>;
1134
- default: number;
1135
- };
1136
- visible: {
1137
- type: import("vue").PropType<boolean>;
1138
- default: boolean;
1139
- };
1140
- prop: {
1141
- type: import("vue").PropType<string>;
1142
- default: string;
1143
- };
1144
- align: {
1145
- type: import("vue").PropType<"center" | "left" | "right">;
1146
- default: string;
1147
- };
1148
- filterable: {
1149
- type: import("vue").PropType<boolean>;
1150
- default: boolean;
1151
- };
1152
- headerAlign: {
1153
- type: import("vue").PropType<"center" | "left" | "right">;
1154
- default: undefined;
1155
- };
1156
- resizable: {
1157
- type: import("vue").PropType<boolean>;
1158
- default: boolean;
1159
- };
1160
- className: {
1161
- type: import("vue").PropType<string>;
1162
- default: string;
1163
- };
1164
- filterMultiple: {
1165
- type: import("vue").PropType<boolean>;
1166
- default: boolean;
1167
- };
1168
- sortable: {
1169
- type: import("vue").PropType<boolean | "custom">;
1170
- default: boolean;
1171
- };
1172
- showOverflowTooltip: {
1173
- type: import("vue").PropType<boolean>;
1174
- default: boolean;
1175
- };
1176
- headerClassName: {
1177
- type: import("vue").PropType<string>;
1178
- default: string;
1179
- };
1180
- treeNode: {
1181
- type: import("vue").PropType<boolean>;
1182
- default: boolean;
1183
- };
1184
- columnKey: {
1185
- type: import("vue").PropType<string>;
1186
- default: string;
1187
- };
1188
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
1189
- label: {
1190
- type: import("vue").PropType<string>;
1191
- default: string;
1192
- };
1193
- filters: {
1194
- type: import("vue").PropType<{
1195
- text: string;
1196
- value: unknown;
1197
- }[]>;
1198
- default: () => never[];
1199
- };
1200
- fixed: {
1201
- type: import("vue").PropType<boolean | "left" | "right">;
1202
- default: boolean;
1203
- };
1204
- type: {
1205
- type: import("vue").PropType<"radio" | "expand" | "index" | "selection">;
1206
- default: undefined;
1207
- };
1208
- maxWidth: {
1209
- type: import("vue").PropType<string | number>;
1210
- default: undefined;
1211
- };
1212
- width: {
1213
- type: import("vue").PropType<string | number>;
1214
- default: string;
1215
- };
1216
- minWidth: {
1217
- type: import("vue").PropType<string | number>;
1218
- default: number;
1219
- };
1220
- visible: {
1221
- type: import("vue").PropType<boolean>;
1222
- default: boolean;
1223
- };
1224
- prop: {
1225
- type: import("vue").PropType<string>;
1226
- default: string;
1227
- };
1228
- align: {
1229
- type: import("vue").PropType<"center" | "left" | "right">;
1230
- default: string;
1231
- };
1232
- filterable: {
1233
- type: import("vue").PropType<boolean>;
1234
- default: boolean;
1235
- };
1236
- headerAlign: {
1237
- type: import("vue").PropType<"center" | "left" | "right">;
1238
- default: undefined;
1239
- };
1240
- resizable: {
1241
- type: import("vue").PropType<boolean>;
1242
- default: boolean;
1243
- };
1244
- className: {
1245
- type: import("vue").PropType<string>;
1246
- default: string;
1247
- };
1248
- filterMultiple: {
1249
- type: import("vue").PropType<boolean>;
1250
- default: boolean;
1251
- };
1252
- sortable: {
1253
- type: import("vue").PropType<boolean | "custom">;
1254
- default: boolean;
1255
- };
1256
- showOverflowTooltip: {
1257
- type: import("vue").PropType<boolean>;
1258
- default: boolean;
1259
- };
1260
- headerClassName: {
1261
- type: import("vue").PropType<string>;
1262
- default: string;
1263
- };
1264
- treeNode: {
1265
- type: import("vue").PropType<boolean>;
1266
- default: boolean;
1267
- };
1268
- columnKey: {
1269
- type: import("vue").PropType<string>;
1270
- default: string;
1271
- };
1272
- }>> & Readonly<{}>, {
1273
- label: string;
1274
- filters: Array<{
1275
- text: string;
1276
- value: unknown;
1277
- }>;
1278
- fixed: "left" | "right" | boolean;
1279
- type: "selection" | "index" | "expand" | "radio";
1280
- maxWidth: number | string;
1281
- width: number | string;
1282
- minWidth: number | string;
1283
- visible: boolean;
1284
- prop: string;
1285
- align: "left" | "center" | "right";
1286
- filterable: boolean;
1287
- headerAlign: "left" | "center" | "right";
1288
- resizable: boolean;
1289
- className: string;
1290
- filterMultiple: boolean;
1291
- sortable: boolean | "custom";
1292
- showOverflowTooltip: boolean;
1293
- headerClassName: string;
1294
- treeNode: boolean;
1295
- columnKey: string;
1296
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1297
- };
1298
- export declare const YhTableColumn: import("@yh-ui/utils").SFCWithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
1299
- label: {
1300
- type: import("vue").PropType<string>;
1301
- default: string;
1302
- };
1303
- filters: {
1304
- type: import("vue").PropType<{
1305
- text: string;
1306
- value: unknown;
1307
- }[]>;
1308
- default: () => never[];
1309
- };
1310
- fixed: {
1311
- type: import("vue").PropType<boolean | "left" | "right">;
1312
- default: boolean;
1313
- };
1314
- type: {
1315
- type: import("vue").PropType<"radio" | "expand" | "index" | "selection">;
1316
- default: undefined;
1317
- };
1318
- maxWidth: {
1319
- type: import("vue").PropType<string | number>;
1320
- default: undefined;
1321
- };
1322
- width: {
1323
- type: import("vue").PropType<string | number>;
1324
- default: string;
1325
- };
1326
- minWidth: {
1327
- type: import("vue").PropType<string | number>;
1328
- default: number;
1329
- };
1330
- visible: {
1331
- type: import("vue").PropType<boolean>;
1332
- default: boolean;
1333
- };
1334
- prop: {
1335
- type: import("vue").PropType<string>;
1336
- default: string;
1337
- };
1338
- align: {
1339
- type: import("vue").PropType<"center" | "left" | "right">;
1340
- default: string;
1341
- };
1342
- filterable: {
1343
- type: import("vue").PropType<boolean>;
1344
- default: boolean;
1345
- };
1346
- headerAlign: {
1347
- type: import("vue").PropType<"center" | "left" | "right">;
1348
- default: undefined;
1349
- };
1350
- resizable: {
1351
- type: import("vue").PropType<boolean>;
1352
- default: boolean;
1353
- };
1354
- className: {
1355
- type: import("vue").PropType<string>;
1356
- default: string;
1357
- };
1358
- filterMultiple: {
1359
- type: import("vue").PropType<boolean>;
1360
- default: boolean;
1361
- };
1362
- sortable: {
1363
- type: import("vue").PropType<boolean | "custom">;
1364
- default: boolean;
1365
- };
1366
- showOverflowTooltip: {
1367
- type: import("vue").PropType<boolean>;
1368
- default: boolean;
1369
- };
1370
- headerClassName: {
1371
- type: import("vue").PropType<string>;
1372
- default: string;
1373
- };
1374
- treeNode: {
1375
- type: import("vue").PropType<boolean>;
1376
- default: boolean;
1377
- };
1378
- columnKey: {
1379
- type: import("vue").PropType<string>;
1380
- default: string;
1381
- };
1382
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
1383
- label: {
1384
- type: import("vue").PropType<string>;
1385
- default: string;
1386
- };
1387
- filters: {
1388
- type: import("vue").PropType<{
1389
- text: string;
1390
- value: unknown;
1391
- }[]>;
1392
- default: () => never[];
1393
- };
1394
- fixed: {
1395
- type: import("vue").PropType<boolean | "left" | "right">;
1396
- default: boolean;
1397
- };
1398
- type: {
1399
- type: import("vue").PropType<"radio" | "expand" | "index" | "selection">;
1400
- default: undefined;
1401
- };
1402
- maxWidth: {
1403
- type: import("vue").PropType<string | number>;
1404
- default: undefined;
1405
- };
1406
- width: {
1407
- type: import("vue").PropType<string | number>;
1408
- default: string;
1409
- };
1410
- minWidth: {
1411
- type: import("vue").PropType<string | number>;
1412
- default: number;
1413
- };
1414
- visible: {
1415
- type: import("vue").PropType<boolean>;
1416
- default: boolean;
1417
- };
1418
- prop: {
1419
- type: import("vue").PropType<string>;
1420
- default: string;
1421
- };
1422
- align: {
1423
- type: import("vue").PropType<"center" | "left" | "right">;
1424
- default: string;
1425
- };
1426
- filterable: {
1427
- type: import("vue").PropType<boolean>;
1428
- default: boolean;
1429
- };
1430
- headerAlign: {
1431
- type: import("vue").PropType<"center" | "left" | "right">;
1432
- default: undefined;
1433
- };
1434
- resizable: {
1435
- type: import("vue").PropType<boolean>;
1436
- default: boolean;
1437
- };
1438
- className: {
1439
- type: import("vue").PropType<string>;
1440
- default: string;
1441
- };
1442
- filterMultiple: {
1443
- type: import("vue").PropType<boolean>;
1444
- default: boolean;
1445
- };
1446
- sortable: {
1447
- type: import("vue").PropType<boolean | "custom">;
1448
- default: boolean;
1449
- };
1450
- showOverflowTooltip: {
1451
- type: import("vue").PropType<boolean>;
1452
- default: boolean;
1453
- };
1454
- headerClassName: {
1455
- type: import("vue").PropType<string>;
1456
- default: string;
1457
- };
1458
- treeNode: {
1459
- type: import("vue").PropType<boolean>;
1460
- default: boolean;
1461
- };
1462
- columnKey: {
1463
- type: import("vue").PropType<string>;
1464
- default: string;
1465
- };
1466
- }>> & Readonly<{}>, {
1467
- label: string;
1468
- filters: Array<{
1469
- text: string;
1470
- value: unknown;
1471
- }>;
1472
- fixed: "left" | "right" | boolean;
1473
- type: "selection" | "index" | "expand" | "radio";
1474
- maxWidth: number | string;
1475
- width: number | string;
1476
- minWidth: number | string;
1477
- visible: boolean;
1478
- prop: string;
1479
- align: "left" | "center" | "right";
1480
- filterable: boolean;
1481
- headerAlign: "left" | "center" | "right";
1482
- resizable: boolean;
1483
- className: string;
1484
- filterMultiple: boolean;
1485
- sortable: boolean | "custom";
1486
- showOverflowTooltip: boolean;
1487
- headerClassName: string;
1488
- treeNode: boolean;
1489
- columnKey: string;
1490
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
3
+ export declare const YhTable: any;
4
+ export declare const YhTableColumn: any;
1491
5
  export default YhTable;
1492
6
  export * from './src/table';
1493
7
  export type TableInstance = InstanceType<typeof Table>;