@element-plus/nightly 0.0.20261105 → 0.0.20261106

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 (656) hide show
  1. package/dist/index.full.js +9 -2
  2. package/dist/index.full.min.js +3 -3
  3. package/dist/index.full.min.js.map +1 -1
  4. package/dist/index.full.min.mjs +3 -3
  5. package/dist/index.full.min.mjs.map +1 -1
  6. package/dist/index.full.mjs +9 -2
  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/gl.js +1 -1
  88. package/dist/locale/gl.min.js +1 -1
  89. package/dist/locale/gl.min.mjs +1 -1
  90. package/dist/locale/gl.mjs +1 -1
  91. package/dist/locale/he.js +1 -1
  92. package/dist/locale/he.min.js +1 -1
  93. package/dist/locale/he.min.mjs +1 -1
  94. package/dist/locale/he.mjs +1 -1
  95. package/dist/locale/hi.js +1 -1
  96. package/dist/locale/hi.min.js +1 -1
  97. package/dist/locale/hi.min.mjs +1 -1
  98. package/dist/locale/hi.mjs +1 -1
  99. package/dist/locale/hr.js +1 -1
  100. package/dist/locale/hr.min.js +1 -1
  101. package/dist/locale/hr.min.mjs +1 -1
  102. package/dist/locale/hr.mjs +1 -1
  103. package/dist/locale/hu.js +1 -1
  104. package/dist/locale/hu.min.js +1 -1
  105. package/dist/locale/hu.min.mjs +1 -1
  106. package/dist/locale/hu.mjs +1 -1
  107. package/dist/locale/hy-am.js +1 -1
  108. package/dist/locale/hy-am.min.js +1 -1
  109. package/dist/locale/hy-am.min.mjs +1 -1
  110. package/dist/locale/hy-am.mjs +1 -1
  111. package/dist/locale/id.js +1 -1
  112. package/dist/locale/id.min.js +1 -1
  113. package/dist/locale/id.min.mjs +1 -1
  114. package/dist/locale/id.mjs +1 -1
  115. package/dist/locale/it.js +1 -1
  116. package/dist/locale/it.min.js +1 -1
  117. package/dist/locale/it.min.mjs +1 -1
  118. package/dist/locale/it.mjs +1 -1
  119. package/dist/locale/ja.js +1 -1
  120. package/dist/locale/ja.min.js +1 -1
  121. package/dist/locale/ja.min.mjs +1 -1
  122. package/dist/locale/ja.mjs +1 -1
  123. package/dist/locale/kk.js +1 -1
  124. package/dist/locale/kk.min.js +1 -1
  125. package/dist/locale/kk.min.mjs +1 -1
  126. package/dist/locale/kk.mjs +1 -1
  127. package/dist/locale/km.js +1 -1
  128. package/dist/locale/km.min.js +1 -1
  129. package/dist/locale/km.min.mjs +1 -1
  130. package/dist/locale/km.mjs +1 -1
  131. package/dist/locale/ko.js +1 -1
  132. package/dist/locale/ko.min.js +1 -1
  133. package/dist/locale/ko.min.mjs +1 -1
  134. package/dist/locale/ko.mjs +1 -1
  135. package/dist/locale/ku.js +1 -1
  136. package/dist/locale/ku.min.js +1 -1
  137. package/dist/locale/ku.min.mjs +1 -1
  138. package/dist/locale/ku.mjs +1 -1
  139. package/dist/locale/ky.js +1 -1
  140. package/dist/locale/ky.min.js +1 -1
  141. package/dist/locale/ky.min.mjs +1 -1
  142. package/dist/locale/ky.mjs +1 -1
  143. package/dist/locale/lo.js +1 -1
  144. package/dist/locale/lo.min.js +1 -1
  145. package/dist/locale/lo.min.mjs +1 -1
  146. package/dist/locale/lo.mjs +1 -1
  147. package/dist/locale/lt.js +1 -1
  148. package/dist/locale/lt.min.js +1 -1
  149. package/dist/locale/lt.min.mjs +1 -1
  150. package/dist/locale/lt.mjs +1 -1
  151. package/dist/locale/lv.js +1 -1
  152. package/dist/locale/lv.min.js +1 -1
  153. package/dist/locale/lv.min.mjs +1 -1
  154. package/dist/locale/lv.mjs +1 -1
  155. package/dist/locale/mg.js +1 -1
  156. package/dist/locale/mg.min.js +1 -1
  157. package/dist/locale/mg.min.mjs +1 -1
  158. package/dist/locale/mg.mjs +1 -1
  159. package/dist/locale/mn.js +1 -1
  160. package/dist/locale/mn.min.js +1 -1
  161. package/dist/locale/mn.min.mjs +1 -1
  162. package/dist/locale/mn.mjs +1 -1
  163. package/dist/locale/ms.js +1 -1
  164. package/dist/locale/ms.min.js +1 -1
  165. package/dist/locale/ms.min.mjs +1 -1
  166. package/dist/locale/ms.mjs +1 -1
  167. package/dist/locale/my.js +1 -1
  168. package/dist/locale/my.min.js +1 -1
  169. package/dist/locale/my.min.mjs +1 -1
  170. package/dist/locale/my.mjs +1 -1
  171. package/dist/locale/nb-no.js +1 -1
  172. package/dist/locale/nb-no.min.js +1 -1
  173. package/dist/locale/nb-no.min.mjs +1 -1
  174. package/dist/locale/nb-no.mjs +1 -1
  175. package/dist/locale/nl.js +1 -1
  176. package/dist/locale/nl.min.js +1 -1
  177. package/dist/locale/nl.min.mjs +1 -1
  178. package/dist/locale/nl.mjs +1 -1
  179. package/dist/locale/no.js +1 -1
  180. package/dist/locale/no.min.js +1 -1
  181. package/dist/locale/no.min.mjs +1 -1
  182. package/dist/locale/no.mjs +1 -1
  183. package/dist/locale/pa.js +1 -1
  184. package/dist/locale/pa.min.js +1 -1
  185. package/dist/locale/pa.min.mjs +1 -1
  186. package/dist/locale/pa.mjs +1 -1
  187. package/dist/locale/pl.js +1 -1
  188. package/dist/locale/pl.min.js +1 -1
  189. package/dist/locale/pl.min.mjs +1 -1
  190. package/dist/locale/pl.mjs +1 -1
  191. package/dist/locale/pt-br.js +1 -1
  192. package/dist/locale/pt-br.min.js +1 -1
  193. package/dist/locale/pt-br.min.mjs +1 -1
  194. package/dist/locale/pt-br.mjs +1 -1
  195. package/dist/locale/pt.js +1 -1
  196. package/dist/locale/pt.min.js +1 -1
  197. package/dist/locale/pt.min.mjs +1 -1
  198. package/dist/locale/pt.mjs +1 -1
  199. package/dist/locale/ro.js +1 -1
  200. package/dist/locale/ro.min.js +1 -1
  201. package/dist/locale/ro.min.mjs +1 -1
  202. package/dist/locale/ro.mjs +1 -1
  203. package/dist/locale/ru.js +1 -1
  204. package/dist/locale/ru.min.js +1 -1
  205. package/dist/locale/ru.min.mjs +1 -1
  206. package/dist/locale/ru.mjs +1 -1
  207. package/dist/locale/sk.js +1 -1
  208. package/dist/locale/sk.min.js +1 -1
  209. package/dist/locale/sk.min.mjs +1 -1
  210. package/dist/locale/sk.mjs +1 -1
  211. package/dist/locale/sl.js +1 -1
  212. package/dist/locale/sl.min.js +1 -1
  213. package/dist/locale/sl.min.mjs +1 -1
  214. package/dist/locale/sl.mjs +1 -1
  215. package/dist/locale/sr.js +1 -1
  216. package/dist/locale/sr.min.js +1 -1
  217. package/dist/locale/sr.min.mjs +1 -1
  218. package/dist/locale/sr.mjs +1 -1
  219. package/dist/locale/sv.js +1 -1
  220. package/dist/locale/sv.min.js +1 -1
  221. package/dist/locale/sv.min.mjs +1 -1
  222. package/dist/locale/sv.mjs +1 -1
  223. package/dist/locale/sw.js +1 -1
  224. package/dist/locale/sw.min.js +1 -1
  225. package/dist/locale/sw.min.mjs +1 -1
  226. package/dist/locale/sw.mjs +1 -1
  227. package/dist/locale/ta.js +1 -1
  228. package/dist/locale/ta.min.js +1 -1
  229. package/dist/locale/ta.min.mjs +1 -1
  230. package/dist/locale/ta.mjs +1 -1
  231. package/dist/locale/te.js +1 -1
  232. package/dist/locale/te.min.js +1 -1
  233. package/dist/locale/te.min.mjs +1 -1
  234. package/dist/locale/te.mjs +1 -1
  235. package/dist/locale/th.js +1 -1
  236. package/dist/locale/th.min.js +1 -1
  237. package/dist/locale/th.min.mjs +1 -1
  238. package/dist/locale/th.mjs +1 -1
  239. package/dist/locale/tk.js +1 -1
  240. package/dist/locale/tk.min.js +1 -1
  241. package/dist/locale/tk.min.mjs +1 -1
  242. package/dist/locale/tk.mjs +1 -1
  243. package/dist/locale/tr.js +1 -1
  244. package/dist/locale/tr.min.js +1 -1
  245. package/dist/locale/tr.min.mjs +1 -1
  246. package/dist/locale/tr.mjs +1 -1
  247. package/dist/locale/ug-cn.js +1 -1
  248. package/dist/locale/ug-cn.min.js +1 -1
  249. package/dist/locale/ug-cn.min.mjs +1 -1
  250. package/dist/locale/ug-cn.mjs +1 -1
  251. package/dist/locale/uk.js +1 -1
  252. package/dist/locale/uk.min.js +1 -1
  253. package/dist/locale/uk.min.mjs +1 -1
  254. package/dist/locale/uk.mjs +1 -1
  255. package/dist/locale/uz-uz.js +1 -1
  256. package/dist/locale/uz-uz.min.js +1 -1
  257. package/dist/locale/uz-uz.min.mjs +1 -1
  258. package/dist/locale/uz-uz.mjs +1 -1
  259. package/dist/locale/vi.js +1 -1
  260. package/dist/locale/vi.min.js +1 -1
  261. package/dist/locale/vi.min.mjs +1 -1
  262. package/dist/locale/vi.mjs +1 -1
  263. package/dist/locale/zh-cn.js +1 -1
  264. package/dist/locale/zh-cn.min.js +1 -1
  265. package/dist/locale/zh-cn.min.mjs +1 -1
  266. package/dist/locale/zh-cn.mjs +1 -1
  267. package/dist/locale/zh-hk.js +1 -1
  268. package/dist/locale/zh-hk.min.js +1 -1
  269. package/dist/locale/zh-hk.min.mjs +1 -1
  270. package/dist/locale/zh-hk.mjs +1 -1
  271. package/dist/locale/zh-mo.js +1 -1
  272. package/dist/locale/zh-mo.min.js +1 -1
  273. package/dist/locale/zh-mo.min.mjs +1 -1
  274. package/dist/locale/zh-mo.mjs +1 -1
  275. package/dist/locale/zh-tw.js +1 -1
  276. package/dist/locale/zh-tw.min.js +1 -1
  277. package/dist/locale/zh-tw.min.mjs +1 -1
  278. package/dist/locale/zh-tw.mjs +1 -1
  279. package/es/components/affix/src/affix.vue.d.ts +2 -2
  280. package/es/components/alert/src/alert.d.ts +1 -1
  281. package/es/components/alert/src/alert.vue.d.ts +3 -3
  282. package/es/components/anchor/src/anchor.vue.d.ts +1 -1
  283. package/es/components/autocomplete/src/autocomplete.d.ts +2 -2
  284. package/es/components/autocomplete/src/autocomplete.vue.d.ts +4 -4
  285. package/es/components/avatar/src/avatar-group.d.ts +2 -2
  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/badge/src/badge.vue.d.ts +2 -2
  289. package/es/components/button/src/button-group.d.ts +1 -1
  290. package/es/components/button/src/button-group.vue.d.ts +1 -1
  291. package/es/components/button/src/button.d.ts +1 -1
  292. package/es/components/button/src/button.vue.d.ts +4 -4
  293. package/es/components/button/src/use-button.d.ts +1 -1
  294. package/es/components/calendar/src/calendar.d.ts +1 -1
  295. package/es/components/calendar/src/calendar.vue.d.ts +1 -1
  296. package/es/components/calendar/src/select-controller.vue.d.ts +2 -2
  297. package/es/components/card/src/card.vue.d.ts +2 -2
  298. package/es/components/carousel/src/carousel-item.vue.d.ts +1 -1
  299. package/es/components/carousel/src/carousel.vue.d.ts +2 -2
  300. package/es/components/cascader/src/cascader.d.ts +2 -2
  301. package/es/components/cascader/src/cascader.vue.d.ts +20 -20
  302. package/es/components/cascader-panel/src/index.vue.d.ts +4 -4
  303. package/es/components/cascader-panel/src/menu.vue.d.ts +1 -1
  304. package/es/components/check-tag/src/check-tag.d.ts +1 -1
  305. package/es/components/check-tag/src/check-tag.vue.d.ts +1 -1
  306. package/es/components/checkbox/src/checkbox-button.vue.d.ts +6 -6
  307. package/es/components/checkbox/src/checkbox-group.vue.d.ts +6 -6
  308. package/es/components/checkbox/src/checkbox.d.ts +2 -2
  309. package/es/components/checkbox/src/checkbox.vue.d.ts +6 -6
  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.d.ts +1 -1
  313. package/es/components/collapse/src/collapse.vue.d.ts +2 -2
  314. package/es/components/color-picker/src/color-picker.vue.d.ts +9 -9
  315. package/es/components/color-picker-panel/src/color-picker-panel.vue.d.ts +1 -1
  316. package/es/components/config-provider/src/hooks/use-global-config.d.ts +1 -1
  317. package/es/components/date-picker/src/date-picker.d.ts +15 -15
  318. package/es/components/date-picker/src/props.d.ts +3 -3
  319. package/es/components/date-picker-panel/src/composables/use-basic-date-table.d.ts +1 -1
  320. package/es/components/date-picker-panel/src/date-picker-com/panel-date-pick.vue.d.ts +3 -3
  321. package/es/components/date-picker-panel/src/date-picker-com/panel-date-range.vue.d.ts +2 -2
  322. package/es/components/date-picker-panel/src/date-picker-panel.d.ts +8 -8
  323. package/es/components/date-picker-panel/src/panel-utils.d.ts +9 -9
  324. package/es/components/date-picker-panel/src/props/date-picker-panel.d.ts +2 -2
  325. package/es/components/date-picker-panel/src/props/panel-date-pick.d.ts +1 -1
  326. package/es/components/date-picker-panel/src/props/panel-date-range.d.ts +1 -1
  327. package/es/components/date-picker-panel/src/props/shared.d.ts +1 -1
  328. package/es/components/descriptions/src/description-item.d.ts +9 -9
  329. package/es/components/descriptions/src/description.vue.d.ts +2 -2
  330. package/es/components/dialog/src/dialog-content.vue.d.ts +2 -2
  331. package/es/components/dialog/src/dialog.vue.d.ts +7 -7
  332. package/es/components/divider/src/divider.d.ts +1 -1
  333. package/es/components/divider/src/divider.vue.d.ts +2 -2
  334. package/es/components/drawer/src/drawer.vue.d.ts +10 -10
  335. package/es/components/dropdown/src/dropdown-item.vue.d.ts +1 -1
  336. package/es/components/dropdown/src/dropdown-menu.vue.d.ts +1 -1
  337. package/es/components/dropdown/src/dropdown.d.ts +3 -3
  338. package/es/components/dropdown/src/dropdown.vue.d.ts +49 -49
  339. package/es/components/empty/src/empty.vue.d.ts +1 -1
  340. package/es/components/form/src/form-item.d.ts +1 -1
  341. package/es/components/form/src/form-item.vue.d.ts +1 -1
  342. package/es/components/form/src/form.d.ts +2 -2
  343. package/es/components/form/src/form.vue.d.ts +2 -2
  344. package/es/components/image/src/image.vue.d.ts +3 -3
  345. package/es/components/image-viewer/src/image-viewer.vue.d.ts +2 -2
  346. package/es/components/input/src/input.d.ts +1 -1
  347. package/es/components/input/src/input.vue.d.ts +11 -11
  348. package/es/components/input-number/src/input-number.d.ts +3 -3
  349. package/es/components/input-number/src/input-number.vue.d.ts +11 -11
  350. package/es/components/input-otp/src/input-otp.vue.d.ts +4 -4
  351. package/es/components/input-tag/src/input-tag.d.ts +1 -1
  352. package/es/components/input-tag/src/input-tag.vue.d.ts +13 -13
  353. package/es/components/link/src/link.d.ts +1 -1
  354. package/es/components/link/src/link.vue.d.ts +2 -2
  355. package/es/components/mention/src/mention.d.ts +1 -1
  356. package/es/components/mention/src/mention.vue.d.ts +3 -3
  357. package/es/components/menu/src/menu.d.ts +3 -3
  358. package/es/components/menu/src/sub-menu.d.ts +1 -1
  359. package/es/components/message/src/message.d.ts +1 -1
  360. package/es/components/message/src/message.vue.d.ts +10 -10
  361. package/es/components/message-box/src/index.vue.d.ts +48 -48
  362. package/es/components/notification/src/notification.d.ts +1 -1
  363. package/es/components/notification/src/notification.vue.d.ts +10 -10
  364. package/es/components/pagination/src/components/next.vue.d.ts +1 -1
  365. package/es/components/pagination/src/components/pager.vue.d.ts +1 -1
  366. package/es/components/pagination/src/components/sizes.vue.d.ts +1 -1
  367. package/es/components/pagination/src/pagination.d.ts +2 -2
  368. package/es/components/popconfirm/src/popconfirm.d.ts +2 -2
  369. package/es/components/popconfirm/src/popconfirm.vue.d.ts +3 -3
  370. package/es/components/popover/src/popover.d.ts +60 -60
  371. package/es/components/popover/src/popover.vue.d.ts +9 -9
  372. package/es/components/popper/src/composables/use-content.d.ts +4 -4
  373. package/es/components/popper/src/content.vue.d.ts +9 -9
  374. package/es/components/popper/src/popper.d.ts +2 -2
  375. package/es/components/popper/src/popper.vue.d.ts +1 -1
  376. package/es/components/progress/src/progress.vue.d.ts +3 -3
  377. package/es/components/radio/src/radio-button.vue.d.ts +2 -2
  378. package/es/components/radio/src/radio-group.vue.d.ts +6 -6
  379. package/es/components/radio/src/radio.vue.d.ts +4 -4
  380. package/es/components/rate/src/rate.vue.d.ts +3 -3
  381. package/es/components/result/src/result.d.ts +1 -1
  382. package/es/components/result/src/result.vue.d.ts +1 -1
  383. package/es/components/roving-focus-group/src/roving-focus-item.vue.d.ts +1 -1
  384. package/es/components/row/src/row.d.ts +1 -1
  385. package/es/components/row/src/row.vue.d.ts +1 -1
  386. package/es/components/scrollbar/src/scrollbar.d.ts +1 -1
  387. package/es/components/scrollbar/src/scrollbar.vue.d.ts +1 -1
  388. package/es/components/segmented/index.d.ts +3 -3
  389. package/es/components/segmented/src/segmented.vue.d.ts +2 -2
  390. package/es/components/select/src/option.d.ts +1 -1
  391. package/es/components/select/src/option.vue.d.ts +2 -2
  392. package/es/components/select/src/select.d.ts +3 -3
  393. package/es/components/select/src/select.vue.d.ts +62 -62
  394. package/es/components/select/src/useSelect.d.ts +5 -5
  395. package/es/components/select-v2/src/defaults.d.ts +2 -2
  396. package/es/components/select-v2/src/option-item.vue.d.ts +1 -1
  397. package/es/components/select-v2/src/select.vue.d.ts +51 -51
  398. package/es/components/skeleton/src/skeleton-item.d.ts +1 -1
  399. package/es/components/skeleton/src/skeleton-item.vue.d.ts +1 -1
  400. package/es/components/skeleton/src/skeleton.vue.d.ts +1 -1
  401. package/es/components/slider/src/button.vue.d.ts +2 -2
  402. package/es/components/slider/src/slider.vue.d.ts +8 -8
  403. package/es/components/space/src/space.d.ts +1 -1
  404. package/es/components/splitter/src/split-bar.vue.d.ts +1 -1
  405. package/es/components/splitter/src/splitter.vue.d.ts +2 -2
  406. package/es/components/statistic/src/statistic.vue.d.ts +1 -1
  407. package/es/components/steps/src/item.d.ts +1 -1
  408. package/es/components/steps/src/item.vue.d.ts +2 -2
  409. package/es/components/steps/src/steps.d.ts +2 -2
  410. package/es/components/steps/src/steps.vue.d.ts +1 -1
  411. package/es/components/switch/src/switch.vue.d.ts +4 -4
  412. package/es/components/table/src/filter-panel.vue.d.ts +55 -55
  413. package/es/components/table/src/table/style-helper.d.ts +1 -1
  414. package/es/components/table/src/table-column/index.vue_vue_type_script_setup_true_lang.mjs +8 -1
  415. package/es/components/table/src/table-column/index.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  416. package/es/components/table/src/table-column/index2.mjs.map +1 -1
  417. package/es/components/table/src/table-header/index.d.ts +17 -17
  418. package/es/components/table/src/table.vue.d.ts +4 -4
  419. package/es/components/table-v2/src/components/header.d.ts +1 -1
  420. package/es/components/table-v2/src/components/row.d.ts +1 -1
  421. package/es/components/table-v2/src/table-grid.d.ts +2 -2
  422. package/es/components/table-v2/src/table-v2.d.ts +3 -3
  423. package/es/components/tabs/src/tab-nav.d.ts +1 -1
  424. package/es/components/tabs/src/tab-pane.vue.d.ts +1 -1
  425. package/es/components/tabs/src/tabs.d.ts +5 -5
  426. package/es/components/tag/src/tag.d.ts +1 -1
  427. package/es/components/tag/src/tag.vue.d.ts +1 -1
  428. package/es/components/text/src/text.d.ts +1 -1
  429. package/es/components/text/src/text.vue.d.ts +1 -1
  430. package/es/components/time-picker/src/common/picker-range-trigger.vue.d.ts +2 -2
  431. package/es/components/time-picker/src/common/picker.vue.d.ts +16 -16
  432. package/es/components/time-picker/src/common/props.d.ts +2 -2
  433. package/es/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts +2 -2
  434. package/es/components/time-picker/src/time-picker-com/panel-time-range.vue.d.ts +2 -2
  435. package/es/components/time-picker/src/time-picker.d.ts +12 -12
  436. package/es/components/time-select/src/time-select.vue.d.ts +10 -10
  437. package/es/components/timeline/src/timeline-item.d.ts +1 -1
  438. package/es/components/timeline/src/timeline-item.vue.d.ts +2 -2
  439. package/es/components/tooltip/src/content.vue.d.ts +5 -5
  440. package/es/components/tooltip/src/tooltip.d.ts +1 -1
  441. package/es/components/tooltip/src/tooltip.vue.d.ts +6 -6
  442. package/es/components/tour/src/content.d.ts +1 -1
  443. package/es/components/tour/src/content.vue.d.ts +1 -1
  444. package/es/components/tour/src/step.d.ts +1 -1
  445. package/es/components/tour/src/tour.d.ts +1 -1
  446. package/es/components/tour/src/tour.vue.d.ts +3 -3
  447. package/es/components/transfer/src/transfer.vue.d.ts +2 -2
  448. package/es/components/tree/src/tree-node.vue.d.ts +17 -17
  449. package/es/components/tree/src/tree.vue.d.ts +23 -23
  450. package/es/components/tree-select/src/tree-select-option.d.ts +2 -2
  451. package/es/components/tree-select/src/tree-select.vue.d.ts +36 -36
  452. package/es/components/tree-v2/src/composables/useTree.d.ts +12 -12
  453. package/es/components/tree-v2/src/tree.vue.d.ts +5 -5
  454. package/es/components/upload/src/upload-content.vue.d.ts +1 -1
  455. package/es/components/upload/src/upload.vue.d.ts +2 -2
  456. package/es/components/virtual-list/src/builders/build-grid.d.ts +5 -5
  457. package/es/components/virtual-list/src/builders/build-list.d.ts +6 -6
  458. package/es/components/virtual-list/src/components/dynamic-size-grid.d.ts +5 -5
  459. package/es/components/virtual-list/src/components/dynamic-size-list.d.ts +6 -6
  460. package/es/components/virtual-list/src/components/fixed-size-grid.d.ts +5 -5
  461. package/es/components/virtual-list/src/components/fixed-size-list.d.ts +6 -6
  462. package/es/hooks/use-floating/index.d.ts +8 -8
  463. package/es/hooks/use-popper/index.d.ts +4 -4
  464. package/es/version.d.ts +1 -1
  465. package/es/version.mjs +1 -1
  466. package/es/version.mjs.map +1 -1
  467. package/lib/components/affix/src/affix.vue.d.ts +2 -2
  468. package/lib/components/alert/src/alert.d.ts +1 -1
  469. package/lib/components/alert/src/alert.vue.d.ts +3 -3
  470. package/lib/components/anchor/src/anchor.vue.d.ts +1 -1
  471. package/lib/components/autocomplete/src/autocomplete.d.ts +2 -2
  472. package/lib/components/autocomplete/src/autocomplete.vue.d.ts +4 -4
  473. package/lib/components/avatar/src/avatar-group.d.ts +2 -2
  474. package/lib/components/backtop/src/backtop.vue.d.ts +1 -1
  475. package/lib/components/badge/src/badge.d.ts +1 -1
  476. package/lib/components/badge/src/badge.vue.d.ts +2 -2
  477. package/lib/components/button/src/button-group.d.ts +1 -1
  478. package/lib/components/button/src/button-group.vue.d.ts +1 -1
  479. package/lib/components/button/src/button.d.ts +1 -1
  480. package/lib/components/button/src/button.vue.d.ts +4 -4
  481. package/lib/components/button/src/use-button.d.ts +1 -1
  482. package/lib/components/calendar/src/calendar.d.ts +1 -1
  483. package/lib/components/calendar/src/calendar.vue.d.ts +1 -1
  484. package/lib/components/calendar/src/select-controller.vue.d.ts +2 -2
  485. package/lib/components/card/src/card.vue.d.ts +2 -2
  486. package/lib/components/carousel/src/carousel-item.vue.d.ts +1 -1
  487. package/lib/components/carousel/src/carousel.vue.d.ts +2 -2
  488. package/lib/components/cascader/src/cascader.d.ts +2 -2
  489. package/lib/components/cascader/src/cascader.vue.d.ts +20 -20
  490. package/lib/components/cascader-panel/src/index.vue.d.ts +4 -4
  491. package/lib/components/cascader-panel/src/menu.vue.d.ts +1 -1
  492. package/lib/components/check-tag/src/check-tag.d.ts +1 -1
  493. package/lib/components/check-tag/src/check-tag.vue.d.ts +1 -1
  494. package/lib/components/checkbox/src/checkbox-button.vue.d.ts +6 -6
  495. package/lib/components/checkbox/src/checkbox-group.vue.d.ts +6 -6
  496. package/lib/components/checkbox/src/checkbox.d.ts +2 -2
  497. package/lib/components/checkbox/src/checkbox.vue.d.ts +6 -6
  498. package/lib/components/col/src/col.vue.d.ts +1 -1
  499. package/lib/components/collapse/src/collapse-item.vue.d.ts +1 -1
  500. package/lib/components/collapse/src/collapse.d.ts +1 -1
  501. package/lib/components/collapse/src/collapse.vue.d.ts +2 -2
  502. package/lib/components/color-picker/src/color-picker.vue.d.ts +9 -9
  503. package/lib/components/color-picker-panel/src/color-picker-panel.vue.d.ts +1 -1
  504. package/lib/components/config-provider/src/hooks/use-global-config.d.ts +1 -1
  505. package/lib/components/date-picker/src/date-picker.d.ts +15 -15
  506. package/lib/components/date-picker/src/props.d.ts +3 -3
  507. package/lib/components/date-picker-panel/src/composables/use-basic-date-table.d.ts +1 -1
  508. package/lib/components/date-picker-panel/src/date-picker-com/panel-date-pick.vue.d.ts +3 -3
  509. package/lib/components/date-picker-panel/src/date-picker-com/panel-date-range.vue.d.ts +2 -2
  510. package/lib/components/date-picker-panel/src/date-picker-panel.d.ts +8 -8
  511. package/lib/components/date-picker-panel/src/panel-utils.d.ts +9 -9
  512. package/lib/components/date-picker-panel/src/props/date-picker-panel.d.ts +2 -2
  513. package/lib/components/date-picker-panel/src/props/panel-date-pick.d.ts +1 -1
  514. package/lib/components/date-picker-panel/src/props/panel-date-range.d.ts +1 -1
  515. package/lib/components/date-picker-panel/src/props/shared.d.ts +1 -1
  516. package/lib/components/descriptions/src/description-item.d.ts +9 -9
  517. package/lib/components/descriptions/src/description.vue.d.ts +2 -2
  518. package/lib/components/dialog/src/dialog-content.vue.d.ts +2 -2
  519. package/lib/components/dialog/src/dialog.vue.d.ts +7 -7
  520. package/lib/components/divider/src/divider.d.ts +1 -1
  521. package/lib/components/divider/src/divider.vue.d.ts +2 -2
  522. package/lib/components/drawer/src/drawer.vue.d.ts +10 -10
  523. package/lib/components/dropdown/src/dropdown-item.vue.d.ts +1 -1
  524. package/lib/components/dropdown/src/dropdown-menu.vue.d.ts +1 -1
  525. package/lib/components/dropdown/src/dropdown.d.ts +3 -3
  526. package/lib/components/dropdown/src/dropdown.vue.d.ts +49 -49
  527. package/lib/components/empty/src/empty.vue.d.ts +1 -1
  528. package/lib/components/form/src/form-item.d.ts +1 -1
  529. package/lib/components/form/src/form-item.vue.d.ts +1 -1
  530. package/lib/components/form/src/form.d.ts +2 -2
  531. package/lib/components/form/src/form.vue.d.ts +2 -2
  532. package/lib/components/image/src/image.vue.d.ts +3 -3
  533. package/lib/components/image-viewer/src/image-viewer.vue.d.ts +2 -2
  534. package/lib/components/input/src/input.d.ts +1 -1
  535. package/lib/components/input/src/input.vue.d.ts +11 -11
  536. package/lib/components/input-number/src/input-number.d.ts +3 -3
  537. package/lib/components/input-number/src/input-number.vue.d.ts +11 -11
  538. package/lib/components/input-otp/src/input-otp.vue.d.ts +4 -4
  539. package/lib/components/input-tag/src/input-tag.d.ts +1 -1
  540. package/lib/components/input-tag/src/input-tag.vue.d.ts +13 -13
  541. package/lib/components/link/src/link.d.ts +1 -1
  542. package/lib/components/link/src/link.vue.d.ts +2 -2
  543. package/lib/components/mention/src/mention.d.ts +1 -1
  544. package/lib/components/mention/src/mention.vue.d.ts +3 -3
  545. package/lib/components/menu/src/menu.d.ts +3 -3
  546. package/lib/components/menu/src/sub-menu.d.ts +1 -1
  547. package/lib/components/message/src/message.d.ts +1 -1
  548. package/lib/components/message/src/message.vue.d.ts +10 -10
  549. package/lib/components/message-box/src/index.vue.d.ts +48 -48
  550. package/lib/components/notification/src/notification.d.ts +1 -1
  551. package/lib/components/notification/src/notification.vue.d.ts +10 -10
  552. package/lib/components/pagination/src/components/next.vue.d.ts +1 -1
  553. package/lib/components/pagination/src/components/pager.vue.d.ts +1 -1
  554. package/lib/components/pagination/src/components/sizes.vue.d.ts +1 -1
  555. package/lib/components/pagination/src/pagination.d.ts +2 -2
  556. package/lib/components/popconfirm/src/popconfirm.d.ts +2 -2
  557. package/lib/components/popconfirm/src/popconfirm.vue.d.ts +3 -3
  558. package/lib/components/popover/src/popover.d.ts +60 -60
  559. package/lib/components/popover/src/popover.vue.d.ts +9 -9
  560. package/lib/components/popper/src/composables/use-content.d.ts +4 -4
  561. package/lib/components/popper/src/content.vue.d.ts +9 -9
  562. package/lib/components/popper/src/popper.d.ts +2 -2
  563. package/lib/components/popper/src/popper.vue.d.ts +1 -1
  564. package/lib/components/progress/src/progress.vue.d.ts +3 -3
  565. package/lib/components/radio/src/radio-button.vue.d.ts +2 -2
  566. package/lib/components/radio/src/radio-group.vue.d.ts +6 -6
  567. package/lib/components/radio/src/radio.vue.d.ts +4 -4
  568. package/lib/components/rate/src/rate.vue.d.ts +3 -3
  569. package/lib/components/result/src/result.d.ts +1 -1
  570. package/lib/components/result/src/result.vue.d.ts +1 -1
  571. package/lib/components/roving-focus-group/src/roving-focus-item.vue.d.ts +1 -1
  572. package/lib/components/row/src/row.d.ts +1 -1
  573. package/lib/components/row/src/row.vue.d.ts +1 -1
  574. package/lib/components/scrollbar/src/scrollbar.d.ts +1 -1
  575. package/lib/components/scrollbar/src/scrollbar.vue.d.ts +1 -1
  576. package/lib/components/segmented/index.d.ts +3 -3
  577. package/lib/components/segmented/src/segmented.vue.d.ts +2 -2
  578. package/lib/components/select/src/option.d.ts +1 -1
  579. package/lib/components/select/src/option.vue.d.ts +2 -2
  580. package/lib/components/select/src/select.d.ts +3 -3
  581. package/lib/components/select/src/select.vue.d.ts +62 -62
  582. package/lib/components/select/src/useSelect.d.ts +5 -5
  583. package/lib/components/select-v2/src/defaults.d.ts +2 -2
  584. package/lib/components/select-v2/src/option-item.vue.d.ts +1 -1
  585. package/lib/components/select-v2/src/select.vue.d.ts +51 -51
  586. package/lib/components/skeleton/src/skeleton-item.d.ts +1 -1
  587. package/lib/components/skeleton/src/skeleton-item.vue.d.ts +1 -1
  588. package/lib/components/skeleton/src/skeleton.vue.d.ts +1 -1
  589. package/lib/components/slider/src/button.vue.d.ts +2 -2
  590. package/lib/components/slider/src/slider.vue.d.ts +8 -8
  591. package/lib/components/space/src/space.d.ts +1 -1
  592. package/lib/components/splitter/src/split-bar.vue.d.ts +1 -1
  593. package/lib/components/splitter/src/splitter.vue.d.ts +2 -2
  594. package/lib/components/statistic/src/statistic.vue.d.ts +1 -1
  595. package/lib/components/steps/src/item.d.ts +1 -1
  596. package/lib/components/steps/src/item.vue.d.ts +2 -2
  597. package/lib/components/steps/src/steps.d.ts +2 -2
  598. package/lib/components/steps/src/steps.vue.d.ts +1 -1
  599. package/lib/components/switch/src/switch.vue.d.ts +4 -4
  600. package/lib/components/table/src/filter-panel.vue.d.ts +55 -55
  601. package/lib/components/table/src/table/style-helper.d.ts +1 -1
  602. package/lib/components/table/src/table-column/index.vue_vue_type_script_setup_true_lang.js +7 -0
  603. package/lib/components/table/src/table-column/index.vue_vue_type_script_setup_true_lang.js.map +1 -1
  604. package/lib/components/table/src/table-column/index2.js.map +1 -1
  605. package/lib/components/table/src/table-header/index.d.ts +17 -17
  606. package/lib/components/table/src/table.vue.d.ts +4 -4
  607. package/lib/components/table-v2/src/components/header.d.ts +1 -1
  608. package/lib/components/table-v2/src/components/row.d.ts +1 -1
  609. package/lib/components/table-v2/src/table-grid.d.ts +2 -2
  610. package/lib/components/table-v2/src/table-v2.d.ts +3 -3
  611. package/lib/components/tabs/src/tab-nav.d.ts +1 -1
  612. package/lib/components/tabs/src/tab-pane.vue.d.ts +1 -1
  613. package/lib/components/tabs/src/tabs.d.ts +5 -5
  614. package/lib/components/tag/src/tag.d.ts +1 -1
  615. package/lib/components/tag/src/tag.vue.d.ts +1 -1
  616. package/lib/components/text/src/text.d.ts +1 -1
  617. package/lib/components/text/src/text.vue.d.ts +1 -1
  618. package/lib/components/time-picker/src/common/picker-range-trigger.vue.d.ts +2 -2
  619. package/lib/components/time-picker/src/common/picker.vue.d.ts +16 -16
  620. package/lib/components/time-picker/src/common/props.d.ts +2 -2
  621. package/lib/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts +2 -2
  622. package/lib/components/time-picker/src/time-picker-com/panel-time-range.vue.d.ts +2 -2
  623. package/lib/components/time-picker/src/time-picker.d.ts +12 -12
  624. package/lib/components/time-select/src/time-select.vue.d.ts +10 -10
  625. package/lib/components/timeline/src/timeline-item.d.ts +1 -1
  626. package/lib/components/timeline/src/timeline-item.vue.d.ts +2 -2
  627. package/lib/components/tooltip/src/content.vue.d.ts +5 -5
  628. package/lib/components/tooltip/src/tooltip.d.ts +1 -1
  629. package/lib/components/tooltip/src/tooltip.vue.d.ts +6 -6
  630. package/lib/components/tour/src/content.d.ts +1 -1
  631. package/lib/components/tour/src/content.vue.d.ts +1 -1
  632. package/lib/components/tour/src/step.d.ts +1 -1
  633. package/lib/components/tour/src/tour.d.ts +1 -1
  634. package/lib/components/tour/src/tour.vue.d.ts +3 -3
  635. package/lib/components/transfer/src/transfer.vue.d.ts +2 -2
  636. package/lib/components/tree/src/tree-node.vue.d.ts +17 -17
  637. package/lib/components/tree/src/tree.vue.d.ts +23 -23
  638. package/lib/components/tree-select/src/tree-select-option.d.ts +2 -2
  639. package/lib/components/tree-select/src/tree-select.vue.d.ts +36 -36
  640. package/lib/components/tree-v2/src/composables/useTree.d.ts +12 -12
  641. package/lib/components/tree-v2/src/tree.vue.d.ts +5 -5
  642. package/lib/components/upload/src/upload-content.vue.d.ts +1 -1
  643. package/lib/components/upload/src/upload.vue.d.ts +2 -2
  644. package/lib/components/virtual-list/src/builders/build-grid.d.ts +5 -5
  645. package/lib/components/virtual-list/src/builders/build-list.d.ts +6 -6
  646. package/lib/components/virtual-list/src/components/dynamic-size-grid.d.ts +5 -5
  647. package/lib/components/virtual-list/src/components/dynamic-size-list.d.ts +6 -6
  648. package/lib/components/virtual-list/src/components/fixed-size-grid.d.ts +5 -5
  649. package/lib/components/virtual-list/src/components/fixed-size-list.d.ts +6 -6
  650. package/lib/hooks/use-floating/index.d.ts +8 -8
  651. package/lib/hooks/use-popper/index.d.ts +4 -4
  652. package/lib/version.d.ts +1 -1
  653. package/lib/version.js +1 -1
  654. package/lib/version.js.map +1 -1
  655. package/package.json +2 -2
  656. package/web-types.json +1 -1
