element-pe 2.0.6 → 2.0.9

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 (1358) hide show
  1. package/attributes.json +1 -1
  2. package/dist/index.css +1 -1
  3. package/dist/index.full.js +1066 -2267
  4. package/dist/index.full.min.js +11 -17
  5. package/dist/index.full.min.js.map +1 -1
  6. package/dist/index.full.min.mjs +11 -17
  7. package/dist/index.full.min.mjs.map +1 -1
  8. package/dist/index.full.mjs +1064 -2265
  9. package/dist/locale/af.js +1 -1
  10. package/dist/locale/af.min.js +1 -1
  11. package/dist/locale/af.min.js.map +1 -1
  12. package/dist/locale/af.min.mjs +1 -1
  13. package/dist/locale/af.min.mjs.map +1 -1
  14. package/dist/locale/af.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.js.map +1 -1
  18. package/dist/locale/ar.min.mjs +1 -1
  19. package/dist/locale/ar.min.mjs.map +1 -1
  20. package/dist/locale/ar.mjs +1 -1
  21. package/dist/locale/az.js +1 -1
  22. package/dist/locale/az.min.js +1 -1
  23. package/dist/locale/az.min.js.map +1 -1
  24. package/dist/locale/az.min.mjs +1 -1
  25. package/dist/locale/az.min.mjs.map +1 -1
  26. package/dist/locale/az.mjs +1 -1
  27. package/dist/locale/bg.js +1 -1
  28. package/dist/locale/bg.min.js +1 -1
  29. package/dist/locale/bg.min.js.map +1 -1
  30. package/dist/locale/bg.min.mjs +1 -1
  31. package/dist/locale/bg.min.mjs.map +1 -1
  32. package/dist/locale/bg.mjs +1 -1
  33. package/dist/locale/bn.js +1 -1
  34. package/dist/locale/bn.min.js +1 -1
  35. package/dist/locale/bn.min.js.map +1 -1
  36. package/dist/locale/bn.min.mjs +1 -1
  37. package/dist/locale/bn.min.mjs.map +1 -1
  38. package/dist/locale/bn.mjs +1 -1
  39. package/dist/locale/ca.js +1 -1
  40. package/dist/locale/ca.min.js +1 -1
  41. package/dist/locale/ca.min.js.map +1 -1
  42. package/dist/locale/ca.min.mjs +1 -1
  43. package/dist/locale/ca.min.mjs.map +1 -1
  44. package/dist/locale/ca.mjs +1 -1
  45. package/dist/locale/cs.js +1 -1
  46. package/dist/locale/cs.min.js +1 -1
  47. package/dist/locale/cs.min.js.map +1 -1
  48. package/dist/locale/cs.min.mjs +1 -1
  49. package/dist/locale/cs.min.mjs.map +1 -1
  50. package/dist/locale/cs.mjs +1 -1
  51. package/dist/locale/da.js +1 -1
  52. package/dist/locale/da.min.js +1 -1
  53. package/dist/locale/da.min.js.map +1 -1
  54. package/dist/locale/da.min.mjs +1 -1
  55. package/dist/locale/da.min.mjs.map +1 -1
  56. package/dist/locale/da.mjs +1 -1
  57. package/dist/locale/de.js +1 -1
  58. package/dist/locale/de.min.js +1 -1
  59. package/dist/locale/de.min.js.map +1 -1
  60. package/dist/locale/de.min.mjs +1 -1
  61. package/dist/locale/de.min.mjs.map +1 -1
  62. package/dist/locale/de.mjs +1 -1
  63. package/dist/locale/el.js +1 -1
  64. package/dist/locale/el.min.js +1 -1
  65. package/dist/locale/el.min.js.map +1 -1
  66. package/dist/locale/el.min.mjs +1 -1
  67. package/dist/locale/el.min.mjs.map +1 -1
  68. package/dist/locale/el.mjs +1 -1
  69. package/dist/locale/en.js +1 -1
  70. package/dist/locale/en.min.js +1 -1
  71. package/dist/locale/en.min.js.map +1 -1
  72. package/dist/locale/en.min.mjs +1 -1
  73. package/dist/locale/en.min.mjs.map +1 -1
  74. package/dist/locale/en.mjs +1 -1
  75. package/dist/locale/eo.js +1 -1
  76. package/dist/locale/eo.min.js +1 -1
  77. package/dist/locale/eo.min.js.map +1 -1
  78. package/dist/locale/eo.min.mjs +1 -1
  79. package/dist/locale/eo.min.mjs.map +1 -1
  80. package/dist/locale/eo.mjs +1 -1
  81. package/dist/locale/es.js +1 -1
  82. package/dist/locale/es.min.js +1 -1
  83. package/dist/locale/es.min.js.map +1 -1
  84. package/dist/locale/es.min.mjs +1 -1
  85. package/dist/locale/es.min.mjs.map +1 -1
  86. package/dist/locale/es.mjs +1 -1
  87. package/dist/locale/et.js +1 -1
  88. package/dist/locale/et.min.js +1 -1
  89. package/dist/locale/et.min.js.map +1 -1
  90. package/dist/locale/et.min.mjs +1 -1
  91. package/dist/locale/et.min.mjs.map +1 -1
  92. package/dist/locale/et.mjs +1 -1
  93. package/dist/locale/eu.js +1 -1
  94. package/dist/locale/eu.min.js +1 -1
  95. package/dist/locale/eu.min.js.map +1 -1
  96. package/dist/locale/eu.min.mjs +1 -1
  97. package/dist/locale/eu.min.mjs.map +1 -1
  98. package/dist/locale/eu.mjs +1 -1
  99. package/dist/locale/fa.js +1 -1
  100. package/dist/locale/fa.min.js +1 -1
  101. package/dist/locale/fa.min.js.map +1 -1
  102. package/dist/locale/fa.min.mjs +1 -1
  103. package/dist/locale/fa.min.mjs.map +1 -1
  104. package/dist/locale/fa.mjs +1 -1
  105. package/dist/locale/fi.js +1 -1
  106. package/dist/locale/fi.min.js +1 -1
  107. package/dist/locale/fi.min.js.map +1 -1
  108. package/dist/locale/fi.min.mjs +1 -1
  109. package/dist/locale/fi.min.mjs.map +1 -1
  110. package/dist/locale/fi.mjs +1 -1
  111. package/dist/locale/fr.js +1 -1
  112. package/dist/locale/fr.min.js +1 -1
  113. package/dist/locale/fr.min.js.map +1 -1
  114. package/dist/locale/fr.min.mjs +1 -1
  115. package/dist/locale/fr.min.mjs.map +1 -1
  116. package/dist/locale/fr.mjs +1 -1
  117. package/dist/locale/he.js +1 -1
  118. package/dist/locale/he.min.js +1 -1
  119. package/dist/locale/he.min.js.map +1 -1
  120. package/dist/locale/he.min.mjs +1 -1
  121. package/dist/locale/he.min.mjs.map +1 -1
  122. package/dist/locale/he.mjs +1 -1
  123. package/dist/locale/hr.js +1 -1
  124. package/dist/locale/hr.min.js +1 -1
  125. package/dist/locale/hr.min.js.map +1 -1
  126. package/dist/locale/hr.min.mjs +1 -1
  127. package/dist/locale/hr.min.mjs.map +1 -1
  128. package/dist/locale/hr.mjs +1 -1
  129. package/dist/locale/hu.js +1 -1
  130. package/dist/locale/hu.min.js +1 -1
  131. package/dist/locale/hu.min.js.map +1 -1
  132. package/dist/locale/hu.min.mjs +1 -1
  133. package/dist/locale/hu.min.mjs.map +1 -1
  134. package/dist/locale/hu.mjs +1 -1
  135. package/dist/locale/hy-am.js +1 -1
  136. package/dist/locale/hy-am.min.js +1 -1
  137. package/dist/locale/hy-am.min.js.map +1 -1
  138. package/dist/locale/hy-am.min.mjs +1 -1
  139. package/dist/locale/hy-am.min.mjs.map +1 -1
  140. package/dist/locale/hy-am.mjs +1 -1
  141. package/dist/locale/id.js +1 -1
  142. package/dist/locale/id.min.js +1 -1
  143. package/dist/locale/id.min.js.map +1 -1
  144. package/dist/locale/id.min.mjs +1 -1
  145. package/dist/locale/id.min.mjs.map +1 -1
  146. package/dist/locale/id.mjs +1 -1
  147. package/dist/locale/it.js +1 -1
  148. package/dist/locale/it.min.js +1 -1
  149. package/dist/locale/it.min.js.map +1 -1
  150. package/dist/locale/it.min.mjs +1 -1
  151. package/dist/locale/it.min.mjs.map +1 -1
  152. package/dist/locale/it.mjs +1 -1
  153. package/dist/locale/ja.js +1 -1
  154. package/dist/locale/ja.min.js +1 -1
  155. package/dist/locale/ja.min.js.map +1 -1
  156. package/dist/locale/ja.min.mjs +1 -1
  157. package/dist/locale/ja.min.mjs.map +1 -1
  158. package/dist/locale/ja.mjs +1 -1
  159. package/dist/locale/kk.js +1 -1
  160. package/dist/locale/kk.min.js +1 -1
  161. package/dist/locale/kk.min.js.map +1 -1
  162. package/dist/locale/kk.min.mjs +1 -1
  163. package/dist/locale/kk.min.mjs.map +1 -1
  164. package/dist/locale/kk.mjs +1 -1
  165. package/dist/locale/km.js +1 -1
  166. package/dist/locale/km.min.js +1 -1
  167. package/dist/locale/km.min.js.map +1 -1
  168. package/dist/locale/km.min.mjs +1 -1
  169. package/dist/locale/km.min.mjs.map +1 -1
  170. package/dist/locale/km.mjs +1 -1
  171. package/dist/locale/ko.js +1 -1
  172. package/dist/locale/ko.min.js +1 -1
  173. package/dist/locale/ko.min.js.map +1 -1
  174. package/dist/locale/ko.min.mjs +1 -1
  175. package/dist/locale/ko.min.mjs.map +1 -1
  176. package/dist/locale/ko.mjs +1 -1
  177. package/dist/locale/ku.js +1 -1
  178. package/dist/locale/ku.min.js +1 -1
  179. package/dist/locale/ku.min.js.map +1 -1
  180. package/dist/locale/ku.min.mjs +1 -1
  181. package/dist/locale/ku.min.mjs.map +1 -1
  182. package/dist/locale/ku.mjs +1 -1
  183. package/dist/locale/ky.js +1 -1
  184. package/dist/locale/ky.min.js +1 -1
  185. package/dist/locale/ky.min.js.map +1 -1
  186. package/dist/locale/ky.min.mjs +1 -1
  187. package/dist/locale/ky.min.mjs.map +1 -1
  188. package/dist/locale/ky.mjs +1 -1
  189. package/dist/locale/lt.js +1 -1
  190. package/dist/locale/lt.min.js +1 -1
  191. package/dist/locale/lt.min.js.map +1 -1
  192. package/dist/locale/lt.min.mjs +1 -1
  193. package/dist/locale/lt.min.mjs.map +1 -1
  194. package/dist/locale/lt.mjs +1 -1
  195. package/dist/locale/lv.js +1 -1
  196. package/dist/locale/lv.min.js +1 -1
  197. package/dist/locale/lv.min.js.map +1 -1
  198. package/dist/locale/lv.min.mjs +1 -1
  199. package/dist/locale/lv.min.mjs.map +1 -1
  200. package/dist/locale/lv.mjs +1 -1
  201. package/dist/locale/mg.js +1 -1
  202. package/dist/locale/mg.min.js +1 -1
  203. package/dist/locale/mg.min.js.map +1 -1
  204. package/dist/locale/mg.min.mjs +1 -1
  205. package/dist/locale/mg.min.mjs.map +1 -1
  206. package/dist/locale/mg.mjs +1 -1
  207. package/dist/locale/mn.js +1 -1
  208. package/dist/locale/mn.min.js +1 -1
  209. package/dist/locale/mn.min.js.map +1 -1
  210. package/dist/locale/mn.min.mjs +1 -1
  211. package/dist/locale/mn.min.mjs.map +1 -1
  212. package/dist/locale/mn.mjs +1 -1
  213. package/dist/locale/nb-no.js +1 -1
  214. package/dist/locale/nb-no.min.js +1 -1
  215. package/dist/locale/nb-no.min.js.map +1 -1
  216. package/dist/locale/nb-no.min.mjs +1 -1
  217. package/dist/locale/nb-no.min.mjs.map +1 -1
  218. package/dist/locale/nb-no.mjs +1 -1
  219. package/dist/locale/nl.js +1 -1
  220. package/dist/locale/nl.min.js +1 -1
  221. package/dist/locale/nl.min.js.map +1 -1
  222. package/dist/locale/nl.min.mjs +1 -1
  223. package/dist/locale/nl.min.mjs.map +1 -1
  224. package/dist/locale/nl.mjs +1 -1
  225. package/dist/locale/pa.js +1 -1
  226. package/dist/locale/pa.min.js +1 -1
  227. package/dist/locale/pa.min.js.map +1 -1
  228. package/dist/locale/pa.min.mjs +1 -1
  229. package/dist/locale/pa.min.mjs.map +1 -1
  230. package/dist/locale/pa.mjs +1 -1
  231. package/dist/locale/pl.js +1 -1
  232. package/dist/locale/pl.min.js +1 -1
  233. package/dist/locale/pl.min.js.map +1 -1
  234. package/dist/locale/pl.min.mjs +1 -1
  235. package/dist/locale/pl.min.mjs.map +1 -1
  236. package/dist/locale/pl.mjs +1 -1
  237. package/dist/locale/pt-br.js +1 -1
  238. package/dist/locale/pt-br.min.js +1 -1
  239. package/dist/locale/pt-br.min.js.map +1 -1
  240. package/dist/locale/pt-br.min.mjs +1 -1
  241. package/dist/locale/pt-br.min.mjs.map +1 -1
  242. package/dist/locale/pt-br.mjs +1 -1
  243. package/dist/locale/pt.js +1 -1
  244. package/dist/locale/pt.min.js +1 -1
  245. package/dist/locale/pt.min.js.map +1 -1
  246. package/dist/locale/pt.min.mjs +1 -1
  247. package/dist/locale/pt.min.mjs.map +1 -1
  248. package/dist/locale/pt.mjs +1 -1
  249. package/dist/locale/ro.js +1 -1
  250. package/dist/locale/ro.min.js +1 -1
  251. package/dist/locale/ro.min.js.map +1 -1
  252. package/dist/locale/ro.min.mjs +1 -1
  253. package/dist/locale/ro.min.mjs.map +1 -1
  254. package/dist/locale/ro.mjs +1 -1
  255. package/dist/locale/ru.js +1 -1
  256. package/dist/locale/ru.min.js +1 -1
  257. package/dist/locale/ru.min.js.map +1 -1
  258. package/dist/locale/ru.min.mjs +1 -1
  259. package/dist/locale/ru.min.mjs.map +1 -1
  260. package/dist/locale/ru.mjs +1 -1
  261. package/dist/locale/sk.js +1 -1
  262. package/dist/locale/sk.min.js +1 -1
  263. package/dist/locale/sk.min.js.map +1 -1
  264. package/dist/locale/sk.min.mjs +1 -1
  265. package/dist/locale/sk.min.mjs.map +1 -1
  266. package/dist/locale/sk.mjs +1 -1
  267. package/dist/locale/sl.js +1 -1
  268. package/dist/locale/sl.min.js +1 -1
  269. package/dist/locale/sl.min.js.map +1 -1
  270. package/dist/locale/sl.min.mjs +1 -1
  271. package/dist/locale/sl.min.mjs.map +1 -1
  272. package/dist/locale/sl.mjs +1 -1
  273. package/dist/locale/sr.js +1 -1
  274. package/dist/locale/sr.min.js +1 -1
  275. package/dist/locale/sr.min.js.map +1 -1
  276. package/dist/locale/sr.min.mjs +1 -1
  277. package/dist/locale/sr.min.mjs.map +1 -1
  278. package/dist/locale/sr.mjs +1 -1
  279. package/dist/locale/sv.js +1 -1
  280. package/dist/locale/sv.min.js +1 -1
  281. package/dist/locale/sv.min.js.map +1 -1
  282. package/dist/locale/sv.min.mjs +1 -1
  283. package/dist/locale/sv.min.mjs.map +1 -1
  284. package/dist/locale/sv.mjs +1 -1
  285. package/dist/locale/ta.js +1 -1
  286. package/dist/locale/ta.min.js +1 -1
  287. package/dist/locale/ta.min.js.map +1 -1
  288. package/dist/locale/ta.min.mjs +1 -1
  289. package/dist/locale/ta.min.mjs.map +1 -1
  290. package/dist/locale/ta.mjs +1 -1
  291. package/dist/locale/th.js +1 -1
  292. package/dist/locale/th.min.js +1 -1
  293. package/dist/locale/th.min.js.map +1 -1
  294. package/dist/locale/th.min.mjs +1 -1
  295. package/dist/locale/th.min.mjs.map +1 -1
  296. package/dist/locale/th.mjs +1 -1
  297. package/dist/locale/tk.js +1 -1
  298. package/dist/locale/tk.min.js +1 -1
  299. package/dist/locale/tk.min.js.map +1 -1
  300. package/dist/locale/tk.min.mjs +1 -1
  301. package/dist/locale/tk.min.mjs.map +1 -1
  302. package/dist/locale/tk.mjs +1 -1
  303. package/dist/locale/tr.js +1 -1
  304. package/dist/locale/tr.min.js +1 -1
  305. package/dist/locale/tr.min.js.map +1 -1
  306. package/dist/locale/tr.min.mjs +1 -1
  307. package/dist/locale/tr.min.mjs.map +1 -1
  308. package/dist/locale/tr.mjs +1 -1
  309. package/dist/locale/ug-cn.js +1 -1
  310. package/dist/locale/ug-cn.min.js +1 -1
  311. package/dist/locale/ug-cn.min.js.map +1 -1
  312. package/dist/locale/ug-cn.min.mjs +1 -1
  313. package/dist/locale/ug-cn.min.mjs.map +1 -1
  314. package/dist/locale/ug-cn.mjs +1 -1
  315. package/dist/locale/uk.js +1 -1
  316. package/dist/locale/uk.min.js +1 -1
  317. package/dist/locale/uk.min.js.map +1 -1
  318. package/dist/locale/uk.min.mjs +1 -1
  319. package/dist/locale/uk.min.mjs.map +1 -1
  320. package/dist/locale/uk.mjs +1 -1
  321. package/dist/locale/uz-uz.js +1 -1
  322. package/dist/locale/uz-uz.min.js +1 -1
  323. package/dist/locale/uz-uz.min.js.map +1 -1
  324. package/dist/locale/uz-uz.min.mjs +1 -1
  325. package/dist/locale/uz-uz.min.mjs.map +1 -1
  326. package/dist/locale/uz-uz.mjs +1 -1
  327. package/dist/locale/vi.js +1 -1
  328. package/dist/locale/vi.min.js +1 -1
  329. package/dist/locale/vi.min.js.map +1 -1
  330. package/dist/locale/vi.min.mjs +1 -1
  331. package/dist/locale/vi.min.mjs.map +1 -1
  332. package/dist/locale/vi.mjs +1 -1
  333. package/dist/locale/zh-cn.js +1 -1
  334. package/dist/locale/zh-cn.min.js +1 -1
  335. package/dist/locale/zh-cn.min.js.map +1 -1
  336. package/dist/locale/zh-cn.min.mjs +1 -1
  337. package/dist/locale/zh-cn.min.mjs.map +1 -1
  338. package/dist/locale/zh-cn.mjs +1 -1
  339. package/dist/locale/zh-tw.js +1 -1
  340. package/dist/locale/zh-tw.min.js +1 -1
  341. package/dist/locale/zh-tw.min.js.map +1 -1
  342. package/dist/locale/zh-tw.min.mjs +1 -1
  343. package/dist/locale/zh-tw.min.mjs.map +1 -1
  344. package/dist/locale/zh-tw.mjs +1 -1
  345. package/es/components/affix/index.mjs +2 -2
  346. package/es/components/affix/src/affix.mjs +114 -23
  347. package/es/components/affix/src/affix.mjs.map +1 -1
  348. package/es/components/affix/src/affix2.mjs +23 -114
  349. package/es/components/affix/src/affix2.mjs.map +1 -1
  350. package/es/components/autocomplete/index.d.ts +80 -4651
  351. package/es/components/autocomplete/index.mjs +2 -2
  352. package/es/components/autocomplete/src/autocomplete.mjs +325 -67
  353. package/es/components/autocomplete/src/autocomplete.mjs.map +1 -1
  354. package/es/components/autocomplete/src/autocomplete.vue.d.ts +80 -4651
  355. package/es/components/autocomplete/src/autocomplete2.mjs +67 -325
  356. package/es/components/autocomplete/src/autocomplete2.mjs.map +1 -1
  357. package/es/components/avatar/src/avatar2.mjs +1 -1
  358. package/es/components/badge/index.mjs +2 -2
  359. package/es/components/badge/src/badge.mjs +54 -17
  360. package/es/components/badge/src/badge.mjs.map +1 -1
  361. package/es/components/badge/src/badge2.mjs +17 -54
  362. package/es/components/badge/src/badge2.mjs.map +1 -1
  363. package/es/components/breadcrumb/index.mjs +2 -2
  364. package/es/components/breadcrumb/src/breadcrumb-item.mjs +11 -57
  365. package/es/components/breadcrumb/src/breadcrumb-item.mjs.map +1 -1
  366. package/es/components/breadcrumb/src/breadcrumb-item2.mjs +57 -11
  367. package/es/components/breadcrumb/src/breadcrumb-item2.mjs.map +1 -1
  368. package/es/components/button/index.mjs +1 -1
  369. package/es/components/button/src/button-group.mjs +5 -30
  370. package/es/components/button/src/button-group.mjs.map +1 -1
  371. package/es/components/button/src/button-group2.mjs +30 -5
  372. package/es/components/button/src/button-group2.mjs.map +1 -1
  373. package/es/components/calendar/src/calendar2.mjs +1 -1
  374. package/es/components/calendar/src/calendar2.mjs.map +1 -1
  375. package/es/components/calendar/src/date-table2.mjs +3 -2
  376. package/es/components/calendar/src/date-table2.mjs.map +1 -1
  377. package/es/components/card/index.mjs +2 -2
  378. package/es/components/card/src/card.mjs +35 -15
  379. package/es/components/card/src/card.mjs.map +1 -1
  380. package/es/components/card/src/card2.mjs +15 -35
  381. package/es/components/card/src/card2.mjs.map +1 -1
  382. package/es/components/carousel/index.mjs +2 -2
  383. package/es/components/carousel/src/carousel-item.mjs +7 -155
  384. package/es/components/carousel/src/carousel-item.mjs.map +1 -1
  385. package/es/components/carousel/src/carousel-item2.mjs +155 -7
  386. package/es/components/carousel/src/carousel-item2.mjs.map +1 -1
  387. package/es/components/cascader/index.d.ts +106 -6202
  388. package/es/components/cascader/src/index.mjs +1 -1
  389. package/es/components/cascader/src/index.vue.d.ts +53 -3101
  390. package/es/components/cascader-panel/src/config.mjs +1 -1
  391. package/es/components/cascader-panel/src/index.mjs +1 -1
  392. package/es/components/cascader-panel/src/menu.mjs +1 -1
  393. package/es/components/cascader-panel/src/node.mjs +120 -209
  394. package/es/components/cascader-panel/src/node.mjs.map +1 -1
  395. package/es/components/cascader-panel/src/node2.mjs +209 -120
  396. package/es/components/cascader-panel/src/node2.mjs.map +1 -1
  397. package/es/components/cascader-panel/src/store.mjs +1 -1
  398. package/es/components/col/src/col.d.ts +2 -0
  399. package/es/components/col/src/col.mjs.map +1 -1
  400. package/es/components/collapse/index.mjs +4 -4
  401. package/es/components/collapse/src/collapse-item.mjs +115 -12
  402. package/es/components/collapse/src/collapse-item.mjs.map +1 -1
  403. package/es/components/collapse/src/collapse-item2.mjs +12 -115
  404. package/es/components/collapse/src/collapse-item2.mjs.map +1 -1
  405. package/es/components/collapse/src/collapse.mjs +61 -14
  406. package/es/components/collapse/src/collapse.mjs.map +1 -1
  407. package/es/components/collapse/src/collapse2.mjs +14 -61
  408. package/es/components/collapse/src/collapse2.mjs.map +1 -1
  409. package/es/components/color-picker/src/index.mjs +4 -1
  410. package/es/components/color-picker/src/index.mjs.map +1 -1
  411. package/es/components/date-picker/src/date-picker-com/panel-date-pick.mjs +2 -1
  412. package/es/components/date-picker/src/date-picker-com/panel-date-pick.mjs.map +1 -1
  413. package/es/components/descriptions/src/descriptions-cell.mjs +1 -1
  414. package/es/components/dropdown/index.d.ts +10 -10
  415. package/es/components/dropdown/src/dropdown-item-impl.mjs +1 -1
  416. package/es/components/dropdown/src/dropdown-item-impl.vue.d.ts +1 -1
  417. package/es/components/dropdown/src/dropdown-item.vue.d.ts +1 -1
  418. package/es/components/dropdown/src/dropdown-menu.mjs +1 -1
  419. package/es/components/dropdown/src/dropdown.d.ts +1 -1
  420. package/es/components/dropdown/src/dropdown.mjs +1 -1
  421. package/es/components/dropdown/src/dropdown.vue.d.ts +8 -8
  422. package/es/components/dropdown/src/dropdown2.mjs +2 -2
  423. package/es/components/empty/index.mjs +2 -2
  424. package/es/components/empty/src/empty.mjs +11 -56
  425. package/es/components/empty/src/empty.mjs.map +1 -1
  426. package/es/components/empty/src/empty2.mjs +56 -11
  427. package/es/components/empty/src/empty2.mjs.map +1 -1
  428. package/es/components/empty/src/img-empty.mjs +7 -17
  429. package/es/components/empty/src/img-empty.mjs.map +1 -1
  430. package/es/components/form/index.d.ts +4 -6
  431. package/es/components/form/src/form-item.mjs +23 -23
  432. package/es/components/form/src/form-item.mjs.map +1 -1
  433. package/es/components/form/src/form-item.vue.d.ts +2 -3
  434. package/es/components/form/src/form-label-wrap.mjs +6 -6
  435. package/es/components/form/src/form-label-wrap.mjs.map +1 -1
  436. package/es/components/icon/src/icon2.mjs +1 -1
  437. package/es/components/image/index.d.ts +8 -0
  438. package/es/components/image/src/image.d.ts +1 -0
  439. package/es/components/image/src/image.mjs +2 -1
  440. package/es/components/image/src/image.mjs.map +1 -1
  441. package/es/components/image/src/image.vue.d.ts +8 -0
  442. package/es/components/image/src/image2.mjs +4 -0
  443. package/es/components/image/src/image2.mjs.map +1 -1
  444. package/es/components/image-viewer/index.d.ts +4 -0
  445. package/es/components/image-viewer/src/image-viewer.d.ts +1 -0
  446. package/es/components/image-viewer/src/image-viewer.mjs +1 -1
  447. package/es/components/image-viewer/src/image-viewer.mjs.map +1 -1
  448. package/es/components/image-viewer/src/image-viewer.vue.d.ts +4 -0
  449. package/es/components/image-viewer/src/image-viewer2.mjs +4 -0
  450. package/es/components/image-viewer/src/image-viewer2.mjs.map +1 -1
  451. package/es/components/index.mjs +21 -21
  452. package/es/components/input/index.d.ts +21 -1544
  453. package/es/components/input/src/input.d.ts +2 -0
  454. package/es/components/input/src/input.mjs +119 -129
  455. package/es/components/input/src/input.mjs.map +1 -1
  456. package/es/components/input/src/input.vue.d.ts +27 -1550
  457. package/es/components/input/src/input2.mjs +6 -0
  458. package/es/components/input/src/input2.mjs.map +1 -1
  459. package/es/components/input-number/index.d.ts +45 -3090
  460. package/es/components/input-number/src/input-number.d.ts +1 -1
  461. package/es/components/input-number/src/input-number.mjs +1 -2
  462. package/es/components/input-number/src/input-number.mjs.map +1 -1
  463. package/es/components/input-number/src/input-number.vue.d.ts +45 -3090
  464. package/es/components/link/index.mjs +2 -2
  465. package/es/components/link/src/link.mjs +49 -22
  466. package/es/components/link/src/link.mjs.map +1 -1
  467. package/es/components/link/src/link2.mjs +22 -49
  468. package/es/components/link/src/link2.mjs.map +1 -1
  469. package/es/components/loading/src/loading.mjs +3 -1
  470. package/es/components/loading/src/loading.mjs.map +1 -1
  471. package/es/components/loading/src/service.mjs +1 -2
  472. package/es/components/loading/src/service.mjs.map +1 -1
  473. package/es/components/menu/index.d.ts +84 -0
  474. package/es/components/menu/src/menu-collapse-transition.mjs +10 -7
  475. package/es/components/menu/src/menu-collapse-transition.mjs.map +1 -1
  476. package/es/components/menu/src/menu-item-group.mjs +12 -7
  477. package/es/components/menu/src/menu-item-group.mjs.map +1 -1
  478. package/es/components/menu/src/menu-item-group.vue.d.ts +14 -0
  479. package/es/components/menu/src/menu-item.mjs +16 -8
  480. package/es/components/menu/src/menu-item.mjs.map +1 -1
  481. package/es/components/menu/src/menu-item.vue.d.ts +28 -0
  482. package/es/components/menu/src/menu.mjs +10 -6
  483. package/es/components/menu/src/menu.mjs.map +1 -1
  484. package/es/components/menu/src/sub-menu.mjs +17 -14
  485. package/es/components/menu/src/sub-menu.mjs.map +1 -1
  486. package/es/components/menu/src/utils/menu-bar.d.ts +2 -2
  487. package/es/components/menu/src/utils/menu-bar.mjs +4 -4
  488. package/es/components/menu/src/utils/menu-bar.mjs.map +1 -1
  489. package/es/components/menu/src/utils/menu-item.d.ts +2 -2
  490. package/es/components/menu/src/utils/menu-item.mjs +4 -4
  491. package/es/components/menu/src/utils/menu-item.mjs.map +1 -1
  492. package/es/components/message-box/src/index.mjs +56 -47
  493. package/es/components/message-box/src/index.mjs.map +1 -1
  494. package/es/components/message-box/src/index.vue.d.ts +17 -1
  495. package/es/components/page-header/index.mjs +2 -2
  496. package/es/components/page-header/src/page-header.mjs +60 -17
  497. package/es/components/page-header/src/page-header.mjs.map +1 -1
  498. package/es/components/page-header/src/page-header2.mjs +17 -60
  499. package/es/components/page-header/src/page-header2.mjs.map +1 -1
  500. package/es/components/popconfirm/index.mjs +2 -2
  501. package/es/components/popconfirm/src/popconfirm.mjs +52 -119
  502. package/es/components/popconfirm/src/popconfirm.mjs.map +1 -1
  503. package/es/components/popconfirm/src/popconfirm2.mjs +119 -52
  504. package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
  505. package/es/components/popover/index.d.ts +16 -16
  506. package/es/components/popover/src/index.vue.d.ts +8 -8
  507. package/es/components/popover/src/popover.d.ts +1 -1
  508. package/es/components/popover/src/popover.mjs +1 -1
  509. package/es/components/popper/index.mjs +4 -4
  510. package/es/components/popper/src/arrow.mjs +37 -7
  511. package/es/components/popper/src/arrow.mjs.map +1 -1
  512. package/es/components/popper/src/arrow2.mjs +7 -37
  513. package/es/components/popper/src/arrow2.mjs.map +1 -1
  514. package/es/components/popper/src/content.vue.d.ts +4 -4
  515. package/es/components/popper/src/content2.mjs +3 -3
  516. package/es/components/popper/src/content2.mjs.map +1 -1
  517. package/es/components/popper/src/popper.mjs +27 -20
  518. package/es/components/popper/src/popper.mjs.map +1 -1
  519. package/es/components/popper/src/popper2.mjs +20 -27
  520. package/es/components/popper/src/popper2.mjs.map +1 -1
  521. package/es/components/radio/index.mjs +2 -2
  522. package/es/components/radio/src/radio-group.mjs +20 -84
  523. package/es/components/radio/src/radio-group.mjs.map +1 -1
  524. package/es/components/radio/src/radio-group2.mjs +84 -20
  525. package/es/components/radio/src/radio-group2.mjs.map +1 -1
  526. package/es/components/rate/index.mjs +2 -2
  527. package/es/components/rate/src/rate.mjs +239 -88
  528. package/es/components/rate/src/rate.mjs.map +1 -1
  529. package/es/components/rate/src/rate2.mjs +88 -239
  530. package/es/components/rate/src/rate2.mjs.map +1 -1
  531. package/es/components/roving-focus-group/index.mjs +3 -3
  532. package/es/components/roving-focus-group/src/roving-focus-group-impl.mjs +1 -1
  533. package/es/components/roving-focus-group/src/roving-focus-group.mjs +27 -29
  534. package/es/components/roving-focus-group/src/roving-focus-group.mjs.map +1 -1
  535. package/es/components/roving-focus-group/src/roving-focus-group2.mjs +29 -27
  536. package/es/components/roving-focus-group/src/roving-focus-group2.mjs.map +1 -1
  537. package/es/components/roving-focus-group/src/roving-focus-item.mjs +1 -1
  538. package/es/components/roving-focus-group/src/roving-focus-item.vue.d.ts +1 -1
  539. package/es/components/scrollbar/src/bar.mjs +45 -22
  540. package/es/components/scrollbar/src/bar.mjs.map +1 -1
  541. package/es/components/scrollbar/src/bar2.mjs +22 -45
  542. package/es/components/scrollbar/src/bar2.mjs.map +1 -1
  543. package/es/components/scrollbar/src/scrollbar2.mjs +2 -2
  544. package/es/components/scrollbar/src/thumb.vue.d.ts +16 -16
  545. package/es/components/scrollbar/src/util.d.ts +18 -18
  546. package/es/components/scrollbar/src/util.mjs.map +1 -1
  547. package/es/components/select/index.d.ts +7 -7
  548. package/es/components/select/src/select.mjs +9 -17
  549. package/es/components/select/src/select.mjs.map +1 -1
  550. package/es/components/select/src/select.vue.d.ts +7 -7
  551. package/es/components/select/src/useSelect.d.ts +5 -5
  552. package/es/components/select/src/useSelect.mjs +2 -3
  553. package/es/components/select/src/useSelect.mjs.map +1 -1
  554. package/es/components/select-v2/index.d.ts +14 -14
  555. package/es/components/select-v2/src/defaults.mjs +1 -1
  556. package/es/components/select-v2/src/option-item.vue.d.ts +1 -1
  557. package/es/components/select-v2/src/select.vue.d.ts +7 -7
  558. package/es/components/select-v2/src/useSelect.d.ts +5 -5
  559. package/es/components/table/index.d.ts +1 -1
  560. package/es/components/table/src/filter-panel.vue.d.ts +5 -5
  561. package/es/components/table/src/table/defaults.d.ts +1 -1
  562. package/es/components/table/src/table/defaults.mjs.map +1 -1
  563. package/es/components/table/src/table/style-helper.mjs +1 -4
  564. package/es/components/table/src/table/style-helper.mjs.map +1 -1
  565. package/es/components/table/src/table.vue.d.ts +1 -1
  566. package/es/components/table-v2/index.d.ts +4 -0
  567. package/es/components/table-v2/index.mjs +3 -1
  568. package/es/components/table-v2/index.mjs.map +1 -1
  569. package/es/components/table-v2/src/cell.d.ts +3 -3
  570. package/es/components/table-v2/src/cell.mjs +5 -3
  571. package/es/components/table-v2/src/cell.mjs.map +1 -1
  572. package/es/components/table-v2/src/column.d.ts +5 -7
  573. package/es/components/table-v2/src/column.mjs +2 -6
  574. package/es/components/table-v2/src/column.mjs.map +1 -1
  575. package/es/components/table-v2/src/common.d.ts +1 -2
  576. package/es/components/table-v2/src/common.mjs.map +1 -1
  577. package/es/components/table-v2/src/components/cell.d.ts +4 -0
  578. package/es/components/table-v2/src/components/cell.mjs +22 -0
  579. package/es/components/table-v2/src/components/cell.mjs.map +1 -0
  580. package/es/components/table-v2/src/components/expand-icon.d.ts +11 -0
  581. package/es/components/table-v2/src/components/expand-icon.mjs +26 -0
  582. package/es/components/table-v2/src/components/expand-icon.mjs.map +1 -0
  583. package/es/components/table-v2/src/components/header-cell.d.ts +4 -0
  584. package/es/components/table-v2/src/components/header-cell.mjs +15 -0
  585. package/es/components/table-v2/src/components/header-cell.mjs.map +1 -0
  586. package/es/components/table-v2/src/components/header-row.d.ts +27 -0
  587. package/es/components/table-v2/src/components/header-row.mjs +40 -0
  588. package/es/components/table-v2/src/components/header-row.mjs.map +1 -0
  589. package/{lib/components/table-v2/src/table-header.d.ts → es/components/table-v2/src/components/header.d.ts} +14 -39
  590. package/es/components/table-v2/src/components/header.mjs +96 -0
  591. package/es/components/table-v2/src/components/header.mjs.map +1 -0
  592. package/es/components/table-v2/src/components/index.d.ts +10 -0
  593. package/es/components/table-v2/src/components/index.mjs +8 -0
  594. package/es/components/{autocomplete/src → table-v2/src/components}/index.mjs.map +1 -1
  595. package/es/components/table-v2/src/components/row.d.ts +68 -0
  596. package/es/components/table-v2/src/components/row.mjs +204 -0
  597. package/es/components/table-v2/src/components/row.mjs.map +1 -0
  598. package/es/components/table-v2/src/components/sort-icon.d.ts +8 -0
  599. package/es/components/table-v2/src/components/sort-icon.mjs +19 -0
  600. package/es/components/table-v2/src/components/sort-icon.mjs.map +1 -0
  601. package/es/components/table-v2/src/composables/index.d.ts +5 -0
  602. package/es/components/table-v2/src/composables/index.mjs +6 -0
  603. package/es/components/table-v2/src/composables/index.mjs.map +1 -0
  604. package/es/components/table-v2/src/composables/use-columns.d.ts +20 -0
  605. package/es/components/table-v2/src/composables/use-columns.mjs +88 -0
  606. package/es/components/table-v2/src/composables/use-columns.mjs.map +1 -0
  607. package/es/components/table-v2/src/composables/use-data.d.ts +17 -0
  608. package/es/components/table-v2/src/composables/use-data.mjs +44 -0
  609. package/es/components/table-v2/src/composables/use-data.mjs.map +1 -0
  610. package/es/components/table-v2/src/composables/use-row.d.ts +32 -0
  611. package/es/components/table-v2/src/composables/use-row.mjs +123 -0
  612. package/es/components/table-v2/src/composables/use-row.mjs.map +1 -0
  613. package/es/components/table-v2/src/composables/use-scrollbar.d.ts +26 -0
  614. package/es/components/table-v2/src/composables/use-scrollbar.mjs +55 -0
  615. package/es/components/table-v2/src/composables/use-scrollbar.mjs.map +1 -0
  616. package/es/components/table-v2/src/composables/use-styles.d.ts +25 -0
  617. package/es/components/table-v2/src/composables/use-styles.mjs +87 -0
  618. package/es/components/table-v2/src/composables/use-styles.mjs.map +1 -0
  619. package/es/components/table-v2/src/composables/utils.d.ts +3 -0
  620. package/es/components/table-v2/src/composables/utils.mjs +26 -0
  621. package/es/components/table-v2/src/composables/utils.mjs.map +1 -0
  622. package/es/components/table-v2/src/constants.d.ts +17 -1
  623. package/es/components/table-v2/src/constants.mjs +21 -2
  624. package/es/components/table-v2/src/constants.mjs.map +1 -1
  625. package/es/components/table-v2/src/grid.d.ts +21 -22
  626. package/es/components/table-v2/src/grid.mjs +11 -4
  627. package/es/components/table-v2/src/grid.mjs.map +1 -1
  628. package/es/components/table-v2/src/header-cell.d.ts +1 -19
  629. package/es/components/table-v2/src/header-row.d.ts +1 -20
  630. package/es/components/table-v2/src/header-row.mjs +0 -1
  631. package/es/components/table-v2/src/header-row.mjs.map +1 -1
  632. package/es/components/table-v2/src/header.d.ts +1 -19
  633. package/es/components/table-v2/src/private.d.ts +1 -0
  634. package/es/components/table-v2/src/private.mjs +4 -0
  635. package/es/components/table-v2/src/private.mjs.map +1 -0
  636. package/es/components/table-v2/src/renderers/cell.d.ts +10 -0
  637. package/es/components/table-v2/src/renderers/cell.mjs +91 -0
  638. package/es/components/table-v2/src/renderers/cell.mjs.map +1 -0
  639. package/es/components/table-v2/src/renderers/empty.d.ts +7 -0
  640. package/es/components/table-v2/src/renderers/empty.mjs +15 -0
  641. package/es/components/table-v2/src/renderers/empty.mjs.map +1 -0
  642. package/es/components/table-v2/src/renderers/footer.d.ts +7 -0
  643. package/es/components/table-v2/src/renderers/footer.mjs +15 -0
  644. package/es/components/table-v2/src/renderers/footer.mjs.map +1 -0
  645. package/es/components/table-v2/src/renderers/header-cell.d.ts +10 -0
  646. package/es/components/table-v2/src/renderers/header-cell.mjs +65 -0
  647. package/es/components/table-v2/src/renderers/header-cell.mjs.map +1 -0
  648. package/es/components/table-v2/src/renderers/header.d.ts +9 -0
  649. package/es/components/table-v2/src/renderers/header.mjs +39 -0
  650. package/es/components/table-v2/src/renderers/header.mjs.map +1 -0
  651. package/es/components/table-v2/src/renderers/left-table.d.ts +8 -0
  652. package/es/components/table-v2/src/renderers/left-table.mjs +24 -0
  653. package/es/components/table-v2/src/renderers/left-table.mjs.map +1 -0
  654. package/es/components/table-v2/src/renderers/main-table.d.ts +8 -0
  655. package/es/components/table-v2/src/renderers/main-table.mjs +22 -0
  656. package/es/components/table-v2/src/renderers/main-table.mjs.map +1 -0
  657. package/es/components/table-v2/src/renderers/overlay.d.ts +3 -0
  658. package/es/components/table-v2/src/renderers/overlay.mjs +15 -0
  659. package/es/components/table-v2/src/renderers/overlay.mjs.map +1 -0
  660. package/es/components/table-v2/src/renderers/right-table.d.ts +8 -0
  661. package/es/components/table-v2/src/renderers/right-table.mjs +24 -0
  662. package/es/components/table-v2/src/renderers/right-table.mjs.map +1 -0
  663. package/es/components/table-v2/src/renderers/row.d.ts +10 -0
  664. package/es/components/table-v2/src/renderers/row.mjs +77 -0
  665. package/es/components/table-v2/src/renderers/row.mjs.map +1 -0
  666. package/es/components/table-v2/src/row.d.ts +14 -21
  667. package/es/components/table-v2/src/row.mjs +4 -1
  668. package/es/components/table-v2/src/row.mjs.map +1 -1
  669. package/es/components/table-v2/src/table-grid.d.ts +50 -46
  670. package/es/components/table-v2/src/table-grid.mjs +221 -0
  671. package/es/components/table-v2/src/table-grid.mjs.map +1 -0
  672. package/es/components/table-v2/src/table-v2.d.ts +142 -0
  673. package/es/components/table-v2/src/table-v2.mjs +250 -0
  674. package/es/components/table-v2/src/table-v2.mjs.map +1 -0
  675. package/es/components/table-v2/src/table.d.ts +33 -35
  676. package/es/components/table-v2/src/table.mjs +36 -4
  677. package/es/components/table-v2/src/table.mjs.map +1 -1
  678. package/es/components/table-v2/src/tokens.d.ts +2 -1
  679. package/es/components/table-v2/src/tokens.mjs.map +1 -1
  680. package/es/components/table-v2/src/types.d.ts +23 -13
  681. package/es/components/table-v2/src/use-table.d.ts +49 -0
  682. package/es/components/table-v2/src/use-table.mjs +150 -0
  683. package/es/components/table-v2/src/use-table.mjs.map +1 -0
  684. package/es/components/table-v2/src/utils.d.ts +7 -0
  685. package/es/components/table-v2/src/utils.mjs +23 -0
  686. package/es/components/table-v2/src/utils.mjs.map +1 -0
  687. package/es/components/tabs/index.mjs +1 -1
  688. package/es/components/tabs/src/tab-bar.mjs +76 -7
  689. package/es/components/tabs/src/tab-bar.mjs.map +1 -1
  690. package/es/components/tabs/src/tab-bar2.mjs +7 -76
  691. package/es/components/tabs/src/tab-bar2.mjs.map +1 -1
  692. package/es/components/tabs/src/tab-nav.mjs +1 -1
  693. package/es/components/tag/index.d.ts +1 -1
  694. package/es/components/tag/src/tag.vue.d.ts +1 -1
  695. package/es/components/teleport/index.mjs +2 -2
  696. package/es/components/teleport/src/teleport.mjs +18 -43
  697. package/es/components/teleport/src/teleport.mjs.map +1 -1
  698. package/es/components/teleport/src/teleport2.mjs +43 -18
  699. package/es/components/teleport/src/teleport2.mjs.map +1 -1
  700. package/es/components/time-picker/src/common/picker.vue.d.ts +6 -6
  701. package/es/components/time-select/index.d.ts +30 -2
  702. package/es/components/time-select/src/time-select.mjs +7 -3
  703. package/es/components/time-select/src/time-select.mjs.map +1 -1
  704. package/es/components/time-select/src/time-select.vue.d.ts +15 -1
  705. package/es/components/timeline/index.mjs +2 -2
  706. package/es/components/timeline/src/timeline-item.mjs +73 -39
  707. package/es/components/timeline/src/timeline-item.mjs.map +1 -1
  708. package/es/components/timeline/src/timeline-item2.mjs +39 -73
  709. package/es/components/timeline/src/timeline-item2.mjs.map +1 -1
  710. package/es/components/tooltip/index.d.ts +3 -3
  711. package/es/components/tooltip/index.mjs +2 -2
  712. package/es/components/tooltip/src/content.mjs +1 -1
  713. package/es/components/tooltip/src/content.vue.d.ts +7 -7
  714. package/es/components/tooltip/src/tooltip.d.ts +1 -1
  715. package/es/components/tooltip/src/tooltip.mjs +174 -62
  716. package/es/components/tooltip/src/tooltip.mjs.map +1 -1
  717. package/es/components/tooltip/src/tooltip.vue.d.ts +3 -3
  718. package/es/components/tooltip/src/tooltip2.mjs +62 -174
  719. package/es/components/tooltip/src/tooltip2.mjs.map +1 -1
  720. package/es/components/tooltip/src/trigger.mjs +1 -1
  721. package/es/components/tooltip/src/trigger.vue.d.ts +3 -3
  722. package/es/components/tooltip-v2/index.mjs +4 -4
  723. package/es/components/tooltip-v2/src/arrow.mjs +22 -38
  724. package/es/components/tooltip-v2/src/arrow.mjs.map +1 -1
  725. package/es/components/tooltip-v2/src/arrow2.mjs +38 -22
  726. package/es/components/tooltip-v2/src/arrow2.mjs.map +1 -1
  727. package/es/components/tooltip-v2/src/tooltip.mjs +21 -74
  728. package/es/components/tooltip-v2/src/tooltip.mjs.map +1 -1
  729. package/es/components/tooltip-v2/src/tooltip2.mjs +74 -21
  730. package/es/components/tooltip-v2/src/tooltip2.mjs.map +1 -1
  731. package/es/components/tooltip-v2/src/trigger.mjs +11 -89
  732. package/es/components/tooltip-v2/src/trigger.mjs.map +1 -1
  733. package/es/components/tooltip-v2/src/trigger2.mjs +89 -11
  734. package/es/components/tooltip-v2/src/trigger2.mjs.map +1 -1
  735. package/es/components/tree-select/src/tree-select.mjs +1 -0
  736. package/es/components/tree-select/src/tree-select.mjs.map +1 -1
  737. package/es/components/tree-select/src/tree.mjs +16 -3
  738. package/es/components/tree-select/src/tree.mjs.map +1 -1
  739. package/es/components/upload/index.d.ts +17 -13
  740. package/es/components/upload/index.mjs +1 -1
  741. package/es/components/upload/src/upload-content.d.ts +1 -1
  742. package/es/components/upload/src/upload-content.mjs +171 -38
  743. package/es/components/upload/src/upload-content.mjs.map +1 -1
  744. package/es/components/upload/src/upload-content.vue.d.ts +4 -3
  745. package/es/components/upload/src/upload-content2.mjs +38 -169
  746. package/es/components/upload/src/upload-content2.mjs.map +1 -1
  747. package/es/components/upload/src/upload-list2.mjs +5 -3
  748. package/es/components/upload/src/upload-list2.mjs.map +1 -1
  749. package/es/components/upload/src/upload.d.ts +2 -2
  750. package/es/components/upload/src/upload.mjs +1 -1
  751. package/es/components/upload/src/upload.mjs.map +1 -1
  752. package/es/components/upload/src/upload.vue.d.ts +17 -13
  753. package/es/components/upload/src/upload2.mjs +1 -1
  754. package/es/components/virtual-list/index.d.ts +2 -1
  755. package/es/components/virtual-list/index.mjs +1 -1
  756. package/es/components/virtual-list/src/builders/build-grid.d.ts +27 -9
  757. package/es/components/virtual-list/src/builders/build-grid.mjs +44 -12
  758. package/es/components/virtual-list/src/builders/build-grid.mjs.map +1 -1
  759. package/es/components/virtual-list/src/builders/build-list.d.ts +16 -2
  760. package/es/components/virtual-list/src/builders/build-list.mjs +7 -5
  761. package/es/components/virtual-list/src/builders/build-list.mjs.map +1 -1
  762. package/es/components/virtual-list/src/components/dynamic-size-grid.d.ts +38 -5
  763. package/es/components/virtual-list/src/components/dynamic-size-grid.mjs +35 -3
  764. package/es/components/virtual-list/src/components/dynamic-size-grid.mjs.map +1 -1
  765. package/es/components/virtual-list/src/components/dynamic-size-list.d.ts +16 -2
  766. package/es/components/virtual-list/src/components/fixed-size-grid.d.ts +24 -3
  767. package/es/components/virtual-list/src/components/fixed-size-list.d.ts +16 -2
  768. package/es/components/virtual-list/src/components/scrollbar.d.ts +14 -0
  769. package/es/components/virtual-list/src/components/scrollbar.mjs +27 -28
  770. package/es/components/virtual-list/src/components/scrollbar.mjs.map +1 -1
  771. package/es/components/virtual-list/src/defaults.d.ts +1 -1
  772. package/es/components/virtual-list/src/defaults.mjs +1 -1
  773. package/es/components/virtual-list/src/defaults.mjs.map +1 -1
  774. package/es/components/virtual-list/src/hooks/use-grid-wheel.mjs +7 -2
  775. package/es/components/virtual-list/src/hooks/use-grid-wheel.mjs.map +1 -1
  776. package/es/components/virtual-list/src/props.d.ts +14 -1
  777. package/es/components/virtual-list/src/props.mjs +19 -0
  778. package/es/components/virtual-list/src/props.mjs.map +1 -1
  779. package/es/components/virtual-list/src/types.d.ts +12 -0
  780. package/es/components/virtual-list/src/utils.d.ts +10 -5
  781. package/es/components/virtual-list/src/utils.mjs.map +1 -1
  782. package/es/constants/index.mjs +1 -1
  783. package/es/constants/size.d.ts +0 -1
  784. package/es/constants/size.mjs +1 -4
  785. package/es/constants/size.mjs.map +1 -1
  786. package/es/directives/mousewheel/index.mjs +1 -7
  787. package/es/directives/mousewheel/index.mjs.map +1 -1
  788. package/es/hooks/index.d.ts +1 -0
  789. package/es/hooks/index.mjs +1 -0
  790. package/es/hooks/index.mjs.map +1 -1
  791. package/es/hooks/use-cursor/index.d.ts +2 -0
  792. package/es/hooks/use-cursor/index.mjs +46 -0
  793. package/es/hooks/use-cursor/index.mjs.map +1 -0
  794. package/es/hooks/use-draggable/index.mjs +1 -1
  795. package/es/index.mjs +23 -22
  796. package/es/index.mjs.map +1 -1
  797. package/es/utils/animation.mjs +3 -1
  798. package/es/utils/animation.mjs.map +1 -1
  799. package/es/utils/dom/index.mjs +1 -1
  800. package/es/utils/dom/style.d.ts +1 -0
  801. package/es/utils/dom/style.mjs +15 -3
  802. package/es/utils/dom/style.mjs.map +1 -1
  803. package/es/utils/index.mjs +2 -2
  804. package/es/utils/vue/index.d.ts +1 -1
  805. package/es/utils/vue/index.mjs +1 -1
  806. package/es/utils/vue/size.d.ts +1 -0
  807. package/es/utils/vue/size.mjs +9 -0
  808. package/es/utils/vue/size.mjs.map +1 -0
  809. package/es/version.d.ts +1 -1
  810. package/es/version.mjs +1 -1
  811. package/es/version.mjs.map +1 -1
  812. package/lib/components/affix/index.js +2 -2
  813. package/lib/components/affix/src/affix.js +114 -24
  814. package/lib/components/affix/src/affix.js.map +1 -1
  815. package/lib/components/affix/src/affix2.js +24 -114
  816. package/lib/components/affix/src/affix2.js.map +1 -1
  817. package/lib/components/autocomplete/index.d.ts +80 -4651
  818. package/lib/components/autocomplete/index.js +2 -2
  819. package/lib/components/autocomplete/src/autocomplete.js +324 -67
  820. package/lib/components/autocomplete/src/autocomplete.js.map +1 -1
  821. package/lib/components/autocomplete/src/autocomplete.vue.d.ts +80 -4651
  822. package/lib/components/autocomplete/src/autocomplete2.js +67 -324
  823. package/lib/components/autocomplete/src/autocomplete2.js.map +1 -1
  824. package/lib/components/avatar/src/avatar2.js +1 -1
  825. package/lib/components/badge/index.js +2 -2
  826. package/lib/components/badge/src/badge.js +54 -17
  827. package/lib/components/badge/src/badge.js.map +1 -1
  828. package/lib/components/badge/src/badge2.js +17 -54
  829. package/lib/components/badge/src/badge2.js.map +1 -1
  830. package/lib/components/breadcrumb/index.js +2 -2
  831. package/lib/components/breadcrumb/src/breadcrumb-item.js +11 -57
  832. package/lib/components/breadcrumb/src/breadcrumb-item.js.map +1 -1
  833. package/lib/components/breadcrumb/src/breadcrumb-item2.js +57 -11
  834. package/lib/components/breadcrumb/src/breadcrumb-item2.js.map +1 -1
  835. package/lib/components/button/index.js +1 -1
  836. package/lib/components/button/src/button-group.js +5 -30
  837. package/lib/components/button/src/button-group.js.map +1 -1
  838. package/lib/components/button/src/button-group2.js +30 -5
  839. package/lib/components/button/src/button-group2.js.map +1 -1
  840. package/lib/components/calendar/src/calendar2.js +1 -1
  841. package/lib/components/calendar/src/calendar2.js.map +1 -1
  842. package/lib/components/calendar/src/date-table2.js +3 -2
  843. package/lib/components/calendar/src/date-table2.js.map +1 -1
  844. package/lib/components/card/index.js +2 -2
  845. package/lib/components/card/src/card.js +35 -15
  846. package/lib/components/card/src/card.js.map +1 -1
  847. package/lib/components/card/src/card2.js +15 -35
  848. package/lib/components/card/src/card2.js.map +1 -1
  849. package/lib/components/carousel/index.js +2 -2
  850. package/lib/components/carousel/src/carousel-item.js +7 -155
  851. package/lib/components/carousel/src/carousel-item.js.map +1 -1
  852. package/lib/components/carousel/src/carousel-item2.js +155 -7
  853. package/lib/components/carousel/src/carousel-item2.js.map +1 -1
  854. package/lib/components/cascader/index.d.ts +106 -6202
  855. package/lib/components/cascader/src/index.js +1 -1
  856. package/lib/components/cascader/src/index.vue.d.ts +53 -3101
  857. package/lib/components/cascader-panel/src/config.js +1 -1
  858. package/lib/components/cascader-panel/src/index.js +1 -1
  859. package/lib/components/cascader-panel/src/menu.js +1 -1
  860. package/lib/components/cascader-panel/src/node.js +121 -209
  861. package/lib/components/cascader-panel/src/node.js.map +1 -1
  862. package/lib/components/cascader-panel/src/node2.js +209 -121
  863. package/lib/components/cascader-panel/src/node2.js.map +1 -1
  864. package/lib/components/cascader-panel/src/store.js +1 -1
  865. package/lib/components/col/src/col.d.ts +2 -0
  866. package/lib/components/col/src/col.js.map +1 -1
  867. package/lib/components/collapse/index.js +4 -4
  868. package/lib/components/collapse/src/collapse-item.js +115 -12
  869. package/lib/components/collapse/src/collapse-item.js.map +1 -1
  870. package/lib/components/collapse/src/collapse-item2.js +12 -115
  871. package/lib/components/collapse/src/collapse-item2.js.map +1 -1
  872. package/lib/components/collapse/src/collapse.js +61 -16
  873. package/lib/components/collapse/src/collapse.js.map +1 -1
  874. package/lib/components/collapse/src/collapse2.js +16 -61
  875. package/lib/components/collapse/src/collapse2.js.map +1 -1
  876. package/lib/components/color-picker/src/index.js +4 -1
  877. package/lib/components/color-picker/src/index.js.map +1 -1
  878. package/lib/components/date-picker/src/date-picker-com/panel-date-pick.js +2 -1
  879. package/lib/components/date-picker/src/date-picker-com/panel-date-pick.js.map +1 -1
  880. package/lib/components/descriptions/src/descriptions-cell.js +1 -1
  881. package/lib/components/dropdown/index.d.ts +10 -10
  882. package/lib/components/dropdown/src/dropdown-item-impl.js +1 -1
  883. package/lib/components/dropdown/src/dropdown-item-impl.vue.d.ts +1 -1
  884. package/lib/components/dropdown/src/dropdown-item.vue.d.ts +1 -1
  885. package/lib/components/dropdown/src/dropdown-menu.js +1 -1
  886. package/lib/components/dropdown/src/dropdown.d.ts +1 -1
  887. package/lib/components/dropdown/src/dropdown.js +1 -1
  888. package/lib/components/dropdown/src/dropdown.vue.d.ts +8 -8
  889. package/lib/components/dropdown/src/dropdown2.js +2 -2
  890. package/lib/components/empty/index.js +2 -2
  891. package/lib/components/empty/src/empty.js +11 -56
  892. package/lib/components/empty/src/empty.js.map +1 -1
  893. package/lib/components/empty/src/empty2.js +56 -11
  894. package/lib/components/empty/src/empty2.js.map +1 -1
  895. package/lib/components/empty/src/img-empty.js +7 -17
  896. package/lib/components/empty/src/img-empty.js.map +1 -1
  897. package/lib/components/form/index.d.ts +4 -6
  898. package/lib/components/form/src/form-item.js +23 -23
  899. package/lib/components/form/src/form-item.js.map +1 -1
  900. package/lib/components/form/src/form-item.vue.d.ts +2 -3
  901. package/lib/components/form/src/form-label-wrap.js +6 -6
  902. package/lib/components/form/src/form-label-wrap.js.map +1 -1
  903. package/lib/components/icon/src/icon2.js +1 -1
  904. package/lib/components/image/index.d.ts +8 -0
  905. package/lib/components/image/src/image.d.ts +1 -0
  906. package/lib/components/image/src/image.js +2 -1
  907. package/lib/components/image/src/image.js.map +1 -1
  908. package/lib/components/image/src/image.vue.d.ts +8 -0
  909. package/lib/components/image/src/image2.js +4 -0
  910. package/lib/components/image/src/image2.js.map +1 -1
  911. package/lib/components/image-viewer/index.d.ts +4 -0
  912. package/lib/components/image-viewer/src/image-viewer.d.ts +1 -0
  913. package/lib/components/image-viewer/src/image-viewer.js +1 -1
  914. package/lib/components/image-viewer/src/image-viewer.js.map +1 -1
  915. package/lib/components/image-viewer/src/image-viewer.vue.d.ts +4 -0
  916. package/lib/components/image-viewer/src/image-viewer2.js +4 -0
  917. package/lib/components/image-viewer/src/image-viewer2.js.map +1 -1
  918. package/lib/components/index.js +21 -21
  919. package/lib/components/input/index.d.ts +21 -1544
  920. package/lib/components/input/src/input.d.ts +2 -0
  921. package/lib/components/input/src/input.js +119 -129
  922. package/lib/components/input/src/input.js.map +1 -1
  923. package/lib/components/input/src/input.vue.d.ts +27 -1550
  924. package/lib/components/input/src/input2.js +6 -0
  925. package/lib/components/input/src/input2.js.map +1 -1
  926. package/lib/components/input-number/index.d.ts +45 -3090
  927. package/lib/components/input-number/src/input-number.d.ts +1 -1
  928. package/lib/components/input-number/src/input-number.js +1 -2
  929. package/lib/components/input-number/src/input-number.js.map +1 -1
  930. package/lib/components/input-number/src/input-number.vue.d.ts +45 -3090
  931. package/lib/components/link/index.js +2 -2
  932. package/lib/components/link/src/link.js +49 -23
  933. package/lib/components/link/src/link.js.map +1 -1
  934. package/lib/components/link/src/link2.js +23 -49
  935. package/lib/components/link/src/link2.js.map +1 -1
  936. package/lib/components/loading/src/loading.js +3 -1
  937. package/lib/components/loading/src/loading.js.map +1 -1
  938. package/lib/components/loading/src/service.js +1 -2
  939. package/lib/components/loading/src/service.js.map +1 -1
  940. package/lib/components/menu/index.d.ts +84 -0
  941. package/lib/components/menu/src/menu-collapse-transition.js +10 -7
  942. package/lib/components/menu/src/menu-collapse-transition.js.map +1 -1
  943. package/lib/components/menu/src/menu-item-group.js +11 -6
  944. package/lib/components/menu/src/menu-item-group.js.map +1 -1
  945. package/lib/components/menu/src/menu-item-group.vue.d.ts +14 -0
  946. package/lib/components/menu/src/menu-item.js +16 -8
  947. package/lib/components/menu/src/menu-item.js.map +1 -1
  948. package/lib/components/menu/src/menu-item.vue.d.ts +28 -0
  949. package/lib/components/menu/src/menu.js +14 -10
  950. package/lib/components/menu/src/menu.js.map +1 -1
  951. package/lib/components/menu/src/sub-menu.js +23 -20
  952. package/lib/components/menu/src/sub-menu.js.map +1 -1
  953. package/lib/components/menu/src/utils/menu-bar.d.ts +2 -2
  954. package/lib/components/menu/src/utils/menu-bar.js +4 -4
  955. package/lib/components/menu/src/utils/menu-bar.js.map +1 -1
  956. package/lib/components/menu/src/utils/menu-item.d.ts +2 -2
  957. package/lib/components/menu/src/utils/menu-item.js +4 -4
  958. package/lib/components/menu/src/utils/menu-item.js.map +1 -1
  959. package/lib/components/message-box/src/index.js +71 -62
  960. package/lib/components/message-box/src/index.js.map +1 -1
  961. package/lib/components/message-box/src/index.vue.d.ts +17 -1
  962. package/lib/components/page-header/index.js +2 -2
  963. package/lib/components/page-header/src/page-header.js +60 -18
  964. package/lib/components/page-header/src/page-header.js.map +1 -1
  965. package/lib/components/page-header/src/page-header2.js +18 -60
  966. package/lib/components/page-header/src/page-header2.js.map +1 -1
  967. package/lib/components/popconfirm/index.js +2 -2
  968. package/lib/components/popconfirm/src/popconfirm.js +52 -119
  969. package/lib/components/popconfirm/src/popconfirm.js.map +1 -1
  970. package/lib/components/popconfirm/src/popconfirm2.js +119 -52
  971. package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
  972. package/lib/components/popover/index.d.ts +16 -16
  973. package/lib/components/popover/src/index.vue.d.ts +8 -8
  974. package/lib/components/popover/src/popover.d.ts +1 -1
  975. package/lib/components/popover/src/popover.js +1 -1
  976. package/lib/components/popper/index.js +4 -4
  977. package/lib/components/popper/src/arrow.js +37 -7
  978. package/lib/components/popper/src/arrow.js.map +1 -1
  979. package/lib/components/popper/src/arrow2.js +7 -37
  980. package/lib/components/popper/src/arrow2.js.map +1 -1
  981. package/lib/components/popper/src/content.vue.d.ts +4 -4
  982. package/lib/components/popper/src/content2.js +3 -3
  983. package/lib/components/popper/src/content2.js.map +1 -1
  984. package/lib/components/popper/src/popper.js +27 -21
  985. package/lib/components/popper/src/popper.js.map +1 -1
  986. package/lib/components/popper/src/popper2.js +21 -27
  987. package/lib/components/popper/src/popper2.js.map +1 -1
  988. package/lib/components/radio/index.js +2 -2
  989. package/lib/components/radio/src/radio-group.js +21 -84
  990. package/lib/components/radio/src/radio-group.js.map +1 -1
  991. package/lib/components/radio/src/radio-group2.js +84 -21
  992. package/lib/components/radio/src/radio-group2.js.map +1 -1
  993. package/lib/components/rate/index.js +2 -2
  994. package/lib/components/rate/src/rate.js +239 -89
  995. package/lib/components/rate/src/rate.js.map +1 -1
  996. package/lib/components/rate/src/rate2.js +89 -239
  997. package/lib/components/rate/src/rate2.js.map +1 -1
  998. package/lib/components/roving-focus-group/index.js +2 -2
  999. package/lib/components/roving-focus-group/src/roving-focus-group-impl.js +1 -1
  1000. package/lib/components/roving-focus-group/src/roving-focus-group.js +27 -33
  1001. package/lib/components/roving-focus-group/src/roving-focus-group.js.map +1 -1
  1002. package/lib/components/roving-focus-group/src/roving-focus-group2.js +33 -27
  1003. package/lib/components/roving-focus-group/src/roving-focus-group2.js.map +1 -1
  1004. package/lib/components/roving-focus-group/src/roving-focus-item.js +1 -1
  1005. package/lib/components/roving-focus-group/src/roving-focus-item.vue.d.ts +1 -1
  1006. package/lib/components/scrollbar/src/bar.js +45 -22
  1007. package/lib/components/scrollbar/src/bar.js.map +1 -1
  1008. package/lib/components/scrollbar/src/bar2.js +22 -45
  1009. package/lib/components/scrollbar/src/bar2.js.map +1 -1
  1010. package/lib/components/scrollbar/src/scrollbar2.js +2 -2
  1011. package/lib/components/scrollbar/src/thumb.vue.d.ts +16 -16
  1012. package/lib/components/scrollbar/src/util.d.ts +18 -18
  1013. package/lib/components/scrollbar/src/util.js.map +1 -1
  1014. package/lib/components/select/index.d.ts +7 -7
  1015. package/lib/components/select/src/select.js +8 -16
  1016. package/lib/components/select/src/select.js.map +1 -1
  1017. package/lib/components/select/src/select.vue.d.ts +7 -7
  1018. package/lib/components/select/src/useSelect.d.ts +5 -5
  1019. package/lib/components/select/src/useSelect.js +2 -3
  1020. package/lib/components/select/src/useSelect.js.map +1 -1
  1021. package/lib/components/select-v2/index.d.ts +14 -14
  1022. package/lib/components/select-v2/src/defaults.js +1 -1
  1023. package/lib/components/select-v2/src/option-item.vue.d.ts +1 -1
  1024. package/lib/components/select-v2/src/select.vue.d.ts +7 -7
  1025. package/lib/components/select-v2/src/useSelect.d.ts +5 -5
  1026. package/lib/components/table/index.d.ts +1 -1
  1027. package/lib/components/table/src/filter-panel.vue.d.ts +5 -5
  1028. package/lib/components/table/src/table/defaults.d.ts +1 -1
  1029. package/lib/components/table/src/table/defaults.js.map +1 -1
  1030. package/lib/components/table/src/table/style-helper.js +1 -4
  1031. package/lib/components/table/src/table/style-helper.js.map +1 -1
  1032. package/lib/components/table/src/table.vue.d.ts +1 -1
  1033. package/lib/components/table-v2/index.d.ts +4 -0
  1034. package/lib/components/table-v2/index.js +13 -0
  1035. package/lib/components/table-v2/index.js.map +1 -1
  1036. package/lib/components/table-v2/src/cell.d.ts +3 -3
  1037. package/lib/components/table-v2/src/cell.js +5 -3
  1038. package/lib/components/table-v2/src/cell.js.map +1 -1
  1039. package/lib/components/table-v2/src/column.d.ts +5 -7
  1040. package/lib/components/table-v2/src/column.js +2 -6
  1041. package/lib/components/table-v2/src/column.js.map +1 -1
  1042. package/lib/components/table-v2/src/common.d.ts +1 -2
  1043. package/lib/components/table-v2/src/common.js.map +1 -1
  1044. package/lib/components/table-v2/src/components/cell.d.ts +4 -0
  1045. package/lib/components/table-v2/src/components/cell.js +26 -0
  1046. package/lib/components/table-v2/src/components/cell.js.map +1 -0
  1047. package/lib/components/table-v2/src/components/expand-icon.d.ts +11 -0
  1048. package/lib/components/table-v2/src/components/expand-icon.js +30 -0
  1049. package/lib/components/table-v2/src/components/expand-icon.js.map +1 -0
  1050. package/lib/components/table-v2/src/components/header-cell.d.ts +4 -0
  1051. package/lib/components/table-v2/src/components/header-cell.js +19 -0
  1052. package/lib/components/table-v2/src/components/header-cell.js.map +1 -0
  1053. package/lib/components/table-v2/src/components/header-row.d.ts +27 -0
  1054. package/lib/components/table-v2/src/components/header-row.js +44 -0
  1055. package/lib/components/table-v2/src/components/header-row.js.map +1 -0
  1056. package/{es/components/table-v2/src/table-header.d.ts → lib/components/table-v2/src/components/header.d.ts} +14 -39
  1057. package/lib/components/table-v2/src/components/header.js +100 -0
  1058. package/lib/components/table-v2/src/components/header.js.map +1 -0
  1059. package/lib/components/table-v2/src/components/index.d.ts +10 -0
  1060. package/lib/components/table-v2/src/components/index.js +22 -0
  1061. package/lib/components/table-v2/src/components/index.js.map +1 -0
  1062. package/lib/components/table-v2/src/components/row.d.ts +68 -0
  1063. package/lib/components/table-v2/src/components/row.js +208 -0
  1064. package/lib/components/table-v2/src/components/row.js.map +1 -0
  1065. package/lib/components/table-v2/src/components/sort-icon.d.ts +8 -0
  1066. package/lib/components/table-v2/src/components/sort-icon.js +23 -0
  1067. package/lib/components/table-v2/src/components/sort-icon.js.map +1 -0
  1068. package/lib/components/table-v2/src/composables/index.d.ts +5 -0
  1069. package/lib/components/table-v2/src/composables/index.js +18 -0
  1070. package/lib/components/{autocomplete/src → table-v2/src/composables}/index.js.map +1 -1
  1071. package/lib/components/table-v2/src/composables/use-columns.d.ts +20 -0
  1072. package/lib/components/table-v2/src/composables/use-columns.js +92 -0
  1073. package/lib/components/table-v2/src/composables/use-columns.js.map +1 -0
  1074. package/lib/components/table-v2/src/composables/use-data.d.ts +17 -0
  1075. package/lib/components/table-v2/src/composables/use-data.js +48 -0
  1076. package/lib/components/table-v2/src/composables/use-data.js.map +1 -0
  1077. package/lib/components/table-v2/src/composables/use-row.d.ts +32 -0
  1078. package/lib/components/table-v2/src/composables/use-row.js +127 -0
  1079. package/lib/components/table-v2/src/composables/use-row.js.map +1 -0
  1080. package/lib/components/table-v2/src/composables/use-scrollbar.d.ts +26 -0
  1081. package/lib/components/table-v2/src/composables/use-scrollbar.js +59 -0
  1082. package/lib/components/table-v2/src/composables/use-scrollbar.js.map +1 -0
  1083. package/lib/components/table-v2/src/composables/use-styles.d.ts +25 -0
  1084. package/lib/components/table-v2/src/composables/use-styles.js +91 -0
  1085. package/lib/components/table-v2/src/composables/use-styles.js.map +1 -0
  1086. package/lib/components/table-v2/src/composables/utils.d.ts +3 -0
  1087. package/lib/components/table-v2/src/composables/utils.js +30 -0
  1088. package/lib/components/table-v2/src/composables/utils.js.map +1 -0
  1089. package/lib/components/table-v2/src/constants.d.ts +17 -1
  1090. package/lib/components/table-v2/src/constants.js +24 -1
  1091. package/lib/components/table-v2/src/constants.js.map +1 -1
  1092. package/lib/components/table-v2/src/grid.d.ts +21 -22
  1093. package/lib/components/table-v2/src/grid.js +10 -3
  1094. package/lib/components/table-v2/src/grid.js.map +1 -1
  1095. package/lib/components/table-v2/src/header-cell.d.ts +1 -19
  1096. package/lib/components/table-v2/src/header-row.d.ts +1 -20
  1097. package/lib/components/table-v2/src/header-row.js +0 -1
  1098. package/lib/components/table-v2/src/header-row.js.map +1 -1
  1099. package/lib/components/table-v2/src/header.d.ts +1 -19
  1100. package/lib/components/table-v2/src/private.d.ts +1 -0
  1101. package/lib/components/table-v2/src/private.js +8 -0
  1102. package/lib/components/table-v2/src/private.js.map +1 -0
  1103. package/lib/components/table-v2/src/renderers/cell.d.ts +10 -0
  1104. package/lib/components/table-v2/src/renderers/cell.js +95 -0
  1105. package/lib/components/table-v2/src/renderers/cell.js.map +1 -0
  1106. package/lib/components/table-v2/src/renderers/empty.d.ts +7 -0
  1107. package/lib/components/table-v2/src/renderers/empty.js +19 -0
  1108. package/lib/components/table-v2/src/renderers/empty.js.map +1 -0
  1109. package/lib/components/table-v2/src/renderers/footer.d.ts +7 -0
  1110. package/lib/components/table-v2/src/renderers/footer.js +19 -0
  1111. package/lib/components/table-v2/src/renderers/footer.js.map +1 -0
  1112. package/lib/components/table-v2/src/renderers/header-cell.d.ts +10 -0
  1113. package/lib/components/table-v2/src/renderers/header-cell.js +69 -0
  1114. package/lib/components/table-v2/src/renderers/header-cell.js.map +1 -0
  1115. package/lib/components/table-v2/src/renderers/header.d.ts +9 -0
  1116. package/lib/components/table-v2/src/renderers/header.js +43 -0
  1117. package/lib/components/table-v2/src/renderers/header.js.map +1 -0
  1118. package/lib/components/table-v2/src/renderers/left-table.d.ts +8 -0
  1119. package/lib/components/table-v2/src/renderers/left-table.js +28 -0
  1120. package/lib/components/table-v2/src/renderers/left-table.js.map +1 -0
  1121. package/lib/components/table-v2/src/renderers/main-table.d.ts +8 -0
  1122. package/lib/components/table-v2/src/renderers/main-table.js +26 -0
  1123. package/lib/components/table-v2/src/renderers/main-table.js.map +1 -0
  1124. package/lib/components/table-v2/src/renderers/overlay.d.ts +3 -0
  1125. package/lib/components/table-v2/src/renderers/overlay.js +19 -0
  1126. package/lib/components/table-v2/src/renderers/overlay.js.map +1 -0
  1127. package/lib/components/table-v2/src/renderers/right-table.d.ts +8 -0
  1128. package/lib/components/table-v2/src/renderers/right-table.js +28 -0
  1129. package/lib/components/table-v2/src/renderers/right-table.js.map +1 -0
  1130. package/lib/components/table-v2/src/renderers/row.d.ts +10 -0
  1131. package/lib/components/table-v2/src/renderers/row.js +81 -0
  1132. package/lib/components/table-v2/src/renderers/row.js.map +1 -0
  1133. package/lib/components/table-v2/src/row.d.ts +14 -21
  1134. package/lib/components/table-v2/src/row.js +4 -1
  1135. package/lib/components/table-v2/src/row.js.map +1 -1
  1136. package/lib/components/table-v2/src/table-grid.d.ts +50 -46
  1137. package/lib/components/table-v2/src/table-grid.js +225 -0
  1138. package/lib/components/table-v2/src/table-grid.js.map +1 -0
  1139. package/lib/components/table-v2/src/table-v2.d.ts +142 -0
  1140. package/lib/components/table-v2/src/table-v2.js +254 -0
  1141. package/lib/components/table-v2/src/table-v2.js.map +1 -0
  1142. package/lib/components/table-v2/src/table.d.ts +33 -35
  1143. package/lib/components/table-v2/src/table.js +36 -4
  1144. package/lib/components/table-v2/src/table.js.map +1 -1
  1145. package/lib/components/table-v2/src/tokens.d.ts +2 -1
  1146. package/lib/components/table-v2/src/tokens.js.map +1 -1
  1147. package/lib/components/table-v2/src/types.d.ts +23 -13
  1148. package/lib/components/table-v2/src/use-table.d.ts +49 -0
  1149. package/lib/components/table-v2/src/use-table.js +154 -0
  1150. package/lib/components/table-v2/src/use-table.js.map +1 -0
  1151. package/lib/components/table-v2/src/utils.d.ts +7 -0
  1152. package/lib/components/table-v2/src/utils.js +30 -0
  1153. package/lib/components/table-v2/src/utils.js.map +1 -0
  1154. package/lib/components/tabs/index.js +1 -1
  1155. package/lib/components/tabs/src/tab-bar.js +76 -7
  1156. package/lib/components/tabs/src/tab-bar.js.map +1 -1
  1157. package/lib/components/tabs/src/tab-bar2.js +7 -76
  1158. package/lib/components/tabs/src/tab-bar2.js.map +1 -1
  1159. package/lib/components/tabs/src/tab-nav.js +1 -1
  1160. package/lib/components/tag/index.d.ts +1 -1
  1161. package/lib/components/tag/src/tag.vue.d.ts +1 -1
  1162. package/lib/components/teleport/index.js +2 -2
  1163. package/lib/components/teleport/src/teleport.js +18 -43
  1164. package/lib/components/teleport/src/teleport.js.map +1 -1
  1165. package/lib/components/teleport/src/teleport2.js +43 -18
  1166. package/lib/components/teleport/src/teleport2.js.map +1 -1
  1167. package/lib/components/time-picker/src/common/picker.vue.d.ts +6 -6
  1168. package/lib/components/time-select/index.d.ts +30 -2
  1169. package/lib/components/time-select/src/time-select.js +6 -2
  1170. package/lib/components/time-select/src/time-select.js.map +1 -1
  1171. package/lib/components/time-select/src/time-select.vue.d.ts +15 -1
  1172. package/lib/components/timeline/index.js +2 -2
  1173. package/lib/components/timeline/src/timeline-item.js +73 -39
  1174. package/lib/components/timeline/src/timeline-item.js.map +1 -1
  1175. package/lib/components/timeline/src/timeline-item2.js +39 -73
  1176. package/lib/components/timeline/src/timeline-item2.js.map +1 -1
  1177. package/lib/components/tooltip/index.d.ts +3 -3
  1178. package/lib/components/tooltip/index.js +2 -2
  1179. package/lib/components/tooltip/src/content.js +1 -1
  1180. package/lib/components/tooltip/src/content.vue.d.ts +7 -7
  1181. package/lib/components/tooltip/src/tooltip.d.ts +1 -1
  1182. package/lib/components/tooltip/src/tooltip.js +174 -64
  1183. package/lib/components/tooltip/src/tooltip.js.map +1 -1
  1184. package/lib/components/tooltip/src/tooltip.vue.d.ts +3 -3
  1185. package/lib/components/tooltip/src/tooltip2.js +64 -174
  1186. package/lib/components/tooltip/src/tooltip2.js.map +1 -1
  1187. package/lib/components/tooltip/src/trigger.js +1 -1
  1188. package/lib/components/tooltip/src/trigger.vue.d.ts +3 -3
  1189. package/lib/components/tooltip-v2/index.js +4 -4
  1190. package/lib/components/tooltip-v2/src/arrow.js +23 -38
  1191. package/lib/components/tooltip-v2/src/arrow.js.map +1 -1
  1192. package/lib/components/tooltip-v2/src/arrow2.js +38 -23
  1193. package/lib/components/tooltip-v2/src/arrow2.js.map +1 -1
  1194. package/lib/components/tooltip-v2/src/tooltip.js +21 -74
  1195. package/lib/components/tooltip-v2/src/tooltip.js.map +1 -1
  1196. package/lib/components/tooltip-v2/src/tooltip2.js +74 -21
  1197. package/lib/components/tooltip-v2/src/tooltip2.js.map +1 -1
  1198. package/lib/components/tooltip-v2/src/trigger.js +11 -89
  1199. package/lib/components/tooltip-v2/src/trigger.js.map +1 -1
  1200. package/lib/components/tooltip-v2/src/trigger2.js +89 -11
  1201. package/lib/components/tooltip-v2/src/trigger2.js.map +1 -1
  1202. package/lib/components/tree-select/src/tree-select.js +1 -0
  1203. package/lib/components/tree-select/src/tree-select.js.map +1 -1
  1204. package/lib/components/tree-select/src/tree.js +16 -3
  1205. package/lib/components/tree-select/src/tree.js.map +1 -1
  1206. package/lib/components/upload/index.d.ts +17 -13
  1207. package/lib/components/upload/index.js +1 -1
  1208. package/lib/components/upload/src/upload-content.d.ts +1 -1
  1209. package/lib/components/upload/src/upload-content.js +170 -37
  1210. package/lib/components/upload/src/upload-content.js.map +1 -1
  1211. package/lib/components/upload/src/upload-content.vue.d.ts +4 -3
  1212. package/lib/components/upload/src/upload-content2.js +37 -168
  1213. package/lib/components/upload/src/upload-content2.js.map +1 -1
  1214. package/lib/components/upload/src/upload-list2.js +4 -2
  1215. package/lib/components/upload/src/upload-list2.js.map +1 -1
  1216. package/lib/components/upload/src/upload.d.ts +2 -2
  1217. package/lib/components/upload/src/upload.js +1 -1
  1218. package/lib/components/upload/src/upload.js.map +1 -1
  1219. package/lib/components/upload/src/upload.vue.d.ts +17 -13
  1220. package/lib/components/upload/src/upload2.js +1 -1
  1221. package/lib/components/virtual-list/index.d.ts +2 -1
  1222. package/lib/components/virtual-list/index.js +1 -1
  1223. package/lib/components/virtual-list/src/builders/build-grid.d.ts +27 -9
  1224. package/lib/components/virtual-list/src/builders/build-grid.js +43 -11
  1225. package/lib/components/virtual-list/src/builders/build-grid.js.map +1 -1
  1226. package/lib/components/virtual-list/src/builders/build-list.d.ts +16 -2
  1227. package/lib/components/virtual-list/src/builders/build-list.js +7 -5
  1228. package/lib/components/virtual-list/src/builders/build-list.js.map +1 -1
  1229. package/lib/components/virtual-list/src/components/dynamic-size-grid.d.ts +38 -5
  1230. package/lib/components/virtual-list/src/components/dynamic-size-grid.js +35 -3
  1231. package/lib/components/virtual-list/src/components/dynamic-size-grid.js.map +1 -1
  1232. package/lib/components/virtual-list/src/components/dynamic-size-list.d.ts +16 -2
  1233. package/lib/components/virtual-list/src/components/fixed-size-grid.d.ts +24 -3
  1234. package/lib/components/virtual-list/src/components/fixed-size-list.d.ts +16 -2
  1235. package/lib/components/virtual-list/src/components/scrollbar.d.ts +14 -0
  1236. package/lib/components/virtual-list/src/components/scrollbar.js +26 -27
  1237. package/lib/components/virtual-list/src/components/scrollbar.js.map +1 -1
  1238. package/lib/components/virtual-list/src/defaults.d.ts +1 -1
  1239. package/lib/components/virtual-list/src/defaults.js +1 -1
  1240. package/lib/components/virtual-list/src/defaults.js.map +1 -1
  1241. package/lib/components/virtual-list/src/hooks/use-grid-wheel.js +7 -2
  1242. package/lib/components/virtual-list/src/hooks/use-grid-wheel.js.map +1 -1
  1243. package/lib/components/virtual-list/src/props.d.ts +14 -1
  1244. package/lib/components/virtual-list/src/props.js +19 -0
  1245. package/lib/components/virtual-list/src/props.js.map +1 -1
  1246. package/lib/components/virtual-list/src/types.d.ts +12 -0
  1247. package/lib/components/virtual-list/src/utils.d.ts +10 -5
  1248. package/lib/components/virtual-list/src/utils.js.map +1 -1
  1249. package/lib/constants/index.js +0 -1
  1250. package/lib/constants/index.js.map +1 -1
  1251. package/lib/constants/size.d.ts +0 -1
  1252. package/lib/constants/size.js +0 -4
  1253. package/lib/constants/size.js.map +1 -1
  1254. package/lib/directives/mousewheel/index.js +1 -7
  1255. package/lib/directives/mousewheel/index.js.map +1 -1
  1256. package/lib/hooks/index.d.ts +1 -0
  1257. package/lib/hooks/index.js +2 -0
  1258. package/lib/hooks/index.js.map +1 -1
  1259. package/lib/hooks/use-cursor/index.d.ts +2 -0
  1260. package/lib/hooks/use-cursor/index.js +50 -0
  1261. package/lib/hooks/use-cursor/index.js.map +1 -0
  1262. package/lib/hooks/use-draggable/index.js +1 -1
  1263. package/lib/index.js +23 -22
  1264. package/lib/index.js.map +1 -1
  1265. package/lib/utils/animation.js +3 -1
  1266. package/lib/utils/animation.js.map +1 -1
  1267. package/lib/utils/dom/index.js +1 -0
  1268. package/lib/utils/dom/index.js.map +1 -1
  1269. package/lib/utils/dom/style.d.ts +1 -0
  1270. package/lib/utils/dom/style.js +13 -0
  1271. package/lib/utils/dom/style.js.map +1 -1
  1272. package/lib/utils/index.js +3 -2
  1273. package/lib/utils/index.js.map +1 -1
  1274. package/lib/utils/vue/index.d.ts +1 -1
  1275. package/lib/utils/vue/index.js +2 -2
  1276. package/lib/utils/vue/size.d.ts +1 -0
  1277. package/lib/utils/vue/size.js +13 -0
  1278. package/lib/utils/vue/size.js.map +1 -0
  1279. package/lib/version.d.ts +1 -1
  1280. package/lib/version.js +1 -1
  1281. package/lib/version.js.map +1 -1
  1282. package/package.json +8 -8
  1283. package/tags.json +1 -1
  1284. package/theme-chalk/base.css +1 -1
  1285. package/theme-chalk/el-autocomplete.css +1 -1
  1286. package/theme-chalk/el-badge.css +1 -1
  1287. package/theme-chalk/el-cascader.css +1 -1
  1288. package/theme-chalk/el-check-tag.css +1 -1
  1289. package/theme-chalk/el-color-picker.css +1 -1
  1290. package/theme-chalk/el-date-picker.css +1 -1
  1291. package/theme-chalk/el-form.css +1 -1
  1292. package/theme-chalk/el-icon.css +1 -1
  1293. package/theme-chalk/el-input-number.css +1 -1
  1294. package/theme-chalk/el-input.css +1 -1
  1295. package/theme-chalk/el-option.css +1 -1
  1296. package/theme-chalk/el-pagination.css +1 -1
  1297. package/theme-chalk/el-result.css +1 -1
  1298. package/theme-chalk/el-select.css +1 -1
  1299. package/theme-chalk/el-step.css +1 -1
  1300. package/theme-chalk/el-table-v2.css +1 -0
  1301. package/theme-chalk/el-tabs.css +1 -1
  1302. package/theme-chalk/el-tag.css +1 -1
  1303. package/theme-chalk/el-time-picker.css +1 -1
  1304. package/theme-chalk/el-time-select.css +1 -1
  1305. package/theme-chalk/el-upload.css +1 -1
  1306. package/theme-chalk/el-virtual-list.css +1 -1
  1307. package/theme-chalk/index.css +1 -1
  1308. package/theme-chalk/src/autocomplete.scss +9 -9
  1309. package/theme-chalk/src/badge.scss +14 -12
  1310. package/theme-chalk/src/cascader.scss +8 -13
  1311. package/theme-chalk/src/check-tag.scss +6 -6
  1312. package/theme-chalk/src/color-picker.scss +45 -6
  1313. package/theme-chalk/src/common/var.scss +0 -2
  1314. package/theme-chalk/src/dark/css-vars.scss +4 -0
  1315. package/theme-chalk/src/dark/var.scss +19 -0
  1316. package/theme-chalk/src/date-picker/picker.scss +12 -0
  1317. package/theme-chalk/src/date-picker/time-picker.scss +2 -2
  1318. package/theme-chalk/src/date-picker/time-spinner.scss +1 -1
  1319. package/theme-chalk/src/date-picker/year-table.scss +2 -2
  1320. package/theme-chalk/src/form.scss +4 -2
  1321. package/theme-chalk/src/icon.scss +0 -1
  1322. package/theme-chalk/src/index.scss +1 -0
  1323. package/theme-chalk/src/input-number.scss +8 -7
  1324. package/theme-chalk/src/input.scss +117 -169
  1325. package/theme-chalk/src/option.scss +0 -4
  1326. package/theme-chalk/src/pagination.scss +6 -0
  1327. package/theme-chalk/src/result.scss +0 -2
  1328. package/theme-chalk/src/select/common.scss +1 -1
  1329. package/theme-chalk/src/select.scss +12 -6
  1330. package/theme-chalk/src/step.scss +1 -1
  1331. package/theme-chalk/src/table-v2.scss +213 -0
  1332. package/theme-chalk/src/tabs.scss +1 -1
  1333. package/theme-chalk/src/tag.scss +24 -20
  1334. package/theme-chalk/src/upload.scss +9 -6
  1335. package/theme-chalk/src/virtual-list.scss +3 -0
  1336. package/web-types.json +1 -1
  1337. package/es/components/autocomplete/src/index.mjs +0 -7
  1338. package/es/components/table-v2/src/table-cell.d.ts +0 -19
  1339. package/es/components/table-v2/src/table-header-cell.d.ts +0 -48
  1340. package/es/components/table-v2/src/table-header-row.d.ts +0 -52
  1341. package/es/components/table-v2/src/table-row.d.ts +0 -79
  1342. package/es/components/table-v2/src/useTable.d.ts +0 -13
  1343. package/es/components/table-v2/src/useTable.mjs +0 -85
  1344. package/es/components/table-v2/src/useTable.mjs.map +0 -1
  1345. package/es/utils/vue/style.d.ts +0 -1
  1346. package/es/utils/vue/style.mjs +0 -19
  1347. package/es/utils/vue/style.mjs.map +0 -1
  1348. package/lib/components/autocomplete/src/index.js +0 -11
  1349. package/lib/components/table-v2/src/table-cell.d.ts +0 -19
  1350. package/lib/components/table-v2/src/table-header-cell.d.ts +0 -48
  1351. package/lib/components/table-v2/src/table-header-row.d.ts +0 -52
  1352. package/lib/components/table-v2/src/table-row.d.ts +0 -79
  1353. package/lib/components/table-v2/src/useTable.d.ts +0 -13
  1354. package/lib/components/table-v2/src/useTable.js +0 -90
  1355. package/lib/components/table-v2/src/useTable.js.map +0 -1
  1356. package/lib/utils/vue/style.d.ts +0 -1
  1357. package/lib/utils/vue/style.js +0 -23
  1358. package/lib/utils/vue/style.js.map +0 -1
