element-plus 2.1.8 → 2.1.11

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 (1124) hide show
  1. package/README.md +10 -11
  2. package/attributes.json +1 -1
  3. package/dist/index.css +1 -1
  4. package/dist/index.full.js +1231 -2350
  5. package/dist/index.full.min.js +11 -17
  6. package/dist/index.full.min.js.map +1 -1
  7. package/dist/index.full.min.mjs +11 -17
  8. package/dist/index.full.min.mjs.map +1 -1
  9. package/dist/index.full.mjs +1228 -2349
  10. package/dist/locale/af.js +1 -1
  11. package/dist/locale/af.min.js +1 -1
  12. package/dist/locale/af.min.js.map +1 -1
  13. package/dist/locale/af.min.mjs +1 -1
  14. package/dist/locale/af.min.mjs.map +1 -1
  15. package/dist/locale/af.mjs +1 -1
  16. package/dist/locale/ar.js +1 -1
  17. package/dist/locale/ar.min.js +1 -1
  18. package/dist/locale/ar.min.js.map +1 -1
  19. package/dist/locale/ar.min.mjs +1 -1
  20. package/dist/locale/ar.min.mjs.map +1 -1
  21. package/dist/locale/ar.mjs +1 -1
  22. package/dist/locale/az.js +1 -1
  23. package/dist/locale/az.min.js +1 -1
  24. package/dist/locale/az.min.js.map +1 -1
  25. package/dist/locale/az.min.mjs +1 -1
  26. package/dist/locale/az.min.mjs.map +1 -1
  27. package/dist/locale/az.mjs +1 -1
  28. package/dist/locale/bg.js +1 -1
  29. package/dist/locale/bg.min.js +1 -1
  30. package/dist/locale/bg.min.js.map +1 -1
  31. package/dist/locale/bg.min.mjs +1 -1
  32. package/dist/locale/bg.min.mjs.map +1 -1
  33. package/dist/locale/bg.mjs +1 -1
  34. package/dist/locale/bn.js +1 -1
  35. package/dist/locale/bn.min.js +1 -1
  36. package/dist/locale/bn.min.js.map +1 -1
  37. package/dist/locale/bn.min.mjs +1 -1
  38. package/dist/locale/bn.min.mjs.map +1 -1
  39. package/dist/locale/bn.mjs +1 -1
  40. package/dist/locale/ca.js +1 -1
  41. package/dist/locale/ca.min.js +1 -1
  42. package/dist/locale/ca.min.js.map +1 -1
  43. package/dist/locale/ca.min.mjs +1 -1
  44. package/dist/locale/ca.min.mjs.map +1 -1
  45. package/dist/locale/ca.mjs +1 -1
  46. package/dist/locale/cs.js +1 -1
  47. package/dist/locale/cs.min.js +1 -1
  48. package/dist/locale/cs.min.js.map +1 -1
  49. package/dist/locale/cs.min.mjs +1 -1
  50. package/dist/locale/cs.min.mjs.map +1 -1
  51. package/dist/locale/cs.mjs +1 -1
  52. package/dist/locale/da.js +1 -1
  53. package/dist/locale/da.min.js +1 -1
  54. package/dist/locale/da.min.js.map +1 -1
  55. package/dist/locale/da.min.mjs +1 -1
  56. package/dist/locale/da.min.mjs.map +1 -1
  57. package/dist/locale/da.mjs +1 -1
  58. package/dist/locale/de.js +1 -1
  59. package/dist/locale/de.min.js +1 -1
  60. package/dist/locale/de.min.js.map +1 -1
  61. package/dist/locale/de.min.mjs +1 -1
  62. package/dist/locale/de.min.mjs.map +1 -1
  63. package/dist/locale/de.mjs +1 -1
  64. package/dist/locale/el.js +1 -1
  65. package/dist/locale/el.min.js +1 -1
  66. package/dist/locale/el.min.js.map +1 -1
  67. package/dist/locale/el.min.mjs +1 -1
  68. package/dist/locale/el.min.mjs.map +1 -1
  69. package/dist/locale/el.mjs +1 -1
  70. package/dist/locale/en.js +1 -1
  71. package/dist/locale/en.min.js +1 -1
  72. package/dist/locale/en.min.js.map +1 -1
  73. package/dist/locale/en.min.mjs +1 -1
  74. package/dist/locale/en.min.mjs.map +1 -1
  75. package/dist/locale/en.mjs +1 -1
  76. package/dist/locale/eo.js +1 -1
  77. package/dist/locale/eo.min.js +1 -1
  78. package/dist/locale/eo.min.js.map +1 -1
  79. package/dist/locale/eo.min.mjs +1 -1
  80. package/dist/locale/eo.min.mjs.map +1 -1
  81. package/dist/locale/eo.mjs +1 -1
  82. package/dist/locale/es.js +1 -1
  83. package/dist/locale/es.min.js +1 -1
  84. package/dist/locale/es.min.js.map +1 -1
  85. package/dist/locale/es.min.mjs +1 -1
  86. package/dist/locale/es.min.mjs.map +1 -1
  87. package/dist/locale/es.mjs +1 -1
  88. package/dist/locale/et.js +1 -1
  89. package/dist/locale/et.min.js +1 -1
  90. package/dist/locale/et.min.js.map +1 -1
  91. package/dist/locale/et.min.mjs +1 -1
  92. package/dist/locale/et.min.mjs.map +1 -1
  93. package/dist/locale/et.mjs +1 -1
  94. package/dist/locale/eu.js +1 -1
  95. package/dist/locale/eu.min.js +1 -1
  96. package/dist/locale/eu.min.js.map +1 -1
  97. package/dist/locale/eu.min.mjs +1 -1
  98. package/dist/locale/eu.min.mjs.map +1 -1
  99. package/dist/locale/eu.mjs +1 -1
  100. package/dist/locale/fa.js +1 -1
  101. package/dist/locale/fa.min.js +1 -1
  102. package/dist/locale/fa.min.js.map +1 -1
  103. package/dist/locale/fa.min.mjs +1 -1
  104. package/dist/locale/fa.min.mjs.map +1 -1
  105. package/dist/locale/fa.mjs +1 -1
  106. package/dist/locale/fi.js +1 -1
  107. package/dist/locale/fi.min.js +1 -1
  108. package/dist/locale/fi.min.js.map +1 -1
  109. package/dist/locale/fi.min.mjs +1 -1
  110. package/dist/locale/fi.min.mjs.map +1 -1
  111. package/dist/locale/fi.mjs +1 -1
  112. package/dist/locale/fr.js +1 -1
  113. package/dist/locale/fr.min.js +1 -1
  114. package/dist/locale/fr.min.js.map +1 -1
  115. package/dist/locale/fr.min.mjs +1 -1
  116. package/dist/locale/fr.min.mjs.map +1 -1
  117. package/dist/locale/fr.mjs +1 -1
  118. package/dist/locale/he.js +1 -1
  119. package/dist/locale/he.min.js +1 -1
  120. package/dist/locale/he.min.js.map +1 -1
  121. package/dist/locale/he.min.mjs +1 -1
  122. package/dist/locale/he.min.mjs.map +1 -1
  123. package/dist/locale/he.mjs +1 -1
  124. package/dist/locale/hr.js +1 -1
  125. package/dist/locale/hr.min.js +1 -1
  126. package/dist/locale/hr.min.js.map +1 -1
  127. package/dist/locale/hr.min.mjs +1 -1
  128. package/dist/locale/hr.min.mjs.map +1 -1
  129. package/dist/locale/hr.mjs +1 -1
  130. package/dist/locale/hu.js +1 -1
  131. package/dist/locale/hu.min.js +1 -1
  132. package/dist/locale/hu.min.js.map +1 -1
  133. package/dist/locale/hu.min.mjs +1 -1
  134. package/dist/locale/hu.min.mjs.map +1 -1
  135. package/dist/locale/hu.mjs +1 -1
  136. package/dist/locale/hy-am.js +1 -1
  137. package/dist/locale/hy-am.min.js +1 -1
  138. package/dist/locale/hy-am.min.js.map +1 -1
  139. package/dist/locale/hy-am.min.mjs +1 -1
  140. package/dist/locale/hy-am.min.mjs.map +1 -1
  141. package/dist/locale/hy-am.mjs +1 -1
  142. package/dist/locale/id.js +1 -1
  143. package/dist/locale/id.min.js +1 -1
  144. package/dist/locale/id.min.js.map +1 -1
  145. package/dist/locale/id.min.mjs +1 -1
  146. package/dist/locale/id.min.mjs.map +1 -1
  147. package/dist/locale/id.mjs +1 -1
  148. package/dist/locale/it.js +1 -1
  149. package/dist/locale/it.min.js +1 -1
  150. package/dist/locale/it.min.js.map +1 -1
  151. package/dist/locale/it.min.mjs +1 -1
  152. package/dist/locale/it.min.mjs.map +1 -1
  153. package/dist/locale/it.mjs +1 -1
  154. package/dist/locale/ja.js +1 -1
  155. package/dist/locale/ja.min.js +1 -1
  156. package/dist/locale/ja.min.js.map +1 -1
  157. package/dist/locale/ja.min.mjs +1 -1
  158. package/dist/locale/ja.min.mjs.map +1 -1
  159. package/dist/locale/ja.mjs +1 -1
  160. package/dist/locale/kk.js +1 -1
  161. package/dist/locale/kk.min.js +1 -1
  162. package/dist/locale/kk.min.js.map +1 -1
  163. package/dist/locale/kk.min.mjs +1 -1
  164. package/dist/locale/kk.min.mjs.map +1 -1
  165. package/dist/locale/kk.mjs +1 -1
  166. package/dist/locale/km.js +1 -1
  167. package/dist/locale/km.min.js +1 -1
  168. package/dist/locale/km.min.js.map +1 -1
  169. package/dist/locale/km.min.mjs +1 -1
  170. package/dist/locale/km.min.mjs.map +1 -1
  171. package/dist/locale/km.mjs +1 -1
  172. package/dist/locale/ko.js +1 -1
  173. package/dist/locale/ko.min.js +1 -1
  174. package/dist/locale/ko.min.js.map +1 -1
  175. package/dist/locale/ko.min.mjs +1 -1
  176. package/dist/locale/ko.min.mjs.map +1 -1
  177. package/dist/locale/ko.mjs +1 -1
  178. package/dist/locale/ku.js +1 -1
  179. package/dist/locale/ku.min.js +1 -1
  180. package/dist/locale/ku.min.js.map +1 -1
  181. package/dist/locale/ku.min.mjs +1 -1
  182. package/dist/locale/ku.min.mjs.map +1 -1
  183. package/dist/locale/ku.mjs +1 -1
  184. package/dist/locale/ky.js +1 -1
  185. package/dist/locale/ky.min.js +1 -1
  186. package/dist/locale/ky.min.js.map +1 -1
  187. package/dist/locale/ky.min.mjs +1 -1
  188. package/dist/locale/ky.min.mjs.map +1 -1
  189. package/dist/locale/ky.mjs +1 -1
  190. package/dist/locale/lt.js +1 -1
  191. package/dist/locale/lt.min.js +1 -1
  192. package/dist/locale/lt.min.js.map +1 -1
  193. package/dist/locale/lt.min.mjs +1 -1
  194. package/dist/locale/lt.min.mjs.map +1 -1
  195. package/dist/locale/lt.mjs +1 -1
  196. package/dist/locale/lv.js +1 -1
  197. package/dist/locale/lv.min.js +1 -1
  198. package/dist/locale/lv.min.js.map +1 -1
  199. package/dist/locale/lv.min.mjs +1 -1
  200. package/dist/locale/lv.min.mjs.map +1 -1
  201. package/dist/locale/lv.mjs +1 -1
  202. package/dist/locale/mg.js +1 -1
  203. package/dist/locale/mg.min.js +1 -1
  204. package/dist/locale/mg.min.js.map +1 -1
  205. package/dist/locale/mg.min.mjs +1 -1
  206. package/dist/locale/mg.min.mjs.map +1 -1
  207. package/dist/locale/mg.mjs +1 -1
  208. package/dist/locale/mn.js +1 -1
  209. package/dist/locale/mn.min.js +1 -1
  210. package/dist/locale/mn.min.js.map +1 -1
  211. package/dist/locale/mn.min.mjs +1 -1
  212. package/dist/locale/mn.min.mjs.map +1 -1
  213. package/dist/locale/mn.mjs +1 -1
  214. package/dist/locale/nb-no.js +1 -1
  215. package/dist/locale/nb-no.min.js +1 -1
  216. package/dist/locale/nb-no.min.js.map +1 -1
  217. package/dist/locale/nb-no.min.mjs +1 -1
  218. package/dist/locale/nb-no.min.mjs.map +1 -1
  219. package/dist/locale/nb-no.mjs +1 -1
  220. package/dist/locale/nl.js +1 -1
  221. package/dist/locale/nl.min.js +1 -1
  222. package/dist/locale/nl.min.js.map +1 -1
  223. package/dist/locale/nl.min.mjs +1 -1
  224. package/dist/locale/nl.min.mjs.map +1 -1
  225. package/dist/locale/nl.mjs +1 -1
  226. package/dist/locale/pa.js +1 -1
  227. package/dist/locale/pa.min.js +1 -1
  228. package/dist/locale/pa.min.js.map +1 -1
  229. package/dist/locale/pa.min.mjs +1 -1
  230. package/dist/locale/pa.min.mjs.map +1 -1
  231. package/dist/locale/pa.mjs +1 -1
  232. package/dist/locale/pl.js +1 -1
  233. package/dist/locale/pl.min.js +1 -1
  234. package/dist/locale/pl.min.js.map +1 -1
  235. package/dist/locale/pl.min.mjs +1 -1
  236. package/dist/locale/pl.min.mjs.map +1 -1
  237. package/dist/locale/pl.mjs +1 -1
  238. package/dist/locale/pt-br.js +1 -1
  239. package/dist/locale/pt-br.min.js +1 -1
  240. package/dist/locale/pt-br.min.js.map +1 -1
  241. package/dist/locale/pt-br.min.mjs +1 -1
  242. package/dist/locale/pt-br.min.mjs.map +1 -1
  243. package/dist/locale/pt-br.mjs +1 -1
  244. package/dist/locale/pt.js +1 -1
  245. package/dist/locale/pt.min.js +1 -1
  246. package/dist/locale/pt.min.js.map +1 -1
  247. package/dist/locale/pt.min.mjs +1 -1
  248. package/dist/locale/pt.min.mjs.map +1 -1
  249. package/dist/locale/pt.mjs +1 -1
  250. package/dist/locale/ro.js +1 -1
  251. package/dist/locale/ro.min.js +1 -1
  252. package/dist/locale/ro.min.js.map +1 -1
  253. package/dist/locale/ro.min.mjs +1 -1
  254. package/dist/locale/ro.min.mjs.map +1 -1
  255. package/dist/locale/ro.mjs +1 -1
  256. package/dist/locale/ru.js +1 -1
  257. package/dist/locale/ru.min.js +1 -1
  258. package/dist/locale/ru.min.js.map +1 -1
  259. package/dist/locale/ru.min.mjs +1 -1
  260. package/dist/locale/ru.min.mjs.map +1 -1
  261. package/dist/locale/ru.mjs +1 -1
  262. package/dist/locale/sk.js +1 -1
  263. package/dist/locale/sk.min.js +1 -1
  264. package/dist/locale/sk.min.js.map +1 -1
  265. package/dist/locale/sk.min.mjs +1 -1
  266. package/dist/locale/sk.min.mjs.map +1 -1
  267. package/dist/locale/sk.mjs +1 -1
  268. package/dist/locale/sl.js +1 -1
  269. package/dist/locale/sl.min.js +1 -1
  270. package/dist/locale/sl.min.js.map +1 -1
  271. package/dist/locale/sl.min.mjs +1 -1
  272. package/dist/locale/sl.min.mjs.map +1 -1
  273. package/dist/locale/sl.mjs +1 -1
  274. package/dist/locale/sr.js +1 -1
  275. package/dist/locale/sr.min.js +1 -1
  276. package/dist/locale/sr.min.js.map +1 -1
  277. package/dist/locale/sr.min.mjs +1 -1
  278. package/dist/locale/sr.min.mjs.map +1 -1
  279. package/dist/locale/sr.mjs +1 -1
  280. package/dist/locale/sv.js +1 -1
  281. package/dist/locale/sv.min.js +1 -1
  282. package/dist/locale/sv.min.js.map +1 -1
  283. package/dist/locale/sv.min.mjs +1 -1
  284. package/dist/locale/sv.min.mjs.map +1 -1
  285. package/dist/locale/sv.mjs +1 -1
  286. package/dist/locale/ta.js +1 -1
  287. package/dist/locale/ta.min.js +1 -1
  288. package/dist/locale/ta.min.js.map +1 -1
  289. package/dist/locale/ta.min.mjs +1 -1
  290. package/dist/locale/ta.min.mjs.map +1 -1
  291. package/dist/locale/ta.mjs +1 -1
  292. package/dist/locale/th.js +1 -1
  293. package/dist/locale/th.min.js +1 -1
  294. package/dist/locale/th.min.js.map +1 -1
  295. package/dist/locale/th.min.mjs +1 -1
  296. package/dist/locale/th.min.mjs.map +1 -1
  297. package/dist/locale/th.mjs +1 -1
  298. package/dist/locale/tk.js +1 -1
  299. package/dist/locale/tk.min.js +1 -1
  300. package/dist/locale/tk.min.js.map +1 -1
  301. package/dist/locale/tk.min.mjs +1 -1
  302. package/dist/locale/tk.min.mjs.map +1 -1
  303. package/dist/locale/tk.mjs +1 -1
  304. package/dist/locale/tr.js +1 -1
  305. package/dist/locale/tr.min.js +1 -1
  306. package/dist/locale/tr.min.js.map +1 -1
  307. package/dist/locale/tr.min.mjs +1 -1
  308. package/dist/locale/tr.min.mjs.map +1 -1
  309. package/dist/locale/tr.mjs +1 -1
  310. package/dist/locale/ug-cn.js +1 -1
  311. package/dist/locale/ug-cn.min.js +1 -1
  312. package/dist/locale/ug-cn.min.js.map +1 -1
  313. package/dist/locale/ug-cn.min.mjs +1 -1
  314. package/dist/locale/ug-cn.min.mjs.map +1 -1
  315. package/dist/locale/ug-cn.mjs +1 -1
  316. package/dist/locale/uk.js +1 -1
  317. package/dist/locale/uk.min.js +1 -1
  318. package/dist/locale/uk.min.js.map +1 -1
  319. package/dist/locale/uk.min.mjs +1 -1
  320. package/dist/locale/uk.min.mjs.map +1 -1
  321. package/dist/locale/uk.mjs +1 -1
  322. package/dist/locale/uz-uz.js +1 -1
  323. package/dist/locale/uz-uz.min.js +1 -1
  324. package/dist/locale/uz-uz.min.js.map +1 -1
  325. package/dist/locale/uz-uz.min.mjs +1 -1
  326. package/dist/locale/uz-uz.min.mjs.map +1 -1
  327. package/dist/locale/uz-uz.mjs +1 -1
  328. package/dist/locale/vi.js +1 -1
  329. package/dist/locale/vi.min.js +1 -1
  330. package/dist/locale/vi.min.js.map +1 -1
  331. package/dist/locale/vi.min.mjs +1 -1
  332. package/dist/locale/vi.min.mjs.map +1 -1
  333. package/dist/locale/vi.mjs +1 -1
  334. package/dist/locale/zh-cn.js +1 -1
  335. package/dist/locale/zh-cn.min.js +1 -1
  336. package/dist/locale/zh-cn.min.js.map +1 -1
  337. package/dist/locale/zh-cn.min.mjs +1 -1
  338. package/dist/locale/zh-cn.min.mjs.map +1 -1
  339. package/dist/locale/zh-cn.mjs +1 -1
  340. package/dist/locale/zh-tw.js +1 -1
  341. package/dist/locale/zh-tw.min.js +1 -1
  342. package/dist/locale/zh-tw.min.js.map +1 -1
  343. package/dist/locale/zh-tw.min.mjs +1 -1
  344. package/dist/locale/zh-tw.min.mjs.map +1 -1
  345. package/dist/locale/zh-tw.mjs +1 -1
  346. package/es/components/alert/index.d.ts +4 -4
  347. package/es/components/alert/src/alert.d.ts +1 -1
  348. package/es/components/alert/src/alert.vue.d.ts +4 -4
  349. package/es/components/autocomplete/index.d.ts +29 -1
  350. package/es/components/autocomplete/src/autocomplete.vue.d.ts +29 -1
  351. package/es/components/avatar/src/avatar2.mjs +1 -1
  352. package/es/components/button/index.d.ts +4 -0
  353. package/es/components/button/src/button-custom.d.ts +4 -0
  354. package/es/components/button/src/button-custom.mjs +60 -0
  355. package/es/components/button/src/button-custom.mjs.map +1 -0
  356. package/es/components/button/src/button.d.ts +1 -0
  357. package/es/components/button/src/button.mjs +1 -0
  358. package/es/components/button/src/button.mjs.map +1 -1
  359. package/es/components/button/src/button.vue.d.ts +4 -0
  360. package/es/components/button/src/button2.mjs +2 -37
  361. package/es/components/button/src/button2.mjs.map +1 -1
  362. package/es/components/calendar/index.d.ts +4 -0
  363. package/es/components/calendar/src/calendar.vue.d.ts +4 -0
  364. package/es/components/calendar/src/calendar2.mjs +1 -1
  365. package/es/components/calendar/src/calendar2.mjs.map +1 -1
  366. package/es/components/calendar/src/date-table2.mjs +3 -2
  367. package/es/components/calendar/src/date-table2.mjs.map +1 -1
  368. package/es/components/cascader/index.d.ts +38 -2
  369. package/es/components/cascader/src/index.vue.d.ts +19 -1
  370. package/es/components/col/src/col.d.ts +2 -0
  371. package/es/components/col/src/col.mjs.map +1 -1
  372. package/es/components/color-picker/src/index.mjs +4 -1
  373. package/es/components/color-picker/src/index.mjs.map +1 -1
  374. package/es/components/date-picker/src/date-picker-com/panel-date-pick.mjs +2 -1
  375. package/es/components/date-picker/src/date-picker-com/panel-date-pick.mjs.map +1 -1
  376. package/es/components/descriptions/src/descriptions-cell.mjs +1 -1
  377. package/es/components/dropdown/src/dropdown2.mjs +1 -1
  378. package/es/components/empty/src/img-empty.mjs +7 -17
  379. package/es/components/empty/src/img-empty.mjs.map +1 -1
  380. package/es/components/form/index.d.ts +4 -6
  381. package/es/components/form/src/form-item.vue.d.ts +2 -3
  382. package/es/components/form/src/form-item2.mjs +23 -23
  383. package/es/components/form/src/form-item2.mjs.map +1 -1
  384. package/es/components/form/src/form-label-wrap.mjs +6 -6
  385. package/es/components/form/src/form-label-wrap.mjs.map +1 -1
  386. package/es/components/icon/src/icon2.mjs +1 -1
  387. package/es/components/image/index.d.ts +12 -0
  388. package/es/components/image/src/image.d.ts +2 -0
  389. package/es/components/image/src/image.mjs +8 -0
  390. package/es/components/image/src/image.mjs.map +1 -1
  391. package/es/components/image/src/image.vue.d.ts +12 -0
  392. package/es/components/image/src/image2.mjs +3 -1
  393. package/es/components/image/src/image2.mjs.map +1 -1
  394. package/es/components/image-viewer/index.d.ts +4 -0
  395. package/es/components/image-viewer/src/image-viewer.d.ts +1 -0
  396. package/es/components/image-viewer/src/image-viewer.mjs +4 -0
  397. package/es/components/image-viewer/src/image-viewer.mjs.map +1 -1
  398. package/es/components/image-viewer/src/image-viewer.vue.d.ts +4 -0
  399. package/es/components/image-viewer/src/image-viewer2.mjs +1 -1
  400. package/es/components/image-viewer/src/image-viewer2.mjs.map +1 -1
  401. package/es/components/input/index.d.ts +10 -0
  402. package/es/components/input/src/input.d.ts +2 -0
  403. package/es/components/input/src/input.mjs +6 -0
  404. package/es/components/input/src/input.mjs.map +1 -1
  405. package/es/components/input/src/input.vue.d.ts +10 -0
  406. package/es/components/input/src/input2.mjs +119 -102
  407. package/es/components/input/src/input2.mjs.map +1 -1
  408. package/es/components/input-number/index.d.ts +20 -0
  409. package/es/components/input-number/src/input-number.vue.d.ts +20 -0
  410. package/es/components/loading/src/loading.mjs +3 -1
  411. package/es/components/loading/src/loading.mjs.map +1 -1
  412. package/es/components/loading/src/service.mjs +1 -2
  413. package/es/components/loading/src/service.mjs.map +1 -1
  414. package/es/components/menu/index.d.ts +84 -0
  415. package/es/components/menu/src/menu-collapse-transition.mjs +10 -7
  416. package/es/components/menu/src/menu-collapse-transition.mjs.map +1 -1
  417. package/es/components/menu/src/menu-item-group.vue.d.ts +14 -0
  418. package/es/components/menu/src/menu-item-group2.mjs +12 -7
  419. package/es/components/menu/src/menu-item-group2.mjs.map +1 -1
  420. package/es/components/menu/src/menu-item.vue.d.ts +28 -0
  421. package/es/components/menu/src/menu-item2.mjs +15 -7
  422. package/es/components/menu/src/menu-item2.mjs.map +1 -1
  423. package/es/components/menu/src/menu.mjs +10 -6
  424. package/es/components/menu/src/menu.mjs.map +1 -1
  425. package/es/components/menu/src/sub-menu.mjs +17 -14
  426. package/es/components/menu/src/sub-menu.mjs.map +1 -1
  427. package/es/components/menu/src/utils/menu-bar.d.ts +2 -2
  428. package/es/components/menu/src/utils/menu-bar.mjs +4 -4
  429. package/es/components/menu/src/utils/menu-bar.mjs.map +1 -1
  430. package/es/components/menu/src/utils/menu-item.d.ts +2 -2
  431. package/es/components/menu/src/utils/menu-item.mjs +4 -4
  432. package/es/components/menu/src/utils/menu-item.mjs.map +1 -1
  433. package/es/components/message-box/src/index.mjs +56 -47
  434. package/es/components/message-box/src/index.mjs.map +1 -1
  435. package/es/components/message-box/src/index.vue.d.ts +17 -1
  436. package/es/components/popover/src/index.mjs +1 -0
  437. package/es/components/popover/src/index.mjs.map +1 -1
  438. package/es/components/popper/src/content.vue.d.ts +1 -1
  439. package/es/components/popper/src/content2.mjs +3 -3
  440. package/es/components/popper/src/content2.mjs.map +1 -1
  441. package/es/components/progress/src/progress2.mjs +1 -1
  442. package/es/components/progress/src/progress2.mjs.map +1 -1
  443. package/es/components/scrollbar/src/scrollbar2.mjs +3 -2
  444. package/es/components/scrollbar/src/scrollbar2.mjs.map +1 -1
  445. package/es/components/scrollbar/src/thumb.vue.d.ts +16 -16
  446. package/es/components/scrollbar/src/util.d.ts +18 -18
  447. package/es/components/scrollbar/src/util.mjs.map +1 -1
  448. package/es/components/select/src/select.mjs +9 -21
  449. package/es/components/select/src/select.mjs.map +1 -1
  450. package/es/components/select/src/useSelect.mjs +3 -3
  451. package/es/components/select/src/useSelect.mjs.map +1 -1
  452. package/es/components/table/src/store/current.mjs +1 -0
  453. package/es/components/table/src/store/current.mjs.map +1 -1
  454. package/es/components/table/src/table/defaults.d.ts +1 -1
  455. package/es/components/table/src/table/defaults.mjs.map +1 -1
  456. package/es/components/table/src/table/style-helper.mjs +1 -4
  457. package/es/components/table/src/table/style-helper.mjs.map +1 -1
  458. package/es/components/table/src/table-column/watcher-helper.mjs +8 -8
  459. package/es/components/table/src/table-column/watcher-helper.mjs.map +1 -1
  460. package/es/components/table-v2/index.d.ts +4 -0
  461. package/es/components/table-v2/index.mjs +4 -0
  462. package/es/components/table-v2/index.mjs.map +1 -0
  463. package/es/components/table-v2/src/cell.d.ts +11 -0
  464. package/es/components/table-v2/src/cell.mjs +22 -0
  465. package/es/components/table-v2/src/cell.mjs.map +1 -0
  466. package/es/components/table-v2/src/column.d.ts +19 -0
  467. package/es/components/table-v2/src/column.mjs +41 -0
  468. package/es/components/table-v2/src/column.mjs.map +1 -0
  469. package/es/components/table-v2/src/common.d.ts +42 -0
  470. package/es/components/table-v2/src/common.mjs +38 -0
  471. package/es/components/table-v2/src/common.mjs.map +1 -0
  472. package/es/components/table-v2/src/components/cell.d.ts +4 -0
  473. package/es/components/table-v2/src/components/cell.mjs +22 -0
  474. package/es/components/table-v2/src/components/cell.mjs.map +1 -0
  475. package/es/components/table-v2/src/components/expand-icon.d.ts +11 -0
  476. package/es/components/table-v2/src/components/expand-icon.mjs +26 -0
  477. package/es/components/table-v2/src/components/expand-icon.mjs.map +1 -0
  478. package/es/components/table-v2/src/components/header-cell.d.ts +4 -0
  479. package/es/components/table-v2/src/components/header-cell.mjs +15 -0
  480. package/es/components/table-v2/src/components/header-cell.mjs.map +1 -0
  481. package/es/components/table-v2/src/components/header-row.d.ts +27 -0
  482. package/es/components/table-v2/src/components/header-row.mjs +40 -0
  483. package/es/components/table-v2/src/components/header-row.mjs.map +1 -0
  484. package/es/components/table-v2/src/components/header.d.ts +44 -0
  485. package/es/components/table-v2/src/components/header.mjs +96 -0
  486. package/es/components/table-v2/src/components/header.mjs.map +1 -0
  487. package/es/components/table-v2/src/components/index.d.ts +10 -0
  488. package/es/components/table-v2/src/components/index.mjs +8 -0
  489. package/es/components/table-v2/src/components/index.mjs.map +1 -0
  490. package/es/components/table-v2/src/components/row.d.ts +68 -0
  491. package/es/components/table-v2/src/components/row.mjs +204 -0
  492. package/es/components/table-v2/src/components/row.mjs.map +1 -0
  493. package/es/components/table-v2/src/components/sort-icon.d.ts +8 -0
  494. package/es/components/table-v2/src/components/sort-icon.mjs +19 -0
  495. package/es/components/table-v2/src/components/sort-icon.mjs.map +1 -0
  496. package/es/components/table-v2/src/composables/index.d.ts +5 -0
  497. package/es/components/table-v2/src/composables/index.mjs +6 -0
  498. package/es/components/table-v2/src/composables/index.mjs.map +1 -0
  499. package/es/components/table-v2/src/composables/use-columns.d.ts +20 -0
  500. package/es/components/table-v2/src/composables/use-columns.mjs +88 -0
  501. package/es/components/table-v2/src/composables/use-columns.mjs.map +1 -0
  502. package/es/components/table-v2/src/composables/use-data.d.ts +17 -0
  503. package/es/components/table-v2/src/composables/use-data.mjs +44 -0
  504. package/es/components/table-v2/src/composables/use-data.mjs.map +1 -0
  505. package/es/components/table-v2/src/composables/use-row.d.ts +32 -0
  506. package/es/components/table-v2/src/composables/use-row.mjs +123 -0
  507. package/es/components/table-v2/src/composables/use-row.mjs.map +1 -0
  508. package/es/components/table-v2/src/composables/use-scrollbar.d.ts +26 -0
  509. package/es/components/table-v2/src/composables/use-scrollbar.mjs +55 -0
  510. package/es/components/table-v2/src/composables/use-scrollbar.mjs.map +1 -0
  511. package/es/components/table-v2/src/composables/use-styles.d.ts +25 -0
  512. package/es/components/table-v2/src/composables/use-styles.mjs +87 -0
  513. package/es/components/table-v2/src/composables/use-styles.mjs.map +1 -0
  514. package/es/components/table-v2/src/composables/utils.d.ts +3 -0
  515. package/es/components/table-v2/src/composables/utils.mjs +26 -0
  516. package/es/components/table-v2/src/composables/utils.mjs.map +1 -0
  517. package/es/components/table-v2/src/constants.d.ts +17 -0
  518. package/es/components/table-v2/src/constants.mjs +23 -0
  519. package/es/components/table-v2/src/constants.mjs.map +1 -0
  520. package/es/components/table-v2/src/grid.d.ts +39 -0
  521. package/es/components/table-v2/src/grid.mjs +42 -0
  522. package/es/components/table-v2/src/grid.mjs.map +1 -0
  523. package/es/components/table-v2/src/header-cell.d.ts +7 -0
  524. package/es/components/table-v2/src/header-cell.mjs +12 -0
  525. package/es/components/table-v2/src/header-cell.mjs.map +1 -0
  526. package/es/components/table-v2/src/header-row.d.ts +8 -0
  527. package/es/components/table-v2/src/header-row.mjs +13 -0
  528. package/es/components/table-v2/src/header-row.mjs.map +1 -0
  529. package/es/components/table-v2/src/header.d.ts +13 -0
  530. package/es/components/table-v2/src/header.mjs +33 -0
  531. package/es/components/table-v2/src/header.mjs.map +1 -0
  532. package/es/components/table-v2/src/private.d.ts +1 -0
  533. package/es/components/table-v2/src/private.mjs +4 -0
  534. package/es/components/table-v2/src/private.mjs.map +1 -0
  535. package/es/components/table-v2/src/renderers/cell.d.ts +10 -0
  536. package/es/components/table-v2/src/renderers/cell.mjs +91 -0
  537. package/es/components/table-v2/src/renderers/cell.mjs.map +1 -0
  538. package/es/components/table-v2/src/renderers/empty.d.ts +7 -0
  539. package/es/components/table-v2/src/renderers/empty.mjs +15 -0
  540. package/es/components/table-v2/src/renderers/empty.mjs.map +1 -0
  541. package/es/components/table-v2/src/renderers/footer.d.ts +7 -0
  542. package/es/components/table-v2/src/renderers/footer.mjs +15 -0
  543. package/es/components/table-v2/src/renderers/footer.mjs.map +1 -0
  544. package/es/components/table-v2/src/renderers/header-cell.d.ts +10 -0
  545. package/es/components/table-v2/src/renderers/header-cell.mjs +65 -0
  546. package/es/components/table-v2/src/renderers/header-cell.mjs.map +1 -0
  547. package/es/components/table-v2/src/renderers/header.d.ts +9 -0
  548. package/es/components/table-v2/src/renderers/header.mjs +39 -0
  549. package/es/components/table-v2/src/renderers/header.mjs.map +1 -0
  550. package/es/components/table-v2/src/renderers/left-table.d.ts +8 -0
  551. package/es/components/table-v2/src/renderers/left-table.mjs +24 -0
  552. package/es/components/table-v2/src/renderers/left-table.mjs.map +1 -0
  553. package/es/components/table-v2/src/renderers/main-table.d.ts +8 -0
  554. package/es/components/table-v2/src/renderers/main-table.mjs +22 -0
  555. package/es/components/table-v2/src/renderers/main-table.mjs.map +1 -0
  556. package/es/components/table-v2/src/renderers/overlay.d.ts +3 -0
  557. package/es/components/table-v2/src/renderers/overlay.mjs +15 -0
  558. package/es/components/table-v2/src/renderers/overlay.mjs.map +1 -0
  559. package/es/components/table-v2/src/renderers/right-table.d.ts +8 -0
  560. package/es/components/table-v2/src/renderers/right-table.mjs +24 -0
  561. package/es/components/table-v2/src/renderers/right-table.mjs.map +1 -0
  562. package/es/components/table-v2/src/renderers/row.d.ts +10 -0
  563. package/es/components/table-v2/src/renderers/row.mjs +77 -0
  564. package/es/components/table-v2/src/renderers/row.mjs.map +1 -0
  565. package/es/components/table-v2/src/row.d.ts +54 -0
  566. package/es/components/table-v2/src/row.mjs +44 -0
  567. package/es/components/table-v2/src/row.mjs.map +1 -0
  568. package/es/components/table-v2/src/table-grid.d.ts +104 -0
  569. package/es/components/table-v2/src/table-grid.mjs +221 -0
  570. package/es/components/table-v2/src/table-grid.mjs.map +1 -0
  571. package/es/components/table-v2/src/table-v2.d.ts +142 -0
  572. package/es/components/table-v2/src/table-v2.mjs +250 -0
  573. package/es/components/table-v2/src/table-v2.mjs.map +1 -0
  574. package/es/components/table-v2/src/table.d.ts +91 -0
  575. package/es/components/table-v2/src/table.mjs +106 -0
  576. package/es/components/table-v2/src/table.mjs.map +1 -0
  577. package/es/components/table-v2/src/tokens.d.ts +10 -0
  578. package/es/components/table-v2/src/tokens.mjs +4 -0
  579. package/es/components/table-v2/src/tokens.mjs.map +1 -0
  580. package/es/components/table-v2/src/types.d.ts +88 -0
  581. package/es/components/table-v2/src/types.mjs +2 -0
  582. package/es/components/table-v2/src/types.mjs.map +1 -0
  583. package/es/components/table-v2/src/use-table.d.ts +49 -0
  584. package/es/components/table-v2/src/use-table.mjs +150 -0
  585. package/es/components/table-v2/src/use-table.mjs.map +1 -0
  586. package/es/components/table-v2/src/utils.d.ts +7 -0
  587. package/es/components/table-v2/src/utils.mjs +23 -0
  588. package/es/components/table-v2/src/utils.mjs.map +1 -0
  589. package/es/components/tag/index.d.ts +4 -4
  590. package/es/components/tag/src/tag.d.ts +1 -1
  591. package/es/components/tag/src/tag.vue.d.ts +4 -4
  592. package/es/components/time-select/index.d.ts +28 -0
  593. package/es/components/time-select/src/time-select.mjs +7 -3
  594. package/es/components/time-select/src/time-select.mjs.map +1 -1
  595. package/es/components/time-select/src/time-select.vue.d.ts +14 -0
  596. package/es/components/tooltip/src/content.vue.d.ts +2 -2
  597. package/es/components/tree-select/src/tree-select.mjs +1 -0
  598. package/es/components/tree-select/src/tree-select.mjs.map +1 -1
  599. package/es/components/tree-select/src/tree.mjs +16 -3
  600. package/es/components/tree-select/src/tree.mjs.map +1 -1
  601. package/es/components/tree-select/style/css.d.ts +1 -1
  602. package/es/components/tree-select/style/css.mjs +1 -1
  603. package/es/components/upload/index.d.ts +16 -12
  604. package/es/components/upload/src/upload-content.d.ts +1 -1
  605. package/es/components/upload/src/upload-content.vue.d.ts +4 -3
  606. package/es/components/upload/src/upload-content2.mjs +3 -1
  607. package/es/components/upload/src/upload-content2.mjs.map +1 -1
  608. package/es/components/upload/src/upload-list2.mjs +5 -3
  609. package/es/components/upload/src/upload-list2.mjs.map +1 -1
  610. package/es/components/upload/src/upload.d.ts +2 -2
  611. package/es/components/upload/src/upload.mjs +1 -1
  612. package/es/components/upload/src/upload.mjs.map +1 -1
  613. package/es/components/upload/src/upload.vue.d.ts +16 -12
  614. package/es/components/virtual-list/index.d.ts +3 -1
  615. package/es/components/virtual-list/index.mjs +1 -1
  616. package/es/components/virtual-list/src/builders/build-grid.d.ts +45 -6
  617. package/es/components/virtual-list/src/builders/build-grid.mjs +54 -13
  618. package/es/components/virtual-list/src/builders/build-grid.mjs.map +1 -1
  619. package/es/components/virtual-list/src/builders/build-list.d.ts +16 -2
  620. package/es/components/virtual-list/src/builders/build-list.mjs +7 -5
  621. package/es/components/virtual-list/src/builders/build-list.mjs.map +1 -1
  622. package/es/components/virtual-list/src/components/dynamic-size-grid.d.ts +38 -5
  623. package/es/components/virtual-list/src/components/dynamic-size-grid.mjs +35 -3
  624. package/es/components/virtual-list/src/components/dynamic-size-grid.mjs.map +1 -1
  625. package/es/components/virtual-list/src/components/dynamic-size-list.d.ts +16 -2
  626. package/es/components/virtual-list/src/components/fixed-size-grid.d.ts +24 -3
  627. package/es/components/virtual-list/src/components/fixed-size-list.d.ts +16 -2
  628. package/es/components/virtual-list/src/components/scrollbar.d.ts +14 -0
  629. package/es/components/virtual-list/src/components/scrollbar.mjs +27 -28
  630. package/es/components/virtual-list/src/components/scrollbar.mjs.map +1 -1
  631. package/es/components/virtual-list/src/defaults.d.ts +1 -1
  632. package/es/components/virtual-list/src/defaults.mjs +1 -1
  633. package/es/components/virtual-list/src/defaults.mjs.map +1 -1
  634. package/es/components/virtual-list/src/hooks/use-grid-wheel.mjs +7 -2
  635. package/es/components/virtual-list/src/hooks/use-grid-wheel.mjs.map +1 -1
  636. package/es/components/virtual-list/src/props.d.ts +14 -1
  637. package/es/components/virtual-list/src/props.mjs +19 -0
  638. package/es/components/virtual-list/src/props.mjs.map +1 -1
  639. package/es/components/virtual-list/src/types.d.ts +33 -0
  640. package/es/components/virtual-list/src/utils.d.ts +10 -5
  641. package/es/components/virtual-list/src/utils.mjs.map +1 -1
  642. package/es/constants/index.mjs +1 -1
  643. package/es/constants/size.d.ts +5 -0
  644. package/es/constants/size.mjs +6 -1
  645. package/es/constants/size.mjs.map +1 -1
  646. package/es/directives/mousewheel/index.mjs +1 -7
  647. package/es/directives/mousewheel/index.mjs.map +1 -1
  648. package/es/hooks/index.d.ts +1 -0
  649. package/es/hooks/index.mjs +1 -0
  650. package/es/hooks/index.mjs.map +1 -1
  651. package/es/hooks/use-cursor/index.d.ts +2 -0
  652. package/es/hooks/use-cursor/index.mjs +46 -0
  653. package/es/hooks/use-cursor/index.mjs.map +1 -0
  654. package/es/hooks/use-draggable/index.mjs +1 -1
  655. package/es/hooks/use-namespace/index.d.ts +1 -0
  656. package/es/hooks/use-namespace/index.mjs.map +1 -1
  657. package/es/hooks/use-popper-container/index.mjs +8 -5
  658. package/es/hooks/use-popper-container/index.mjs.map +1 -1
  659. package/es/index.mjs +2 -1
  660. package/es/index.mjs.map +1 -1
  661. package/es/utils/animation.mjs +3 -1
  662. package/es/utils/animation.mjs.map +1 -1
  663. package/es/utils/dom/index.mjs +1 -1
  664. package/es/utils/dom/style.d.ts +1 -0
  665. package/es/utils/dom/style.mjs +15 -3
  666. package/es/utils/dom/style.mjs.map +1 -1
  667. package/es/utils/index.mjs +2 -2
  668. package/es/utils/vue/index.d.ts +1 -1
  669. package/es/utils/vue/index.mjs +1 -1
  670. package/es/utils/vue/refs.mjs +1 -1
  671. package/es/utils/vue/refs.mjs.map +1 -1
  672. package/es/utils/vue/size.d.ts +1 -0
  673. package/es/utils/vue/size.mjs +9 -0
  674. package/es/utils/vue/size.mjs.map +1 -0
  675. package/es/version.d.ts +1 -1
  676. package/es/version.mjs +1 -1
  677. package/es/version.mjs.map +1 -1
  678. package/lib/components/alert/index.d.ts +4 -4
  679. package/lib/components/alert/src/alert.d.ts +1 -1
  680. package/lib/components/alert/src/alert.vue.d.ts +4 -4
  681. package/lib/components/autocomplete/index.d.ts +29 -1
  682. package/lib/components/autocomplete/src/autocomplete.vue.d.ts +29 -1
  683. package/lib/components/avatar/src/avatar2.js +1 -1
  684. package/lib/components/button/index.d.ts +4 -0
  685. package/lib/components/button/src/button-custom.d.ts +4 -0
  686. package/lib/components/button/src/button-custom.js +65 -0
  687. package/lib/components/button/src/button-custom.js.map +1 -0
  688. package/lib/components/button/src/button.d.ts +1 -0
  689. package/lib/components/button/src/button.js +1 -0
  690. package/lib/components/button/src/button.js.map +1 -1
  691. package/lib/components/button/src/button.vue.d.ts +4 -0
  692. package/lib/components/button/src/button2.js +2 -37
  693. package/lib/components/button/src/button2.js.map +1 -1
  694. package/lib/components/calendar/index.d.ts +4 -0
  695. package/lib/components/calendar/src/calendar.vue.d.ts +4 -0
  696. package/lib/components/calendar/src/calendar2.js +1 -1
  697. package/lib/components/calendar/src/calendar2.js.map +1 -1
  698. package/lib/components/calendar/src/date-table2.js +3 -2
  699. package/lib/components/calendar/src/date-table2.js.map +1 -1
  700. package/lib/components/cascader/index.d.ts +38 -2
  701. package/lib/components/cascader/src/index.vue.d.ts +19 -1
  702. package/lib/components/col/src/col.d.ts +2 -0
  703. package/lib/components/col/src/col.js.map +1 -1
  704. package/lib/components/color-picker/src/index.js +4 -1
  705. package/lib/components/color-picker/src/index.js.map +1 -1
  706. package/lib/components/date-picker/src/date-picker-com/panel-date-pick.js +2 -1
  707. package/lib/components/date-picker/src/date-picker-com/panel-date-pick.js.map +1 -1
  708. package/lib/components/descriptions/src/descriptions-cell.js +1 -1
  709. package/lib/components/dropdown/src/dropdown2.js +1 -1
  710. package/lib/components/empty/src/img-empty.js +7 -17
  711. package/lib/components/empty/src/img-empty.js.map +1 -1
  712. package/lib/components/form/index.d.ts +4 -6
  713. package/lib/components/form/src/form-item.vue.d.ts +2 -3
  714. package/lib/components/form/src/form-item2.js +23 -23
  715. package/lib/components/form/src/form-item2.js.map +1 -1
  716. package/lib/components/form/src/form-label-wrap.js +6 -6
  717. package/lib/components/form/src/form-label-wrap.js.map +1 -1
  718. package/lib/components/icon/src/icon2.js +1 -1
  719. package/lib/components/image/index.d.ts +12 -0
  720. package/lib/components/image/src/image.d.ts +2 -0
  721. package/lib/components/image/src/image.js +8 -0
  722. package/lib/components/image/src/image.js.map +1 -1
  723. package/lib/components/image/src/image.vue.d.ts +12 -0
  724. package/lib/components/image/src/image2.js +3 -1
  725. package/lib/components/image/src/image2.js.map +1 -1
  726. package/lib/components/image-viewer/index.d.ts +4 -0
  727. package/lib/components/image-viewer/src/image-viewer.d.ts +1 -0
  728. package/lib/components/image-viewer/src/image-viewer.js +4 -0
  729. package/lib/components/image-viewer/src/image-viewer.js.map +1 -1
  730. package/lib/components/image-viewer/src/image-viewer.vue.d.ts +4 -0
  731. package/lib/components/image-viewer/src/image-viewer2.js +1 -1
  732. package/lib/components/image-viewer/src/image-viewer2.js.map +1 -1
  733. package/lib/components/input/index.d.ts +10 -0
  734. package/lib/components/input/src/input.d.ts +2 -0
  735. package/lib/components/input/src/input.js +6 -0
  736. package/lib/components/input/src/input.js.map +1 -1
  737. package/lib/components/input/src/input.vue.d.ts +10 -0
  738. package/lib/components/input/src/input2.js +119 -102
  739. package/lib/components/input/src/input2.js.map +1 -1
  740. package/lib/components/input-number/index.d.ts +20 -0
  741. package/lib/components/input-number/src/input-number.vue.d.ts +20 -0
  742. package/lib/components/loading/src/loading.js +3 -1
  743. package/lib/components/loading/src/loading.js.map +1 -1
  744. package/lib/components/loading/src/service.js +1 -2
  745. package/lib/components/loading/src/service.js.map +1 -1
  746. package/lib/components/menu/index.d.ts +84 -0
  747. package/lib/components/menu/src/menu-collapse-transition.js +10 -7
  748. package/lib/components/menu/src/menu-collapse-transition.js.map +1 -1
  749. package/lib/components/menu/src/menu-item-group.vue.d.ts +14 -0
  750. package/lib/components/menu/src/menu-item-group2.js +11 -6
  751. package/lib/components/menu/src/menu-item-group2.js.map +1 -1
  752. package/lib/components/menu/src/menu-item.vue.d.ts +28 -0
  753. package/lib/components/menu/src/menu-item2.js +15 -7
  754. package/lib/components/menu/src/menu-item2.js.map +1 -1
  755. package/lib/components/menu/src/menu.js +14 -10
  756. package/lib/components/menu/src/menu.js.map +1 -1
  757. package/lib/components/menu/src/sub-menu.js +23 -20
  758. package/lib/components/menu/src/sub-menu.js.map +1 -1
  759. package/lib/components/menu/src/utils/menu-bar.d.ts +2 -2
  760. package/lib/components/menu/src/utils/menu-bar.js +4 -4
  761. package/lib/components/menu/src/utils/menu-bar.js.map +1 -1
  762. package/lib/components/menu/src/utils/menu-item.d.ts +2 -2
  763. package/lib/components/menu/src/utils/menu-item.js +4 -4
  764. package/lib/components/menu/src/utils/menu-item.js.map +1 -1
  765. package/lib/components/message-box/src/index.js +71 -62
  766. package/lib/components/message-box/src/index.js.map +1 -1
  767. package/lib/components/message-box/src/index.vue.d.ts +17 -1
  768. package/lib/components/popover/src/index.js +1 -0
  769. package/lib/components/popover/src/index.js.map +1 -1
  770. package/lib/components/popper/src/content.vue.d.ts +1 -1
  771. package/lib/components/popper/src/content2.js +3 -3
  772. package/lib/components/popper/src/content2.js.map +1 -1
  773. package/lib/components/progress/src/progress2.js +1 -1
  774. package/lib/components/progress/src/progress2.js.map +1 -1
  775. package/lib/components/scrollbar/src/scrollbar2.js +2 -1
  776. package/lib/components/scrollbar/src/scrollbar2.js.map +1 -1
  777. package/lib/components/scrollbar/src/thumb.vue.d.ts +16 -16
  778. package/lib/components/scrollbar/src/util.d.ts +18 -18
  779. package/lib/components/scrollbar/src/util.js.map +1 -1
  780. package/lib/components/select/src/select.js +8 -20
  781. package/lib/components/select/src/select.js.map +1 -1
  782. package/lib/components/select/src/useSelect.js +3 -3
  783. package/lib/components/select/src/useSelect.js.map +1 -1
  784. package/lib/components/table/src/store/current.js +1 -0
  785. package/lib/components/table/src/store/current.js.map +1 -1
  786. package/lib/components/table/src/table/defaults.d.ts +1 -1
  787. package/lib/components/table/src/table/defaults.js.map +1 -1
  788. package/lib/components/table/src/table/style-helper.js +1 -4
  789. package/lib/components/table/src/table/style-helper.js.map +1 -1
  790. package/lib/components/table/src/table-column/watcher-helper.js +8 -8
  791. package/lib/components/table/src/table-column/watcher-helper.js.map +1 -1
  792. package/lib/components/table-v2/index.d.ts +4 -0
  793. package/lib/components/table-v2/index.js +16 -0
  794. package/lib/components/table-v2/index.js.map +1 -0
  795. package/lib/components/table-v2/src/cell.d.ts +11 -0
  796. package/lib/components/table-v2/src/cell.js +26 -0
  797. package/lib/components/table-v2/src/cell.js.map +1 -0
  798. package/lib/components/table-v2/src/column.d.ts +19 -0
  799. package/lib/components/table-v2/src/column.js +45 -0
  800. package/lib/components/table-v2/src/column.js.map +1 -0
  801. package/lib/components/table-v2/src/common.d.ts +42 -0
  802. package/lib/components/table-v2/src/common.js +51 -0
  803. package/lib/components/table-v2/src/common.js.map +1 -0
  804. package/lib/components/table-v2/src/components/cell.d.ts +4 -0
  805. package/lib/components/table-v2/src/components/cell.js +26 -0
  806. package/lib/components/table-v2/src/components/cell.js.map +1 -0
  807. package/lib/components/table-v2/src/components/expand-icon.d.ts +11 -0
  808. package/lib/components/table-v2/src/components/expand-icon.js +30 -0
  809. package/lib/components/table-v2/src/components/expand-icon.js.map +1 -0
  810. package/lib/components/table-v2/src/components/header-cell.d.ts +4 -0
  811. package/lib/components/table-v2/src/components/header-cell.js +19 -0
  812. package/lib/components/table-v2/src/components/header-cell.js.map +1 -0
  813. package/lib/components/table-v2/src/components/header-row.d.ts +27 -0
  814. package/lib/components/table-v2/src/components/header-row.js +44 -0
  815. package/lib/components/table-v2/src/components/header-row.js.map +1 -0
  816. package/lib/components/table-v2/src/components/header.d.ts +44 -0
  817. package/lib/components/table-v2/src/components/header.js +100 -0
  818. package/lib/components/table-v2/src/components/header.js.map +1 -0
  819. package/lib/components/table-v2/src/components/index.d.ts +10 -0
  820. package/lib/components/table-v2/src/components/index.js +22 -0
  821. package/lib/components/table-v2/src/components/index.js.map +1 -0
  822. package/lib/components/table-v2/src/components/row.d.ts +68 -0
  823. package/lib/components/table-v2/src/components/row.js +208 -0
  824. package/lib/components/table-v2/src/components/row.js.map +1 -0
  825. package/lib/components/table-v2/src/components/sort-icon.d.ts +8 -0
  826. package/lib/components/table-v2/src/components/sort-icon.js +23 -0
  827. package/lib/components/table-v2/src/components/sort-icon.js.map +1 -0
  828. package/lib/components/table-v2/src/composables/index.d.ts +5 -0
  829. package/lib/components/table-v2/src/composables/index.js +18 -0
  830. package/lib/components/table-v2/src/composables/index.js.map +1 -0
  831. package/lib/components/table-v2/src/composables/use-columns.d.ts +20 -0
  832. package/lib/components/table-v2/src/composables/use-columns.js +92 -0
  833. package/lib/components/table-v2/src/composables/use-columns.js.map +1 -0
  834. package/lib/components/table-v2/src/composables/use-data.d.ts +17 -0
  835. package/lib/components/table-v2/src/composables/use-data.js +48 -0
  836. package/lib/components/table-v2/src/composables/use-data.js.map +1 -0
  837. package/lib/components/table-v2/src/composables/use-row.d.ts +32 -0
  838. package/lib/components/table-v2/src/composables/use-row.js +127 -0
  839. package/lib/components/table-v2/src/composables/use-row.js.map +1 -0
  840. package/lib/components/table-v2/src/composables/use-scrollbar.d.ts +26 -0
  841. package/lib/components/table-v2/src/composables/use-scrollbar.js +59 -0
  842. package/lib/components/table-v2/src/composables/use-scrollbar.js.map +1 -0
  843. package/lib/components/table-v2/src/composables/use-styles.d.ts +25 -0
  844. package/lib/components/table-v2/src/composables/use-styles.js +91 -0
  845. package/lib/components/table-v2/src/composables/use-styles.js.map +1 -0
  846. package/lib/components/table-v2/src/composables/utils.d.ts +3 -0
  847. package/lib/components/table-v2/src/composables/utils.js +30 -0
  848. package/lib/components/table-v2/src/composables/utils.js.map +1 -0
  849. package/lib/components/table-v2/src/constants.d.ts +17 -0
  850. package/lib/components/table-v2/src/constants.js +31 -0
  851. package/lib/components/table-v2/src/constants.js.map +1 -0
  852. package/lib/components/table-v2/src/grid.d.ts +39 -0
  853. package/lib/components/table-v2/src/grid.js +46 -0
  854. package/lib/components/table-v2/src/grid.js.map +1 -0
  855. package/lib/components/table-v2/src/header-cell.d.ts +7 -0
  856. package/lib/components/table-v2/src/header-cell.js +16 -0
  857. package/lib/components/table-v2/src/header-cell.js.map +1 -0
  858. package/lib/components/table-v2/src/header-row.d.ts +8 -0
  859. package/lib/components/table-v2/src/header-row.js +17 -0
  860. package/lib/components/table-v2/src/header-row.js.map +1 -0
  861. package/lib/components/table-v2/src/header.d.ts +13 -0
  862. package/lib/components/table-v2/src/header.js +37 -0
  863. package/lib/components/table-v2/src/header.js.map +1 -0
  864. package/lib/components/table-v2/src/private.d.ts +1 -0
  865. package/lib/components/table-v2/src/private.js +8 -0
  866. package/lib/components/table-v2/src/private.js.map +1 -0
  867. package/lib/components/table-v2/src/renderers/cell.d.ts +10 -0
  868. package/lib/components/table-v2/src/renderers/cell.js +95 -0
  869. package/lib/components/table-v2/src/renderers/cell.js.map +1 -0
  870. package/lib/components/table-v2/src/renderers/empty.d.ts +7 -0
  871. package/lib/components/table-v2/src/renderers/empty.js +19 -0
  872. package/lib/components/table-v2/src/renderers/empty.js.map +1 -0
  873. package/lib/components/table-v2/src/renderers/footer.d.ts +7 -0
  874. package/lib/components/table-v2/src/renderers/footer.js +19 -0
  875. package/lib/components/table-v2/src/renderers/footer.js.map +1 -0
  876. package/lib/components/table-v2/src/renderers/header-cell.d.ts +10 -0
  877. package/lib/components/table-v2/src/renderers/header-cell.js +69 -0
  878. package/lib/components/table-v2/src/renderers/header-cell.js.map +1 -0
  879. package/lib/components/table-v2/src/renderers/header.d.ts +9 -0
  880. package/lib/components/table-v2/src/renderers/header.js +43 -0
  881. package/lib/components/table-v2/src/renderers/header.js.map +1 -0
  882. package/lib/components/table-v2/src/renderers/left-table.d.ts +8 -0
  883. package/lib/components/table-v2/src/renderers/left-table.js +28 -0
  884. package/lib/components/table-v2/src/renderers/left-table.js.map +1 -0
  885. package/lib/components/table-v2/src/renderers/main-table.d.ts +8 -0
  886. package/lib/components/table-v2/src/renderers/main-table.js +26 -0
  887. package/lib/components/table-v2/src/renderers/main-table.js.map +1 -0
  888. package/lib/components/table-v2/src/renderers/overlay.d.ts +3 -0
  889. package/lib/components/table-v2/src/renderers/overlay.js +19 -0
  890. package/lib/components/table-v2/src/renderers/overlay.js.map +1 -0
  891. package/lib/components/table-v2/src/renderers/right-table.d.ts +8 -0
  892. package/lib/components/table-v2/src/renderers/right-table.js +28 -0
  893. package/lib/components/table-v2/src/renderers/right-table.js.map +1 -0
  894. package/lib/components/table-v2/src/renderers/row.d.ts +10 -0
  895. package/lib/components/table-v2/src/renderers/row.js +81 -0
  896. package/lib/components/table-v2/src/renderers/row.js.map +1 -0
  897. package/lib/components/table-v2/src/row.d.ts +54 -0
  898. package/lib/components/table-v2/src/row.js +48 -0
  899. package/lib/components/table-v2/src/row.js.map +1 -0
  900. package/lib/components/table-v2/src/table-grid.d.ts +104 -0
  901. package/lib/components/table-v2/src/table-grid.js +225 -0
  902. package/lib/components/table-v2/src/table-grid.js.map +1 -0
  903. package/lib/components/table-v2/src/table-v2.d.ts +142 -0
  904. package/lib/components/table-v2/src/table-v2.js +254 -0
  905. package/lib/components/table-v2/src/table-v2.js.map +1 -0
  906. package/lib/components/table-v2/src/table.d.ts +91 -0
  907. package/lib/components/table-v2/src/table.js +110 -0
  908. package/lib/components/table-v2/src/table.js.map +1 -0
  909. package/lib/components/table-v2/src/tokens.d.ts +10 -0
  910. package/lib/components/table-v2/src/tokens.js +8 -0
  911. package/lib/components/table-v2/src/tokens.js.map +1 -0
  912. package/lib/components/table-v2/src/types.d.ts +88 -0
  913. package/lib/components/table-v2/src/types.js +3 -0
  914. package/lib/components/table-v2/src/types.js.map +1 -0
  915. package/lib/components/table-v2/src/use-table.d.ts +49 -0
  916. package/lib/components/table-v2/src/use-table.js +154 -0
  917. package/lib/components/table-v2/src/use-table.js.map +1 -0
  918. package/lib/components/table-v2/src/utils.d.ts +7 -0
  919. package/lib/components/table-v2/src/utils.js +30 -0
  920. package/lib/components/table-v2/src/utils.js.map +1 -0
  921. package/lib/components/tag/index.d.ts +4 -4
  922. package/lib/components/tag/src/tag.d.ts +1 -1
  923. package/lib/components/tag/src/tag.vue.d.ts +4 -4
  924. package/lib/components/time-select/index.d.ts +28 -0
  925. package/lib/components/time-select/src/time-select.js +6 -2
  926. package/lib/components/time-select/src/time-select.js.map +1 -1
  927. package/lib/components/time-select/src/time-select.vue.d.ts +14 -0
  928. package/lib/components/tooltip/src/content.vue.d.ts +2 -2
  929. package/lib/components/tree-select/src/tree-select.js +1 -0
  930. package/lib/components/tree-select/src/tree-select.js.map +1 -1
  931. package/lib/components/tree-select/src/tree.js +16 -3
  932. package/lib/components/tree-select/src/tree.js.map +1 -1
  933. package/lib/components/tree-select/style/css.d.ts +1 -1
  934. package/lib/components/tree-select/style/css.js +1 -1
  935. package/lib/components/upload/index.d.ts +16 -12
  936. package/lib/components/upload/src/upload-content.d.ts +1 -1
  937. package/lib/components/upload/src/upload-content.vue.d.ts +4 -3
  938. package/lib/components/upload/src/upload-content2.js +3 -1
  939. package/lib/components/upload/src/upload-content2.js.map +1 -1
  940. package/lib/components/upload/src/upload-list2.js +4 -2
  941. package/lib/components/upload/src/upload-list2.js.map +1 -1
  942. package/lib/components/upload/src/upload.d.ts +2 -2
  943. package/lib/components/upload/src/upload.js +1 -1
  944. package/lib/components/upload/src/upload.js.map +1 -1
  945. package/lib/components/upload/src/upload.vue.d.ts +16 -12
  946. package/lib/components/virtual-list/index.d.ts +3 -1
  947. package/lib/components/virtual-list/index.js +1 -1
  948. package/lib/components/virtual-list/src/builders/build-grid.d.ts +45 -6
  949. package/lib/components/virtual-list/src/builders/build-grid.js +53 -12
  950. package/lib/components/virtual-list/src/builders/build-grid.js.map +1 -1
  951. package/lib/components/virtual-list/src/builders/build-list.d.ts +16 -2
  952. package/lib/components/virtual-list/src/builders/build-list.js +7 -5
  953. package/lib/components/virtual-list/src/builders/build-list.js.map +1 -1
  954. package/lib/components/virtual-list/src/components/dynamic-size-grid.d.ts +38 -5
  955. package/lib/components/virtual-list/src/components/dynamic-size-grid.js +35 -3
  956. package/lib/components/virtual-list/src/components/dynamic-size-grid.js.map +1 -1
  957. package/lib/components/virtual-list/src/components/dynamic-size-list.d.ts +16 -2
  958. package/lib/components/virtual-list/src/components/fixed-size-grid.d.ts +24 -3
  959. package/lib/components/virtual-list/src/components/fixed-size-list.d.ts +16 -2
  960. package/lib/components/virtual-list/src/components/scrollbar.d.ts +14 -0
  961. package/lib/components/virtual-list/src/components/scrollbar.js +26 -27
  962. package/lib/components/virtual-list/src/components/scrollbar.js.map +1 -1
  963. package/lib/components/virtual-list/src/defaults.d.ts +1 -1
  964. package/lib/components/virtual-list/src/defaults.js +1 -1
  965. package/lib/components/virtual-list/src/defaults.js.map +1 -1
  966. package/lib/components/virtual-list/src/hooks/use-grid-wheel.js +7 -2
  967. package/lib/components/virtual-list/src/hooks/use-grid-wheel.js.map +1 -1
  968. package/lib/components/virtual-list/src/props.d.ts +14 -1
  969. package/lib/components/virtual-list/src/props.js +19 -0
  970. package/lib/components/virtual-list/src/props.js.map +1 -1
  971. package/lib/components/virtual-list/src/types.d.ts +33 -0
  972. package/lib/components/virtual-list/src/utils.d.ts +10 -5
  973. package/lib/components/virtual-list/src/utils.js.map +1 -1
  974. package/lib/constants/index.js +1 -0
  975. package/lib/constants/index.js.map +1 -1
  976. package/lib/constants/size.d.ts +5 -0
  977. package/lib/constants/size.js +6 -0
  978. package/lib/constants/size.js.map +1 -1
  979. package/lib/directives/mousewheel/index.js +1 -7
  980. package/lib/directives/mousewheel/index.js.map +1 -1
  981. package/lib/hooks/index.d.ts +1 -0
  982. package/lib/hooks/index.js +2 -0
  983. package/lib/hooks/index.js.map +1 -1
  984. package/lib/hooks/use-cursor/index.d.ts +2 -0
  985. package/lib/hooks/use-cursor/index.js +50 -0
  986. package/lib/hooks/use-cursor/index.js.map +1 -0
  987. package/lib/hooks/use-draggable/index.js +1 -1
  988. package/lib/hooks/use-namespace/index.d.ts +1 -0
  989. package/lib/hooks/use-namespace/index.js.map +1 -1
  990. package/lib/hooks/use-popper-container/index.js +8 -5
  991. package/lib/hooks/use-popper-container/index.js.map +1 -1
  992. package/lib/index.js +3 -0
  993. package/lib/index.js.map +1 -1
  994. package/lib/utils/animation.js +3 -1
  995. package/lib/utils/animation.js.map +1 -1
  996. package/lib/utils/dom/index.js +1 -0
  997. package/lib/utils/dom/index.js.map +1 -1
  998. package/lib/utils/dom/style.d.ts +1 -0
  999. package/lib/utils/dom/style.js +13 -0
  1000. package/lib/utils/dom/style.js.map +1 -1
  1001. package/lib/utils/index.js +3 -2
  1002. package/lib/utils/index.js.map +1 -1
  1003. package/lib/utils/vue/index.d.ts +1 -1
  1004. package/lib/utils/vue/index.js +2 -2
  1005. package/lib/utils/vue/refs.js +1 -1
  1006. package/lib/utils/vue/refs.js.map +1 -1
  1007. package/lib/utils/vue/size.d.ts +1 -0
  1008. package/lib/utils/vue/size.js +13 -0
  1009. package/lib/utils/vue/size.js.map +1 -0
  1010. package/lib/version.d.ts +1 -1
  1011. package/lib/version.js +1 -1
  1012. package/lib/version.js.map +1 -1
  1013. package/package.json +24 -21
  1014. package/tags.json +1 -1
  1015. package/theme-chalk/base.css +1 -1
  1016. package/theme-chalk/el-alert.css +1 -1
  1017. package/theme-chalk/el-autocomplete.css +1 -1
  1018. package/theme-chalk/el-backtop.css +1 -1
  1019. package/theme-chalk/el-badge.css +1 -1
  1020. package/theme-chalk/el-button.css +1 -1
  1021. package/theme-chalk/el-calendar.css +1 -1
  1022. package/theme-chalk/el-cascader-panel.css +1 -1
  1023. package/theme-chalk/el-cascader.css +1 -1
  1024. package/theme-chalk/el-check-tag.css +1 -1
  1025. package/theme-chalk/el-checkbox-button.css +1 -1
  1026. package/theme-chalk/el-checkbox.css +1 -1
  1027. package/theme-chalk/el-color-picker.css +1 -1
  1028. package/theme-chalk/el-date-picker.css +1 -1
  1029. package/theme-chalk/el-descriptions.css +1 -1
  1030. package/theme-chalk/el-dialog.css +1 -1
  1031. package/theme-chalk/el-divider.css +1 -1
  1032. package/theme-chalk/el-drawer.css +1 -1
  1033. package/theme-chalk/el-dropdown.css +1 -1
  1034. package/theme-chalk/el-form.css +1 -1
  1035. package/theme-chalk/el-input-number.css +1 -1
  1036. package/theme-chalk/el-input.css +1 -1
  1037. package/theme-chalk/el-menu.css +1 -1
  1038. package/theme-chalk/el-message-box.css +1 -1
  1039. package/theme-chalk/el-notification.css +1 -1
  1040. package/theme-chalk/el-option-item.css +1 -1
  1041. package/theme-chalk/el-option.css +1 -1
  1042. package/theme-chalk/el-pagination.css +1 -1
  1043. package/theme-chalk/el-popper.css +1 -1
  1044. package/theme-chalk/el-radio-button.css +1 -1
  1045. package/theme-chalk/el-radio.css +1 -1
  1046. package/theme-chalk/el-result.css +1 -1
  1047. package/theme-chalk/el-select-dropdown.css +1 -1
  1048. package/theme-chalk/el-select-v2.css +1 -1
  1049. package/theme-chalk/el-select.css +1 -1
  1050. package/theme-chalk/el-step.css +1 -1
  1051. package/theme-chalk/el-table-v2.css +1 -0
  1052. package/theme-chalk/el-table.css +1 -1
  1053. package/theme-chalk/el-tabs.css +1 -1
  1054. package/theme-chalk/el-tag.css +1 -1
  1055. package/theme-chalk/el-time-picker.css +1 -1
  1056. package/theme-chalk/el-time-select.css +1 -1
  1057. package/theme-chalk/el-transfer.css +1 -1
  1058. package/theme-chalk/el-tree.css +1 -1
  1059. package/theme-chalk/el-upload.css +1 -1
  1060. package/theme-chalk/el-var.css +1 -1
  1061. package/theme-chalk/el-virtual-list.css +1 -1
  1062. package/theme-chalk/index.css +1 -1
  1063. package/theme-chalk/src/alert.scss +18 -14
  1064. package/theme-chalk/src/autocomplete.scss +9 -9
  1065. package/theme-chalk/src/badge.scss +14 -12
  1066. package/theme-chalk/src/button.scss +2 -0
  1067. package/theme-chalk/src/calendar.scss +2 -2
  1068. package/theme-chalk/src/card.scss +11 -10
  1069. package/theme-chalk/src/cascader.scss +9 -14
  1070. package/theme-chalk/src/check-tag.scss +6 -6
  1071. package/theme-chalk/src/checkbox-button.scss +1 -4
  1072. package/theme-chalk/src/checkbox.scss +1 -1
  1073. package/theme-chalk/src/color-picker.scss +74 -47
  1074. package/theme-chalk/src/common/var.scss +21 -37
  1075. package/theme-chalk/src/dark/css-vars.scss +22 -2
  1076. package/theme-chalk/src/dark/var.scss +130 -1
  1077. package/theme-chalk/src/date-picker/date-picker.scss +1 -1
  1078. package/theme-chalk/src/date-picker/month-table.scss +1 -1
  1079. package/theme-chalk/src/date-picker/picker-panel.scss +3 -3
  1080. package/theme-chalk/src/date-picker/picker.scss +16 -3
  1081. package/theme-chalk/src/date-picker/time-picker.scss +2 -2
  1082. package/theme-chalk/src/date-picker/time-spinner.scss +1 -1
  1083. package/theme-chalk/src/date-picker/year-table.scss +2 -2
  1084. package/theme-chalk/src/descriptions.scss +1 -1
  1085. package/theme-chalk/src/dialog.scss +6 -6
  1086. package/theme-chalk/src/divider.scss +1 -1
  1087. package/theme-chalk/src/drawer.scss +1 -1
  1088. package/theme-chalk/src/dropdown.scss +2 -2
  1089. package/theme-chalk/src/form.scss +4 -2
  1090. package/theme-chalk/src/index.scss +1 -0
  1091. package/theme-chalk/src/input-number.scss +9 -8
  1092. package/theme-chalk/src/input.scss +121 -173
  1093. package/theme-chalk/src/menu.scss +1 -1
  1094. package/theme-chalk/src/message-box.scss +1 -1
  1095. package/theme-chalk/src/mixins/_var.scss +15 -17
  1096. package/theme-chalk/src/mixins/mixins.scss +1 -1
  1097. package/theme-chalk/src/notification.scss +2 -2
  1098. package/theme-chalk/src/option.scss +0 -4
  1099. package/theme-chalk/src/pagination.scss +19 -16
  1100. package/theme-chalk/src/popper.scss +11 -11
  1101. package/theme-chalk/src/radio-button.scss +1 -4
  1102. package/theme-chalk/src/radio.scss +0 -1
  1103. package/theme-chalk/src/result.scss +0 -2
  1104. package/theme-chalk/src/select/common.scss +1 -1
  1105. package/theme-chalk/src/select-v2.scss +1 -1
  1106. package/theme-chalk/src/select.scss +22 -16
  1107. package/theme-chalk/src/step.scss +1 -1
  1108. package/theme-chalk/src/table-column.scss +1 -1
  1109. package/theme-chalk/src/table-v2.scss +213 -0
  1110. package/theme-chalk/src/table.scss +1 -1
  1111. package/theme-chalk/src/tabs.scss +6 -6
  1112. package/theme-chalk/src/tag.scss +24 -20
  1113. package/theme-chalk/src/transfer.scss +2 -2
  1114. package/theme-chalk/src/tree.scss +1 -1
  1115. package/theme-chalk/src/upload.scss +28 -35
  1116. package/theme-chalk/src/var.scss +32 -33
  1117. package/theme-chalk/src/virtual-list.scss +3 -0
  1118. package/web-types.json +1 -1
  1119. package/es/utils/vue/style.d.ts +0 -1
  1120. package/es/utils/vue/style.mjs +0 -19
  1121. package/es/utils/vue/style.mjs.map +0 -1
  1122. package/lib/utils/vue/style.d.ts +0 -1
  1123. package/lib/utils/vue/style.js +0 -23
  1124. package/lib/utils/vue/style.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"style-helper.mjs","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":[],"mappings":";;;;;;;;;;AAoBA,SAAS,QAAQ,CAAC,KAAK,EAAE,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S,CAAC;AACV,OAAO;AACP,KAAK;AACL,IAAI,OAAO,EAAE,CAAC;AACd,GAAG,CAAC,CAAC;AACL,EAAE,OAAO;AACT,IAAI,QAAQ;AACZ,IAAI,cAAc;AAClB,IAAI,cAAc;AAClB,IAAI,OAAO;AACX,IAAI,gBAAgB;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;;;;"}