@@ -106,19 +106,19 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
106
106
  }, {}, {
107
107
  ElCheckbox: {
108
108
  new (...args: any[]): _$vue.CreateComponentPublicInstanceWithMixins<Readonly<CheckboxProps> & Readonly<{
109
- onChange?: ((val: CheckboxValueType) => any) | undefined;
110
109
  "onUpdate:modelValue"?: ((val: CheckboxValueType) => any) | undefined;
110
+ onChange?: ((val: CheckboxValueType) => any) | undefined;
111
111
  }>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
112
- change: (val: CheckboxValueType) => void;
113
112
  "update:modelValue": (val: CheckboxValueType) => void;
113
+ change: (val: CheckboxValueType) => void;
114
114
  }, _$vue.PublicProps, {
115
- id: string;
115
+ value: string | number | boolean | object;
116
+ label: string | number | boolean | object;
116
117
  disabled: boolean;
117
- modelValue: string | number | boolean;
118
118
  validateEvent: boolean;
119
+ modelValue: string | number | boolean;
119
120
  name: string;
120
- value: string | number | boolean | object;
121
- label: string | number | boolean | object;
121
+ id: string;
122
122
  trueValue: string | number;
123
123
  falseValue: string | number;
124
124
  trueLabel: string | number;
@@ -131,16 +131,16 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
131
131
  M: {};
132
132
  Defaults: {};
133
133
  }, Readonly<CheckboxProps> & Readonly<{
134
- onChange?: ((val: CheckboxValueType) => any) | undefined;
135
134
  "onUpdate:modelValue"?: ((val: CheckboxValueType) => any) | undefined;
135
+ onChange?: ((val: CheckboxValueType) => any) | undefined;
136
136
  }>, {}, {}, {}, {}, {
137
- id: string;
137
+ value: string | number | boolean | object;
138
+ label: string | number | boolean | object;
138
139
  disabled: boolean;
139
- modelValue: string | number | boolean;
140
140
  validateEvent: boolean;
141
+ modelValue: string | number | boolean;
141
142
  name: string;
142
- value: string | number | boolean | object;
143
- label: string | number | boolean | object;
143
+ id: string;
144
144
  trueValue: string | number;
145
145
  falseValue: string | number;
146
146
  trueLabel: string | number;
@@ -150,19 +150,19 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
150
150
  __isTeleport?: never;
151
151
  __isSuspense?: never;
152
152
  } & _$vue.ComponentOptionsBase<Readonly<CheckboxProps> & Readonly<{
153
- onChange?: ((val: CheckboxValueType) => any) | undefined;
154
153
  "onUpdate:modelValue"?: ((val: CheckboxValueType) => any) | undefined;
154
+ onChange?: ((val: CheckboxValueType) => any) | undefined;
155
155
  }>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
156
- change: (val: CheckboxValueType) => void;
157
156
  "update:modelValue": (val: CheckboxValueType) => void;
157
+ change: (val: CheckboxValueType) => void;
158
158
  }, string, {
159
- id: string;
159
+ value: string | number | boolean | object;
160
+ label: string | number | boolean | object;
160
161
  disabled: boolean;
161
- modelValue: string | number | boolean;
162
162
  validateEvent: boolean;
163
+ modelValue: string | number | boolean;
163
164
  name: string;
164
- value: string | number | boolean | object;
165
- label: string | number | boolean | object;
165
+ id: string;
166
166
  trueValue: string | number;
167
167
  falseValue: string | number;
168
168
  trueLabel: string | number;
@@ -198,21 +198,21 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
198
198
  };
