element-pe 2.0.7 → 2.0.8

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 (1069) hide show
  1. package/attributes.json +1 -1
  2. package/dist/index.css +1 -1
  3. package/dist/index.full.js +680 -601
  4. package/dist/index.full.min.js +11 -17
  5. package/dist/index.full.min.js.map +1 -1
  6. package/dist/index.full.min.mjs +11 -17
  7. package/dist/index.full.min.mjs.map +1 -1
  8. package/dist/index.full.mjs +679 -600
  9. package/dist/locale/af.js +1 -1
  10. package/dist/locale/af.min.js +1 -1
  11. package/dist/locale/af.min.js.map +1 -1
  12. package/dist/locale/af.min.mjs +1 -1
  13. package/dist/locale/af.min.mjs.map +1 -1
  14. package/dist/locale/af.mjs +1 -1
  15. package/dist/locale/ar.js +1 -1
  16. package/dist/locale/ar.min.js +1 -1
  17. package/dist/locale/ar.min.js.map +1 -1
  18. package/dist/locale/ar.min.mjs +1 -1
  19. package/dist/locale/ar.min.mjs.map +1 -1
  20. package/dist/locale/ar.mjs +1 -1
  21. package/dist/locale/az.js +1 -1
  22. package/dist/locale/az.min.js +1 -1
  23. package/dist/locale/az.min.js.map +1 -1
  24. package/dist/locale/az.min.mjs +1 -1
  25. package/dist/locale/az.min.mjs.map +1 -1
  26. package/dist/locale/az.mjs +1 -1
  27. package/dist/locale/bg.js +1 -1
  28. package/dist/locale/bg.min.js +1 -1
  29. package/dist/locale/bg.min.js.map +1 -1
  30. package/dist/locale/bg.min.mjs +1 -1
  31. package/dist/locale/bg.min.mjs.map +1 -1
  32. package/dist/locale/bg.mjs +1 -1
  33. package/dist/locale/bn.js +1 -1
  34. package/dist/locale/bn.min.js +1 -1
  35. package/dist/locale/bn.min.js.map +1 -1
  36. package/dist/locale/bn.min.mjs +1 -1
  37. package/dist/locale/bn.min.mjs.map +1 -1
  38. package/dist/locale/bn.mjs +1 -1
  39. package/dist/locale/ca.js +1 -1
  40. package/dist/locale/ca.min.js +1 -1
  41. package/dist/locale/ca.min.js.map +1 -1
  42. package/dist/locale/ca.min.mjs +1 -1
  43. package/dist/locale/ca.min.mjs.map +1 -1
  44. package/dist/locale/ca.mjs +1 -1
  45. package/dist/locale/cs.js +1 -1
  46. package/dist/locale/cs.min.js +1 -1
  47. package/dist/locale/cs.min.js.map +1 -1
  48. package/dist/locale/cs.min.mjs +1 -1
  49. package/dist/locale/cs.min.mjs.map +1 -1
  50. package/dist/locale/cs.mjs +1 -1
  51. package/dist/locale/da.js +1 -1
  52. package/dist/locale/da.min.js +1 -1
  53. package/dist/locale/da.min.js.map +1 -1
  54. package/dist/locale/da.min.mjs +1 -1
  55. package/dist/locale/da.min.mjs.map +1 -1
  56. package/dist/locale/da.mjs +1 -1
  57. package/dist/locale/de.js +1 -1
  58. package/dist/locale/de.min.js +1 -1
  59. package/dist/locale/de.min.js.map +1 -1
  60. package/dist/locale/de.min.mjs +1 -1
  61. package/dist/locale/de.min.mjs.map +1 -1
  62. package/dist/locale/de.mjs +1 -1
  63. package/dist/locale/el.js +1 -1
  64. package/dist/locale/el.min.js +1 -1
  65. package/dist/locale/el.min.js.map +1 -1
  66. package/dist/locale/el.min.mjs +1 -1
  67. package/dist/locale/el.min.mjs.map +1 -1
  68. package/dist/locale/el.mjs +1 -1
  69. package/dist/locale/en.js +1 -1
  70. package/dist/locale/en.min.js +1 -1
  71. package/dist/locale/en.min.js.map +1 -1
  72. package/dist/locale/en.min.mjs +1 -1
  73. package/dist/locale/en.min.mjs.map +1 -1
  74. package/dist/locale/en.mjs +1 -1
  75. package/dist/locale/eo.js +1 -1
  76. package/dist/locale/eo.min.js +1 -1
  77. package/dist/locale/eo.min.js.map +1 -1
  78. package/dist/locale/eo.min.mjs +1 -1
  79. package/dist/locale/eo.min.mjs.map +1 -1
  80. package/dist/locale/eo.mjs +1 -1
  81. package/dist/locale/es.js +1 -1
  82. package/dist/locale/es.min.js +1 -1
  83. package/dist/locale/es.min.js.map +1 -1
  84. package/dist/locale/es.min.mjs +1 -1
  85. package/dist/locale/es.min.mjs.map +1 -1
  86. package/dist/locale/es.mjs +1 -1
  87. package/dist/locale/et.js +1 -1
  88. package/dist/locale/et.min.js +1 -1
  89. package/dist/locale/et.min.js.map +1 -1
  90. package/dist/locale/et.min.mjs +1 -1
  91. package/dist/locale/et.min.mjs.map +1 -1
  92. package/dist/locale/et.mjs +1 -1
  93. package/dist/locale/eu.js +1 -1
  94. package/dist/locale/eu.min.js +1 -1
  95. package/dist/locale/eu.min.js.map +1 -1
  96. package/dist/locale/eu.min.mjs +1 -1
  97. package/dist/locale/eu.min.mjs.map +1 -1
  98. package/dist/locale/eu.mjs +1 -1
  99. package/dist/locale/fa.js +1 -1
  100. package/dist/locale/fa.min.js +1 -1
  101. package/dist/locale/fa.min.js.map +1 -1
  102. package/dist/locale/fa.min.mjs +1 -1
  103. package/dist/locale/fa.min.mjs.map +1 -1
  104. package/dist/locale/fa.mjs +1 -1
  105. package/dist/locale/fi.js +1 -1
  106. package/dist/locale/fi.min.js +1 -1
  107. package/dist/locale/fi.min.js.map +1 -1
  108. package/dist/locale/fi.min.mjs +1 -1
  109. package/dist/locale/fi.min.mjs.map +1 -1
  110. package/dist/locale/fi.mjs +1 -1
  111. package/dist/locale/fr.js +1 -1
  112. package/dist/locale/fr.min.js +1 -1
  113. package/dist/locale/fr.min.js.map +1 -1
  114. package/dist/locale/fr.min.mjs +1 -1
  115. package/dist/locale/fr.min.mjs.map +1 -1
  116. package/dist/locale/fr.mjs +1 -1
  117. package/dist/locale/he.js +1 -1
  118. package/dist/locale/he.min.js +1 -1
  119. package/dist/locale/he.min.js.map +1 -1
  120. package/dist/locale/he.min.mjs +1 -1
  121. package/dist/locale/he.min.mjs.map +1 -1
  122. package/dist/locale/he.mjs +1 -1
  123. package/dist/locale/hr.js +1 -1
  124. package/dist/locale/hr.min.js +1 -1
  125. package/dist/locale/hr.min.js.map +1 -1
  126. package/dist/locale/hr.min.mjs +1 -1
  127. package/dist/locale/hr.min.mjs.map +1 -1
  128. package/dist/locale/hr.mjs +1 -1
  129. package/dist/locale/hu.js +1 -1
  130. package/dist/locale/hu.min.js +1 -1
  131. package/dist/locale/hu.min.js.map +1 -1
  132. package/dist/locale/hu.min.mjs +1 -1
  133. package/dist/locale/hu.min.mjs.map +1 -1
  134. package/dist/locale/hu.mjs +1 -1
  135. package/dist/locale/hy-am.js +1 -1
  136. package/dist/locale/hy-am.min.js +1 -1
  137. package/dist/locale/hy-am.min.js.map +1 -1
  138. package/dist/locale/hy-am.min.mjs +1 -1
  139. package/dist/locale/hy-am.min.mjs.map +1 -1
  140. package/dist/locale/hy-am.mjs +1 -1
  141. package/dist/locale/id.js +1 -1
  142. package/dist/locale/id.min.js +1 -1
  143. package/dist/locale/id.min.js.map +1 -1
  144. package/dist/locale/id.min.mjs +1 -1
  145. package/dist/locale/id.min.mjs.map +1 -1
  146. package/dist/locale/id.mjs +1 -1
  147. package/dist/locale/it.js +1 -1
  148. package/dist/locale/it.min.js +1 -1
  149. package/dist/locale/it.min.js.map +1 -1
  150. package/dist/locale/it.min.mjs +1 -1
  151. package/dist/locale/it.min.mjs.map +1 -1
  152. package/dist/locale/it.mjs +1 -1
  153. package/dist/locale/ja.js +1 -1
  154. package/dist/locale/ja.min.js +1 -1
  155. package/dist/locale/ja.min.js.map +1 -1
  156. package/dist/locale/ja.min.mjs +1 -1
  157. package/dist/locale/ja.min.mjs.map +1 -1
  158. package/dist/locale/ja.mjs +1 -1
  159. package/dist/locale/kk.js +1 -1
  160. package/dist/locale/kk.min.js +1 -1
  161. package/dist/locale/kk.min.js.map +1 -1
  162. package/dist/locale/kk.min.mjs +1 -1
  163. package/dist/locale/kk.min.mjs.map +1 -1
  164. package/dist/locale/kk.mjs +1 -1
  165. package/dist/locale/km.js +1 -1
  166. package/dist/locale/km.min.js +1 -1
  167. package/dist/locale/km.min.js.map +1 -1
  168. package/dist/locale/km.min.mjs +1 -1
  169. package/dist/locale/km.min.mjs.map +1 -1
  170. package/dist/locale/km.mjs +1 -1
  171. package/dist/locale/ko.js +1 -1
  172. package/dist/locale/ko.min.js +1 -1
  173. package/dist/locale/ko.min.js.map +1 -1
  174. package/dist/locale/ko.min.mjs +1 -1
  175. package/dist/locale/ko.min.mjs.map +1 -1
  176. package/dist/locale/ko.mjs +1 -1
  177. package/dist/locale/ku.js +1 -1
  178. package/dist/locale/ku.min.js +1 -1
  179. package/dist/locale/ku.min.js.map +1 -1
  180. package/dist/locale/ku.min.mjs +1 -1
  181. package/dist/locale/ku.min.mjs.map +1 -1
  182. package/dist/locale/ku.mjs +1 -1
  183. package/dist/locale/ky.js +1 -1
  184. package/dist/locale/ky.min.js +1 -1
  185. package/dist/locale/ky.min.js.map +1 -1
  186. package/dist/locale/ky.min.mjs +1 -1
  187. package/dist/locale/ky.min.mjs.map +1 -1
  188. package/dist/locale/ky.mjs +1 -1
  189. package/dist/locale/lt.js +1 -1
  190. package/dist/locale/lt.min.js +1 -1
  191. package/dist/locale/lt.min.js.map +1 -1
  192. package/dist/locale/lt.min.mjs +1 -1
  193. package/dist/locale/lt.min.mjs.map +1 -1
  194. package/dist/locale/lt.mjs +1 -1
  195. package/dist/locale/lv.js +1 -1
  196. package/dist/locale/lv.min.js +1 -1
  197. package/dist/locale/lv.min.js.map +1 -1
  198. package/dist/locale/lv.min.mjs +1 -1
  199. package/dist/locale/lv.min.mjs.map +1 -1
  200. package/dist/locale/lv.mjs +1 -1
  201. package/dist/locale/mg.js +1 -1
  202. package/dist/locale/mg.min.js +1 -1
  203. package/dist/locale/mg.min.js.map +1 -1
  204. package/dist/locale/mg.min.mjs +1 -1
  205. package/dist/locale/mg.min.mjs.map +1 -1
  206. package/dist/locale/mg.mjs +1 -1
  207. package/dist/locale/mn.js +1 -1
  208. package/dist/locale/mn.min.js +1 -1
  209. package/dist/locale/mn.min.js.map +1 -1
  210. package/dist/locale/mn.min.mjs +1 -1
  211. package/dist/locale/mn.min.mjs.map +1 -1
  212. package/dist/locale/mn.mjs +1 -1
  213. package/dist/locale/nb-no.js +1 -1
  214. package/dist/locale/nb-no.min.js +1 -1
  215. package/dist/locale/nb-no.min.js.map +1 -1
  216. package/dist/locale/nb-no.min.mjs +1 -1
  217. package/dist/locale/nb-no.min.mjs.map +1 -1
  218. package/dist/locale/nb-no.mjs +1 -1
  219. package/dist/locale/nl.js +1 -1
  220. package/dist/locale/nl.min.js +1 -1
  221. package/dist/locale/nl.min.js.map +1 -1
  222. package/dist/locale/nl.min.mjs +1 -1
  223. package/dist/locale/nl.min.mjs.map +1 -1
  224. package/dist/locale/nl.mjs +1 -1
  225. package/dist/locale/pa.js +1 -1
  226. package/dist/locale/pa.min.js +1 -1
  227. package/dist/locale/pa.min.js.map +1 -1
  228. package/dist/locale/pa.min.mjs +1 -1
  229. package/dist/locale/pa.min.mjs.map +1 -1
  230. package/dist/locale/pa.mjs +1 -1
  231. package/dist/locale/pl.js +1 -1
  232. package/dist/locale/pl.min.js +1 -1
  233. package/dist/locale/pl.min.js.map +1 -1
  234. package/dist/locale/pl.min.mjs +1 -1
  235. package/dist/locale/pl.min.mjs.map +1 -1
  236. package/dist/locale/pl.mjs +1 -1
  237. package/dist/locale/pt-br.js +1 -1
  238. package/dist/locale/pt-br.min.js +1 -1
  239. package/dist/locale/pt-br.min.js.map +1 -1
  240. package/dist/locale/pt-br.min.mjs +1 -1
  241. package/dist/locale/pt-br.min.mjs.map +1 -1
  242. package/dist/locale/pt-br.mjs +1 -1
  243. package/dist/locale/pt.js +1 -1
  244. package/dist/locale/pt.min.js +1 -1
  245. package/dist/locale/pt.min.js.map +1 -1
  246. package/dist/locale/pt.min.mjs +1 -1
  247. package/dist/locale/pt.min.mjs.map +1 -1
  248. package/dist/locale/pt.mjs +1 -1
  249. package/dist/locale/ro.js +1 -1
  250. package/dist/locale/ro.min.js +1 -1
  251. package/dist/locale/ro.min.js.map +1 -1
  252. package/dist/locale/ro.min.mjs +1 -1
  253. package/dist/locale/ro.min.mjs.map +1 -1
  254. package/dist/locale/ro.mjs +1 -1
  255. package/dist/locale/ru.js +1 -1
  256. package/dist/locale/ru.min.js +1 -1
  257. package/dist/locale/ru.min.js.map +1 -1
  258. package/dist/locale/ru.min.mjs +1 -1
  259. package/dist/locale/ru.min.mjs.map +1 -1
  260. package/dist/locale/ru.mjs +1 -1
  261. package/dist/locale/sk.js +1 -1
  262. package/dist/locale/sk.min.js +1 -1
  263. package/dist/locale/sk.min.js.map +1 -1
  264. package/dist/locale/sk.min.mjs +1 -1
  265. package/dist/locale/sk.min.mjs.map +1 -1
  266. package/dist/locale/sk.mjs +1 -1
  267. package/dist/locale/sl.js +1 -1
  268. package/dist/locale/sl.min.js +1 -1
  269. package/dist/locale/sl.min.js.map +1 -1
  270. package/dist/locale/sl.min.mjs +1 -1
  271. package/dist/locale/sl.min.mjs.map +1 -1
  272. package/dist/locale/sl.mjs +1 -1
  273. package/dist/locale/sr.js +1 -1
  274. package/dist/locale/sr.min.js +1 -1
  275. package/dist/locale/sr.min.js.map +1 -1
  276. package/dist/locale/sr.min.mjs +1 -1
  277. package/dist/locale/sr.min.mjs.map +1 -1
  278. package/dist/locale/sr.mjs +1 -1
  279. package/dist/locale/sv.js +1 -1
  280. package/dist/locale/sv.min.js +1 -1
  281. package/dist/locale/sv.min.js.map +1 -1
  282. package/dist/locale/sv.min.mjs +1 -1
  283. package/dist/locale/sv.min.mjs.map +1 -1
  284. package/dist/locale/sv.mjs +1 -1
  285. package/dist/locale/ta.js +1 -1
  286. package/dist/locale/ta.min.js +1 -1
  287. package/dist/locale/ta.min.js.map +1 -1
  288. package/dist/locale/ta.min.mjs +1 -1
  289. package/dist/locale/ta.min.mjs.map +1 -1
  290. package/dist/locale/ta.mjs +1 -1
  291. package/dist/locale/th.js +1 -1
  292. package/dist/locale/th.min.js +1 -1
  293. package/dist/locale/th.min.js.map +1 -1
  294. package/dist/locale/th.min.mjs +1 -1
  295. package/dist/locale/th.min.mjs.map +1 -1
  296. package/dist/locale/th.mjs +1 -1
  297. package/dist/locale/tk.js +1 -1
  298. package/dist/locale/tk.min.js +1 -1
  299. package/dist/locale/tk.min.js.map +1 -1
  300. package/dist/locale/tk.min.mjs +1 -1
  301. package/dist/locale/tk.min.mjs.map +1 -1
  302. package/dist/locale/tk.mjs +1 -1
  303. package/dist/locale/tr.js +1 -1
  304. package/dist/locale/tr.min.js +1 -1
  305. package/dist/locale/tr.min.js.map +1 -1
  306. package/dist/locale/tr.min.mjs +1 -1
  307. package/dist/locale/tr.min.mjs.map +1 -1
  308. package/dist/locale/tr.mjs +1 -1
  309. package/dist/locale/ug-cn.js +1 -1
  310. package/dist/locale/ug-cn.min.js +1 -1
  311. package/dist/locale/ug-cn.min.js.map +1 -1
  312. package/dist/locale/ug-cn.min.mjs +1 -1
  313. package/dist/locale/ug-cn.min.mjs.map +1 -1
  314. package/dist/locale/ug-cn.mjs +1 -1
  315. package/dist/locale/uk.js +1 -1
  316. package/dist/locale/uk.min.js +1 -1
  317. package/dist/locale/uk.min.js.map +1 -1
  318. package/dist/locale/uk.min.mjs +1 -1
  319. package/dist/locale/uk.min.mjs.map +1 -1
  320. package/dist/locale/uk.mjs +1 -1
  321. package/dist/locale/uz-uz.js +1 -1
  322. package/dist/locale/uz-uz.min.js +1 -1
  323. package/dist/locale/uz-uz.min.js.map +1 -1
  324. package/dist/locale/uz-uz.min.mjs +1 -1
  325. package/dist/locale/uz-uz.min.mjs.map +1 -1
  326. package/dist/locale/uz-uz.mjs +1 -1
  327. package/dist/locale/vi.js +1 -1
  328. package/dist/locale/vi.min.js +1 -1
  329. package/dist/locale/vi.min.js.map +1 -1
  330. package/dist/locale/vi.min.mjs +1 -1
  331. package/dist/locale/vi.min.mjs.map +1 -1
  332. package/dist/locale/vi.mjs +1 -1
  333. package/dist/locale/zh-cn.js +1 -1
  334. package/dist/locale/zh-cn.min.js +1 -1
  335. package/dist/locale/zh-cn.min.js.map +1 -1
  336. package/dist/locale/zh-cn.min.mjs +1 -1
  337. package/dist/locale/zh-cn.min.mjs.map +1 -1
  338. package/dist/locale/zh-cn.mjs +1 -1
  339. package/dist/locale/zh-tw.js +1 -1
  340. package/dist/locale/zh-tw.min.js +1 -1
  341. package/dist/locale/zh-tw.min.js.map +1 -1
  342. package/dist/locale/zh-tw.min.mjs +1 -1
  343. package/dist/locale/zh-tw.min.mjs.map +1 -1
  344. package/dist/locale/zh-tw.mjs +1 -1
  345. package/es/components/affix/index.mjs +2 -2
  346. package/es/components/affix/src/affix.mjs +23 -114
  347. package/es/components/affix/src/affix.mjs.map +1 -1
  348. package/es/components/affix/src/affix2.mjs +114 -23
  349. package/es/components/affix/src/affix2.mjs.map +1 -1
  350. package/es/components/alert/index.mjs +2 -2
  351. package/es/components/alert/src/alert.mjs +90 -36
  352. package/es/components/alert/src/alert.mjs.map +1 -1
  353. package/es/components/alert/src/alert2.mjs +36 -90
  354. package/es/components/alert/src/alert2.mjs.map +1 -1
  355. package/es/components/autocomplete/index.d.ts +0 -4599
  356. package/es/components/autocomplete/index.mjs +2 -2
  357. package/es/components/autocomplete/src/autocomplete.mjs +67 -325
  358. package/es/components/autocomplete/src/autocomplete.mjs.map +1 -1
  359. package/es/components/autocomplete/src/autocomplete.vue.d.ts +0 -4599
  360. package/es/components/autocomplete/src/autocomplete2.mjs +325 -67
  361. package/es/components/autocomplete/src/autocomplete2.mjs.map +1 -1
  362. package/es/components/avatar/index.mjs +2 -2
  363. package/es/components/avatar/src/avatar.mjs +68 -32
  364. package/es/components/avatar/src/avatar.mjs.map +1 -1
  365. package/es/components/avatar/src/avatar2.mjs +32 -68
  366. package/es/components/avatar/src/avatar2.mjs.map +1 -1
  367. package/es/components/backtop/index.mjs +2 -2
  368. package/es/components/backtop/src/backtop.mjs +21 -100
  369. package/es/components/backtop/src/backtop.mjs.map +1 -1
  370. package/es/components/backtop/src/backtop2.mjs +100 -21
  371. package/es/components/backtop/src/backtop2.mjs.map +1 -1
  372. package/es/components/badge/index.mjs +2 -2
  373. package/es/components/badge/src/badge.mjs +54 -17
  374. package/es/components/badge/src/badge.mjs.map +1 -1
  375. package/es/components/badge/src/badge2.mjs +17 -54
  376. package/es/components/badge/src/badge2.mjs.map +1 -1
  377. package/es/components/breadcrumb/index.mjs +4 -4
  378. package/es/components/breadcrumb/src/breadcrumb-item.mjs +57 -11
  379. package/es/components/breadcrumb/src/breadcrumb-item.mjs.map +1 -1
  380. package/es/components/breadcrumb/src/breadcrumb-item2.mjs +11 -57
  381. package/es/components/breadcrumb/src/breadcrumb-item2.mjs.map +1 -1
  382. package/es/components/breadcrumb/src/breadcrumb.mjs +12 -37
  383. package/es/components/breadcrumb/src/breadcrumb.mjs.map +1 -1
  384. package/es/components/breadcrumb/src/breadcrumb2.mjs +37 -12
  385. package/es/components/breadcrumb/src/breadcrumb2.mjs.map +1 -1
  386. package/es/components/button/index.mjs +3 -3
  387. package/es/components/button/src/button-group.mjs +30 -5
  388. package/es/components/button/src/button-group.mjs.map +1 -1
  389. package/es/components/button/src/button-group2.mjs +5 -30
  390. package/es/components/button/src/button-group2.mjs.map +1 -1
  391. package/es/components/button/src/button.mjs +51 -106
  392. package/es/components/button/src/button.mjs.map +1 -1
  393. package/es/components/button/src/button2.mjs +106 -51
  394. package/es/components/button/src/button2.mjs.map +1 -1
  395. package/es/components/card/index.mjs +2 -2
  396. package/es/components/card/src/card.mjs +35 -15
  397. package/es/components/card/src/card.mjs.map +1 -1
  398. package/es/components/card/src/card2.mjs +15 -35
  399. package/es/components/card/src/card2.mjs.map +1 -1
  400. package/es/components/carousel/index.mjs +4 -4
  401. package/es/components/carousel/src/carousel-item.mjs +7 -155
  402. package/es/components/carousel/src/carousel-item.mjs.map +1 -1
  403. package/es/components/carousel/src/carousel-item2.mjs +155 -7
  404. package/es/components/carousel/src/carousel-item2.mjs.map +1 -1
  405. package/es/components/carousel/src/carousel.mjs +319 -48
  406. package/es/components/carousel/src/carousel.mjs.map +1 -1
  407. package/es/components/carousel/src/carousel2.mjs +48 -319
  408. package/es/components/carousel/src/carousel2.mjs.map +1 -1
  409. package/es/components/cascader/index.d.ts +0 -6132
  410. package/es/components/cascader/src/index.mjs +1 -1
  411. package/es/components/cascader/src/index.vue.d.ts +0 -3066
  412. package/es/components/cascader-panel/src/config.mjs +1 -1
  413. package/es/components/cascader-panel/src/index.mjs +1 -1
  414. package/es/components/cascader-panel/src/menu.mjs +1 -1
  415. package/es/components/cascader-panel/src/node.mjs +120 -209
  416. package/es/components/cascader-panel/src/node.mjs.map +1 -1
  417. package/es/components/cascader-panel/src/node2.mjs +209 -120
  418. package/es/components/cascader-panel/src/node2.mjs.map +1 -1
  419. package/es/components/cascader-panel/src/store.mjs +1 -1
  420. package/es/components/date-picker/src/date-picker-com/panel-date-pick.mjs +2 -1
  421. package/es/components/date-picker/src/date-picker-com/panel-date-pick.mjs.map +1 -1
  422. package/es/components/divider/index.mjs +2 -2
  423. package/es/components/divider/src/divider.mjs +17 -34
  424. package/es/components/divider/src/divider.mjs.map +1 -1
  425. package/es/components/divider/src/divider2.mjs +34 -17
  426. package/es/components/divider/src/divider2.mjs.map +1 -1
  427. package/es/components/drawer/index.mjs +2 -2
  428. package/es/components/drawer/src/drawer.mjs +126 -21
  429. package/es/components/drawer/src/drawer.mjs.map +1 -1
  430. package/es/components/drawer/src/drawer2.mjs +21 -126
  431. package/es/components/drawer/src/drawer2.mjs.map +1 -1
  432. package/es/components/empty/src/img-empty.mjs +7 -17
  433. package/es/components/empty/src/img-empty.mjs.map +1 -1
  434. package/es/components/form/index.d.ts +4 -6
  435. package/es/components/form/src/form-item.vue.d.ts +2 -3
  436. package/es/components/form/src/form-item2.mjs +22 -22
  437. package/es/components/form/src/form-item2.mjs.map +1 -1
  438. package/es/components/form/src/form-label-wrap.mjs +6 -6
  439. package/es/components/form/src/form-label-wrap.mjs.map +1 -1
  440. package/es/components/icon/index.mjs +2 -2
  441. package/es/components/icon/src/icon.mjs +8 -35
  442. package/es/components/icon/src/icon.mjs.map +1 -1
  443. package/es/components/icon/src/icon2.mjs +35 -8
  444. package/es/components/icon/src/icon2.mjs.map +1 -1
  445. package/es/components/image-viewer/index.mjs +2 -2
  446. package/es/components/image-viewer/src/image-viewer.mjs +30 -399
  447. package/es/components/image-viewer/src/image-viewer.mjs.map +1 -1
  448. package/es/components/image-viewer/src/image-viewer2.mjs +399 -30
  449. package/es/components/image-viewer/src/image-viewer2.mjs.map +1 -1
  450. package/es/components/index.mjs +32 -32
  451. package/es/components/input/index.d.ts +0 -1533
  452. package/es/components/input/index.mjs +2 -2
  453. package/es/components/input/src/input.mjs +410 -92
  454. package/es/components/input/src/input.mjs.map +1 -1
  455. package/es/components/input/src/input.vue.d.ts +6 -1539
  456. package/es/components/input/src/input2.mjs +92 -433
  457. package/es/components/input/src/input2.mjs.map +1 -1
  458. package/es/components/input-number/index.d.ts +3 -3068
  459. package/es/components/input-number/index.mjs +2 -2
  460. package/es/components/input-number/src/input-number.d.ts +1 -1
  461. package/es/components/input-number/src/input-number.mjs +52 -284
  462. package/es/components/input-number/src/input-number.mjs.map +1 -1
  463. package/es/components/input-number/src/input-number.vue.d.ts +3 -3068
  464. package/es/components/input-number/src/input-number2.mjs +284 -53
  465. package/es/components/input-number/src/input-number2.mjs.map +1 -1
  466. package/es/components/link/index.mjs +2 -2
  467. package/es/components/link/src/link.mjs +22 -49
  468. package/es/components/link/src/link.mjs.map +1 -1
  469. package/es/components/link/src/link2.mjs +49 -22
  470. package/es/components/link/src/link2.mjs.map +1 -1
  471. package/es/components/loading/src/loading.mjs +3 -1
  472. package/es/components/loading/src/loading.mjs.map +1 -1
  473. package/es/components/loading/src/service.mjs +1 -2
  474. package/es/components/loading/src/service.mjs.map +1 -1
  475. package/es/components/menu/index.d.ts +84 -0
  476. package/es/components/menu/index.mjs +2 -2
  477. package/es/components/menu/src/menu-collapse-transition.mjs +10 -7
  478. package/es/components/menu/src/menu-collapse-transition.mjs.map +1 -1
  479. package/es/components/menu/src/menu-item-group.vue.d.ts +14 -0
  480. package/es/components/menu/src/menu-item-group2.mjs +12 -7
  481. package/es/components/menu/src/menu-item-group2.mjs.map +1 -1
  482. package/es/components/menu/src/menu-item.mjs +14 -94
  483. package/es/components/menu/src/menu-item.mjs.map +1 -1
  484. package/es/components/menu/src/menu-item.vue.d.ts +28 -0
  485. package/es/components/menu/src/menu-item2.mjs +102 -14
  486. package/es/components/menu/src/menu-item2.mjs.map +1 -1
  487. package/es/components/menu/src/menu.mjs +10 -6
  488. package/es/components/menu/src/menu.mjs.map +1 -1
  489. package/es/components/menu/src/sub-menu.mjs +17 -14
  490. package/es/components/menu/src/sub-menu.mjs.map +1 -1
  491. package/es/components/menu/src/utils/menu-bar.d.ts +2 -2
  492. package/es/components/menu/src/utils/menu-bar.mjs +4 -4
  493. package/es/components/menu/src/utils/menu-bar.mjs.map +1 -1
  494. package/es/components/menu/src/utils/menu-item.d.ts +2 -2
  495. package/es/components/menu/src/utils/menu-item.mjs +4 -4
  496. package/es/components/menu/src/utils/menu-item.mjs.map +1 -1
  497. package/es/components/message-box/src/index.mjs +56 -47
  498. package/es/components/message-box/src/index.mjs.map +1 -1
  499. package/es/components/message-box/src/index.vue.d.ts +17 -1
  500. package/es/components/page-header/index.mjs +2 -2
  501. package/es/components/page-header/src/page-header.mjs +17 -60
  502. package/es/components/page-header/src/page-header.mjs.map +1 -1
  503. package/es/components/page-header/src/page-header2.mjs +60 -17
  504. package/es/components/page-header/src/page-header2.mjs.map +1 -1
  505. package/es/components/popconfirm/src/popconfirm.mjs +1 -1
  506. package/es/components/popper/index.mjs +2 -2
  507. package/es/components/popper/src/content.vue.d.ts +1 -1
  508. package/es/components/popper/src/content2.mjs +3 -3
  509. package/es/components/popper/src/content2.mjs.map +1 -1
  510. package/es/components/popper/src/trigger.mjs +71 -16
  511. package/es/components/popper/src/trigger.mjs.map +1 -1
  512. package/es/components/popper/src/trigger2.mjs +16 -71
  513. package/es/components/popper/src/trigger2.mjs.map +1 -1
  514. package/es/components/progress/index.mjs +2 -2
  515. package/es/components/progress/src/progress.mjs +57 -230
  516. package/es/components/progress/src/progress.mjs.map +1 -1
  517. package/es/components/progress/src/progress2.mjs +230 -57
  518. package/es/components/progress/src/progress2.mjs.map +1 -1
  519. package/es/components/radio/index.mjs +2 -2
  520. package/es/components/radio/src/radio-button.mjs +1 -1
  521. package/es/components/radio/src/radio-button2.mjs +1 -1
  522. package/es/components/radio/src/radio-group.mjs +1 -1
  523. package/es/components/radio/src/radio.mjs +83 -67
  524. package/es/components/radio/src/radio.mjs.map +1 -1
  525. package/es/components/radio/src/radio2.mjs +67 -83
  526. package/es/components/radio/src/radio2.mjs.map +1 -1
  527. package/es/components/result/index.mjs +2 -2
  528. package/es/components/result/src/result.mjs +73 -28
  529. package/es/components/result/src/result.mjs.map +1 -1
  530. package/es/components/result/src/result2.mjs +28 -73
  531. package/es/components/result/src/result2.mjs.map +1 -1
  532. package/es/components/scrollbar/index.mjs +3 -3
  533. package/es/components/scrollbar/src/bar2.mjs +1 -1
  534. package/es/components/scrollbar/src/scrollbar.mjs +175 -49
  535. package/es/components/scrollbar/src/scrollbar.mjs.map +1 -1
  536. package/es/components/scrollbar/src/scrollbar2.mjs +49 -175
  537. package/es/components/scrollbar/src/scrollbar2.mjs.map +1 -1
  538. package/es/components/scrollbar/src/thumb.mjs +137 -11
  539. package/es/components/scrollbar/src/thumb.mjs.map +1 -1
  540. package/es/components/scrollbar/src/thumb2.mjs +11 -137
  541. package/es/components/scrollbar/src/thumb2.mjs.map +1 -1
  542. package/es/components/select/src/select.mjs +4 -6
  543. package/es/components/select/src/select.mjs.map +1 -1
  544. package/es/components/select/src/useSelect.mjs +1 -2
  545. package/es/components/select/src/useSelect.mjs.map +1 -1
  546. package/es/components/switch/index.mjs +2 -2
  547. package/es/components/switch/src/switch.mjs +87 -250
  548. package/es/components/switch/src/switch.mjs.map +1 -1
  549. package/es/components/switch/src/switch2.mjs +250 -87
  550. package/es/components/switch/src/switch2.mjs.map +1 -1
  551. package/es/components/table/src/table/defaults.d.ts +1 -1
  552. package/es/components/table/src/table/defaults.mjs.map +1 -1
  553. package/es/components/table-v2/index.d.ts +1 -0
  554. package/es/components/table-v2/src/cell.d.ts +3 -3
  555. package/es/components/table-v2/src/cell.mjs +5 -3
  556. package/es/components/table-v2/src/cell.mjs.map +1 -1
  557. package/es/components/table-v2/src/column-resizer.d.ts +14 -0
  558. package/es/components/table-v2/src/column-resizer.mjs +24 -0
  559. package/es/components/table-v2/src/column-resizer.mjs.map +1 -0
  560. package/es/components/table-v2/src/column.d.ts +4 -6
  561. package/es/components/table-v2/src/column.mjs +2 -6
  562. package/es/components/table-v2/src/column.mjs.map +1 -1
  563. package/es/components/table-v2/src/common.d.ts +1 -2
  564. package/es/components/table-v2/src/common.mjs.map +1 -1
  565. package/es/components/table-v2/src/constants.d.ts +13 -1
  566. package/es/components/table-v2/src/constants.mjs +16 -2
  567. package/es/components/table-v2/src/constants.mjs.map +1 -1
  568. package/es/components/table-v2/src/expand-icon.d.ts +11 -0
  569. package/es/components/table-v2/src/grid.d.ts +18 -22
  570. package/es/components/table-v2/src/grid.mjs +6 -4
  571. package/es/components/table-v2/src/grid.mjs.map +1 -1
  572. package/es/components/table-v2/src/header-cell.d.ts +1 -19
  573. package/es/components/table-v2/src/header-row.d.ts +1 -20
  574. package/es/components/table-v2/src/header-row.mjs +0 -1
  575. package/es/components/table-v2/src/header-row.mjs.map +1 -1
  576. package/es/components/table-v2/src/header.d.ts +1 -19
  577. package/es/components/table-v2/src/private.d.ts +1 -0
  578. package/es/components/table-v2/src/private.mjs +4 -0
  579. package/es/components/table-v2/src/private.mjs.map +1 -0
  580. package/es/components/table-v2/src/renderers/cell.d.ts +10 -0
  581. package/es/components/table-v2/src/renderers/header-cell.d.ts +10 -0
  582. package/es/components/table-v2/src/renderers/header.d.ts +9 -0
  583. package/es/components/table-v2/src/renderers/left-table.d.ts +8 -0
  584. package/es/components/table-v2/src/renderers/main-table.d.ts +8 -0
  585. package/es/components/table-v2/src/renderers/right-table.d.ts +8 -0
  586. package/es/components/table-v2/src/renderers/row.d.ts +10 -0
  587. package/es/components/table-v2/src/row.d.ts +8 -20
  588. package/es/components/table-v2/src/row.mjs +4 -1
  589. package/es/components/table-v2/src/row.mjs.map +1 -1
  590. package/es/components/table-v2/src/sort-icon.d.ts +8 -0
  591. package/es/components/table-v2/src/table-cell.d.ts +8 -18
  592. package/es/components/table-v2/src/table-column-resizer.d.ts +31 -0
  593. package/es/components/table-v2/src/table-grid.d.ts +45 -47
  594. package/es/components/table-v2/src/table-header-cell.d.ts +7 -47
  595. package/es/components/table-v2/src/table-header-row.d.ts +15 -40
  596. package/es/components/table-v2/src/table-header.d.ts +14 -39
  597. package/es/components/table-v2/src/table-row.d.ts +31 -41
  598. package/es/components/table-v2/src/table-v2.d.ts +151 -0
  599. package/es/components/table-v2/src/table.d.ts +33 -32
  600. package/es/components/table-v2/src/table.mjs +36 -4
  601. package/es/components/table-v2/src/table.mjs.map +1 -1
  602. package/es/components/table-v2/src/tokens.d.ts +2 -1
  603. package/es/components/table-v2/src/tokens.mjs.map +1 -1
  604. package/es/components/table-v2/src/types.d.ts +8 -11
  605. package/es/components/table-v2/src/use-columns.d.ts +18 -0
  606. package/es/components/table-v2/src/{useTable.mjs → use-columns.mjs} +43 -36
  607. package/es/components/table-v2/src/use-columns.mjs.map +1 -0
  608. package/es/components/table-v2/src/use-table.d.ts +58 -0
  609. package/es/components/table-v2/src/use-table.mjs +304 -0
  610. package/es/components/table-v2/src/use-table.mjs.map +1 -0
  611. package/es/components/table-v2/src/utils.d.ts +7 -0
  612. package/es/components/table-v2/src/utils.mjs +23 -0
  613. package/es/components/table-v2/src/utils.mjs.map +1 -0
  614. package/es/components/tabs/index.mjs +1 -1
  615. package/es/components/tabs/src/tab-bar.mjs +7 -76
  616. package/es/components/tabs/src/tab-bar.mjs.map +1 -1
  617. package/es/components/tabs/src/tab-bar2.mjs +76 -7
  618. package/es/components/tabs/src/tab-bar2.mjs.map +1 -1
  619. package/es/components/tabs/src/tab-nav.mjs +1 -1
  620. package/es/components/tag/index.mjs +2 -2
  621. package/es/components/tag/src/tag.mjs +93 -33
  622. package/es/components/tag/src/tag.mjs.map +1 -1
  623. package/es/components/tag/src/tag2.mjs +33 -93
  624. package/es/components/tag/src/tag2.mjs.map +1 -1
  625. package/es/components/time-select/index.d.ts +28 -0
  626. package/es/components/time-select/src/time-select.mjs +7 -3
  627. package/es/components/time-select/src/time-select.mjs.map +1 -1
  628. package/es/components/time-select/src/time-select.vue.d.ts +14 -0
  629. package/es/components/tooltip/src/content.vue.d.ts +2 -2
  630. package/es/components/tooltip/src/tooltip.mjs +1 -1
  631. package/es/components/tooltip/src/trigger.mjs +1 -1
  632. package/es/components/tooltip-v2/index.mjs +3 -3
  633. package/es/components/tooltip-v2/src/content.mjs +50 -113
  634. package/es/components/tooltip-v2/src/content.mjs.map +1 -1
  635. package/es/components/tooltip-v2/src/content2.mjs +113 -50
  636. package/es/components/tooltip-v2/src/content2.mjs.map +1 -1
  637. package/es/components/tooltip-v2/src/tooltip.mjs +73 -20
  638. package/es/components/tooltip-v2/src/tooltip.mjs.map +1 -1
  639. package/es/components/tooltip-v2/src/tooltip2.mjs +20 -73
  640. package/es/components/tooltip-v2/src/tooltip2.mjs.map +1 -1
  641. package/es/components/tree-select/src/tree-select.mjs +1 -0
  642. package/es/components/tree-select/src/tree-select.mjs.map +1 -1
  643. package/es/components/tree-select/src/tree.mjs +16 -3
  644. package/es/components/tree-select/src/tree.mjs.map +1 -1
  645. package/es/components/upload/index.mjs +1 -1
  646. package/es/components/upload/src/upload-content.mjs +169 -38
  647. package/es/components/upload/src/upload-content.mjs.map +1 -1
  648. package/es/components/upload/src/upload-content2.mjs +38 -169
  649. package/es/components/upload/src/upload-content2.mjs.map +1 -1
  650. package/es/components/upload/src/upload2.mjs +1 -1
  651. package/es/components/virtual-list/index.d.ts +2 -1
  652. package/es/components/virtual-list/index.mjs +1 -1
  653. package/es/components/virtual-list/src/builders/build-grid.d.ts +18 -9
  654. package/es/components/virtual-list/src/builders/build-grid.mjs +37 -9
  655. package/es/components/virtual-list/src/builders/build-grid.mjs.map +1 -1
  656. package/es/components/virtual-list/src/builders/build-list.d.ts +16 -2
  657. package/es/components/virtual-list/src/builders/build-list.mjs +7 -5
  658. package/es/components/virtual-list/src/builders/build-list.mjs.map +1 -1
  659. package/es/components/virtual-list/src/components/dynamic-size-grid.d.ts +29 -5
  660. package/es/components/virtual-list/src/components/dynamic-size-grid.mjs +32 -2
  661. package/es/components/virtual-list/src/components/dynamic-size-grid.mjs.map +1 -1
  662. package/es/components/virtual-list/src/components/dynamic-size-list.d.ts +16 -2
  663. package/es/components/virtual-list/src/components/fixed-size-grid.d.ts +15 -3
  664. package/es/components/virtual-list/src/components/fixed-size-list.d.ts +16 -2
  665. package/es/components/virtual-list/src/components/scrollbar.d.ts +14 -0
  666. package/es/components/virtual-list/src/components/scrollbar.mjs +27 -28
  667. package/es/components/virtual-list/src/components/scrollbar.mjs.map +1 -1
  668. package/es/components/virtual-list/src/defaults.d.ts +1 -1
  669. package/es/components/virtual-list/src/defaults.mjs +1 -1
  670. package/es/components/virtual-list/src/defaults.mjs.map +1 -1
  671. package/es/components/virtual-list/src/hooks/use-grid-wheel.mjs +7 -2
  672. package/es/components/virtual-list/src/hooks/use-grid-wheel.mjs.map +1 -1
  673. package/es/components/virtual-list/src/props.d.ts +9 -0
  674. package/es/components/virtual-list/src/props.mjs +15 -0
  675. package/es/components/virtual-list/src/props.mjs.map +1 -1
  676. package/es/components/virtual-list/src/types.d.ts +5 -0
  677. package/es/index.mjs +32 -32
  678. package/es/utils/animation.mjs +3 -1
  679. package/es/utils/animation.mjs.map +1 -1
  680. package/es/version.d.ts +1 -1
  681. package/es/version.mjs +1 -1
  682. package/es/version.mjs.map +1 -1
  683. package/lib/components/affix/index.js +2 -2
  684. package/lib/components/affix/src/affix.js +24 -114
  685. package/lib/components/affix/src/affix.js.map +1 -1
  686. package/lib/components/affix/src/affix2.js +114 -24
  687. package/lib/components/affix/src/affix2.js.map +1 -1
  688. package/lib/components/alert/index.js +2 -2
  689. package/lib/components/alert/src/alert.js +89 -37
  690. package/lib/components/alert/src/alert.js.map +1 -1
  691. package/lib/components/alert/src/alert2.js +37 -89
  692. package/lib/components/alert/src/alert2.js.map +1 -1
  693. package/lib/components/autocomplete/index.d.ts +0 -4599
  694. package/lib/components/autocomplete/index.js +2 -2
  695. package/lib/components/autocomplete/src/autocomplete.js +67 -324
  696. package/lib/components/autocomplete/src/autocomplete.js.map +1 -1
  697. package/lib/components/autocomplete/src/autocomplete.vue.d.ts +0 -4599
  698. package/lib/components/autocomplete/src/autocomplete2.js +324 -67
  699. package/lib/components/autocomplete/src/autocomplete2.js.map +1 -1
  700. package/lib/components/avatar/index.js +2 -2
  701. package/lib/components/avatar/src/avatar.js +68 -33
  702. package/lib/components/avatar/src/avatar.js.map +1 -1
  703. package/lib/components/avatar/src/avatar2.js +33 -68
  704. package/lib/components/avatar/src/avatar2.js.map +1 -1
  705. package/lib/components/backtop/index.js +2 -2
  706. package/lib/components/backtop/src/backtop.js +22 -100
  707. package/lib/components/backtop/src/backtop.js.map +1 -1
  708. package/lib/components/backtop/src/backtop2.js +100 -22
  709. package/lib/components/backtop/src/backtop2.js.map +1 -1
  710. package/lib/components/badge/index.js +2 -2
  711. package/lib/components/badge/src/badge.js +54 -17
  712. package/lib/components/badge/src/badge.js.map +1 -1
  713. package/lib/components/badge/src/badge2.js +17 -54
  714. package/lib/components/badge/src/badge2.js.map +1 -1
  715. package/lib/components/breadcrumb/index.js +4 -4
  716. package/lib/components/breadcrumb/src/breadcrumb-item.js +57 -11
  717. package/lib/components/breadcrumb/src/breadcrumb-item.js.map +1 -1
  718. package/lib/components/breadcrumb/src/breadcrumb-item2.js +11 -57
  719. package/lib/components/breadcrumb/src/breadcrumb-item2.js.map +1 -1
  720. package/lib/components/breadcrumb/src/breadcrumb.js +12 -37
  721. package/lib/components/breadcrumb/src/breadcrumb.js.map +1 -1
  722. package/lib/components/breadcrumb/src/breadcrumb2.js +37 -12
  723. package/lib/components/breadcrumb/src/breadcrumb2.js.map +1 -1
  724. package/lib/components/button/index.js +3 -3
  725. package/lib/components/button/src/button-group.js +30 -5
  726. package/lib/components/button/src/button-group.js.map +1 -1
  727. package/lib/components/button/src/button-group2.js +5 -30
  728. package/lib/components/button/src/button-group2.js.map +1 -1
  729. package/lib/components/button/src/button.js +54 -106
  730. package/lib/components/button/src/button.js.map +1 -1
  731. package/lib/components/button/src/button2.js +106 -54
  732. package/lib/components/button/src/button2.js.map +1 -1
  733. package/lib/components/card/index.js +2 -2
  734. package/lib/components/card/src/card.js +35 -15
  735. package/lib/components/card/src/card.js.map +1 -1
  736. package/lib/components/card/src/card2.js +15 -35
  737. package/lib/components/card/src/card2.js.map +1 -1
  738. package/lib/components/carousel/index.js +4 -4
  739. package/lib/components/carousel/src/carousel-item.js +7 -155
  740. package/lib/components/carousel/src/carousel-item.js.map +1 -1
  741. package/lib/components/carousel/src/carousel-item2.js +155 -7
  742. package/lib/components/carousel/src/carousel-item2.js.map +1 -1
  743. package/lib/components/carousel/src/carousel.js +319 -49
  744. package/lib/components/carousel/src/carousel.js.map +1 -1
  745. package/lib/components/carousel/src/carousel2.js +49 -319
  746. package/lib/components/carousel/src/carousel2.js.map +1 -1
  747. package/lib/components/cascader/index.d.ts +0 -6132
  748. package/lib/components/cascader/src/index.js +1 -1
  749. package/lib/components/cascader/src/index.vue.d.ts +0 -3066
  750. package/lib/components/cascader-panel/src/config.js +1 -1
  751. package/lib/components/cascader-panel/src/index.js +1 -1
  752. package/lib/components/cascader-panel/src/menu.js +1 -1
  753. package/lib/components/cascader-panel/src/node.js +121 -209
  754. package/lib/components/cascader-panel/src/node.js.map +1 -1
  755. package/lib/components/cascader-panel/src/node2.js +209 -121
  756. package/lib/components/cascader-panel/src/node2.js.map +1 -1
  757. package/lib/components/cascader-panel/src/store.js +1 -1
  758. package/lib/components/date-picker/src/date-picker-com/panel-date-pick.js +2 -1
  759. package/lib/components/date-picker/src/date-picker-com/panel-date-pick.js.map +1 -1
  760. package/lib/components/divider/index.js +2 -2
  761. package/lib/components/divider/src/divider.js +17 -34
  762. package/lib/components/divider/src/divider.js.map +1 -1
  763. package/lib/components/divider/src/divider2.js +34 -17
  764. package/lib/components/divider/src/divider2.js.map +1 -1
  765. package/lib/components/drawer/index.js +2 -2
  766. package/lib/components/drawer/src/drawer.js +126 -22
  767. package/lib/components/drawer/src/drawer.js.map +1 -1
  768. package/lib/components/drawer/src/drawer2.js +22 -126
  769. package/lib/components/drawer/src/drawer2.js.map +1 -1
  770. package/lib/components/empty/src/img-empty.js +7 -17
  771. package/lib/components/empty/src/img-empty.js.map +1 -1
  772. package/lib/components/form/index.d.ts +4 -6
  773. package/lib/components/form/src/form-item.vue.d.ts +2 -3
  774. package/lib/components/form/src/form-item2.js +22 -22
  775. package/lib/components/form/src/form-item2.js.map +1 -1
  776. package/lib/components/form/src/form-label-wrap.js +6 -6
  777. package/lib/components/form/src/form-label-wrap.js.map +1 -1
  778. package/lib/components/icon/index.js +2 -2
  779. package/lib/components/icon/src/icon.js +8 -35
  780. package/lib/components/icon/src/icon.js.map +1 -1
  781. package/lib/components/icon/src/icon2.js +35 -8
  782. package/lib/components/icon/src/icon2.js.map +1 -1
  783. package/lib/components/image-viewer/index.js +2 -2
  784. package/lib/components/image-viewer/src/image-viewer.js +31 -399
  785. package/lib/components/image-viewer/src/image-viewer.js.map +1 -1
  786. package/lib/components/image-viewer/src/image-viewer2.js +399 -31
  787. package/lib/components/image-viewer/src/image-viewer2.js.map +1 -1
  788. package/lib/components/index.js +32 -32
  789. package/lib/components/input/index.d.ts +0 -1533
  790. package/lib/components/input/index.js +2 -2
  791. package/lib/components/input/src/input.js +409 -92
  792. package/lib/components/input/src/input.js.map +1 -1
  793. package/lib/components/input/src/input.vue.d.ts +6 -1539
  794. package/lib/components/input/src/input2.js +92 -432
  795. package/lib/components/input/src/input2.js.map +1 -1
  796. package/lib/components/input-number/index.d.ts +3 -3068
  797. package/lib/components/input-number/index.js +2 -2
  798. package/lib/components/input-number/src/input-number.d.ts +1 -1
  799. package/lib/components/input-number/src/input-number.js +53 -284
  800. package/lib/components/input-number/src/input-number.js.map +1 -1
  801. package/lib/components/input-number/src/input-number.vue.d.ts +3 -3068
  802. package/lib/components/input-number/src/input-number2.js +284 -54
  803. package/lib/components/input-number/src/input-number2.js.map +1 -1
  804. package/lib/components/link/index.js +2 -2
  805. package/lib/components/link/src/link.js +23 -49
  806. package/lib/components/link/src/link.js.map +1 -1
  807. package/lib/components/link/src/link2.js +49 -23
  808. package/lib/components/link/src/link2.js.map +1 -1
  809. package/lib/components/loading/src/loading.js +3 -1
  810. package/lib/components/loading/src/loading.js.map +1 -1
  811. package/lib/components/loading/src/service.js +1 -2
  812. package/lib/components/loading/src/service.js.map +1 -1
  813. package/lib/components/menu/index.d.ts +84 -0
  814. package/lib/components/menu/index.js +2 -2
  815. package/lib/components/menu/src/menu-collapse-transition.js +10 -7
  816. package/lib/components/menu/src/menu-collapse-transition.js.map +1 -1
  817. package/lib/components/menu/src/menu-item-group.vue.d.ts +14 -0
  818. package/lib/components/menu/src/menu-item-group2.js +11 -6
  819. package/lib/components/menu/src/menu-item-group2.js.map +1 -1
  820. package/lib/components/menu/src/menu-item.js +15 -94
  821. package/lib/components/menu/src/menu-item.js.map +1 -1
  822. package/lib/components/menu/src/menu-item.vue.d.ts +28 -0
  823. package/lib/components/menu/src/menu-item2.js +102 -15
  824. package/lib/components/menu/src/menu-item2.js.map +1 -1
  825. package/lib/components/menu/src/menu.js +14 -10
  826. package/lib/components/menu/src/menu.js.map +1 -1
  827. package/lib/components/menu/src/sub-menu.js +23 -20
  828. package/lib/components/menu/src/sub-menu.js.map +1 -1
  829. package/lib/components/menu/src/utils/menu-bar.d.ts +2 -2
  830. package/lib/components/menu/src/utils/menu-bar.js +4 -4
  831. package/lib/components/menu/src/utils/menu-bar.js.map +1 -1
  832. package/lib/components/menu/src/utils/menu-item.d.ts +2 -2
  833. package/lib/components/menu/src/utils/menu-item.js +4 -4
  834. package/lib/components/menu/src/utils/menu-item.js.map +1 -1
  835. package/lib/components/message-box/src/index.js +71 -62
  836. package/lib/components/message-box/src/index.js.map +1 -1
  837. package/lib/components/message-box/src/index.vue.d.ts +17 -1
  838. package/lib/components/page-header/index.js +2 -2
  839. package/lib/components/page-header/src/page-header.js +18 -60
  840. package/lib/components/page-header/src/page-header.js.map +1 -1
  841. package/lib/components/page-header/src/page-header2.js +60 -18
  842. package/lib/components/page-header/src/page-header2.js.map +1 -1
  843. package/lib/components/popconfirm/src/popconfirm.js +1 -1
  844. package/lib/components/popper/index.js +2 -2
  845. package/lib/components/popper/src/content.vue.d.ts +1 -1
  846. package/lib/components/popper/src/content2.js +3 -3
  847. package/lib/components/popper/src/content2.js.map +1 -1
  848. package/lib/components/popper/src/trigger.js +71 -16
  849. package/lib/components/popper/src/trigger.js.map +1 -1
  850. package/lib/components/popper/src/trigger2.js +16 -71
  851. package/lib/components/popper/src/trigger2.js.map +1 -1
  852. package/lib/components/progress/index.js +2 -2
  853. package/lib/components/progress/src/progress.js +57 -230
  854. package/lib/components/progress/src/progress.js.map +1 -1
  855. package/lib/components/progress/src/progress2.js +230 -57
  856. package/lib/components/progress/src/progress2.js.map +1 -1
  857. package/lib/components/radio/index.js +2 -2
  858. package/lib/components/radio/src/radio-button.js +1 -1
  859. package/lib/components/radio/src/radio-button2.js +1 -1
  860. package/lib/components/radio/src/radio-group.js +1 -1
  861. package/lib/components/radio/src/radio.js +82 -69
  862. package/lib/components/radio/src/radio.js.map +1 -1
  863. package/lib/components/radio/src/radio2.js +69 -82
  864. package/lib/components/radio/src/radio2.js.map +1 -1
  865. package/lib/components/result/index.js +2 -2
  866. package/lib/components/result/src/result.js +73 -30
  867. package/lib/components/result/src/result.js.map +1 -1
  868. package/lib/components/result/src/result2.js +30 -73
  869. package/lib/components/result/src/result2.js.map +1 -1
  870. package/lib/components/scrollbar/index.js +3 -3
  871. package/lib/components/scrollbar/src/bar2.js +1 -1
  872. package/lib/components/scrollbar/src/scrollbar.js +175 -50
  873. package/lib/components/scrollbar/src/scrollbar.js.map +1 -1
  874. package/lib/components/scrollbar/src/scrollbar2.js +50 -175
  875. package/lib/components/scrollbar/src/scrollbar2.js.map +1 -1
  876. package/lib/components/scrollbar/src/thumb.js +137 -11
  877. package/lib/components/scrollbar/src/thumb.js.map +1 -1
  878. package/lib/components/scrollbar/src/thumb2.js +11 -137
  879. package/lib/components/scrollbar/src/thumb2.js.map +1 -1
  880. package/lib/components/select/src/select.js +3 -5
  881. package/lib/components/select/src/select.js.map +1 -1
  882. package/lib/components/select/src/useSelect.js +1 -2
  883. package/lib/components/select/src/useSelect.js.map +1 -1
  884. package/lib/components/switch/index.js +2 -2
  885. package/lib/components/switch/src/switch.js +87 -249
  886. package/lib/components/switch/src/switch.js.map +1 -1
  887. package/lib/components/switch/src/switch2.js +249 -87
  888. package/lib/components/switch/src/switch2.js.map +1 -1
  889. package/lib/components/table/src/table/defaults.d.ts +1 -1
  890. package/lib/components/table/src/table/defaults.js.map +1 -1
  891. package/lib/components/table-v2/index.d.ts +1 -0
  892. package/lib/components/table-v2/src/cell.d.ts +3 -3
  893. package/lib/components/table-v2/src/cell.js +5 -3
  894. package/lib/components/table-v2/src/cell.js.map +1 -1
  895. package/lib/components/table-v2/src/column-resizer.d.ts +14 -0
  896. package/lib/components/table-v2/src/column-resizer.js +28 -0
  897. package/lib/components/table-v2/src/column-resizer.js.map +1 -0
  898. package/lib/components/table-v2/src/column.d.ts +4 -6
  899. package/lib/components/table-v2/src/column.js +2 -6
  900. package/lib/components/table-v2/src/column.js.map +1 -1
  901. package/lib/components/table-v2/src/common.d.ts +1 -2
  902. package/lib/components/table-v2/src/common.js.map +1 -1
  903. package/lib/components/table-v2/src/constants.d.ts +13 -1
  904. package/lib/components/table-v2/src/constants.js +18 -1
  905. package/lib/components/table-v2/src/constants.js.map +1 -1
  906. package/lib/components/table-v2/src/expand-icon.d.ts +11 -0
  907. package/lib/components/table-v2/src/grid.d.ts +18 -22
  908. package/lib/components/table-v2/src/grid.js +5 -3
  909. package/lib/components/table-v2/src/grid.js.map +1 -1
  910. package/lib/components/table-v2/src/header-cell.d.ts +1 -19
  911. package/lib/components/table-v2/src/header-row.d.ts +1 -20
  912. package/lib/components/table-v2/src/header-row.js +0 -1
  913. package/lib/components/table-v2/src/header-row.js.map +1 -1
  914. package/lib/components/table-v2/src/header.d.ts +1 -19
  915. package/lib/components/table-v2/src/private.d.ts +1 -0
  916. package/lib/components/table-v2/src/private.js +8 -0
  917. package/lib/components/table-v2/src/private.js.map +1 -0
  918. package/lib/components/table-v2/src/renderers/cell.d.ts +10 -0
  919. package/lib/components/table-v2/src/renderers/header-cell.d.ts +10 -0
  920. package/lib/components/table-v2/src/renderers/header.d.ts +9 -0
  921. package/lib/components/table-v2/src/renderers/left-table.d.ts +8 -0
  922. package/lib/components/table-v2/src/renderers/main-table.d.ts +8 -0
  923. package/lib/components/table-v2/src/renderers/right-table.d.ts +8 -0
  924. package/lib/components/table-v2/src/renderers/row.d.ts +10 -0
  925. package/lib/components/table-v2/src/row.d.ts +8 -20
  926. package/lib/components/table-v2/src/row.js +4 -1
  927. package/lib/components/table-v2/src/row.js.map +1 -1
  928. package/lib/components/table-v2/src/sort-icon.d.ts +8 -0
  929. package/lib/components/table-v2/src/table-cell.d.ts +8 -18
  930. package/lib/components/table-v2/src/table-column-resizer.d.ts +31 -0
  931. package/lib/components/table-v2/src/table-grid.d.ts +45 -47
  932. package/lib/components/table-v2/src/table-header-cell.d.ts +7 -47
  933. package/lib/components/table-v2/src/table-header-row.d.ts +15 -40
  934. package/lib/components/table-v2/src/table-header.d.ts +14 -39
  935. package/lib/components/table-v2/src/table-row.d.ts +31 -41
  936. package/lib/components/table-v2/src/table-v2.d.ts +151 -0
  937. package/lib/components/table-v2/src/table.d.ts +33 -32
  938. package/lib/components/table-v2/src/table.js +36 -4
  939. package/lib/components/table-v2/src/table.js.map +1 -1
  940. package/lib/components/table-v2/src/tokens.d.ts +2 -1
  941. package/lib/components/table-v2/src/tokens.js.map +1 -1
  942. package/lib/components/table-v2/src/types.d.ts +8 -11
  943. package/lib/components/table-v2/src/use-columns.d.ts +18 -0
  944. package/lib/components/table-v2/src/{useTable.js → use-columns.js} +42 -36
  945. package/lib/components/table-v2/src/use-columns.js.map +1 -0
  946. package/lib/components/table-v2/src/use-table.d.ts +58 -0
  947. package/lib/components/table-v2/src/use-table.js +308 -0
  948. package/lib/components/table-v2/src/use-table.js.map +1 -0
  949. package/lib/components/table-v2/src/utils.d.ts +7 -0
  950. package/lib/components/table-v2/src/utils.js +30 -0
  951. package/lib/components/table-v2/src/utils.js.map +1 -0
  952. package/lib/components/tabs/index.js +1 -1
  953. package/lib/components/tabs/src/tab-bar.js +7 -76
  954. package/lib/components/tabs/src/tab-bar.js.map +1 -1
  955. package/lib/components/tabs/src/tab-bar2.js +76 -7
  956. package/lib/components/tabs/src/tab-bar2.js.map +1 -1
  957. package/lib/components/tabs/src/tab-nav.js +1 -1
  958. package/lib/components/tag/index.js +2 -2
  959. package/lib/components/tag/src/tag.js +93 -34
  960. package/lib/components/tag/src/tag.js.map +1 -1
  961. package/lib/components/tag/src/tag2.js +34 -93
  962. package/lib/components/tag/src/tag2.js.map +1 -1
  963. package/lib/components/time-select/index.d.ts +28 -0
  964. package/lib/components/time-select/src/time-select.js +6 -2
  965. package/lib/components/time-select/src/time-select.js.map +1 -1
  966. package/lib/components/time-select/src/time-select.vue.d.ts +14 -0
  967. package/lib/components/tooltip/src/content.vue.d.ts +2 -2
  968. package/lib/components/tooltip/src/tooltip.js +1 -1
  969. package/lib/components/tooltip/src/trigger.js +1 -1
  970. package/lib/components/tooltip-v2/index.js +3 -3
  971. package/lib/components/tooltip-v2/src/content.js +50 -113
  972. package/lib/components/tooltip-v2/src/content.js.map +1 -1
  973. package/lib/components/tooltip-v2/src/content2.js +113 -50
  974. package/lib/components/tooltip-v2/src/content2.js.map +1 -1
  975. package/lib/components/tooltip-v2/src/tooltip.js +73 -20
  976. package/lib/components/tooltip-v2/src/tooltip.js.map +1 -1
  977. package/lib/components/tooltip-v2/src/tooltip2.js +20 -73
  978. package/lib/components/tooltip-v2/src/tooltip2.js.map +1 -1
  979. package/lib/components/tree-select/src/tree-select.js +1 -0
  980. package/lib/components/tree-select/src/tree-select.js.map +1 -1
  981. package/lib/components/tree-select/src/tree.js +16 -3
  982. package/lib/components/tree-select/src/tree.js.map +1 -1
  983. package/lib/components/upload/index.js +1 -1
  984. package/lib/components/upload/src/upload-content.js +168 -37
  985. package/lib/components/upload/src/upload-content.js.map +1 -1
  986. package/lib/components/upload/src/upload-content2.js +37 -168
  987. package/lib/components/upload/src/upload-content2.js.map +1 -1
  988. package/lib/components/upload/src/upload2.js +1 -1
  989. package/lib/components/virtual-list/index.d.ts +2 -1
  990. package/lib/components/virtual-list/index.js +1 -1
  991. package/lib/components/virtual-list/src/builders/build-grid.d.ts +18 -9
  992. package/lib/components/virtual-list/src/builders/build-grid.js +36 -8
  993. package/lib/components/virtual-list/src/builders/build-grid.js.map +1 -1
  994. package/lib/components/virtual-list/src/builders/build-list.d.ts +16 -2
  995. package/lib/components/virtual-list/src/builders/build-list.js +7 -5
  996. package/lib/components/virtual-list/src/builders/build-list.js.map +1 -1
  997. package/lib/components/virtual-list/src/components/dynamic-size-grid.d.ts +29 -5
  998. package/lib/components/virtual-list/src/components/dynamic-size-grid.js +32 -2
  999. package/lib/components/virtual-list/src/components/dynamic-size-grid.js.map +1 -1
  1000. package/lib/components/virtual-list/src/components/dynamic-size-list.d.ts +16 -2
  1001. package/lib/components/virtual-list/src/components/fixed-size-grid.d.ts +15 -3
  1002. package/lib/components/virtual-list/src/components/fixed-size-list.d.ts +16 -2
  1003. package/lib/components/virtual-list/src/components/scrollbar.d.ts +14 -0
  1004. package/lib/components/virtual-list/src/components/scrollbar.js +26 -27
  1005. package/lib/components/virtual-list/src/components/scrollbar.js.map +1 -1
  1006. package/lib/components/virtual-list/src/defaults.d.ts +1 -1
  1007. package/lib/components/virtual-list/src/defaults.js +1 -1
  1008. package/lib/components/virtual-list/src/defaults.js.map +1 -1
  1009. package/lib/components/virtual-list/src/hooks/use-grid-wheel.js +7 -2
  1010. package/lib/components/virtual-list/src/hooks/use-grid-wheel.js.map +1 -1
  1011. package/lib/components/virtual-list/src/props.d.ts +9 -0
  1012. package/lib/components/virtual-list/src/props.js +15 -0
  1013. package/lib/components/virtual-list/src/props.js.map +1 -1
  1014. package/lib/components/virtual-list/src/types.d.ts +5 -0
  1015. package/lib/index.js +32 -32
  1016. package/lib/utils/animation.js +3 -1
  1017. package/lib/utils/animation.js.map +1 -1
  1018. package/lib/version.d.ts +1 -1
  1019. package/lib/version.js +1 -1
  1020. package/lib/version.js.map +1 -1
  1021. package/package.json +6 -6
  1022. package/theme-chalk/el-badge.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-color-picker.css +1 -1
  1026. package/theme-chalk/el-date-picker.css +1 -1
  1027. package/theme-chalk/el-form.css +1 -1
  1028. package/theme-chalk/el-input-number.css +1 -1
  1029. package/theme-chalk/el-input.css +1 -1
  1030. package/theme-chalk/el-option.css +1 -1
  1031. package/theme-chalk/el-result.css +1 -1
  1032. package/theme-chalk/el-select.css +1 -1
  1033. package/theme-chalk/el-table-v2.css +1 -0
  1034. package/theme-chalk/el-tag.css +1 -1
  1035. package/theme-chalk/el-time-picker.css +1 -1
  1036. package/theme-chalk/el-time-select.css +1 -1
  1037. package/theme-chalk/el-upload.css +1 -1
  1038. package/theme-chalk/el-virtual-list.css +1 -1
  1039. package/theme-chalk/index.css +1 -1
  1040. package/theme-chalk/src/badge.scss +14 -12
  1041. package/theme-chalk/src/cascader.scss +8 -13
  1042. package/theme-chalk/src/check-tag.scss +1 -1
  1043. package/theme-chalk/src/color-picker.scss +45 -6
  1044. package/theme-chalk/src/common/var.scss +0 -2
  1045. package/theme-chalk/src/dark/css-vars.scss +4 -0
  1046. package/theme-chalk/src/dark/var.scss +19 -0
  1047. package/theme-chalk/src/date-picker/picker.scss +12 -0
  1048. package/theme-chalk/src/date-picker/time-spinner.scss +1 -1
  1049. package/theme-chalk/src/form.scss +4 -2
  1050. package/theme-chalk/src/index.scss +1 -0
  1051. package/theme-chalk/src/input-number.scss +9 -7
  1052. package/theme-chalk/src/input.scss +109 -168
  1053. package/theme-chalk/src/option.scss +0 -4
  1054. package/theme-chalk/src/result.scss +0 -2
  1055. package/theme-chalk/src/select/common.scss +1 -1
  1056. package/theme-chalk/src/select.scss +12 -6
  1057. package/theme-chalk/src/table-v2.scss +189 -0
  1058. package/theme-chalk/src/tag.scss +24 -20
  1059. package/theme-chalk/src/upload.scss +2 -2
  1060. package/theme-chalk/src/virtual-list.scss +3 -0
  1061. package/web-types.json +1 -1
  1062. package/es/components/autocomplete/src/index.mjs +0 -7
  1063. package/es/components/autocomplete/src/index.mjs.map +0 -1
  1064. package/es/components/table-v2/src/useTable.d.ts +0 -13
  1065. package/es/components/table-v2/src/useTable.mjs.map +0 -1
  1066. package/lib/components/autocomplete/src/index.js +0 -11
  1067. package/lib/components/autocomplete/src/index.js.map +0 -1
  1068. package/lib/components/table-v2/src/useTable.d.ts +0 -13
  1069. package/lib/components/table-v2/src/useTable.js.map +0 -1