1
+ {"version":3,"file":"style-helper.mjs","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"],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;AACxC,SAAS,CAAC;AACV,OAAO;AACP,KAAK;AACL,IAAI,OAAO,EAAE,CAAC;AACd,GAAG,CAAC,CAAC;AACL,EAAE,OAAO;AACT,IAAI,QAAQ;AACZ,IAAI,cAAc;AAClB,IAAI,cAAc;AAClB,IAAI,OAAO;AACX,IAAI,gBAAgB;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;;;;"}
@@ -3,6 +3,12 @@ import '../../../../utils/index.mjs';
3
3
  import { parseWidth, parseMinWidth } from '../util.mjs';
4
4
  import { hasOwn } from '@vue/shared';
5
5
 
6
+ function getAllAliases(props, aliases) {
7
+ return props.reduce((prev, cur) => {
8
+ prev[cur] = cur;
9
+ return prev;
10
+ }, aliases);
11
+ }
6
12
  function useWatcher(owner, props_) {
7
13
  const instance = getCurrentInstance();
8
14
  const registerComplexWatchers = () => {
@@ -11,10 +17,7 @@ function useWatcher(owner, props_) {
11
17
  realWidth: "width",
12
18
  realMinWidth: "minWidth"
13
19
  };
14
- const allAliases = props.reduce((prev, cur) => {
15
- prev[cur] = cur;
16
- return prev;
17
- }, aliases);
20
+ const allAliases = getAllAliases(props, aliases);
18
21
  Object.keys(allAliases).forEach((key) => {
19
22
  const columnKey = aliases[key];
20
23
  if (hasOwn(props_, columnKey)) {
@@ -51,10 +54,7 @@ function useWatcher(owner, props_) {
51
54
  align: "realAlign",
52
55
  headerAlign: "realHeaderAlign"
53
56
  };
54
- const allAliases = props.reduce((prev, cur) => {
55
- prev[cur] = cur;
56
- return prev;
57
- }, aliases);
57
+ const allAliases = getAllAliases(props, aliases);
58
58
  Object.keys(allAliases).forEach((key) => {
59
59
  const columnKey = aliases[key];
60
60
  if (hasOwn(props_, columnKey)) {
@@ -1 +1 @@
1
- {"version":3,"file":"watcher-helper.mjs","sources":["../../../../../../../packages/components/table/src/table-column/watcher-helper.ts"],"sourcesContent":["import { getCurrentInstance, watch } from 'vue'\nimport { hasOwn } from '@element-plus/utils'\nimport { parseMinWidth, parseWidth } from '../util'\n\nimport type { ComputedRef } from 'vue'\nimport type { TableColumn, TableColumnCtx, ValueOf } from './defaults'\n\nfunction useWatcher<T>(\n owner: ComputedRef<any>,\n props_: Partial<TableColumnCtx<T>>\n) {\n const instance = getCurrentInstance() as TableColumn<T>\n const registerComplexWatchers = () => {\n const props = ['fixed']\n const aliases = {\n realWidth: 'width',\n realMinWidth: 'minWidth',\n }\n const allAliases = props.reduce((prev, cur) => {\n prev[cur] = cur\n return prev\n }, aliases)\n\n Object.keys(allAliases).forEach((key) => {\n const columnKey = aliases[key]\n if (hasOwn(props_, columnKey)) {\n watch(\n () => props_[columnKey],\n (newVal) => {\n let value: ValueOf<TableColumnCtx<T>> = newVal\n if (columnKey === 'width' && key === 'realWidth') {\n value = parseWidth(newVal)\n }\n if (columnKey === 'minWidth' && key === 'realMinWidth') {\n value = parseMinWidth(newVal)\n }\n instance.columnConfig.value[columnKey as any] = value\n instance.columnConfig.value[key] = value\n const updateColumns = columnKey === 'fixed'\n owner.value.store.scheduleLayout(updateColumns)\n }\n )\n }\n })\n }\n const registerNormalWatchers = () => {\n const props = [\n 'label',\n 'filters',\n 'filterMultiple',\n 'sortable',\n 'index',\n 'formatter',\n 'className',\n 'labelClassName',\n 'showOverflowTooltip',\n ]\n const aliases = {\n property: 'prop',\n align: 'realAlign',\n headerAlign: 'realHeaderAlign',\n }\n const allAliases = props.reduce((prev, cur) => {\n prev[cur] = cur\n return prev\n }, aliases)\n Object.keys(allAliases).forEach((key) => {\n const columnKey = aliases[key]\n if (hasOwn(props_, columnKey)) {\n watch(\n () => props_[columnKey],\n (newVal) => {\n instance.columnConfig.value[key] = newVal\n }\n )\n }\n })\n }\n\n return {\n registerComplexWatchers,\n registerNormalWatchers,\n }\n}\n\nexport default useWatcher\n"],"names":[],"mappings":";;;;;AAGA,SAAS,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE;AACnC,EAAE,MAAM,QAAQ,GAAG,kBAAkB,EAAE,CAAC;AACxC,EAAE,MAAM,uBAAuB,GAAG,MAAM;AACxC,IAAI,MAAM,KAAK,GAAG,CAAC,OAAO,CAAC,CAAC;AAC5B,IAAI,MAAM,OAAO,GAAG;AACpB,MAAM,SAAS,EAAE,OAAO;AACxB,MAAM,YAAY,EAAE,UAAU;AAC9B,KAAK,CAAC;AACN,IAAI,MAAM,UAAU,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,GAAG,KAAK;AACnD,MAAM,IAAI,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC;AACtB,MAAM,OAAO,IAAI,CAAC;AAClB,KAAK,EAAE,OAAO,CAAC,CAAC;AAChB,IAAI,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,KAAK;AAC7C,MAAM,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;AACrC,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,EAAE;AACrC,QAAQ,KAAK,CAAC,MAAM,MAAM,CAAC,SAAS,CAAC,EAAE,CAAC,MAAM,KAAK;AACnD,UAAU,IAAI,KAAK,GAAG,MAAM,CAAC;AAC7B,UAAU,IAAI,SAAS,KAAK,OAAO,IAAI,GAAG,KAAK,WAAW,EAAE;AAC5D,YAAY,KAAK,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC;AACvC,WAAW;AACX,UAAU,IAAI,SAAS,KAAK,UAAU,IAAI,GAAG,KAAK,cAAc,EAAE;AAClE,YAAY,KAAK,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC;AAC1C,WAAW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CAAC,MAAM,KAAK;AACnD,UAAU,QAAQ,CAAC,YAAY,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC;AACpD,SAAS,CAAC,CAAC;AACX,OAAO;AACP,KAAK,CAAC,CAAC;AACP,GAAG,CAAC;AACJ,EAAE,OAAO;AACT,IAAI,uBAAuB;AAC3B,IAAI,sBAAsB;AAC1B,GAAG,CAAC;AACJ;;;;"}
1
+ {"version":3,"file":"watcher-helper.mjs","sources":["../../../../../../../packages/components/table/src/table-column/watcher-helper.ts"],"sourcesContent":["import { getCurrentInstance, watch } from 'vue'\nimport { hasOwn } from '@element-plus/utils'\nimport { parseMinWidth, parseWidth } from '../util'\n\nimport type { ComputedRef } from 'vue'\nimport type { TableColumn, TableColumnCtx, ValueOf } from './defaults'\n\nfunction getAllAliases(props, aliases) {\n return props.reduce((prev, cur) => {\n prev[cur] = cur\n return prev\n }, aliases)\n}\nfunction useWatcher<T>(\n owner: ComputedRef<any>,\n props_: Partial<TableColumnCtx<T>>\n) {\n const instance = getCurrentInstance() as TableColumn<T>\n const registerComplexWatchers = () => {\n const props = ['fixed']\n const aliases = {\n realWidth: 'width',\n realMinWidth: 'minWidth',\n }\n const allAliases = getAllAliases(props, aliases)\n Object.keys(allAliases).forEach((key) => {\n const columnKey = aliases[key]\n if (hasOwn(props_, columnKey)) {\n watch(\n () => props_[columnKey],\n (newVal) => {\n let value: ValueOf<TableColumnCtx<T>> = newVal\n if (columnKey === 'width' && key === 'realWidth') {\n value = parseWidth(newVal)\n }\n if (columnKey === 'minWidth' && key === 'realMinWidth') {\n value = parseMinWidth(newVal)\n }\n instance.columnConfig.value[columnKey as any] = value\n instance.columnConfig.value[key] = value\n const updateColumns = columnKey === 'fixed'\n owner.value.store.scheduleLayout(updateColumns)\n }\n )\n }\n })\n }\n const registerNormalWatchers = () => {\n const props = [\n 'label',\n 'filters',\n 'filterMultiple',\n 'sortable',\n 'index',\n 'formatter',\n 'className',\n 'labelClassName',\n 'showOverflowTooltip',\n ]\n const aliases = {\n property: 'prop',\n align: 'realAlign',\n headerAlign: 'realHeaderAlign',\n }\n const allAliases = getAllAliases(props, aliases)\n Object.keys(allAliases).forEach((key) => {\n const columnKey = aliases[key]\n if (hasOwn(props_, columnKey)) {\n watch(\n () => props_[columnKey],\n (newVal) => {\n instance.columnConfig.value[key] = newVal\n }\n )\n }\n })\n }\n\n return {\n registerComplexWatchers,\n registerNormalWatchers,\n }\n}\n\nexport default useWatcher\n"],"names":[],"mappings":";;;;;AAGA,SAAS,aAAa,CAAC,KAAK,EAAE,OAAO,EAAE;AACvC,EAAE,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,GAAG,KAAK;AACrC,IAAI,IAAI,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC;AACpB,IAAI,OAAO,IAAI,CAAC;AAChB,GAAG,EAAE,OAAO,CAAC,CAAC;AACd,CAAC;AACD,SAAS,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE;AACnC,EAAE,MAAM,QAAQ,GAAG,kBAAkB,EAAE,CAAC;AACxC,EAAE,MAAM,uBAAuB,GAAG,MAAM;AACxC,IAAI,MAAM,KAAK,GAAG,CAAC,OAAO,CAAC,CAAC;AAC5B,IAAI,MAAM,OAAO,GAAG;AACpB,MAAM,SAAS,EAAE,OAAO;AACxB,MAAM,YAAY,EAAE,UAAU;AAC9B,KAAK,CAAC;AACN,IAAI,MAAM,UAAU,GAAG,aAAa,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;AACrD,IAAI,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,KAAK;AAC7C,MAAM,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;AACrC,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,EAAE;AACrC,QAAQ,KAAK,CAAC,MAAM,MAAM,CAAC,SAAS,CAAC,EAAE,CAAC,MAAM,KAAK;AACnD,U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AAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;AACrC,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,EAAE;AACrC,QAAQ,KAAK,CAAC,MAAM,MAAM,CAAC,SAAS,CAAC,EAAE,CAAC,MAAM,KAAK;AACnD,UAAU,QAAQ,CAAC,YAAY,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC;AACpD,SAAS,CAAC,CAAC;AACX,OAAO;AACP,KAAK,CAAC,CAAC;AACP,GAAG,CAAC;AACJ,EAAE,OAAO;AACT,IAAI,uBAAuB;AAC3B,IAAI,sBAAsB;AAC1B,GAAG,CAAC;AACJ;;;;"}
@@ -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';
@@ -0,0 +1,4 @@
1
+ export { Alignment, FixedDir, SortOrder } from './src/constants.mjs';
2
+ export { default as TableV2 } from './src/table-v2.mjs';
3
+ export { tableV2Props } from './src/table.mjs';
4
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
@@ -0,0 +1,11 @@
1
+ import type { ExtractPropTypes, StyleValue } from 'vue';
2
+ export declare const tableV2CellProps: {
3
+ readonly class: StringConstructor;
4
+ readonly cellData: import("element-plus/es/utils").BuildPropReturn<import("element-plus/es/utils").PropWrapper<any>, unknown, unknown, unknown, unknown>;
5
+ readonly column: import("element-plus/es/utils").BuildPropReturn<import("element-plus/es/utils").PropWrapper<import("./common").AnyColumn>, unknown, unknown, unknown, unknown>;
6
+ readonly columnIndex: NumberConstructor;
7
+ readonly style: import("element-plus/es/utils").BuildPropReturn<import("element-plus/es/utils").PropWrapper<StyleValue>, unknown, unknown, unknown, unknown>;
8
+ readonly rowData: import("element-plus/es/utils").BuildPropReturn<import("element-plus/es/utils").PropWrapper<any>, unknown, unknown, unknown, unknown>;
9
+ readonly rowIndex: NumberConstructor;
10
+ };
11
+ export declare type TableV2CellProps = ExtractPropTypes<typeof tableV2CellProps>;
@@ -0,0 +1,22 @@
1
+ import '../../../utils/index.mjs';
2
+ import { column } from './common.mjs';
3
+ import { buildProps, definePropType } from '../../../utils/vue/props.mjs';
4
+
5
+ const tableV2CellProps = buildProps({
6
+ class: String,
7
+ cellData: {
8
+ type: definePropType([String, Boolean, Number, Object])
9
+ },
10
+ column,
11
+ columnIndex: Number,
12
+ style: {
13
+ type: definePropType([String, Array, Object])
14
+ },
15
+ rowData: {
16
+ type: definePropType(Object)
17
+ },
18
+ rowIndex: Number
19
+ });
20
+
21
+ export { tableV2CellProps };
22
+ //# sourceMappingURL=cell.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cell.mjs","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":[],"mappings":";;;;AAEY,MAAC,gBAAgB,GAAG,UAAU,CAAC;AAC3C,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAC3D,GAAG;AACH,EAAE,MAAM;AACR,EAAE,WAAW,EAAE,MAAM;AACrB,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;AACjD,GAAG;AACH,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,QAAQ,EAAE,MAAM;AAClB,CAAC;;;;"}
@@ -0,0 +1,19 @@
1
+ import type { CSSProperties, Component, ExtractPropTypes } from 'vue';
2
+ import type { Alignment, CellRenderer, CellRendererParams, HeaderCellRenderer, HeaderCellRendererParams } from './types';
3
+ export declare const tableV2ColumnProps: {
4
+ readonly align: import("element-plus/es/utils").BuildPropReturn<import("element-plus/es/utils").PropWrapper<Alignment>, "left", unknown, unknown, unknown>;
5
+ readonly class: StringConstructor;
6
+ readonly fixed: import("element-plus/es/utils").BuildPropReturn<import("element-plus/es/utils").PropWrapper<boolean | import("./constants").FixedDir>, false, unknown, unknown, unknown>;
7
+ readonly headerClass: StringConstructor;
8
+ readonly hidden: BooleanConstructor;
9
+ readonly resizable: BooleanConstructor;
10
+ readonly style: import("element-plus/es/utils").BuildPropReturn<import("element-plus/es/utils").PropWrapper<CSSProperties>, unknown, unknown, unknown, unknown>;
11
+ readonly sortable: BooleanConstructor;
12
+ readonly title: StringConstructor;
13
+ readonly maxWidth: import("element-plus/es/utils").BuildPropReturn<NumberConstructor, undefined, unknown, unknown, unknown>;
14
+ readonly minWidth: import("element-plus/es/utils").BuildPropReturn<NumberConstructor, undefined, unknown, unknown, unknown>;
15
+ readonly width: import("element-plus/es/utils").BuildPropReturn<NumberConstructor, unknown, true, unknown, unknown>;
16
+ readonly cellRenderer: import("element-plus/es/utils").BuildPropReturn<import("element-plus/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-plus/es/utils").BuildPropReturn<import("element-plus/es/utils").PropWrapper<HeaderCellRenderer<any> | Component<HeaderCellRendererParams<any>, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>, unknown, unknown, unknown, unknown>;
18
+ };
19
+ export declare type TableV2ColumnProps = ExtractPropTypes<typeof tableV2ColumnProps>;
@@ -0,0 +1,41 @@
1
+ import '../../../utils/index.mjs';
2
+ import { buildProps, definePropType } from '../../../utils/vue/props.mjs';
3
+
4
+ const widthType = {
5
+ type: Number,
6
+ default: void 0
7
+ };
8
+ const tableV2ColumnProps = buildProps({
9
+ align: {
10
+ type: definePropType(String),
11
+ default: "left"
12
+ },
13
+ class: String,
14
+ fixed: {
15
+ type: definePropType([String, Boolean]),
16
+ default: false
17
+ },
18
+ headerClass: String,
19
+ hidden: Boolean,
20
+ resizable: Boolean,
21
+ style: {
22
+ type: definePropType(Object)
23
+ },
24
+ sortable: Boolean,
25
+ title: String,
26
+ maxWidth: widthType,
27
+ minWidth: widthType,
28
+ width: {
29
+ type: Number,
30
+ required: true
31
+ },
32
+ cellRenderer: {
33
+ type: definePropType([Function, Object])
34
+ },
35
+ headerRenderer: {
36
+ type: definePropType([Function, Object])
37
+ }
38
+ });
39
+
40
+ export { tableV2ColumnProps };
41
+ //# sourceMappingURL=column.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"column.mjs","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":[],"mappings":";;;AACA,MAAM,SAAS,GAAG;AAClB,EAAE,IAAI,EAAE,MAAM;AACd,EAAE,OAAO,EAAE,KAAK,CAAC;AACjB,CAAC,CAAC;AACU,MAAC,kBAAkB,GAAG,UAAU,CAAC;AAC7C,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,IAAI,OAAO,EAAE,MAAM;AACnB,GAAG;AACH,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,cAAc,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,EAAE,cAAc,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,EAAE,cAAc,CAAC,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;AAC5C,GAAG;AACH,EAAE,cAAc,EAAE;AAClB,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;AAC5C,GAAG;AACH,CAAC;;;;"}
@@ -0,0 +1,42 @@
1
+ import type { CSSProperties } from 'vue';
2
+ import type { Column, KeyType } from './types';
3
+ export declare type AnyColumn = Column<any>;
4
+ /**
5
+ * @Note even though we can use `string[] | string` as the type but for
6
+ * convenience here we only use `string` as the acceptable value here.
7
+ */
8
+ export declare const classType: StringConstructor;
9
+ export declare const columns: {
10
+ readonly type: import("element-plus/es/utils").PropWrapper<AnyColumn[]>;
11
+ readonly required: true;
12
+ };
13
+ export declare const column: {
14
+ readonly type: import("element-plus/es/utils").PropWrapper<AnyColumn>;
15
+ };
16
+ export declare const fixedDataType: {
17
+ readonly type: import("element-plus/es/utils").PropWrapper<any[]>;
18
+ };
19
+ export declare const dataType: {
20
+ readonly required: true;
21
+ readonly type: import("element-plus/es/utils").PropWrapper<any[]>;
22
+ };
23
+ export declare const expandColumnKey: StringConstructor;
24
+ export declare const expandKeys: {
25
+ readonly type: import("element-plus/es/utils").PropWrapper<KeyType[]>;
26
+ readonly default: () => never[];
27
+ };
28
+ export declare const requiredNumber: {
29
+ readonly type: NumberConstructor;
30
+ readonly required: true;
31
+ };
32
+ export declare const rowKey: {
33
+ readonly type: import("element-plus/es/utils").PropWrapper<KeyType>;
34
+ readonly default: "id";
35
+ };
36
+ /**
37
+ * @note even though we can use `StyleValue` but that would be difficult for us to mapping them,
38
+ * so we only use `CSSProperties` as the acceptable value here.
39
+ */
40
+ export declare const styleType: {
41
+ type: import("element-plus/es/utils").PropWrapper<CSSProperties>;
42
+ };
@@ -0,0 +1,38 @@
1
+ import '../../../utils/index.mjs';
2
+ import { definePropType } from '../../../utils/vue/props.mjs';
3
+ import { mutable } from '../../../utils/typescript.mjs';
4
+
5
+ const classType = String;
6
+ const columns = {
7
+ type: definePropType(Array),
8
+ required: true
9
+ };
10
+ const column = {
11
+ type: definePropType(Object)
12
+ };
13
+ const fixedDataType = {
14
+ type: definePropType(Array)
15
+ };
16
+ const dataType = {
17
+ ...fixedDataType,
18
+ required: true
19
+ };
20
+ const expandColumnKey = String;
21
+ const expandKeys = {
22
+ type: definePropType(Array),
23
+ default: () => mutable([])
24
+ };
25
+ const requiredNumber = {
26
+ type: Number,
27
+ required: true
28
+ };
29
+ const rowKey = {
30
+ type: definePropType([String, Number, Symbol]),
31
+ default: "id"
32
+ };
33
+ const styleType = {
34
+ type: definePropType(Object)
35
+ };
36
+
37
+ export { classType, column, columns, dataType, expandColumnKey, expandKeys, fixedDataType, requiredNumber, rowKey, styleType };
38
+ //# sourceMappingURL=common.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.mjs","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":[],"mappings":";;;;AACY,MAAC,SAAS,GAAG,OAAO;AACpB,MAAC,OAAO,GAAG;AACvB,EAAE,IAAI,EAAE,cAAc,CAAC,KAAK,CAAC;AAC7B,EAAE,QAAQ,EAAE,IAAI;AAChB,EAAE;AACU,MAAC,MAAM,GAAG;AACtB,EAAE,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAC9B,EAAE;AACU,MAAC,aAAa,GAAG;AAC7B,EAAE,IAAI,EAAE,cAAc,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,EAAE,cAAc,CAAC,KAAK,CAAC;AAC7B,EAAE,OAAO,EAAE,MAAM,OAAO,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,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAChD,EAAE,OAAO,EAAE,IAAI;AACf,EAAE;AACU,MAAC,SAAS,GAAG;AACzB,EAAE,IAAI,EAAE,cAAc,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,22 @@
1
+ import { createVNode } from 'vue';
2
+
3
+ const TableV2Cell = (props, {
4
+ slots
5
+ }) => {
6
+ var _a;
7
+ const {
8
+ cellData,
9
+ style
10
+ } = props;
11
+ const displayText = ((_a = cellData == null ? void 0 : cellData.toString) == null ? void 0 : _a.call(cellData)) || "";
12
+ return createVNode("div", {
13
+ "class": props.class,
14
+ "title": displayText,
15
+ "style": style
16
+ }, [slots.default ? slots.default(props) : displayText]);
17
+ };
18
+ TableV2Cell.displayName = "ElTableV2Cell";
19
+ TableV2Cell.inheritAttrs = false;
20
+
21
+ export { TableV2Cell as default };
22
+ //# sourceMappingURL=cell.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cell.mjs","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,WAAA,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,26 @@
1
+ import { createVNode, mergeProps } from 'vue';
2
+ import { ElIcon } from '../../../icon/index.mjs';
3
+ import { ArrowRight } from '@element-plus/icons-vue';
4
+
5
+ const ExpandIcon = (props) => {
6
+ const {
7
+ expanded,
8
+ expandable,
9
+ onExpand,
10
+ style,
11
+ size
12
+ } = props;
13
+ const expandIconProps = {
14
+ onClick: expandable ? () => onExpand(!expanded) : void 0,
15
+ class: props.class
16
+ };
17
+ return createVNode(ElIcon, mergeProps(expandIconProps, {
18
+ "size": size,
19
+ "style": style
20
+ }), {
21
+ default: () => [createVNode(ArrowRight, null, null)]
22
+ });
23
+ };
24
+
25
+ export { ExpandIcon as default };
26
+ //# sourceMappingURL=expand-icon.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"expand-icon.mjs","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","_mergeProps"],"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,WAAA,CAAA,MAAA,EAAAC,UAAA,CAAA,eAAA,EAAA;AAKA,IAAA,MAAA,EAAA,IAAA;AAAA,IAAA,OAAA,EAAA,KAAA;AAAA,GACkDL,CAAAA,EAAAA;AADlD,IAAA,OAAA,EAAA,MAAA,CAAAI,WAAA,CAAA,UAAA,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,15 @@
1
+ import { createVNode } from 'vue';
2
+
3
+ const HeaderCell = (props, {
4
+ slots
5
+ }) => {
6
+ var _a, _b;
7
+ return slots.default ? slots.default(props) : createVNode("div", {
8
+ "class": props.class,
9
+ "title": (_a = props.column) == null ? void 0 : _a.title
10
+ }, [(_b = props.column) == null ? void 0 : _b.title]);
11
+ };
12
+ HeaderCell.displayName = "ElTableV2HeaderCell";
13
+
14
+ export { HeaderCell as default };
15
+ //# sourceMappingURL=header-cell.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"header-cell.mjs","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,WAAA,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
+ };
@@ -0,0 +1,40 @@
1
+ import { defineComponent, createVNode } from 'vue';
2
+ import { tableV2HeaderRowProps } from '../header-row.mjs';
3
+
4
+ const TableV2HeaderRow = defineComponent({
5
+ name: "ElTableV2HeaderRow",
6
+ props: tableV2HeaderRowProps,
7
+ setup(props, {
8
+ slots
9
+ }) {
10
+ return () => {
11
+ const {
12
+ columns,
13
+ headerIndex,
14
+ style
15
+ } = props;
16
+ let Cells = columns.map((column, columnIndex) => {
17
+ return slots.cell({
18
+ columns,
19
+ column,
20
+ columnIndex,
21
+ headerIndex
22
+ });
23
+ });
24
+ if (slots.header) {
25
+ Cells = slots.header({
26
+ cells: Cells,
27
+ columns,
28
+ headerIndex
29
+ });
30
+ }
31
+ return createVNode("div", {
32
+ "class": props.class,
33
+ "style": style
34
+ }, [Cells]);
35
+ };
36
+ }
37
+ });
38
+
39
+ export { TableV2HeaderRow as default };
40
+ //# sourceMappingURL=header-row.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"header-row.mjs","sources":["../../../../../../../packages/components/table-v2/src/components/header-row.tsx"],"sourcesContent":["import { defineComponent } from 'vue'\nimport { tableV2HeaderRowProps } from '../header-row'\n\nimport type { ColumnCellsType } from '../types'\nimport type { TableV2HeaderRowProps } from '../header-row'\n\nconst TableV2HeaderRow = defineComponent({\n name: 'ElTableV2HeaderRow',\n props: tableV2HeaderRowProps,\n setup(props, { slots }) {\n return () => {\n const { columns, headerIndex, style } = props\n let Cells: ColumnCellsType = columns.map((column, columnIndex) => {\n return slots.cell!({\n columns,\n column,\n columnIndex,\n headerIndex,\n })\n })\n\n if (slots.header) {\n Cells = slots.header({\n cells: Cells,\n columns,\n headerIndex,\n })\n }\n\n return (\n <div class={props.class} style={style}>\n {Cells}\n </div>\n )\n }\n },\n})\n\nexport default TableV2HeaderRow\n\nexport type TableV2HeaderRowCellRendererParams = {\n columns: TableV2HeaderRowProps['columns']\n column: TableV2HeaderRowProps['columns'][number]\n columnIndex: number\n headerIndex: number\n}\n\nexport type TableV2HeaderRowRendererParams = {\n cells: ColumnCellsType\n columns: TableV2HeaderRowProps['columns']\n headerIndex: number\n}\n"],"names":["TableV2HeaderRow","defineComponent","name","props","tableV2HeaderRowProps","setup","slots","columns","headerIndex","style","Cells","map","column","columnIndex","header","cells","_createVNode"],"mappings":";;;AAMMA,MAAAA,gBAAgB,GAAGC,eAAe,CAAC;AACvCC,EAAAA,IAAI,EAAE,oBADiC;AAEvCC,EAAAA,KAAK,EAAEC,qBAFgC;;AAGvCC,IAAAA,KAAMF;AAASG,GAAAA,EAAAA;AAAF,IAAW,OAAA,MAAA;AACtB,MAAA,MAAa;AACX,QAAM,OAAA;AAAEC,QAAAA,WAAF;AAAWC,QAAAA,KAAX;AAAwBC,OAAAA,GAAAA,KAAAA,CAAAA;AAAxB,MAAA,IAAkCN,KAAxC,GAAA,OAAA,CAAA,GAAA,CAAA,CAAA,MAAA,EAAA,WAAA,KAAA;AACA,QAAIO,OAAsB,KAAGH,CAAAA,IAAO,CAACI;AACnC,UAAOL,OAAAA;AACLC,UAAAA,MADiB;AAEjBK,UAAAA,WAFiB;AAGjBC,UAAAA,WAHiB;AAIjBL,SAAAA,CAAAA,CAAAA;AAJiB,OAAA,CAAA,CAAZ;AAMR,MAAA,IAPD,KAAA,CAAA,MAAA,EAAA;;AASA,UAAIF,KAAK,EAACQ,KAAV;AACEJ,UAAK,OAAQ;AACXK,UAAAA,WADmB;AAEnBR,SAAAA,CAAAA,CAFmB;AAGnBC,OAAAA;AAHmB,MAAA,OAArBQ,WAAA,CAAA,KAAA,EAAA;AAKD,QAAA,OAAA,EAAA,KAAA,CAAA,KAAA;;AAED,OAAA,EAAA,CAAA,KAAA,CAAA,CAAA,CAAA;AAAA,KACcb,CAAAA;AADd,GACkCM;AADlC,CAAA;;;;"}