@element-plus/nightly 0.0.20260513 → 0.0.20260514

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 (790) hide show
  1. package/dist/index.full.js +495 -474
  2. package/dist/index.full.min.js +4 -4
  3. package/dist/index.full.min.js.map +1 -1
  4. package/dist/index.full.min.mjs +4 -4
  5. package/dist/index.full.min.mjs.map +1 -1
  6. package/dist/index.full.mjs +495 -474
  7. package/dist/locale/af.js +1 -1
  8. package/dist/locale/af.min.js +1 -1
  9. package/dist/locale/af.min.mjs +1 -1
  10. package/dist/locale/af.mjs +1 -1
  11. package/dist/locale/ar-eg.js +1 -1
  12. package/dist/locale/ar-eg.min.js +1 -1
  13. package/dist/locale/ar-eg.min.mjs +1 -1
  14. package/dist/locale/ar-eg.mjs +1 -1
  15. package/dist/locale/ar.js +1 -1
  16. package/dist/locale/ar.min.js +1 -1
  17. package/dist/locale/ar.min.mjs +1 -1
  18. package/dist/locale/ar.mjs +1 -1
  19. package/dist/locale/az.js +1 -1
  20. package/dist/locale/az.min.js +1 -1
  21. package/dist/locale/az.min.mjs +1 -1
  22. package/dist/locale/az.mjs +1 -1
  23. package/dist/locale/bg.js +1 -1
  24. package/dist/locale/bg.min.js +1 -1
  25. package/dist/locale/bg.min.mjs +1 -1
  26. package/dist/locale/bg.mjs +1 -1
  27. package/dist/locale/bn.js +1 -1
  28. package/dist/locale/bn.min.js +1 -1
  29. package/dist/locale/bn.min.mjs +1 -1
  30. package/dist/locale/bn.mjs +1 -1
  31. package/dist/locale/ca.js +1 -1
  32. package/dist/locale/ca.min.js +1 -1
  33. package/dist/locale/ca.min.mjs +1 -1
  34. package/dist/locale/ca.mjs +1 -1
  35. package/dist/locale/ckb.js +1 -1
  36. package/dist/locale/ckb.min.js +1 -1
  37. package/dist/locale/ckb.min.mjs +1 -1
  38. package/dist/locale/ckb.mjs +1 -1
  39. package/dist/locale/cs.js +1 -1
  40. package/dist/locale/cs.min.js +1 -1
  41. package/dist/locale/cs.min.mjs +1 -1
  42. package/dist/locale/cs.mjs +1 -1
  43. package/dist/locale/da.js +1 -1
  44. package/dist/locale/da.min.js +1 -1
  45. package/dist/locale/da.min.mjs +1 -1
  46. package/dist/locale/da.mjs +1 -1
  47. package/dist/locale/de.js +1 -1
  48. package/dist/locale/de.min.js +1 -1
  49. package/dist/locale/de.min.mjs +1 -1
  50. package/dist/locale/de.mjs +1 -1
  51. package/dist/locale/el.js +1 -1
  52. package/dist/locale/el.min.js +1 -1
  53. package/dist/locale/el.min.mjs +1 -1
  54. package/dist/locale/el.mjs +1 -1
  55. package/dist/locale/en.js +1 -1
  56. package/dist/locale/en.min.js +1 -1
  57. package/dist/locale/en.min.mjs +1 -1
  58. package/dist/locale/en.mjs +1 -1
  59. package/dist/locale/eo.js +1 -1
  60. package/dist/locale/eo.min.js +1 -1
  61. package/dist/locale/eo.min.mjs +1 -1
  62. package/dist/locale/eo.mjs +1 -1
  63. package/dist/locale/es.js +1 -1
  64. package/dist/locale/es.min.js +1 -1
  65. package/dist/locale/es.min.mjs +1 -1
  66. package/dist/locale/es.mjs +1 -1
  67. package/dist/locale/et.js +1 -1
  68. package/dist/locale/et.min.js +1 -1
  69. package/dist/locale/et.min.mjs +1 -1
  70. package/dist/locale/et.mjs +1 -1
  71. package/dist/locale/eu.js +1 -1
  72. package/dist/locale/eu.min.js +1 -1
  73. package/dist/locale/eu.min.mjs +1 -1
  74. package/dist/locale/eu.mjs +1 -1
  75. package/dist/locale/fa.js +1 -1
  76. package/dist/locale/fa.min.js +1 -1
  77. package/dist/locale/fa.min.mjs +1 -1
  78. package/dist/locale/fa.mjs +1 -1
  79. package/dist/locale/fi.js +1 -1
  80. package/dist/locale/fi.min.js +1 -1
  81. package/dist/locale/fi.min.mjs +1 -1
  82. package/dist/locale/fi.mjs +1 -1
  83. package/dist/locale/fr.js +1 -1
  84. package/dist/locale/fr.min.js +1 -1
  85. package/dist/locale/fr.min.mjs +1 -1
  86. package/dist/locale/fr.mjs +1 -1
  87. package/dist/locale/he.js +1 -1
  88. package/dist/locale/he.min.js +1 -1
  89. package/dist/locale/he.min.mjs +1 -1
  90. package/dist/locale/he.mjs +1 -1
  91. package/dist/locale/hi.js +1 -1
  92. package/dist/locale/hi.min.js +1 -1
  93. package/dist/locale/hi.min.mjs +1 -1
  94. package/dist/locale/hi.mjs +1 -1
  95. package/dist/locale/hr.js +1 -1
  96. package/dist/locale/hr.min.js +1 -1
  97. package/dist/locale/hr.min.mjs +1 -1
  98. package/dist/locale/hr.mjs +1 -1
  99. package/dist/locale/hu.js +1 -1
  100. package/dist/locale/hu.min.js +1 -1
  101. package/dist/locale/hu.min.mjs +1 -1
  102. package/dist/locale/hu.mjs +1 -1
  103. package/dist/locale/hy-am.js +1 -1
  104. package/dist/locale/hy-am.min.js +1 -1
  105. package/dist/locale/hy-am.min.mjs +1 -1
  106. package/dist/locale/hy-am.mjs +1 -1
  107. package/dist/locale/id.js +1 -1
  108. package/dist/locale/id.min.js +1 -1
  109. package/dist/locale/id.min.mjs +1 -1
  110. package/dist/locale/id.mjs +1 -1
  111. package/dist/locale/it.js +1 -1
  112. package/dist/locale/it.min.js +1 -1
  113. package/dist/locale/it.min.mjs +1 -1
  114. package/dist/locale/it.mjs +1 -1
  115. package/dist/locale/ja.js +1 -1
  116. package/dist/locale/ja.min.js +1 -1
  117. package/dist/locale/ja.min.mjs +1 -1
  118. package/dist/locale/ja.mjs +1 -1
  119. package/dist/locale/kk.js +1 -1
  120. package/dist/locale/kk.min.js +1 -1
  121. package/dist/locale/kk.min.mjs +1 -1
  122. package/dist/locale/kk.mjs +1 -1
  123. package/dist/locale/km.js +1 -1
  124. package/dist/locale/km.min.js +1 -1
  125. package/dist/locale/km.min.mjs +1 -1
  126. package/dist/locale/km.mjs +1 -1
  127. package/dist/locale/ko.js +1 -1
  128. package/dist/locale/ko.min.js +1 -1
  129. package/dist/locale/ko.min.mjs +1 -1
  130. package/dist/locale/ko.mjs +1 -1
  131. package/dist/locale/ku.js +1 -1
  132. package/dist/locale/ku.min.js +1 -1
  133. package/dist/locale/ku.min.mjs +1 -1
  134. package/dist/locale/ku.mjs +1 -1
  135. package/dist/locale/ky.js +1 -1
  136. package/dist/locale/ky.min.js +1 -1
  137. package/dist/locale/ky.min.mjs +1 -1
  138. package/dist/locale/ky.mjs +1 -1
  139. package/dist/locale/lo.js +1 -1
  140. package/dist/locale/lo.min.js +1 -1
  141. package/dist/locale/lo.min.mjs +1 -1
  142. package/dist/locale/lo.mjs +1 -1
  143. package/dist/locale/lt.js +1 -1
  144. package/dist/locale/lt.min.js +1 -1
  145. package/dist/locale/lt.min.mjs +1 -1
  146. package/dist/locale/lt.mjs +1 -1
  147. package/dist/locale/lv.js +1 -1
  148. package/dist/locale/lv.min.js +1 -1
  149. package/dist/locale/lv.min.mjs +1 -1
  150. package/dist/locale/lv.mjs +1 -1
  151. package/dist/locale/mg.js +1 -1
  152. package/dist/locale/mg.min.js +1 -1
  153. package/dist/locale/mg.min.mjs +1 -1
  154. package/dist/locale/mg.mjs +1 -1
  155. package/dist/locale/mn.js +1 -1
  156. package/dist/locale/mn.min.js +1 -1
  157. package/dist/locale/mn.min.mjs +1 -1
  158. package/dist/locale/mn.mjs +1 -1
  159. package/dist/locale/ms.js +1 -1
  160. package/dist/locale/ms.min.js +1 -1
  161. package/dist/locale/ms.min.mjs +1 -1
  162. package/dist/locale/ms.mjs +1 -1
  163. package/dist/locale/my.js +1 -1
  164. package/dist/locale/my.min.js +1 -1
  165. package/dist/locale/my.min.mjs +1 -1
  166. package/dist/locale/my.mjs +1 -1
  167. package/dist/locale/nb-no.js +1 -1
  168. package/dist/locale/nb-no.min.js +1 -1
  169. package/dist/locale/nb-no.min.mjs +1 -1
  170. package/dist/locale/nb-no.mjs +1 -1
  171. package/dist/locale/nl.js +1 -1
  172. package/dist/locale/nl.min.js +1 -1
  173. package/dist/locale/nl.min.mjs +1 -1
  174. package/dist/locale/nl.mjs +1 -1
  175. package/dist/locale/no.js +1 -1
  176. package/dist/locale/no.min.js +1 -1
  177. package/dist/locale/no.min.mjs +1 -1
  178. package/dist/locale/no.mjs +1 -1
  179. package/dist/locale/pa.js +1 -1
  180. package/dist/locale/pa.min.js +1 -1
  181. package/dist/locale/pa.min.mjs +1 -1
  182. package/dist/locale/pa.mjs +1 -1
  183. package/dist/locale/pl.js +1 -1
  184. package/dist/locale/pl.min.js +1 -1
  185. package/dist/locale/pl.min.mjs +1 -1
  186. package/dist/locale/pl.mjs +1 -1
  187. package/dist/locale/pt-br.js +1 -1
  188. package/dist/locale/pt-br.min.js +1 -1
  189. package/dist/locale/pt-br.min.mjs +1 -1
  190. package/dist/locale/pt-br.mjs +1 -1
  191. package/dist/locale/pt.js +1 -1
  192. package/dist/locale/pt.min.js +1 -1
  193. package/dist/locale/pt.min.mjs +1 -1
  194. package/dist/locale/pt.mjs +1 -1
  195. package/dist/locale/ro.js +1 -1
  196. package/dist/locale/ro.min.js +1 -1
  197. package/dist/locale/ro.min.mjs +1 -1
  198. package/dist/locale/ro.mjs +1 -1
  199. package/dist/locale/ru.js +1 -1
  200. package/dist/locale/ru.min.js +1 -1
  201. package/dist/locale/ru.min.mjs +1 -1
  202. package/dist/locale/ru.mjs +1 -1
  203. package/dist/locale/sk.js +1 -1
  204. package/dist/locale/sk.min.js +1 -1
  205. package/dist/locale/sk.min.mjs +1 -1
  206. package/dist/locale/sk.mjs +1 -1
  207. package/dist/locale/sl.js +1 -1
  208. package/dist/locale/sl.min.js +1 -1
  209. package/dist/locale/sl.min.mjs +1 -1
  210. package/dist/locale/sl.mjs +1 -1
  211. package/dist/locale/sr.js +1 -1
  212. package/dist/locale/sr.min.js +1 -1
  213. package/dist/locale/sr.min.mjs +1 -1
  214. package/dist/locale/sr.mjs +1 -1
  215. package/dist/locale/sv.js +1 -1
  216. package/dist/locale/sv.min.js +1 -1
  217. package/dist/locale/sv.min.mjs +1 -1
  218. package/dist/locale/sv.mjs +1 -1
  219. package/dist/locale/sw.js +1 -1
  220. package/dist/locale/sw.min.js +1 -1
  221. package/dist/locale/sw.min.mjs +1 -1
  222. package/dist/locale/sw.mjs +1 -1
  223. package/dist/locale/ta.js +1 -1
  224. package/dist/locale/ta.min.js +1 -1
  225. package/dist/locale/ta.min.mjs +1 -1
  226. package/dist/locale/ta.mjs +1 -1
  227. package/dist/locale/te.js +1 -1
  228. package/dist/locale/te.min.js +1 -1
  229. package/dist/locale/te.min.mjs +1 -1
  230. package/dist/locale/te.mjs +1 -1
  231. package/dist/locale/th.js +1 -1
  232. package/dist/locale/th.min.js +1 -1
  233. package/dist/locale/th.min.mjs +1 -1
  234. package/dist/locale/th.mjs +1 -1
  235. package/dist/locale/tk.js +1 -1
  236. package/dist/locale/tk.min.js +1 -1
  237. package/dist/locale/tk.min.mjs +1 -1
  238. package/dist/locale/tk.mjs +1 -1
  239. package/dist/locale/tr.js +1 -1
  240. package/dist/locale/tr.min.js +1 -1
  241. package/dist/locale/tr.min.mjs +1 -1
  242. package/dist/locale/tr.mjs +1 -1
  243. package/dist/locale/ug-cn.js +1 -1
  244. package/dist/locale/ug-cn.min.js +1 -1
  245. package/dist/locale/ug-cn.min.mjs +1 -1
  246. package/dist/locale/ug-cn.mjs +1 -1
  247. package/dist/locale/uk.js +1 -1
  248. package/dist/locale/uk.min.js +1 -1
  249. package/dist/locale/uk.min.mjs +1 -1
  250. package/dist/locale/uk.mjs +1 -1
  251. package/dist/locale/uz-uz.js +1 -1
  252. package/dist/locale/uz-uz.min.js +1 -1
  253. package/dist/locale/uz-uz.min.mjs +1 -1
  254. package/dist/locale/uz-uz.mjs +1 -1
  255. package/dist/locale/vi.js +1 -1
  256. package/dist/locale/vi.min.js +1 -1
  257. package/dist/locale/vi.min.mjs +1 -1
  258. package/dist/locale/vi.mjs +1 -1
  259. package/dist/locale/zh-cn.js +1 -1
  260. package/dist/locale/zh-cn.min.js +1 -1
  261. package/dist/locale/zh-cn.min.mjs +1 -1
  262. package/dist/locale/zh-cn.mjs +1 -1
  263. package/dist/locale/zh-hk.js +1 -1
  264. package/dist/locale/zh-hk.min.js +1 -1
  265. package/dist/locale/zh-hk.min.mjs +1 -1
  266. package/dist/locale/zh-hk.mjs +1 -1
  267. package/dist/locale/zh-mo.js +1 -1
  268. package/dist/locale/zh-mo.min.js +1 -1
  269. package/dist/locale/zh-mo.min.mjs +1 -1
  270. package/dist/locale/zh-mo.mjs +1 -1
  271. package/dist/locale/zh-tw.js +1 -1
  272. package/dist/locale/zh-tw.min.js +1 -1
  273. package/dist/locale/zh-tw.min.mjs +1 -1
  274. package/dist/locale/zh-tw.mjs +1 -1
  275. package/es/components/affix/src/affix.d.ts +1 -1
  276. package/es/components/affix/src/affix.vue.d.ts +3 -3
  277. package/es/components/alert/src/alert.d.ts +2 -2
  278. package/es/components/alert/src/alert.vue.d.ts +1 -1
  279. package/es/components/anchor/src/anchor.d.ts +1 -1
  280. package/es/components/anchor/src/anchor.vue.d.ts +5 -5
  281. package/es/components/autocomplete/src/autocomplete.d.ts +4 -4
  282. package/es/components/autocomplete/src/autocomplete.vue.d.ts +6 -6
  283. package/es/components/avatar/src/avatar-group-props.d.ts +1 -1
  284. package/es/components/avatar/src/avatar-group.d.ts +2 -2
  285. package/es/components/avatar/src/avatar.d.ts +1 -1
  286. package/es/components/backtop/src/backtop.vue.d.ts +1 -1
  287. package/es/components/badge/src/badge.d.ts +1 -1
  288. package/es/components/button/src/button-group.d.ts +3 -3
  289. package/es/components/button/src/button-group.vue.d.ts +1 -1
  290. package/es/components/button/src/button.d.ts +2 -2
  291. package/es/components/button/src/button.vue.d.ts +4 -4
  292. package/es/components/button/src/use-button.d.ts +2 -2
  293. package/es/components/calendar/src/calendar.vue.d.ts +1 -1
  294. package/es/components/calendar/src/select-controller.vue.d.ts +2 -2
  295. package/es/components/card/src/card.vue.d.ts +1 -1
  296. package/es/components/carousel/src/carousel.d.ts +1 -1
  297. package/es/components/carousel/src/carousel.vue.d.ts +1 -1
  298. package/es/components/cascader/src/cascader.d.ts +4 -4
  299. package/es/components/cascader/src/cascader.vue.d.ts +17 -17
  300. package/es/components/cascader-panel/src/index.vue.d.ts +5 -5
  301. package/es/components/cascader-panel/src/menu.vue.d.ts +1 -1
  302. package/es/components/check-tag/src/check-tag.d.ts +1 -1
  303. package/es/components/checkbox/src/checkbox-button.vue.d.ts +5 -5
  304. package/es/components/checkbox/src/checkbox-group.d.ts +1 -1
  305. package/es/components/checkbox/src/checkbox-group.vue.d.ts +3 -3
  306. package/es/components/checkbox/src/checkbox.d.ts +4 -4
  307. package/es/components/checkbox/src/checkbox.vue.d.ts +5 -5
  308. package/es/components/checkbox/src/composables/use-checkbox-status.d.ts +2 -2
  309. package/es/components/checkbox/src/composables/use-checkbox.d.ts +2 -2
  310. package/es/components/col/src/col.vue.d.ts +1 -1
  311. package/es/components/collapse/src/collapse-item.vue.d.ts +1 -1
  312. package/es/components/collapse/src/collapse.vue.d.ts +2 -2
  313. package/es/components/color-picker/src/color-picker.d.ts +1 -1
  314. package/es/components/color-picker/src/color-picker.vue.d.ts +10 -10
  315. package/es/components/color-picker-panel/src/color-picker-panel.vue.d.ts +1 -1
  316. package/es/components/config-provider/src/config-provider-props.d.ts +1 -1
  317. package/es/components/config-provider/src/config-provider.d.ts +3 -3
  318. package/es/components/config-provider/src/hooks/use-global-config.d.ts +1 -1
  319. package/es/components/countdown/src/countdown.vue.d.ts +1 -1
  320. package/es/components/date-picker/src/date-picker.d.ts +21 -21
  321. package/es/components/date-picker/src/props.d.ts +4 -4
  322. package/es/components/date-picker-panel/src/composables/use-basic-date-table.d.ts +1 -1
  323. package/es/components/date-picker-panel/src/date-picker-com/panel-date-pick.vue.d.ts +3 -3
  324. package/es/components/date-picker-panel/src/date-picker-com/panel-date-range.mjs.map +1 -1
  325. package/es/components/date-picker-panel/src/date-picker-com/panel-date-range.vue.d.ts +3 -3
  326. package/es/components/date-picker-panel/src/date-picker-com/panel-date-range.vue_vue_type_script_setup_true_lang.mjs +22 -8
  327. package/es/components/date-picker-panel/src/date-picker-com/panel-date-range.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  328. package/es/components/date-picker-panel/src/date-picker-com/panel-month-range.vue.d.ts +1 -1
  329. package/es/components/date-picker-panel/src/date-picker-com/panel-year-range.vue.d.ts +1 -1
  330. package/es/components/date-picker-panel/src/date-picker-panel.d.ts +7 -7
  331. package/es/components/date-picker-panel/src/panel-utils.d.ts +15 -15
  332. package/es/components/date-picker-panel/src/props/date-picker-panel.d.ts +2 -2
  333. package/es/components/date-picker-panel/src/props/panel-date-pick.d.ts +1 -1
  334. package/es/components/date-picker-panel/src/props/panel-date-range.d.ts +1 -1
  335. package/es/components/date-picker-panel/src/props/shared.d.ts +1 -1
  336. package/es/components/descriptions/src/description-item.d.ts +10 -10
  337. package/es/components/descriptions/src/description.d.ts +2 -2
  338. package/es/components/descriptions/src/description.vue.d.ts +1 -1
  339. package/es/components/dialog/src/dialog-content.vue.d.ts +1 -1
  340. package/es/components/dialog/src/dialog.vue.d.ts +7 -7
  341. package/es/components/divider/src/divider.d.ts +2 -2
  342. package/es/components/drawer/src/drawer.vue.d.ts +8 -8
  343. package/es/components/dropdown/src/dropdown-item-impl.vue.d.ts +2 -2
  344. package/es/components/dropdown/src/dropdown-item.vue.d.ts +6 -6
  345. package/es/components/dropdown/src/dropdown-menu.vue.d.ts +1 -1
  346. package/es/components/dropdown/src/dropdown.d.ts +4 -4
  347. package/es/components/dropdown/src/dropdown.vue.d.ts +99 -99
  348. package/es/components/focus-trap/src/focus-trap.vue.d.ts +1 -1
  349. package/es/components/form/src/form-item.d.ts +3 -3
  350. package/es/components/form/src/form-item.vue.d.ts +2 -2
  351. package/es/components/form/src/form.d.ts +3 -3
  352. package/es/components/form/src/hooks/use-form-common-props.d.ts +2 -2
  353. package/es/components/image/src/image.vue.d.ts +2 -2
  354. package/es/components/image-viewer/src/image-viewer.vue.d.ts +2 -2
  355. package/es/components/input/src/input.d.ts +3 -3
  356. package/es/components/input/src/input.vue.d.ts +19 -19
  357. package/es/components/input-number/src/input-number.d.ts +4 -4
  358. package/es/components/input-number/src/input-number.vue.d.ts +9 -9
  359. package/es/components/input-otp/src/input-otp.vue.d.ts +5 -5
  360. package/es/components/input-tag/src/composables/use-input-tag.d.ts +1 -1
  361. package/es/components/input-tag/src/input-tag.d.ts +3 -3
  362. package/es/components/input-tag/src/input-tag.vue.d.ts +12 -12
  363. package/es/components/link/src/link.d.ts +1 -1
  364. package/es/components/link/src/link.vue.d.ts +1 -1
  365. package/es/components/mention/src/mention.d.ts +4 -4
  366. package/es/components/mention/src/mention.vue.d.ts +4 -4
  367. package/es/components/menu/src/menu.d.ts +5 -5
  368. package/es/components/menu/src/sub-menu.d.ts +1 -1
  369. package/es/components/message/src/instance.d.ts +1 -1
  370. package/es/components/message/src/message.d.ts +2 -2
  371. package/es/components/message/src/message.vue.d.ts +4 -4
  372. package/es/components/message-box/src/index.vue.d.ts +68 -68
  373. package/es/components/notification/src/notification.d.ts +1 -1
  374. package/es/components/notification/src/notification.vue.d.ts +5 -5
  375. package/es/components/page-header/src/page-header.vue.d.ts +1 -1
  376. package/es/components/pagination/src/components/jumper.d.ts +1 -1
  377. package/es/components/pagination/src/components/jumper.vue.d.ts +2 -2
  378. package/es/components/pagination/src/components/next.vue.d.ts +1 -1
  379. package/es/components/pagination/src/components/pager.vue.d.ts +1 -1
  380. package/es/components/pagination/src/components/prev.vue.d.ts +1 -1
  381. package/es/components/pagination/src/components/sizes.d.ts +1 -1
  382. package/es/components/pagination/src/components/sizes.vue.d.ts +3 -3
  383. package/es/components/pagination/src/pagination.d.ts +6 -6
  384. package/es/components/popconfirm/src/popconfirm.d.ts +2 -2
  385. package/es/components/popconfirm/src/popconfirm.vue.d.ts +5 -5
  386. package/es/components/popover/src/popover.d.ts +2 -2
  387. package/es/components/popover/src/popover.vue.d.ts +11 -11
  388. package/es/components/popper/src/composables/use-content.d.ts +3 -3
  389. package/es/components/popper/src/composables/use-focus-trap.d.ts +1 -1
  390. package/es/components/popper/src/content.vue.d.ts +16 -16
  391. package/es/components/popper/src/popper.d.ts +2 -2
  392. package/es/components/progress/src/progress.vue.d.ts +2 -2
  393. package/es/components/radio/src/radio-button.d.ts +4 -4
  394. package/es/components/radio/src/radio-button.vue.d.ts +2 -2
  395. package/es/components/radio/src/radio-group.d.ts +1 -1
  396. package/es/components/radio/src/radio-group.vue.d.ts +4 -4
  397. package/es/components/radio/src/radio.d.ts +8 -8
  398. package/es/components/radio/src/radio.vue.d.ts +5 -5
  399. package/es/components/radio/src/use-radio.d.ts +1 -1
  400. package/es/components/rate/src/rate.d.ts +1 -1
  401. package/es/components/rate/src/rate.vue.d.ts +3 -3
  402. package/es/components/result/src/result.d.ts +1 -1
  403. package/es/components/result/src/result.vue.d.ts +1 -1
  404. package/es/components/roving-focus-group/src/roving-focus-group-impl.vue.d.ts +2 -2
  405. package/es/components/roving-focus-group/src/roving-focus-group.d.ts +1 -1
  406. package/es/components/roving-focus-group/src/roving-focus-group.vue.d.ts +2 -2
  407. package/es/components/row/src/row.d.ts +2 -2
  408. package/es/components/row/src/row.vue.d.ts +1 -1
  409. package/es/components/scrollbar/src/scrollbar.vue.d.ts +2 -2
  410. package/es/components/segmented/index.d.ts +5 -5
  411. package/es/components/segmented/src/segmented.d.ts +3 -3
  412. package/es/components/segmented/src/segmented.vue.d.ts +2 -2
  413. package/es/components/select/src/option.d.ts +1 -1
  414. package/es/components/select/src/option.vue.d.ts +2 -2
  415. package/es/components/select/src/select.d.ts +5 -5
  416. package/es/components/select/src/select.vue.d.ts +97 -97
  417. package/es/components/select/src/useSelect.d.ts +6 -6
  418. package/es/components/select-v2/src/defaults.d.ts +4 -4
  419. package/es/components/select-v2/src/select.vue.d.ts +85 -85
  420. package/es/components/select-v2/src/useSelect.d.ts +2 -2
  421. package/es/components/skeleton/src/skeleton-item.d.ts +1 -1
  422. package/es/components/skeleton/src/skeleton.vue.d.ts +1 -1
  423. package/es/components/slider/src/button.vue.d.ts +1 -1
  424. package/es/components/slider/src/slider.d.ts +2 -2
  425. package/es/components/slider/src/slider.vue.d.ts +11 -11
  426. package/es/components/space/src/space.d.ts +12 -12
  427. package/es/components/splitter/src/splitter.d.ts +1 -1
  428. package/es/components/splitter/src/splitter.vue.d.ts +2 -2
  429. package/es/components/steps/src/item.d.ts +1 -1
  430. package/es/components/steps/src/item.vue.d.ts +1 -1
  431. package/es/components/steps/src/steps.d.ts +3 -3
  432. package/es/components/switch/src/switch.d.ts +1 -1
  433. package/es/components/switch/src/switch.vue.d.ts +4 -4
  434. package/es/components/table/index.d.ts +6 -3
  435. package/es/components/table/index.mjs.map +1 -1
  436. package/es/components/table/src/filter-panel.vue.d.ts +82 -82
  437. package/es/components/table/src/table/defaults.d.ts +139 -5
  438. package/es/components/table/src/table/defaults.mjs +5 -2
  439. package/es/components/table/src/table/defaults.mjs.map +1 -1
  440. package/es/components/table/src/table/key-render-helper.d.ts +2 -2
  441. package/es/components/table/src/table/key-render-helper.mjs.map +1 -1
  442. package/es/components/table/src/table/style-helper.d.ts +1 -1
  443. package/es/components/table/src/table/utils-helper.d.ts +1 -1
  444. package/es/components/table/src/table/utils-helper.mjs.map +1 -1
  445. package/es/components/table/src/table-body/index.d.ts +1 -1
  446. package/es/components/table/src/table-column/defaults.d.ts +129 -4
  447. package/es/components/table/src/table-column/defaults.mjs +5 -2
  448. package/es/components/table/src/table-column/defaults.mjs.map +1 -1
  449. package/es/components/table/src/table-column/index.d.ts +1 -226
  450. package/es/components/table/src/table-column/index.mjs +2 -116
  451. package/es/components/table/src/table-column/index.mjs.map +1 -1
  452. package/es/components/table/src/table-column/index.vue.d.ts +37 -0
  453. package/es/components/table/src/table-column/index.vue_vue_type_script_setup_true_lang.mjs +124 -0
  454. package/es/components/table/src/table-column/index.vue_vue_type_script_setup_true_lang.mjs.map +1 -0
  455. package/es/components/table/src/table-column/index2.mjs +7 -0
  456. package/es/components/table/src/table-column/index2.mjs.map +1 -0
  457. package/es/components/table/src/table-header/index.d.ts +15 -15
  458. package/es/components/table/src/table.mjs +2 -211
  459. package/es/components/table/src/table.mjs.map +1 -1
  460. package/es/components/table/src/table.vue.d.ts +692 -1350
  461. package/es/components/table/src/table.vue_vue_type_script_setup_true_lang.mjs +392 -0
  462. package/es/components/table/src/table.vue_vue_type_script_setup_true_lang.mjs.map +1 -0
  463. package/es/components/table/src/tableColumn.d.ts +1 -1
  464. package/es/components/table/src/util.d.ts +3 -1
  465. package/es/components/table/src/util.mjs +5 -1
  466. package/es/components/table/src/util.mjs.map +1 -1
  467. package/es/components/table-v2/src/components/header.d.ts +1 -1
  468. package/es/components/table-v2/src/components/row.d.ts +1 -1
  469. package/es/components/table-v2/src/table-grid.d.ts +4 -4
  470. package/es/components/table-v2/src/table-v2.d.ts +6 -6
  471. package/es/components/tabs/src/tab-nav.d.ts +1 -1
  472. package/es/components/tabs/src/tab-pane.vue.d.ts +1 -1
  473. package/es/components/tabs/src/tabs.d.ts +6 -6
  474. package/es/components/tag/src/tag.d.ts +3 -3
  475. package/es/components/text/src/text.d.ts +2 -2
  476. package/es/components/text/src/text.vue_vue_type_script_setup_true_lang.mjs +5 -3
  477. package/es/components/text/src/text.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  478. package/es/components/text/src/text2.mjs.map +1 -1
  479. package/es/components/time-picker/src/common/picker-range-trigger.vue.d.ts +6 -6
  480. package/es/components/time-picker/src/common/picker.vue.d.ts +26 -26
  481. package/es/components/time-picker/src/common/props.d.ts +3 -3
  482. package/es/components/time-picker/src/time-picker.d.ts +18 -18
  483. package/es/components/time-select/src/time-select.d.ts +1 -1
  484. package/es/components/time-select/src/time-select.vue.d.ts +12 -12
  485. package/es/components/timeline/src/timeline-item.d.ts +3 -3
  486. package/es/components/timeline/src/timeline-item.vue.d.ts +2 -2
  487. package/es/components/timeline/src/timeline.d.ts +4 -4
  488. package/es/components/tooltip/src/content.vue.d.ts +15 -15
  489. package/es/components/tooltip/src/tooltip.d.ts +2 -2
  490. package/es/components/tooltip/src/tooltip.vue.d.ts +18 -18
  491. package/es/components/tooltip/src/trigger.d.ts +1 -1
  492. package/es/components/tour/src/content.d.ts +1 -1
  493. package/es/components/tour/src/content.vue.d.ts +1 -1
  494. package/es/components/tour/src/step.d.ts +1 -1
  495. package/es/components/tour/src/step.vue.d.ts +1 -1
  496. package/es/components/tour/src/tour.d.ts +1 -1
  497. package/es/components/tour/src/tour.vue.d.ts +4 -4
  498. package/es/components/transfer/src/transfer.vue.d.ts +2 -2
  499. package/es/components/tree/src/tree-node.vue.d.ts +15 -15
  500. package/es/components/tree/src/tree.vue.d.ts +16 -16
  501. package/es/components/tree-select/src/tree-select-option.d.ts +2 -2
  502. package/es/components/tree-select/src/tree-select.vue.d.ts +27 -27
  503. package/es/components/tree-v2/src/composables/useTree.d.ts +12 -12
  504. package/es/components/tree-v2/src/composables/useTree.mjs +1 -1
  505. package/es/components/tree-v2/src/composables/useTree.mjs.map +1 -1
  506. package/es/components/tree-v2/src/tree.vue.d.ts +3 -3
  507. package/es/components/upload/src/upload-content.d.ts +1 -1
  508. package/es/components/upload/src/upload-content.vue.d.ts +3 -3
  509. package/es/components/upload/src/upload-list.d.ts +1 -1
  510. package/es/components/upload/src/upload.d.ts +2 -2
  511. package/es/components/upload/src/upload.vue.d.ts +3 -3
  512. package/es/components/virtual-list/src/builders/build-grid.d.ts +4 -4
  513. package/es/components/virtual-list/src/builders/build-list.d.ts +6 -6
  514. package/es/components/virtual-list/src/components/dynamic-size-grid.d.ts +4 -4
  515. package/es/components/virtual-list/src/components/dynamic-size-list.d.ts +6 -6
  516. package/es/components/virtual-list/src/components/fixed-size-grid.d.ts +4 -4
  517. package/es/components/virtual-list/src/components/fixed-size-list.d.ts +6 -6
  518. package/es/components/virtual-list/src/components/scrollbar.d.ts +4 -4
  519. package/es/components/virtual-list/src/props.d.ts +2 -2
  520. package/es/components/watermark/src/watermark.vue.d.ts +2 -2
  521. package/es/directives/index.d.ts +1 -1
  522. package/es/hooks/use-floating/index.d.ts +8 -8
  523. package/es/hooks/use-popper/index.d.ts +3 -3
  524. package/es/hooks/use-size/index.d.ts +3 -3
  525. package/es/index.d.ts +1 -1
  526. package/es/utils/vue/vnode.d.ts +4 -4
  527. package/es/version.d.ts +1 -1
  528. package/es/version.mjs +1 -1
  529. package/es/version.mjs.map +1 -1
  530. package/lib/components/affix/src/affix.d.ts +1 -1
  531. package/lib/components/affix/src/affix.vue.d.ts +3 -3
  532. package/lib/components/alert/src/alert.d.ts +2 -2
  533. package/lib/components/alert/src/alert.vue.d.ts +1 -1
  534. package/lib/components/anchor/src/anchor.d.ts +1 -1
  535. package/lib/components/anchor/src/anchor.vue.d.ts +5 -5
  536. package/lib/components/autocomplete/src/autocomplete.d.ts +4 -4
  537. package/lib/components/autocomplete/src/autocomplete.vue.d.ts +6 -6
  538. package/lib/components/avatar/src/avatar-group-props.d.ts +1 -1
  539. package/lib/components/avatar/src/avatar-group.d.ts +2 -2
  540. package/lib/components/avatar/src/avatar.d.ts +1 -1
  541. package/lib/components/backtop/src/backtop.vue.d.ts +1 -1
  542. package/lib/components/badge/src/badge.d.ts +1 -1
  543. package/lib/components/button/src/button-group.d.ts +3 -3
  544. package/lib/components/button/src/button-group.vue.d.ts +1 -1
  545. package/lib/components/button/src/button.d.ts +2 -2
  546. package/lib/components/button/src/button.vue.d.ts +4 -4
  547. package/lib/components/button/src/use-button.d.ts +2 -2
  548. package/lib/components/calendar/src/calendar.vue.d.ts +1 -1
  549. package/lib/components/calendar/src/select-controller.vue.d.ts +2 -2
  550. package/lib/components/card/src/card.vue.d.ts +1 -1
  551. package/lib/components/carousel/src/carousel.d.ts +1 -1
  552. package/lib/components/carousel/src/carousel.vue.d.ts +1 -1
  553. package/lib/components/cascader/src/cascader.d.ts +4 -4
  554. package/lib/components/cascader/src/cascader.vue.d.ts +17 -17
  555. package/lib/components/cascader-panel/src/index.vue.d.ts +5 -5
  556. package/lib/components/cascader-panel/src/menu.vue.d.ts +1 -1
  557. package/lib/components/check-tag/src/check-tag.d.ts +1 -1
  558. package/lib/components/checkbox/src/checkbox-button.vue.d.ts +5 -5
  559. package/lib/components/checkbox/src/checkbox-group.d.ts +1 -1
  560. package/lib/components/checkbox/src/checkbox-group.vue.d.ts +3 -3
  561. package/lib/components/checkbox/src/checkbox.d.ts +4 -4
  562. package/lib/components/checkbox/src/checkbox.vue.d.ts +5 -5
  563. package/lib/components/checkbox/src/composables/use-checkbox-status.d.ts +2 -2
  564. package/lib/components/checkbox/src/composables/use-checkbox.d.ts +2 -2
  565. package/lib/components/col/src/col.vue.d.ts +1 -1
  566. package/lib/components/collapse/src/collapse-item.vue.d.ts +1 -1
  567. package/lib/components/collapse/src/collapse.vue.d.ts +2 -2
  568. package/lib/components/color-picker/src/color-picker.d.ts +1 -1
  569. package/lib/components/color-picker/src/color-picker.vue.d.ts +10 -10
  570. package/lib/components/color-picker-panel/src/color-picker-panel.vue.d.ts +1 -1
  571. package/lib/components/config-provider/src/config-provider-props.d.ts +1 -1
  572. package/lib/components/config-provider/src/config-provider.d.ts +3 -3
  573. package/lib/components/config-provider/src/hooks/use-global-config.d.ts +1 -1
  574. package/lib/components/countdown/src/countdown.vue.d.ts +1 -1
  575. package/lib/components/date-picker/src/date-picker.d.ts +21 -21
  576. package/lib/components/date-picker/src/props.d.ts +4 -4
  577. package/lib/components/date-picker-panel/src/composables/use-basic-date-table.d.ts +1 -1
  578. package/lib/components/date-picker-panel/src/date-picker-com/panel-date-pick.vue.d.ts +3 -3
  579. package/lib/components/date-picker-panel/src/date-picker-com/panel-date-range.js.map +1 -1
  580. package/lib/components/date-picker-panel/src/date-picker-com/panel-date-range.vue.d.ts +3 -3
  581. package/lib/components/date-picker-panel/src/date-picker-com/panel-date-range.vue_vue_type_script_setup_true_lang.js +22 -8
  582. package/lib/components/date-picker-panel/src/date-picker-com/panel-date-range.vue_vue_type_script_setup_true_lang.js.map +1 -1
  583. package/lib/components/date-picker-panel/src/date-picker-com/panel-month-range.vue.d.ts +1 -1
  584. package/lib/components/date-picker-panel/src/date-picker-com/panel-year-range.vue.d.ts +1 -1
  585. package/lib/components/date-picker-panel/src/date-picker-panel.d.ts +7 -7
  586. package/lib/components/date-picker-panel/src/panel-utils.d.ts +15 -15
  587. package/lib/components/date-picker-panel/src/props/date-picker-panel.d.ts +2 -2
  588. package/lib/components/date-picker-panel/src/props/panel-date-pick.d.ts +1 -1
  589. package/lib/components/date-picker-panel/src/props/panel-date-range.d.ts +1 -1
  590. package/lib/components/date-picker-panel/src/props/shared.d.ts +1 -1
  591. package/lib/components/descriptions/src/description-item.d.ts +10 -10
  592. package/lib/components/descriptions/src/description.d.ts +2 -2
  593. package/lib/components/descriptions/src/description.vue.d.ts +1 -1
  594. package/lib/components/dialog/src/dialog-content.vue.d.ts +1 -1
  595. package/lib/components/dialog/src/dialog.vue.d.ts +7 -7
  596. package/lib/components/divider/src/divider.d.ts +2 -2
  597. package/lib/components/drawer/src/drawer.vue.d.ts +8 -8
  598. package/lib/components/dropdown/src/dropdown-item-impl.vue.d.ts +2 -2
  599. package/lib/components/dropdown/src/dropdown-item.vue.d.ts +6 -6
  600. package/lib/components/dropdown/src/dropdown-menu.vue.d.ts +1 -1
  601. package/lib/components/dropdown/src/dropdown.d.ts +4 -4
  602. package/lib/components/dropdown/src/dropdown.vue.d.ts +99 -99
  603. package/lib/components/focus-trap/src/focus-trap.vue.d.ts +1 -1
  604. package/lib/components/form/src/form-item.d.ts +3 -3
  605. package/lib/components/form/src/form-item.vue.d.ts +2 -2
  606. package/lib/components/form/src/form.d.ts +3 -3
  607. package/lib/components/form/src/hooks/use-form-common-props.d.ts +2 -2
  608. package/lib/components/image/src/image.vue.d.ts +2 -2
  609. package/lib/components/image-viewer/src/image-viewer.vue.d.ts +2 -2
  610. package/lib/components/input/src/input.d.ts +3 -3
  611. package/lib/components/input/src/input.vue.d.ts +19 -19
  612. package/lib/components/input-number/src/input-number.d.ts +4 -4
  613. package/lib/components/input-number/src/input-number.vue.d.ts +9 -9
  614. package/lib/components/input-otp/src/input-otp.vue.d.ts +5 -5
  615. package/lib/components/input-tag/src/composables/use-input-tag.d.ts +1 -1
  616. package/lib/components/input-tag/src/input-tag.d.ts +3 -3
  617. package/lib/components/input-tag/src/input-tag.vue.d.ts +12 -12
  618. package/lib/components/link/src/link.d.ts +1 -1
  619. package/lib/components/link/src/link.vue.d.ts +1 -1
  620. package/lib/components/mention/src/mention.d.ts +4 -4
  621. package/lib/components/mention/src/mention.vue.d.ts +4 -4
  622. package/lib/components/menu/src/menu.d.ts +5 -5
  623. package/lib/components/menu/src/sub-menu.d.ts +1 -1
  624. package/lib/components/message/src/instance.d.ts +1 -1
  625. package/lib/components/message/src/message.d.ts +2 -2
  626. package/lib/components/message/src/message.vue.d.ts +4 -4
  627. package/lib/components/message-box/src/index.vue.d.ts +68 -68
  628. package/lib/components/notification/src/notification.d.ts +1 -1
  629. package/lib/components/notification/src/notification.vue.d.ts +5 -5
  630. package/lib/components/page-header/src/page-header.vue.d.ts +1 -1
  631. package/lib/components/pagination/src/components/jumper.d.ts +1 -1
  632. package/lib/components/pagination/src/components/jumper.vue.d.ts +2 -2
  633. package/lib/components/pagination/src/components/next.vue.d.ts +1 -1
  634. package/lib/components/pagination/src/components/pager.vue.d.ts +1 -1
  635. package/lib/components/pagination/src/components/prev.vue.d.ts +1 -1
  636. package/lib/components/pagination/src/components/sizes.d.ts +1 -1
  637. package/lib/components/pagination/src/components/sizes.vue.d.ts +3 -3
  638. package/lib/components/pagination/src/pagination.d.ts +6 -6
  639. package/lib/components/popconfirm/src/popconfirm.d.ts +2 -2
  640. package/lib/components/popconfirm/src/popconfirm.vue.d.ts +5 -5
  641. package/lib/components/popover/src/popover.d.ts +2 -2
  642. package/lib/components/popover/src/popover.vue.d.ts +11 -11
  643. package/lib/components/popper/src/composables/use-content.d.ts +3 -3
  644. package/lib/components/popper/src/composables/use-focus-trap.d.ts +1 -1
  645. package/lib/components/popper/src/content.vue.d.ts +16 -16
  646. package/lib/components/popper/src/popper.d.ts +2 -2
  647. package/lib/components/progress/src/progress.vue.d.ts +2 -2
  648. package/lib/components/radio/src/radio-button.d.ts +4 -4
  649. package/lib/components/radio/src/radio-button.vue.d.ts +2 -2
  650. package/lib/components/radio/src/radio-group.d.ts +1 -1
  651. package/lib/components/radio/src/radio-group.vue.d.ts +4 -4
  652. package/lib/components/radio/src/radio.d.ts +8 -8
  653. package/lib/components/radio/src/radio.vue.d.ts +5 -5
  654. package/lib/components/radio/src/use-radio.d.ts +1 -1
  655. package/lib/components/rate/src/rate.d.ts +1 -1
  656. package/lib/components/rate/src/rate.vue.d.ts +3 -3
  657. package/lib/components/result/src/result.d.ts +1 -1
  658. package/lib/components/result/src/result.vue.d.ts +1 -1
  659. package/lib/components/roving-focus-group/src/roving-focus-group-impl.vue.d.ts +2 -2
  660. package/lib/components/roving-focus-group/src/roving-focus-group.d.ts +1 -1
  661. package/lib/components/roving-focus-group/src/roving-focus-group.vue.d.ts +2 -2
  662. package/lib/components/row/src/row.d.ts +2 -2
  663. package/lib/components/row/src/row.vue.d.ts +1 -1
  664. package/lib/components/scrollbar/src/scrollbar.vue.d.ts +2 -2
  665. package/lib/components/segmented/index.d.ts +5 -5
  666. package/lib/components/segmented/src/segmented.d.ts +3 -3
  667. package/lib/components/segmented/src/segmented.vue.d.ts +2 -2
  668. package/lib/components/select/src/option.d.ts +1 -1
  669. package/lib/components/select/src/option.vue.d.ts +2 -2
  670. package/lib/components/select/src/select.d.ts +5 -5
  671. package/lib/components/select/src/select.vue.d.ts +97 -97
  672. package/lib/components/select/src/useSelect.d.ts +6 -6
  673. package/lib/components/select-v2/src/defaults.d.ts +4 -4
  674. package/lib/components/select-v2/src/select.vue.d.ts +85 -85
  675. package/lib/components/select-v2/src/useSelect.d.ts +2 -2
  676. package/lib/components/skeleton/src/skeleton-item.d.ts +1 -1
  677. package/lib/components/skeleton/src/skeleton.vue.d.ts +1 -1
  678. package/lib/components/slider/src/button.vue.d.ts +1 -1
  679. package/lib/components/slider/src/slider.d.ts +2 -2
  680. package/lib/components/slider/src/slider.vue.d.ts +11 -11
  681. package/lib/components/space/src/space.d.ts +12 -12
  682. package/lib/components/splitter/src/splitter.d.ts +1 -1
  683. package/lib/components/splitter/src/splitter.vue.d.ts +2 -2
  684. package/lib/components/steps/src/item.d.ts +1 -1
  685. package/lib/components/steps/src/item.vue.d.ts +1 -1
  686. package/lib/components/steps/src/steps.d.ts +3 -3
  687. package/lib/components/switch/src/switch.d.ts +1 -1
  688. package/lib/components/switch/src/switch.vue.d.ts +4 -4
  689. package/lib/components/table/index.d.ts +6 -3
  690. package/lib/components/table/index.js.map +1 -1
  691. package/lib/components/table/src/filter-panel.vue.d.ts +82 -82
  692. package/lib/components/table/src/table/defaults.d.ts +139 -5
  693. package/lib/components/table/src/table/defaults.js +6 -2
  694. package/lib/components/table/src/table/defaults.js.map +1 -1
  695. package/lib/components/table/src/table/key-render-helper.d.ts +2 -2
  696. package/lib/components/table/src/table/key-render-helper.js.map +1 -1
  697. package/lib/components/table/src/table/style-helper.d.ts +1 -1
  698. package/lib/components/table/src/table/utils-helper.d.ts +1 -1
  699. package/lib/components/table/src/table/utils-helper.js.map +1 -1
  700. package/lib/components/table/src/table-body/index.d.ts +1 -1
  701. package/lib/components/table/src/table-column/defaults.d.ts +129 -4
  702. package/lib/components/table/src/table-column/defaults.js +6 -2
  703. package/lib/components/table/src/table-column/defaults.js.map +1 -1
  704. package/lib/components/table/src/table-column/index.d.ts +1 -226
  705. package/lib/components/table/src/table-column/index.js +1 -118
  706. package/lib/components/table/src/table-column/index.js.map +1 -1
  707. package/lib/components/table/src/table-column/index.vue.d.ts +37 -0
  708. package/lib/components/table/src/table-column/index.vue_vue_type_script_setup_true_lang.js +126 -0
  709. package/lib/components/table/src/table-column/index.vue_vue_type_script_setup_true_lang.js.map +1 -0
  710. package/lib/components/table/src/table-column/index2.js +10 -0
  711. package/lib/components/table/src/table-column/index2.js.map +1 -0
  712. package/lib/components/table/src/table-header/index.d.ts +15 -15
  713. package/lib/components/table/src/table.js +1 -212
  714. package/lib/components/table/src/table.js.map +1 -1
  715. package/lib/components/table/src/table.vue.d.ts +692 -1350
  716. package/lib/components/table/src/table.vue_vue_type_script_setup_true_lang.js +393 -0
  717. package/lib/components/table/src/table.vue_vue_type_script_setup_true_lang.js.map +1 -0
  718. package/lib/components/table/src/tableColumn.d.ts +1 -1
  719. package/lib/components/table/src/util.d.ts +3 -1
  720. package/lib/components/table/src/util.js +6 -0
  721. package/lib/components/table/src/util.js.map +1 -1
  722. package/lib/components/table-v2/src/components/header.d.ts +1 -1
  723. package/lib/components/table-v2/src/components/row.d.ts +1 -1
  724. package/lib/components/table-v2/src/table-grid.d.ts +4 -4
  725. package/lib/components/table-v2/src/table-v2.d.ts +6 -6
  726. package/lib/components/tabs/src/tab-nav.d.ts +1 -1
  727. package/lib/components/tabs/src/tab-pane.vue.d.ts +1 -1
  728. package/lib/components/tabs/src/tabs.d.ts +6 -6
  729. package/lib/components/tag/src/tag.d.ts +3 -3
  730. package/lib/components/text/src/text.d.ts +2 -2
  731. package/lib/components/text/src/text.vue_vue_type_script_setup_true_lang.js +4 -2
  732. package/lib/components/text/src/text.vue_vue_type_script_setup_true_lang.js.map +1 -1
  733. package/lib/components/text/src/text2.js.map +1 -1
  734. package/lib/components/time-picker/src/common/picker-range-trigger.vue.d.ts +6 -6
  735. package/lib/components/time-picker/src/common/picker.vue.d.ts +26 -26
  736. package/lib/components/time-picker/src/common/props.d.ts +3 -3
  737. package/lib/components/time-picker/src/time-picker.d.ts +18 -18
  738. package/lib/components/time-select/src/time-select.d.ts +1 -1
  739. package/lib/components/time-select/src/time-select.vue.d.ts +12 -12
  740. package/lib/components/timeline/src/timeline-item.d.ts +3 -3
  741. package/lib/components/timeline/src/timeline-item.vue.d.ts +2 -2
  742. package/lib/components/timeline/src/timeline.d.ts +4 -4
  743. package/lib/components/tooltip/src/content.vue.d.ts +15 -15
  744. package/lib/components/tooltip/src/tooltip.d.ts +2 -2
  745. package/lib/components/tooltip/src/tooltip.vue.d.ts +18 -18
  746. package/lib/components/tooltip/src/trigger.d.ts +1 -1
  747. package/lib/components/tour/src/content.d.ts +1 -1
  748. package/lib/components/tour/src/content.vue.d.ts +1 -1
  749. package/lib/components/tour/src/step.d.ts +1 -1
  750. package/lib/components/tour/src/step.vue.d.ts +1 -1
  751. package/lib/components/tour/src/tour.d.ts +1 -1
  752. package/lib/components/tour/src/tour.vue.d.ts +4 -4
  753. package/lib/components/transfer/src/transfer.vue.d.ts +2 -2
  754. package/lib/components/tree/src/tree-node.vue.d.ts +15 -15
  755. package/lib/components/tree/src/tree.vue.d.ts +16 -16
  756. package/lib/components/tree-select/src/tree-select-option.d.ts +2 -2
  757. package/lib/components/tree-select/src/tree-select.vue.d.ts +27 -27
  758. package/lib/components/tree-v2/src/composables/useTree.d.ts +12 -12
  759. package/lib/components/tree-v2/src/composables/useTree.js +1 -1
  760. package/lib/components/tree-v2/src/composables/useTree.js.map +1 -1
  761. package/lib/components/tree-v2/src/tree.vue.d.ts +3 -3
  762. package/lib/components/upload/src/upload-content.d.ts +1 -1
  763. package/lib/components/upload/src/upload-content.vue.d.ts +3 -3
  764. package/lib/components/upload/src/upload-list.d.ts +1 -1
  765. package/lib/components/upload/src/upload.d.ts +2 -2
  766. package/lib/components/upload/src/upload.vue.d.ts +3 -3
  767. package/lib/components/virtual-list/src/builders/build-grid.d.ts +4 -4
  768. package/lib/components/virtual-list/src/builders/build-list.d.ts +6 -6
  769. package/lib/components/virtual-list/src/components/dynamic-size-grid.d.ts +4 -4
  770. package/lib/components/virtual-list/src/components/dynamic-size-list.d.ts +6 -6
  771. package/lib/components/virtual-list/src/components/fixed-size-grid.d.ts +4 -4
  772. package/lib/components/virtual-list/src/components/fixed-size-list.d.ts +6 -6
  773. package/lib/components/virtual-list/src/components/scrollbar.d.ts +4 -4
  774. package/lib/components/virtual-list/src/props.d.ts +2 -2
  775. package/lib/components/watermark/src/watermark.vue.d.ts +2 -2
  776. package/lib/directives/index.d.ts +1 -1
  777. package/lib/hooks/use-floating/index.d.ts +8 -8
  778. package/lib/hooks/use-popper/index.d.ts +3 -3
  779. package/lib/hooks/use-size/index.d.ts +3 -3
  780. package/lib/index.d.ts +1 -1
  781. package/lib/utils/vue/vnode.d.ts +4 -4
  782. package/lib/version.d.ts +1 -1
  783. package/lib/version.js +1 -1
  784. package/lib/version.js.map +1 -1
  785. package/package.json +2 -2
  786. package/web-types.json +1 -1
  787. package/es/components/table/src/table.vue_vue_type_script_lang.mjs +0 -195
  788. package/es/components/table/src/table.vue_vue_type_script_lang.mjs.map +0 -1
  789. package/lib/components/table/src/table.vue_vue_type_script_lang.js +0 -196
  790. package/lib/components/table/src/table.vue_vue_type_script_lang.js.map +0 -1