@@ -48,7 +48,7 @@ declare const _default: import("vue").DefineComponent<{
48
48
  $data: {};
49
49
  $props: Partial<{
50
50
  disabled: boolean;
51
- trigger: import("../../../utils").BuildPropType<import("../../../utils").PropWrapper<"click" | "focus" | "hover" | "contextmenu" | ("click" | "focus" | "hover" | "contextmenu")[]>, unknown, unknown>;
51
+ trigger: import("../../../utils").BuildPropType<import("../../../utils").PropWrapper<"click" | "contextmenu" | "focus" | "hover" | ("click" | "contextmenu" | "focus" | "hover")[]>, unknown, unknown>;
52
52
  offset: number;
53
53
  effect: string;
54
54
  placement: import("../../../utils").BuildPropType<StringConstructor, Placement, unknown>;
@@ -137,7 +137,7 @@ declare const _default: import("vue").DefineComponent<{
137
137
  showArrow: import("../../../utils").BuildPropReturn<BooleanConstructor, boolean | (() => false) | (() => true) | undefined, unknown, unknown, unknown>;
138
138
  arrowOffset: import("../../../utils").BuildPropReturn<NumberConstructor, 5, unknown, unknown, unknown>;
139
139
  disabled: BooleanConstructor;
140
- trigger: import("../../../utils").BuildPropReturn<import("../../../utils").PropWrapper<"click" | "focus" | "hover" | "contextmenu" | ("click" | "focus" | "hover" | "contextmenu")[]>, "hover", unknown, unknown, unknown>;
140
+ trigger: import("../../../utils").BuildPropReturn<import("../../../utils").PropWrapper<"click" | "contextmenu" | "focus" | "hover" | ("click" | "contextmenu" | "focus" | "hover")[]>, "hover", unknown, unknown, unknown>;
141
141
  virtualRef: import("../../../utils").BuildPropReturn<import("../../../utils").PropWrapper<import("../../..").Measurable>, unknown, unknown, unknown, unknown>;
142
142
  virtualTriggering: BooleanConstructor;
143
143
  onMouseenter: FunctionConstructor;
@@ -247,7 +247,7 @@ declare const _default: import("vue").DefineComponent<{
247
247
  showArrow: import("../../../utils").BuildPropReturn<BooleanConstructor, boolean | (() => false) | (() => true) | undefined, unknown, unknown, unknown>;
248
248
  arrowOffset: import("../../../utils").BuildPropReturn<NumberConstructor, 5, unknown, unknown, unknown>;
249
249
  disabled: BooleanConstructor;
250
- trigger: import("../../../utils").BuildPropReturn<import("../../../utils").PropWrapper<"click" | "focus" | "hover" | "contextmenu" | ("click" | "focus" | "hover" | "contextmenu")[]>, "hover", unknown, unknown, unknown>;
250
+ trigger: import("../../../utils").BuildPropReturn<import("../../../utils").PropWrapper<"click" | "contextmenu" | "focus" | "hover" | ("click" | "contextmenu" | "focus" | "hover")[]>, "hover", unknown, unknown, unknown>;
251
251
  virtualRef: import("../../../utils").BuildPropReturn<import("../../../utils").PropWrapper<import("../../..").Measurable>, unknown, unknown, unknown, unknown>;
252
252
  virtualTriggering: BooleanConstructor;
253
253
  onMouseenter: FunctionConstructor;
@@ -396,7 +396,7 @@ declare const _default: import("vue").DefineComponent<{
396
396
  onClose: () => void;
397
397
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, {
398
398
  disabled: boolean;
399
- trigger: import("../../../utils").BuildPropType<import("../../../utils").PropWrapper<"click" | "focus" | "hover" | "contextmenu" | ("click" | "focus" | "hover" | "contextmenu")[]>, unknown, unknown>;
399
+ trigger: import("../../../utils").BuildPropType<import("../../../utils").PropWrapper<"click" | "contextmenu" | "focus" | "hover" | ("click" | "contextmenu" | "focus" | "hover")[]>, unknown, unknown>;
400
400
  offset: number;
401
401
  effect: string;
402
402
  placement: import("../../../utils").BuildPropType<StringConstructor, Placement, unknown>;
@@ -505,7 +505,7 @@ declare const _default: import("vue").DefineComponent<{
505
505
  showArrow: import("../../../utils").BuildPropReturn<BooleanConstructor, boolean | (() => false) | (() => true) | undefined, unknown, unknown, unknown>;
506
506
  arrowOffset: import("../../../utils").BuildPropReturn<NumberConstructor, 5, unknown, unknown, unknown>;
507
507
  disabled: BooleanConstructor;
508
- trigger: import("../../../utils").BuildPropReturn<import("../../../utils").PropWrapper<"click" | "focus" | "hover" | "contextmenu" | ("click" | "focus" | "hover" | "contextmenu")[]>, "hover", unknown, unknown, unknown>;
508
+ trigger: import("../../../utils").BuildPropReturn<import("../../../utils").PropWrapper<"click" | "contextmenu" | "focus" | "hover" | ("click" | "contextmenu" | "focus" | "hover")[]>, "hover", unknown, unknown, unknown>;
509
509
  virtualRef: import("../../../utils").BuildPropReturn<import("../../../utils").PropWrapper<import("../../..").Measurable>, unknown, unknown, unknown, unknown>;
510
510
  virtualTriggering: BooleanConstructor;
511
511
  onMouseenter: FunctionConstructor;
@@ -34,7 +34,7 @@ declare type RIS<T> = {
34
34
  };
35
35
  declare type RenderExpanded<T> = ({ row, $index, store, expanded: boolean, }: RIS<T>) => VNode;
36
36
  declare type SummaryMethod<T> = (data: {
37
- columns: TableColumnCtx<T>;
37
+ columns: TableColumnCtx<T>[];
38
38
  data: T[];
39
39
  }) => string[];
40
40
  interface Table<T> extends ComponentInternalInstance {
@@ -1 +1 @@
1
- {"version":3,"file":"defaults.js","sources":["../../../../../../../packages/components/table/src/table/defaults.ts"],"sourcesContent":["import type {\n CSSProperties,\n ComponentInternalInstance,\n PropType,\n Ref,\n VNode,\n} from 'vue'\nimport type { Nullable } from '@element-plus/utils'\nimport type { Store } from '../store'\nimport type { TableColumnCtx } from '../table-column/defaults'\nimport type TableLayout from '../table-layout'\n\nexport type DefaultRow = any\n\ninterface TableRefs {\n headerWrapper: HTMLElement\n footerWrapper: HTMLElement\n fixedBodyWrapper: HTMLElement\n rightFixedBodyWrapper: HTMLElement\n bodyWrapper: HTMLElement\n [key: string]: any\n}\n\ninterface TableState {\n isGroup: Ref<boolean>\n resizeState: Ref<{\n width: any\n height: any\n }>\n doLayout: () => void\n debouncedUpdateLayout: () => void\n}\n\ntype HoverState<T> = Nullable<{\n cell: HTMLElement\n column: TableColumnCtx<T>\n row: T\n}>\n\ntype RIS<T> = { row: T; $index: number; store: Store<T>; expanded: boolean }\n\ntype RenderExpanded<T> = ({\n row,\n $index,\n store,\n expanded: boolean,\n}: RIS<T>) => VNode\n\ntype SummaryMethod<T> = (data: {\n columns: TableColumnCtx<T>\n data: T[]\n}) => string[]\n\ninterface Table<T> extends ComponentInternalInstance {\n $ready: boolean\n hoverState?: HoverState<T>\n renderExpanded: RenderExpanded<T>\n store: Store<T>\n layout: TableLayout<T>\n refs: TableRefs\n tableId: string\n state: TableState\n}\n\ntype ColumnCls<T> = string | ((data: { row: T; rowIndex: number }) => string)\ntype ColumnStyle<T> =\n | CSSProperties\n | ((data: { row: T; rowIndex: number }) => CSSProperties)\ntype CellCls<T> =\n | string\n | ((data: {\n row: T\n rowIndex: number\n column: TableColumnCtx<T>\n columnIndex: number\n }) => string)\ntype CellStyle<T> =\n | CSSProperties\n | ((data: {\n row: T\n rowIndex: number\n column: TableColumnCtx<T>\n columnIndex: number\n }) => CSSProperties)\ntype Layout = 'fixed' | 'auto'\ninterface TableProps<T> {\n data: T[]\n size?: string\n width?: string | number\n height?: string | number\n maxHeight?: string | number\n fit?: boolean\n stripe?: boolean\n border?: boolean\n rowKey?: string | ((row: T) => string)\n context?: Table<T>\n showHeader?: boolean\n showSummary?: boolean\n sumText?: string\n summaryMethod?: SummaryMethod<T>\n rowClassName?: ColumnCls<T>\n rowStyle?: ColumnStyle<T>\n cellClassName?: CellCls<T>\n cellStyle?: CellStyle<T>\n headerRowClassName?: ColumnCls<T>\n headerRowStyle?: ColumnStyle<T>\n headerCellClassName?: CellCls<T>\n headerCellStyle?: CellStyle<T>\n highlightCurrentRow?: boolean\n currentRowKey?: string | number\n emptyText?: string\n expandRowKeys?: any[]\n defaultExpandAll?: boolean\n defaultSort?: Sort\n tooltipEffect?: string\n spanMethod?: (data: {\n row: T\n rowIndex: number\n column: TableColumnCtx<T>\n columnIndex: number\n }) =>\n | number[]\n | {\n rowspan: number\n colspan: number\n }\n selectOnIndeterminate?: boolean\n indent?: number\n treeProps?: {\n hasChildren?: string\n children?: string\n }\n lazy?: boolean\n load?: (row: T, treeNode: TreeNode, resolve: (data: T[]) => void) => void\n className?: string\n style?: CSSProperties\n tableLayout: Layout\n}\n\ninterface Sort {\n prop: string\n order: 'ascending' | 'descending'\n init?: any\n silent?: any\n}\n\ninterface Filter<T> {\n column: TableColumnCtx<T>\n values: string[]\n silent: any\n}\n\ninterface TreeNode {\n expanded?: boolean\n loading?: boolean\n noLazyChildren?: boolean\n indent?: number\n level?: number\n display?: boolean\n}\n\ninterface RenderRowData<T> {\n store: Store<T>\n _self: Table<T>\n column: TableColumnCtx<T>\n row: T\n $index: number\n treeNode?: TreeNode\n expanded: boolean\n}\n\nexport default {\n data: {\n type: Array as PropType<DefaultRow[]>,\n default: () => {\n return []\n },\n },\n size: String,\n width: [String, Number],\n height: [String, Number],\n maxHeight: [String, Number],\n fit: {\n type: Boolean,\n default: true,\n },\n stripe: Boolean,\n border: Boolean,\n rowKey: [String, Function] as PropType<TableProps<DefaultRow>['rowKey']>,\n showHeader: {\n type: Boolean,\n default: true,\n },\n showSummary: Boolean,\n sumText: String,\n summaryMethod: Function as PropType<TableProps<DefaultRow>['summaryMethod']>,\n rowClassName: [String, Function] as PropType<\n TableProps<DefaultRow>['rowClassName']\n >,\n rowStyle: [Object, Function] as PropType<TableProps<DefaultRow>['rowStyle']>,\n cellClassName: [String, Function] as PropType<\n TableProps<DefaultRow>['cellClassName']\n >,\n cellStyle: [Object, Function] as PropType<\n TableProps<DefaultRow>['cellStyle']\n >,\n headerRowClassName: [String, Function] as PropType<\n TableProps<DefaultRow>['headerRowClassName']\n >,\n headerRowStyle: [Object, Function] as PropType<\n TableProps<DefaultRow>['headerRowStyle']\n >,\n headerCellClassName: [String, Function] as PropType<\n TableProps<DefaultRow>['headerCellClassName']\n >,\n headerCellStyle: [Object, Function] as PropType<\n TableProps<DefaultRow>['headerCellStyle']\n >,\n highlightCurrentRow: Boolean,\n currentRowKey: [String, Number],\n emptyText: String,\n expandRowKeys: Array as PropType<TableProps<DefaultRow>['expandRowKeys']>,\n defaultExpandAll: Boolean,\n defaultSort: Object as PropType<TableProps<DefaultRow>['defaultSort']>,\n tooltipEffect: String,\n spanMethod: Function as PropType<TableProps<DefaultRow>['spanMethod']>,\n selectOnIndeterminate: {\n type: Boolean,\n default: true,\n },\n indent: {\n type: Number,\n default: 16,\n },\n treeProps: {\n type: Object as PropType<TableProps<DefaultRow>['treeProps']>,\n default: () => {\n return {\n hasChildren: 'hasChildren',\n children: 'children',\n }\n },\n },\n lazy: Boolean,\n load: Function as PropType<TableProps<DefaultRow>['load']>,\n style: {\n type: Object as PropType<CSSProperties>,\n default: () => ({}),\n },\n className: {\n type: String,\n default: '',\n },\n tableLayout: {\n type: String as PropType<Layout>,\n default: 'fixed',\n },\n scrollbarAlwaysOn: {\n type: Boolean,\n default: false,\n },\n}\nexport type {\n SummaryMethod,\n Table,\n TableProps,\n TableRefs,\n ColumnCls,\n ColumnStyle,\n TreeNode,\n RenderRowData,\n Sort,\n Filter,\n}\n"],"names":[],"mappings":";;;;AAAA,mBAAe;A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AC,MAAM,EAAE,MAAM,CAAC;AACjC,EAAE,SAAS,EAAE,MAAM;AACnB,EAAE,aAAa,EAAE,KAAK;AACtB,EAAE,gBAAgB,EAAE,OAAO;AAC3B,EAAE,WAAW,EAAE,MAAM;AACrB,EAAE,aAAa,EAAE,MAAM;AACvB,EAAE,UAAU,EAAE,QAAQ;AACtB,EAAE,qBAAqB,EAAE;AACzB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,MAAM;AACnB,MAAM,OAAO;AACb,QAAQ,WAAW,EAAE,aAAa;AAClC,QAAQ,QAAQ,EAAE,UAAU;AAC5B,OAAO,CAAC;AACR,KAAK;AACL,GAAG;AACH,EAAE,IAAI,EAAE,OAAO;AACf,EAAE,IAAI,EAAE,QAAQ;AAChB,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,OAAO,EAAE,CAAC;AACvB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,EAAE,iBAAiB,EAAE;AACrB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,CAAC;;;;"}
1
+ {"version":3,"file":"defaults.js","sources":["../../../../../../../packages/components/table/src/table/defaults.ts"],"sourcesContent":["import type {\n CSSProperties,\n ComponentInternalInstance,\n PropType,\n Ref,\n VNode,\n} from 'vue'\nimport type { Nullable } from '@element-plus/utils'\nimport type { Store } from '../store'\nimport type { TableColumnCtx } from '../table-column/defaults'\nimport type TableLayout from '../table-layout'\n\nexport type DefaultRow = any\n\ninterface TableRefs {\n headerWrapper: HTMLElement\n footerWrapper: HTMLElement\n fixedBodyWrapper: HTMLElement\n rightFixedBodyWrapper: HTMLElement\n bodyWrapper: HTMLElement\n [key: string]: any\n}\n\ninterface TableState {\n isGroup: Ref<boolean>\n resizeState: Ref<{\n width: any\n height: any\n }>\n doLayout: () => void\n debouncedUpdateLayout: () => void\n}\n\ntype HoverState<T> = Nullable<{\n cell: HTMLElement\n column: TableColumnCtx<T>\n row: T\n}>\n\ntype RIS<T> = { row: T; $index: number; store: Store<T>; expanded: boolean }\n\ntype RenderExpanded<T> = ({\n row,\n $index,\n store,\n expanded: boolean,\n}: RIS<T>) => VNode\n\ntype SummaryMethod<T> = (data: {\n columns: TableColumnCtx<T>[]\n data: T[]\n}) => string[]\n\ninterface Table<T> extends ComponentInternalInstance {\n $ready: boolean\n hoverState?: HoverState<T>\n renderExpanded: RenderExpanded<T>\n store: Store<T>\n layout: TableLayout<T>\n refs: TableRefs\n tableId: string\n state: TableState\n}\n\ntype ColumnCls<T> = string | ((data: { row: T; rowIndex: number }) => string)\ntype ColumnStyle<T> =\n | CSSProperties\n | ((data: { row: T; rowIndex: number }) => CSSProperties)\ntype CellCls<T> =\n | string\n | ((data: {\n row: T\n rowIndex: number\n column: TableColumnCtx<T>\n columnIndex: number\n }) => string)\ntype CellStyle<T> =\n | CSSProperties\n | ((data: {\n row: T\n rowIndex: number\n column: TableColumnCtx<T>\n columnIndex: number\n }) => CSSProperties)\ntype Layout = 'fixed' | 'auto'\ninterface TableProps<T> {\n data: T[]\n size?: string\n width?: string | number\n height?: string | number\n maxHeight?: string | number\n fit?: boolean\n stripe?: boolean\n border?: boolean\n rowKey?: string | ((row: T) => string)\n context?: Table<T>\n showHeader?: boolean\n showSummary?: boolean\n sumText?: string\n summaryMethod?: SummaryMethod<T>\n rowClassName?: ColumnCls<T>\n rowStyle?: ColumnStyle<T>\n cellClassName?: CellCls<T>\n cellStyle?: CellStyle<T>\n headerRowClassName?: ColumnCls<T>\n headerRowStyle?: ColumnStyle<T>\n headerCellClassName?: CellCls<T>\n headerCellStyle?: CellStyle<T>\n highlightCurrentRow?: boolean\n currentRowKey?: string | number\n emptyText?: string\n expandRowKeys?: any[]\n defaultExpandAll?: boolean\n defaultSort?: Sort\n tooltipEffect?: string\n spanMethod?: (data: {\n row: T\n rowIndex: number\n column: TableColumnCtx<T>\n columnIndex: number\n }) =>\n | number[]\n | {\n rowspan: number\n colspan: number\n }\n selectOnIndeterminate?: boolean\n indent?: number\n treeProps?: {\n hasChildren?: string\n children?: string\n }\n lazy?: boolean\n load?: (row: T, treeNode: TreeNode, resolve: (data: T[]) => void) => void\n className?: string\n style?: CSSProperties\n tableLayout: Layout\n}\n\ninterface Sort {\n prop: string\n order: 'ascending' | 'descending'\n init?: any\n silent?: any\n}\n\ninterface Filter<T> {\n column: TableColumnCtx<T>\n values: string[]\n silent: any\n}\n\ninterface TreeNode {\n expanded?: boolean\n loading?: boolean\n noLazyChildren?: boolean\n indent?: number\n level?: number\n display?: boolean\n}\n\ninterface RenderRowData<T> {\n store: Store<T>\n _self: Table<T>\n column: TableColumnCtx<T>\n row: T\n $index: number\n treeNode?: TreeNode\n expanded: boolean\n}\n\nexport default {\n data: {\n type: Array as PropType<DefaultRow[]>,\n default: () => {\n return []\n },\n },\n size: String,\n width: [String, Number],\n height: [String, Number],\n maxHeight: [String, Number],\n fit: {\n type: Boolean,\n default: true,\n },\n stripe: Boolean,\n border: Boolean,\n rowKey: [String, Function] as PropType<TableProps<DefaultRow>['rowKey']>,\n showHeader: {\n type: Boolean,\n default: true,\n },\n showSummary: Boolean,\n sumText: String,\n summaryMethod: Function as PropType<TableProps<DefaultRow>['summaryMethod']>,\n rowClassName: [String, Function] as PropType<\n TableProps<DefaultRow>['rowClassName']\n >,\n rowStyle: [Object, Function] as PropType<TableProps<DefaultRow>['rowStyle']>,\n cellClassName: [String, Function] as PropType<\n TableProps<DefaultRow>['cellClassName']\n >,\n cellStyle: [Object, Function] as PropType<\n TableProps<DefaultRow>['cellStyle']\n >,\n headerRowClassName: [String, Function] as PropType<\n TableProps<DefaultRow>['headerRowClassName']\n >,\n headerRowStyle: [Object, Function] as PropType<\n TableProps<DefaultRow>['headerRowStyle']\n >,\n headerCellClassName: [String, Function] as PropType<\n TableProps<DefaultRow>['headerCellClassName']\n >,\n headerCellStyle: [Object, Function] as PropType<\n TableProps<DefaultRow>['headerCellStyle']\n >,\n highlightCurrentRow: Boolean,\n currentRowKey: [String, Number],\n emptyText: String,\n expandRowKeys: Array as PropType<TableProps<DefaultRow>['expandRowKeys']>,\n defaultExpandAll: Boolean,\n defaultSort: Object as PropType<TableProps<DefaultRow>['defaultSort']>,\n tooltipEffect: String,\n spanMethod: Function as PropType<TableProps<DefaultRow>['spanMethod']>,\n selectOnIndeterminate: {\n type: Boolean,\n default: true,\n },\n indent: {\n type: Number,\n default: 16,\n },\n treeProps: {\n type: Object as PropType<TableProps<DefaultRow>['treeProps']>,\n default: () => {\n return {\n hasChildren: 'hasChildren',\n children: 'children',\n }\n },\n },\n lazy: Boolean,\n load: Function as PropType<TableProps<DefaultRow>['load']>,\n style: {\n type: Object as PropType<CSSProperties>,\n default: () => ({}),\n },\n className: {\n type: String,\n default: '',\n },\n tableLayout: {\n type: String as PropType<Layout>,\n default: 'fixed',\n },\n scrollbarAlwaysOn: {\n type: Boolean,\n default: false,\n },\n}\nexport type {\n SummaryMethod,\n Table,\n TableProps,\n TableRefs,\n ColumnCls,\n ColumnStyle,\n TreeNode,\n RenderRowData,\n Sort,\n Filter,\n}\n"],"names":[],"mappings":";;;;AAAA,mBAAe;AACf,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,KAAK;AACf,IAAI,OAAO,EAAE,MAAM;AACnB,MAAM,OAAO,EAAE,CAAC;AAChB,KAAK;AACL,GAAG;AACH,EAAE,IAAI,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M;AACrB,EAAE,aAAa,EAAE,MAAM;AACvB,EAAE,UAAU,EAAE,QAAQ;AACtB,EAAE,qBAAqB,EAAE;AACzB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,MAAM;AACnB,MAAM,OAAO;AACb,QAAQ,WAAW,EAAE,aAAa;AAClC,QAAQ,QAAQ,EAAE,UAAU;AAC5B,OAAO,CAAC;AACR,KAAK;AACL,GAAG;AACH,EAAE,IAAI,EAAE,OAAO;AACf,EAAE,IAAI,EAAE,QAAQ;AAChB,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,OAAO,EAAE,CAAC;AACvB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,EAAE,iBAAiB,EAAE;AACrB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,CAAC;;;;"}
@@ -112,10 +112,7 @@ function useStyle(props, layout, store, table) {
112
112
  };
113
113
  const hasScrollClass = (className) => {
114
114
  const { tableWrapper } = table.refs;
115
- if (tableWrapper && tableWrapper.classList.contains(className)) {
116
- return true;
117
- }
118
- return false;
115
+ return !!(tableWrapper && tableWrapper.classList.contains(className));
119
116
  };
120
117
  const syncPostion = function() {
121
118
  if (!table.refs.scrollBarRef)
@@ -1 +1 @@
1
- {"version":3,"file":"style-helper.js","sources":["../../../../../../../packages/components/table/src/table/style-helper.ts"],"sourcesContent":["import {\n computed,\n nextTick,\n onBeforeUnmount,\n onMounted,\n ref,\n unref,\n watch,\n watchEffect,\n} from 'vue'\nimport {\n addResizeListener,\n isNumber,\n isString,\n off,\n on,\n removeResizeListener,\n} from '@element-plus/utils'\nimport { useSize } from '@element-plus/hooks'\nimport { parseHeight } from '../util'\n\nimport type { ResizableElement } from '@element-plus/utils'\nimport type { Table, TableProps } from './defaults'\nimport type { Store } from '../store'\nimport type TableLayout from '../table-layout'\nimport type { TableColumnCtx } from '../table-column/defaults'\n\nfunction useStyle<T>(\n props: TableProps<T>,\n layout: TableLayout<T>,\n store: Store<T>,\n table: Table<T>\n) {\n const isHidden = ref(false)\n const renderExpanded = ref(null)\n const resizeProxyVisible = ref(false)\n const setDragVisible = (visible: boolean) => {\n resizeProxyVisible.value = visible\n }\n const resizeState = ref({\n width: null,\n height: null,\n })\n const isGroup = ref(false)\n const scrollbarViewStyle = {\n display: 'inline-block',\n verticalAlign: 'middle',\n }\n const tableWidth = ref()\n\n watchEffect(() => {\n layout.setHeight(props.height)\n })\n watchEffect(() => {\n layout.setMaxHeight(props.maxHeight)\n })\n watch(\n () => [props.currentRowKey, store.states.rowKey],\n ([currentRowKey, rowKey]) => {\n if (!unref(rowKey)) return\n store.setCurrentRowKey(`${currentRowKey}`)\n },\n {\n immediate: true,\n }\n )\n watch(\n () => props.data,\n (data) => {\n table.store.commit('setData', data)\n },\n {\n immediate: true,\n deep: true,\n }\n )\n watchEffect(() => {\n if (props.expandRowKeys) {\n store.setExpandRowKeysAdapter(props.expandRowKeys)\n }\n })\n\n const handleMouseLeave = () => {\n table.store.commit('setHoverRow', null)\n if (table.hoverState) table.hoverState = null\n }\n\n const handleHeaderFooterMousewheel = (event, data) => {\n const { pixelX, pixelY } = data\n if (Math.abs(pixelX) >= Math.abs(pixelY)) {\n table.refs.bodyWrapper.scrollLeft += data.pixelX / 5\n }\n }\n\n const shouldUpdateHeight = computed(() => {\n return (\n props.height ||\n props.maxHeight ||\n store.states.fixedColumns.value.length > 0 ||\n store.states.rightFixedColumns.value.length > 0\n )\n })\n\n const tableBodyStyles = computed(() => {\n return {\n width: layout.bodyWidth.value ? `${layout.bodyWidth.value}px` : '',\n }\n })\n\n const doLayout = () => {\n if (shouldUpdateHeight.value) {\n layout.updateElsHeight()\n }\n layout.updateColumnsWidth()\n requestAnimationFrame(syncPostion)\n }\n onMounted(async () => {\n await nextTick()\n store.updateColumns()\n bindEvents()\n requestAnimationFrame(doLayout)\n\n resizeState.value = {\n width: (tableWidth.value = table.vnode.el.offsetWidth),\n height: table.vnode.el.offsetHeight,\n }\n\n // init filters\n store.states.columns.value.forEach((column: TableColumnCtx<T>) => {\n if (column.filteredValue && column.filteredValue.length) {\n table.store.commit('filterChange', {\n column,\n values: column.filteredValue,\n silent: true,\n })\n }\n })\n table.$ready = true\n })\n const setScrollClassByEl = (el: HTMLElement, className: string) => {\n if (!el) return\n const classList = Array.from(el.classList).filter(\n (item) => !item.startsWith('is-scrolling-')\n )\n classList.push(layout.scrollX.value ? className : 'is-scrolling-none')\n el.className = classList.join(' ')\n }\n const setScrollClass = (className: string) => {\n const { tableWrapper } = table.refs\n setScrollClassByEl(tableWrapper, className)\n }\n const hasScrollClass = (className: string) => {\n const { tableWrapper } = table.refs\n if (tableWrapper && tableWrapper.classList.contains(className)) {\n return true\n }\n return false\n }\n const syncPostion = function () {\n if (!table.refs.scrollBarRef) return\n if (!layout.scrollX.value) {\n const scrollingNoneClass = 'is-scrolling-none'\n if (!hasScrollClass(scrollingNoneClass)) {\n setScrollClass(scrollingNoneClass)\n }\n return\n }\n const scrollContainer = table.refs.scrollBarRef.wrap$\n if (!scrollContainer) return\n const { scrollLeft, offsetWidth, scrollWidth } = scrollContainer\n const { headerWrapper, footerWrapper } = table.refs\n if (headerWrapper) headerWrapper.scrollLeft = scrollLeft\n if (footerWrapper) footerWrapper.scrollLeft = scrollLeft\n const maxScrollLeftPosition = scrollWidth - offsetWidth - 1\n if (scrollLeft >= maxScrollLeftPosition) {\n setScrollClass('is-scrolling-right')\n } else if (scrollLeft === 0) {\n setScrollClass('is-scrolling-left')\n } else {\n setScrollClass('is-scrolling-middle')\n }\n }\n\n const bindEvents = () => {\n if (!table.refs.scrollBarRef) return\n table.refs.scrollBarRef.wrap$?.addEventListener('scroll', syncPostion, {\n passive: true,\n })\n if (props.fit) {\n addResizeListener(table.vnode.el as ResizableElement, resizeListener)\n } else {\n on(window, 'resize', doLayout)\n }\n }\n onBeforeUnmount(() => {\n unbindEvents()\n })\n const unbindEvents = () => {\n table.refs.scrollBarRef.wrap$?.removeEventListener(\n 'scroll',\n syncPostion,\n true\n )\n if (props.fit) {\n removeResizeListener(table.vnode.el as ResizableElement, resizeListener)\n } else {\n off(window, 'resize', doLayout)\n }\n }\n const resizeListener = () => {\n if (!table.$ready) return\n let shouldUpdateLayout = false\n const el = table.vnode.el\n const { width: oldWidth, height: oldHeight } = resizeState.value\n\n const width = (tableWidth.value = el.offsetWidth)\n if (oldWidth !== width) {\n shouldUpdateLayout = true\n }\n\n const height = el.offsetHeight\n if ((props.height || shouldUpdateHeight.value) && oldHeight !== height) {\n shouldUpdateLayout = true\n }\n\n if (shouldUpdateLayout) {\n resizeState.value = {\n width,\n height,\n }\n doLayout()\n }\n }\n const tableSize = useSize()\n const bodyWidth = computed(() => {\n const { bodyWidth: bodyWidth_, scrollY, gutterWidth } = layout\n return bodyWidth_.value\n ? `${(bodyWidth_.value as number) - (scrollY.value ? gutterWidth : 0)}px`\n : ''\n })\n\n const tableLayout = computed(() => {\n if (props.maxHeight) return 'fixed'\n return props.tableLayout\n })\n\n function calcMaxHeight(\n maxHeight: string | number,\n footerHeight: number,\n headerHeight: number\n ) {\n const parsedMaxHeight = parseHeight(maxHeight)\n const tableHeaderHeight = props.showHeader ? headerHeight : 0\n if (parsedMaxHeight === null) return\n if (isString(parsedMaxHeight)) {\n return `calc(${parsedMaxHeight} - ${footerHeight}px - ${tableHeaderHeight}px)`\n }\n return parsedMaxHeight - footerHeight - tableHeaderHeight\n }\n\n const height = computed(() => {\n const headerHeight = layout.headerHeight.value || 0\n const bodyHeight = layout.bodyHeight.value\n const footerHeight = layout.footerHeight.value || 0\n if (props.height) {\n return bodyHeight ? bodyHeight : undefined\n } else if (props.maxHeight) {\n return calcMaxHeight(props.maxHeight, footerHeight, headerHeight)\n }\n return undefined\n })\n\n const bodyHeight = computed(() => {\n const headerHeight = layout.headerHeight.value || 0\n const bodyHeight = layout.bodyHeight.value\n const footerHeight = layout.footerHeight.value || 0\n if (props.height) {\n return {\n height: bodyHeight ? `${bodyHeight}px` : '',\n }\n } else if (props.maxHeight) {\n const maxHeight = calcMaxHeight(\n props.maxHeight,\n footerHeight,\n headerHeight\n )\n if (maxHeight !== null) {\n return {\n 'max-height': `${maxHeight}${isNumber(maxHeight) ? 'px' : ''}`,\n }\n }\n }\n return {}\n })\n const emptyBlockStyle = computed(() => {\n if (props.data && props.data.length) return null\n let height = '100%'\n if (layout.appendHeight.value) {\n height = `calc(100% - ${layout.appendHeight.value}px)`\n }\n return {\n width: tableWidth.value ? `${tableWidth.value}px` : '',\n height,\n }\n })\n /**\n * fix layout\n */\n const handleFixedMousewheel = (event, data) => {\n const bodyWrapper = table.refs.bodyWrapper\n if (Math.abs(data.spinY) > 0) {\n const currentScrollTop = bodyWrapper.scrollTop\n if (data.pixelY < 0 && currentScrollTop !== 0) {\n event.preventDefault()\n }\n if (\n data.pixelY > 0 &&\n bodyWrapper.scrollHeight - bodyWrapper.clientHeight > currentScrollTop\n ) {\n event.preventDefault()\n }\n bodyWrapper.scrollTop += Math.ceil(data.pixelY / 5)\n } else {\n bodyWrapper.scrollLeft += Math.ceil(data.pixelX / 5)\n }\n }\n const fixedHeight = computed(() => {\n if (props.maxHeight) {\n if (props.showSummary) {\n return {\n bottom: 0,\n }\n }\n return {\n bottom:\n layout.scrollX.value && props.data.length\n ? `${layout.gutterWidth}px`\n : '',\n }\n } else {\n if (props.showSummary) {\n return {\n height: layout.tableHeight.value\n ? `${layout.tableHeight.value}px`\n : '',\n }\n }\n return {\n height: layout.viewportHeight.value\n ? `${layout.viewportHeight.value}px`\n : '',\n }\n }\n })\n const fixedBodyHeight = computed(() => {\n if (props.height) {\n return {\n height: layout.fixedBodyHeight.value\n ? `${layout.fixedBodyHeight.value}px`\n : '',\n }\n } else if (props.maxHeight) {\n let maxHeight = parseHeight(props.maxHeight)\n if (typeof maxHeight === 'number') {\n maxHeight = layout.scrollX.value\n ? maxHeight - layout.gutterWidth\n : maxHeight\n if (props.showHeader) {\n maxHeight -= layout.headerHeight.value\n }\n maxHeight -= layout.footerHeight.value\n return {\n 'max-height': `${maxHeight}px`,\n }\n }\n }\n return {}\n })\n\n return {\n isHidden,\n renderExpanded,\n setDragVisible,\n isGroup,\n handleMouseLeave,\n handleHeaderFooterMousewheel,\n tableSize,\n bodyHeight,\n height,\n emptyBlockStyle,\n handleFixedMousewheel,\n fixedHeight,\n fixedBodyHeight,\n resizeProxyVisible,\n bodyWidth,\n resizeState,\n doLayout,\n tableBodyStyles,\n tableLayout,\n scrollbarViewStyle,\n }\n}\n\nexport default useStyle\n"],"names":["ref","watchEffect","watch","unref","computed","onMounted","nextTick","addResizeListener","on","onBeforeUnmount","removeResizeListener","off","useSize","parseHeight","isString","isNumber"],"mappings":";;;;;;;;;;;;;;AAoBA,SAAS,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE;AAC/C,EAAE,MAAM,QAAQ,GAAGA,OAAG,CAAC,KAAK,CAAC,CAAC;AAC9B,EAAE,MAAM,cAAc,GAAGA,OAAG,CAAC,IAAI,CAAC,CAAC;AACnC,EAAE,MAAM,kBAAkB,GAAGA,OAAG,CAAC,KAAK,CAAC,CAAC;AACxC,EAAE,MAAM,cAAc,GAAG,CAAC,OAAO,KAAK;AACtC,IAAI,kBAAkB,CAAC,KAAK,GAAG,OAAO,CAAC;AACvC,GAAG,CAAC;AACJ,EAAE,MAAM,WAAW,GAA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Ae;AACnB,IAAI,kBAAkB;AACtB,IAAI,SAAS;AACb,IAAI,WAAW;AACf,IAAI,QAAQ;AACZ,IAAI,eAAe;AACnB,IAAI,WAAW;AACf,IAAI,kBAAkB;AACtB,GAAG,CAAC;AACJ;;;;"}
1
+ {"version":3,"file":"style-helper.js","sources":["../../../../../../../packages/components/table/src/table/style-helper.ts"],"sourcesContent":["import {\n computed,\n nextTick,\n onBeforeUnmount,\n onMounted,\n ref,\n unref,\n watch,\n watchEffect,\n} from 'vue'\nimport {\n addResizeListener,\n isNumber,\n isString,\n off,\n on,\n removeResizeListener,\n} from '@element-plus/utils'\nimport { useSize } from '@element-plus/hooks'\nimport { parseHeight } from '../util'\n\nimport type { ResizableElement } from '@element-plus/utils'\nimport type { Table, TableProps } from './defaults'\nimport type { Store } from '../store'\nimport type TableLayout from '../table-layout'\nimport type { TableColumnCtx } from '../table-column/defaults'\n\nfunction useStyle<T>(\n props: TableProps<T>,\n layout: TableLayout<T>,\n store: Store<T>,\n table: Table<T>\n) {\n const isHidden = ref(false)\n const renderExpanded = ref(null)\n const resizeProxyVisible = ref(false)\n const setDragVisible = (visible: boolean) => {\n resizeProxyVisible.value = visible\n }\n const resizeState = ref({\n width: null,\n height: null,\n })\n const isGroup = ref(false)\n const scrollbarViewStyle = {\n display: 'inline-block',\n verticalAlign: 'middle',\n }\n const tableWidth = ref()\n\n watchEffect(() => {\n layout.setHeight(props.height)\n })\n watchEffect(() => {\n layout.setMaxHeight(props.maxHeight)\n })\n watch(\n () => [props.currentRowKey, store.states.rowKey],\n ([currentRowKey, rowKey]) => {\n if (!unref(rowKey)) return\n store.setCurrentRowKey(`${currentRowKey}`)\n },\n {\n immediate: true,\n }\n )\n watch(\n () => props.data,\n (data) => {\n table.store.commit('setData', data)\n },\n {\n immediate: true,\n deep: true,\n }\n )\n watchEffect(() => {\n if (props.expandRowKeys) {\n store.setExpandRowKeysAdapter(props.expandRowKeys)\n }\n })\n\n const handleMouseLeave = () => {\n table.store.commit('setHoverRow', null)\n if (table.hoverState) table.hoverState = null\n }\n\n const handleHeaderFooterMousewheel = (event, data) => {\n const { pixelX, pixelY } = data\n if (Math.abs(pixelX) >= Math.abs(pixelY)) {\n table.refs.bodyWrapper.scrollLeft += data.pixelX / 5\n }\n }\n\n const shouldUpdateHeight = computed(() => {\n return (\n props.height ||\n props.maxHeight ||\n store.states.fixedColumns.value.length > 0 ||\n store.states.rightFixedColumns.value.length > 0\n )\n })\n\n const tableBodyStyles = computed(() => {\n return {\n width: layout.bodyWidth.value ? `${layout.bodyWidth.value}px` : '',\n }\n })\n\n const doLayout = () => {\n if (shouldUpdateHeight.value) {\n layout.updateElsHeight()\n }\n layout.updateColumnsWidth()\n requestAnimationFrame(syncPostion)\n }\n onMounted(async () => {\n await nextTick()\n store.updateColumns()\n bindEvents()\n requestAnimationFrame(doLayout)\n\n resizeState.value = {\n width: (tableWidth.value = table.vnode.el.offsetWidth),\n height: table.vnode.el.offsetHeight,\n }\n\n // init filters\n store.states.columns.value.forEach((column: TableColumnCtx<T>) => {\n if (column.filteredValue && column.filteredValue.length) {\n table.store.commit('filterChange', {\n column,\n values: column.filteredValue,\n silent: true,\n })\n }\n })\n table.$ready = true\n })\n const setScrollClassByEl = (el: HTMLElement, className: string) => {\n if (!el) return\n const classList = Array.from(el.classList).filter(\n (item) => !item.startsWith('is-scrolling-')\n )\n classList.push(layout.scrollX.value ? className : 'is-scrolling-none')\n el.className = classList.join(' ')\n }\n const setScrollClass = (className: string) => {\n const { tableWrapper } = table.refs\n setScrollClassByEl(tableWrapper, className)\n }\n const hasScrollClass = (className: string) => {\n const { tableWrapper } = table.refs\n return !!(tableWrapper && tableWrapper.classList.contains(className))\n }\n const syncPostion = function () {\n if (!table.refs.scrollBarRef) return\n if (!layout.scrollX.value) {\n const scrollingNoneClass = 'is-scrolling-none'\n if (!hasScrollClass(scrollingNoneClass)) {\n setScrollClass(scrollingNoneClass)\n }\n return\n }\n const scrollContainer = table.refs.scrollBarRef.wrap$\n if (!scrollContainer) return\n const { scrollLeft, offsetWidth, scrollWidth } = scrollContainer\n const { headerWrapper, footerWrapper } = table.refs\n if (headerWrapper) headerWrapper.scrollLeft = scrollLeft\n if (footerWrapper) footerWrapper.scrollLeft = scrollLeft\n const maxScrollLeftPosition = scrollWidth - offsetWidth - 1\n if (scrollLeft >= maxScrollLeftPosition) {\n setScrollClass('is-scrolling-right')\n } else if (scrollLeft === 0) {\n setScrollClass('is-scrolling-left')\n } else {\n setScrollClass('is-scrolling-middle')\n }\n }\n\n const bindEvents = () => {\n if (!table.refs.scrollBarRef) return\n table.refs.scrollBarRef.wrap$?.addEventListener('scroll', syncPostion, {\n passive: true,\n })\n if (props.fit) {\n addResizeListener(table.vnode.el as ResizableElement, resizeListener)\n } else {\n on(window, 'resize', doLayout)\n }\n }\n onBeforeUnmount(() => {\n unbindEvents()\n })\n const unbindEvents = () => {\n table.refs.scrollBarRef.wrap$?.removeEventListener(\n 'scroll',\n syncPostion,\n true\n )\n if (props.fit) {\n removeResizeListener(table.vnode.el as ResizableElement, resizeListener)\n } else {\n off(window, 'resize', doLayout)\n }\n }\n const resizeListener = () => {\n if (!table.$ready) return\n let shouldUpdateLayout = false\n const el = table.vnode.el\n const { width: oldWidth, height: oldHeight } = resizeState.value\n\n const width = (tableWidth.value = el.offsetWidth)\n if (oldWidth !== width) {\n shouldUpdateLayout = true\n }\n\n const height = el.offsetHeight\n if ((props.height || shouldUpdateHeight.value) && oldHeight !== height) {\n shouldUpdateLayout = true\n }\n\n if (shouldUpdateLayout) {\n resizeState.value = {\n width,\n height,\n }\n doLayout()\n }\n }\n const tableSize = useSize()\n const bodyWidth = computed(() => {\n const { bodyWidth: bodyWidth_, scrollY, gutterWidth } = layout\n return bodyWidth_.value\n ? `${(bodyWidth_.value as number) - (scrollY.value ? gutterWidth : 0)}px`\n : ''\n })\n\n const tableLayout = computed(() => {\n if (props.maxHeight) return 'fixed'\n return props.tableLayout\n })\n\n function calcMaxHeight(\n maxHeight: string | number,\n footerHeight: number,\n headerHeight: number\n ) {\n const parsedMaxHeight = parseHeight(maxHeight)\n const tableHeaderHeight = props.showHeader ? headerHeight : 0\n if (parsedMaxHeight === null) return\n if (isString(parsedMaxHeight)) {\n return `calc(${parsedMaxHeight} - ${footerHeight}px - ${tableHeaderHeight}px)`\n }\n return parsedMaxHeight - footerHeight - tableHeaderHeight\n }\n\n const height = computed(() => {\n const headerHeight = layout.headerHeight.value || 0\n const bodyHeight = layout.bodyHeight.value\n const footerHeight = layout.footerHeight.value || 0\n if (props.height) {\n return bodyHeight ? bodyHeight : undefined\n } else if (props.maxHeight) {\n return calcMaxHeight(props.maxHeight, footerHeight, headerHeight)\n }\n return undefined\n })\n\n const bodyHeight = computed(() => {\n const headerHeight = layout.headerHeight.value || 0\n const bodyHeight = layout.bodyHeight.value\n const footerHeight = layout.footerHeight.value || 0\n if (props.height) {\n return {\n height: bodyHeight ? `${bodyHeight}px` : '',\n }\n } else if (props.maxHeight) {\n const maxHeight = calcMaxHeight(\n props.maxHeight,\n footerHeight,\n headerHeight\n )\n if (maxHeight !== null) {\n return {\n 'max-height': `${maxHeight}${isNumber(maxHeight) ? 'px' : ''}`,\n }\n }\n }\n return {}\n })\n const emptyBlockStyle = computed(() => {\n if (props.data && props.data.length) return null\n let height = '100%'\n if (layout.appendHeight.value) {\n height = `calc(100% - ${layout.appendHeight.value}px)`\n }\n return {\n width: tableWidth.value ? `${tableWidth.value}px` : '',\n height,\n }\n })\n /**\n * fix layout\n */\n const handleFixedMousewheel = (event, data) => {\n const bodyWrapper = table.refs.bodyWrapper\n if (Math.abs(data.spinY) > 0) {\n const currentScrollTop = bodyWrapper.scrollTop\n if (data.pixelY < 0 && currentScrollTop !== 0) {\n event.preventDefault()\n }\n if (\n data.pixelY > 0 &&\n bodyWrapper.scrollHeight - bodyWrapper.clientHeight > currentScrollTop\n ) {\n event.preventDefault()\n }\n bodyWrapper.scrollTop += Math.ceil(data.pixelY / 5)\n } else {\n bodyWrapper.scrollLeft += Math.ceil(data.pixelX / 5)\n }\n }\n const fixedHeight = computed(() => {\n if (props.maxHeight) {\n if (props.showSummary) {\n return {\n bottom: 0,\n }\n }\n return {\n bottom:\n layout.scrollX.value && props.data.length\n ? `${layout.gutterWidth}px`\n : '',\n }\n } else {\n if (props.showSummary) {\n return {\n height: layout.tableHeight.value\n ? `${layout.tableHeight.value}px`\n : '',\n }\n }\n return {\n height: layout.viewportHeight.value\n ? `${layout.viewportHeight.value}px`\n : '',\n }\n }\n })\n const fixedBodyHeight = computed(() => {\n if (props.height) {\n return {\n height: layout.fixedBodyHeight.value\n ? `${layout.fixedBodyHeight.value}px`\n : '',\n }\n } else if (props.maxHeight) {\n let maxHeight = parseHeight(props.maxHeight)\n if (typeof maxHeight === 'number') {\n maxHeight = layout.scrollX.value\n ? maxHeight - layout.gutterWidth\n : maxHeight\n if (props.showHeader) {\n maxHeight -= layout.headerHeight.value\n }\n maxHeight -= layout.footerHeight.value\n return {\n 'max-height': `${maxHeight}px`,\n }\n }\n }\n return {}\n })\n\n return {\n isHidden,\n renderExpanded,\n setDragVisible,\n isGroup,\n handleMouseLeave,\n handleHeaderFooterMousewheel,\n tableSize,\n bodyHeight,\n height,\n emptyBlockStyle,\n handleFixedMousewheel,\n fixedHeight,\n fixedBodyHeight,\n resizeProxyVisible,\n bodyWidth,\n resizeState,\n doLayout,\n tableBodyStyles,\n tableLayout,\n scrollbarViewStyle,\n }\n}\n\nexport default useStyle\n"],"names":["ref","watchEffect","watch","unref","computed","onMounted","nextTick","addResizeListener","on","onBeforeUnmount","removeResizeListener","off","useSize","parseHeight","isString","isNumber"],"mappings":";;;;;;;;;;;;;;AAoBA,SAAS,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE;AAC/C,EAAE,MAAM,QAAQ,GAAGA,OAAG,CAAC,KAAK,CAAC,CAAC;AAC9B,EAAE,MAAM,cAAc,GAAGA,OAAG,CAAC,IAAI,CAAC,CAAC;AACnC,EAAE,M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B;AACpB,IAAI,4BAA4B;AAChC,IAAI,SAAS;AACb,IAAI,UAAU;AACd,IAAI,MAAM;AACV,IAAI,eAAe;AACnB,IAAI,qBAAqB;AACzB,IAAI,WAAW;AACf,IAAI,eAAe;AACnB,IAAI,kBAAkB;AACtB,IAAI,SAAS;AACb,IAAI,WAAW;AACf,IAAI,QAAQ;AACZ,IAAI,eAAe;AACnB,IAAI,WAAW;AACf,IAAI,kBAAkB;AACtB,GAAG,CAAC;AACJ;;;;"}
@@ -198,7 +198,7 @@ declare const _default: import("vue").DefineComponent<{
198
198
  scrollTo: (options: number | ScrollToOptions, yCoord?: number | undefined) => void;
199
199
  setScrollLeft: (left?: number | undefined) => void;
200
200
  setScrollTop: (top?: number | undefined) => void;
201
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select-all" | "expand-change" | "current-change" | "select" | "selection-change" | "cell-mouse-enter" | "cell-mouse-leave" | "cell-contextmenu" | "cell-click" | "cell-dblclick" | "row-click" | "row-contextmenu" | "row-dblclick" | "header-click" | "header-contextmenu" | "sort-change" | "filter-change" | "header-dragend")[], "select" | "select-all" | "expand-change" | "current-change" | "selection-change" | "cell-mouse-enter" | "cell-mouse-leave" | "cell-contextmenu" | "cell-click" | "cell-dblclick" | "row-click" | "row-contextmenu" | "row-dblclick" | "header-click" | "header-contextmenu" | "sort-change" | "filter-change" | "header-dragend", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
201
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "select-all" | "expand-change" | "current-change" | "selection-change" | "cell-mouse-enter" | "cell-mouse-leave" | "cell-contextmenu" | "cell-click" | "cell-dblclick" | "row-click" | "row-contextmenu" | "row-dblclick" | "header-click" | "header-contextmenu" | "sort-change" | "filter-change" | "header-dragend")[], "select" | "select-all" | "expand-change" | "current-change" | "selection-change" | "cell-mouse-enter" | "cell-mouse-leave" | "cell-contextmenu" | "cell-click" | "cell-dblclick" | "row-click" | "row-contextmenu" | "row-dblclick" | "header-click" | "header-contextmenu" | "sort-change" | "filter-change" | "header-dragend", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
202
202
  data: {
203
203
  type: import("vue").PropType<any[]>;
204
204
  default: () => never[];
@@ -0,0 +1,4 @@
1
+ export { Alignment, FixedDir, SortOrder } from './src/constants';
2
+ export { default as TableV2 } from './src/table-v2';
3
+ export type { Column, Columns, SortBy } from './src/types';
4
+ export * from './src/table';
@@ -1,3 +1,16 @@
1
1
  'use strict';
2
2
 
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var constants = require('./src/constants.js');
6
+ var tableV2 = require('./src/table-v2.js');
7
+ var table = require('./src/table.js');
8
+
9
+
10
+
11
+ exports.Alignment = constants.Alignment;
12
+ exports.FixedDir = constants.FixedDir;
13
+ exports.SortOrder = constants.SortOrder;
14
+ exports.TableV2 = tableV2["default"];
15
+ exports.tableV2Props = table.tableV2Props;
3
16
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
@@ -1,10 +1,10 @@
1
- import type { ExtractPropTypes } from 'vue';
2
- import type { Column } from './types';
1
+ import type { ExtractPropTypes, StyleValue } from 'vue';
3
2
  export declare const tableV2CellProps: {
4
3
  readonly class: StringConstructor;
5
4
  readonly cellData: import("element-pe/es/utils").BuildPropReturn<import("element-pe/es/utils").PropWrapper<any>, unknown, unknown, unknown, unknown>;
6
- readonly column: import("element-pe/es/utils").BuildPropReturn<import("element-pe/es/utils").PropWrapper<Column<any>>, unknown, unknown, unknown, unknown>;
5
+ readonly column: import("element-pe/es/utils").BuildPropReturn<import("element-pe/es/utils").PropWrapper<import("./common").AnyColumn>, unknown, unknown, unknown, unknown>;
7
6
  readonly columnIndex: NumberConstructor;
7
+ readonly style: import("element-pe/es/utils").BuildPropReturn<import("element-pe/es/utils").PropWrapper<StyleValue>, unknown, unknown, unknown, unknown>;
8
8
  readonly rowData: import("element-pe/es/utils").BuildPropReturn<import("element-pe/es/utils").PropWrapper<any>, unknown, unknown, unknown, unknown>;
9
9
  readonly rowIndex: NumberConstructor;
10
10
  };
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  require('../../../utils/index.js');
6
+ var common = require('./common.js');
6
7
  var props = require('../../../utils/vue/props.js');
7
8
 
8
9
  const tableV2CellProps = props.buildProps({
@@ -10,10 +11,11 @@ const tableV2CellProps = props.buildProps({
10
11
  cellData: {
11
12
  type: props.definePropType([String, Boolean, Number, Object])
12
13
  },
13
- column: {
14
- type: props.definePropType(Object)
15
- },
14
+ column: common.column,
16
15
  columnIndex: Number,
16
+ style: {
17
+ type: props.definePropType([String, Array, Object])
18
+ },
17
19
  rowData: {
18
20
  type: props.definePropType(Object)
19
21
  },
@@ -1 +1 @@
1
- {"version":3,"file":"cell.js","sources":["../../../../../../packages/components/table-v2/src/cell.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type { Column } from './types'\n\nexport const tableV2CellProps = buildProps({\n class: String,\n cellData: {\n type: definePropType<any>([String, Boolean, Number, Object]),\n },\n column: {\n type: definePropType<Column<any>>(Object),\n },\n columnIndex: Number,\n rowData: {\n type: definePropType<any>(Object),\n },\n rowIndex: Number,\n} as const)\n\nexport type TableV2CellProps = ExtractPropTypes<typeof tableV2CellProps>\n"],"names":["buildProps","definePropType"],"mappings":";;;;;;;AACY,MAAC,gBAAgB,GAAGA,gBAAU,CAAC;AAC3C,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAEC,oBAAc,CAAC,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAC3D,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAEA,oBAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,WAAW,EAAE,MAAM;AACrB,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAEA,oBAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,QAAQ,EAAE,MAAM;AAClB,CAAC;;;;"}
1
+ {"version":3,"file":"cell.js","sources":["../../../../../../packages/components/table-v2/src/cell.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport { column } from './common'\n\nimport type { ExtractPropTypes, StyleValue } from 'vue'\n\nexport const tableV2CellProps = buildProps({\n class: String,\n cellData: {\n type: definePropType<any>([String, Boolean, Number, Object]),\n },\n column,\n columnIndex: Number,\n style: {\n type: definePropType<StyleValue>([String, Array, Object]),\n },\n rowData: {\n type: definePropType<any>(Object),\n },\n rowIndex: Number,\n} as const)\n\nexport type TableV2CellProps = ExtractPropTypes<typeof tableV2CellProps>\n"],"names":["buildProps","definePropType","column"],"mappings":";;;;;;;;AAEY,MAAC,gBAAgB,GAAGA,gBAAU,CAAC;AAC3C,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAEC,oBAAc,CAAC,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAC3D,GAAG;AACH,UAAEC,aAAM;AACR,EAAE,WAAW,EAAE,MAAM;AACrB,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAED,oBAAc,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;AACjD,GAAG;AACH,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAEA,oBAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,QAAQ,EAAE,MAAM;AAClB,CAAC;;;;"}
@@ -1,10 +1,9 @@
1
- import type { CSSProperties, ExtractPropTypes } from 'vue';
2
- import type { Alignment, CellRenderer, DataGetter, FixedDirection, HeaderRenderer } from './types';
1
+ import type { CSSProperties, Component, ExtractPropTypes } from 'vue';
2
+ import type { Alignment, CellRenderer, CellRendererParams, HeaderCellRenderer, HeaderCellRendererParams } from './types';
3
3
  export declare const tableV2ColumnProps: {
4
4
  readonly align: import("element-pe/es/utils").BuildPropReturn<import("element-pe/es/utils").PropWrapper<Alignment>, "left", unknown, unknown, unknown>;
5
5
  readonly class: StringConstructor;
6
- readonly dataKey: StringConstructor;
7
- readonly fixed: import("element-pe/es/utils").BuildPropReturn<import("element-pe/es/utils").PropWrapper<boolean | FixedDirection>, false, unknown, unknown, unknown>;
6
+ readonly fixed: import("element-pe/es/utils").BuildPropReturn<import("element-pe/es/utils").PropWrapper<boolean | import("./constants").FixedDir>, false, unknown, unknown, unknown>;
8
7
  readonly headerClass: StringConstructor;
9
8
  readonly hidden: BooleanConstructor;
10
9
  readonly resizable: BooleanConstructor;
@@ -14,8 +13,7 @@ export declare const tableV2ColumnProps: {
14
13
  readonly maxWidth: import("element-pe/es/utils").BuildPropReturn<NumberConstructor, undefined, unknown, unknown, unknown>;
15
14
  readonly minWidth: import("element-pe/es/utils").BuildPropReturn<NumberConstructor, undefined, unknown, unknown, unknown>;
16
15
  readonly width: import("element-pe/es/utils").BuildPropReturn<NumberConstructor, unknown, true, unknown, unknown>;
17
- readonly cellRenderer: import("element-pe/es/utils").BuildPropReturn<import("element-pe/es/utils").PropWrapper<CellRenderer<any>>, unknown, unknown, unknown, unknown>;
18
- readonly dataGetter: import("element-pe/es/utils").BuildPropReturn<import("element-pe/es/utils").PropWrapper<DataGetter<any>>, unknown, unknown, unknown, unknown>;
19
- readonly headerRenderer: import("element-pe/es/utils").BuildPropReturn<import("element-pe/es/utils").PropWrapper<HeaderRenderer<any>>, unknown, unknown, unknown, unknown>;
16
+ readonly cellRenderer: import("element-pe/es/utils").BuildPropReturn<import("element-pe/es/utils").PropWrapper<CellRenderer<any> | Component<CellRendererParams<any>, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>, unknown, unknown, unknown, unknown>;
17
+ readonly headerRenderer: import("element-pe/es/utils").BuildPropReturn<import("element-pe/es/utils").PropWrapper<HeaderCellRenderer<any> | Component<HeaderCellRendererParams<any>, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>, unknown, unknown, unknown, unknown>;
20
18
  };
21
19
  export declare type TableV2ColumnProps = ExtractPropTypes<typeof tableV2ColumnProps>;
@@ -15,7 +15,6 @@ const tableV2ColumnProps = props.buildProps({
15
15
  default: "left"
16
16
  },
17
17
  class: String,
18
- dataKey: String,
19
18
  fixed: {
20
19
  type: props.definePropType([String, Boolean]),
21
20
  default: false
@@ -35,13 +34,10 @@ const tableV2ColumnProps = props.buildProps({
35
34
  required: true
36
35
  },
37
36
  cellRenderer: {
38
- type: props.definePropType(Function)
39
- },
40
- dataGetter: {
41
- type: props.definePropType(Function)
37
+ type: props.definePropType([Function, Object])
42
38
  },
43
39
  headerRenderer: {
44
- type: props.definePropType(Function)
40
+ type: props.definePropType([Function, Object])
45
41
  }
46
42
  });
47
43
 
@@ -1 +1 @@
1
- {"version":3,"file":"column.js","sources":["../../../../../../packages/components/table-v2/src/column.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\n\nimport type { CSSProperties, ExtractPropTypes } from 'vue'\nimport type {\n Alignment,\n CellRenderer,\n DataGetter,\n FixedDirection,\n HeaderRenderer,\n} from './types'\n\nconst widthType = {\n type: Number,\n default: undefined,\n} as const\n\nexport const tableV2ColumnProps = buildProps({\n /**\n * Attributes\n */\n align: {\n type: definePropType<Alignment>(String),\n default: 'left',\n },\n class: String,\n dataKey: String,\n fixed: {\n type: definePropType<boolean | FixedDirection>([String, Boolean]),\n default: false,\n },\n headerClass: String,\n hidden: Boolean,\n resizable: Boolean,\n style: {\n type: definePropType<CSSProperties>(Object),\n },\n sortable: Boolean,\n title: String,\n\n maxWidth: widthType,\n minWidth: widthType,\n width: {\n type: Number,\n required: true,\n },\n\n // getters & renderers\n cellRenderer: {\n type: definePropType<CellRenderer<any>>(Function),\n },\n dataGetter: {\n type: definePropType<DataGetter<any>>(Function),\n },\n headerRenderer: {\n type: definePropType<HeaderRenderer<any>>(Function),\n },\n} as const)\n\nexport type TableV2ColumnProps = ExtractPropTypes<typeof tableV2ColumnProps>\n"],"names":["buildProps","definePropType"],"mappings":";;;;;;;AACA,MAAM,SAAS,GAAG;AAClB,EAAE,IAAI,EAAE,MAAM;AACd,EAAE,OAAO,EAAE,KAAK,CAAC;AACjB,CAAC,CAAC;AACU,MAAC,kBAAkB,GAAGA,gBAAU,CAAC;AAC7C,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAEC,oBAAc,CAAC,MAAM,CAAC;AAChC,IAAI,OAAO,EAAE,MAAM;AACnB,GAAG;AACH,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,OAAO,EAAE,MAAM;AACjB,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAEA,oBAAc,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAC3C,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,WAAW,EAAE,MAAM;AACrB,EAAE,MAAM,EAAE,OAAO;AACjB,EAAE,SAAS,EAAE,OAAO;AACpB,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAEA,oBAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,QAAQ,EAAE,SAAS;AACrB,EAAE,QAAQ,EAAE,SAAS;AACrB,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,QAAQ,EAAE,IAAI;AAClB,GAAG;AACH,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAEA,oBAAc,CAAC,QAAQ,CAAC;AAClC,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAEA,oBAAc,CAAC,QAAQ,CAAC;AAClC,GAAG;AACH,EAAE,cAAc,EAAE;AAClB,IAAI,IAAI,EAAEA,oBAAc,CAAC,QAAQ,CAAC;AAClC,GAAG;AACH,CAAC;;;;"}
1
+ {"version":3,"file":"column.js","sources":["../../../../../../packages/components/table-v2/src/column.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\n\nimport type { CSSProperties, Component, ExtractPropTypes } from 'vue'\nimport type {\n Alignment,\n CellRenderer,\n CellRendererParams,\n FixedDirection,\n HeaderCellRenderer,\n HeaderCellRendererParams,\n} from './types'\n\nconst widthType = {\n type: Number,\n default: undefined,\n} as const\n\nexport const tableV2ColumnProps = buildProps({\n /**\n * Attributes\n */\n align: {\n type: definePropType<Alignment>(String),\n default: 'left',\n },\n class: String,\n fixed: {\n type: definePropType<boolean | FixedDirection>([String, Boolean]),\n default: false,\n },\n headerClass: String,\n hidden: Boolean,\n resizable: Boolean,\n style: {\n type: definePropType<CSSProperties>(Object),\n },\n sortable: Boolean,\n title: String,\n\n maxWidth: widthType,\n minWidth: widthType,\n width: {\n type: Number,\n required: true,\n },\n\n // getters & renderers\n cellRenderer: {\n type: definePropType<\n CellRenderer<any> | Component<CellRendererParams<any>>\n >([Function, Object]),\n },\n\n headerRenderer: {\n type: definePropType<\n HeaderCellRenderer<any> | Component<HeaderCellRendererParams<any>>\n >([Function, Object]),\n },\n} as const)\n\nexport type TableV2ColumnProps = ExtractPropTypes<typeof tableV2ColumnProps>\n"],"names":["buildProps","definePropType"],"mappings":";;;;;;;AACA,MAAM,SAAS,GAAG;AAClB,EAAE,IAAI,EAAE,MAAM;AACd,EAAE,OAAO,EAAE,KAAK,CAAC;AACjB,CAAC,CAAC;AACU,MAAC,kBAAkB,GAAGA,gBAAU,CAAC;AAC7C,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAEC,oBAAc,CAAC,MAAM,CAAC;AAChC,IAAI,OAAO,EAAE,MAAM;AACnB,GAAG;AACH,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAEA,oBAAc,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAC3C,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,WAAW,EAAE,MAAM;AACrB,EAAE,MAAM,EAAE,OAAO;AACjB,EAAE,SAAS,EAAE,OAAO;AACpB,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAEA,oBAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,QAAQ,EAAE,SAAS;AACrB,EAAE,QAAQ,EAAE,SAAS;AACrB,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,QAAQ,EAAE,IAAI;AAClB,GAAG;AACH,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAEA,oBAAc,CAAC,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;AAC5C,GAAG;AACH,EAAE,cAAc,EAAE;AAClB,IAAI,IAAI,EAAEA,oBAAc,CAAC,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;AAC5C,GAAG;AACH,CAAC;;;;"}
@@ -1,6 +1,6 @@
1
1
  import type { CSSProperties } from 'vue';
2
2
  import type { Column, KeyType } from './types';
3
- declare type AnyColumn = Column<any>;
3
+ export declare type AnyColumn = Column<any>;
4
4
  /**
5
5
  * @Note even though we can use `string[] | string` as the type but for
6
6
  * convenience here we only use `string` as the acceptable value here.
@@ -40,4 +40,3 @@ export declare const rowKey: {
40
40
  export declare const styleType: {
41
41
  type: import("element-pe/es/utils").PropWrapper<CSSProperties>;
42
42
  };
43
- export {};
@@ -1 +1 @@
1
- {"version":3,"file":"common.js","sources":["../../../../../../packages/components/table-v2/src/common.ts"],"sourcesContent":["import { definePropType, mutable } from '@element-plus/utils'\n\nimport type { CSSProperties } from 'vue'\nimport type { Column, KeyType } from './types'\n\ntype AnyColumn = Column<any>\n\n/**\n * @Note even though we can use `string[] | string` as the type but for\n * convenience here we only use `string` as the acceptable value here.\n */\nexport const classType = String\n\nexport const columns = {\n type: definePropType<AnyColumn[]>(Array),\n required: true,\n} as const\n\nexport const column = {\n type: definePropType<AnyColumn>(Object),\n} as const\n\nexport const fixedDataType = {\n type: definePropType<any[]>(Array),\n} as const\n\nexport const dataType = {\n ...fixedDataType,\n required: true,\n} as const\n\nexport const expandColumnKey = String\n\nexport const expandKeys = {\n type: definePropType<KeyType[]>(Array),\n default: () => mutable([]),\n} as const\n\nexport const requiredNumber = {\n type: Number,\n required: true,\n} as const\n\nexport const rowKey = {\n type: definePropType<KeyType>([String, Number, Symbol]),\n default: 'id',\n} as const\n\n/**\n * @note even though we can use `StyleValue` but that would be difficult for us to mapping them,\n * so we only use `CSSProperties` as the acceptable value here.\n */\nexport const styleType = {\n type: definePropType<CSSProperties>(Object),\n}\n"],"names":["definePropType","mutable"],"mappings":";;;;;;;;AACY,MAAC,SAAS,GAAG,OAAO;AACpB,MAAC,OAAO,GAAG;AACvB,EAAE,IAAI,EAAEA,oBAAc,CAAC,KAAK,CAAC;AAC7B,EAAE,QAAQ,EAAE,IAAI;AAChB,EAAE;AACU,MAAC,MAAM,GAAG;AACtB,EAAE,IAAI,EAAEA,oBAAc,CAAC,MAAM,CAAC;AAC9B,EAAE;AACU,MAAC,aAAa,GAAG;AAC7B,EAAE,IAAI,EAAEA,oBAAc,CAAC,KAAK,CAAC;AAC7B,EAAE;AACU,MAAC,QAAQ,GAAG;AACxB,EAAE,GAAG,aAAa;AAClB,EAAE,QAAQ,EAAE,IAAI;AAChB,EAAE;AACU,MAAC,eAAe,GAAG,OAAO;AAC1B,MAAC,UAAU,GAAG;AAC1B,EAAE,IAAI,EAAEA,oBAAc,CAAC,KAAK,CAAC;AAC7B,EAAE,OAAO,EAAE,MAAMC,kBAAO,CAAC,EAAE,CAAC;AAC5B,EAAE;AACU,MAAC,cAAc,GAAG;AAC9B,EAAE,IAAI,EAAE,MAAM;AACd,EAAE,QAAQ,EAAE,IAAI;AAChB,EAAE;AACU,MAAC,MAAM,GAAG;AACtB,EAAE,IAAI,EAAED,oBAAc,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAChD,EAAE,OAAO,EAAE,IAAI;AACf,EAAE;AACU,MAAC,SAAS,GAAG;AACzB,EAAE,IAAI,EAAEA,oBAAc,CAAC,MAAM,CAAC;AAC9B;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"common.js","sources":["../../../../../../packages/components/table-v2/src/common.ts"],"sourcesContent":["import { definePropType, mutable } from '@element-plus/utils'\n\nimport type { CSSProperties } from 'vue'\nimport type { Column, KeyType } from './types'\n\nexport type AnyColumn = Column<any>\n\n/**\n * @Note even though we can use `string[] | string` as the type but for\n * convenience here we only use `string` as the acceptable value here.\n */\nexport const classType = String\n\nexport const columns = {\n type: definePropType<AnyColumn[]>(Array),\n required: true,\n} as const\n\nexport const column = {\n type: definePropType<AnyColumn>(Object),\n} as const\n\nexport const fixedDataType = {\n type: definePropType<any[]>(Array),\n} as const\n\nexport const dataType = {\n ...fixedDataType,\n required: true,\n} as const\n\nexport const expandColumnKey = String\n\nexport const expandKeys = {\n type: definePropType<KeyType[]>(Array),\n default: () => mutable([]),\n} as const\n\nexport const requiredNumber = {\n type: Number,\n required: true,\n} as const\n\nexport const rowKey = {\n type: definePropType<KeyType>([String, Number, Symbol]),\n default: 'id',\n} as const\n\n/**\n * @note even though we can use `StyleValue` but that would be difficult for us to mapping them,\n * so we only use `CSSProperties` as the acceptable value here.\n */\nexport const styleType = {\n type: definePropType<CSSProperties>(Object),\n}\n"],"names":["definePropType","mutable"],"mappings":";;;;;;;;AACY,MAAC,SAAS,GAAG,OAAO;AACpB,MAAC,OAAO,GAAG;AACvB,EAAE,IAAI,EAAEA,oBAAc,CAAC,KAAK,CAAC;AAC7B,EAAE,QAAQ,EAAE,IAAI;AAChB,EAAE;AACU,MAAC,MAAM,GAAG;AACtB,EAAE,IAAI,EAAEA,oBAAc,CAAC,MAAM,CAAC;AAC9B,EAAE;AACU,MAAC,aAAa,GAAG;AAC7B,EAAE,IAAI,EAAEA,oBAAc,CAAC,KAAK,CAAC;AAC7B,EAAE;AACU,MAAC,QAAQ,GAAG;AACxB,EAAE,GAAG,aAAa;AAClB,EAAE,QAAQ,EAAE,IAAI;AAChB,EAAE;AACU,MAAC,eAAe,GAAG,OAAO;AAC1B,MAAC,UAAU,GAAG;AAC1B,EAAE,IAAI,EAAEA,oBAAc,CAAC,KAAK,CAAC;AAC7B,EAAE,OAAO,EAAE,MAAMC,kBAAO,CAAC,EAAE,CAAC;AAC5B,EAAE;AACU,MAAC,cAAc,GAAG;AAC9B,EAAE,IAAI,EAAE,MAAM;AACd,EAAE,QAAQ,EAAE,IAAI;AAChB,EAAE;AACU,MAAC,MAAM,GAAG;AACtB,EAAE,IAAI,EAAED,oBAAc,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAChD,EAAE,OAAO,EAAE,IAAI;AACf,EAAE;AACU,MAAC,SAAS,GAAG;AACzB,EAAE,IAAI,EAAEA,oBAAc,CAAC,MAAM,CAAC;AAC9B;;;;;;;;;;;;;"}
@@ -0,0 +1,4 @@
1
+ import type { FunctionalComponent } from 'vue';
2
+ import type { TableV2CellProps } from '../cell';
3
+ declare const TableV2Cell: FunctionalComponent<TableV2CellProps>;
4
+ export default TableV2Cell;
@@ -0,0 +1,26 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var vue = require('vue');
6
+
7
+ const TableV2Cell = (props, {
8
+ slots
9
+ }) => {
10
+ var _a;
11
+ const {
12
+ cellData,
13
+ style
14
+ } = props;
15
+ const displayText = ((_a = cellData == null ? void 0 : cellData.toString) == null ? void 0 : _a.call(cellData)) || "";
16
+ return vue.createVNode("div", {
17
+ "class": props.class,
18
+ "title": displayText,
19
+ "style": style
20
+ }, [slots.default ? slots.default(props) : displayText]);
21
+ };
22
+ TableV2Cell.displayName = "ElTableV2Cell";
23
+ TableV2Cell.inheritAttrs = false;
24
+
25
+ exports["default"] = TableV2Cell;
26
+ //# sourceMappingURL=cell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cell.js","sources":["../../../../../../../packages/components/table-v2/src/components/cell.tsx"],"sourcesContent":["import type { FunctionalComponent } from 'vue'\nimport type { TableV2CellProps } from '../cell'\n\nconst TableV2Cell: FunctionalComponent<TableV2CellProps> = (\n props: TableV2CellProps,\n { slots }\n) => {\n const { cellData, style } = props\n const displayText = cellData?.toString?.() || ''\n return (\n <div class={props.class} title={displayText} style={style}>\n {slots.default ? slots.default(props) : displayText}\n </div>\n )\n}\n\nTableV2Cell.displayName = 'ElTableV2Cell'\nTableV2Cell.inheritAttrs = false\n\nexport default TableV2Cell\n"],"names":["slots","cellData","style","props","displayText","toString","_createVNode","class","default","TableV2Cell","displayName"],"mappings":";;;;;;;AAGA,EAAA,KAAwD;AAEpDA,CAAAA,KAAAA;AAAF,EACG,IAAA,EAAA,CAAA;AACH,EAAM,MAAA;AAAEC,IAAAA,QAAF;AAAYC,IAAAA,KAAAA;AAAZ,GAAA,GAAsBC,KAA5B,CAAA;AACA,EAAA,MAAMC,WAAW,GAAGH,CAAAA,CAAAA,EAAAA,GAAAA,QAAUI,WAAgB,KAA9C,CAAA,GAAA,QAAA,CAAA,QAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,IAAA,CAAA,QAAA,CAAA,KAAA,EAAA,CAAA;AACA,EAAA,OAAAC,eAAA,CAAA,KAAA,EAAA;AAAA,IACcH,OAAAA,EAAAA,KAAK,CAACI,KADpB;AAAA,IAAA,OAAA,EACkCH,WADlC;AAAA,IACsDF,OAAAA,EAAAA,KAAAA;AADtD,GAEKF,EAAAA,CAAAA,KAAK,CAACQ,OAAN,GAAgBR,KAAK,CAACQ,OAAN,CAAcL,KAAd,CAAhB,GAAuCC,WAF5C,CAAA,CAAA,CAAA;AAKD,EAXD;;AAaAK,WAAW,CAACC,YAAZ,GAAA,KAAA;;;;"}
@@ -0,0 +1,11 @@
1
+ import type { StyleValue } from 'vue';
2
+ import type { TableV2RowCellRenderParam } from './row';
3
+ declare const ExpandIcon: (props: TableV2RowCellRenderParam['expandIconProps'] & {
4
+ class?: string | string[];
5
+ style: StyleValue;
6
+ size: number;
7
+ expanded: boolean;
8
+ expandable: boolean;
9
+ }) => JSX.Element;
10
+ export default ExpandIcon;
11
+ export declare type ExpandIconInstance = ReturnType<typeof ExpandIcon>;
@@ -0,0 +1,30 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var vue = require('vue');
6
+ var index = require('../../../icon/index.js');
7
+ var iconsVue = require('@element-plus/icons-vue');
8
+
9
+ const ExpandIcon = (props) => {
10
+ const {
11
+ expanded,
12
+ expandable,
13
+ onExpand,
14
+ style,
15
+ size
16
+ } = props;
17
+ const expandIconProps = {
18
+ onClick: expandable ? () => onExpand(!expanded) : void 0,
19
+ class: props.class
20
+ };
21
+ return vue.createVNode(index.ElIcon, vue.mergeProps(expandIconProps, {
22
+ "size": size,
23
+ "style": style
24
+ }), {
25
+ default: () => [vue.createVNode(iconsVue.ArrowRight, null, null)]
26
+ });
27
+ };
28
+
29
+ exports["default"] = ExpandIcon;
30
+ //# sourceMappingURL=expand-icon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"expand-icon.js","sources":["../../../../../../../packages/components/table-v2/src/components/expand-icon.tsx"],"sourcesContent":["import ElIcon from '@element-plus/components/icon'\nimport { ArrowRight } from '@element-plus/icons-vue'\n\nimport type { StyleValue } from 'vue'\nimport type { TableV2RowCellRenderParam } from './row'\n\nconst ExpandIcon = (\n props: TableV2RowCellRenderParam['expandIconProps'] & {\n class?: string | string[]\n style: StyleValue\n size: number\n expanded: boolean\n expandable: boolean\n }\n) => {\n const { expanded, expandable, onExpand, style, size } = props\n\n const expandIconProps = {\n onClick: expandable ? () => onExpand(!expanded) : undefined,\n class: props.class,\n } as any\n\n return (\n <ElIcon {...expandIconProps} size={size} style={style}>\n <ArrowRight />\n </ElIcon>\n )\n}\n\nexport default ExpandIcon\n\nexport type ExpandIconInstance = ReturnType<typeof ExpandIcon>\n"],"names":["ExpandIcon","expanded","expandable","onExpand","style","size","onClick","class","_createVNode","ElIcon","_mergeProps","ArrowRight"],"mappings":";;;;;;;;;AAMA,EAAMA,MAAAA;AASJ,IAAM,QAAA;AAAEC,IAAAA,UAAF;AAAYC,IAAAA,QAAZ;AAAwBC,IAAAA,KAAxB;AAAkCC,IAAAA,IAAlC;AAAyCC,GAAAA,GAAAA,KAAAA,CAAAA;AAAzC,EAAA,MAAN,eAAA,GAAA;AAEA,IAAA,mBAAqB,GAAG,MAAA,QAAA,CAAA,CAAA,QAAA,CAAA,GAAA,KAAA,CAAA;AACtBC,IAAAA,KAAAA,EAAO,KAAEJ,CAAAA,KAAAA;AACTK,GAAAA,CAAAA;AAFsB,EAAxB,OAAAC,eAAA,CAAAC,YAAA,EAAAC,cAAA,CAAA,eAAA,EAAA;AAKA,IAAA,MAAA,EAAA,IAAA;AAAA,IAAA,OAAA,EAAA,KAAA;AAAA,GACkDN,CAAAA,EAAAA;AADlD,IAAA,OAAA,EAAA,MAAA,CAAAI,eAAA,CAAAG,mBAAA,EAAA,IAAA,EAAA,IAAA,CAAA,CAAA;AAAA,GAAA,CAAA,CAAA;AAAA;;;;"}
@@ -0,0 +1,4 @@
1
+ import type { FunctionalComponent } from 'vue';
2
+ import type { TableV2HeaderCell } from '../header-cell';
3
+ declare const HeaderCell: FunctionalComponent<TableV2HeaderCell>;
4
+ export default HeaderCell;
@@ -0,0 +1,19 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var vue = require('vue');
6
+
7
+ const HeaderCell = (props, {
8
+ slots
9
+ }) => {
10
+ var _a, _b;
11
+ return slots.default ? slots.default(props) : vue.createVNode("div", {
12
+ "class": props.class,
13
+ "title": (_a = props.column) == null ? void 0 : _a.title
14
+ }, [(_b = props.column) == null ? void 0 : _b.title]);
15
+ };
16
+ HeaderCell.displayName = "ElTableV2HeaderCell";
17
+
18
+ exports["default"] = HeaderCell;
19
+ //# sourceMappingURL=header-cell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"header-cell.js","sources":["../../../../../../../packages/components/table-v2/src/components/header-cell.tsx"],"sourcesContent":["import type { FunctionalComponent } from 'vue'\nimport type { TableV2HeaderCell } from '../header-cell'\n\nconst HeaderCell: FunctionalComponent<TableV2HeaderCell> = (props, { slots }) =>\n slots.default ? (\n slots.default(props)\n ) : (\n <div class={props.class} title={props.column?.title}>\n {props.column?.title}\n </div>\n )\n\nHeaderCell.displayName = 'ElTableV2HeaderCell'\n\nexport default HeaderCell\n"],"names":["slots","default","props","_createVNode","column","title","HeaderCell"],"mappings":";;;;;;;AAGA,EAAA,KAAwD;AAAaA,CAAAA,KAAAA;AAAF,EAAR,IACzDA,EAAK,EAAA,EAACC,CAAN;AAAA,EAGcC,OAAAA,KAAAA,CAAAA,OAHd,GAAA,KAAA,CAAA,OAAA,CAAA,KAAA,CAAA,GAAAC,eAAA,CAAA,KAAA,EAAA;AAAA,IAGkCD,OAAAA,EAAAA,KAAME,CAAAA,KAAQC;AAHhD,IAIKH,OAAA,EAAA,CAAA,EAAA,QALP,CAAA,MAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,KAAA;;AASAI,EAAU;AAEV,UAAA,CAAA,WAAA,GAAA,qBAAA;;;;"}
@@ -0,0 +1,27 @@
1
+ import type { ColumnCellsType } from '../types';
2
+ import type { TableV2HeaderRowProps } from '../header-row';
3
+ declare const TableV2HeaderRow: import("vue").DefineComponent<{
4
+ readonly class: StringConstructor;
5
+ readonly columns: import("../../../../utils").BuildPropReturn<import("../../../../utils").PropWrapper<import("../common").AnyColumn[]>, unknown, true, unknown, unknown>;
6
+ readonly headerIndex: NumberConstructor;
7
+ readonly style: import("../../../../utils").BuildPropReturn<import("../../../../utils").PropWrapper<import("vue").CSSProperties>, unknown, unknown, unknown, unknown>;
8
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
9
+ readonly class: StringConstructor;
10
+ readonly columns: import("../../../../utils").BuildPropReturn<import("../../../../utils").PropWrapper<import("../common").AnyColumn[]>, unknown, true, unknown, unknown>;
11
+ readonly headerIndex: NumberConstructor;
12
+ readonly style: import("../../../../utils").BuildPropReturn<import("../../../../utils").PropWrapper<import("vue").CSSProperties>, unknown, unknown, unknown, unknown>;
13
+ }>>, {
14
+ style: import("vue").CSSProperties;
15
+ }>;
16
+ export default TableV2HeaderRow;
17
+ export declare type TableV2HeaderRowCellRendererParams = {
18
+ columns: TableV2HeaderRowProps['columns'];
19
+ column: TableV2HeaderRowProps['columns'][number];
20
+ columnIndex: number;
21
+ headerIndex: number;
22
+ };
23
+ export declare type TableV2HeaderRowRendererParams = {
24
+ cells: ColumnCellsType;
25
+ columns: TableV2HeaderRowProps['columns'];
26
+ headerIndex: number;
27
+ };