199
199
  ElCheckboxGroup: SFCWithInstall<{
200
200
  new (...args: any[]): _$vue.CreateComponentPublicInstanceWithMixins<Readonly<CheckboxGroupProps> & Readonly<{
201
- onChange?: ((val: CheckboxValueType[]) => any) | undefined;
202
201
  "onUpdate:modelValue"?: ((val: CheckboxGroupValueType) => any) | undefined;
202
+ onChange?: ((val: CheckboxValueType[]) => any) | undefined;
203
203
  }>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
204
- change: (val: CheckboxValueType[]) => void;
205
204
  "update:modelValue": (val: CheckboxGroupValueType) => void;
205
+ change: (val: CheckboxValueType[]) => void;
206
206
  }, _$vue.PublicProps, {
207
+ type: "button" | "checkbox";
208
+ disabled: boolean;
209
+ validateEvent: boolean;
210
+ modelValue: CheckboxGroupValueType;
207
211
  props: {
208
212
  value?: string;
209
213
  label?: string;
210
214
  disabled?: string;
211
215
  };
212
- type: "button" | "checkbox";
213
- disabled: boolean;
214
- modelValue: CheckboxGroupValueType;
215
- validateEvent: boolean;
216
216
  tag: string;
217
217
  }, false, {}, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, {}, any, _$vue.ComponentProvideOptions, {
218
218
  P: {};
@@ -222,39 +222,39 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
222
222
  M: {};
223
223
  Defaults: {};
224
224
  }, Readonly<CheckboxGroupProps> & Readonly<{
225
- onChange?: ((val: CheckboxValueType[]) => any) | undefined;
226
225
  "onUpdate:modelValue"?: ((val: CheckboxGroupValueType) => any) | undefined;
226
+ onChange?: ((val: CheckboxValueType[]) => any) | undefined;
227
227
  }>, {}, {}, {}, {}, {
228
+ type: "button" | "checkbox";
229
+ disabled: boolean;
230
+ validateEvent: boolean;
231
+ modelValue: CheckboxGroupValueType;
228
232
  props: {
229
233
  value?: string;
230
234
  label?: string;
231
235
  disabled?: string;
232
236
  };
233
- type: "button" | "checkbox";
234
- disabled: boolean;
235
- modelValue: CheckboxGroupValueType;
236
- validateEvent: boolean;
237
237
  tag: string;
238
238
  }>;