@@ -85,38 +85,128 @@ type CellStyle<T extends DefaultRow> = CSSProperties | ((data: {
85
85
  columnIndex: number;
86
86
  }) => CSSProperties);
87
87
  type Layout = 'fixed' | 'auto';
88
- interface TableProps<T extends DefaultRow> {
89
- data: T[];
88
+ interface TableProps<T extends DefaultRow = DefaultRow> {
89
+ /**
90
+ * @description table data
91
+ */
92
+ data?: T[];
93
+ /**
94
+ * @description size of Table
95
+ */
90
96
  size?: ComponentSize;
91
97
  width?: string | number;
98
+ /**
99
+ * @description table's height. By default it has an `auto` height. If its value is a number, the height is measured in pixels; if its value is a string, the value will be assigned to element's style.height, the height is affected by external styles
100
+ */
92
101
  height?: string | number;
102
+ /**
103
+ * @description table's max-height. The legal value is a number or the height in px
104
+ */
93
105
  maxHeight?: string | number;
106
+ /**
107
+ * @description whether width of column automatically fits its container
108
+ */
94
109
  fit?: boolean;
110
+ /**
111
+ * @description whether Table is striped
112
+ */
95
113
  stripe?: boolean;
114
+ /**
115
+ * @description whether Table has vertical border
116
+ */
96
117
  border?: boolean;
118
+ /**
119
+ * @description key of row data, used for optimizing rendering. Required if `reserve-selection` is on or display tree data. When its type is String, multi-level access is supported, e.g. `user.info.id`, but `user.info[0].id` is not supported, in which case `Function` should be used
120
+ */
97
121
  rowKey?: string | ((row: T) => string);
98
122
  context?: Table<T>;
123
+ /**
124
+ * @description whether Table header is visible
125
+ */
99
126
  showHeader?: boolean;
127
+ /**
128
+ * @description whether to display a summary row
129
+ */
100
130
  showSummary?: boolean;
131
+ /**
132
+ * @description displayed text for the first column of summary row
133
+ */
101
134
  sumText?: string;
135
+ /**
136
+ * @description custom summary method
137
+ */
102
138
  summaryMethod?: SummaryMethod<T>;
139
+ /**
140
+ * @description function that returns custom class names for a row, or a string assigning class names for every row
141
+ */
103
142
  rowClassName?: ColumnCls<T>;
143
+ /**
144
+ * @description function that returns custom style for a row, or an object assigning custom style for every row
145
+ */
104
146
  rowStyle?: ColumnStyle<T>;
147
+ /**
148
+ * @description function that returns custom class names for a cell, or a string assigning class names for every cell
149
+ */
105
150
  cellClassName?: CellCls<T>;
151
+ /**
152
+ * @description function that returns custom style for a cell, or an object assigning custom style for every cell
153
+ */
106
154
  cellStyle?: CellStyle<T>;
155
+ /**
156
+ * @description function that returns custom class names for a row in table header, or a string assigning class names for every row in table header
157
+ */
107
158
  headerRowClassName?: ColumnCls<T>;
159
+ /**
160
+ * @description function that returns custom style for a row in table header, or an object assigning custom style for every row in table header
161
+ */
108
162
  headerRowStyle?: ColumnStyle<T>;
163
+ /**
164
+ * @description function that returns custom class names for a cell in table header, or a string assigning class names for every cell in table header
165
+ */
109
166
  headerCellClassName?: CellCls<T>;
167
+ /**
168
+ * @description function that returns custom style for a cell in table header, or an object assigning custom style for every cell in table header
169
+ */
110
170
  headerCellStyle?: CellStyle<T>;
171
+ /**
172
+ * @description whether current row is highlighted
173
+ */
111
174
  highlightCurrentRow?: boolean;
175
+ /**
176
+ * @description key of current row, a set only prop
177
+ */
112
178
  currentRowKey?: string | number;
179
+ /**
180
+ * @description displayed text when data is empty. You can customize this area with `#empty`
181
+ */
113
182
  emptyText?: string;
183
+ /**
184
+ * @description set expanded rows by this prop, prop's value is the keys of expand rows, you should set row-key before using this prop
185
+ */
114
186
  expandRowKeys?: Array<string>;
187
+ /**
188
+ * @description whether expand all rows by default, works when the table has a column type="expand" or contains tree structure data
189
+ */
115
190
  defaultExpandAll?: boolean;
191
+ /**
192
+ * @description enable expandable rows, works when the table has a column type="expand"
193
+ */
116
194
  rowExpandable?: (row: T, index: number) => boolean;
195
+ /**
196
+ * @description set the default sort column and order. property `prop` is used to set default sort column, property `order` is used to set default sort order
197
+ */
117
198
  defaultSort?: Sort;
199
+ /**
200
+ * @description the `effect` of the overflow tooltip
201
+ */
118
202
  tooltipEffect?: string;
203
+ /**
204
+ * @description the options for the overflow tooltip, [see the following tooltip component](tooltip.html#attributes)
205
+ */
119
206
  tooltipOptions?: TableOverflowTooltipOptions;
207
+ /**
208
+ * @description method that returns rowspan and colspan
209
+ */
120
210
  spanMethod?: (data: {
121
211
  row: T;
122
212
  rowIndex: number;
@@ -126,20 +216,61 @@ interface TableProps<T extends DefaultRow> {
126
216
  rowspan: number;
127
217
  colspan: number;
128
218
  } | undefined;
219
+ /**
220
+ * @description controls the behavior of master checkbox in multi-select tables when only some rows are selected (but not all). If true, all rows will be selected, else deselected
221
+ */
129
222
  selectOnIndeterminate?: boolean;
223
+ /**
224
+ * @description horizontal indentation of tree data
225
+ */
130
226
  indent?: number;
227
+ /**
228
+ * @description configuration for rendering nested data
229
+ */
131
230
  treeProps?: TreeProps;
231
+ /**
232
+ * @description whether to lazy loading data
233
+ */
132
234
  lazy?: boolean;
235
+ /**
236
+ * @description method for loading child row data, only works when `lazy` is true
237
+ */
133
238
  load?: (row: T, treeNode: TreeNode, resolve: (data: T[]) => void) => void;
134
239
  className?: string;
135
240
  style?: StyleValue;
241
+ /**
242
+ * @description sets the algorithm used to lay out table cells, rows, and columns
243
+ */
136
244
  tableLayout?: Layout;
245
+ /**
246
+ * @description always show scrollbar
247
+ */
137
248
  scrollbarAlwaysOn?: boolean;
249
+ /**
250
+ * @description ensure main axis minimum-size doesn't follow the content
251
+ */
138
252
  flexible?: boolean;
253
+ /**
254
+ * @description whether to hide extra content and show them in a tooltip when hovering on the cell.It will affect all the table columns
255
+ */
139
256
  showOverflowTooltip?: boolean | TableOverflowTooltipOptions;
257
+ /**
258
+ * @description function that formats cell tooltip content, works when `show-overflow-tooltip` is `true`
259
+ */
140
260
  tooltipFormatter?: TableOverflowTooltipFormatter<T>;
141
261
  appendFilterPanelTo?: string;
142
262
  scrollbarTabindex?: number | string;
263
+ /**
264
+ * @description whether to allow drag the last column
265
+ */
266
+ allowDragLastColumn?: boolean;
267
+ /**
268
+ * @description whether to preserve expanded row content in DOM when collapsed
269
+ */
270
+ preserveExpandedContent?: boolean;
271
+ /**
272
+ * @description whether to use native scrollbars
273
+ */
143
274
  nativeScrollbar?: boolean;
144
275
  }
145
276
  type TableTooltipData<T extends DefaultRow> = Parameters<TableOverflowTooltipFormatter<T>>[0];
@@ -179,7 +310,10 @@ interface TableConfigContext {
179
310
  tooltipOptions?: TableOverflowTooltipOptions;
180
311
  tooltipFormatter?: TableOverflowTooltipFormatter<any>;
181
312
  }
182
- declare const _default: {
313
+ /**
314
+ * @deprecated Removed after 3.0.0, Use `TableProps` instead.
315
+ */
316
+ declare const tableProps: {
183
317
  /**
184
318
  * @description table data
185
319
  */
@@ -191,7 +325,7 @@ declare const _default: {
191
325
  * @description size of Table
192
326
  */
193
327
  size: {
194
- readonly type: PropType<EpPropMergeType<StringConstructor, "" | "default" | "large" | "small", never>>;
328
+ readonly type: PropType<EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
195
329
  readonly required: false;
196
330
  readonly validator: ((val: unknown) => boolean) | undefined;
197
331
  __epPropKey: true;
@@ -406,4 +540,4 @@ declare const _default: {
406
540
  nativeScrollbar: BooleanConstructor;
407
541
  };
408
542
  //#endregion
409
- export { type CellCls, type CellStyle, type ColumnCls, type ColumnStyle, type DefaultRow, type Filter, type RenderExpanded, type RenderRowData, type Sort, type SummaryMethod, type Table, type TableColumnCtx, type TableConfigContext, type TableProps, type TableRefs, type TableSortOrder, type TableTooltipData, type TreeNode, type TreeProps, _default as default };
543
+ export { type CellCls, type CellStyle, type ColumnCls, type ColumnStyle, type DefaultRow, type Filter, type RenderExpanded, type RenderRowData, type Sort, type SummaryMethod, type Table, type TableColumnCtx, type TableConfigContext, type TableProps, type TableRefs, type TableSortOrder, type TableTooltipData, type TreeNode, type TreeProps, tableProps as default, tableProps };
@@ -1,6 +1,9 @@
1
1
  import { useSizeProp } from "../../../../hooks/use-size/index.mjs";
2
2
  //#region ../../packages/components/table/src/table/defaults.ts
3
- var defaults_default = {
3
+ /**
4
+ * @deprecated Removed after 3.0.0, Use `TableProps` instead.
5
+ */
6
+ const tableProps = {
4
7
  /**
5
8
  * @description table data
6
9
  */
@@ -227,6 +230,6 @@ var defaults_default = {
227
230
  nativeScrollbar: Boolean
228
231
  };
229
232
  //#endregion
230
- export { defaults_default as default };
233
+ export { tableProps as default, tableProps };
231
234
 
232
235
  //# sourceMappingURL=defaults.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"defaults.mjs","names":[],"sources":["../../../../../../../packages/components/table/src/table/defaults.ts"],"sourcesContent":["import { useSizeProp } from '@element-plus/hooks'\n\nimport type {\n CSSProperties,\n ComponentInternalInstance,\n PropType,\n Ref,\n StyleValue,\n VNode,\n} from 'vue'\nimport type { ComponentSize } from '@element-plus/constants'\nimport type { Nullable } from '@element-plus/utils'\nimport type { Store } from '../store'\nimport type { TableColumnCtx } from '../table-column/defaults'\nimport type TableLayout from '../table-layout'\nimport type {\n TableOverflowTooltipFormatter,\n TableOverflowTooltipOptions,\n} from '../util'\n\ntype DefaultRow = Record<PropertyKey, any>\n\ninterface TableRefs {\n tableWrapper: HTMLElement\n headerWrapper: HTMLElement\n footerWrapper: HTMLElement\n fixedBodyWrapper: HTMLElement\n rightFixedBodyWrapper: HTMLElement\n bodyWrapper: HTMLElement\n appendWrapper: HTMLElement\n [key: string]: any\n}\n\ninterface TableState {\n isGroup: Ref<boolean>\n resizeState: Ref<{\n width: any\n height: any\n }>\n doLayout: () => void\n debouncedUpdateLayout: () => void\n}\n\ninterface TreeProps {\n hasChildren?: string\n children?: string\n checkStrictly?: boolean\n}\n\ntype HoverState<T extends DefaultRow> = Nullable<{\n cell: HTMLElement\n column: TableColumnCtx<T>\n row: T\n}>\n\ntype RIS<T extends DefaultRow> = {\n row: T\n $index: number\n store: Store<T>\n expanded: boolean\n}\n\ntype RenderExpanded<T extends DefaultRow> = ({\n row,\n $index,\n store,\n expanded,\n}: RIS<T>) => VNode[] | undefined\n\ntype SummaryMethod<T extends DefaultRow> = (data: {\n columns: TableColumnCtx<T>[]\n data: T[]\n}) => (string | VNode)[]\n\ninterface Table<T extends DefaultRow = any> extends ComponentInternalInstance {\n $ready: boolean\n hoverState?: HoverState<T> | null\n renderExpanded: RenderExpanded<T>\n store: Store<T>\n layout: TableLayout<T>\n refs: TableRefs\n tableId: string\n state: TableState\n}\n\ntype ColumnCls<T> = string | ((data: { row: T; rowIndex: number }) => string)\ntype ColumnStyle<T> =\n | CSSProperties\n | ((data: { row: T; rowIndex: number }) => CSSProperties)\ntype CellCls<T extends DefaultRow> =\n | string\n | ((data: {\n row: T\n rowIndex: number\n column: TableColumnCtx<T>\n columnIndex: number\n }) => string)\ntype CellStyle<T extends DefaultRow> =\n | CSSProperties\n | ((data: {\n row: T\n rowIndex: number\n column: TableColumnCtx<T>\n columnIndex: number\n }) => CSSProperties)\ntype Layout = 'fixed' | 'auto'\ninterface TableProps<T extends DefaultRow> {\n data: T[]\n size?: ComponentSize\n width?: string | number\n height?: string | number\n maxHeight?: string | number\n fit?: boolean\n stripe?: boolean\n border?: boolean\n rowKey?: string | ((row: T) => string)\n context?: Table<T>\n showHeader?: boolean\n showSummary?: boolean\n sumText?: string\n summaryMethod?: SummaryMethod<T>\n rowClassName?: ColumnCls<T>\n rowStyle?: ColumnStyle<T>\n cellClassName?: CellCls<T>\n cellStyle?: CellStyle<T>\n headerRowClassName?: ColumnCls<T>\n headerRowStyle?: ColumnStyle<T>\n headerCellClassName?: CellCls<T>\n headerCellStyle?: CellStyle<T>\n highlightCurrentRow?: boolean\n currentRowKey?: string | number\n emptyText?: string\n expandRowKeys?: Array<string>\n defaultExpandAll?: boolean\n rowExpandable?: (row: T, index: number) => boolean\n defaultSort?: Sort\n tooltipEffect?: string\n tooltipOptions?: TableOverflowTooltipOptions\n spanMethod?: (data: {\n row: T\n rowIndex: number\n column: TableColumnCtx<T>\n columnIndex: number\n }) =>\n | number[]\n | {\n rowspan: number\n colspan: number\n }\n | undefined\n selectOnIndeterminate?: boolean\n indent?: number\n treeProps?: TreeProps\n lazy?: boolean\n load?: (row: T, treeNode: TreeNode, resolve: (data: T[]) => void) => void\n className?: string\n style?: StyleValue\n tableLayout?: Layout\n scrollbarAlwaysOn?: boolean\n flexible?: boolean\n showOverflowTooltip?: boolean | TableOverflowTooltipOptions\n tooltipFormatter?: TableOverflowTooltipFormatter<T>\n appendFilterPanelTo?: string\n scrollbarTabindex?: number | string\n nativeScrollbar?: boolean\n}\n\ntype TableTooltipData<T extends DefaultRow> = Parameters<\n TableOverflowTooltipFormatter<T>\n>[0]\ntype TableSortOrder = 'ascending' | 'descending'\n\ninterface Sort {\n prop: string\n order: TableSortOrder\n init?: any\n silent?: any\n}\n\ninterface Filter<T extends DefaultRow> {\n column: TableColumnCtx<T>\n values: string[]\n silent: any\n}\n\ninterface TreeNode {\n expanded?: boolean\n loading?: boolean\n noLazyChildren?: boolean\n indent?: number\n level?: number\n display?: boolean\n}\n\ninterface RenderRowData<T extends DefaultRow> {\n store: Store<T>\n _self: Table<T>\n column: TableColumnCtx<T>\n row: T\n $index: number\n cellIndex: number\n treeNode?: TreeNode\n expanded: boolean\n}\n\ninterface TableConfigContext {\n showOverflowTooltip?: boolean | TableOverflowTooltipOptions\n tooltipEffect?: string\n tooltipOptions?: TableOverflowTooltipOptions\n tooltipFormatter?: TableOverflowTooltipFormatter<any>\n}\n\nexport default {\n /**\n * @description table data\n */\n data: {\n type: Array as PropType<any[]>,\n default: () => [],\n },\n /**\n * @description size of Table\n */\n size: useSizeProp,\n width: [String, Number],\n /**\n * @description table's height. By default it has an `auto` height. If its value is a number, the height is measured in pixels; if its value is a string, the value will be assigned to element's style.height, the height is affected by external styles\n */\n height: [String, Number],\n /**\n * @description table's max-height. The legal value is a number or the height in px\n */\n maxHeight: [String, Number],\n /**\n * @description whether width of column automatically fits its container\n */\n fit: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether Table is striped\n */\n stripe: Boolean,\n /**\n * @description whether Table has vertical border\n */\n border: Boolean,\n /**\n * @description key of row data, used for optimizing rendering. Required if `reserve-selection` is on or display tree data. When its type is String, multi-level access is supported, e.g. `user.info.id`, but `user.info[0].id` is not supported, in which case `Function` should be used\n */\n rowKey: [String, Function] as PropType<TableProps<any>['rowKey']>,\n /**\n * @description whether Table header is visible\n */\n showHeader: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether to display a summary row\n */\n showSummary: Boolean,\n /**\n * @description displayed text for the first column of summary row\n */\n sumText: String,\n /**\n * @description custom summary method\n */\n summaryMethod: Function as PropType<TableProps<any>['summaryMethod']>,\n /**\n * @description function that returns custom class names for a row, or a string assigning class names for every row\n */\n rowClassName: [String, Function] as PropType<TableProps<any>['rowClassName']>,\n /**\n * @description function that returns custom style for a row, or an object assigning custom style for every row\n */\n rowStyle: [Object, Function] as PropType<TableProps<any>['rowStyle']>,\n /**\n * @description function that returns custom class names for a cell, or a string assigning class names for every cell\n */\n cellClassName: [String, Function] as PropType<\n TableProps<any>['cellClassName']\n >,\n /**\n * @description function that returns custom style for a cell, or an object assigning custom style for every cell\n */\n cellStyle: [Object, Function] as PropType<TableProps<any>['cellStyle']>,\n /**\n * @description function that returns custom class names for a row in table header, or a string assigning class names for every row in table header\n */\n headerRowClassName: [String, Function] as PropType<\n TableProps<any>['headerRowClassName']\n >,\n /**\n * @description function that returns custom style for a row in table header, or an object assigning custom style for every row in table header\n */\n headerRowStyle: [Object, Function] as PropType<\n TableProps<any>['headerRowStyle']\n >,\n /**\n * @description function that returns custom class names for a cell in table header, or a string assigning class names for every cell in table header\n */\n headerCellClassName: [String, Function] as PropType<\n TableProps<any>['headerCellClassName']\n >,\n /**\n * @description function that returns custom style for a cell in table header, or an object assigning custom style for every cell in table header\n */\n headerCellStyle: [Object, Function] as PropType<\n TableProps<any>['headerCellStyle']\n >,\n /**\n * @description whether current row is highlighted\n */\n highlightCurrentRow: Boolean,\n /**\n * @description key of current row, a set only prop\n */\n currentRowKey: [String, Number],\n /**\n * @description displayed text when data is empty. You can customize this area with `#empty`\n */\n emptyText: String,\n /**\n * @description set expanded rows by this prop, prop's value is the keys of expand rows, you should set row-key before using this prop\n */\n expandRowKeys: Array as PropType<TableProps<any>['expandRowKeys']>,\n /**\n * @description whether expand all rows by default, works when the table has a column type=\"expand\" or contains tree structure data\n */\n defaultExpandAll: Boolean,\n /**\n * @description enable expandable rows, works when the table has a column type=\"expand\"\n */\n rowExpandable: {\n type: Function as PropType<TableProps<any>['rowExpandable']>,\n },\n /**\n * @description set the default sort column and order. property `prop` is used to set default sort column, property `order` is used to set default sort order\n */\n defaultSort: Object as PropType<TableProps<any>['defaultSort']>,\n /**\n * @description the `effect` of the overflow tooltip\n */\n tooltipEffect: String,\n /**\n * @description the options for the overflow tooltip, [see the following tooltip component](tooltip.html#attributes)\n */\n tooltipOptions: Object as PropType<TableProps<any>['tooltipOptions']>,\n /**\n * @description method that returns rowspan and colspan\n */\n spanMethod: Function as PropType<TableProps<any>['spanMethod']>,\n /**\n * @description controls the behavior of master checkbox in multi-select tables when only some rows are selected (but not all). If true, all rows will be selected, else deselected\n */\n selectOnIndeterminate: {\n type: Boolean,\n default: true,\n },\n /**\n * @description horizontal indentation of tree data\n */\n indent: {\n type: Number,\n default: 16,\n },\n /**\n * @description configuration for rendering nested data\n */\n treeProps: {\n type: Object as PropType<TableProps<any>['treeProps']>,\n default: () => {\n return {\n hasChildren: 'hasChildren',\n children: 'children',\n checkStrictly: false,\n }\n },\n },\n /**\n * @description whether to lazy loading data\n */\n lazy: Boolean,\n /**\n * @description method for loading child row data, only works when `lazy` is true\n */\n load: Function as PropType<TableProps<any>['load']>,\n style: {\n type: [String, Object, Array, Boolean] as PropType<\n TableProps<any>['style']\n >,\n default: () => ({}),\n },\n className: {\n type: String,\n default: '',\n },\n /**\n * @description sets the algorithm used to lay out table cells, rows, and columns\n */\n tableLayout: {\n type: String as PropType<Layout>,\n default: 'fixed',\n },\n /**\n * @description always show scrollbar\n */\n scrollbarAlwaysOn: Boolean,\n /**\n * @description ensure main axis minimum-size doesn't follow the content\n */\n flexible: Boolean,\n /**\n * @description whether to hide extra content and show them in a tooltip when hovering on the cell.It will affect all the table columns\n */\n showOverflowTooltip: {\n type: [Boolean, Object] as PropType<TableProps<any>['showOverflowTooltip']>,\n default: undefined,\n },\n /**\n * @description function that formats cell tooltip content, works when `show-overflow-tooltip` is `true`\n */\n tooltipFormatter: Function as PropType<TableProps<any>['tooltipFormatter']>,\n appendFilterPanelTo: String,\n scrollbarTabindex: {\n type: [Number, String],\n default: undefined,\n },\n /**\n * @description whether to allow drag the last column\n */\n allowDragLastColumn: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether to preserve expanded row content in DOM when collapsed\n */\n preserveExpandedContent: Boolean,\n /**\n * @description whether to use native scrollbars\n */\n nativeScrollbar: Boolean,\n}\nexport type {\n SummaryMethod,\n Table,\n TableProps,\n TableRefs,\n ColumnCls,\n ColumnStyle,\n CellCls,\n CellStyle,\n DefaultRow,\n TreeNode,\n RenderRowData,\n Sort,\n Filter,\n TableColumnCtx,\n TreeProps,\n TableTooltipData,\n TableSortOrder,\n RenderExpanded,\n TableConfigContext,\n}\n"],"mappings":";;AAoNA,IAAA,mBAAe;;;;CAIb,MAAM;EACJ,MAAM;EACN,eAAe,EAAE;EAClB;;;;CAID,MAAM;CACN,OAAO,CAAC,QAAQ,OAAO;;;;CAIvB,QAAQ,CAAC,QAAQ,OAAO;;;;CAIxB,WAAW,CAAC,QAAQ,OAAO;;;;CAI3B,KAAK;EACH,MAAM;EACN,SAAS;EACV;;;;CAID,QAAQ;;;;CAIR,QAAQ;;;;CAIR,QAAQ,CAAC,QAAQ,SAAS;;;;CAI1B,YAAY;EACV,MAAM;EACN,SAAS;EACV;;;;CAID,aAAa;;;;CAIb,SAAS;;;;CAIT,eAAe;;;;CAIf,cAAc,CAAC,QAAQ,SAAS;;;;CAIhC,UAAU,CAAC,QAAQ,SAAS;;;;CAI5B,eAAe,CAAC,QAAQ,SAAS;;;;CAMjC,WAAW,CAAC,QAAQ,SAAS;;;;CAI7B,oBAAoB,CAAC,QAAQ,SAAS;;;;CAMtC,gBAAgB,CAAC,QAAQ,SAAS;;;;CAMlC,qBAAqB,CAAC,QAAQ,SAAS;;;;CAMvC,iBAAiB,CAAC,QAAQ,SAAS;;;;CAMnC,qBAAqB;;;;CAIrB,eAAe,CAAC,QAAQ,OAAO;;;;CAI/B,WAAW;;;;CAIX,eAAe;;;;CAIf,kBAAkB;;;;CAIlB,eAAe,EACb,MAAM,UACP;;;;CAID,aAAa;;;;CAIb,eAAe;;;;CAIf,gBAAgB;;;;CAIhB,YAAY;;;;CAIZ,uBAAuB;EACrB,MAAM;EACN,SAAS;EACV;;;;CAID,QAAQ;EACN,MAAM;EACN,SAAS;EACV;;;;CAID,WAAW;EACT,MAAM;EACN,eAAe;GACb,OAAO;IACL,aAAa;IACb,UAAU;IACV,eAAe;IAChB;;EAEJ;;;;CAID,MAAM;;;;CAIN,MAAM;CACN,OAAO;EACL,MAAM;GAAC;GAAQ;GAAQ;GAAO;GAAQ;EAGtC,gBAAgB,EAAE;EACnB;CACD,WAAW;EACT,MAAM;EACN,SAAS;EACV;;;;CAID,aAAa;EACX,MAAM;EACN,SAAS;EACV;;;;CAID,mBAAmB;;;;CAInB,UAAU;;;;CAIV,qBAAqB;EACnB,MAAM,CAAC,SAAS,OAAO;EACvB,SAAS,KAAA;EACV;;;;CAID,kBAAkB;CAClB,qBAAqB;CACrB,mBAAmB;EACjB,MAAM,CAAC,QAAQ,OAAO;EACtB,SAAS,KAAA;EACV;;;;CAID,qBAAqB;EACnB,MAAM;EACN,SAAS;EACV;;;;CAID,yBAAyB;;;;CAIzB,iBAAiB;CAClB"}
1
+ {"version":3,"file":"defaults.mjs","names":[],"sources":["../../../../../../../packages/components/table/src/table/defaults.ts"],"sourcesContent":["import { useSizeProp } from '@element-plus/hooks'\n\nimport type {\n CSSProperties,\n ComponentInternalInstance,\n PropType,\n Ref,\n StyleValue,\n VNode,\n} from 'vue'\nimport type { ComponentSize } from '@element-plus/constants'\nimport type { Nullable } from '@element-plus/utils'\nimport type { Store } from '../store'\nimport type { TableColumnCtx } from '../table-column/defaults'\nimport type TableLayout from '../table-layout'\nimport type {\n TableOverflowTooltipFormatter,\n TableOverflowTooltipOptions,\n} from '../util'\n\ntype DefaultRow = Record<PropertyKey, any>\n\ninterface TableRefs {\n tableWrapper: HTMLElement\n headerWrapper: HTMLElement\n footerWrapper: HTMLElement\n fixedBodyWrapper: HTMLElement\n rightFixedBodyWrapper: HTMLElement\n bodyWrapper: HTMLElement\n appendWrapper: HTMLElement\n [key: string]: any\n}\n\ninterface TableState {\n isGroup: Ref<boolean>\n resizeState: Ref<{\n width: any\n height: any\n }>\n doLayout: () => void\n debouncedUpdateLayout: () => void\n}\n\ninterface TreeProps {\n hasChildren?: string\n children?: string\n checkStrictly?: boolean\n}\n\ntype HoverState<T extends DefaultRow> = Nullable<{\n cell: HTMLElement\n column: TableColumnCtx<T>\n row: T\n}>\n\ntype RIS<T extends DefaultRow> = {\n row: T\n $index: number\n store: Store<T>\n expanded: boolean\n}\n\ntype RenderExpanded<T extends DefaultRow> = ({\n row,\n $index,\n store,\n expanded,\n}: RIS<T>) => VNode[] | undefined\n\ntype SummaryMethod<T extends DefaultRow> = (data: {\n columns: TableColumnCtx<T>[]\n data: T[]\n}) => (string | VNode)[]\n\ninterface Table<T extends DefaultRow = any> extends ComponentInternalInstance {\n $ready: boolean\n hoverState?: HoverState<T> | null\n renderExpanded: RenderExpanded<T>\n store: Store<T>\n layout: TableLayout<T>\n refs: TableRefs\n tableId: string\n state: TableState\n}\n\ntype ColumnCls<T> = string | ((data: { row: T; rowIndex: number }) => string)\ntype ColumnStyle<T> =\n | CSSProperties\n | ((data: { row: T; rowIndex: number }) => CSSProperties)\ntype CellCls<T extends DefaultRow> =\n | string\n | ((data: {\n row: T\n rowIndex: number\n column: TableColumnCtx<T>\n columnIndex: number\n }) => string)\ntype CellStyle<T extends DefaultRow> =\n | CSSProperties\n | ((data: {\n row: T\n rowIndex: number\n column: TableColumnCtx<T>\n columnIndex: number\n }) => CSSProperties)\ntype Layout = 'fixed' | 'auto'\ninterface TableProps<T extends DefaultRow = DefaultRow> {\n /**\n * @description table data\n */\n data?: T[]\n /**\n * @description size of Table\n */\n size?: ComponentSize\n width?: string | number\n /**\n * @description table's height. By default it has an `auto` height. If its value is a number, the height is measured in pixels; if its value is a string, the value will be assigned to element's style.height, the height is affected by external styles\n */\n height?: string | number\n /**\n * @description table's max-height. The legal value is a number or the height in px\n */\n maxHeight?: string | number\n /**\n * @description whether width of column automatically fits its container\n */\n fit?: boolean\n /**\n * @description whether Table is striped\n */\n stripe?: boolean\n /**\n * @description whether Table has vertical border\n */\n border?: boolean\n /**\n * @description key of row data, used for optimizing rendering. Required if `reserve-selection` is on or display tree data. When its type is String, multi-level access is supported, e.g. `user.info.id`, but `user.info[0].id` is not supported, in which case `Function` should be used\n */\n rowKey?: string | ((row: T) => string)\n context?: Table<T>\n /**\n * @description whether Table header is visible\n */\n showHeader?: boolean\n /**\n * @description whether to display a summary row\n */\n showSummary?: boolean\n /**\n * @description displayed text for the first column of summary row\n */\n sumText?: string\n /**\n * @description custom summary method\n */\n summaryMethod?: SummaryMethod<T>\n /**\n * @description function that returns custom class names for a row, or a string assigning class names for every row\n */\n rowClassName?: ColumnCls<T>\n /**\n * @description function that returns custom style for a row, or an object assigning custom style for every row\n */\n rowStyle?: ColumnStyle<T>\n /**\n * @description function that returns custom class names for a cell, or a string assigning class names for every cell\n */\n cellClassName?: CellCls<T>\n /**\n * @description function that returns custom style for a cell, or an object assigning custom style for every cell\n */\n cellStyle?: CellStyle<T>\n /**\n * @description function that returns custom class names for a row in table header, or a string assigning class names for every row in table header\n */\n headerRowClassName?: ColumnCls<T>\n /**\n * @description function that returns custom style for a row in table header, or an object assigning custom style for every row in table header\n */\n headerRowStyle?: ColumnStyle<T>\n /**\n * @description function that returns custom class names for a cell in table header, or a string assigning class names for every cell in table header\n */\n headerCellClassName?: CellCls<T>\n /**\n * @description function that returns custom style for a cell in table header, or an object assigning custom style for every cell in table header\n */\n headerCellStyle?: CellStyle<T>\n /**\n * @description whether current row is highlighted\n */\n highlightCurrentRow?: boolean\n /**\n * @description key of current row, a set only prop\n */\n currentRowKey?: string | number\n /**\n * @description displayed text when data is empty. You can customize this area with `#empty`\n */\n emptyText?: string\n /**\n * @description set expanded rows by this prop, prop's value is the keys of expand rows, you should set row-key before using this prop\n */\n expandRowKeys?: Array<string>\n /**\n * @description whether expand all rows by default, works when the table has a column type=\"expand\" or contains tree structure data\n */\n defaultExpandAll?: boolean\n /**\n * @description enable expandable rows, works when the table has a column type=\"expand\"\n */\n rowExpandable?: (row: T, index: number) => boolean\n /**\n * @description set the default sort column and order. property `prop` is used to set default sort column, property `order` is used to set default sort order\n */\n defaultSort?: Sort\n /**\n * @description the `effect` of the overflow tooltip\n */\n tooltipEffect?: string\n /**\n * @description the options for the overflow tooltip, [see the following tooltip component](tooltip.html#attributes)\n */\n tooltipOptions?: TableOverflowTooltipOptions\n /**\n * @description method that returns rowspan and colspan\n */\n spanMethod?: (data: {\n row: T\n rowIndex: number\n column: TableColumnCtx<T>\n columnIndex: number\n }) =>\n | number[]\n | {\n rowspan: number\n colspan: number\n }\n | undefined\n /**\n * @description controls the behavior of master checkbox in multi-select tables when only some rows are selected (but not all). If true, all rows will be selected, else deselected\n */\n selectOnIndeterminate?: boolean\n /**\n * @description horizontal indentation of tree data\n */\n indent?: number\n /**\n * @description configuration for rendering nested data\n */\n treeProps?: TreeProps\n /**\n * @description whether to lazy loading data\n */\n lazy?: boolean\n /**\n * @description method for loading child row data, only works when `lazy` is true\n */\n load?: (row: T, treeNode: TreeNode, resolve: (data: T[]) => void) => void\n className?: string\n style?: StyleValue\n /**\n * @description sets the algorithm used to lay out table cells, rows, and columns\n */\n tableLayout?: Layout\n /**\n * @description always show scrollbar\n */\n scrollbarAlwaysOn?: boolean\n /**\n * @description ensure main axis minimum-size doesn't follow the content\n */\n flexible?: boolean\n /**\n * @description whether to hide extra content and show them in a tooltip when hovering on the cell.It will affect all the table columns\n */\n showOverflowTooltip?: boolean | TableOverflowTooltipOptions\n /**\n * @description function that formats cell tooltip content, works when `show-overflow-tooltip` is `true`\n */\n tooltipFormatter?: TableOverflowTooltipFormatter<T>\n appendFilterPanelTo?: string\n scrollbarTabindex?: number | string\n /**\n * @description whether to allow drag the last column\n */\n allowDragLastColumn?: boolean\n /**\n * @description whether to preserve expanded row content in DOM when collapsed\n */\n preserveExpandedContent?: boolean\n /**\n * @description whether to use native scrollbars\n */\n nativeScrollbar?: boolean\n}\n\ntype TableTooltipData<T extends DefaultRow> = Parameters<\n TableOverflowTooltipFormatter<T>\n>[0]\ntype TableSortOrder = 'ascending' | 'descending'\n\ninterface Sort {\n prop: string\n order: TableSortOrder\n init?: any\n silent?: any\n}\n\ninterface Filter<T extends DefaultRow> {\n column: TableColumnCtx<T>\n values: string[]\n silent: any\n}\n\ninterface TreeNode {\n expanded?: boolean\n loading?: boolean\n noLazyChildren?: boolean\n indent?: number\n level?: number\n display?: boolean\n}\n\ninterface RenderRowData<T extends DefaultRow> {\n store: Store<T>\n _self: Table<T>\n column: TableColumnCtx<T>\n row: T\n $index: number\n cellIndex: number\n treeNode?: TreeNode\n expanded: boolean\n}\n\ninterface TableConfigContext {\n showOverflowTooltip?: boolean | TableOverflowTooltipOptions\n tooltipEffect?: string\n tooltipOptions?: TableOverflowTooltipOptions\n tooltipFormatter?: TableOverflowTooltipFormatter<any>\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `TableProps` instead.\n */\nexport const tableProps = {\n /**\n * @description table data\n */\n data: {\n type: Array as PropType<any[]>,\n default: () => [],\n },\n /**\n * @description size of Table\n */\n size: useSizeProp,\n width: [String, Number],\n /**\n * @description table's height. By default it has an `auto` height. If its value is a number, the height is measured in pixels; if its value is a string, the value will be assigned to element's style.height, the height is affected by external styles\n */\n height: [String, Number],\n /**\n * @description table's max-height. The legal value is a number or the height in px\n */\n maxHeight: [String, Number],\n /**\n * @description whether width of column automatically fits its container\n */\n fit: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether Table is striped\n */\n stripe: Boolean,\n /**\n * @description whether Table has vertical border\n */\n border: Boolean,\n /**\n * @description key of row data, used for optimizing rendering. Required if `reserve-selection` is on or display tree data. When its type is String, multi-level access is supported, e.g. `user.info.id`, but `user.info[0].id` is not supported, in which case `Function` should be used\n */\n rowKey: [String, Function] as PropType<TableProps<any>['rowKey']>,\n /**\n * @description whether Table header is visible\n */\n showHeader: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether to display a summary row\n */\n showSummary: Boolean,\n /**\n * @description displayed text for the first column of summary row\n */\n sumText: String,\n /**\n * @description custom summary method\n */\n summaryMethod: Function as PropType<TableProps<any>['summaryMethod']>,\n /**\n * @description function that returns custom class names for a row, or a string assigning class names for every row\n */\n rowClassName: [String, Function] as PropType<TableProps<any>['rowClassName']>,\n /**\n * @description function that returns custom style for a row, or an object assigning custom style for every row\n */\n rowStyle: [Object, Function] as PropType<TableProps<any>['rowStyle']>,\n /**\n * @description function that returns custom class names for a cell, or a string assigning class names for every cell\n */\n cellClassName: [String, Function] as PropType<\n TableProps<any>['cellClassName']\n >,\n /**\n * @description function that returns custom style for a cell, or an object assigning custom style for every cell\n */\n cellStyle: [Object, Function] as PropType<TableProps<any>['cellStyle']>,\n /**\n * @description function that returns custom class names for a row in table header, or a string assigning class names for every row in table header\n */\n headerRowClassName: [String, Function] as PropType<\n TableProps<any>['headerRowClassName']\n >,\n /**\n * @description function that returns custom style for a row in table header, or an object assigning custom style for every row in table header\n */\n headerRowStyle: [Object, Function] as PropType<\n TableProps<any>['headerRowStyle']\n >,\n /**\n * @description function that returns custom class names for a cell in table header, or a string assigning class names for every cell in table header\n */\n headerCellClassName: [String, Function] as PropType<\n TableProps<any>['headerCellClassName']\n >,\n /**\n * @description function that returns custom style for a cell in table header, or an object assigning custom style for every cell in table header\n */\n headerCellStyle: [Object, Function] as PropType<\n TableProps<any>['headerCellStyle']\n >,\n /**\n * @description whether current row is highlighted\n */\n highlightCurrentRow: Boolean,\n /**\n * @description key of current row, a set only prop\n */\n currentRowKey: [String, Number],\n /**\n * @description displayed text when data is empty. You can customize this area with `#empty`\n */\n emptyText: String,\n /**\n * @description set expanded rows by this prop, prop's value is the keys of expand rows, you should set row-key before using this prop\n */\n expandRowKeys: Array as PropType<TableProps<any>['expandRowKeys']>,\n /**\n * @description whether expand all rows by default, works when the table has a column type=\"expand\" or contains tree structure data\n */\n defaultExpandAll: Boolean,\n /**\n * @description enable expandable rows, works when the table has a column type=\"expand\"\n */\n rowExpandable: {\n type: Function as PropType<TableProps<any>['rowExpandable']>,\n },\n /**\n * @description set the default sort column and order. property `prop` is used to set default sort column, property `order` is used to set default sort order\n */\n defaultSort: Object as PropType<TableProps<any>['defaultSort']>,\n /**\n * @description the `effect` of the overflow tooltip\n */\n tooltipEffect: String,\n /**\n * @description the options for the overflow tooltip, [see the following tooltip component](tooltip.html#attributes)\n */\n tooltipOptions: Object as PropType<TableProps<any>['tooltipOptions']>,\n /**\n * @description method that returns rowspan and colspan\n */\n spanMethod: Function as PropType<TableProps<any>['spanMethod']>,\n /**\n * @description controls the behavior of master checkbox in multi-select tables when only some rows are selected (but not all). If true, all rows will be selected, else deselected\n */\n selectOnIndeterminate: {\n type: Boolean,\n default: true,\n },\n /**\n * @description horizontal indentation of tree data\n */\n indent: {\n type: Number,\n default: 16,\n },\n /**\n * @description configuration for rendering nested data\n */\n treeProps: {\n type: Object as PropType<TableProps<any>['treeProps']>,\n default: () => {\n return {\n hasChildren: 'hasChildren',\n children: 'children',\n checkStrictly: false,\n }\n },\n },\n /**\n * @description whether to lazy loading data\n */\n lazy: Boolean,\n /**\n * @description method for loading child row data, only works when `lazy` is true\n */\n load: Function as PropType<TableProps<any>['load']>,\n style: {\n type: [String, Object, Array, Boolean] as PropType<\n TableProps<any>['style']\n >,\n default: () => ({}),\n },\n className: {\n type: String,\n default: '',\n },\n /**\n * @description sets the algorithm used to lay out table cells, rows, and columns\n */\n tableLayout: {\n type: String as PropType<Layout>,\n default: 'fixed',\n },\n /**\n * @description always show scrollbar\n */\n scrollbarAlwaysOn: Boolean,\n /**\n * @description ensure main axis minimum-size doesn't follow the content\n */\n flexible: Boolean,\n /**\n * @description whether to hide extra content and show them in a tooltip when hovering on the cell.It will affect all the table columns\n */\n showOverflowTooltip: {\n type: [Boolean, Object] as PropType<TableProps<any>['showOverflowTooltip']>,\n default: undefined,\n },\n /**\n * @description function that formats cell tooltip content, works when `show-overflow-tooltip` is `true`\n */\n tooltipFormatter: Function as PropType<TableProps<any>['tooltipFormatter']>,\n appendFilterPanelTo: String,\n scrollbarTabindex: {\n type: [Number, String],\n default: undefined,\n },\n /**\n * @description whether to allow drag the last column\n */\n allowDragLastColumn: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether to preserve expanded row content in DOM when collapsed\n */\n preserveExpandedContent: Boolean,\n /**\n * @description whether to use native scrollbars\n */\n nativeScrollbar: Boolean,\n}\nexport type {\n SummaryMethod,\n Table,\n TableProps,\n TableRefs,\n ColumnCls,\n ColumnStyle,\n CellCls,\n CellStyle,\n DefaultRow,\n TreeNode,\n RenderRowData,\n Sort,\n Filter,\n TableColumnCtx,\n TreeProps,\n TableTooltipData,\n TableSortOrder,\n RenderExpanded,\n TableConfigContext,\n}\n\nexport default tableProps\n"],"mappings":";;;;;AA0VA,MAAa,aAAa;;;;CAIxB,MAAM;EACJ,MAAM;EACN,eAAe,EAAE;EAClB;;;;CAID,MAAM;CACN,OAAO,CAAC,QAAQ,OAAO;;;;CAIvB,QAAQ,CAAC,QAAQ,OAAO;;;;CAIxB,WAAW,CAAC,QAAQ,OAAO;;;;CAI3B,KAAK;EACH,MAAM;EACN,SAAS;EACV;;;;CAID,QAAQ;;;;CAIR,QAAQ;;;;CAIR,QAAQ,CAAC,QAAQ,SAAS;;;;CAI1B,YAAY;EACV,MAAM;EACN,SAAS;EACV;;;;CAID,aAAa;;;;CAIb,SAAS;;;;CAIT,eAAe;;;;CAIf,cAAc,CAAC,QAAQ,SAAS;;;;CAIhC,UAAU,CAAC,QAAQ,SAAS;;;;CAI5B,eAAe,CAAC,QAAQ,SAAS;;;;CAMjC,WAAW,CAAC,QAAQ,SAAS;;;;CAI7B,oBAAoB,CAAC,QAAQ,SAAS;;;;CAMtC,gBAAgB,CAAC,QAAQ,SAAS;;;;CAMlC,qBAAqB,CAAC,QAAQ,SAAS;;;;CAMvC,iBAAiB,CAAC,QAAQ,SAAS;;;;CAMnC,qBAAqB;;;;CAIrB,eAAe,CAAC,QAAQ,OAAO;;;;CAI/B,WAAW;;;;CAIX,eAAe;;;;CAIf,kBAAkB;;;;CAIlB,eAAe,EACb,MAAM,UACP;;;;CAID,aAAa;;;;CAIb,eAAe;;;;CAIf,gBAAgB;;;;CAIhB,YAAY;;;;CAIZ,uBAAuB;EACrB,MAAM;EACN,SAAS;EACV;;;;CAID,QAAQ;EACN,MAAM;EACN,SAAS;EACV;;;;CAID,WAAW;EACT,MAAM;EACN,eAAe;GACb,OAAO;IACL,aAAa;IACb,UAAU;IACV,eAAe;IAChB;;EAEJ;;;;CAID,MAAM;;;;CAIN,MAAM;CACN,OAAO;EACL,MAAM;GAAC;GAAQ;GAAQ;GAAO;GAAQ;EAGtC,gBAAgB,EAAE;EACnB;CACD,WAAW;EACT,MAAM;EACN,SAAS;EACV;;;;CAID,aAAa;EACX,MAAM;EACN,SAAS;EACV;;;;CAID,mBAAmB;;;;CAInB,UAAU;;;;CAIV,qBAAqB;EACnB,MAAM,CAAC,SAAS,OAAO;EACvB,SAAS,KAAA;EACV;;;;CAID,kBAAkB;CAClB,qBAAqB;CACrB,mBAAmB;EACjB,MAAM,CAAC,QAAQ,OAAO;EACtB,SAAS,KAAA;EACV;;;;CAID,qBAAqB;EACnB,MAAM;EACN,SAAS;EACV;;;;CAID,yBAAyB;;;;CAIzB,iBAAiB;CAClB"}
@@ -1,6 +1,6 @@
1
- import { Table } from "./defaults.js";
1
+ import { DefaultRow, Table } from "./defaults.js";
2
2
 
3
3
  //#region ../../packages/components/table/src/table/key-render-helper.d.ts
4
- declare function useKeyRender(table: Table<[]>): void;
4
+ declare function useKeyRender<T extends DefaultRow>(table: Table<T>): void;
5
5
  //#endregion
6
6
  export { useKeyRender as default };
@@ -1 +1 @@
1
- {"version":3,"file":"key-render-helper.mjs","names":[],"sources":["../../../../../../../packages/components/table/src/table/key-render-helper.ts"],"sourcesContent":["import { onMounted, onUnmounted } from 'vue'\n\nimport type { Table } from './defaults'\n\nexport default function useKeyRender(table: Table<[]>) {\n let observer: MutationObserver | undefined\n\n const initWatchDom = () => {\n const el = table.vnode.el\n const columnsWrapper = (el as HTMLElement).querySelector('.hidden-columns')\n const config = { childList: true, subtree: true }\n const updateOrderFns = table.store.states.updateOrderFns\n observer = new MutationObserver(() => {\n updateOrderFns.forEach((fn: () => void) => fn())\n })\n\n observer.observe(columnsWrapper!, config)\n }\n\n onMounted(() => {\n // fix https://github.com/element-plus/element-plus/issues/8528\n initWatchDom()\n })\n\n onUnmounted(() => {\n observer?.disconnect()\n })\n}\n"],"mappings":";;AAIA,SAAwB,aAAa,OAAkB;CACrD,IAAI;CAEJ,MAAM,qBAAqB;EAEzB,MAAM,iBADK,MAAM,MAAM,GACoB,cAAc,kBAAkB;EAC3E,MAAM,SAAS;GAAE,WAAW;GAAM,SAAS;GAAM;EACjD,MAAM,iBAAiB,MAAM,MAAM,OAAO;EAC1C,WAAW,IAAI,uBAAuB;GACpC,eAAe,SAAS,OAAmB,IAAI,CAAC;IAChD;EAEF,SAAS,QAAQ,gBAAiB,OAAO;;CAG3C,gBAAgB;EAEd,cAAc;GACd;CAEF,kBAAkB;EAChB,UAAU,YAAY;GACtB"}
1
+ {"version":3,"file":"key-render-helper.mjs","names":[],"sources":["../../../../../../../packages/components/table/src/table/key-render-helper.ts"],"sourcesContent":["import { onMounted, onUnmounted } from 'vue'\n\nimport type { DefaultRow, Table } from './defaults'\n\nexport default function useKeyRender<T extends DefaultRow>(table: Table<T>) {\n let observer: MutationObserver | undefined\n\n const initWatchDom = () => {\n const el = table.vnode.el\n const columnsWrapper = (el as HTMLElement).querySelector('.hidden-columns')\n const config = { childList: true, subtree: true }\n const updateOrderFns = table.store.states.updateOrderFns\n observer = new MutationObserver(() => {\n updateOrderFns.forEach((fn: () => void) => fn())\n })\n\n observer.observe(columnsWrapper!, config)\n }\n\n onMounted(() => {\n // fix https://github.com/element-plus/element-plus/issues/8528\n initWatchDom()\n })\n\n onUnmounted(() => {\n observer?.disconnect()\n })\n}\n"],"mappings":";;AAIA,SAAwB,aAAmC,OAAiB;CAC1E,IAAI;CAEJ,MAAM,qBAAqB;EAEzB,MAAM,iBADK,MAAM,MAAM,GACoB,cAAc,kBAAkB;EAC3E,MAAM,SAAS;GAAE,WAAW;GAAM,SAAS;GAAM;EACjD,MAAM,iBAAiB,MAAM,MAAM,OAAO;EAC1C,WAAW,IAAI,uBAAuB;GACpC,eAAe,SAAS,OAAmB,IAAI,CAAC;IAChD;EAEF,SAAS,QAAQ,gBAAiB,OAAO;;CAG3C,gBAAgB;EAEd,cAAc;GACd;CAEF,kBAAkB;EAChB,UAAU,YAAY;GACtB"}
@@ -11,7 +11,7 @@ declare function useStyle<T extends DefaultRow>(props: TableProps<T>, layout: Ta
11
11
  isGroup: _$vue.Ref<boolean, boolean>;
12
12
  handleMouseLeave: () => void;
13
13
  handleHeaderFooterMousewheel: (_event: WheelEvent, data: any) => void;
14
- tableSize: _$vue.ComputedRef<"" | "default" | "large" | "small">;
14
+ tableSize: _$vue.ComputedRef<"" | "default" | "small" | "large">;
15
15
  emptyBlockStyle: _$vue.ComputedRef<{
16
16
  width: string;
17
17
  height: string;
@@ -3,7 +3,7 @@ import { Store } from "../store/index.js";
3
3
 
4
4
  //#region ../../packages/components/table/src/table/utils-helper.d.ts
5
5
  declare function useUtils<T extends DefaultRow>(store: Store<T>): {
6
- setCurrentRow: (row: T) => void;
6
+ setCurrentRow: (row?: T) => void;
7
7
  getSelectionRows: () => T[];
8
8
  toggleRowSelection: (row: T, selected?: boolean, ignoreSelectable?: boolean) => void;
9
9
  clearSelection: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"utils-helper.mjs","names":[],"sources":["../../../../../../../packages/components/table/src/table/utils-helper.ts"],"sourcesContent":["import type { Store } from '../store'\nimport type { DefaultRow } from './defaults'\n\nfunction useUtils<T extends DefaultRow>(store: Store<T>) {\n const setCurrentRow = (row: T) => {\n store.commit('setCurrentRow', row)\n }\n const getSelectionRows = () => {\n return store.getSelectionRows()\n }\n const toggleRowSelection = (\n row: T,\n selected?: boolean,\n ignoreSelectable = true\n ) => {\n store.toggleRowSelection(row, selected, false, ignoreSelectable)\n store.updateAllSelected()\n }\n const clearSelection = () => {\n store.clearSelection()\n }\n const clearFilter = (columnKeys?: string[] | string) => {\n store.clearFilter(columnKeys)\n }\n const toggleAllSelection = () => {\n store.commit('toggleAllSelection')\n }\n const toggleRowExpansion = (row: T, expanded?: boolean) => {\n store.toggleRowExpansionAdapter(row, expanded)\n }\n const clearSort = () => {\n store.clearSort()\n }\n const sort = (prop: string, order: string) => {\n store.commit('sort', { prop, order })\n }\n const updateKeyChildren = (key: string, data: T[]) => {\n store.updateKeyChildren(key, data)\n }\n\n return {\n setCurrentRow,\n getSelectionRows,\n toggleRowSelection,\n clearSelection,\n clearFilter,\n toggleAllSelection,\n toggleRowExpansion,\n clearSort,\n sort,\n updateKeyChildren,\n }\n}\n\nexport default useUtils\n"],"mappings":";AAGA,SAAS,SAA+B,OAAiB;CACvD,MAAM,iBAAiB,QAAW;EAChC,MAAM,OAAO,iBAAiB,IAAI;;CAEpC,MAAM,yBAAyB;EAC7B,OAAO,MAAM,kBAAkB;;CAEjC,MAAM,sBACJ,KACA,UACA,mBAAmB,SAChB;EACH,MAAM,mBAAmB,KAAK,UAAU,OAAO,iBAAiB;EAChE,MAAM,mBAAmB;;CAE3B,MAAM,uBAAuB;EAC3B,MAAM,gBAAgB;;CAExB,MAAM,eAAe,eAAmC;EACtD,MAAM,YAAY,WAAW;;CAE/B,MAAM,2BAA2B;EAC/B,MAAM,OAAO,qBAAqB;;CAEpC,MAAM,sBAAsB,KAAQ,aAAuB;EACzD,MAAM,0BAA0B,KAAK,SAAS;;CAEhD,MAAM,kBAAkB;EACtB,MAAM,WAAW;;CAEnB,MAAM,QAAQ,MAAc,UAAkB;EAC5C,MAAM,OAAO,QAAQ;GAAE;GAAM;GAAO,CAAC;;CAEvC,MAAM,qBAAqB,KAAa,SAAc;EACpD,MAAM,kBAAkB,KAAK,KAAK;;CAGpC,OAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD"}
1
+ {"version":3,"file":"utils-helper.mjs","names":[],"sources":["../../../../../../../packages/components/table/src/table/utils-helper.ts"],"sourcesContent":["import type { Store } from '../store'\nimport type { DefaultRow } from './defaults'\n\nfunction useUtils<T extends DefaultRow>(store: Store<T>) {\n const setCurrentRow = (row?: T) => {\n store.commit('setCurrentRow', row)\n }\n const getSelectionRows = () => {\n return store.getSelectionRows()\n }\n const toggleRowSelection = (\n row: T,\n selected?: boolean,\n ignoreSelectable = true\n ) => {\n store.toggleRowSelection(row, selected, false, ignoreSelectable)\n store.updateAllSelected()\n }\n const clearSelection = () => {\n store.clearSelection()\n }\n const clearFilter = (columnKeys?: string[] | string) => {\n store.clearFilter(columnKeys)\n }\n const toggleAllSelection = () => {\n store.commit('toggleAllSelection')\n }\n const toggleRowExpansion = (row: T, expanded?: boolean) => {\n store.toggleRowExpansionAdapter(row, expanded)\n }\n const clearSort = () => {\n store.clearSort()\n }\n const sort = (prop: string, order: string) => {\n store.commit('sort', { prop, order })\n }\n const updateKeyChildren = (key: string, data: T[]) => {\n store.updateKeyChildren(key, data)\n }\n\n return {\n setCurrentRow,\n getSelectionRows,\n toggleRowSelection,\n clearSelection,\n clearFilter,\n toggleAllSelection,\n toggleRowExpansion,\n clearSort,\n sort,\n updateKeyChildren,\n }\n}\n\nexport default useUtils\n"],"mappings":";AAGA,SAAS,SAA+B,OAAiB;CACvD,MAAM,iBAAiB,QAAY;EACjC,MAAM,OAAO,iBAAiB,IAAI;;CAEpC,MAAM,yBAAyB;EAC7B,OAAO,MAAM,kBAAkB;;CAEjC,MAAM,sBACJ,KACA,UACA,mBAAmB,SAChB;EACH,MAAM,mBAAmB,KAAK,UAAU,OAAO,iBAAiB;EAChE,MAAM,mBAAmB;;CAE3B,MAAM,uBAAuB;EAC3B,MAAM,gBAAgB;;CAExB,MAAM,eAAe,eAAmC;EACtD,MAAM,YAAY,WAAW;;CAE/B,MAAM,2BAA2B;EAC/B,MAAM,OAAO,qBAAqB;;CAEpC,MAAM,sBAAsB,KAAQ,aAAuB;EACzD,MAAM,0BAA0B,KAAK,SAAS;;CAEhD,MAAM,kBAAkB;EACtB,MAAM,WAAW;;CAEnB,MAAM,QAAQ,MAAc,UAAkB;EAC5C,MAAM,OAAO,QAAQ;GAAE;GAAM;GAAO,CAAC;;CAEvC,MAAM,qBAAqB,KAAa,SAAc;EACpD,MAAM,kBAAkB,KAAK,KAAK;;CAGpC,OAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD"}
@@ -83,8 +83,8 @@ declare const _default: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
83
83
  highlight: BooleanConstructor;
84
84
  }>> & Readonly<{}>, {
85
85
  fixed: string;
86
- context: Table<any>;
87
86
  stripe: boolean;
87
+ context: Table<any>;
88
88
  highlight: boolean;
89
89
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>;
90
90
  //#endregion
@@ -74,7 +74,132 @@ interface TableColumn<T extends DefaultRow> extends ComponentInternalInstance {
74
74
  columnId: string;
75
75
  columnConfig: Ref<Partial<TableColumnCtx<T>>>;
76
76
  }
77
- declare const _default: {
77
+ interface TableColumnProps<T extends DefaultRow = DefaultRow> {
78
+ /**
79
+ * @description type of the column. If set to `selection`, the column will display checkbox. If set to `index`, the column will display index of the row (staring from 1). If set to `expand`, the column will display expand icon
80
+ */
81
+ type?: string;
82
+ /**
83
+ * @description column label
84
+ */
85
+ label?: string;
86
+ /**
87
+ * @description class name of cells in the column
88
+ */
89
+ className?: string;
90
+ /**
91
+ * @description class name of the label of this column
92
+ */
93
+ labelClassName?: string;
94
+ /**
95
+ * @description
96
+ */
97
+ property?: string;
98
+ /**
99
+ * @description field name. You can also use its alias: `property`
100
+ */
101
+ prop?: string;
102
+ /**
103
+ * @description column width
104
+ */
105
+ width?: string | number;
106
+ /**
107
+ * @description column minimum width. Columns with `width` has a fixed width, while columns with `min-width` has a width that is distributed in proportion
108
+ */
109
+ minWidth?: string | number;
110
+ /**
111
+ * @description render function for table header of this column
112
+ */
113
+ renderHeader?: TableColumnCtx<T>['renderHeader'];
114
+ /**
115
+ * @description whether column can be sorted. Remote sorting can be done by setting this attribute to 'custom' and listening to the `sort-change` event of Table
116
+ */
117
+ sortable?: boolean | string;
118
+ /**
119
+ * @description sorting method, works when `sortable` is `true`. Should return a number, just like Array.sort
120
+ */
121
+ sortMethod?: TableColumnCtx<T>['sortMethod'];
122
+ /**
123
+ * @description specify which property to sort by, works when `sortable` is `true` and `sort-method` is `undefined`. If set to an Array, the column will sequentially sort by the next property if the previous one is equal
124
+ */
125
+ sortBy?: TableColumnCtx<T>['sortBy'];
126
+ /**
127
+ * @description whether column width can be resized, works when `border` of `el-table` is `true`
128
+ */
129
+ resizable?: boolean;
130
+ /**
131
+ * @description column's key. If you need to use the filter-change event, you need this attribute to identify which column is being filtered
132
+ */
133
+ columnKey?: string;
134
+ /**
135
+ * @description alignment, the value should be 'left' \/ 'center' \/ 'right'
136
+ */
137
+ align?: string;
138
+ /**
139
+ * @description alignment of the table header. If omitted, the value of the above `align` attribute will be applied, the value should be 'left' \/ 'center' \/ 'right'
140
+ */
141
+ headerAlign?: string;
142
+ /**
143
+ * @description whether to hide extra content and show them in a tooltip when hovering on the cell
144
+ */
145
+ showOverflowTooltip?: TableColumnCtx<T>['showOverflowTooltip'];
146
+ /**
147
+ * @description function that formats cell tooltip content, works when `show-overflow-tooltip` is `true`
148
+ */
149
+ tooltipFormatter?: TableColumnCtx<T>['tooltipFormatter'];
150
+ /**
151
+ * @description whether column is fixed at left / right. Will be fixed at left if `true`
152
+ */
153
+ fixed?: boolean | string;
154
+ /**
155
+ * @description function that formats cell content
156
+ */
157
+ formatter?: TableColumnCtx<T>['formatter'];
158
+ /**
159
+ * @description function that determines if a certain row can be selected, works when `type` is 'selection'
160
+ */
161
+ selectable?: TableColumnCtx<T>['selectable'];
162
+ /**
163
+ * @description whether to reserve selection after data refreshing, works when `type` is 'selection'. Note that `row-key` is required for this to work
164
+ */
165
+ reserveSelection?: boolean;
166
+ /**
167
+ * @description data filtering method. If `filter-multiple` is on, this method will be called multiple times for each row, and a row will display if one of the calls returns `true`
168
+ */
169
+ filterMethod?: TableColumnCtx<T>['filterMethod'];
170
+ /**
171
+ * @description filter value for selected data, might be useful when table header is rendered with `render-header`
172
+ */
173
+ filteredValue?: TableColumnCtx<T>['filteredValue'];
174
+ /**
175
+ * @description an array of data filtering options. For each element in this array, `text` and `value` are required
176
+ */
177
+ filters?: TableColumnCtx<T>['filters'];
178
+ /**
179
+ * @description placement for the filter dropdown
180
+ */
181
+ filterPlacement?: string;
182
+ /**
183
+ * @description whether data filtering supports multiple options
184
+ */
185
+ filterMultiple?: boolean;
186
+ /**
187
+ * @description className for the filter dropdown
188
+ */
189
+ filterClassName?: string;
190
+ /**
191
+ * @description customize indices for each row, works on columns with `type=index`
192
+ */
193
+ index?: TableColumnCtx<T>['index'];
194
+ /**
195
+ * @description the order of the sorting strategies used when sorting the data, works when `sortable` is `true`. Accepts an array, as the user clicks on the header, the column is sorted in order of the elements in the array
196
+ */
197
+ sortOrders?: TableColumnCtx<T>['sortOrders'];
198
+ }
199
+ /**
200
+ * @deprecated Removed after 3.0.0, Use `TableColumnProps` instead.
201
+ */
202
+ declare const tableColumnProps: {
78
203
  /**
79
204
  * @description type of the column. If set to `selection`, the column will display checkbox. If set to `index`, the column will display index of the row (staring from 1). If set to `expand`, the column will display expand icon
80
205
  */
@@ -124,7 +249,7 @@ declare const _default: {
124
249
  * @description whether column can be sorted. Remote sorting can be done by setting this attribute to 'custom' and listening to the `sort-change` event of Table
125
250
  */
126
251
  sortable: {
127
- type: (BooleanConstructor | StringConstructor)[];
252
+ type: (StringConstructor | BooleanConstructor)[];
128
253
  default: boolean;
129
254
  };
130
255
  /**
@@ -168,7 +293,7 @@ declare const _default: {
168
293
  /**
169
294
  * @description whether column is fixed at left / right. Will be fixed at left if `true`
170
295
  */
171
- fixed: (BooleanConstructor | StringConstructor)[];
296
+ fixed: (StringConstructor | BooleanConstructor)[];
172
297
  /**
173
298
  * @description function that formats cell content
174
299
  */
@@ -222,4 +347,4 @@ declare const _default: {
222
347
  };
223
348
  };
224
349
  //#endregion
225
- export { type FilterMethods, type Filters, type TableColumn, type TableColumnCtx, type ValueOf, _default as default };
350
+ export { type FilterMethods, type Filters, type TableColumn, type TableColumnCtx, type TableColumnProps, type ValueOf, tableColumnProps as default, tableColumnProps };
@@ -1,5 +1,8 @@
1
1
  //#region ../../packages/components/table/src/table-column/defaults.ts
2
- var defaults_default = {
2
+ /**
3
+ * @deprecated Removed after 3.0.0, Use `TableColumnProps` instead.
4
+ */
5
+ const tableColumnProps = {
3
6
  /**
4
7
  * @description type of the column. If set to `selection`, the column will display checkbox. If set to `index`, the column will display index of the row (staring from 1). If set to `expand`, the column will display expand icon
5
8
  */
@@ -163,6 +166,6 @@ var defaults_default = {
163
166
  }
164
167
  };
165
168
  //#endregion
166
- export { defaults_default as default };
169
+ export { tableColumnProps as default, tableColumnProps };
167
170
 
168
171
  //# sourceMappingURL=defaults.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"defaults.mjs","names":[],"sources":["../../../../../../../packages/components/table/src/table-column/defaults.ts"],"sourcesContent":["import type { ComponentInternalInstance, PropType, Ref, VNode } from 'vue'\nimport type { DefaultRow, Table, TableSortOrder } from '../table/defaults'\nimport type {\n TableOverflowTooltipFormatter,\n TableOverflowTooltipOptions,\n} from '../util'\nimport type { Store } from '../store'\n\ntype CI<T extends DefaultRow> = {\n column: TableColumnCtx<T>\n $index: number\n store: Store<T>\n _self: any\n}\n\ntype Filters = {\n text: string\n value: string\n}[]\n\ntype FilterMethods<T extends DefaultRow> = (\n value: string,\n row: T,\n column: TableColumnCtx<T>\n) => void\n\ntype ValueOf<T> = T[keyof T]\n\ntype TableColumnCtx<T extends DefaultRow = DefaultRow> = {\n id: string\n realWidth: number | null\n type: string\n label: string\n className: string\n labelClassName: string\n property: string\n prop: string\n width?: string | number\n minWidth: string | number\n renderHeader: (data: CI<T>) => VNode\n sortable: boolean | string\n sortMethod: (a: T, b: T) => number\n sortBy: string | ((row: T, index: number, array?: T[]) => string) | string[]\n resizable: boolean\n columnKey: string\n rawColumnKey: string\n align: string\n headerAlign: string\n showOverflowTooltip?: boolean | TableOverflowTooltipOptions\n tooltipFormatter?: TableOverflowTooltipFormatter<T>\n fixed: boolean | string\n formatter: (\n row: T,\n column: TableColumnCtx<T>,\n cellValue: any,\n index: number\n ) => VNode | string\n selectable: (row: T, index: number) => boolean\n reserveSelection: boolean\n filterMethod: FilterMethods<T>\n filteredValue: string[]\n filters: Filters\n filterPlacement: string\n filterMultiple: boolean\n filterClassName: string\n index: number | ((index: number) => number)\n sortOrders: (TableSortOrder | null)[]\n renderCell: (data: any) => VNode | VNode[]\n colSpan: number\n rowSpan: number\n children?: TableColumnCtx<T>[]\n level: number\n filterable: boolean | FilterMethods<T> | Filters\n order: TableSortOrder | null\n isColumnGroup: boolean\n isSubColumn: boolean\n columns: TableColumnCtx<T>[]\n getColumnIndex: () => number\n no: number\n filterOpened?: boolean\n renderFilterIcon?: (scope: any) => VNode\n renderExpand?: (scope: any) => VNode\n}\n\ninterface TableColumn<T extends DefaultRow> extends ComponentInternalInstance {\n vnode: {\n vParent: TableColumn<T> | Table<T>\n } & VNode\n vParent: TableColumn<T> | Table<T>\n columnId: string\n columnConfig: Ref<Partial<TableColumnCtx<T>>>\n}\n\nexport type { Filters, FilterMethods, TableColumnCtx, TableColumn, ValueOf }\n\nexport default {\n /**\n * @description type of the column. If set to `selection`, the column will display checkbox. If set to `index`, the column will display index of the row (staring from 1). If set to `expand`, the column will display expand icon\n */\n type: {\n type: String,\n default: 'default',\n },\n /**\n * @description column label\n */\n label: String,\n /**\n * @description class name of cells in the column\n */\n className: String,\n /**\n * @description class name of the label of this column\n */\n labelClassName: String,\n /**\n * @description\n */\n property: String,\n /**\n * @description field name. You can also use its alias: `property`\n */\n prop: String,\n /**\n * @description column width\n */\n width: {\n type: [String, Number],\n default: '',\n },\n /**\n * @description column minimum width. Columns with `width` has a fixed width, while columns with `min-width` has a width that is distributed in proportion\n */\n minWidth: {\n type: [String, Number],\n default: '',\n },\n /**\n * @description render function for table header of this column\n */\n renderHeader: Function as PropType<TableColumnCtx<any>['renderHeader']>,\n /**\n * @description whether column can be sorted. Remote sorting can be done by setting this attribute to 'custom' and listening to the `sort-change` event of Table\n */\n sortable: {\n type: [Boolean, String],\n default: false,\n },\n /**\n * @description sorting method, works when `sortable` is `true`. Should return a number, just like Array.sort\n */\n sortMethod: Function as PropType<TableColumnCtx<any>['sortMethod']>,\n /**\n * @description specify which property to sort by, works when `sortable` is `true` and `sort-method` is `undefined`. If set to an Array, the column will sequentially sort by the next property if the previous one is equal\n */\n sortBy: [String, Function, Array] as PropType<TableColumnCtx<any>['sortBy']>,\n /**\n * @description whether column width can be resized, works when `border` of `el-table` is `true`\n */\n resizable: {\n type: Boolean,\n default: true,\n },\n /**\n * @description column's key. If you need to use the filter-change event, you need this attribute to identify which column is being filtered\n */\n columnKey: String,\n /**\n * @description alignment, the value should be 'left' \\/ 'center' \\/ 'right'\n */\n align: String,\n /**\n * @description alignment of the table header. If omitted, the value of the above `align` attribute will be applied, the value should be 'left' \\/ 'center' \\/ 'right'\n */\n headerAlign: String,\n /**\n * @description whether to hide extra content and show them in a tooltip when hovering on the cell\n */\n showOverflowTooltip: {\n type: [Boolean, Object] as PropType<\n TableColumnCtx<any>['showOverflowTooltip']\n >,\n default: undefined,\n },\n /**\n * @description function that formats cell tooltip content, works when `show-overflow-tooltip` is `true`\n */\n tooltipFormatter: Function as PropType<\n TableColumnCtx<any>['tooltipFormatter']\n >,\n /**\n * @description whether column is fixed at left / right. Will be fixed at left if `true`\n */\n fixed: [Boolean, String],\n /**\n * @description function that formats cell content\n */\n formatter: Function as PropType<TableColumnCtx<any>['formatter']>,\n /**\n * @description function that determines if a certain row can be selected, works when `type` is 'selection'\n */\n selectable: Function as PropType<TableColumnCtx<any>['selectable']>,\n /**\n * @description whether to reserve selection after data refreshing, works when `type` is 'selection'. Note that `row-key` is required for this to work\n */\n reserveSelection: Boolean,\n /**\n * @description data filtering method. If `filter-multiple` is on, this method will be called multiple times for each row, and a row will display if one of the calls returns `true`\n */\n filterMethod: Function as PropType<TableColumnCtx<any>['filterMethod']>,\n /**\n * @description filter value for selected data, might be useful when table header is rendered with `render-header`\n */\n filteredValue: Array as PropType<TableColumnCtx<any>['filteredValue']>,\n /**\n * @description an array of data filtering options. For each element in this array, `text` and `value` are required\n */\n filters: Array as PropType<TableColumnCtx<any>['filters']>,\n /**\n * @description placement for the filter dropdown\n */\n filterPlacement: String,\n /**\n * @description whether data filtering supports multiple options\n */\n filterMultiple: {\n type: Boolean,\n default: true,\n },\n /**\n * @description className for the filter dropdown\n */\n filterClassName: String,\n /**\n * @description customize indices for each row, works on columns with `type=index`\n */\n index: [Number, Function] as PropType<TableColumnCtx<any>['index']>,\n /**\n * @description the order of the sorting strategies used when sorting the data, works when `sortable` is `true`. Accepts an array, as the user clicks on the header, the column is sorted in order of the elements in the array\n */\n sortOrders: {\n type: Array as PropType<TableColumnCtx<any>['sortOrders']>,\n default: () => {\n return ['ascending', 'descending', null]\n },\n validator: (val: TableColumnCtx<any>['sortOrders']) => {\n return val.every((order: TableSortOrder | null) =>\n ['ascending', 'descending', null].includes(order)\n )\n },\n },\n}\n"],"mappings":";AA+FA,IAAA,mBAAe;;;;CAIb,MAAM;EACJ,MAAM;EACN,SAAS;EACV;;;;CAID,OAAO;;;;CAIP,WAAW;;;;CAIX,gBAAgB;;;;CAIhB,UAAU;;;;CAIV,MAAM;;;;CAIN,OAAO;EACL,MAAM,CAAC,QAAQ,OAAO;EACtB,SAAS;EACV;;;;CAID,UAAU;EACR,MAAM,CAAC,QAAQ,OAAO;EACtB,SAAS;EACV;;;;CAID,cAAc;;;;CAId,UAAU;EACR,MAAM,CAAC,SAAS,OAAO;EACvB,SAAS;EACV;;;;CAID,YAAY;;;;CAIZ,QAAQ;EAAC;EAAQ;EAAU;EAAM;;;;CAIjC,WAAW;EACT,MAAM;EACN,SAAS;EACV;;;;CAID,WAAW;;;;CAIX,OAAO;;;;CAIP,aAAa;;;;CAIb,qBAAqB;EACnB,MAAM,CAAC,SAAS,OAAO;EAGvB,SAAS,KAAA;EACV;;;;CAID,kBAAkB;;;;CAMlB,OAAO,CAAC,SAAS,OAAO;;;;CAIxB,WAAW;;;;CAIX,YAAY;;;;CAIZ,kBAAkB;;;;CAIlB,cAAc;;;;CAId,eAAe;;;;CAIf,SAAS;;;;CAIT,iBAAiB;;;;CAIjB,gBAAgB;EACd,MAAM;EACN,SAAS;EACV;;;;CAID,iBAAiB;;;;CAIjB,OAAO,CAAC,QAAQ,SAAS;;;;CAIzB,YAAY;EACV,MAAM;EACN,eAAe;GACb,OAAO;IAAC;IAAa;IAAc;IAAK;;EAE1C,YAAY,QAA2C;GACrD,OAAO,IAAI,OAAO,UAChB;IAAC;IAAa;IAAc;IAAK,CAAC,SAAS,MAAM,CAClD;;EAEJ;CACF"}
1
+ {"version":3,"file":"defaults.mjs","names":[],"sources":["../../../../../../../packages/components/table/src/table-column/defaults.ts"],"sourcesContent":["import type { ComponentInternalInstance, PropType, Ref, VNode } from 'vue'\nimport type { DefaultRow, Table, TableSortOrder } from '../table/defaults'\nimport type {\n TableOverflowTooltipFormatter,\n TableOverflowTooltipOptions,\n} from '../util'\nimport type { Store } from '../store'\n\ntype CI<T extends DefaultRow> = {\n column: TableColumnCtx<T>\n $index: number\n store: Store<T>\n _self: any\n}\n\ntype Filters = {\n text: string\n value: string\n}[]\n\ntype FilterMethods<T extends DefaultRow> = (\n value: string,\n row: T,\n column: TableColumnCtx<T>\n) => void\n\ntype ValueOf<T> = T[keyof T]\n\ntype TableColumnCtx<T extends DefaultRow = DefaultRow> = {\n id: string\n realWidth: number | null\n type: string\n label: string\n className: string\n labelClassName: string\n property: string\n prop: string\n width?: string | number\n minWidth: string | number\n renderHeader: (data: CI<T>) => VNode\n sortable: boolean | string\n sortMethod: (a: T, b: T) => number\n sortBy: string | ((row: T, index: number, array?: T[]) => string) | string[]\n resizable: boolean\n columnKey: string\n rawColumnKey: string\n align: string\n headerAlign: string\n showOverflowTooltip?: boolean | TableOverflowTooltipOptions\n tooltipFormatter?: TableOverflowTooltipFormatter<T>\n fixed: boolean | string\n formatter: (\n row: T,\n column: TableColumnCtx<T>,\n cellValue: any,\n index: number\n ) => VNode | string\n selectable: (row: T, index: number) => boolean\n reserveSelection: boolean\n filterMethod: FilterMethods<T>\n filteredValue: string[]\n filters: Filters\n filterPlacement: string\n filterMultiple: boolean\n filterClassName: string\n index: number | ((index: number) => number)\n sortOrders: (TableSortOrder | null)[]\n renderCell: (data: any) => VNode | VNode[]\n colSpan: number\n rowSpan: number\n children?: TableColumnCtx<T>[]\n level: number\n filterable: boolean | FilterMethods<T> | Filters\n order: TableSortOrder | null\n isColumnGroup: boolean\n isSubColumn: boolean\n columns: TableColumnCtx<T>[]\n getColumnIndex: () => number\n no: number\n filterOpened?: boolean\n renderFilterIcon?: (scope: any) => VNode\n renderExpand?: (scope: any) => VNode\n}\n\ninterface TableColumn<T extends DefaultRow> extends ComponentInternalInstance {\n vnode: {\n vParent: TableColumn<T> | Table<T>\n } & VNode\n vParent: TableColumn<T> | Table<T>\n columnId: string\n columnConfig: Ref<Partial<TableColumnCtx<T>>>\n}\n\ninterface TableColumnProps<T extends DefaultRow = DefaultRow> {\n /**\n * @description type of the column. If set to `selection`, the column will display checkbox. If set to `index`, the column will display index of the row (staring from 1). If set to `expand`, the column will display expand icon\n */\n type?: string\n /**\n * @description column label\n */\n label?: string\n /**\n * @description class name of cells in the column\n */\n className?: string\n /**\n * @description class name of the label of this column\n */\n labelClassName?: string\n /**\n * @description\n */\n property?: string\n /**\n * @description field name. You can also use its alias: `property`\n */\n prop?: string\n /**\n * @description column width\n */\n width?: string | number\n /**\n * @description column minimum width. Columns with `width` has a fixed width, while columns with `min-width` has a width that is distributed in proportion\n */\n minWidth?: string | number\n /**\n * @description render function for table header of this column\n */\n renderHeader?: TableColumnCtx<T>['renderHeader']\n /**\n * @description whether column can be sorted. Remote sorting can be done by setting this attribute to 'custom' and listening to the `sort-change` event of Table\n */\n sortable?: boolean | string\n /**\n * @description sorting method, works when `sortable` is `true`. Should return a number, just like Array.sort\n */\n sortMethod?: TableColumnCtx<T>['sortMethod']\n /**\n * @description specify which property to sort by, works when `sortable` is `true` and `sort-method` is `undefined`. If set to an Array, the column will sequentially sort by the next property if the previous one is equal\n */\n sortBy?: TableColumnCtx<T>['sortBy']\n /**\n * @description whether column width can be resized, works when `border` of `el-table` is `true`\n */\n resizable?: boolean\n /**\n * @description column's key. If you need to use the filter-change event, you need this attribute to identify which column is being filtered\n */\n columnKey?: string\n /**\n * @description alignment, the value should be 'left' \\/ 'center' \\/ 'right'\n */\n align?: string\n /**\n * @description alignment of the table header. If omitted, the value of the above `align` attribute will be applied, the value should be 'left' \\/ 'center' \\/ 'right'\n */\n headerAlign?: string\n /**\n * @description whether to hide extra content and show them in a tooltip when hovering on the cell\n */\n showOverflowTooltip?: TableColumnCtx<T>['showOverflowTooltip']\n /**\n * @description function that formats cell tooltip content, works when `show-overflow-tooltip` is `true`\n */\n tooltipFormatter?: TableColumnCtx<T>['tooltipFormatter']\n /**\n * @description whether column is fixed at left / right. Will be fixed at left if `true`\n */\n fixed?: boolean | string\n /**\n * @description function that formats cell content\n */\n formatter?: TableColumnCtx<T>['formatter']\n /**\n * @description function that determines if a certain row can be selected, works when `type` is 'selection'\n */\n selectable?: TableColumnCtx<T>['selectable']\n /**\n * @description whether to reserve selection after data refreshing, works when `type` is 'selection'. Note that `row-key` is required for this to work\n */\n reserveSelection?: boolean\n /**\n * @description data filtering method. If `filter-multiple` is on, this method will be called multiple times for each row, and a row will display if one of the calls returns `true`\n */\n filterMethod?: TableColumnCtx<T>['filterMethod']\n /**\n * @description filter value for selected data, might be useful when table header is rendered with `render-header`\n */\n filteredValue?: TableColumnCtx<T>['filteredValue']\n /**\n * @description an array of data filtering options. For each element in this array, `text` and `value` are required\n */\n filters?: TableColumnCtx<T>['filters']\n /**\n * @description placement for the filter dropdown\n */\n filterPlacement?: string\n /**\n * @description whether data filtering supports multiple options\n */\n filterMultiple?: boolean\n /**\n * @description className for the filter dropdown\n */\n filterClassName?: string\n /**\n * @description customize indices for each row, works on columns with `type=index`\n */\n index?: TableColumnCtx<T>['index']\n /**\n * @description the order of the sorting strategies used when sorting the data, works when `sortable` is `true`. Accepts an array, as the user clicks on the header, the column is sorted in order of the elements in the array\n */\n sortOrders?: TableColumnCtx<T>['sortOrders']\n}\n\nexport type {\n Filters,\n FilterMethods,\n TableColumnCtx,\n TableColumn,\n TableColumnProps,\n ValueOf,\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `TableColumnProps` instead.\n */\nexport const tableColumnProps = {\n /**\n * @description type of the column. If set to `selection`, the column will display checkbox. If set to `index`, the column will display index of the row (staring from 1). If set to `expand`, the column will display expand icon\n */\n type: {\n type: String,\n default: 'default',\n },\n /**\n * @description column label\n */\n label: String,\n /**\n * @description class name of cells in the column\n */\n className: String,\n /**\n * @description class name of the label of this column\n */\n labelClassName: String,\n /**\n * @description\n */\n property: String,\n /**\n * @description field name. You can also use its alias: `property`\n */\n prop: String,\n /**\n * @description column width\n */\n width: {\n type: [String, Number],\n default: '',\n },\n /**\n * @description column minimum width. Columns with `width` has a fixed width, while columns with `min-width` has a width that is distributed in proportion\n */\n minWidth: {\n type: [String, Number],\n default: '',\n },\n /**\n * @description render function for table header of this column\n */\n renderHeader: Function as PropType<TableColumnCtx<any>['renderHeader']>,\n /**\n * @description whether column can be sorted. Remote sorting can be done by setting this attribute to 'custom' and listening to the `sort-change` event of Table\n */\n sortable: {\n type: [Boolean, String],\n default: false,\n },\n /**\n * @description sorting method, works when `sortable` is `true`. Should return a number, just like Array.sort\n */\n sortMethod: Function as PropType<TableColumnCtx<any>['sortMethod']>,\n /**\n * @description specify which property to sort by, works when `sortable` is `true` and `sort-method` is `undefined`. If set to an Array, the column will sequentially sort by the next property if the previous one is equal\n */\n sortBy: [String, Function, Array] as PropType<TableColumnCtx<any>['sortBy']>,\n /**\n * @description whether column width can be resized, works when `border` of `el-table` is `true`\n */\n resizable: {\n type: Boolean,\n default: true,\n },\n /**\n * @description column's key. If you need to use the filter-change event, you need this attribute to identify which column is being filtered\n */\n columnKey: String,\n /**\n * @description alignment, the value should be 'left' \\/ 'center' \\/ 'right'\n */\n align: String,\n /**\n * @description alignment of the table header. If omitted, the value of the above `align` attribute will be applied, the value should be 'left' \\/ 'center' \\/ 'right'\n */\n headerAlign: String,\n /**\n * @description whether to hide extra content and show them in a tooltip when hovering on the cell\n */\n showOverflowTooltip: {\n type: [Boolean, Object] as PropType<\n TableColumnCtx<any>['showOverflowTooltip']\n >,\n default: undefined,\n },\n /**\n * @description function that formats cell tooltip content, works when `show-overflow-tooltip` is `true`\n */\n tooltipFormatter: Function as PropType<\n TableColumnCtx<any>['tooltipFormatter']\n >,\n /**\n * @description whether column is fixed at left / right. Will be fixed at left if `true`\n */\n fixed: [Boolean, String],\n /**\n * @description function that formats cell content\n */\n formatter: Function as PropType<TableColumnCtx<any>['formatter']>,\n /**\n * @description function that determines if a certain row can be selected, works when `type` is 'selection'\n */\n selectable: Function as PropType<TableColumnCtx<any>['selectable']>,\n /**\n * @description whether to reserve selection after data refreshing, works when `type` is 'selection'. Note that `row-key` is required for this to work\n */\n reserveSelection: Boolean,\n /**\n * @description data filtering method. If `filter-multiple` is on, this method will be called multiple times for each row, and a row will display if one of the calls returns `true`\n */\n filterMethod: Function as PropType<TableColumnCtx<any>['filterMethod']>,\n /**\n * @description filter value for selected data, might be useful when table header is rendered with `render-header`\n */\n filteredValue: Array as PropType<TableColumnCtx<any>['filteredValue']>,\n /**\n * @description an array of data filtering options. For each element in this array, `text` and `value` are required\n */\n filters: Array as PropType<TableColumnCtx<any>['filters']>,\n /**\n * @description placement for the filter dropdown\n */\n filterPlacement: String,\n /**\n * @description whether data filtering supports multiple options\n */\n filterMultiple: {\n type: Boolean,\n default: true,\n },\n /**\n * @description className for the filter dropdown\n */\n filterClassName: String,\n /**\n * @description customize indices for each row, works on columns with `type=index`\n */\n index: [Number, Function] as PropType<TableColumnCtx<any>['index']>,\n /**\n * @description the order of the sorting strategies used when sorting the data, works when `sortable` is `true`. Accepts an array, as the user clicks on the header, the column is sorted in order of the elements in the array\n */\n sortOrders: {\n type: Array as PropType<TableColumnCtx<any>['sortOrders']>,\n default: () => {\n return ['ascending', 'descending', null]\n },\n validator: (val: TableColumnCtx<any>['sortOrders']) => {\n return val.every((order: TableSortOrder | null) =>\n ['ascending', 'descending', null].includes(order)\n )\n },\n },\n}\n\nexport default tableColumnProps\n"],"mappings":";;;;AAoOA,MAAa,mBAAmB;;;;CAI9B,MAAM;EACJ,MAAM;EACN,SAAS;EACV;;;;CAID,OAAO;;;;CAIP,WAAW;;;;CAIX,gBAAgB;;;;CAIhB,UAAU;;;;CAIV,MAAM;;;;CAIN,OAAO;EACL,MAAM,CAAC,QAAQ,OAAO;EACtB,SAAS;EACV;;;;CAID,UAAU;EACR,MAAM,CAAC,QAAQ,OAAO;EACtB,SAAS;EACV;;;;CAID,cAAc;;;;CAId,UAAU;EACR,MAAM,CAAC,SAAS,OAAO;EACvB,SAAS;EACV;;;;CAID,YAAY;;;;CAIZ,QAAQ;EAAC;EAAQ;EAAU;EAAM;;;;CAIjC,WAAW;EACT,MAAM;EACN,SAAS;EACV;;;;CAID,WAAW;;;;CAIX,OAAO;;;;CAIP,aAAa;;;;CAIb,qBAAqB;EACnB,MAAM,CAAC,SAAS,OAAO;EAGvB,SAAS,KAAA;EACV;;;;CAID,kBAAkB;;;;CAMlB,OAAO,CAAC,SAAS,OAAO;;;;CAIxB,WAAW;;;;CAIX,YAAY;;;;CAIZ,kBAAkB;;;;CAIlB,cAAc;;;;CAId,eAAe;;;;CAIf,SAAS;;;;CAIT,iBAAiB;;;;CAIjB,gBAAgB;EACd,MAAM;EACN,SAAS;EACV;;;;CAID,iBAAiB;;;;CAIjB,OAAO,CAAC,QAAQ,SAAS;;;;CAIzB,YAAY;EACV,MAAM;EACN,eAAe;GACb,OAAO;IAAC;IAAa;IAAc;IAAK;;EAE1C,YAAY,QAA2C;GACrD,OAAO,IAAI,OAAO,UAChB;IAAC;IAAa;IAAc;IAAK,CAAC,SAAS,MAAM,CAClD;;EAEJ;CACF"}