@@ -0,0 +1,304 @@
1
+ import { getCurrentInstance, toRef, ref, shallowRef, computed, unref, watch } from 'vue';
2
+ import '../../../utils/index.mjs';
3
+ import { enforceUnit, sum } from './utils.mjs';
4
+ import { useColumns } from './use-columns.mjs';
5
+ import { SortOrder, oppositeOrderMap } from './constants.mjs';
6
+ import { isNumber } from '@vueuse/core';
7
+ import { isUndefined } from '../../../utils/types.mjs';
8
+ import { isObject } from '@vue/shared';
9
+
10
+ function useTable(props) {
11
+ const emit = getCurrentInstance().emit;
12
+ const {
13
+ columns,
14
+ columnsStyles,
15
+ columnsTotalWidth,
16
+ fixedColumnsOnLeft,
17
+ fixedColumnOnRight,
18
+ hasFixedColumns,
19
+ mainColumns,
20
+ getColumn
21
+ } = useColumns(toRef(props, "columns"), toRef(props, "fixed"));
22
+ const expandedRowKeys = ref(props.defaultExpandedRowKeys || []);
23
+ const depthMap = ref({});
24
+ const hoveringRowKey = shallowRef(null);
25
+ const resetIndex = shallowRef(null);
26
+ const isResetting = shallowRef(false);
27
+ const isScrolling = shallowRef(false);
28
+ const containerRef = ref();
29
+ const mainTableRef = ref();
30
+ const leftTableRef = ref();
31
+ const rightTableRef = ref();
32
+ const scrollPos = ref({ scrollLeft: 0, scrollTop: 0 });
33
+ const lastRenderedRowIndex = ref(-1);
34
+ const rowHeights = shallowRef({});
35
+ const leftTableHeights = shallowRef({});
36
+ const mainTableHeights = shallowRef({});
37
+ const rightTableHeights = shallowRef({});
38
+ const rowsHeight = computed(() => {
39
+ const { rowHeight, estimatedRowHeight } = props;
40
+ const _data = unref(data);
41
+ if (isNumber(estimatedRowHeight)) {
42
+ return _data.length * estimatedRowHeight;
43
+ }
44
+ return _data.length * rowHeight;
45
+ });
46
+ const flattenedData = computed(() => {
47
+ const depths = {};
48
+ const { data: data2, rowKey } = props;
49
+ const _expandedRowKeys = unref(expandedRowKeys);
50
+ if (!_expandedRowKeys || !_expandedRowKeys.length)
51
+ return data2;
52
+ const array = [];
53
+ const keysSet = /* @__PURE__ */ new Set();
54
+ _expandedRowKeys.forEach((x) => keysSet.add(x));
55
+ let copy = data2.slice();
56
+ copy.forEach((x) => depths[x[rowKey]] = 0);
57
+ while (copy.length > 0) {
58
+ const item = copy.shift();
59
+ array.push(item);
60
+ if (keysSet.has(item[rowKey]) && Array.isArray(item.children) && item.children.length > 0) {
61
+ copy = [...item.children, ...copy];
62
+ item.children.forEach((child) => depths[child[rowKey]] = depths[item[rowKey]] + 1);
63
+ }
64
+ }
65
+ depthMap.value = depths;
66
+ return array;
67
+ });
68
+ const data = computed(() => {
69
+ const { data: data2, expandColumnKey } = props;
70
+ return expandColumnKey ? unref(flattenedData) : data2;
71
+ });
72
+ const bodyWidth = computed(() => {
73
+ const { fixed, width, vScrollbarSize } = props;
74
+ const ret = width - vScrollbarSize;
75
+ return fixed ? Math.max(Math.round(unref(columnsTotalWidth)), ret) : ret;
76
+ });
77
+ const rootStyle = computed(() => {
78
+ const { style = {}, height, width } = props;
79
+ return enforceUnit({
80
+ ...style,
81
+ height,
82
+ width
83
+ });
84
+ });
85
+ const headerWidth = computed(() => unref(bodyWidth) + (props.fixed ? props.vScrollbarSize : 0));
86
+ const mainTableHeight = computed(() => {
87
+ const { height = 0, maxHeight = 0, footerHeight, hScrollbarSize } = props;
88
+ if (maxHeight > 0) {
89
+ const _fixedRowsHeight = unref(fixedRowsHeight);
90
+ const _rowsHeight = unref(rowsHeight);
91
+ const _headerHeight = unref(headerHeight);
92
+ const total = _headerHeight + _fixedRowsHeight + _rowsHeight + hScrollbarSize;
93
+ return Math.min(total, maxHeight - footerHeight);
94
+ }
95
+ return height - footerHeight;
96
+ });
97
+ const fixedTableHeight = computed(() => {
98
+ const { maxHeight } = props;
99
+ const tableHeight = unref(mainTableHeight);
100
+ if (isNumber(maxHeight) && maxHeight > 0)
101
+ return tableHeight;
102
+ const totalHeight = unref(rowsHeight) + unref(headerHeight) + unref(fixedRowsHeight);
103
+ return Math.min(tableHeight, totalHeight);
104
+ });
105
+ const mapColumn = (column) => column.width;
106
+ const leftTableWidth = computed(() => sum(unref(fixedColumnsOnLeft).map(mapColumn)));
107
+ const rightTableWidth = computed(() => sum(unref(fixedColumnOnRight).map(mapColumn)));
108
+ const headerHeight = computed(() => sum(props.headerHeight));
109
+ const fixedRowsHeight = computed(() => {
110
+ var _a;
111
+ return (((_a = props.fixedData) == null ? void 0 : _a.length) || 0) * props.rowHeight;
112
+ });
113
+ const windowHeight = computed(() => {
114
+ return unref(mainTableHeight) - unref(headerHeight) - unref(fixedRowsHeight);
115
+ });
116
+ function doScroll(params) {
117
+ var _a, _b, _c;
118
+ const { scrollTop } = params;
119
+ (_a = mainTableRef.value) == null ? void 0 : _a.scrollTo(params);
120
+ (_b = leftTableRef.value) == null ? void 0 : _b.scrollToTop(scrollTop);
121
+ (_c = rightTableRef.value) == null ? void 0 : _c.scrollToTop(scrollTop);
122
+ }
123
+ function scrollTo(params) {
124
+ scrollPos.value = params;
125
+ doScroll(params);
126
+ }
127
+ function scrollToTop(scrollTop) {
128
+ scrollPos.value.scrollTop = scrollTop;
129
+ doScroll(unref(scrollPos));
130
+ }
131
+ function scrollToLeft(scrollLeft) {
132
+ var _a, _b;
133
+ scrollPos.value.scrollLeft = scrollLeft;
134
+ (_b = (_a = mainTableRef.value) == null ? void 0 : _a.scrollTo) == null ? void 0 : _b.call(_a, unref(scrollPos));
135
+ }
136
+ function onMaybeEndReached() {
137
+ const { onEndReached } = props;
138
+ if (!onEndReached)
139
+ return;
140
+ const { scrollTop } = unref(scrollPos);
141
+ const _totalHeight = unref(rowsHeight);
142
+ const clientHeight = unref(windowHeight);
143
+ const heightUntilEnd = _totalHeight - (scrollTop + clientHeight) + props.hScrollbarSize;
144
+ if (unref(lastRenderedRowIndex) >= 0 && _totalHeight !== unref(rowsHeight)) {
145
+ onEndReached(heightUntilEnd);
146
+ }
147
+ }
148
+ function updateRows() {
149
+ isResetting.value = true;
150
+ resetAfterIndex(unref(resetIndex), false);
151
+ resetIndex.value = null;
152
+ isResetting.value = false;
153
+ }
154
+ function resetAfterIndex(index, forceUpdate = false) {
155
+ if (isUndefined(props.estimatedRowHeight))
156
+ return;
157
+ [mainTableRef, leftTableRef, rightTableRef].forEach((tableRef) => {
158
+ const table = unref(tableRef);
159
+ if (table)
160
+ table.resetAfterRowIndex(index, forceUpdate);
161
+ });
162
+ }
163
+ function onScroll(params) {
164
+ var _a;
165
+ scrollTo(params);
166
+ (_a = props.onScroll) == null ? void 0 : _a.call(props, params);
167
+ }
168
+ function onVerticalScroll({ scrollTop }) {
169
+ const { scrollTop: currentScrollTop } = unref(scrollPos);
170
+ if (scrollTop !== currentScrollTop)
171
+ scrollToTop(scrollTop);
172
+ }
173
+ function onRowsRendered(params) {
174
+ var _a;
175
+ (_a = props.onRowRendered) == null ? void 0 : _a.call(props, params);
176
+ if (params.rowCacheEnd > unref(lastRenderedRowIndex)) {
177
+ lastRenderedRowIndex.value = params.rowCacheEnd;
178
+ }
179
+ }
180
+ function onRowHovered({ hovered, rowKey }) {
181
+ hoveringRowKey.value = hovered ? rowKey : null;
182
+ }
183
+ function onRowExpanded({
184
+ expanded,
185
+ rowData,
186
+ rowIndex,
187
+ rowKey
188
+ }) {
189
+ var _a, _b;
190
+ const _expandedRowKeys = [...unref(expandedRowKeys)];
191
+ const currentKeyIndex = _expandedRowKeys.indexOf(rowKey);
192
+ if (expanded) {
193
+ if (currentKeyIndex === -1)
194
+ _expandedRowKeys.push(rowKey);
195
+ } else {
196
+ if (currentKeyIndex > -1)
197
+ _expandedRowKeys.splice(currentKeyIndex, 1);
198
+ }
199
+ expandedRowKeys.value = _expandedRowKeys;
200
+ emit("update:expandedRowKeys", _expandedRowKeys);
201
+ (_a = props.onRowExpand) == null ? void 0 : _a.call(props, {
202
+ expanded,
203
+ rowData,
204
+ rowIndex,
205
+ rowKey
206
+ });
207
+ (_b = props.onExpandedRowsChange) == null ? void 0 : _b.call(props, _expandedRowKeys);
208
+ }
209
+ function onColumnSorted(e) {
210
+ var _a;
211
+ const { key } = e.currentTarget.dataset;
212
+ if (!key)
213
+ return;
214
+ const { sortState, sortBy } = props;
215
+ let order = SortOrder.ASC;
216
+ if (isObject(sortState)) {
217
+ order = oppositeOrderMap[sortState[key]];
218
+ } else {
219
+ order = oppositeOrderMap[sortBy.order];
220
+ }
221
+ (_a = props.onColumnSort) == null ? void 0 : _a.call(props, { column: getColumn(key), key, order });
222
+ }
223
+ function onRowHeightChanged(rowKey, height, rowIdx) {
224
+ const resetIdx = unref(resetIndex);
225
+ if (resetIdx === null) {
226
+ resetIndex.value = rowIdx;
227
+ } else {
228
+ if (resetIdx > rowIdx) {
229
+ resetIndex.value = rowIdx;
230
+ }
231
+ }
232
+ rowHeights.value[rowKey] = height;
233
+ }
234
+ function onFixedRowHeightChanged({
235
+ rowKey,
236
+ height,
237
+ rowIndex
238
+ }, fixedDir) {
239
+ if (!fixedDir) {
240
+ mainTableHeights.value[rowKey] = height;
241
+ } else {
242
+ if (fixedDir === "right") {
243
+ rightTableHeights.value[rowKey] = height;
244
+ } else {
245
+ leftTableHeights.value[rowKey] = height;
246
+ }
247
+ }
248
+ const _rowHeights = unref(rowHeights);
249
+ if (_rowHeights[rowKey] !== height) {
250
+ onRowHeightChanged(rowKey, height, rowIndex);
251
+ }
252
+ }
253
+ watch(() => unref(scrollPos).scrollTop, (cur, prev) => {
254
+ if (cur > prev)
255
+ onMaybeEndReached();
256
+ });
257
+ watch(lastRenderedRowIndex, () => onMaybeEndReached());
258
+ watch(() => props.expandedRowKeys, (val) => expandedRowKeys.value = val, {
259
+ deep: true
260
+ });
261
+ watch(rowHeights, () => {
262
+ updateRows();
263
+ });
264
+ return {
265
+ columns,
266
+ containerRef,
267
+ mainTableRef,
268
+ leftTableRef,
269
+ rightTableRef,
270
+ isResetting,
271
+ isScrolling,
272
+ hoveringRowKey,
273
+ hasFixedColumns,
274
+ columnsStyles,
275
+ columnsTotalWidth,
276
+ data,
277
+ expandedRowKeys,
278
+ depthMap,
279
+ fixedColumnsOnLeft,
280
+ fixedColumnOnRight,
281
+ mainColumns,
282
+ bodyWidth,
283
+ rootStyle,
284
+ headerWidth,
285
+ mainTableHeight,
286
+ fixedTableHeight,
287
+ leftTableWidth,
288
+ rightTableWidth,
289
+ scrollTo,
290
+ scrollToLeft,
291
+ scrollToTop,
292
+ onColumnSorted,
293
+ onRowHovered,
294
+ onRowExpanded,
295
+ onRowsRendered,
296
+ onRowHeightChanged,
297
+ onFixedRowHeightChanged,
298
+ onScroll,
299
+ onVerticalScroll
300
+ };
301
+ }
302
+
303
+ export { useTable };
304
+ //# sourceMappingURL=use-table.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-table.mjs","sources":["../../../../../../packages/components/table-v2/src/use-table.ts"],"sourcesContent":["import {\n computed,\n getCurrentInstance,\n ref,\n shallowRef,\n toRef,\n unref,\n watch,\n} from 'vue'\nimport { isNumber, isObject, isUndefined } from '@element-plus/utils'\nimport { enforceUnit, sum } from './utils'\nimport { useColumns } from './use-columns'\nimport { SortOrder, oppositeOrderMap } from './constants'\n\nimport type { CSSProperties } from 'vue'\nimport type { FixedDirection, KeyType } from './types'\nimport type { TableV2Props } from './table'\nimport type { onRowRenderedParams } from './grid'\nimport type { RowExpandParams, RowHoverParams } from './row'\n// component\nimport type { TableGridInstance } from './table-grid'\n\ntype Nullable<T> = T | null\ntype ScrollPos = { scrollLeft: number; scrollTop: number }\ntype Heights = Record<KeyType, CSSProperties['height']>\n\nfunction useTable(props: TableV2Props) {\n const emit = getCurrentInstance()!.emit\n\n const {\n columns,\n columnsStyles,\n columnsTotalWidth,\n fixedColumnsOnLeft,\n fixedColumnOnRight,\n hasFixedColumns,\n mainColumns,\n getColumn,\n } = useColumns(toRef(props, 'columns'), toRef(props, 'fixed'))\n // state\n const expandedRowKeys = ref<KeyType[]>(props.defaultExpandedRowKeys || [])\n const depthMap = ref<Record<KeyType, number>>({})\n const hoveringRowKey = shallowRef<Nullable<KeyType>>(null)\n // const resizingKey = shallowRef<Nullable<KeyType>>(null)\n // const resizingWidth = shallowRef(0)\n const resetIndex = shallowRef<Nullable<number>>(null)\n const isResetting = shallowRef(false)\n const isScrolling = shallowRef(false)\n\n // DOM/Component refs\n const containerRef = ref()\n const mainTableRef = ref<TableGridInstance>()\n const leftTableRef = ref<TableGridInstance>()\n const rightTableRef = ref<TableGridInstance>()\n\n const scrollPos = ref<ScrollPos>({ scrollLeft: 0, scrollTop: 0 })\n const lastRenderedRowIndex = ref(-1)\n const rowHeights = shallowRef<Heights>({})\n const leftTableHeights = shallowRef<Heights>({})\n const mainTableHeights = shallowRef<Heights>({})\n const rightTableHeights = shallowRef<Heights>({})\n\n const rowsHeight = computed(() => {\n const { rowHeight, estimatedRowHeight } = props\n const _data = unref(data)\n if (isNumber(estimatedRowHeight)) {\n return _data.length * estimatedRowHeight\n }\n\n return _data.length * rowHeight\n })\n\n const flattenedData = computed(() => {\n const depths = {}\n const { data, rowKey } = props\n\n const _expandedRowKeys = unref(expandedRowKeys)\n\n if (!_expandedRowKeys || !_expandedRowKeys.length) return data\n\n const array: any[] = []\n const keysSet = new Set()\n _expandedRowKeys.forEach((x) => keysSet.add(x))\n\n let copy: any[] = data.slice()\n copy.forEach((x) => (depths[x[rowKey]] = 0))\n while (copy.length > 0) {\n const item = copy.shift()!\n\n array.push(item)\n if (\n keysSet.has(item[rowKey]) &&\n Array.isArray(item.children) &&\n item.children.length > 0\n ) {\n copy = [...item.children, ...copy]\n item.children.forEach(\n (child: any) => (depths[child[rowKey]] = depths[item[rowKey]] + 1)\n )\n }\n }\n\n depthMap.value = depths\n return array\n })\n\n const data = computed(() => {\n const { data, expandColumnKey } = props\n return expandColumnKey ? unref(flattenedData) : data\n })\n\n const bodyWidth = computed(() => {\n const { fixed, width, vScrollbarSize } = props\n const ret = width - vScrollbarSize\n return fixed ? Math.max(Math.round(unref(columnsTotalWidth)), ret) : ret\n })\n\n const rootStyle = computed<CSSProperties>(() => {\n const { style = {}, height, width } = props\n return enforceUnit({\n ...style,\n height,\n width,\n })\n })\n\n const headerWidth = computed(\n () => unref(bodyWidth) + (props.fixed ? props.vScrollbarSize : 0)\n )\n\n const mainTableHeight = computed(() => {\n const { height = 0, maxHeight = 0, footerHeight, hScrollbarSize } = props\n\n if (maxHeight > 0) {\n const _fixedRowsHeight = unref(fixedRowsHeight)\n const _rowsHeight = unref(rowsHeight)\n const _headerHeight = unref(headerHeight)\n const total =\n _headerHeight + _fixedRowsHeight + _rowsHeight + hScrollbarSize\n\n return Math.min(total, maxHeight - footerHeight)\n }\n\n return height - footerHeight\n })\n\n const fixedTableHeight = computed(() => {\n const { maxHeight } = props\n const tableHeight = unref(mainTableHeight)\n if (isNumber(maxHeight) && maxHeight > 0) return tableHeight\n\n const totalHeight =\n unref(rowsHeight) + unref(headerHeight) + unref(fixedRowsHeight)\n\n return Math.min(tableHeight, totalHeight)\n })\n\n const mapColumn = (column: TableV2Props['columns'][number]) => column.width\n\n const leftTableWidth = computed(() =>\n sum(unref(fixedColumnsOnLeft).map(mapColumn))\n )\n\n const rightTableWidth = computed(() =>\n sum(unref(fixedColumnOnRight).map(mapColumn))\n )\n\n const headerHeight = computed(() => sum(props.headerHeight))\n\n const fixedRowsHeight = computed(() => {\n return (props.fixedData?.length || 0) * props.rowHeight\n })\n\n const windowHeight = computed(() => {\n return unref(mainTableHeight) - unref(headerHeight) - unref(fixedRowsHeight)\n })\n\n function doScroll(params: ScrollPos) {\n const { scrollTop } = params\n\n mainTableRef.value?.scrollTo(params)\n leftTableRef.value?.scrollToTop(scrollTop)\n rightTableRef.value?.scrollToTop(scrollTop)\n }\n\n // methods\n function scrollTo(params: ScrollPos) {\n scrollPos.value = params\n\n doScroll(params)\n }\n\n function scrollToTop(scrollTop: number) {\n scrollPos.value.scrollTop = scrollTop\n\n doScroll(unref(scrollPos))\n }\n\n function scrollToLeft(scrollLeft: number) {\n scrollPos.value.scrollLeft = scrollLeft\n\n mainTableRef.value?.scrollTo?.(unref(scrollPos))\n }\n\n function onMaybeEndReached() {\n const { onEndReached } = props\n if (!onEndReached) return\n\n const { scrollTop } = unref(scrollPos)\n\n const _totalHeight = unref(rowsHeight)\n const clientHeight = unref(windowHeight)\n\n const heightUntilEnd =\n _totalHeight - (scrollTop + clientHeight) + props.hScrollbarSize\n\n if (\n unref(lastRenderedRowIndex) >= 0 &&\n _totalHeight !== unref(rowsHeight)\n ) {\n onEndReached(heightUntilEnd)\n }\n }\n\n function updateRows() {\n isResetting.value = true\n resetAfterIndex(unref(resetIndex)!, false)\n // force update\n resetIndex.value = null\n isResetting.value = false\n }\n\n function resetAfterIndex(index: number, forceUpdate = false) {\n if (isUndefined(props.estimatedRowHeight)) return\n ;[mainTableRef, leftTableRef, rightTableRef].forEach((tableRef) => {\n const table = unref(tableRef)\n if (table) table.resetAfterRowIndex(index, forceUpdate)\n })\n }\n // events\n\n function onScroll(params: ScrollPos) {\n scrollTo(params)\n props.onScroll?.(params)\n }\n\n function onVerticalScroll({ scrollTop }: ScrollPos) {\n const { scrollTop: currentScrollTop } = unref(scrollPos)\n if (scrollTop !== currentScrollTop) scrollToTop(scrollTop)\n }\n\n function onRowsRendered(params: onRowRenderedParams) {\n props.onRowRendered?.(params)\n\n if (params.rowCacheEnd > unref(lastRenderedRowIndex)) {\n lastRenderedRowIndex.value = params.rowCacheEnd\n }\n }\n\n function onRowHovered({ hovered, rowKey }: RowHoverParams<any>) {\n hoveringRowKey.value = hovered ? rowKey : null\n }\n\n function onRowExpanded({\n expanded,\n rowData,\n rowIndex,\n rowKey,\n }: RowExpandParams<any>) {\n const _expandedRowKeys = [...unref(expandedRowKeys)]\n const currentKeyIndex = _expandedRowKeys.indexOf(rowKey)\n if (expanded) {\n if (currentKeyIndex === -1) _expandedRowKeys.push(rowKey)\n } else {\n if (currentKeyIndex > -1) _expandedRowKeys.splice(currentKeyIndex, 1)\n }\n expandedRowKeys.value = _expandedRowKeys\n\n emit('update:expandedRowKeys', _expandedRowKeys)\n props.onRowExpand?.({\n expanded,\n rowData,\n rowIndex,\n rowKey,\n })\n // If this is not controlled, then use this to notify changes\n props.onExpandedRowsChange?.(_expandedRowKeys)\n }\n\n // function onColumnResized(\n // { key }: TableV2Props['columns'][number],\n // width: number\n // ) {\n // resizingWidth.value = width\n // const column = getColumn(key)!\n\n // updateColumnWidth(column, width)\n // props.onColumnResize?.(column, width)\n // }\n\n // function onColumnResizeStart({ key }: TableV2Props['columns'][number]) {\n // resizingKey.value = key\n // }\n\n // function onColumnResizeEnd() {\n // const _resizingKey = unref(resizingKey)\n // const _resizingWidth = unref(resizingWidth)\n\n // resizingKey.value = null\n // resizingWidth.value = 0\n\n // if (!_resizingKey || !_resizingWidth) return\n\n // props.onColumnResizeEnded?.(getColumn(_resizingKey)!, _resizingWidth)\n // }\n\n function onColumnSorted(e: MouseEvent) {\n const { key } = (e.currentTarget as HTMLElement).dataset\n if (!key) return\n const { sortState, sortBy } = props\n\n let order = SortOrder.ASC\n\n if (isObject(sortState)) {\n order = oppositeOrderMap[sortState[key]]\n } else {\n order = oppositeOrderMap[sortBy.order]\n }\n\n props.onColumnSort?.({ column: getColumn(key)!, key, order })\n }\n\n function onRowHeightChanged(rowKey: KeyType, height: number, rowIdx: number) {\n const resetIdx = unref(resetIndex)\n if (resetIdx === null) {\n resetIndex.value = rowIdx\n } else {\n if (resetIdx > rowIdx) {\n resetIndex.value = rowIdx\n }\n }\n\n rowHeights.value[rowKey] = height\n }\n\n function onFixedRowHeightChanged(\n {\n rowKey,\n height,\n rowIndex,\n }: {\n rowKey: KeyType\n height: number\n rowIndex: number\n },\n fixedDir: FixedDirection\n ) {\n if (!fixedDir) {\n mainTableHeights.value[rowKey] = height\n } else {\n if (fixedDir === 'right') {\n rightTableHeights.value[rowKey] = height\n } else {\n leftTableHeights.value[rowKey] = height\n }\n }\n\n const _rowHeights = unref(rowHeights)\n if (_rowHeights[rowKey] !== height) {\n onRowHeightChanged(rowKey, height, rowIndex)\n }\n }\n\n // When scrollTop changes, maybe reaching the bottom\n watch(\n () => unref(scrollPos).scrollTop,\n (cur, prev) => {\n if (cur > prev) onMaybeEndReached()\n }\n )\n\n // when rendered row changes, maybe reaching the bottom\n watch(lastRenderedRowIndex, () => onMaybeEndReached())\n\n watch(\n () => props.expandedRowKeys,\n (val) => (expandedRowKeys.value = val),\n {\n deep: true,\n }\n )\n\n watch(rowHeights, () => {\n updateRows()\n })\n\n return {\n // models\n columns,\n containerRef,\n mainTableRef,\n leftTableRef,\n rightTableRef,\n // states\n isResetting,\n isScrolling,\n hoveringRowKey,\n hasFixedColumns,\n // resizingKey,\n // records\n columnsStyles,\n columnsTotalWidth,\n data,\n expandedRowKeys,\n depthMap,\n fixedColumnsOnLeft,\n fixedColumnOnRight,\n mainColumns,\n // metadata\n bodyWidth,\n rootStyle,\n headerWidth,\n mainTableHeight,\n fixedTableHeight,\n leftTableWidth,\n rightTableWidth,\n\n // methods\n scrollTo,\n scrollToLeft,\n scrollToTop,\n\n // event handlers\n onColumnSorted,\n // onColumnResized,\n // onColumnResizeStart,\n // onColumnResizeEnd,\n onRowHovered,\n onRowExpanded,\n onRowsRendered,\n onRowHeightChanged,\n onFixedRowHeightChanged,\n onScroll,\n onVerticalScroll,\n }\n}\n\nexport { useTable }\n\nexport type UseTableReturn = ReturnType<typeof useTable>\n"],"names":[],"mappings":";;;;;;;;;AAaA,SAAS,QAAQ,CAAC,KAAK,EAAE;AACzB,EAAE,MAAM,IAAI,GAAG,kBAAkB,EAAE,CAAC,IAAI,CAAC;AACzC,EAAE,MAAM;AACR,IAAI,OAAO;AACX,IAAI,aAAa;AACjB,IAAI,iBAAiB;AACrB,IAAI,kBAAkB;AACtB,IAAI,kBAAkB;AACtB,IAAI,eAAe;AACnB,IAAI,WAAW;AACf,IAAI,SAAS;AACb,GAAG,GAAG,UAAU,CAAC,KAAK,CAAC,KAAK,EAAE,SAAS,CAAC,EAAE,KAAK,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC;AACjE,EAAE,MAAM,eAAe,GAAG,GAAG,CAAC,KAAK,CAAC,sBAAsB,IAAI,EAAE,CAAC,CAAC;AAClE,EAAE,MAAM,QAAQ,GAAG,GAAG,CAAC,EAAE,CAAC,CAAC;AAC3B,EAAE,MAAM,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC;AAC1C,EAAE,MAAM,UAAU,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC;AACtC,EAAE,MAAM,WAAW,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC;AACxC,EAAE,MAAM,WAAW,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC;AACxC,EAAE,MAAM,YAAY,GAAG,GAAG,EAAE,CAAC;AAC7B,EAAE,MAAM,YAAY,GAAG,GAAG,EAAE,CAAC;AAC7B,EAAE,MAAM,YAAY,GAAG,GAAG,EAAE,CAAC;AAC7B,EAAE,MAAM,aA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AAC;AACL,EAAE,OAAO;AACT,IAAI,OAAO;AACX,IAAI,YAAY;AAChB,IAAI,YAAY;AAChB,IAAI,YAAY;AAChB,IAAI,aAAa;AACjB,IAAI,WAAW;AACf,IAAI,WAAW;AACf,IAAI,cAAc;AAClB,IAAI,eAAe;AACnB,IAAI,aAAa;AACjB,IAAI,iBAAiB;AACrB,IAAI,IAAI;AACR,IAAI,eAAe;AACnB,IAAI,QAAQ;AACZ,IAAI,kBAAkB;AACtB,IAAI,kBAAkB;AACtB,IAAI,WAAW;AACf,IAAI,SAAS;AACb,IAAI,SAAS;AACb,IAAI,WAAW;AACf,IAAI,eAAe;AACnB,IAAI,gBAAgB;AACpB,IAAI,cAAc;AAClB,IAAI,eAAe;AACnB,IAAI,QAAQ;AACZ,IAAI,YAAY;AAChB,IAAI,WAAW;AACf,IAAI,cAAc;AAClB,IAAI,YAAY;AAChB,IAAI,aAAa;AACjB,IAAI,cAAc;AAClB,IAAI,kBAAkB;AACtB,IAAI,uBAAuB;AAC3B,IAAI,QAAQ;AACZ,IAAI,gBAAgB;AACpB,GAAG,CAAC;AACJ;;;;"}
@@ -0,0 +1,7 @@
1
+ import type { CSSProperties, Component, Slot } from 'vue';
2
+ export declare const sum: (listLike: number | number[]) => number;
3
+ export declare const tryCall: <T>(fLike: T, params: T extends (...args: infer K) => unknown ? K : any, defaultRet?: {}) => any;
4
+ export declare const enforceUnit: (style: CSSProperties) => CSSProperties;
5
+ export declare const componentToSlot: <T>(ComponentLike: JSX.Element | ((props: T) => Component<T, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | undefined) => Slot | ((props: T) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
6
+ [key: string]: any;
7
+ }>);
@@ -0,0 +1,23 @@
1
+ import { isVNode, h } from 'vue';
2
+ import '../../../utils/index.mjs';
3
+ import { isArray, isFunction } from '@vue/shared';
4
+ import { addUnit } from '../../../utils/vue/style.mjs';
5
+
6
+ const sumReducer = (sum2, num) => sum2 + num;
7
+ const sum = (listLike) => {
8
+ return isArray(listLike) ? listLike.reduce(sumReducer, 0) : listLike;
9
+ };
10
+ const tryCall = (fLike, params, defaultRet = {}) => {
11
+ return isFunction(fLike) ? fLike(params) : fLike != null ? fLike : defaultRet;
12
+ };
13
+ const enforceUnit = (style) => {
14
+ ;
15
+ ["width", "maxWidth", "minWidth", "height"].forEach((key) => {
16
+ style[key] = addUnit(style[key]);
17
+ });
18
+ return style;
19
+ };
20
+ const componentToSlot = (ComponentLike) => isVNode(ComponentLike) ? (props) => h(ComponentLike, props) : ComponentLike;
21
+
22
+ export { componentToSlot, enforceUnit, sum, tryCall };
23
+ //# sourceMappingURL=utils.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.mjs","sources":["../../../../../../packages/components/table-v2/src/utils.ts"],"sourcesContent":["import { h, isVNode } from 'vue'\nimport { addUnit, isArray, isFunction } from '@element-plus/utils'\n\nimport type { CSSProperties, Component, Slot } from 'vue'\n\nconst sumReducer = (sum: number, num: number) => sum + num\n\nexport const sum = (listLike: number | number[]) => {\n return isArray(listLike) ? listLike.reduce(sumReducer, 0) : listLike\n}\n\nexport const tryCall = <T>(\n fLike: T,\n params: T extends (...args: infer K) => unknown ? K : any,\n defaultRet = {}\n) => {\n return isFunction(fLike) ? fLike(params) : fLike ?? defaultRet\n}\n\nexport const enforceUnit = (style: CSSProperties) => {\n ;['width', 'maxWidth', 'minWidth', 'height'].forEach((key) => {\n style[key] = addUnit(style[key])\n })\n\n return style\n}\n\nexport const componentToSlot = <T>(\n ComponentLike: JSX.Element | ((props: T) => Component<T>) | undefined\n) =>\n isVNode(ComponentLike)\n ? (props: T) => h(ComponentLike, props)\n : (ComponentLike as Slot)\n"],"names":[],"mappings":";;;;;AAEA,MAAM,UAAU,GAAG,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,GAAG,GAAG,CAAC;AACjC,MAAC,GAAG,GAAG,CAAC,QAAQ,KAAK;AACjC,EAAE,OAAO,OAAO,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC,CAAC,GAAG,QAAQ,CAAC;AACvE,EAAE;AACU,MAAC,OAAO,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,GAAG,EAAE,KAAK;AAC3D,EAAE,OAAO,UAAU,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,GAAG,KAAK,IAAI,IAAI,GAAG,KAAK,GAAG,UAAU,CAAC;AAChF,EAAE;AACU,MAAC,WAAW,GAAG,CAAC,KAAK,KAAK;AACtC,EAAE,CAAC;AACH,EAAE,CAAC,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,KAAK;AAC/D,IAAI,KAAK,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;AACrC,GAAG,CAAC,CAAC;AACL,EAAE,OAAO,KAAK,CAAC;AACf,EAAE;AACU,MAAC,eAAe,GAAG,CAAC,aAAa,KAAK,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,KAAK,KAAK,CAAC,CAAC,aAAa,EAAE,KAAK,CAAC,GAAG;;;;"}
@@ -2,7 +2,7 @@ import '../../utils/index.mjs';
2
2
  import Tabs from './src/tabs.mjs';