239
239
  __isFragment?: never;
240
240
  __isTeleport?: never;
241
241
  __isSuspense?: never;
242
242
  } & _$vue.ComponentOptionsBase<Readonly<CheckboxGroupProps> & Readonly<{
243
- onChange?: ((val: CheckboxValueType[]) => any) | undefined;
244
243
  "onUpdate:modelValue"?: ((val: CheckboxGroupValueType) => any) | undefined;
244
+ onChange?: ((val: CheckboxValueType[]) => any) | undefined;
245
245
  }>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
246
- change: (val: CheckboxValueType[]) => void;
247
246
  "update:modelValue": (val: CheckboxGroupValueType) => void;
247
+ change: (val: CheckboxValueType[]) => void;
248
248
  }, string, {
249
+ type: "button" | "checkbox";
250
+ disabled: boolean;
251
+ validateEvent: boolean;
252
+ modelValue: CheckboxGroupValueType;
249
253
  props: {
250
254
  value?: string;
251
255
  label?: string;
252
256
  disabled?: string;
253
257
  };
254
- type: "button" | "checkbox";
255
- disabled: boolean;
256
- modelValue: CheckboxGroupValueType;
257
- validateEvent: boolean;
258
258
  tag: string;
259
259
  }, {}, string, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, _$vue.ComponentProvideOptions> & _$vue.VNodeProps & _$vue.AllowedComponentProps & _$vue.ComponentCustomProps & (new () => {
260
260
  $slots: {
@@ -285,10 +285,10 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
285
285
  }) => void;
286
286
  "end-reached": (direction: ScrollbarDirection) => void;
287
287
  }, _$vue.PublicProps, {
288
- tabindex: string | number;
289
288
  height: string | number;
290
289
  mask: boolean | ScrollbarDirection;
291
290
  maxHeight: string | number;
291
+ tabindex: string | number;
292
292
  tag: (string & {}) | keyof HTMLElementTagNameMap;
293
293
  distance: number;
294
294
  wrapStyle: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
@@ -320,10 +320,10 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
320
320
  setScrollLeft: (value: number) => void;
321
321
  handleScroll: () => void;
322
322
  }, {}, {}, {}, {
323
- tabindex: string | number;
324
323
  height: string | number;
325
324
  mask: boolean | ScrollbarDirection;
326
325
  maxHeight: string | number;
326
+ tabindex: string | number;
327
327
  tag: (string & {}) | keyof HTMLElementTagNameMap;
328
328
  distance: number;
329
329
  wrapStyle: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
@@ -358,10 +358,10 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
358
358
  }) => void;
359
359
  "end-reached": (direction: ScrollbarDirection) => void;
360
360
  }, string, {
361
- tabindex: string | number;
362
361
  height: string | number;
363
362
  mask: boolean | ScrollbarDirection;
364
363
  maxHeight: string | number;
364
+ tabindex: string | number;
365
365
  tag: (string & {}) | keyof HTMLElementTagNameMap;
366
366
  distance: number;
367
367
  wrapStyle: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
@@ -400,29 +400,29 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
400
400
  "before-show": (...args: any[]) => void;
401
401
  "before-hide": (...args: any[]) => void;
402
402
  }, _$vue.PublicProps, {
403
- offset: number;
403
+ placement: Placement;
404
+ popperClass: string | false | Record<string, any> | ClassValue[] | null;
405
+ popperStyle: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
404
406
  teleported: boolean;
405
407
  effect: PopperEffect;
408
+ style: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
406
409
  visible: boolean | null;
407
410
  content: string;
408
- style: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
409
411
  enterable: boolean;
410
412
  pure: boolean;
411
413
  focusOnShow: boolean;
412
414
  trapping: boolean;
413
- popperClass: string | false | Record<string, any> | ClassValue[] | null;
414
- popperStyle: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
415
415
  stopPopperMouseEvent: boolean;
416
416
  virtualTriggering: boolean;
417
417
  loop: boolean;
418
418
  boundariesPadding: number;
419
419
  gpuAcceleration: boolean;
420
- placement: Placement;
420
+ offset: number;
421
421
  popperOptions: Partial<Options>;
422
422
  strategy: "fixed" | "absolute";
423
423
  arrowOffset: number;
424
424
  showArrow: boolean;
425
- role: "listbox" | "grid" | "menu" | "tooltip" | "dialog" | "group" | "navigation" | "tree";
425
+ role: "dialog" | "listbox" | "grid" | "menu" | "tooltip" | "group" | "navigation" | "tree";
426
426
  showAfter: number;
427
427
  hideAfter: number;
428
428
  autoClose: number;
@@ -452,29 +452,29 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
452
452
  onClose: (event?: Event, delay?: number) => void;
453
453
  hide: (event?: Event) => void;
454
454
  }, {}, {}, {}, {
455
- offset: number;
455
+ placement: Placement;
456
+ popperClass: string | false | Record<string, any> | ClassValue[] | null;
457
+ popperStyle: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
456
458
  teleported: boolean;
457
459
  effect: PopperEffect;
460
+ style: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
458
461
  visible: boolean | null;
459
462
  content: string;
460
- style: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
461
463
  enterable: boolean;
462
464
  pure: boolean;
463
465
  focusOnShow: boolean;
464
466
  trapping: boolean;
465
- popperClass: string | false | Record<string, any> | ClassValue[] | null;
466
- popperStyle: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
467
467
  stopPopperMouseEvent: boolean;
468
468
  virtualTriggering: boolean;
469
469
  loop: boolean;
470
470
  boundariesPadding: number;
471
471
  gpuAcceleration: boolean;
472
- placement: Placement;
472
+ offset: number;
473
473
  popperOptions: Partial<Options>;
474
474
  strategy: "fixed" | "absolute";
475
475
  arrowOffset: number;
476
476
  showArrow: boolean;
477
- role: "listbox" | "grid" | "menu" | "tooltip" | "dialog" | "group" | "navigation" | "tree";
477
+ role: "dialog" | "listbox" | "grid" | "menu" | "tooltip" | "group" | "navigation" | "tree";
478
478
  showAfter: number;
479
479
  hideAfter: number;
480
480
  autoClose: number;
@@ -509,29 +509,29 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
509
509
  "before-show": (...args: any[]) => void;
510
510
  "before-hide": (...args: any[]) => void;
511
511
  }, string, {
512
- offset: number;
512
+ placement: Placement;
513
+ popperClass: string | false | Record<string, any> | ClassValue[] | null;
514
+ popperStyle: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
513
515
  teleported: boolean;
514
516
  effect: PopperEffect;
517
+ style: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
515
518
  visible: boolean | null;
516
519
  content: string;
517
- style: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
518
520
  enterable: boolean;
519
521
  pure: boolean;
520
522
  focusOnShow: boolean;
521
523
  trapping: boolean;
522
- popperClass: string | false | Record<string, any> | ClassValue[] | null;
523
- popperStyle: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
524
524
  stopPopperMouseEvent: boolean;
525
525
  virtualTriggering: boolean;
526
526
  loop: boolean;
527
527
  boundariesPadding: number;
528
528
  gpuAcceleration: boolean;
529
- placement: Placement;
529
+ offset: number;
530
530
  popperOptions: Partial<Options>;
531
531
  strategy: "fixed" | "absolute";
532
532
  arrowOffset: number;
533
533
  showArrow: boolean;
534
- role: "listbox" | "grid" | "menu" | "tooltip" | "dialog" | "group" | "navigation" | "tree";
534
+ role: "dialog" | "listbox" | "grid" | "menu" | "tooltip" | "group" | "navigation" | "tree";
535
535
  showAfter: number;
536
536
  hideAfter: number;
537
537
  autoClose: number;
@@ -35,7 +35,7 @@ declare function useStyle<T extends DefaultRow>(props: TableProps<T>, layout: Ta
35
35
  tableBodyStyles: _$vue.ComputedRef<{
36
36
  width: string;
37
37
  }>;
38
- tableLayout: _$vue.ComputedRef<"fixed" | "auto">;
38
+ tableLayout: _$vue.ComputedRef<"auto" | "fixed">;
39
39
  scrollbarViewStyle: {
40
40
  display: string;
41
41
  verticalAlign: string;
@@ -90,6 +90,13 @@ var index_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ (0, vue.de
90
90
  columnConfig.value.getColumnIndex = getColumnIndex;
91
91
  getColumnIndex() > -1 && owner.value.store.commit("insertColumn", columnConfig.value, isSubColumn.value ? "columnConfig" in parent && parent.columnConfig.value : null, updateColumnOrder);
92
92
  });
93
+ let headerSlot = slots.header;
94
+ (0, vue.onBeforeUpdate)(() => {
95
+ if (slots.header !== headerSlot) {
96
+ headerSlot = slots.header;
97
+ (0, vue.triggerRef)(columnConfig);
98
+ }
99
+ });
93
100
  (0, vue.onBeforeUnmount)(() => {
94
101
  const getColumnIndex = columnConfig.value.getColumnIndex;
95
102
  (getColumnIndex ? getColumnIndex() : -1) > -1 && owner.value.store.commit("removeColumn", columnConfig.value, isSubColumn.value ? "columnConfig" in parent && parent.columnConfig.value : null, updateColumnOrder);
@@ -1 +1 @@
1
- {"version":3,"file":"index.vue_vue_type_script_setup_true_lang.js","names":["tableColumnProps","_useSlots","getCurrentInstance","useGlobalConfig","ref","computed","useWatcher","useRender","createTableColumnId","isUndefined","cellStarts","mergeOptions","compose","isArray","Fragment","isString","h","_openBlock","_createBlock"],"sources":["../../../../../../../packages/components/table/src/table-column/index.vue"],"sourcesContent":["<template>\n <TableColumnRenderer />\n</template>\n\n<script lang=\"ts\" setup generic=\"T extends DefaultRow = DefaultRow\">\nimport {\n Fragment,\n computed,\n getCurrentInstance,\n h,\n onBeforeMount,\n onBeforeUnmount,\n onMounted,\n ref,\n} from 'vue'\nimport { useGlobalConfig } from '@element-plus/components/config-provider'\nimport { isArray, isString, isUndefined } from '@element-plus/utils'\nimport { cellStarts } from '../config'\nimport { compose, createTableColumnId, mergeOptions } from '../util'\nimport useWatcher from './watcher-helper'\nimport useRender from './render-helper'\n\nimport type { VNode } from 'vue'\nimport type { TableColumn, TableColumnCtx, TableColumnProps } from './defaults'\nimport type { DefaultRow } from '../table/defaults'\n\ndefineOptions({\n name: 'ElTableColumn',\n})\n\nconst props = withDefaults(defineProps<TableColumnProps<T>>(), {\n type: 'default',\n width: '',\n minWidth: '',\n sortable: false,\n resizable: true,\n showOverflowTooltip: undefined,\n filterMultiple: true,\n sortOrders: () => ['ascending', 'descending', null],\n})\nconst slots = defineSlots<{\n default?: (props: {\n row: T\n column: TableColumnCtx<T>\n $index: number\n }) => any\n header?: (props: { column: TableColumnCtx<T>; $index: number }) => any\n expand?: (props: { expanded: boolean; expandable: boolean }) => any\n 'filter-icon'?: (props: { filterOpened: boolean }) => any\n}>()\n\nconst instance = getCurrentInstance() as TableColumn<T>\nconst globalConfig = useGlobalConfig('table')\nconst columnConfig = ref<Partial<TableColumnCtx<T>>>({})\nconst owner = computed(() => {\n let parent = instance.parent as any\n while (parent && !parent.tableId) {\n parent = parent.parent\n }\n return parent\n})\n\nconst { registerNormalWatchers, registerComplexWatchers } = useWatcher<T>(\n owner,\n props\n)\nconst {\n columnId,\n isSubColumn,\n realHeaderAlign,\n columnOrTableParent,\n setColumnWidth,\n setColumnForcedProps,\n setColumnRenders,\n getPropsData,\n getColumnElIndex,\n realAlign,\n updateColumnOrder,\n} = useRender<T>(props as unknown as TableColumnCtx<T>, slots, owner)\n\nconst parent = columnOrTableParent.value\nconst parentId = 'tableId' in parent ? parent.tableId : parent.columnId\ncolumnId.value = createTableColumnId(parentId)\n\nonBeforeMount(() => {\n isSubColumn.value = owner.value !== parent\n\n const type = (props.type as keyof typeof cellStarts) || 'default'\n const sortable = props.sortable === '' ? true : props.sortable\n //The selection column should not be affected by `showOverflowTooltip`.\n const showOverflowTooltip =\n type === 'selection'\n ? false\n : isUndefined(props.showOverflowTooltip)\n ? (parent.props.showOverflowTooltip ??\n globalConfig.value?.showOverflowTooltip)\n : props.showOverflowTooltip\n const tooltipFormatter = isUndefined(props.tooltipFormatter)\n ? (parent.props.tooltipFormatter ?? globalConfig.value?.tooltipFormatter)\n : props.tooltipFormatter\n const defaults = {\n ...cellStarts[type],\n id: columnId.value,\n type,\n property: props.prop || props.property,\n align: realAlign,\n headerAlign: realHeaderAlign,\n showOverflowTooltip,\n tooltipFormatter,\n // filter 相关属性\n filterable: props.filters || props.filterMethod,\n filteredValue: [],\n filterPlacement: '',\n filterClassName: '',\n isColumnGroup: false,\n isSubColumn: false,\n filterOpened: false,\n // sort 相关属性\n sortable,\n // index 列\n index: props.index,\n // <el-table-column key=\"xxx\" />\n rawColumnKey: instance.vnode.key,\n }\n\n const basicProps = [\n 'columnKey',\n 'label',\n 'className',\n 'labelClassName',\n 'type',\n 'renderHeader',\n 'formatter',\n 'fixed',\n 'resizable',\n ]\n const sortProps = ['sortMethod', 'sortBy', 'sortOrders']\n const selectProps = ['selectable', 'reserveSelection']\n const filterProps = [\n 'filterMethod',\n 'filters',\n 'filterMultiple',\n 'filterOpened',\n 'filteredValue',\n 'filterPlacement',\n 'filterClassName',\n ]\n\n let column = getPropsData(basicProps, sortProps, selectProps, filterProps)\n\n column = mergeOptions(defaults, column)\n // 注意 compose 中函数执行的顺序是从右到左\n const chains = compose(setColumnRenders, setColumnWidth, setColumnForcedProps)\n column = chains(column) as unknown as TableColumnCtx<T>\n columnConfig.value = column\n\n // 注册 watcher\n registerNormalWatchers()\n registerComplexWatchers()\n})\n\nonMounted(() => {\n const parent = columnOrTableParent.value\n const children = isSubColumn.value\n ? parent.vnode.el?.children\n : parent.refs.hiddenColumns?.children\n const getColumnIndex = () =>\n getColumnElIndex(children || [], instance.vnode.el)\n columnConfig.value.getColumnIndex = getColumnIndex\n const columnIndex = getColumnIndex()\n columnIndex > -1 &&\n owner.value.store.commit(\n 'insertColumn',\n columnConfig.value,\n isSubColumn.value\n ? 'columnConfig' in parent && parent.columnConfig.value\n : null,\n updateColumnOrder\n )\n})\n\nonBeforeUnmount(() => {\n const getColumnIndex = columnConfig.value.getColumnIndex\n const columnIndex = getColumnIndex ? getColumnIndex() : -1\n columnIndex > -1 &&\n owner.value.store.commit(\n 'removeColumn',\n columnConfig.value,\n isSubColumn.value\n ? 'columnConfig' in parent && parent.columnConfig.value\n : null,\n updateColumnOrder\n )\n})\n\ninstance.columnId = columnId.value\n\ninstance.columnConfig = columnConfig as any\n\nconst TableColumnRenderer = () => {\n try {\n const renderDefault = slots.default?.({\n row: {} as T,\n column: {} as TableColumnCtx<T>,\n $index: -1,\n })\n const children: VNode[] = []\n if (isArray(renderDefault)) {\n for (const childNode of renderDefault) {\n if (\n (childNode.type as any)?.name === 'ElTableColumn' ||\n childNode.shapeFlag & 2\n ) {\n children.push(childNode)\n } else if (childNode.type === Fragment && isArray(childNode.children)) {\n childNode.children.forEach((vnode: VNode) => {\n // No rendering when vnode is dynamic slot or text\n if (\n (vnode as VNode)?.patchFlag !== 1024 &&\n !isString((vnode as VNode)?.children)\n ) {\n children.push(vnode)\n }\n })\n }\n }\n }\n return h('div', children)\n } catch {\n return h('div', [])\n }\n}\n</script>\n"],"mappings":"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"}
1
+ {"version":3,"file":"index.vue_vue_type_script_setup_true_lang.js","names":["tableColumnProps","_useSlots","getCurrentInstance","useGlobalConfig","ref","computed","useWatcher","useRender","createTableColumnId","isUndefined","cellStarts","mergeOptions","compose","isArray","Fragment","isString","h","_openBlock","_createBlock"],"sources":["../../../../../../../packages/components/table/src/table-column/index.vue"],"sourcesContent":["<template>\n <TableColumnRenderer />\n</template>\n\n<script lang=\"ts\" setup generic=\"T extends DefaultRow = DefaultRow\">\nimport {\n Fragment,\n computed,\n getCurrentInstance,\n h,\n onBeforeMount,\n onBeforeUnmount,\n onBeforeUpdate,\n onMounted,\n ref,\n triggerRef,\n} from 'vue'\nimport { useGlobalConfig } from '@element-plus/components/config-provider'\nimport { isArray, isString, isUndefined } from '@element-plus/utils'\nimport { cellStarts } from '../config'\nimport { compose, createTableColumnId, mergeOptions } from '../util'\nimport useWatcher from './watcher-helper'\nimport useRender from './render-helper'\n\nimport type { VNode } from 'vue'\nimport type { TableColumn, TableColumnCtx, TableColumnProps } from './defaults'\nimport type { DefaultRow } from '../table/defaults'\n\ndefineOptions({\n name: 'ElTableColumn',\n})\n\nconst props = withDefaults(defineProps<TableColumnProps<T>>(), {\n type: 'default',\n width: '',\n minWidth: '',\n sortable: false,\n resizable: true,\n showOverflowTooltip: undefined,\n filterMultiple: true,\n sortOrders: () => ['ascending', 'descending', null],\n})\nconst slots = defineSlots<{\n default?: (props: {\n row: T\n column: TableColumnCtx<T>\n $index: number\n }) => any\n header?: (props: { column: TableColumnCtx<T>; $index: number }) => any\n expand?: (props: { expanded: boolean; expandable: boolean }) => any\n 'filter-icon'?: (props: { filterOpened: boolean }) => any\n}>()\n\nconst instance = getCurrentInstance() as TableColumn<T>\nconst globalConfig = useGlobalConfig('table')\nconst columnConfig = ref<Partial<TableColumnCtx<T>>>({})\nconst owner = computed(() => {\n let parent = instance.parent as any\n while (parent && !parent.tableId) {\n parent = parent.parent\n }\n return parent\n})\n\nconst { registerNormalWatchers, registerComplexWatchers } = useWatcher<T>(\n owner,\n props\n)\nconst {\n columnId,\n isSubColumn,\n realHeaderAlign,\n columnOrTableParent,\n setColumnWidth,\n setColumnForcedProps,\n setColumnRenders,\n getPropsData,\n getColumnElIndex,\n realAlign,\n updateColumnOrder,\n} = useRender<T>(props as unknown as TableColumnCtx<T>, slots, owner)\n\nconst parent = columnOrTableParent.value\nconst parentId = 'tableId' in parent ? parent.tableId : parent.columnId\ncolumnId.value = createTableColumnId(parentId)\n\nonBeforeMount(() => {\n isSubColumn.value = owner.value !== parent\n\n const type = (props.type as keyof typeof cellStarts) || 'default'\n const sortable = props.sortable === '' ? true : props.sortable\n //The selection column should not be affected by `showOverflowTooltip`.\n const showOverflowTooltip =\n type === 'selection'\n ? false\n : isUndefined(props.showOverflowTooltip)\n ? (parent.props.showOverflowTooltip ??\n globalConfig.value?.showOverflowTooltip)\n : props.showOverflowTooltip\n const tooltipFormatter = isUndefined(props.tooltipFormatter)\n ? (parent.props.tooltipFormatter ?? globalConfig.value?.tooltipFormatter)\n : props.tooltipFormatter\n const defaults = {\n ...cellStarts[type],\n id: columnId.value,\n type,\n property: props.prop || props.property,\n align: realAlign,\n headerAlign: realHeaderAlign,\n showOverflowTooltip,\n tooltipFormatter,\n // filter 相关属性\n filterable: props.filters || props.filterMethod,\n filteredValue: [],\n filterPlacement: '',\n filterClassName: '',\n isColumnGroup: false,\n isSubColumn: false,\n filterOpened: false,\n // sort 相关属性\n sortable,\n // index 列\n index: props.index,\n // <el-table-column key=\"xxx\" />\n rawColumnKey: instance.vnode.key,\n }\n\n const basicProps = [\n 'columnKey',\n 'label',\n 'className',\n 'labelClassName',\n 'type',\n 'renderHeader',\n 'formatter',\n 'fixed',\n 'resizable',\n ]\n const sortProps = ['sortMethod', 'sortBy', 'sortOrders']\n const selectProps = ['selectable', 'reserveSelection']\n const filterProps = [\n 'filterMethod',\n 'filters',\n 'filterMultiple',\n 'filterOpened',\n 'filteredValue',\n 'filterPlacement',\n 'filterClassName',\n ]\n\n let column = getPropsData(basicProps, sortProps, selectProps, filterProps)\n\n column = mergeOptions(defaults, column)\n // 注意 compose 中函数执行的顺序是从右到左\n const chains = compose(setColumnRenders, setColumnWidth, setColumnForcedProps)\n column = chains(column) as unknown as TableColumnCtx<T>\n columnConfig.value = column\n\n // 注册 watcher\n registerNormalWatchers()\n registerComplexWatchers()\n})\n\nonMounted(() => {\n const parent = columnOrTableParent.value\n const children = isSubColumn.value\n ? parent.vnode.el?.children\n : parent.refs.hiddenColumns?.children\n const getColumnIndex = () =>\n getColumnElIndex(children || [], instance.vnode.el)\n columnConfig.value.getColumnIndex = getColumnIndex\n const columnIndex = getColumnIndex()\n columnIndex > -1 &&\n owner.value.store.commit(\n 'insertColumn',\n columnConfig.value,\n isSubColumn.value\n ? 'columnConfig' in parent && parent.columnConfig.value\n : null,\n updateColumnOrder\n )\n})\n\nlet headerSlot = slots.header\nonBeforeUpdate(() => {\n // The header renders in the table header component, which does not track this column's slots.\n if (slots.header !== headerSlot) {\n headerSlot = slots.header\n triggerRef(columnConfig)\n }\n})\n\nonBeforeUnmount(() => {\n const getColumnIndex = columnConfig.value.getColumnIndex\n const columnIndex = getColumnIndex ? getColumnIndex() : -1\n columnIndex > -1 &&\n owner.value.store.commit(\n 'removeColumn',\n columnConfig.value,\n isSubColumn.value\n ? 'columnConfig' in parent && parent.columnConfig.value\n : null,\n updateColumnOrder\n )\n})\n\ninstance.columnId = columnId.value\n\ninstance.columnConfig = columnConfig as any\n\nconst TableColumnRenderer = () => {\n try {\n const renderDefault = slots.default?.({\n row: {} as T,\n column: {} as TableColumnCtx<T>,\n $index: -1,\n })\n const children: VNode[] = []\n if (isArray(renderDefault)) {\n for (const childNode of renderDefault) {\n if (\n (childNode.type as any)?.name === 'ElTableColumn' ||\n childNode.shapeFlag & 2\n ) {\n children.push(childNode)\n } else if (childNode.type === Fragment && isArray(childNode.children)) {\n childNode.children.forEach((vnode: VNode) => {\n // No rendering when vnode is dynamic slot or text\n if (\n (vnode as VNode)?.patchFlag !== 1024 &&\n !isString((vnode as VNode)?.children)\n ) {\n children.push(vnode)\n }\n })\n }\n }\n }\n return h('div', children)\n } catch {\n return h('div', [])\n }\n}\n</script>\n"],"mappings":"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"}
@@ -1 +1 @@
1
- {"version":3,"file":"index2.js","names":["_sfc_main"],"sources":["../../../../../../../packages/components/table/src/table-column/index.vue"],"sourcesContent":["<template>\n <TableColumnRenderer />\n</template>\n\n<script lang=\"ts\" setup generic=\"T extends DefaultRow = DefaultRow\">\nimport {\n Fragment,\n computed,\n getCurrentInstance,\n h,\n onBeforeMount,\n onBeforeUnmount,\n onMounted,\n ref,\n} from 'vue'\nimport { useGlobalConfig } from '@element-plus/components/config-provider'\nimport { isArray, isString, isUndefined } from '@element-plus/utils'\nimport { cellStarts } from '../config'\nimport { compose, createTableColumnId, mergeOptions } from '../util'\nimport useWatcher from './watcher-helper'\nimport useRender from './render-helper'\n\nimport type { VNode } from 'vue'\nimport type { TableColumn, TableColumnCtx, TableColumnProps } from './defaults'\nimport type { DefaultRow } from '../table/defaults'\n\ndefineOptions({\n name: 'ElTableColumn',\n})\n\nconst props = withDefaults(defineProps<TableColumnProps<T>>(), {\n type: 'default',\n width: '',\n minWidth: '',\n sortable: false,\n resizable: true,\n showOverflowTooltip: undefined,\n filterMultiple: true,\n sortOrders: () => ['ascending', 'descending', null],\n})\nconst slots = defineSlots<{\n default?: (props: {\n row: T\n column: TableColumnCtx<T>\n $index: number\n }) => any\n header?: (props: { column: TableColumnCtx<T>; $index: number }) => any\n expand?: (props: { expanded: boolean; expandable: boolean }) => any\n 'filter-icon'?: (props: { filterOpened: boolean }) => any\n}>()\n\nconst instance = getCurrentInstance() as TableColumn<T>\nconst globalConfig = useGlobalConfig('table')\nconst columnConfig = ref<Partial<TableColumnCtx<T>>>({})\nconst owner = computed(() => {\n let parent = instance.parent as any\n while (parent && !parent.tableId) {\n parent = parent.parent\n }\n return parent\n})\n\nconst { registerNormalWatchers, registerComplexWatchers } = useWatcher<T>(\n owner,\n props\n)\nconst {\n columnId,\n isSubColumn,\n realHeaderAlign,\n columnOrTableParent,\n setColumnWidth,\n setColumnForcedProps,\n setColumnRenders,\n getPropsData,\n getColumnElIndex,\n realAlign,\n updateColumnOrder,\n} = useRender<T>(props as unknown as TableColumnCtx<T>, slots, owner)\n\nconst parent = columnOrTableParent.value\nconst parentId = 'tableId' in parent ? parent.tableId : parent.columnId\ncolumnId.value = createTableColumnId(parentId)\n\nonBeforeMount(() => {\n isSubColumn.value = owner.value !== parent\n\n const type = (props.type as keyof typeof cellStarts) || 'default'\n const sortable = props.sortable === '' ? true : props.sortable\n //The selection column should not be affected by `showOverflowTooltip`.\n const showOverflowTooltip =\n type === 'selection'\n ? false\n : isUndefined(props.showOverflowTooltip)\n ? (parent.props.showOverflowTooltip ??\n globalConfig.value?.showOverflowTooltip)\n : props.showOverflowTooltip\n const tooltipFormatter = isUndefined(props.tooltipFormatter)\n ? (parent.props.tooltipFormatter ?? globalConfig.value?.tooltipFormatter)\n : props.tooltipFormatter\n const defaults = {\n ...cellStarts[type],\n id: columnId.value,\n type,\n property: props.prop || props.property,\n align: realAlign,\n headerAlign: realHeaderAlign,\n showOverflowTooltip,\n tooltipFormatter,\n // filter 相关属性\n filterable: props.filters || props.filterMethod,\n filteredValue: [],\n filterPlacement: '',\n filterClassName: '',\n isColumnGroup: false,\n isSubColumn: false,\n filterOpened: false,\n // sort 相关属性\n sortable,\n // index 列\n index: props.index,\n // <el-table-column key=\"xxx\" />\n rawColumnKey: instance.vnode.key,\n }\n\n const basicProps = [\n 'columnKey',\n 'label',\n 'className',\n 'labelClassName',\n 'type',\n 'renderHeader',\n 'formatter',\n 'fixed',\n 'resizable',\n ]\n const sortProps = ['sortMethod', 'sortBy', 'sortOrders']\n const selectProps = ['selectable', 'reserveSelection']\n const filterProps = [\n 'filterMethod',\n 'filters',\n 'filterMultiple',\n 'filterOpened',\n 'filteredValue',\n 'filterPlacement',\n 'filterClassName',\n ]\n\n let column = getPropsData(basicProps, sortProps, selectProps, filterProps)\n\n column = mergeOptions(defaults, column)\n // 注意 compose 中函数执行的顺序是从右到左\n const chains = compose(setColumnRenders, setColumnWidth, setColumnForcedProps)\n column = chains(column) as unknown as TableColumnCtx<T>\n columnConfig.value = column\n\n // 注册 watcher\n registerNormalWatchers()\n registerComplexWatchers()\n})\n\nonMounted(() => {\n const parent = columnOrTableParent.value\n const children = isSubColumn.value\n ? parent.vnode.el?.children\n : parent.refs.hiddenColumns?.children\n const getColumnIndex = () =>\n getColumnElIndex(children || [], instance.vnode.el)\n columnConfig.value.getColumnIndex = getColumnIndex\n const columnIndex = getColumnIndex()\n columnIndex > -1 &&\n owner.value.store.commit(\n 'insertColumn',\n columnConfig.value,\n isSubColumn.value\n ? 'columnConfig' in parent && parent.columnConfig.value\n : null,\n updateColumnOrder\n )\n})\n\nonBeforeUnmount(() => {\n const getColumnIndex = columnConfig.value.getColumnIndex\n const columnIndex = getColumnIndex ? getColumnIndex() : -1\n columnIndex > -1 &&\n owner.value.store.commit(\n 'removeColumn',\n columnConfig.value,\n isSubColumn.value\n ? 'columnConfig' in parent && parent.columnConfig.value\n : null,\n updateColumnOrder\n )\n})\n\ninstance.columnId = columnId.value\n\ninstance.columnConfig = columnConfig as any\n\nconst TableColumnRenderer = () => {\n try {\n const renderDefault = slots.default?.({\n row: {} as T,\n column: {} as TableColumnCtx<T>,\n $index: -1,\n })\n const children: VNode[] = []\n if (isArray(renderDefault)) {\n for (const childNode of renderDefault) {\n if (\n (childNode.type as any)?.name === 'ElTableColumn' ||\n childNode.shapeFlag & 2\n ) {\n children.push(childNode)\n } else if (childNode.type === Fragment && isArray(childNode.children)) {\n childNode.children.forEach((vnode: VNode) => {\n // No rendering when vnode is dynamic slot or text\n if (\n (vnode as VNode)?.patchFlag !== 1024 &&\n !isString((vnode as VNode)?.children)\n ) {\n children.push(vnode)\n }\n })\n }\n }\n }\n return h('div', children)\n } catch {\n return h('div', [])\n }\n}\n</script>\n"],"mappings":""}
1
+ {"version":3,"file":"index2.js","names":["_sfc_main"],"sources":["../../../../../../../packages/components/table/src/table-column/index.vue"],"sourcesContent":["<template>\n <TableColumnRenderer />\n</template>\n\n<script lang=\"ts\" setup generic=\"T extends DefaultRow = DefaultRow\">\nimport {\n Fragment,\n computed,\n getCurrentInstance,\n h,\n onBeforeMount,\n onBeforeUnmount,\n onBeforeUpdate,\n onMounted,\n ref,\n triggerRef,\n} from 'vue'\nimport { useGlobalConfig } from '@element-plus/components/config-provider'\nimport { isArray, isString, isUndefined } from '@element-plus/utils'\nimport { cellStarts } from '../config'\nimport { compose, createTableColumnId, mergeOptions } from '../util'\nimport useWatcher from './watcher-helper'\nimport useRender from './render-helper'\n\nimport type { VNode } from 'vue'\nimport type { TableColumn, TableColumnCtx, TableColumnProps } from './defaults'\nimport type { DefaultRow } from '../table/defaults'\n\ndefineOptions({\n name: 'ElTableColumn',\n})\n\nconst props = withDefaults(defineProps<TableColumnProps<T>>(), {\n type: 'default',\n width: '',\n minWidth: '',\n sortable: false,\n resizable: true,\n showOverflowTooltip: undefined,\n filterMultiple: true,\n sortOrders: () => ['ascending', 'descending', null],\n})\nconst slots = defineSlots<{\n default?: (props: {\n row: T\n column: TableColumnCtx<T>\n $index: number\n }) => any\n header?: (props: { column: TableColumnCtx<T>; $index: number }) => any\n expand?: (props: { expanded: boolean; expandable: boolean }) => any\n 'filter-icon'?: (props: { filterOpened: boolean }) => any\n}>()\n\nconst instance = getCurrentInstance() as TableColumn<T>\nconst globalConfig = useGlobalConfig('table')\nconst columnConfig = ref<Partial<TableColumnCtx<T>>>({})\nconst owner = computed(() => {\n let parent = instance.parent as any\n while (parent && !parent.tableId) {\n parent = parent.parent\n }\n return parent\n})\n\nconst { registerNormalWatchers, registerComplexWatchers } = useWatcher<T>(\n owner,\n props\n)\nconst {\n columnId,\n isSubColumn,\n realHeaderAlign,\n columnOrTableParent,\n setColumnWidth,\n setColumnForcedProps,\n setColumnRenders,\n getPropsData,\n getColumnElIndex,\n realAlign,\n updateColumnOrder,\n} = useRender<T>(props as unknown as TableColumnCtx<T>, slots, owner)\n\nconst parent = columnOrTableParent.value\nconst parentId = 'tableId' in parent ? parent.tableId : parent.columnId\ncolumnId.value = createTableColumnId(parentId)\n\nonBeforeMount(() => {\n isSubColumn.value = owner.value !== parent\n\n const type = (props.type as keyof typeof cellStarts) || 'default'\n const sortable = props.sortable === '' ? true : props.sortable\n //The selection column should not be affected by `showOverflowTooltip`.\n const showOverflowTooltip =\n type === 'selection'\n ? false\n : isUndefined(props.showOverflowTooltip)\n ? (parent.props.showOverflowTooltip ??\n globalConfig.value?.showOverflowTooltip)\n : props.showOverflowTooltip\n const tooltipFormatter = isUndefined(props.tooltipFormatter)\n ? (parent.props.tooltipFormatter ?? globalConfig.value?.tooltipFormatter)\n : props.tooltipFormatter\n const defaults = {\n ...cellStarts[type],\n id: columnId.value,\n type,\n property: props.prop || props.property,\n align: realAlign,\n headerAlign: realHeaderAlign,\n showOverflowTooltip,\n tooltipFormatter,\n // filter 相关属性\n filterable: props.filters || props.filterMethod,\n filteredValue: [],\n filterPlacement: '',\n filterClassName: '',\n isColumnGroup: false,\n isSubColumn: false,\n filterOpened: false,\n // sort 相关属性\n sortable,\n // index 列\n index: props.index,\n // <el-table-column key=\"xxx\" />\n rawColumnKey: instance.vnode.key,\n }\n\n const basicProps = [\n 'columnKey',\n 'label',\n 'className',\n 'labelClassName',\n 'type',\n 'renderHeader',\n 'formatter',\n 'fixed',\n 'resizable',\n ]\n const sortProps = ['sortMethod', 'sortBy', 'sortOrders']\n const selectProps = ['selectable', 'reserveSelection']\n const filterProps = [\n 'filterMethod',\n 'filters',\n 'filterMultiple',\n 'filterOpened',\n 'filteredValue',\n 'filterPlacement',\n 'filterClassName',\n ]\n\n let column = getPropsData(basicProps, sortProps, selectProps, filterProps)\n\n column = mergeOptions(defaults, column)\n // 注意 compose 中函数执行的顺序是从右到左\n const chains = compose(setColumnRenders, setColumnWidth, setColumnForcedProps)\n column = chains(column) as unknown as TableColumnCtx<T>\n columnConfig.value = column\n\n // 注册 watcher\n registerNormalWatchers()\n registerComplexWatchers()\n})\n\nonMounted(() => {\n const parent = columnOrTableParent.value\n const children = isSubColumn.value\n ? parent.vnode.el?.children\n : parent.refs.hiddenColumns?.children\n const getColumnIndex = () =>\n getColumnElIndex(children || [], instance.vnode.el)\n columnConfig.value.getColumnIndex = getColumnIndex\n const columnIndex = getColumnIndex()\n columnIndex > -1 &&\n owner.value.store.commit(\n 'insertColumn',\n columnConfig.value,\n isSubColumn.value\n ? 'columnConfig' in parent && parent.columnConfig.value\n : null,\n updateColumnOrder\n )\n})\n\nlet headerSlot = slots.header\nonBeforeUpdate(() => {\n // The header renders in the table header component, which does not track this column's slots.\n if (slots.header !== headerSlot) {\n headerSlot = slots.header\n triggerRef(columnConfig)\n }\n})\n\nonBeforeUnmount(() => {\n const getColumnIndex = columnConfig.value.getColumnIndex\n const columnIndex = getColumnIndex ? getColumnIndex() : -1\n columnIndex > -1 &&\n owner.value.store.commit(\n 'removeColumn',\n columnConfig.value,\n isSubColumn.value\n ? 'columnConfig' in parent && parent.columnConfig.value\n : null,\n updateColumnOrder\n )\n})\n\ninstance.columnId = columnId.value\n\ninstance.columnConfig = columnConfig as any\n\nconst TableColumnRenderer = () => {\n try {\n const renderDefault = slots.default?.({\n row: {} as T,\n column: {} as TableColumnCtx<T>,\n $index: -1,\n })\n const children: VNode[] = []\n if (isArray(renderDefault)) {\n for (const childNode of renderDefault) {\n if (\n (childNode.type as any)?.name === 'ElTableColumn' ||\n childNode.shapeFlag & 2\n ) {\n children.push(childNode)\n } else if (childNode.type === Fragment && isArray(childNode.children)) {\n childNode.children.forEach((vnode: VNode) => {\n // No rendering when vnode is dynamic slot or text\n if (\n (vnode as VNode)?.patchFlag !== 1024 &&\n !isString((vnode as VNode)?.children)\n ) {\n children.push(vnode)\n }\n })\n }\n }\n }\n return h('div', children)\n } catch {\n return h('div', [])\n }\n}\n</script>\n"],"mappings":""}
@@ -119,19 +119,19 @@ declare const _default: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
119
119
  }, {}, {
120
120
  ElCheckbox: {
121
121
  new (...args: any[]): _$vue.CreateComponentPublicInstanceWithMixins<Readonly<CheckboxProps> & Readonly<{
122
- onChange?: ((val: CheckboxValueType) => any) | undefined;
123
122
  "onUpdate:modelValue"?: ((val: CheckboxValueType) => any) | undefined;
123
+ onChange?: ((val: CheckboxValueType) => any) | undefined;
124
124
  }>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
125
- change: (val: CheckboxValueType) => void;
126
125
  "update:modelValue": (val: CheckboxValueType) => void;
126
+ change: (val: CheckboxValueType) => void;
127
127
  }, _$vue.PublicProps, {
128
- id: string;
128
+ value: string | number | boolean | object;
129
+ label: string | number | boolean | object;
129
130
  disabled: boolean;
130
- modelValue: string | number | boolean;
131
131
  validateEvent: boolean;
132
+ modelValue: string | number | boolean;
132
133
  name: string;
133
- value: string | number | boolean | object;
134
- label: string | number | boolean | object;
134
+ id: string;
135
135
  trueValue: string | number;
136
136
  falseValue: string | number;
137
137
  trueLabel: string | number;
@@ -144,16 +144,16 @@ declare const _default: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
144
144
  M: {};
145
145
  Defaults: {};
146
146
  }, Readonly<CheckboxProps> & Readonly<{
147
- onChange?: ((val: CheckboxValueType) => any) | undefined;
148
147
  "onUpdate:modelValue"?: ((val: CheckboxValueType) => any) | undefined;
148
+ onChange?: ((val: CheckboxValueType) => any) | undefined;
149
149
  }>, {}, {}, {}, {}, {
150
- id: string;
150
+ value: string | number | boolean | object;
151
+ label: string | number | boolean | object;
151
152
  disabled: boolean;
152
- modelValue: string | number | boolean;
153
153
  validateEvent: boolean;
154
+ modelValue: string | number | boolean;
154
155
  name: string;
155
- value: string | number | boolean | object;
156
- label: string | number | boolean | object;
156
+ id: string;
157
157
  trueValue: string | number;
158
158
  falseValue: string | number;
159
159
  trueLabel: string | number;
@@ -163,19 +163,19 @@ declare const _default: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
163
163
  __isTeleport?: never;
164
164
  __isSuspense?: never;
165
165
  } & _$vue.ComponentOptionsBase<Readonly<CheckboxProps> & Readonly<{
166
- onChange?: ((val: CheckboxValueType) => any) | undefined;
167
166
  "onUpdate:modelValue"?: ((val: CheckboxValueType) => any) | undefined;
167
+ onChange?: ((val: CheckboxValueType) => any) | undefined;
168
168
  }>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
169
- change: (val: CheckboxValueType) => void;
170
169
  "update:modelValue": (val: CheckboxValueType) => void;
170
+ change: (val: CheckboxValueType) => void;
171
171
  }, string, {
172
- id: string;
172
+ value: string | number | boolean | object;
173
+ label: string | number | boolean | object;
173
174
  disabled: boolean;
174
- modelValue: string | number | boolean;
175
175
  validateEvent: boolean;
176
+ modelValue: string | number | boolean;
176
177
  name: string;
177
- value: string | number | boolean | object;
178
- label: string | number | boolean | object;
178
+ id: string;
179
179
  trueValue: string | number;
180
180
  falseValue: string | number;
181
181
  trueLabel: string | number;
@@ -11,13 +11,13 @@ import * as _$lodash_unified0 from "lodash-unified";
11
11
  //#region ../../packages/components/table/src/table.vue.d.ts
12
12
  declare const __VLS_export: <T extends DefaultRow = DefaultRow>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
13
13
  props: _$vue.PublicProps & __VLS_PrettifyLocal<TableProps<T> & {
14
+ "onExpand-change"?: ((row: T, expanded: boolean) => any) | undefined;
14
15
  onScroll?: ((data: {
15
16
  scrollLeft: number;
16
17
  scrollTop: number;
17
18
  }) => any) | undefined;
18
- onSelect?: ((selection: T[], row: T) => any) | undefined;
19
19
  "onSelect-all"?: ((selection: T[]) => any) | undefined;
20
- "onExpand-change"?: ((row: T, expanded: boolean) => any) | undefined;
20
+ onSelect?: ((selection: T[], row: T) => any) | undefined;
21
21
  "onCurrent-change"?: ((currentRow: T | null, oldCurrentRow: T | null) => any) | undefined;
22
22
  "onSelection-change"?: ((newSelection: T[]) => any) | undefined;
23
23
  "onCell-mouse-enter"?: ((row: T, column: TableColumnCtx<T>, cell: HTMLTableCellElement, event: MouseEvent) => any) | undefined;
@@ -693,8 +693,8 @@ declare const __VLS_export: <T extends DefaultRow = DefaultRow>(__VLS_props: Non
693
693
  computedSumText: _$vue.ComputedRef<string>;
694
694
  computedEmptyText: _$vue.ComputedRef<string>;
695
695
  computedTooltipEffect: _$vue.ComputedRef<string | undefined>;
696
- computedTooltipOptions: _$vue.ComputedRef<Partial<Omit<UseTooltipProps, "visible" | "content" | "referenceEl" | "triggerTargetEl" | "virtualTriggering" | "rawContent" | "persistent" | "autoClose" | "virtualRef">> | undefined>;
697
- tableLayout: _$vue.ComputedRef<"fixed" | "auto">;
696
+ computedTooltipOptions: _$vue.ComputedRef<Partial<Omit<UseTooltipProps, "persistent" | "visible" | "content" | "referenceEl" | "triggerTargetEl" | "virtualTriggering" | "rawContent" | "autoClose" | "virtualRef">> | undefined>;
697
+ tableLayout: _$vue.ComputedRef<"auto" | "fixed">;
698
698
  scrollbarViewStyle: {
699
699
  display: string;
700
700
  verticalAlign: string;
@@ -88,8 +88,8 @@ declare const TableV2Header: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
88
88
  __epPropKey: true;
89
89
  };
90
90
  }>> & Readonly<{}>, {
91
- readonly headerHeight: EpPropMergeType<(new (...args: any[]) => number | number[]) | (() => number | number[]) | (((new (...args: any[]) => number | number[]) | (() => number | number[])) | null)[], unknown, unknown>;
92
91
  readonly rowHeight: number;
92
+ readonly headerHeight: EpPropMergeType<(new (...args: any[]) => number | number[]) | (() => number | number[]) | (((new (...args: any[]) => number | number[]) | (() => number | number[])) | null)[], unknown, unknown>;
93
93
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>;
94
94
  type TableV2HeaderInstance = InstanceType<typeof TableV2Header> & {
95
95
  /**
@@ -143,8 +143,8 @@ declare const TableV2Row: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
143
143
  };
144
144
  }>> & Readonly<{}>, {
145
145
  readonly isScrolling: boolean;
146
- readonly rowKey: EpPropMergeType<(new (...args: any[]) => string | number | symbol) | (() => KeyType) | (((new (...args: any[]) => string | number | symbol) | (() => KeyType)) | null)[], unknown, unknown>;
147
146
  readonly estimatedRowHeight: number;
147
+ readonly rowKey: EpPropMergeType<(new (...args: any[]) => string | number | symbol) | (() => KeyType) | (((new (...args: any[]) => string | number | symbol) | (() => KeyType)) | null)[], unknown, unknown>;
148
148
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>;
149
149
  type TableV2RowCellRenderParam = {
150
150
  column: TableV2RowProps['columns'][number];
@@ -201,11 +201,11 @@ declare const TableGrid: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
201
201
  readonly useIsScrolling: boolean;
202
202
  readonly scrollbarAlwaysOn: boolean;
203
203
  readonly cache: number;
204
- readonly rowKey: EpPropMergeType<(new (...args: any[]) => string | number | symbol) | (() => KeyType) | (((new (...args: any[]) => string | number | symbol) | (() => KeyType)) | null)[], unknown, unknown>;
205
- readonly headerHeight: EpPropMergeType<(new (...args: any[]) => number | number[]) | (() => number | number[]) | (((new (...args: any[]) => number | number[]) | (() => number | number[])) | null)[], unknown, unknown>;
206
204
  readonly estimatedRowHeight: number;
207
205
  readonly scrollbarStartGap: number;
208
206
  readonly scrollbarEndGap: number;
207
+ readonly rowKey: EpPropMergeType<(new (...args: any[]) => string | number | symbol) | (() => KeyType) | (((new (...args: any[]) => string | number | symbol) | (() => KeyType)) | null)[], unknown, unknown>;
208
+ readonly headerHeight: EpPropMergeType<(new (...args: any[]) => number | number[]) | (() => number | number[]) | (((new (...args: any[]) => number | number[]) | (() => number | number[])) | null)[], unknown, unknown>;
209
209
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>;
210
210
  type TableGridRowSlotParams = {
211
211
  columns: TableV2GridProps['columns'];
@@ -327,16 +327,16 @@ declare const TableV2: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
327
327
  readonly useIsScrolling: boolean;
328
328
  readonly scrollbarAlwaysOn: boolean;
329
329
  readonly cache: number;
330
- readonly rowKey: EpPropMergeType<(new (...args: any[]) => string | number | symbol) | (() => KeyType) | (((new (...args: any[]) => string | number | symbol) | (() => KeyType)) | null)[], unknown, unknown>;
331
- readonly headerHeight: EpPropMergeType<(new (...args: any[]) => number | number[]) | (() => number | number[]) | (((new (...args: any[]) => number | number[]) | (() => number | number[])) | null)[], unknown, unknown>;
332
- readonly sortBy: SortBy;
333
330
  readonly estimatedRowHeight: number;
334
331
  readonly rowHeight: number;
335
332
  readonly hScrollbarSize: number;
336
333
  readonly vScrollbarSize: number;
334
+ readonly rowKey: EpPropMergeType<(new (...args: any[]) => string | number | symbol) | (() => KeyType) | (((new (...args: any[]) => string | number | symbol) | (() => KeyType)) | null)[], unknown, unknown>;
335
+ readonly headerHeight: EpPropMergeType<(new (...args: any[]) => number | number[]) | (() => number | number[]) | (((new (...args: any[]) => number | number[]) | (() => number | number[])) | null)[], unknown, unknown>;
337
336
  readonly footerHeight: number;
338
337
  readonly indentSize: number;
339
338
  readonly iconSize: number;
339
+ readonly sortBy: SortBy;
340
340
  readonly sortState: SortState;
341
341
  readonly expandedRowKeys: KeyType[];
342
342
  readonly defaultExpandedRowKeys: KeyType[];
@@ -267,8 +267,8 @@ declare const TabNav: _$vue.DefineComponent<ExtractPropTypes<{
267
267
  }, ev: Event) => any) | undefined;
268
268
  }>, {
269
269
  readonly type: EpPropMergeType<StringConstructor, "" | "card" | "border-card", unknown>;
270
- readonly tabindex: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
271
270
  readonly stretch: boolean;
271
+ readonly tabindex: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
272
272
  readonly editable: boolean;
273
273
  readonly panes: {
274
274
  uid: number;
@@ -7,8 +7,8 @@ type __VLS_Slots = {} & {
7
7
  default?: (props: typeof __VLS_1) => any;
8
8
  };
9
9
  declare const __VLS_base: _$vue.DefineComponent<TabPaneProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<TabPaneProps> & Readonly<{}>, {
10
- closable: boolean;
11
10
  label: string;
11
+ closable: boolean;
12
12
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
13
13
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
14
14
  declare const _default: typeof __VLS_export;
@@ -24,7 +24,7 @@ declare const tabsProps: {
24
24
  __epPropKey: true;
25
25
  };
26
26
  readonly editable: BooleanConstructor;
27
- readonly tabPosition: EpPropFinalized<StringConstructor, "left" | "right" | "top" | "bottom", unknown, "top", boolean>;
27
+ readonly tabPosition: EpPropFinalized<StringConstructor, "top" | "bottom" | "right" | "left", unknown, "top", boolean>;
28
28
  readonly beforeLeave: EpPropFinalized<(new (...args: any[]) => (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>) | (() => (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>) | {
29
29
  (): (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>;
30
30
  new (): any;
@@ -66,7 +66,7 @@ declare const Tabs: _$vue.DefineComponent<ExtractPropTypes<{
66
66
  __epPropKey: true;
67
67
  };
68
68
  readonly editable: BooleanConstructor;
69
- readonly tabPosition: EpPropFinalized<StringConstructor, "left" | "right" | "top" | "bottom", unknown, "top", boolean>;
69
+ readonly tabPosition: EpPropFinalized<StringConstructor, "top" | "bottom" | "right" | "left", unknown, "top", boolean>;
70
70
  readonly beforeLeave: EpPropFinalized<(new (...args: any[]) => (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>) | (() => (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>) | {
71
71
  (): (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>;
72
72
  new (): any;
@@ -102,7 +102,7 @@ declare const Tabs: _$vue.DefineComponent<ExtractPropTypes<{
102
102
  __epPropKey: true;
103
103
  };
104
104
  readonly editable: BooleanConstructor;
105
- readonly tabPosition: EpPropFinalized<StringConstructor, "left" | "right" | "top" | "bottom", unknown, "top", boolean>;
105
+ readonly tabPosition: EpPropFinalized<StringConstructor, "top" | "bottom" | "right" | "left", unknown, "top", boolean>;
106
106
  readonly beforeLeave: EpPropFinalized<(new (...args: any[]) => (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>) | (() => (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>) | {
107
107
  (): (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>;
108
108
  new (): any;
@@ -140,10 +140,10 @@ declare const Tabs: _$vue.DefineComponent<ExtractPropTypes<{
140
140
  }>, {
141
141
  readonly type: EpPropMergeType<StringConstructor, "" | "card" | "border-card", unknown>;
142
142
  readonly closable: boolean;
143
- readonly tabindex: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
144
143
  readonly stretch: boolean;
144
+ readonly tabindex: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
145
145
  readonly editable: boolean;
146
- readonly tabPosition: EpPropMergeType<StringConstructor, "left" | "right" | "top" | "bottom", unknown>;
146
+ readonly tabPosition: EpPropMergeType<StringConstructor, "top" | "bottom" | "right" | "left", unknown>;
147
147
  readonly beforeLeave: (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>;
148
148
  readonly addable: boolean;
149
149
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>;