3
3
  export { tabsEmits, tabsProps } from './src/tabs.mjs';
4
4
  import TabPane from './src/tab-pane.mjs';
5
- export { tabBarProps } from './src/tab-bar2.mjs';
5
+ export { tabBarProps } from './src/tab-bar.mjs';
6
6
  export { tabNavProps } from './src/tab-nav.mjs';
7
7
  export { tabPaneProps } from './src/tab-pane2.mjs';
8
8
  import { withInstall, withNoopInstall } from '../../utils/vue/install.mjs';
@@ -1,82 +1,13 @@
1
- import { defineComponent, getCurrentInstance, inject, ref, watch, nextTick, openBlock, createElementBlock, normalizeClass, unref, normalizeStyle } from 'vue';
2
- import { useResizeObserver } from '@vueuse/core';
3
1
  import '../../../utils/index.mjs';
4
- import '../../../tokens/index.mjs';
5
- import '../../../hooks/index.mjs';
6
- import { tabBarProps } from './tab-bar2.mjs';
7
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
8
- import { tabsRootContextKey } from '../../../tokens/tabs.mjs';
9
- import { throwError } from '../../../utils/error.mjs';
10
- import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
11
- import { capitalize } from '@vue/shared';
2
+ import { buildProps, definePropType } from '../../../utils/vue/props.mjs';
3
+ import { mutable } from '../../../utils/typescript.mjs';
12
4
 
13
- const __default__ = {
14
- name: "ElTabBar"
15
- };
16
- const _sfc_main = /* @__PURE__ */ defineComponent({
17
- ...__default__,
18
- props: tabBarProps,
19
- setup(__props, { expose }) {
20
- const props = __props;
21
- const COMPONENT_NAME = "ElTabBar";
22
- const instance = getCurrentInstance();
23
- const rootTabs = inject(tabsRootContextKey);
24
- if (!rootTabs)
25
- throwError(COMPONENT_NAME, "<el-tabs><el-tab-bar /></el-tabs>");
26
- const ns = useNamespace("tabs");
27
- const barRef = ref();
28
- const barStyle = ref();
29
- const getBarStyle = () => {
30
- let offset = 0;
31
- let tabSize = 0;
32
- const sizeName = ["top", "bottom"].includes(rootTabs.props.tabPosition) ? "width" : "height";
33
- const sizeDir = sizeName === "width" ? "x" : "y";
34
- props.tabs.every((tab) => {
35
- var _a, _b, _c, _d;
36
- const $el = (_b = (_a = instance.parent) == null ? void 0 : _a.refs) == null ? void 0 : _b[`tab-${tab.paneName}`];
37
- if (!$el)
38
- return false;
39
- if (!tab.active) {
40
- return true;
41
- }
42
- tabSize = $el[`client${capitalize(sizeName)}`];
43
- const position = sizeDir === "x" ? "left" : "top";
44
- offset = $el.getBoundingClientRect()[position] - ((_d = (_c = $el.parentElement) == null ? void 0 : _c.getBoundingClientRect()[position]) != null ? _d : 0);
45
- const tabStyles = window.getComputedStyle($el);
46
- if (sizeName === "width") {
47
- if (props.tabs.length > 1) {
48
- tabSize -= Number.parseFloat(tabStyles.paddingLeft) + Number.parseFloat(tabStyles.paddingRight);
49
- }
50
- offset += Number.parseFloat(tabStyles.paddingLeft);
51
- }
52
- return false;
53
- });
54
- return {
55
- [sizeName]: `${tabSize}px`,
56
- transform: `translate${capitalize(sizeDir)}(${offset}px)`
57
- };
58
- };
59
- const update = () => barStyle.value = getBarStyle();
60
- watch(() => props.tabs, async () => {
61
- await nextTick();
62
- update();
63
- }, { immediate: true });
64
- useResizeObserver(barRef, () => update());
65
- expose({
66
- ref: barRef,
67
- update
68
- });
69
- return (_ctx, _cache) => {
70
- return openBlock(), createElementBlock("div", {
71
- ref_key: "barRef",
72
- ref: barRef,
73
- class: normalizeClass([unref(ns).e("active-bar"), unref(ns).is(unref(rootTabs).props.tabPosition)]),
74
- style: normalizeStyle(barStyle.value)
75
- }, null, 6);
76
- };
5
+ const tabBarProps = buildProps({
6
+ tabs: {
7
+ type: definePropType(Array),
8
+ default: () => mutable([])
77
9
  }
78
10
  });
79
- var TabBar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/Users/meng/workspace/element-pe/packages/components/tabs/src/tab-bar.vue"]]);
80
11
 
81
- export { TabBar as default };
12
+ export { tabBarProps };
82
13
  //# sourceMappingURL=tab-bar.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"tab-bar.mjs","sources":["../../../../../../packages/components/tabs/src/tab-bar.vue"],"sourcesContent":["<template>\n <div\n ref=\"barRef\"\n :class=\"[ns.e('active-bar'), ns.is(rootTabs.props.tabPosition)]\"\n :style=\"barStyle\"\n />\n</template>\n<script lang=\"ts\" setup>\nimport { getCurrentInstance, inject, nextTick, ref, watch } from 'vue'\nimport { useResizeObserver } from '@vueuse/core'\nimport { capitalize, throwError } from '@element-plus/utils'\nimport { tabsRootContextKey } from '@element-plus/tokens'\nimport { useNamespace } from '@element-plus/hooks'\nimport { tabBarProps } from './tab-bar'\n\nimport type { CSSProperties } from 'vue'\n\nconst COMPONENT_NAME = 'ElTabBar'\ndefineOptions({\n name: 'ElTabBar',\n})\nconst props = defineProps(tabBarProps)\n\nconst instance = getCurrentInstance()!\nconst rootTabs = inject(tabsRootContextKey)\nif (!rootTabs) throwError(COMPONENT_NAME, '<el-tabs><el-tab-bar /></el-tabs>')\n\nconst ns = useNamespace('tabs')\n\nconst barRef = ref<HTMLDivElement>()\nconst barStyle = ref<CSSProperties>()\n\nconst getBarStyle = (): CSSProperties => {\n let offset = 0\n let tabSize = 0\n\n const sizeName = ['top', 'bottom'].includes(rootTabs.props.tabPosition)\n ? 'width'\n : 'height'\n const sizeDir = sizeName === 'width' ? 'x' : 'y'\n\n props.tabs.every((tab) => {\n const $el = instance.parent?.refs?.[`tab-${tab.paneName}`] as HTMLElement\n if (!$el) return false\n\n if (!tab.active) {\n return true\n }\n\n tabSize = $el[`client${capitalize(sizeName)}`]\n const position = sizeDir === 'x' ? 'left' : 'top'\n offset =\n $el.getBoundingClientRect()[position] -\n ($el.parentElement?.getBoundingClientRect()[position] ?? 0)\n const tabStyles = window.getComputedStyle($el)\n\n if (sizeName === 'width') {\n if (props.tabs.length > 1) {\n tabSize -=\n Number.parseFloat(tabStyles.paddingLeft) +\n Number.parseFloat(tabStyles.paddingRight)\n }\n offset += Number.parseFloat(tabStyles.paddingLeft)\n }\n return false\n })\n\n return {\n [sizeName]: `${tabSize}px`,\n transform: `translate${capitalize(sizeDir)}(${offset}px)`,\n }\n}\n\nconst update = () => (barStyle.value = getBarStyle())\n\nwatch(\n () => props.tabs,\n async () => {\n await nextTick()\n update()\n },\n { immediate: true }\n)\nuseResizeObserver(barRef, () => update())\n\ndefineExpose({\n /** @description tab root html element */\n ref: barRef,\n /** @description method to manually update tab bar style */\n update,\n})\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAiBA,IAAA,MAAA,cAAA,GAAA,UAAA,CAAA;AAMA,IAAA,MAAA,WAAA,kBAAA,EAAA,CAAA;AACA,IAAA,MAAA,QAAA,GAAA,OAAA,kBAAA,CAAA,CAAA;AACA,IAAA,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AA,MAAA;AAAA,MACA,MAAA;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"tab-bar.mjs","sources":["../../../../../../packages/components/tabs/src/tab-bar.ts"],"sourcesContent":["import { buildProps, definePropType, mutable } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\nimport type { TabsPaneContext } from '@element-plus/tokens'\nimport type TabBar from './tab-bar.vue'\n\nexport const tabBarProps = buildProps({\n tabs: {\n type: definePropType<TabsPaneContext[]>(Array),\n default: () => mutable([] as const),\n },\n} as const)\n\nexport type TabBarProps = ExtractPropTypes<typeof tabBarProps>\nexport type TabBarInstance = InstanceType<typeof TabBar>\n"],"names":[],"mappings":";;;;AACY,MAAC,WAAW,GAAG,UAAU,CAAC;AACtC,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,cAAc,CAAC,KAAK,CAAC;AAC/B,IAAI,OAAO,EAAE,MAAM,OAAO,CAAC,EAAE,CAAC;AAC9B,GAAG;AACH,CAAC;;;;"}
@@ -1,13 +1,82 @@
1
+ import { defineComponent, getCurrentInstance, inject, ref, watch, nextTick, openBlock, createElementBlock, normalizeClass, unref, normalizeStyle } from 'vue';
2
+ import { useResizeObserver } from '@vueuse/core';
1
3
  import '../../../utils/index.mjs';
2
- import { buildProps, definePropType } from '../../../utils/vue/props.mjs';
3
- import { mutable } from '../../../utils/typescript.mjs';
4
+ import '../../../tokens/index.mjs';
5
+ import '../../../hooks/index.mjs';
6
+ import { tabBarProps } from './tab-bar.mjs';
7
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
8
+ import { tabsRootContextKey } from '../../../tokens/tabs.mjs';
9
+ import { throwError } from '../../../utils/error.mjs';
10
+ import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
11
+ import { capitalize } from '@vue/shared';
4
12
 
5
- const tabBarProps = buildProps({
6
- tabs: {
7
- type: definePropType(Array),
8
- default: () => mutable([])
13
+ const __default__ = {
14
+ name: "ElTabBar"
15
+ };
16
+ const _sfc_main = /* @__PURE__ */ defineComponent({
17
+ ...__default__,
18
+ props: tabBarProps,
19
+ setup(__props, { expose }) {
20
+ const props = __props;
21
+ const COMPONENT_NAME = "ElTabBar";
22
+ const instance = getCurrentInstance();
23
+ const rootTabs = inject(tabsRootContextKey);
24
+ if (!rootTabs)
25
+ throwError(COMPONENT_NAME, "<el-tabs><el-tab-bar /></el-tabs>");
26
+ const ns = useNamespace("tabs");
27
+ const barRef = ref();
28
+ const barStyle = ref();
29
+ const getBarStyle = () => {
30
+ let offset = 0;
31
+ let tabSize = 0;
32
+ const sizeName = ["top", "bottom"].includes(rootTabs.props.tabPosition) ? "width" : "height";
33
+ const sizeDir = sizeName === "width" ? "x" : "y";
34
+ props.tabs.every((tab) => {
35
+ var _a, _b, _c, _d;
36
+ const $el = (_b = (_a = instance.parent) == null ? void 0 : _a.refs) == null ? void 0 : _b[`tab-${tab.paneName}`];
37
+ if (!$el)
38
+ return false;
39
+ if (!tab.active) {
40
+ return true;
41
+ }
42
+ tabSize = $el[`client${capitalize(sizeName)}`];
43
+ const position = sizeDir === "x" ? "left" : "top";
44
+ offset = $el.getBoundingClientRect()[position] - ((_d = (_c = $el.parentElement) == null ? void 0 : _c.getBoundingClientRect()[position]) != null ? _d : 0);
45
+ const tabStyles = window.getComputedStyle($el);
46
+ if (sizeName === "width") {
47
+ if (props.tabs.length > 1) {
48
+ tabSize -= Number.parseFloat(tabStyles.paddingLeft) + Number.parseFloat(tabStyles.paddingRight);
49
+ }
50
+ offset += Number.parseFloat(tabStyles.paddingLeft);
51
+ }
52
+ return false;
53
+ });
54
+ return {
55
+ [sizeName]: `${tabSize}px`,
56
+ transform: `translate${capitalize(sizeDir)}(${offset}px)`
57
+ };
58
+ };
59
+ const update = () => barStyle.value = getBarStyle();
60
+ watch(() => props.tabs, async () => {
61
+ await nextTick();
62
+ update();
63
+ }, { immediate: true });
64
+ useResizeObserver(barRef, () => update());
65
+ expose({
66
+ ref: barRef,
67
+ update
68
+ });
69
+ return (_ctx, _cache) => {
70
+ return openBlock(), createElementBlock("div", {
71
+ ref_key: "barRef",
72
+ ref: barRef,
73
+ class: normalizeClass([unref(ns).e("active-bar"), unref(ns).is(unref(rootTabs).props.tabPosition)]),
74
+ style: normalizeStyle(barStyle.value)
75
+ }, null, 6);
76
+ };
9
77
  }
10
78
  });
79
+ var TabBar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/Users/meng/workspace/element-pe/packages/components/tabs/src/tab-bar.vue"]]);
11
80
 
12
- export { tabBarProps };
81
+ export { TabBar as default };
13
82
  //# sourceMappingURL=tab-bar2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"tab-bar2.mjs","sources":["../../../../../../packages/components/tabs/src/tab-bar.ts"],"sourcesContent":["import { buildProps, definePropType, mutable } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\nimport type { TabsPaneContext } from '@element-plus/tokens'\nimport type TabBar from './tab-bar.vue'\n\nexport const tabBarProps = buildProps({\n tabs: {\n type: definePropType<TabsPaneContext[]>(Array),\n default: () => mutable([] as const),\n },\n} as const)\n\nexport type TabBarProps = ExtractPropTypes<typeof tabBarProps>\nexport type TabBarInstance = InstanceType<typeof TabBar>\n"],"names":[],"mappings":";;;;AACY,MAAC,WAAW,GAAG,UAAU,CAAC;AACtC,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,cAAc,CAAC,KAAK,CAAC;AAC/B,IAAI,OAAO,EAAE,MAAM,OAAO,CAAC,EAAE,CAAC;AAC9B,GAAG;AACH,CAAC;;;;"}
1
+ {"version":3,"file":"tab-bar2.mjs","sources":["../../../../../../packages/components/tabs/src/tab-bar.vue"],"sourcesContent":["<template>\n <div\n ref=\"barRef\"\n :class=\"[ns.e('active-bar'), ns.is(rootTabs.props.tabPosition)]\"\n :style=\"barStyle\"\n />\n</template>\n<script lang=\"ts\" setup>\nimport { getCurrentInstance, inject, nextTick, ref, watch } from 'vue'\nimport { useResizeObserver } from '@vueuse/core'\nimport { capitalize, throwError } from '@element-plus/utils'\nimport { tabsRootContextKey } from '@element-plus/tokens'\nimport { useNamespace } from '@element-plus/hooks'\nimport { tabBarProps } from './tab-bar'\n\nimport type { CSSProperties } from 'vue'\n\nconst COMPONENT_NAME = 'ElTabBar'\ndefineOptions({\n name: 'ElTabBar',\n})\nconst props = defineProps(tabBarProps)\n\nconst instance = getCurrentInstance()!\nconst rootTabs = inject(tabsRootContextKey)\nif (!rootTabs) throwError(COMPONENT_NAME, '<el-tabs><el-tab-bar /></el-tabs>')\n\nconst ns = useNamespace('tabs')\n\nconst barRef = ref<HTMLDivElement>()\nconst barStyle = ref<CSSProperties>()\n\nconst getBarStyle = (): CSSProperties => {\n let offset = 0\n let tabSize = 0\n\n const sizeName = ['top', 'bottom'].includes(rootTabs.props.tabPosition)\n ? 'width'\n : 'height'\n const sizeDir = sizeName === 'width' ? 'x' : 'y'\n\n props.tabs.every((tab) => {\n const $el = instance.parent?.refs?.[`tab-${tab.paneName}`] as HTMLElement\n if (!$el) return false\n\n if (!tab.active) {\n return true\n }\n\n tabSize = $el[`client${capitalize(sizeName)}`]\n const position = sizeDir === 'x' ? 'left' : 'top'\n offset =\n $el.getBoundingClientRect()[position] -\n ($el.parentElement?.getBoundingClientRect()[position] ?? 0)\n const tabStyles = window.getComputedStyle($el)\n\n if (sizeName === 'width') {\n if (props.tabs.length > 1) {\n tabSize -=\n Number.parseFloat(tabStyles.paddingLeft) +\n Number.parseFloat(tabStyles.paddingRight)\n }\n offset += Number.parseFloat(tabStyles.paddingLeft)\n }\n return false\n })\n\n return {\n [sizeName]: `${tabSize}px`,\n transform: `translate${capitalize(sizeDir)}(${offset}px)`,\n }\n}\n\nconst update = () => (barStyle.value = getBarStyle())\n\nwatch(\n () => props.tabs,\n async () => {\n await nextTick()\n update()\n },\n { immediate: true }\n)\nuseResizeObserver(barRef, () => update())\n\ndefineExpose({\n /** @description tab root html element */\n ref: barRef,\n /** @description method to manually update tab bar style */\n update,\n})\n</script>\n"],"names":[],"mapp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CAAA;AAEA,KAAA,EAAA,EAAA,SAAA,EAAA,IAAA,EAAA,CAAA,CAAA;AAEA,IAAA,iBAAA,CAAA,MAAA,EAAA,MAAA,MAAA,EAAA,CAAA,CAAA;AAAA,IAAA,MAEA,CAAA;AAAA,MAEA,GAAA,EAAA,MAAA;AAAA,MACA,MAAA;;;;;;;;;;;;;;;;"}
@@ -7,7 +7,7 @@ import { ElIcon } from '../../icon/index.mjs';
7
7
  import { ArrowLeft, ArrowRight, Close } from '@element-plus/icons-vue';
8
8
  import '../../../tokens/index.mjs';
9
9
  import '../../../hooks/index.mjs';
10
- import TabBar from './tab-bar.mjs';
10
+ import TabBar from './tab-bar2.mjs';
11
11
  import { buildProps, definePropType } from '../../../utils/vue/props.mjs';
12
12
  import { mutable } from '../../../utils/typescript.mjs';
13
13
  import { tabsRootContextKey } from '../../../tokens/tabs.mjs';
@@ -1,6 +1,6 @@
1
1
  import '../../utils/index.mjs';
2
- import Tag from './src/tag2.mjs';
3
- export { tagEmits, tagProps } from './src/tag.mjs';
2
+ import Tag from './src/tag.mjs';
3
+ export { tagEmits, tagProps } from './src/tag2.mjs';
4
4
  import { withInstall } from '../../utils/vue/install.mjs';
5
5
 
6
6
  const ElTag = withInstall(Tag);