element-plus 2.2.19 → 2.2.20

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 (571) hide show
  1. package/attributes.json +1 -1
  2. package/dist/index.css +1 -1
  3. package/dist/index.full.js +672 -550
  4. package/dist/index.full.min.js +20 -20
  5. package/dist/index.full.min.js.map +1 -1
  6. package/dist/index.full.min.mjs +20 -20
  7. package/dist/index.full.min.mjs.map +1 -1
  8. package/dist/index.full.mjs +673 -551
  9. package/dist/locale/af.js +1 -1
  10. package/dist/locale/af.min.js +1 -1
  11. package/dist/locale/af.min.mjs +1 -1
  12. package/dist/locale/af.mjs +1 -1
  13. package/dist/locale/ar.js +1 -1
  14. package/dist/locale/ar.min.js +1 -1
  15. package/dist/locale/ar.min.mjs +1 -1
  16. package/dist/locale/ar.mjs +1 -1
  17. package/dist/locale/az.js +1 -1
  18. package/dist/locale/az.min.js +1 -1
  19. package/dist/locale/az.min.mjs +1 -1
  20. package/dist/locale/az.mjs +1 -1
  21. package/dist/locale/bg.js +1 -1
  22. package/dist/locale/bg.min.js +1 -1
  23. package/dist/locale/bg.min.mjs +1 -1
  24. package/dist/locale/bg.mjs +1 -1
  25. package/dist/locale/bn.js +1 -1
  26. package/dist/locale/bn.min.js +1 -1
  27. package/dist/locale/bn.min.mjs +1 -1
  28. package/dist/locale/bn.mjs +1 -1
  29. package/dist/locale/ca.js +1 -1
  30. package/dist/locale/ca.min.js +1 -1
  31. package/dist/locale/ca.min.mjs +1 -1
  32. package/dist/locale/ca.mjs +1 -1
  33. package/dist/locale/cs.js +1 -1
  34. package/dist/locale/cs.min.js +1 -1
  35. package/dist/locale/cs.min.mjs +1 -1
  36. package/dist/locale/cs.mjs +1 -1
  37. package/dist/locale/da.js +1 -1
  38. package/dist/locale/da.min.js +1 -1
  39. package/dist/locale/da.min.mjs +1 -1
  40. package/dist/locale/da.mjs +1 -1
  41. package/dist/locale/de.js +1 -1
  42. package/dist/locale/de.min.js +1 -1
  43. package/dist/locale/de.min.mjs +1 -1
  44. package/dist/locale/de.mjs +1 -1
  45. package/dist/locale/el.js +1 -1
  46. package/dist/locale/el.min.js +1 -1
  47. package/dist/locale/el.min.mjs +1 -1
  48. package/dist/locale/el.mjs +1 -1
  49. package/dist/locale/en.js +1 -1
  50. package/dist/locale/en.min.js +1 -1
  51. package/dist/locale/en.min.mjs +1 -1
  52. package/dist/locale/en.mjs +1 -1
  53. package/dist/locale/eo.js +1 -1
  54. package/dist/locale/eo.min.js +1 -1
  55. package/dist/locale/eo.min.mjs +1 -1
  56. package/dist/locale/eo.mjs +1 -1
  57. package/dist/locale/es.js +1 -1
  58. package/dist/locale/es.min.js +1 -1
  59. package/dist/locale/es.min.mjs +1 -1
  60. package/dist/locale/es.mjs +1 -1
  61. package/dist/locale/et.js +1 -1
  62. package/dist/locale/et.min.js +1 -1
  63. package/dist/locale/et.min.mjs +1 -1
  64. package/dist/locale/et.mjs +1 -1
  65. package/dist/locale/eu.js +1 -1
  66. package/dist/locale/eu.min.js +1 -1
  67. package/dist/locale/eu.min.mjs +1 -1
  68. package/dist/locale/eu.mjs +1 -1
  69. package/dist/locale/fa.js +1 -1
  70. package/dist/locale/fa.min.js +1 -1
  71. package/dist/locale/fa.min.mjs +1 -1
  72. package/dist/locale/fa.mjs +1 -1
  73. package/dist/locale/fi.js +1 -1
  74. package/dist/locale/fi.min.js +1 -1
  75. package/dist/locale/fi.min.mjs +1 -1
  76. package/dist/locale/fi.mjs +1 -1
  77. package/dist/locale/fr.js +1 -1
  78. package/dist/locale/fr.min.js +1 -1
  79. package/dist/locale/fr.min.mjs +1 -1
  80. package/dist/locale/fr.mjs +1 -1
  81. package/dist/locale/he.js +1 -1
  82. package/dist/locale/he.min.js +1 -1
  83. package/dist/locale/he.min.mjs +1 -1
  84. package/dist/locale/he.mjs +1 -1
  85. package/dist/locale/hr.js +1 -1
  86. package/dist/locale/hr.min.js +1 -1
  87. package/dist/locale/hr.min.mjs +1 -1
  88. package/dist/locale/hr.mjs +1 -1
  89. package/dist/locale/hu.js +1 -1
  90. package/dist/locale/hu.min.js +1 -1
  91. package/dist/locale/hu.min.mjs +1 -1
  92. package/dist/locale/hu.mjs +1 -1
  93. package/dist/locale/hy-am.js +1 -1
  94. package/dist/locale/hy-am.min.js +1 -1
  95. package/dist/locale/hy-am.min.mjs +1 -1
  96. package/dist/locale/hy-am.mjs +1 -1
  97. package/dist/locale/id.js +1 -1
  98. package/dist/locale/id.min.js +1 -1
  99. package/dist/locale/id.min.mjs +1 -1
  100. package/dist/locale/id.mjs +1 -1
  101. package/dist/locale/it.js +1 -1
  102. package/dist/locale/it.min.js +1 -1
  103. package/dist/locale/it.min.mjs +1 -1
  104. package/dist/locale/it.mjs +1 -1
  105. package/dist/locale/ja.js +1 -1
  106. package/dist/locale/ja.min.js +1 -1
  107. package/dist/locale/ja.min.mjs +1 -1
  108. package/dist/locale/ja.mjs +1 -1
  109. package/dist/locale/kk.js +1 -1
  110. package/dist/locale/kk.min.js +1 -1
  111. package/dist/locale/kk.min.mjs +1 -1
  112. package/dist/locale/kk.mjs +1 -1
  113. package/dist/locale/km.js +1 -1
  114. package/dist/locale/km.min.js +1 -1
  115. package/dist/locale/km.min.mjs +1 -1
  116. package/dist/locale/km.mjs +1 -1
  117. package/dist/locale/ko.js +1 -1
  118. package/dist/locale/ko.min.js +1 -1
  119. package/dist/locale/ko.min.mjs +1 -1
  120. package/dist/locale/ko.mjs +1 -1
  121. package/dist/locale/ku.js +1 -1
  122. package/dist/locale/ku.min.js +1 -1
  123. package/dist/locale/ku.min.mjs +1 -1
  124. package/dist/locale/ku.mjs +1 -1
  125. package/dist/locale/ky.js +1 -1
  126. package/dist/locale/ky.min.js +1 -1
  127. package/dist/locale/ky.min.mjs +1 -1
  128. package/dist/locale/ky.mjs +1 -1
  129. package/dist/locale/lt.js +1 -1
  130. package/dist/locale/lt.min.js +1 -1
  131. package/dist/locale/lt.min.mjs +1 -1
  132. package/dist/locale/lt.mjs +1 -1
  133. package/dist/locale/lv.js +1 -1
  134. package/dist/locale/lv.min.js +1 -1
  135. package/dist/locale/lv.min.mjs +1 -1
  136. package/dist/locale/lv.mjs +1 -1
  137. package/dist/locale/mg.js +1 -1
  138. package/dist/locale/mg.min.js +1 -1
  139. package/dist/locale/mg.min.mjs +1 -1
  140. package/dist/locale/mg.mjs +1 -1
  141. package/dist/locale/mn.js +1 -1
  142. package/dist/locale/mn.min.js +1 -1
  143. package/dist/locale/mn.min.mjs +1 -1
  144. package/dist/locale/mn.mjs +1 -1
  145. package/dist/locale/nb-no.js +1 -1
  146. package/dist/locale/nb-no.min.js +1 -1
  147. package/dist/locale/nb-no.min.mjs +1 -1
  148. package/dist/locale/nb-no.mjs +1 -1
  149. package/dist/locale/nl.js +1 -1
  150. package/dist/locale/nl.min.js +1 -1
  151. package/dist/locale/nl.min.mjs +1 -1
  152. package/dist/locale/nl.mjs +1 -1
  153. package/dist/locale/pa.js +1 -1
  154. package/dist/locale/pa.min.js +1 -1
  155. package/dist/locale/pa.min.mjs +1 -1
  156. package/dist/locale/pa.mjs +1 -1
  157. package/dist/locale/pl.js +1 -1
  158. package/dist/locale/pl.min.js +1 -1
  159. package/dist/locale/pl.min.mjs +1 -1
  160. package/dist/locale/pl.mjs +1 -1
  161. package/dist/locale/pt-br.js +1 -1
  162. package/dist/locale/pt-br.min.js +1 -1
  163. package/dist/locale/pt-br.min.mjs +1 -1
  164. package/dist/locale/pt-br.mjs +1 -1
  165. package/dist/locale/pt.js +1 -1
  166. package/dist/locale/pt.min.js +1 -1
  167. package/dist/locale/pt.min.mjs +1 -1
  168. package/dist/locale/pt.mjs +1 -1
  169. package/dist/locale/ro.js +1 -1
  170. package/dist/locale/ro.min.js +1 -1
  171. package/dist/locale/ro.min.mjs +1 -1
  172. package/dist/locale/ro.mjs +1 -1
  173. package/dist/locale/ru.js +1 -1
  174. package/dist/locale/ru.min.js +1 -1
  175. package/dist/locale/ru.min.mjs +1 -1
  176. package/dist/locale/ru.mjs +1 -1
  177. package/dist/locale/sk.js +1 -1
  178. package/dist/locale/sk.min.js +1 -1
  179. package/dist/locale/sk.min.mjs +1 -1
  180. package/dist/locale/sk.mjs +1 -1
  181. package/dist/locale/sl.js +1 -1
  182. package/dist/locale/sl.min.js +1 -1
  183. package/dist/locale/sl.min.mjs +1 -1
  184. package/dist/locale/sl.mjs +1 -1
  185. package/dist/locale/sr.js +1 -1
  186. package/dist/locale/sr.min.js +1 -1
  187. package/dist/locale/sr.min.mjs +1 -1
  188. package/dist/locale/sr.mjs +1 -1
  189. package/dist/locale/sv.js +1 -1
  190. package/dist/locale/sv.min.js +1 -1
  191. package/dist/locale/sv.min.mjs +1 -1
  192. package/dist/locale/sv.mjs +1 -1
  193. package/dist/locale/ta.js +1 -1
  194. package/dist/locale/ta.min.js +1 -1
  195. package/dist/locale/ta.min.mjs +1 -1
  196. package/dist/locale/ta.mjs +1 -1
  197. package/dist/locale/th.js +1 -1
  198. package/dist/locale/th.min.js +1 -1
  199. package/dist/locale/th.min.mjs +1 -1
  200. package/dist/locale/th.mjs +1 -1
  201. package/dist/locale/tk.js +1 -1
  202. package/dist/locale/tk.min.js +1 -1
  203. package/dist/locale/tk.min.mjs +1 -1
  204. package/dist/locale/tk.mjs +1 -1
  205. package/dist/locale/tr.js +1 -1
  206. package/dist/locale/tr.min.js +1 -1
  207. package/dist/locale/tr.min.mjs +1 -1
  208. package/dist/locale/tr.mjs +1 -1
  209. package/dist/locale/ug-cn.js +1 -1
  210. package/dist/locale/ug-cn.min.js +1 -1
  211. package/dist/locale/ug-cn.min.mjs +1 -1
  212. package/dist/locale/ug-cn.mjs +1 -1
  213. package/dist/locale/uk.js +1 -1
  214. package/dist/locale/uk.min.js +1 -1
  215. package/dist/locale/uk.min.mjs +1 -1
  216. package/dist/locale/uk.mjs +1 -1
  217. package/dist/locale/uz-uz.js +1 -1
  218. package/dist/locale/uz-uz.min.js +1 -1
  219. package/dist/locale/uz-uz.min.mjs +1 -1
  220. package/dist/locale/uz-uz.mjs +1 -1
  221. package/dist/locale/vi.js +1 -1
  222. package/dist/locale/vi.min.js +1 -1
  223. package/dist/locale/vi.min.mjs +1 -1
  224. package/dist/locale/vi.mjs +1 -1
  225. package/dist/locale/zh-cn.js +1 -1
  226. package/dist/locale/zh-cn.min.js +1 -1
  227. package/dist/locale/zh-cn.min.mjs +1 -1
  228. package/dist/locale/zh-cn.mjs +1 -1
  229. package/dist/locale/zh-tw.js +1 -1
  230. package/dist/locale/zh-tw.min.js +1 -1
  231. package/dist/locale/zh-tw.min.mjs +1 -1
  232. package/dist/locale/zh-tw.mjs +1 -1
  233. package/es/components/affix/src/affix.mjs.map +1 -1
  234. package/es/components/affix/src/affix2.mjs +2 -1
  235. package/es/components/affix/src/affix2.mjs.map +1 -1
  236. package/es/components/alert/index.d.ts +1 -0
  237. package/es/components/alert/index.mjs.map +1 -1
  238. package/es/components/alert/src/alert.d.ts +0 -2
  239. package/es/components/alert/src/alert.mjs.map +1 -1
  240. package/es/components/alert/src/instance.d.ts +2 -0
  241. package/es/components/alert/src/instance.mjs +2 -0
  242. package/es/components/alert/src/instance.mjs.map +1 -0
  243. package/es/components/autocomplete/index.d.ts +1 -66
  244. package/es/components/autocomplete/src/autocomplete.vue.d.ts +1 -66
  245. package/es/components/calendar/index.d.ts +1 -1
  246. package/es/components/calendar/src/calendar.vue.d.ts +3 -3
  247. package/es/components/calendar/src/calendar2.mjs +7 -3
  248. package/es/components/calendar/src/calendar2.mjs.map +1 -1
  249. package/es/components/calendar/src/use-calendar.d.ts +0 -2
  250. package/es/components/calendar/src/use-calendar.mjs +30 -35
  251. package/es/components/calendar/src/use-calendar.mjs.map +1 -1
  252. package/es/components/carousel/index.d.ts +31 -60
  253. package/es/components/carousel/index.mjs.map +1 -1
  254. package/es/components/carousel/src/carousel-item.d.ts +0 -2
  255. package/es/components/carousel/src/carousel-item.mjs.map +1 -1
  256. package/es/components/carousel/src/carousel-item.vue.d.ts +13 -20
  257. package/es/components/carousel/src/carousel-item2.mjs +21 -114
  258. package/es/components/carousel/src/carousel-item2.mjs.map +1 -1
  259. package/es/components/carousel/src/carousel.d.ts +0 -2
  260. package/es/components/carousel/src/carousel.mjs.map +1 -1
  261. package/es/components/carousel/src/carousel.vue.d.ts +67 -84
  262. package/es/components/carousel/src/carousel2.mjs +40 -205
  263. package/es/components/carousel/src/carousel2.mjs.map +1 -1
  264. package/es/components/carousel/src/instance.d.ts +4 -0
  265. package/es/components/carousel/src/instance.mjs +2 -0
  266. package/es/components/carousel/src/instance.mjs.map +1 -0
  267. package/es/components/carousel/src/use-carousel-item.d.ts +13 -0
  268. package/es/components/carousel/src/use-carousel-item.mjs +125 -0
  269. package/es/components/carousel/src/use-carousel-item.mjs.map +1 -0
  270. package/es/components/carousel/src/use-carousel.d.ts +22 -0
  271. package/es/components/carousel/src/use-carousel.mjs +211 -0
  272. package/es/components/carousel/src/use-carousel.mjs.map +1 -0
  273. package/es/components/cascader/index.d.ts +4 -84
  274. package/es/components/cascader/src/index.mjs +7 -12
  275. package/es/components/cascader/src/index.mjs.map +1 -1
  276. package/es/components/cascader/src/index.vue.d.ts +2 -42
  277. package/es/components/checkbox/src/composables/use-checkbox.mjs +4 -5
  278. package/es/components/checkbox/src/composables/use-checkbox.mjs.map +1 -1
  279. package/es/components/collapse/index.d.ts +20 -59
  280. package/es/components/collapse/index.mjs.map +1 -1
  281. package/es/components/collapse/src/collapse-item.d.ts +0 -2
  282. package/es/components/collapse/src/collapse-item.mjs.map +1 -1
  283. package/es/components/collapse/src/collapse-item.vue.d.ts +21 -32
  284. package/es/components/collapse/src/collapse-item2.mjs +34 -55
  285. package/es/components/collapse/src/collapse-item2.mjs.map +1 -1
  286. package/es/components/collapse/src/collapse.d.ts +0 -2
  287. package/es/components/collapse/src/collapse.mjs.map +1 -1
  288. package/es/components/collapse/src/collapse.vue.d.ts +6 -25
  289. package/es/components/collapse/src/collapse2.mjs +5 -39
  290. package/es/components/collapse/src/collapse2.mjs.map +1 -1
  291. package/es/components/collapse/src/instance.d.ts +4 -0
  292. package/es/components/collapse/src/instance.mjs +2 -0
  293. package/es/components/collapse/src/instance.mjs.map +1 -0
  294. package/es/components/collapse/src/use-collapse-item.d.ts +20 -0
  295. package/es/components/collapse/src/use-collapse-item.mjs +75 -0
  296. package/es/components/collapse/src/use-collapse-item.mjs.map +1 -0
  297. package/es/components/collapse/src/use-collapse.d.ts +9 -0
  298. package/es/components/collapse/src/use-collapse.mjs +52 -0
  299. package/es/components/collapse/src/use-collapse.mjs.map +1 -0
  300. package/es/components/color-picker/index.d.ts +1 -66
  301. package/es/components/color-picker/src/color-picker.vue.d.ts +1 -66
  302. package/es/components/date-picker/src/composables/use-month-range-header.mjs +2 -2
  303. package/es/components/date-picker/src/composables/use-month-range-header.mjs.map +1 -1
  304. package/es/components/dialog/index.d.ts +1 -1
  305. package/es/components/dialog/src/dialog.vue.d.ts +1 -1
  306. package/es/components/drawer/index.d.ts +1 -1
  307. package/es/components/drawer/src/drawer.vue.d.ts +1 -1
  308. package/es/components/dropdown/index.d.ts +4 -42
  309. package/es/components/dropdown/src/dropdown.d.ts +1 -0
  310. package/es/components/dropdown/src/dropdown.mjs +2 -1
  311. package/es/components/dropdown/src/dropdown.mjs.map +1 -1
  312. package/es/components/dropdown/src/dropdown.vue.d.ts +4 -42
  313. package/es/components/dropdown/src/dropdown2.mjs +2 -2
  314. package/es/components/dropdown/src/dropdown2.mjs.map +1 -1
  315. package/es/components/form/src/form2.mjs +2 -0
  316. package/es/components/form/src/form2.mjs.map +1 -1
  317. package/es/components/input/index.d.ts +2 -0
  318. package/es/components/input/index.mjs.map +1 -1
  319. package/es/components/input-number/src/input-number2.mjs +2 -2
  320. package/es/components/input-number/src/input-number2.mjs.map +1 -1
  321. package/es/components/pagination/src/components/sizes.vue.d.ts +1 -42
  322. package/es/components/popconfirm/index.d.ts +1 -66
  323. package/es/components/popconfirm/src/popconfirm.vue.d.ts +1 -66
  324. package/es/components/popover/index.d.ts +1 -66
  325. package/es/components/popover/src/popover.vue.d.ts +1 -66
  326. package/es/components/popover/style/css.d.ts +1 -1
  327. package/es/components/popover/style/css.mjs +1 -1
  328. package/es/components/popover/style/index.d.ts +1 -1
  329. package/es/components/popover/style/index.mjs +1 -1
  330. package/es/components/popper/src/utils.d.ts +0 -4
  331. package/es/components/popper/src/utils.mjs +1 -2
  332. package/es/components/popper/src/utils.mjs.map +1 -1
  333. package/es/components/select/index.d.ts +1 -42
  334. package/es/components/select/src/select.vue.d.ts +1 -42
  335. package/es/components/select/src/useSelect.d.ts +1 -42
  336. package/es/components/select/src/useSelect.mjs +9 -9
  337. package/es/components/select/src/useSelect.mjs.map +1 -1
  338. package/es/components/select-v2/index.d.ts +4 -86
  339. package/es/components/select-v2/src/select.vue.d.ts +2 -43
  340. package/es/components/select-v2/src/useSelect.d.ts +2 -43
  341. package/es/components/select-v2/src/useSelect.mjs +5 -5
  342. package/es/components/select-v2/src/useSelect.mjs.map +1 -1
  343. package/es/components/slider/index.d.ts +0 -120
  344. package/es/components/slider/src/button.vue.d.ts +0 -24
  345. package/es/components/slider/src/composables/use-slide.d.ts +0 -96
  346. package/es/components/slider/src/slider.vue.d.ts +0 -120
  347. package/es/components/table/src/filter-panel.vue.d.ts +1 -42
  348. package/es/components/table/src/store/watcher.mjs +10 -0
  349. package/es/components/table/src/store/watcher.mjs.map +1 -1
  350. package/es/components/table/src/table-body/styles-helper.mjs +2 -2
  351. package/es/components/table/src/table-body/styles-helper.mjs.map +1 -1
  352. package/es/components/table/src/table-header/style.helper.mjs +2 -2
  353. package/es/components/table/src/table-header/style.helper.mjs.map +1 -1
  354. package/es/components/table/src/util.d.ts +4 -4
  355. package/es/components/table/src/util.mjs +44 -31
  356. package/es/components/table/src/util.mjs.map +1 -1
  357. package/es/components/tabs/src/tabs.mjs +14 -22
  358. package/es/components/tabs/src/tabs.mjs.map +1 -1
  359. package/es/components/time-picker/src/common/picker.vue.d.ts +1 -66
  360. package/es/components/time-select/index.d.ts +4 -168
  361. package/es/components/time-select/src/time-select.vue.d.ts +2 -84
  362. package/es/components/tooltip/index.d.ts +0 -24
  363. package/es/components/tooltip/src/tooltip.d.ts +0 -7
  364. package/es/components/tooltip/src/tooltip.mjs +0 -7
  365. package/es/components/tooltip/src/tooltip.mjs.map +1 -1
  366. package/es/components/tooltip/src/tooltip.vue.d.ts +3 -25
  367. package/es/components/tooltip/src/tooltip2.mjs +5 -19
  368. package/es/components/tooltip/src/tooltip2.mjs.map +1 -1
  369. package/es/components/tree-v2/index.d.ts +0 -1
  370. package/es/components/tree-v2/src/tree-node.mjs +2 -2
  371. package/es/components/tree-v2/src/tree-node.mjs.map +1 -1
  372. package/es/components/tree-v2/src/tree-node.vue.d.ts +0 -1
  373. package/es/components/tree-v2/src/tree.vue.d.ts +0 -1
  374. package/es/components/upload/src/use-handlers.mjs +3 -0
  375. package/es/components/upload/src/use-handlers.mjs.map +1 -1
  376. package/es/hooks/index.d.ts +0 -1
  377. package/es/utils/dom/style.mjs +4 -4
  378. package/es/utils/dom/style.mjs.map +1 -1
  379. package/es/utils/index.mjs +1 -1
  380. package/es/utils/types.d.ts +1 -0
  381. package/es/utils/types.mjs +8 -2
  382. package/es/utils/types.mjs.map +1 -1
  383. package/es/utils/vue/vnode.mjs +4 -0
  384. package/es/utils/vue/vnode.mjs.map +1 -1
  385. package/es/version.d.ts +1 -1
  386. package/es/version.mjs +1 -1
  387. package/es/version.mjs.map +1 -1
  388. package/lib/components/affix/src/affix.js.map +1 -1
  389. package/lib/components/affix/src/affix2.js +2 -1
  390. package/lib/components/affix/src/affix2.js.map +1 -1
  391. package/lib/components/alert/index.d.ts +1 -0
  392. package/lib/components/alert/index.js.map +1 -1
  393. package/lib/components/alert/src/alert.d.ts +0 -2
  394. package/lib/components/alert/src/alert.js.map +1 -1
  395. package/lib/components/alert/src/instance.d.ts +2 -0
  396. package/lib/components/alert/src/instance.js +3 -0
  397. package/lib/components/alert/src/instance.js.map +1 -0
  398. package/lib/components/autocomplete/index.d.ts +1 -66
  399. package/lib/components/autocomplete/src/autocomplete.vue.d.ts +1 -66
  400. package/lib/components/calendar/index.d.ts +1 -1
  401. package/lib/components/calendar/src/calendar.vue.d.ts +3 -3
  402. package/lib/components/calendar/src/calendar2.js +11 -7
  403. package/lib/components/calendar/src/calendar2.js.map +1 -1
  404. package/lib/components/calendar/src/use-calendar.d.ts +0 -2
  405. package/lib/components/calendar/src/use-calendar.js +30 -35
  406. package/lib/components/calendar/src/use-calendar.js.map +1 -1
  407. package/lib/components/carousel/index.d.ts +31 -60
  408. package/lib/components/carousel/index.js.map +1 -1
  409. package/lib/components/carousel/src/carousel-item.d.ts +0 -2
  410. package/lib/components/carousel/src/carousel-item.js.map +1 -1
  411. package/lib/components/carousel/src/carousel-item.vue.d.ts +13 -20
  412. package/lib/components/carousel/src/carousel-item2.js +20 -113
  413. package/lib/components/carousel/src/carousel-item2.js.map +1 -1
  414. package/lib/components/carousel/src/carousel.d.ts +0 -2
  415. package/lib/components/carousel/src/carousel.js.map +1 -1
  416. package/lib/components/carousel/src/carousel.vue.d.ts +67 -84
  417. package/lib/components/carousel/src/carousel2.js +42 -207
  418. package/lib/components/carousel/src/carousel2.js.map +1 -1
  419. package/lib/components/carousel/src/instance.d.ts +4 -0
  420. package/lib/components/carousel/src/instance.js +3 -0
  421. package/lib/components/carousel/src/instance.js.map +1 -0
  422. package/lib/components/carousel/src/use-carousel-item.d.ts +13 -0
  423. package/lib/components/carousel/src/use-carousel-item.js +129 -0
  424. package/lib/components/carousel/src/use-carousel-item.js.map +1 -0
  425. package/lib/components/carousel/src/use-carousel.d.ts +22 -0
  426. package/lib/components/carousel/src/use-carousel.js +215 -0
  427. package/lib/components/carousel/src/use-carousel.js.map +1 -0
  428. package/lib/components/cascader/index.d.ts +4 -84
  429. package/lib/components/cascader/src/index.js +7 -12
  430. package/lib/components/cascader/src/index.js.map +1 -1
  431. package/lib/components/cascader/src/index.vue.d.ts +2 -42
  432. package/lib/components/checkbox/src/composables/use-checkbox.js +4 -5
  433. package/lib/components/checkbox/src/composables/use-checkbox.js.map +1 -1
  434. package/lib/components/collapse/index.d.ts +20 -59
  435. package/lib/components/collapse/index.js.map +1 -1
  436. package/lib/components/collapse/src/collapse-item.d.ts +0 -2
  437. package/lib/components/collapse/src/collapse-item.js.map +1 -1
  438. package/lib/components/collapse/src/collapse-item.vue.d.ts +21 -32
  439. package/lib/components/collapse/src/collapse-item2.js +37 -58
  440. package/lib/components/collapse/src/collapse-item2.js.map +1 -1
  441. package/lib/components/collapse/src/collapse.d.ts +0 -2
  442. package/lib/components/collapse/src/collapse.js.map +1 -1
  443. package/lib/components/collapse/src/collapse.vue.d.ts +6 -25
  444. package/lib/components/collapse/src/collapse2.js +4 -38
  445. package/lib/components/collapse/src/collapse2.js.map +1 -1
  446. package/lib/components/collapse/src/instance.d.ts +4 -0
  447. package/lib/components/collapse/src/instance.js +3 -0
  448. package/lib/components/collapse/src/instance.js.map +1 -0
  449. package/lib/components/collapse/src/use-collapse-item.d.ts +20 -0
  450. package/lib/components/collapse/src/use-collapse-item.js +80 -0
  451. package/lib/components/collapse/src/use-collapse-item.js.map +1 -0
  452. package/lib/components/collapse/src/use-collapse.d.ts +9 -0
  453. package/lib/components/collapse/src/use-collapse.js +57 -0
  454. package/lib/components/collapse/src/use-collapse.js.map +1 -0
  455. package/lib/components/color-picker/index.d.ts +1 -66
  456. package/lib/components/color-picker/src/color-picker.vue.d.ts +1 -66
  457. package/lib/components/date-picker/src/composables/use-month-range-header.js +2 -2
  458. package/lib/components/date-picker/src/composables/use-month-range-header.js.map +1 -1
  459. package/lib/components/dialog/index.d.ts +1 -1
  460. package/lib/components/dialog/src/dialog.vue.d.ts +1 -1
  461. package/lib/components/drawer/index.d.ts +1 -1
  462. package/lib/components/drawer/src/drawer.vue.d.ts +1 -1
  463. package/lib/components/dropdown/index.d.ts +4 -42
  464. package/lib/components/dropdown/src/dropdown.d.ts +1 -0
  465. package/lib/components/dropdown/src/dropdown.js +2 -1
  466. package/lib/components/dropdown/src/dropdown.js.map +1 -1
  467. package/lib/components/dropdown/src/dropdown.vue.d.ts +4 -42
  468. package/lib/components/dropdown/src/dropdown2.js +2 -2
  469. package/lib/components/dropdown/src/dropdown2.js.map +1 -1
  470. package/lib/components/form/src/form2.js +2 -0
  471. package/lib/components/form/src/form2.js.map +1 -1
  472. package/lib/components/input/index.d.ts +2 -0
  473. package/lib/components/input/index.js.map +1 -1
  474. package/lib/components/input-number/src/input-number2.js +2 -2
  475. package/lib/components/input-number/src/input-number2.js.map +1 -1
  476. package/lib/components/pagination/src/components/sizes.vue.d.ts +1 -42
  477. package/lib/components/popconfirm/index.d.ts +1 -66
  478. package/lib/components/popconfirm/src/popconfirm.vue.d.ts +1 -66
  479. package/lib/components/popover/index.d.ts +1 -66
  480. package/lib/components/popover/src/popover.vue.d.ts +1 -66
  481. package/lib/components/popover/style/css.d.ts +1 -1
  482. package/lib/components/popover/style/css.js +1 -1
  483. package/lib/components/popover/style/index.d.ts +1 -1
  484. package/lib/components/popover/style/index.js +1 -1
  485. package/lib/components/popper/src/utils.d.ts +0 -4
  486. package/lib/components/popper/src/utils.js +1 -2
  487. package/lib/components/popper/src/utils.js.map +1 -1
  488. package/lib/components/select/index.d.ts +1 -42
  489. package/lib/components/select/src/select.vue.d.ts +1 -42
  490. package/lib/components/select/src/useSelect.d.ts +1 -42
  491. package/lib/components/select/src/useSelect.js +7 -7
  492. package/lib/components/select/src/useSelect.js.map +1 -1
  493. package/lib/components/select-v2/index.d.ts +4 -86
  494. package/lib/components/select-v2/src/select.vue.d.ts +2 -43
  495. package/lib/components/select-v2/src/useSelect.d.ts +2 -43
  496. package/lib/components/select-v2/src/useSelect.js +5 -5
  497. package/lib/components/select-v2/src/useSelect.js.map +1 -1
  498. package/lib/components/slider/index.d.ts +0 -120
  499. package/lib/components/slider/src/button.vue.d.ts +0 -24
  500. package/lib/components/slider/src/composables/use-slide.d.ts +0 -96
  501. package/lib/components/slider/src/slider.vue.d.ts +0 -120
  502. package/lib/components/table/src/filter-panel.vue.d.ts +1 -42
  503. package/lib/components/table/src/store/watcher.js +10 -0
  504. package/lib/components/table/src/store/watcher.js.map +1 -1
  505. package/lib/components/table/src/table-body/styles-helper.js +2 -2
  506. package/lib/components/table/src/table-body/styles-helper.js.map +1 -1
  507. package/lib/components/table/src/table-header/style.helper.js +2 -2
  508. package/lib/components/table/src/table-header/style.helper.js.map +1 -1
  509. package/lib/components/table/src/util.d.ts +4 -4
  510. package/lib/components/table/src/util.js +44 -31
  511. package/lib/components/table/src/util.js.map +1 -1
  512. package/lib/components/tabs/src/tabs.js +17 -25
  513. package/lib/components/tabs/src/tabs.js.map +1 -1
  514. package/lib/components/time-picker/src/common/picker.vue.d.ts +1 -66
  515. package/lib/components/time-select/index.d.ts +4 -168
  516. package/lib/components/time-select/src/time-select.vue.d.ts +2 -84
  517. package/lib/components/tooltip/index.d.ts +0 -24
  518. package/lib/components/tooltip/src/tooltip.d.ts +0 -7
  519. package/lib/components/tooltip/src/tooltip.js +0 -7
  520. package/lib/components/tooltip/src/tooltip.js.map +1 -1
  521. package/lib/components/tooltip/src/tooltip.vue.d.ts +3 -25
  522. package/lib/components/tooltip/src/tooltip2.js +4 -18
  523. package/lib/components/tooltip/src/tooltip2.js.map +1 -1
  524. package/lib/components/tree-v2/index.d.ts +0 -1
  525. package/lib/components/tree-v2/src/tree-node.js +2 -2
  526. package/lib/components/tree-v2/src/tree-node.js.map +1 -1
  527. package/lib/components/tree-v2/src/tree-node.vue.d.ts +0 -1
  528. package/lib/components/tree-v2/src/tree.vue.d.ts +0 -1
  529. package/lib/components/upload/src/use-handlers.js +3 -0
  530. package/lib/components/upload/src/use-handlers.js.map +1 -1
  531. package/lib/hooks/index.d.ts +0 -1
  532. package/lib/utils/dom/style.js +4 -4
  533. package/lib/utils/dom/style.js.map +1 -1
  534. package/lib/utils/index.js +1 -0
  535. package/lib/utils/index.js.map +1 -1
  536. package/lib/utils/types.d.ts +1 -0
  537. package/lib/utils/types.js +7 -0
  538. package/lib/utils/types.js.map +1 -1
  539. package/lib/utils/vue/vnode.js +4 -0
  540. package/lib/utils/vue/vnode.js.map +1 -1
  541. package/lib/version.d.ts +1 -1
  542. package/lib/version.js +1 -1
  543. package/lib/version.js.map +1 -1
  544. package/package.json +2 -2
  545. package/tags.json +1 -1
  546. package/theme-chalk/el-cascader.css +1 -1
  547. package/theme-chalk/el-date-picker.css +1 -1
  548. package/theme-chalk/el-input-number.css +1 -1
  549. package/theme-chalk/el-input.css +1 -1
  550. package/theme-chalk/el-loading.css +1 -1
  551. package/theme-chalk/el-popover.css +1 -1
  552. package/theme-chalk/el-select.css +1 -1
  553. package/theme-chalk/el-slider.css +1 -1
  554. package/theme-chalk/el-time-picker.css +1 -1
  555. package/theme-chalk/el-time-select.css +1 -1
  556. package/theme-chalk/index.css +1 -1
  557. package/theme-chalk/src/cascader.scss +2 -0
  558. package/theme-chalk/src/date-picker/picker.scss +4 -0
  559. package/theme-chalk/src/input-number.scss +1 -1
  560. package/theme-chalk/src/input.scss +4 -0
  561. package/theme-chalk/src/loading.scss +0 -2
  562. package/theme-chalk/src/popover.scss +10 -1
  563. package/theme-chalk/src/select.scss +4 -0
  564. package/theme-chalk/src/slider.scss +1 -0
  565. package/web-types.json +1 -1
  566. package/es/components/tabs/src/utils/pane.d.ts +0 -22
  567. package/es/components/tabs/src/utils/pane.mjs +0 -19
  568. package/es/components/tabs/src/utils/pane.mjs.map +0 -1
  569. package/lib/components/tabs/src/utils/pane.d.ts +0 -22
  570. package/lib/components/tabs/src/utils/pane.js +0 -24
  571. package/lib/components/tabs/src/utils/pane.js.map +0 -1
@@ -1,6 +1,6 @@
1
- /*! Element Plus v2.2.19 */
1
+ /*! Element Plus v2.2.20 */
2
2
 
3
- import { getCurrentScope, onScopeDispose, unref, readonly, shallowRef, watchEffect, ref, watch, getCurrentInstance, onMounted, nextTick, computed as computed$1, openBlock, createElementBlock, createElementVNode, warn, isVNode, Fragment, Comment, inject, provide, onBeforeUnmount, toRef, onUnmounted, isRef, h as h$1, Teleport, onBeforeMount, defineComponent, normalizeClass, normalizeStyle, renderSlot, mergeProps, useSlots, createBlock, Transition, withCtx, withDirectives, resolveDynamicComponent, createCommentVNode, createTextVNode, toDisplayString, createVNode, vShow, useAttrs as useAttrs$1, withModifiers, reactive, onUpdated, cloneVNode, Text, onDeactivated, renderList, withKeys, createSlots, toRefs, normalizeProps, toRaw as toRaw$1, vModelCheckbox, vModelRadio, resolveComponent, onBeforeUpdate, resolveDirective, vModelText, toHandlers, guardReactiveProps, markRaw, effectScope, triggerRef, shallowReactive, TransitionGroup, createApp, render } from 'vue';
3
+ import { getCurrentScope, onScopeDispose, unref, readonly, shallowRef, watchEffect, ref, watch, getCurrentInstance, onMounted, nextTick, computed as computed$1, openBlock, createElementBlock, createElementVNode, warn, isVNode, Fragment, Comment, inject, provide, onBeforeUnmount, toRef, onUnmounted, isRef, h as h$1, Teleport, onBeforeMount, defineComponent, normalizeClass, normalizeStyle, renderSlot, mergeProps, useSlots, createBlock, Transition, withCtx, withDirectives, resolveDynamicComponent, createCommentVNode, createTextVNode, toDisplayString, createVNode, vShow, useAttrs as useAttrs$1, withModifiers, reactive, onUpdated, cloneVNode, Text, onDeactivated, renderList, withKeys, createSlots, toRefs, normalizeProps, toRaw as toRaw$1, vModelCheckbox, vModelRadio, resolveComponent, onBeforeUpdate, resolveDirective, vModelText, toHandlers, guardReactiveProps, markRaw, effectScope, triggerRef, TransitionGroup, createApp, shallowReactive, render } from 'vue';
4
4
 
5
5
  var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
6
6
 
@@ -7518,6 +7518,12 @@ const isElement$1 = (e) => {
7518
7518
  const isPropAbsent = (prop) => {
7519
7519
  return isNil(prop);
7520
7520
  };
7521
+ const isStringNumber = (val) => {
7522
+ if (!isString(val)) {
7523
+ return false;
7524
+ }
7525
+ return !Number.isNaN(Number(val));
7526
+ };
7521
7527
 
7522
7528
  const escapeStringRegexp = (string = "") => string.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
7523
7529
  const capitalize = (str) => capitalize$1(str);
@@ -7585,10 +7591,10 @@ const getStyle = (element, styleName) => {
7585
7591
  function addUnit(value, defaultUnit = "px") {
7586
7592
  if (!value)
7587
7593
  return "";
7588
- if (isString(value)) {
7589
- return value;
7590
- } else if (isNumber(value)) {
7594
+ if (isNumber(value) || isStringNumber(value)) {
7591
7595
  return `${value}${defaultUnit}`;
7596
+ } else if (isString(value)) {
7597
+ return value;
7592
7598
  }
7593
7599
  }
7594
7600
 
@@ -8691,12 +8697,16 @@ const flattedChildren = (children) => {
8691
8697
  const vNodes = isArray(children) ? children : [children];
8692
8698
  const result = [];
8693
8699
  vNodes.forEach((child) => {
8700
+ var _a;
8694
8701
  if (isArray(child)) {
8695
8702
  result.push(...flattedChildren(child));
8696
8703
  } else if (isVNode(child) && isArray(child.children)) {
8697
8704
  result.push(...flattedChildren(child.children));
8698
8705
  } else {
8699
8706
  result.push(child);
8707
+ if (isVNode(child) && ((_a = child.component) == null ? void 0 : _a.subTree)) {
8708
+ result.push(...flattedChildren(child.component.subTree));
8709
+ }
8700
8710
  }
8701
8711
  });
8702
8712
  return result;
@@ -11068,7 +11078,7 @@ const useOrderedChildren = (vm, childComponentName) => {
11068
11078
  };
11069
11079
  };
11070
11080
 
11071
- const version$1 = "2.2.19";
11081
+ const version$1 = "2.2.20";
11072
11082
 
11073
11083
  const makeInstaller = (components = []) => {
11074
11084
  const install = (app, options) => {
@@ -11117,9 +11127,9 @@ var _export_sfc = (sfc, props) => {
11117
11127
  return target;
11118
11128
  };
11119
11129
 
11120
- const COMPONENT_NAME$k = "ElAffix";
11130
+ const COMPONENT_NAME$l = "ElAffix";
11121
11131
  const __default__$1w = defineComponent({
11122
- name: COMPONENT_NAME$k
11132
+ name: COMPONENT_NAME$l
11123
11133
  });
11124
11134
  const _sfc_main$2f = /* @__PURE__ */ defineComponent({
11125
11135
  ...__default__$1w,
@@ -11152,7 +11162,7 @@ const _sfc_main$2f = /* @__PURE__ */ defineComponent({
11152
11162
  const affixStyle = computed$1(() => {
11153
11163
  if (!fixed.value)
11154
11164
  return {};
11155
- const offset = props.offset ? `${props.offset}px` : 0;
11165
+ const offset = props.offset ? addUnit(props.offset) : 0;
11156
11166
  return {
11157
11167
  height: `${rootHeight.value}px`,
11158
11168
  width: `${rootWidth.value}px`,
@@ -11195,7 +11205,7 @@ const _sfc_main$2f = /* @__PURE__ */ defineComponent({
11195
11205
  if (props.target) {
11196
11206
  target.value = (_a = document.querySelector(props.target)) != null ? _a : void 0;
11197
11207
  if (!target.value)
11198
- throwError(COMPONENT_NAME$k, `Target is not existed: ${props.target}`);
11208
+ throwError(COMPONENT_NAME$l, `Target is not existed: ${props.target}`);
11199
11209
  } else {
11200
11210
  target.value = document.documentElement;
11201
11211
  }
@@ -11576,7 +11586,7 @@ const inputEmits = {
11576
11586
 
11577
11587
  const _hoisted_1$13 = ["role"];
11578
11588
  const _hoisted_2$G = ["id", "type", "disabled", "formatter", "parser", "readonly", "autocomplete", "tabindex", "aria-label", "placeholder", "form"];
11579
- const _hoisted_3$l = ["id", "tabindex", "disabled", "readonly", "autocomplete", "aria-label", "placeholder", "form"];
11589
+ const _hoisted_3$k = ["id", "tabindex", "disabled", "readonly", "autocomplete", "aria-label", "placeholder", "form"];
11580
11590
  const __default__$1t = defineComponent({
11581
11591
  name: "ElInput",
11582
11592
  inheritAttrs: false
@@ -11967,7 +11977,7 @@ const _sfc_main$2c = /* @__PURE__ */ defineComponent({
11967
11977
  onBlur: handleBlur,
11968
11978
  onChange: handleChange,
11969
11979
  onKeydown: handleKeydown
11970
- }), null, 16, _hoisted_3$l),
11980
+ }), null, 16, _hoisted_3$k),
11971
11981
  unref(isWordLimitVisible) ? (openBlock(), createElementBlock("span", {
11972
11982
  key: 0,
11973
11983
  style: normalizeStyle(countStyle.value),
@@ -12027,7 +12037,7 @@ const thumbProps = buildProps({
12027
12037
  always: Boolean
12028
12038
  });
12029
12039
 
12030
- const COMPONENT_NAME$j = "Thumb";
12040
+ const COMPONENT_NAME$k = "Thumb";
12031
12041
  const _sfc_main$2b = /* @__PURE__ */ defineComponent({
12032
12042
  __name: "thumb",
12033
12043
  props: thumbProps,
@@ -12036,7 +12046,7 @@ const _sfc_main$2b = /* @__PURE__ */ defineComponent({
12036
12046
  const scrollbar = inject(scrollbarContextKey);
12037
12047
  const ns = useNamespace("scrollbar");
12038
12048
  if (!scrollbar)
12039
- throwError(COMPONENT_NAME$j, "can not inject scrollbar context");
12049
+ throwError(COMPONENT_NAME$k, "can not inject scrollbar context");
12040
12050
  const instance = ref();
12041
12051
  const thumb = ref();
12042
12052
  const thumbState = ref({});
@@ -13221,8 +13231,7 @@ function genModifiers(options) {
13221
13231
  {
13222
13232
  name: "computeStyles",
13223
13233
  options: {
13224
- gpuAcceleration,
13225
- adaptive: gpuAcceleration
13234
+ gpuAcceleration
13226
13235
  }
13227
13236
  }
13228
13237
  ];
@@ -13498,13 +13507,6 @@ const useTooltipProps = buildProps({
13498
13507
  ...useTooltipContentProps,
13499
13508
  ...useTooltipTriggerProps,
13500
13509
  ...popperArrowProps,
13501
- openDelay: {
13502
- type: Number
13503
- },
13504
- visibleArrow: {
13505
- type: Boolean,
13506
- default: void 0
13507
- },
13508
13510
  showArrow: {
13509
13511
  type: Boolean,
13510
13512
  default: true
@@ -13767,14 +13769,6 @@ const _sfc_main$21 = /* @__PURE__ */ defineComponent({
13767
13769
  setup(__props, { expose, emit }) {
13768
13770
  const props = __props;
13769
13771
  usePopperContainer();
13770
- const compatShowAfter = computed$1(() => {
13771
- if (!isUndefined(props.openDelay)) ;
13772
- return props.openDelay || props.showAfter;
13773
- });
13774
- const compatShowArrow = computed$1(() => {
13775
- if (!isUndefined(props.visibleArrow)) ;
13776
- return isBoolean(props.visibleArrow) ? props.visibleArrow : props.showArrow;
13777
- });
13778
13772
  const id = useId();
13779
13773
  const popperRef = ref();
13780
13774
  const contentRef = ref();
@@ -13792,7 +13786,7 @@ const _sfc_main$21 = /* @__PURE__ */ defineComponent({
13792
13786
  toggleReason
13793
13787
  });
13794
13788
  const { onOpen, onClose } = useDelayedToggle({
13795
- showAfter: compatShowAfter,
13789
+ showAfter: toRef(props, "showAfter"),
13796
13790
  hideAfter: toRef(props, "hideAfter"),
13797
13791
  open: show,
13798
13792
  close: hide
@@ -13891,7 +13885,7 @@ const _sfc_main$21 = /* @__PURE__ */ defineComponent({
13891
13885
  "raw-content": _ctx.rawContent,
13892
13886
  "reference-el": _ctx.referenceEl,
13893
13887
  "trigger-target-el": _ctx.triggerTargetEl,
13894
- "show-after": unref(compatShowAfter),
13888
+ "show-after": _ctx.showAfter,
13895
13889
  strategy: _ctx.strategy,
13896
13890
  teleported: _ctx.teleported,
13897
13891
  transition: _ctx.transition,
@@ -13906,7 +13900,7 @@ const _sfc_main$21 = /* @__PURE__ */ defineComponent({
13906
13900
  innerHTML: _ctx.content
13907
13901
  }, null, 8, _hoisted_1$12)) : (openBlock(), createElementBlock("span", _hoisted_2$F, toDisplayString(_ctx.content), 1))
13908
13902
  ]),
13909
- unref(compatShowArrow) ? (openBlock(), createBlock(unref(ElPopperArrow), {
13903
+ _ctx.showArrow ? (openBlock(), createBlock(unref(ElPopperArrow), {
13910
13904
  key: 0,
13911
13905
  "arrow-offset": _ctx.arrowOffset
13912
13906
  }, null, 8, ["arrow-offset"])) : createCommentVNode("v-if", true)
@@ -13993,10 +13987,10 @@ const autocompleteEmits = {
13993
13987
 
13994
13988
  const _hoisted_1$11 = ["aria-expanded", "aria-owns"];
13995
13989
  const _hoisted_2$E = { key: 0 };
13996
- const _hoisted_3$k = ["id", "aria-selected", "onClick"];
13997
- const COMPONENT_NAME$i = "ElAutocomplete";
13990
+ const _hoisted_3$j = ["id", "aria-selected", "onClick"];
13991
+ const COMPONENT_NAME$j = "ElAutocomplete";
13998
13992
  const __default__$1k = defineComponent({
13999
- name: COMPONENT_NAME$i,
13993
+ name: COMPONENT_NAME$j,
14000
13994
  inheritAttrs: false
14001
13995
  });
14002
13996
  const _sfc_main$20 = /* @__PURE__ */ defineComponent({
@@ -14058,7 +14052,7 @@ const _sfc_main$20 = /* @__PURE__ */ defineComponent({
14058
14052
  suggestions.value = suggestionList;
14059
14053
  highlightedIndex.value = props.highlightFirstItem ? 0 : -1;
14060
14054
  } else {
14061
- throwError(COMPONENT_NAME$i, "autocomplete suggestions must be an array");
14055
+ throwError(COMPONENT_NAME$j, "autocomplete suggestions must be an array");
14062
14056
  }
14063
14057
  };
14064
14058
  loading.value = true;
@@ -14256,7 +14250,7 @@ const _sfc_main$20 = /* @__PURE__ */ defineComponent({
14256
14250
  renderSlot(_ctx.$slots, "default", { item }, () => [
14257
14251
  createTextVNode(toDisplayString(item[_ctx.valueKey]), 1)
14258
14252
  ])
14259
- ], 10, _hoisted_3$k);
14253
+ ], 10, _hoisted_3$j);
14260
14254
  }), 128))
14261
14255
  ]),
14262
14256
  _: 3
@@ -14494,9 +14488,9 @@ const useBackTop = (props, emit, componentName) => {
14494
14488
  };
14495
14489
  };
14496
14490
 
14497
- const COMPONENT_NAME$h = "ElBacktop";
14491
+ const COMPONENT_NAME$i = "ElBacktop";
14498
14492
  const __default__$1i = defineComponent({
14499
- name: COMPONENT_NAME$h
14493
+ name: COMPONENT_NAME$i
14500
14494
  });
14501
14495
  const _sfc_main$1_ = /* @__PURE__ */ defineComponent({
14502
14496
  ...__default__$1i,
@@ -14505,7 +14499,7 @@ const _sfc_main$1_ = /* @__PURE__ */ defineComponent({
14505
14499
  setup(__props, { emit }) {
14506
14500
  const props = __props;
14507
14501
  const ns = useNamespace("backtop");
14508
- const { handleClick, visible } = useBackTop(props, emit, COMPONENT_NAME$h);
14502
+ const { handleClick, visible } = useBackTop(props, emit, COMPONENT_NAME$i);
14509
14503
  const backTopStyle = computed$1(() => ({
14510
14504
  right: `${props.right}px`,
14511
14505
  bottom: `${props.bottom}px`
@@ -18386,9 +18380,32 @@ const _sfc_main$1Q = /* @__PURE__ */ defineComponent({
18386
18380
  });
18387
18381
  var DateTable$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1Q, [["__file", "date-table.vue"]]);
18388
18382
 
18383
+ const adjacentMonth = (start, end) => {
18384
+ const firstMonthLastDay = start.endOf("month");
18385
+ const lastMonthFirstDay = end.startOf("month");
18386
+ const isSameWeek = firstMonthLastDay.isSame(lastMonthFirstDay, "week");
18387
+ const lastMonthStartDay = isSameWeek ? lastMonthFirstDay.add(1, "week") : lastMonthFirstDay;
18388
+ return [
18389
+ [start, firstMonthLastDay],
18390
+ [lastMonthStartDay.startOf("week"), end]
18391
+ ];
18392
+ };
18393
+ const threeConsecutiveMonth = (start, end) => {
18394
+ const firstMonthLastDay = start.endOf("month");
18395
+ const secondMonthFirstDay = start.add(1, "month").startOf("month");
18396
+ const secondMonthStartDay = firstMonthLastDay.isSame(secondMonthFirstDay, "week") ? secondMonthFirstDay.add(1, "week") : secondMonthFirstDay;
18397
+ const secondMonthLastDay = secondMonthStartDay.endOf("month");
18398
+ const lastMonthFirstDay = end.startOf("month");
18399
+ const lastMonthStartDay = secondMonthLastDay.isSame(lastMonthFirstDay, "week") ? lastMonthFirstDay.add(1, "week") : lastMonthFirstDay;
18400
+ return [
18401
+ [start, firstMonthLastDay],
18402
+ [secondMonthStartDay.startOf("week"), secondMonthLastDay],
18403
+ [lastMonthStartDay.startOf("week"), end]
18404
+ ];
18405
+ };
18389
18406
  const useCalendar = (props, emit, componentName) => {
18390
- const solts = useSlots();
18391
- const { t, lang } = useLocale();
18407
+ const slots = useSlots();
18408
+ const { lang } = useLocale();
18392
18409
  const selectedDay = ref();
18393
18410
  const now = dayjs().locale(lang.value);
18394
18411
  const realSelectedDay = computed$1({
@@ -18425,12 +18442,7 @@ const useCalendar = (props, emit, componentName) => {
18425
18442
  });
18426
18443
  const date = computed$1(() => {
18427
18444
  if (!props.modelValue) {
18428
- if (realSelectedDay.value) {
18429
- return realSelectedDay.value;
18430
- } else if (validatedRange.value.length) {
18431
- return validatedRange.value[0][0];
18432
- }
18433
- return now;
18445
+ return realSelectedDay.value || (validatedRange.value.length ? validatedRange.value[0][0] : now);
18434
18446
  } else {
18435
18447
  return dayjs(props.modelValue).locale(lang.value);
18436
18448
  }
@@ -18439,10 +18451,6 @@ const useCalendar = (props, emit, componentName) => {
18439
18451
  const nextMonthDayjs = computed$1(() => date.value.add(1, "month").date(1));
18440
18452
  const prevYearDayjs = computed$1(() => date.value.subtract(1, "year").date(1));
18441
18453
  const nextYearDayjs = computed$1(() => date.value.add(1, "year").date(1));
18442
- const i18nDate = computed$1(() => {
18443
- const pickedMonth = `el.datepicker.month${date.value.format("M")}`;
18444
- return `${date.value.year()} ${t("el.datepicker.year")} ${t(pickedMonth)}`;
18445
- });
18446
18454
  const calculateValidatedDateRange = (startDayjs, endDayjs) => {
18447
18455
  const firstDay = startDayjs.startOf("week");
18448
18456
  const lastDay = endDayjs.endOf("week");
@@ -18451,26 +18459,9 @@ const useCalendar = (props, emit, componentName) => {
18451
18459
  if (firstMonth === lastMonth) {
18452
18460
  return [[firstDay, lastDay]];
18453
18461
  } else if (firstMonth + 1 === lastMonth) {
18454
- const firstMonthLastDay = firstDay.endOf("month");
18455
- const lastMonthFirstDay = lastDay.startOf("month");
18456
- const isSameWeek = firstMonthLastDay.isSame(lastMonthFirstDay, "week");
18457
- const lastMonthStartDay = isSameWeek ? lastMonthFirstDay.add(1, "week") : lastMonthFirstDay;
18458
- return [
18459
- [firstDay, firstMonthLastDay],
18460
- [lastMonthStartDay.startOf("week"), lastDay]
18461
- ];
18462
+ return adjacentMonth(firstDay, lastDay);
18462
18463
  } else if (firstMonth + 2 === lastMonth || (firstMonth + 1) % 11 === lastMonth) {
18463
- const firstMonthLastDay = firstDay.endOf("month");
18464
- const secondMonthFirstDay = firstDay.add(1, "month").startOf("month");
18465
- const secondMonthStartDay = firstMonthLastDay.isSame(secondMonthFirstDay, "week") ? secondMonthFirstDay.add(1, "week") : secondMonthFirstDay;
18466
- const secondMonthLastDay = secondMonthStartDay.endOf("month");
18467
- const lastMonthFirstDay = lastDay.startOf("month");
18468
- const lastMonthStartDay = secondMonthLastDay.isSame(lastMonthFirstDay, "week") ? lastMonthFirstDay.add(1, "week") : lastMonthFirstDay;
18469
- return [
18470
- [firstDay, firstMonthLastDay],
18471
- [secondMonthStartDay.startOf("week"), secondMonthLastDay],
18472
- [lastMonthStartDay.startOf("week"), lastDay]
18473
- ];
18464
+ return threeConsecutiveMonth(firstDay, lastDay);
18474
18465
  } else {
18475
18466
  return [];
18476
18467
  }
@@ -18498,16 +18489,14 @@ const useCalendar = (props, emit, componentName) => {
18498
18489
  version: "2.3.0",
18499
18490
  ref: "https://element-plus.org/en-US/component/calendar.html#slots",
18500
18491
  type: "Slot"
18501
- }, computed$1(() => !!solts.dateCell));
18492
+ }, computed$1(() => !!slots.dateCell));
18502
18493
  return {
18503
18494
  calculateValidatedDateRange,
18504
18495
  date,
18505
18496
  realSelectedDay,
18506
18497
  pickDay,
18507
18498
  selectDate,
18508
- validatedRange,
18509
- t,
18510
- i18nDate
18499
+ validatedRange
18511
18500
  };
18512
18501
  };
18513
18502
 
@@ -18526,9 +18515,9 @@ const calendarEmits = {
18526
18515
  [INPUT_EVENT]: (value) => isDate(value)
18527
18516
  };
18528
18517
 
18529
- const COMPONENT_NAME$g = "ElCalendar";
18518
+ const COMPONENT_NAME$h = "ElCalendar";
18530
18519
  const __default__$1a = defineComponent({
18531
- name: COMPONENT_NAME$g
18520
+ name: COMPONENT_NAME$h
18532
18521
  });
18533
18522
  const _sfc_main$1P = /* @__PURE__ */ defineComponent({
18534
18523
  ...__default__$1a,
@@ -18543,10 +18532,13 @@ const _sfc_main$1P = /* @__PURE__ */ defineComponent({
18543
18532
  pickDay,
18544
18533
  realSelectedDay,
18545
18534
  selectDate,
18546
- t,
18547
- i18nDate,
18548
18535
  validatedRange
18549
18536
  } = useCalendar(props, emit);
18537
+ const { t } = useLocale();
18538
+ const i18nDate = computed$1(() => {
18539
+ const pickedMonth = `el.datepicker.month${date.value.format("M")}`;
18540
+ return `${date.value.year()} ${t("el.datepicker.year")} ${t(pickedMonth)}`;
18541
+ });
18550
18542
  expose({
18551
18543
  selectedDay: realSelectedDay,
18552
18544
  pickDay,
@@ -18758,12 +18750,208 @@ const carouselEmits = {
18758
18750
  change: (current, prev) => [current, prev].every(isNumber)
18759
18751
  };
18760
18752
 
18761
- const _hoisted_1$V = ["onMouseenter", "onMouseleave"];
18762
- const _hoisted_2$A = ["onMouseenter", "onClick"];
18763
- const _hoisted_3$j = { key: 0 };
18764
18753
  const THROTTLE_TIME = 300;
18754
+ const useCarousel = (props, emit, componentName) => {
18755
+ const {
18756
+ children: items,
18757
+ addChild: addItem,
18758
+ removeChild: removeItem
18759
+ } = useOrderedChildren(getCurrentInstance(), "ElCarouselItem");
18760
+ const activeIndex = ref(-1);
18761
+ const timer = ref(null);
18762
+ const hover = ref(false);
18763
+ const root = ref();
18764
+ const arrowDisplay = computed$1(() => props.arrow !== "never" && !unref(isVertical));
18765
+ const hasLabel = computed$1(() => {
18766
+ return items.value.some((item) => item.props.label.toString().length > 0);
18767
+ });
18768
+ const isCardType = computed$1(() => props.type === "card");
18769
+ const isVertical = computed$1(() => props.direction === "vertical");
18770
+ const throttledArrowClick = throttle((index) => {
18771
+ setActiveItem(index);
18772
+ }, THROTTLE_TIME, { trailing: true });
18773
+ const throttledIndicatorHover = throttle((index) => {
18774
+ handleIndicatorHover(index);
18775
+ }, THROTTLE_TIME);
18776
+ function pauseTimer() {
18777
+ if (timer.value) {
18778
+ clearInterval(timer.value);
18779
+ timer.value = null;
18780
+ }
18781
+ }
18782
+ function startTimer() {
18783
+ if (props.interval <= 0 || !props.autoplay || timer.value)
18784
+ return;
18785
+ timer.value = setInterval(() => playSlides(), props.interval);
18786
+ }
18787
+ const playSlides = () => {
18788
+ if (activeIndex.value < items.value.length - 1) {
18789
+ activeIndex.value = activeIndex.value + 1;
18790
+ } else if (props.loop) {
18791
+ activeIndex.value = 0;
18792
+ }
18793
+ };
18794
+ function setActiveItem(index) {
18795
+ if (isString(index)) {
18796
+ const filteredItems = items.value.filter((item) => item.props.name === index);
18797
+ if (filteredItems.length > 0) {
18798
+ index = items.value.indexOf(filteredItems[0]);
18799
+ }
18800
+ }
18801
+ index = Number(index);
18802
+ if (Number.isNaN(index) || index !== Math.floor(index)) {
18803
+ return;
18804
+ }
18805
+ const itemCount = items.value.length;
18806
+ const oldIndex = activeIndex.value;
18807
+ if (index < 0) {
18808
+ activeIndex.value = props.loop ? itemCount - 1 : 0;
18809
+ } else if (index >= itemCount) {
18810
+ activeIndex.value = props.loop ? 0 : itemCount - 1;
18811
+ } else {
18812
+ activeIndex.value = index;
18813
+ }
18814
+ if (oldIndex === activeIndex.value) {
18815
+ resetItemPosition(oldIndex);
18816
+ }
18817
+ resetTimer();
18818
+ }
18819
+ function resetItemPosition(oldIndex) {
18820
+ items.value.forEach((item, index) => {
18821
+ item.translateItem(index, activeIndex.value, oldIndex);
18822
+ });
18823
+ }
18824
+ function itemInStage(item, index) {
18825
+ var _a, _b, _c, _d;
18826
+ const _items = unref(items);
18827
+ const itemCount = _items.length;
18828
+ if (itemCount === 0 || !item.states.inStage)
18829
+ return false;
18830
+ const nextItemIndex = index + 1;
18831
+ const prevItemIndex = index - 1;
18832
+ const lastItemIndex = itemCount - 1;
18833
+ const isLastItemActive = _items[lastItemIndex].states.active;
18834
+ const isFirstItemActive = _items[0].states.active;
18835
+ const isNextItemActive = (_b = (_a = _items[nextItemIndex]) == null ? void 0 : _a.states) == null ? void 0 : _b.active;
18836
+ const isPrevItemActive = (_d = (_c = _items[prevItemIndex]) == null ? void 0 : _c.states) == null ? void 0 : _d.active;
18837
+ if (index === lastItemIndex && isFirstItemActive || isNextItemActive) {
18838
+ return "left";
18839
+ } else if (index === 0 && isLastItemActive || isPrevItemActive) {
18840
+ return "right";
18841
+ }
18842
+ return false;
18843
+ }
18844
+ function handleMouseEnter() {
18845
+ hover.value = true;
18846
+ if (props.pauseOnHover) {
18847
+ pauseTimer();
18848
+ }
18849
+ }
18850
+ function handleMouseLeave() {
18851
+ hover.value = false;
18852
+ startTimer();
18853
+ }
18854
+ function handleButtonEnter(arrow) {
18855
+ if (unref(isVertical))
18856
+ return;
18857
+ items.value.forEach((item, index) => {
18858
+ if (arrow === itemInStage(item, index)) {
18859
+ item.states.hover = true;
18860
+ }
18861
+ });
18862
+ }
18863
+ function handleButtonLeave() {
18864
+ if (unref(isVertical))
18865
+ return;
18866
+ items.value.forEach((item) => {
18867
+ item.states.hover = false;
18868
+ });
18869
+ }
18870
+ function handleIndicatorClick(index) {
18871
+ activeIndex.value = index;
18872
+ }
18873
+ function handleIndicatorHover(index) {
18874
+ if (props.trigger === "hover" && index !== activeIndex.value) {
18875
+ activeIndex.value = index;
18876
+ }
18877
+ }
18878
+ function prev() {
18879
+ setActiveItem(activeIndex.value - 1);
18880
+ }
18881
+ function next() {
18882
+ setActiveItem(activeIndex.value + 1);
18883
+ }
18884
+ function resetTimer() {
18885
+ pauseTimer();
18886
+ startTimer();
18887
+ }
18888
+ watch(() => activeIndex.value, (current, prev2) => {
18889
+ resetItemPosition(prev2);
18890
+ if (prev2 > -1) {
18891
+ emit("change", current, prev2);
18892
+ }
18893
+ });
18894
+ watch(() => props.autoplay, (autoplay) => {
18895
+ autoplay ? startTimer() : pauseTimer();
18896
+ });
18897
+ watch(() => props.loop, () => {
18898
+ setActiveItem(activeIndex.value);
18899
+ });
18900
+ watch(() => props.interval, () => {
18901
+ resetTimer();
18902
+ });
18903
+ watch(() => items.value, () => {
18904
+ if (items.value.length > 0)
18905
+ setActiveItem(props.initialIndex);
18906
+ });
18907
+ const resizeObserver = shallowRef();
18908
+ onMounted(() => {
18909
+ resizeObserver.value = useResizeObserver(root.value, () => {
18910
+ resetItemPosition();
18911
+ });
18912
+ startTimer();
18913
+ });
18914
+ onBeforeUnmount(() => {
18915
+ pauseTimer();
18916
+ if (root.value && resizeObserver.value)
18917
+ resizeObserver.value.stop();
18918
+ });
18919
+ provide(carouselContextKey, {
18920
+ root,
18921
+ isCardType,
18922
+ isVertical,
18923
+ items,
18924
+ loop: props.loop,
18925
+ addItem,
18926
+ removeItem,
18927
+ setActiveItem
18928
+ });
18929
+ return {
18930
+ root,
18931
+ activeIndex,
18932
+ arrowDisplay,
18933
+ hasLabel,
18934
+ hover,
18935
+ isCardType,
18936
+ items,
18937
+ handleButtonEnter,
18938
+ handleButtonLeave,
18939
+ handleIndicatorClick,
18940
+ handleMouseEnter,
18941
+ handleMouseLeave,
18942
+ setActiveItem,
18943
+ prev,
18944
+ next,
18945
+ throttledArrowClick,
18946
+ throttledIndicatorHover
18947
+ };
18948
+ };
18949
+
18950
+ const _hoisted_1$V = ["onMouseenter", "onClick"];
18951
+ const _hoisted_2$A = { key: 0 };
18952
+ const COMPONENT_NAME$g = "ElCarousel";
18765
18953
  const __default__$18 = defineComponent({
18766
- name: "ElCarousel"
18954
+ name: COMPONENT_NAME$g
18767
18955
  });
18768
18956
  const _sfc_main$1N = /* @__PURE__ */ defineComponent({
18769
18957
  ...__default__$18,
@@ -18771,20 +18959,26 @@ const _sfc_main$1N = /* @__PURE__ */ defineComponent({
18771
18959
  emits: carouselEmits,
18772
18960
  setup(__props, { expose, emit }) {
18773
18961
  const props = __props;
18774
- const ns = useNamespace("carousel");
18775
18962
  const {
18776
- children: items,
18777
- addChild: addItem,
18778
- removeChild: removeItem
18779
- } = useOrderedChildren(getCurrentInstance(), "ElCarouselItem");
18780
- const activeIndex = ref(-1);
18781
- const timer = ref(null);
18782
- const hover = ref(false);
18783
- const root = ref();
18784
- const arrowDisplay = computed$1(() => props.arrow !== "never" && !unref(isVertical));
18785
- const hasLabel = computed$1(() => {
18786
- return items.value.some((item) => item.props.label.toString().length > 0);
18787
- });
18963
+ root,
18964
+ activeIndex,
18965
+ arrowDisplay,
18966
+ hasLabel,
18967
+ hover,
18968
+ isCardType,
18969
+ items,
18970
+ handleButtonEnter,
18971
+ handleButtonLeave,
18972
+ handleIndicatorClick,
18973
+ handleMouseEnter,
18974
+ handleMouseLeave,
18975
+ setActiveItem,
18976
+ prev,
18977
+ next,
18978
+ throttledArrowClick,
18979
+ throttledIndicatorHover
18980
+ } = useCarousel(props, emit);
18981
+ const ns = useNamespace("carousel");
18788
18982
  const carouselClasses = computed$1(() => {
18789
18983
  const classes = [ns.b(), ns.m(props.direction)];
18790
18984
  if (unref(isCardType)) {
@@ -18794,7 +18988,7 @@ const _sfc_main$1N = /* @__PURE__ */ defineComponent({
18794
18988
  });
18795
18989
  const indicatorsClasses = computed$1(() => {
18796
18990
  const classes = [ns.e("indicators"), ns.em("indicators", props.direction)];
18797
- if (hasLabel.value) {
18991
+ if (unref(hasLabel)) {
18798
18992
  classes.push(ns.em("indicators", "labels"));
18799
18993
  }
18800
18994
  if (props.indicatorPosition === "outside" || unref(isCardType)) {
@@ -18802,167 +18996,6 @@ const _sfc_main$1N = /* @__PURE__ */ defineComponent({
18802
18996
  }
18803
18997
  return classes;
18804
18998
  });
18805
- const isCardType = computed$1(() => props.type === "card");
18806
- const isVertical = computed$1(() => props.direction === "vertical");
18807
- const throttledArrowClick = throttle((index) => {
18808
- setActiveItem(index);
18809
- }, THROTTLE_TIME, { trailing: true });
18810
- const throttledIndicatorHover = throttle((index) => {
18811
- handleIndicatorHover(index);
18812
- }, THROTTLE_TIME);
18813
- function pauseTimer() {
18814
- if (timer.value) {
18815
- clearInterval(timer.value);
18816
- timer.value = null;
18817
- }
18818
- }
18819
- function startTimer() {
18820
- if (props.interval <= 0 || !props.autoplay || timer.value)
18821
- return;
18822
- timer.value = setInterval(() => playSlides(), props.interval);
18823
- }
18824
- const playSlides = () => {
18825
- if (activeIndex.value < items.value.length - 1) {
18826
- activeIndex.value = activeIndex.value + 1;
18827
- } else if (props.loop) {
18828
- activeIndex.value = 0;
18829
- }
18830
- };
18831
- function setActiveItem(index) {
18832
- if (isString(index)) {
18833
- const filteredItems = items.value.filter((item) => item.props.name === index);
18834
- if (filteredItems.length > 0) {
18835
- index = items.value.indexOf(filteredItems[0]);
18836
- }
18837
- }
18838
- index = Number(index);
18839
- if (Number.isNaN(index) || index !== Math.floor(index)) {
18840
- return;
18841
- }
18842
- const itemCount = items.value.length;
18843
- const oldIndex = activeIndex.value;
18844
- if (index < 0) {
18845
- activeIndex.value = props.loop ? itemCount - 1 : 0;
18846
- } else if (index >= itemCount) {
18847
- activeIndex.value = props.loop ? 0 : itemCount - 1;
18848
- } else {
18849
- activeIndex.value = index;
18850
- }
18851
- if (oldIndex === activeIndex.value) {
18852
- resetItemPosition(oldIndex);
18853
- }
18854
- resetTimer();
18855
- }
18856
- function resetItemPosition(oldIndex) {
18857
- items.value.forEach((item, index) => {
18858
- item.translateItem(index, activeIndex.value, oldIndex);
18859
- });
18860
- }
18861
- function itemInStage(item, index) {
18862
- var _a, _b, _c, _d;
18863
- const _items = unref(items);
18864
- const itemCount = _items.length;
18865
- if (itemCount === 0 || !item.states.inStage)
18866
- return false;
18867
- const nextItemIndex = index + 1;
18868
- const prevItemIndex = index - 1;
18869
- const lastItemIndex = itemCount - 1;
18870
- const isLastItemActive = _items[lastItemIndex].states.active;
18871
- const isFirstItemActive = _items[0].states.active;
18872
- const isNextItemActive = (_b = (_a = _items[nextItemIndex]) == null ? void 0 : _a.states) == null ? void 0 : _b.active;
18873
- const isPrevItemActive = (_d = (_c = _items[prevItemIndex]) == null ? void 0 : _c.states) == null ? void 0 : _d.active;
18874
- if (index === lastItemIndex && isFirstItemActive || isNextItemActive) {
18875
- return "left";
18876
- } else if (index === 0 && isLastItemActive || isPrevItemActive) {
18877
- return "right";
18878
- }
18879
- return false;
18880
- }
18881
- function handleMouseEnter() {
18882
- hover.value = true;
18883
- if (props.pauseOnHover) {
18884
- pauseTimer();
18885
- }
18886
- }
18887
- function handleMouseLeave() {
18888
- hover.value = false;
18889
- startTimer();
18890
- }
18891
- function handleButtonEnter(arrow) {
18892
- if (unref(isVertical))
18893
- return;
18894
- items.value.forEach((item, index) => {
18895
- if (arrow === itemInStage(item, index)) {
18896
- item.states.hover = true;
18897
- }
18898
- });
18899
- }
18900
- function handleButtonLeave() {
18901
- if (unref(isVertical))
18902
- return;
18903
- items.value.forEach((item) => {
18904
- item.states.hover = false;
18905
- });
18906
- }
18907
- function handleIndicatorClick(index) {
18908
- activeIndex.value = index;
18909
- }
18910
- function handleIndicatorHover(index) {
18911
- if (props.trigger === "hover" && index !== activeIndex.value) {
18912
- activeIndex.value = index;
18913
- }
18914
- }
18915
- function prev() {
18916
- setActiveItem(activeIndex.value - 1);
18917
- }
18918
- function next() {
18919
- setActiveItem(activeIndex.value + 1);
18920
- }
18921
- function resetTimer() {
18922
- pauseTimer();
18923
- startTimer();
18924
- }
18925
- watch(() => activeIndex.value, (current, prev2) => {
18926
- resetItemPosition(prev2);
18927
- if (prev2 > -1) {
18928
- emit("change", current, prev2);
18929
- }
18930
- });
18931
- watch(() => props.autoplay, (autoplay) => {
18932
- autoplay ? startTimer() : pauseTimer();
18933
- });
18934
- watch(() => props.loop, () => {
18935
- setActiveItem(activeIndex.value);
18936
- });
18937
- watch(() => props.interval, () => {
18938
- resetTimer();
18939
- });
18940
- watch(() => items.value, () => {
18941
- if (items.value.length > 0)
18942
- setActiveItem(props.initialIndex);
18943
- });
18944
- const resizeObserver = shallowRef();
18945
- onMounted(() => {
18946
- resizeObserver.value = useResizeObserver(root.value, () => {
18947
- resetItemPosition();
18948
- });
18949
- startTimer();
18950
- });
18951
- onBeforeUnmount(() => {
18952
- pauseTimer();
18953
- if (root.value && resizeObserver.value)
18954
- resizeObserver.value.stop();
18955
- });
18956
- provide(carouselContextKey, {
18957
- root,
18958
- isCardType,
18959
- isVertical,
18960
- items,
18961
- loop: props.loop,
18962
- addItem,
18963
- removeItem,
18964
- setActiveItem
18965
- });
18966
18999
  expose({
18967
19000
  setActiveItem,
18968
19001
  prev,
@@ -18973,8 +19006,8 @@ const _sfc_main$1N = /* @__PURE__ */ defineComponent({
18973
19006
  ref_key: "root",
18974
19007
  ref: root,
18975
19008
  class: normalizeClass(unref(carouselClasses)),
18976
- onMouseenter: withModifiers(handleMouseEnter, ["stop"]),
18977
- onMouseleave: withModifiers(handleMouseLeave, ["stop"])
19009
+ onMouseenter: _cache[6] || (_cache[6] = withModifiers((...args) => unref(handleMouseEnter) && unref(handleMouseEnter)(...args), ["stop"])),
19010
+ onMouseleave: _cache[7] || (_cache[7] = withModifiers((...args) => unref(handleMouseLeave) && unref(handleMouseLeave)(...args), ["stop"]))
18978
19011
  }, [
18979
19012
  createElementVNode("div", {
18980
19013
  class: normalizeClass(unref(ns).e("container")),
@@ -18989,9 +19022,9 @@ const _sfc_main$1N = /* @__PURE__ */ defineComponent({
18989
19022
  withDirectives(createElementVNode("button", {
18990
19023
  type: "button",
18991
19024
  class: normalizeClass([unref(ns).e("arrow"), unref(ns).em("arrow", "left")]),
18992
- onMouseenter: _cache[0] || (_cache[0] = ($event) => handleButtonEnter("left")),
18993
- onMouseleave: handleButtonLeave,
18994
- onClick: _cache[1] || (_cache[1] = withModifiers(($event) => unref(throttledArrowClick)(activeIndex.value - 1), ["stop"]))
19025
+ onMouseenter: _cache[0] || (_cache[0] = ($event) => unref(handleButtonEnter)("left")),
19026
+ onMouseleave: _cache[1] || (_cache[1] = (...args) => unref(handleButtonLeave) && unref(handleButtonLeave)(...args)),
19027
+ onClick: _cache[2] || (_cache[2] = withModifiers(($event) => unref(throttledArrowClick)(unref(activeIndex) - 1), ["stop"]))
18995
19028
  }, [
18996
19029
  createVNode(unref(ElIcon), null, {
18997
19030
  default: withCtx(() => [
@@ -19002,7 +19035,7 @@ const _sfc_main$1N = /* @__PURE__ */ defineComponent({
19002
19035
  ], 34), [
19003
19036
  [
19004
19037
  vShow,
19005
- (_ctx.arrow === "always" || hover.value) && (props.loop || activeIndex.value > 0)
19038
+ (_ctx.arrow === "always" || unref(hover)) && (props.loop || unref(activeIndex) > 0)
19006
19039
  ]
19007
19040
  ])
19008
19041
  ]),
@@ -19017,9 +19050,9 @@ const _sfc_main$1N = /* @__PURE__ */ defineComponent({
19017
19050
  withDirectives(createElementVNode("button", {
19018
19051
  type: "button",
19019
19052
  class: normalizeClass([unref(ns).e("arrow"), unref(ns).em("arrow", "right")]),
19020
- onMouseenter: _cache[2] || (_cache[2] = ($event) => handleButtonEnter("right")),
19021
- onMouseleave: handleButtonLeave,
19022
- onClick: _cache[3] || (_cache[3] = withModifiers(($event) => unref(throttledArrowClick)(activeIndex.value + 1), ["stop"]))
19053
+ onMouseenter: _cache[3] || (_cache[3] = ($event) => unref(handleButtonEnter)("right")),
19054
+ onMouseleave: _cache[4] || (_cache[4] = (...args) => unref(handleButtonLeave) && unref(handleButtonLeave)(...args)),
19055
+ onClick: _cache[5] || (_cache[5] = withModifiers(($event) => unref(throttledArrowClick)(unref(activeIndex) + 1), ["stop"]))
19023
19056
  }, [
19024
19057
  createVNode(unref(ElIcon), null, {
19025
19058
  default: withCtx(() => [
@@ -19030,7 +19063,7 @@ const _sfc_main$1N = /* @__PURE__ */ defineComponent({
19030
19063
  ], 34), [
19031
19064
  [
19032
19065
  vShow,
19033
- (_ctx.arrow === "always" || hover.value) && (props.loop || activeIndex.value < unref(items).length - 1)
19066
+ (_ctx.arrow === "always" || unref(hover)) && (props.loop || unref(activeIndex) < unref(items).length - 1)
19034
19067
  ]
19035
19068
  ])
19036
19069
  ]),
@@ -19048,20 +19081,20 @@ const _sfc_main$1N = /* @__PURE__ */ defineComponent({
19048
19081
  class: normalizeClass([
19049
19082
  unref(ns).e("indicator"),
19050
19083
  unref(ns).em("indicator", _ctx.direction),
19051
- unref(ns).is("active", index === activeIndex.value)
19084
+ unref(ns).is("active", index === unref(activeIndex))
19052
19085
  ]),
19053
19086
  onMouseenter: ($event) => unref(throttledIndicatorHover)(index),
19054
- onClick: withModifiers(($event) => handleIndicatorClick(index), ["stop"])
19087
+ onClick: withModifiers(($event) => unref(handleIndicatorClick)(index), ["stop"])
19055
19088
  }, [
19056
19089
  createElementVNode("button", {
19057
19090
  class: normalizeClass(unref(ns).e("button"))
19058
19091
  }, [
19059
- unref(hasLabel) ? (openBlock(), createElementBlock("span", _hoisted_3$j, toDisplayString(item.props.label), 1)) : createCommentVNode("v-if", true)
19092
+ unref(hasLabel) ? (openBlock(), createElementBlock("span", _hoisted_2$A, toDisplayString(item.props.label), 1)) : createCommentVNode("v-if", true)
19060
19093
  ], 2)
19061
- ], 42, _hoisted_2$A);
19094
+ ], 42, _hoisted_1$V);
19062
19095
  }), 128))
19063
19096
  ], 2)) : createCommentVNode("v-if", true)
19064
- ], 42, _hoisted_1$V);
19097
+ ], 34);
19065
19098
  };
19066
19099
  }
19067
19100
  });
@@ -19075,7 +19108,113 @@ const carouselItemProps = buildProps({
19075
19108
  }
19076
19109
  });
19077
19110
 
19078
- const CARD_SCALE = 0.83;
19111
+ const useCarouselItem = (props, componentName) => {
19112
+ const carouselContext = inject(carouselContextKey);
19113
+ const instance = getCurrentInstance();
19114
+ const CARD_SCALE = 0.83;
19115
+ const hover = ref(false);
19116
+ const translate = ref(0);
19117
+ const scale = ref(1);
19118
+ const active = ref(false);
19119
+ const ready = ref(false);
19120
+ const inStage = ref(false);
19121
+ const animating = ref(false);
19122
+ const { isCardType, isVertical } = carouselContext;
19123
+ function processIndex(index, activeIndex, length) {
19124
+ const lastItemIndex = length - 1;
19125
+ const prevItemIndex = activeIndex - 1;
19126
+ const nextItemIndex = activeIndex + 1;
19127
+ const halfItemIndex = length / 2;
19128
+ if (activeIndex === 0 && index === lastItemIndex) {
19129
+ return -1;
19130
+ } else if (activeIndex === lastItemIndex && index === 0) {
19131
+ return length;
19132
+ } else if (index < prevItemIndex && activeIndex - index >= halfItemIndex) {
19133
+ return length + 1;
19134
+ } else if (index > nextItemIndex && index - activeIndex >= halfItemIndex) {
19135
+ return -2;
19136
+ }
19137
+ return index;
19138
+ }
19139
+ function calcCardTranslate(index, activeIndex) {
19140
+ var _a;
19141
+ const parentWidth = ((_a = carouselContext.root.value) == null ? void 0 : _a.offsetWidth) || 0;
19142
+ if (inStage.value) {
19143
+ return parentWidth * ((2 - CARD_SCALE) * (index - activeIndex) + 1) / 4;
19144
+ } else if (index < activeIndex) {
19145
+ return -(1 + CARD_SCALE) * parentWidth / 4;
19146
+ } else {
19147
+ return (3 + CARD_SCALE) * parentWidth / 4;
19148
+ }
19149
+ }
19150
+ function calcTranslate(index, activeIndex, isVertical2) {
19151
+ const rootEl = carouselContext.root.value;
19152
+ if (!rootEl)
19153
+ return 0;
19154
+ const distance = (isVertical2 ? rootEl.offsetHeight : rootEl.offsetWidth) || 0;
19155
+ return distance * (index - activeIndex);
19156
+ }
19157
+ const translateItem = (index, activeIndex, oldIndex) => {
19158
+ var _a;
19159
+ const _isCardType = unref(isCardType);
19160
+ const carouselItemLength = (_a = carouselContext.items.value.length) != null ? _a : Number.NaN;
19161
+ const isActive = index === activeIndex;
19162
+ if (!_isCardType && !isUndefined(oldIndex)) {
19163
+ animating.value = isActive || index === oldIndex;
19164
+ }
19165
+ if (!isActive && carouselItemLength > 2 && carouselContext.loop) {
19166
+ index = processIndex(index, activeIndex, carouselItemLength);
19167
+ }
19168
+ const _isVertical = unref(isVertical);
19169
+ active.value = isActive;
19170
+ if (_isCardType) {
19171
+ inStage.value = Math.round(Math.abs(index - activeIndex)) <= 1;
19172
+ translate.value = calcCardTranslate(index, activeIndex);
19173
+ scale.value = unref(active) ? 1 : CARD_SCALE;
19174
+ } else {
19175
+ translate.value = calcTranslate(index, activeIndex, _isVertical);
19176
+ }
19177
+ ready.value = true;
19178
+ };
19179
+ function handleItemClick() {
19180
+ if (carouselContext && unref(isCardType)) {
19181
+ const index = carouselContext.items.value.findIndex(({ uid }) => uid === instance.uid);
19182
+ carouselContext.setActiveItem(index);
19183
+ }
19184
+ }
19185
+ onMounted(() => {
19186
+ carouselContext.addItem({
19187
+ props,
19188
+ states: reactive({
19189
+ hover,
19190
+ translate,
19191
+ scale,
19192
+ active,
19193
+ ready,
19194
+ inStage,
19195
+ animating
19196
+ }),
19197
+ uid: instance.uid,
19198
+ translateItem
19199
+ });
19200
+ });
19201
+ onUnmounted(() => {
19202
+ carouselContext.removeItem(instance.uid);
19203
+ });
19204
+ return {
19205
+ active,
19206
+ animating,
19207
+ hover,
19208
+ inStage,
19209
+ isVertical,
19210
+ translate,
19211
+ isCardType,
19212
+ scale,
19213
+ ready,
19214
+ handleItemClick
19215
+ };
19216
+ };
19217
+
19079
19218
  const __default__$17 = defineComponent({
19080
19219
  name: "ElCarouselItem"
19081
19220
  });
@@ -19085,16 +19224,18 @@ const _sfc_main$1M = /* @__PURE__ */ defineComponent({
19085
19224
  setup(__props) {
19086
19225
  const props = __props;
19087
19226
  const ns = useNamespace("carousel");
19088
- const carouselContext = inject(carouselContextKey);
19089
- const instance = getCurrentInstance();
19090
- const hover = ref(false);
19091
- const translate = ref(0);
19092
- const scale = ref(1);
19093
- const active = ref(false);
19094
- const ready = ref(false);
19095
- const inStage = ref(false);
19096
- const animating = ref(false);
19097
- const { isCardType, isVertical } = carouselContext;
19227
+ const {
19228
+ active,
19229
+ animating,
19230
+ hover,
19231
+ inStage,
19232
+ isVertical,
19233
+ translate,
19234
+ isCardType,
19235
+ scale,
19236
+ ready,
19237
+ handleItemClick
19238
+ } = useCarouselItem(props);
19098
19239
  const itemStyle = computed$1(() => {
19099
19240
  const translateType = `translate${unref(isVertical) ? "Y" : "X"}`;
19100
19241
  const _translate = `${translateType}(${unref(translate)}px)`;
@@ -19104,109 +19245,28 @@ const _sfc_main$1M = /* @__PURE__ */ defineComponent({
19104
19245
  transform
19105
19246
  };
19106
19247
  });
19107
- function processIndex(index, activeIndex, length) {
19108
- const lastItemIndex = length - 1;
19109
- const prevItemIndex = activeIndex - 1;
19110
- const nextItemIndex = activeIndex + 1;
19111
- const halfItemIndex = length / 2;
19112
- if (activeIndex === 0 && index === lastItemIndex) {
19113
- return -1;
19114
- } else if (activeIndex === lastItemIndex && index === 0) {
19115
- return length;
19116
- } else if (index < prevItemIndex && activeIndex - index >= halfItemIndex) {
19117
- return length + 1;
19118
- } else if (index > nextItemIndex && index - activeIndex >= halfItemIndex) {
19119
- return -2;
19120
- }
19121
- return index;
19122
- }
19123
- function calcCardTranslate(index, activeIndex) {
19124
- var _a;
19125
- const parentWidth = ((_a = carouselContext.root.value) == null ? void 0 : _a.offsetWidth) || 0;
19126
- if (inStage.value) {
19127
- return parentWidth * ((2 - CARD_SCALE) * (index - activeIndex) + 1) / 4;
19128
- } else if (index < activeIndex) {
19129
- return -(1 + CARD_SCALE) * parentWidth / 4;
19130
- } else {
19131
- return (3 + CARD_SCALE) * parentWidth / 4;
19132
- }
19133
- }
19134
- function calcTranslate(index, activeIndex, isVertical2) {
19135
- const rootEl = carouselContext.root.value;
19136
- if (!rootEl)
19137
- return 0;
19138
- const distance = (isVertical2 ? rootEl.offsetHeight : rootEl.offsetWidth) || 0;
19139
- return distance * (index - activeIndex);
19140
- }
19141
- const translateItem = (index, activeIndex, oldIndex) => {
19142
- var _a;
19143
- const _isCardType = unref(isCardType);
19144
- const carouselItemLength = (_a = carouselContext.items.value.length) != null ? _a : Number.NaN;
19145
- const isActive = index === activeIndex;
19146
- if (!_isCardType && !isUndefined(oldIndex)) {
19147
- animating.value = isActive || index === oldIndex;
19148
- }
19149
- if (!isActive && carouselItemLength > 2 && carouselContext.loop) {
19150
- index = processIndex(index, activeIndex, carouselItemLength);
19151
- }
19152
- const _isVertical = unref(isVertical);
19153
- active.value = isActive;
19154
- if (_isCardType) {
19155
- inStage.value = Math.round(Math.abs(index - activeIndex)) <= 1;
19156
- translate.value = calcCardTranslate(index, activeIndex);
19157
- scale.value = unref(active) ? 1 : CARD_SCALE;
19158
- } else {
19159
- translate.value = calcTranslate(index, activeIndex, _isVertical);
19160
- }
19161
- ready.value = true;
19162
- };
19163
- function handleItemClick() {
19164
- if (carouselContext && unref(isCardType)) {
19165
- const index = carouselContext.items.value.findIndex(({ uid }) => uid === instance.uid);
19166
- carouselContext.setActiveItem(index);
19167
- }
19168
- }
19169
- onMounted(() => {
19170
- carouselContext.addItem({
19171
- props,
19172
- states: reactive({
19173
- hover,
19174
- translate,
19175
- scale,
19176
- active,
19177
- ready,
19178
- inStage,
19179
- animating
19180
- }),
19181
- uid: instance.uid,
19182
- translateItem
19183
- });
19184
- });
19185
- onUnmounted(() => {
19186
- carouselContext.removeItem(instance.uid);
19187
- });
19188
19248
  return (_ctx, _cache) => {
19189
19249
  return withDirectives((openBlock(), createElementBlock("div", {
19190
19250
  class: normalizeClass([
19191
19251
  unref(ns).e("item"),
19192
- unref(ns).is("active", active.value),
19193
- unref(ns).is("in-stage", inStage.value),
19194
- unref(ns).is("hover", hover.value),
19195
- unref(ns).is("animating", animating.value),
19252
+ unref(ns).is("active", unref(active)),
19253
+ unref(ns).is("in-stage", unref(inStage)),
19254
+ unref(ns).is("hover", unref(hover)),
19255
+ unref(ns).is("animating", unref(animating)),
19196
19256
  { [unref(ns).em("item", "card")]: unref(isCardType) }
19197
19257
  ]),
19198
19258
  style: normalizeStyle(unref(itemStyle)),
19199
- onClick: handleItemClick
19259
+ onClick: _cache[0] || (_cache[0] = (...args) => unref(handleItemClick) && unref(handleItemClick)(...args))
19200
19260
  }, [
19201
19261
  unref(isCardType) ? withDirectives((openBlock(), createElementBlock("div", {
19202
19262
  key: 0,
19203
19263
  class: normalizeClass(unref(ns).e("mask"))
19204
19264
  }, null, 2)), [
19205
- [vShow, !active.value]
19265
+ [vShow, !unref(active)]
19206
19266
  ]) : createCommentVNode("v-if", true),
19207
19267
  renderSlot(_ctx.$slots, "default")
19208
19268
  ], 6)), [
19209
- [vShow, ready.value]
19269
+ [vShow, unref(ready)]
19210
19270
  ]);
19211
19271
  };
19212
19272
  }
@@ -20996,12 +21056,6 @@ var Tag = /* @__PURE__ */ _export_sfc(_sfc_main$1C, [["__file", "tag.vue"]]);
20996
21056
 
20997
21057
  const ElTag = withInstall(Tag);
20998
21058
 
20999
- const DEFAULT_INPUT_HEIGHT = 40;
21000
- const INPUT_HEIGHT_MAP = {
21001
- large: 36,
21002
- default: 32,
21003
- small: 28
21004
- };
21005
21059
  const popperOptions = {
21006
21060
  modifiers: [
21007
21061
  {
@@ -21115,6 +21169,7 @@ const _sfc_main$1B = defineComponent({
21115
21169
  const isOnComposition = ref(false);
21116
21170
  const isDisabled = computed$1(() => props.disabled || (form == null ? void 0 : form.disabled));
21117
21171
  const inputPlaceholder = computed$1(() => props.placeholder || t("el.cascader.placeholder"));
21172
+ const currentPlaceholder = computed$1(() => searchInputValue.value || presentTags.value.length > 0 ? "" : inputPlaceholder.value);
21118
21173
  const realSize = useSize();
21119
21174
  const tagSize = computed$1(() => ["small"].includes(realSize.value) ? "small" : "default");
21120
21175
  const multiple = computed$1(() => !!props.props.multiple);
@@ -21132,7 +21187,7 @@ const _sfc_main$1B = defineComponent({
21132
21187
  const presentText = computed$1(() => {
21133
21188
  const { showAllLevels, separator } = props;
21134
21189
  const nodes = checkedNodes.value;
21135
- return nodes.length ? multiple.value ? " " : nodes[0].calcText(showAllLevels, separator) : "";
21190
+ return nodes.length ? multiple.value ? "" : nodes[0].calcText(showAllLevels, separator) : "";
21136
21191
  });
21137
21192
  const checkedValue = computed$1({
21138
21193
  get() {
@@ -21393,10 +21448,9 @@ const _sfc_main$1B = defineComponent({
21393
21448
  });
21394
21449
  watch(presentText, syncPresentTextValue, { immediate: true });
21395
21450
  onMounted(() => {
21396
- var _a;
21397
- const inputEl = (_a = input.value) == null ? void 0 : _a.$el;
21398
- inputInitialHeight = (inputEl == null ? void 0 : inputEl.offsetHeight) || INPUT_HEIGHT_MAP[realSize.value] || DEFAULT_INPUT_HEIGHT;
21399
- useResizeObserver(inputEl, updateStyle);
21451
+ const inputInner = input.value.input;
21452
+ inputInitialHeight = inputInner.offsetHeight;
21453
+ useResizeObserver(inputInner, updateStyle);
21400
21454
  });
21401
21455
  return {
21402
21456
  popperOptions,
@@ -21409,6 +21463,7 @@ const _sfc_main$1B = defineComponent({
21409
21463
  popperVisible,
21410
21464
  inputHover,
21411
21465
  inputPlaceholder,
21466
+ currentPlaceholder,
21412
21467
  filtering,
21413
21468
  presentText,
21414
21469
  checkedValue,
@@ -21498,7 +21553,7 @@ function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
21498
21553
  ref: "input",
21499
21554
  modelValue: _ctx.inputValue,
21500
21555
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.inputValue = $event),
21501
- placeholder: _ctx.searchInputValue ? "" : _ctx.inputPlaceholder,
21556
+ placeholder: _ctx.currentPlaceholder,
21502
21557
  readonly: _ctx.readonly,
21503
21558
  disabled: _ctx.isDisabled,
21504
21559
  "validate-event": false,
@@ -21839,6 +21894,46 @@ const collapseEmits = {
21839
21894
  [CHANGE_EVENT]: emitChangeFn
21840
21895
  };
21841
21896
 
21897
+ const useCollapse = (props, emit) => {
21898
+ const activeNames = ref(castArray$1(props.modelValue));
21899
+ const setActiveNames = (_activeNames) => {
21900
+ activeNames.value = _activeNames;
21901
+ const value = props.accordion ? activeNames.value[0] : activeNames.value;
21902
+ emit(UPDATE_MODEL_EVENT, value);
21903
+ emit(CHANGE_EVENT, value);
21904
+ };
21905
+ const handleItemClick = (name) => {
21906
+ if (props.accordion) {
21907
+ setActiveNames([activeNames.value[0] === name ? "" : name]);
21908
+ } else {
21909
+ const _activeNames = [...activeNames.value];
21910
+ const index = _activeNames.indexOf(name);
21911
+ if (index > -1) {
21912
+ _activeNames.splice(index, 1);
21913
+ } else {
21914
+ _activeNames.push(name);
21915
+ }
21916
+ setActiveNames(_activeNames);
21917
+ }
21918
+ };
21919
+ watch(() => props.modelValue, () => activeNames.value = castArray$1(props.modelValue), { deep: true });
21920
+ provide(collapseContextKey, {
21921
+ activeNames,
21922
+ handleItemClick
21923
+ });
21924
+ return {
21925
+ activeNames,
21926
+ setActiveNames
21927
+ };
21928
+ };
21929
+ const useCollapseDOM = () => {
21930
+ const ns = useNamespace("collapse");
21931
+ const rootKls = computed$1(() => ns.b());
21932
+ return {
21933
+ rootKls
21934
+ };
21935
+ };
21936
+
21842
21937
  const __default__$Z = defineComponent({
21843
21938
  name: "ElCollapse"
21844
21939
  });
@@ -21848,42 +21943,15 @@ const _sfc_main$1y = /* @__PURE__ */ defineComponent({
21848
21943
  emits: collapseEmits,
21849
21944
  setup(__props, { expose, emit }) {
21850
21945
  const props = __props;
21851
- const ns = useNamespace("collapse");
21852
- const activeNames = ref(castArray$1(props.modelValue));
21853
- const setActiveNames = (_activeNames) => {
21854
- activeNames.value = _activeNames;
21855
- const value = props.accordion ? activeNames.value[0] : activeNames.value;
21856
- emit(UPDATE_MODEL_EVENT, value);
21857
- emit(CHANGE_EVENT, value);
21858
- };
21859
- const handleItemClick = (name) => {
21860
- if (props.accordion) {
21861
- setActiveNames([
21862
- (activeNames.value[0] || activeNames.value[0] === 0) && activeNames.value[0] === name ? "" : name
21863
- ]);
21864
- } else {
21865
- const _activeNames = [...activeNames.value];
21866
- const index = _activeNames.indexOf(name);
21867
- if (index > -1) {
21868
- _activeNames.splice(index, 1);
21869
- } else {
21870
- _activeNames.push(name);
21871
- }
21872
- setActiveNames(_activeNames);
21873
- }
21874
- };
21875
- watch(() => props.modelValue, () => activeNames.value = castArray$1(props.modelValue), { deep: true });
21876
- provide(collapseContextKey, {
21877
- activeNames,
21878
- handleItemClick
21879
- });
21946
+ const { activeNames, setActiveNames } = useCollapse(props, emit);
21947
+ const { rootKls } = useCollapseDOM();
21880
21948
  expose({
21881
21949
  activeNames,
21882
21950
  setActiveNames
21883
21951
  });
21884
21952
  return (_ctx, _cache) => {
21885
21953
  return openBlock(), createElementBlock("div", {
21886
- class: normalizeClass(unref(ns).b()),
21954
+ class: normalizeClass(unref(rootKls)),
21887
21955
  role: "tablist",
21888
21956
  "aria-multiselectable": "true"
21889
21957
  }, [
@@ -21983,8 +22051,73 @@ const collapseItemProps = buildProps({
21983
22051
  disabled: Boolean
21984
22052
  });
21985
22053
 
22054
+ const useCollapseItem = (props) => {
22055
+ const collapse = inject(collapseContextKey);
22056
+ const focusing = ref(false);
22057
+ const isClick = ref(false);
22058
+ const id = ref(generateId());
22059
+ const isActive = computed$1(() => collapse == null ? void 0 : collapse.activeNames.value.includes(props.name));
22060
+ const handleFocus = () => {
22061
+ setTimeout(() => {
22062
+ if (!isClick.value) {
22063
+ focusing.value = true;
22064
+ } else {
22065
+ isClick.value = false;
22066
+ }
22067
+ }, 50);
22068
+ };
22069
+ const handleHeaderClick = () => {
22070
+ if (props.disabled)
22071
+ return;
22072
+ collapse == null ? void 0 : collapse.handleItemClick(props.name);
22073
+ focusing.value = false;
22074
+ isClick.value = true;
22075
+ };
22076
+ const handleEnterClick = () => {
22077
+ collapse == null ? void 0 : collapse.handleItemClick(props.name);
22078
+ };
22079
+ return {
22080
+ focusing,
22081
+ id,
22082
+ isActive,
22083
+ handleFocus,
22084
+ handleHeaderClick,
22085
+ handleEnterClick
22086
+ };
22087
+ };
22088
+ const useCollapseItemDOM = (props, { focusing, isActive, id }) => {
22089
+ const ns = useNamespace("collapse");
22090
+ const rootKls = computed$1(() => [
22091
+ ns.b("item"),
22092
+ ns.is("active", unref(isActive)),
22093
+ ns.is("disabled", props.disabled)
22094
+ ]);
22095
+ const headKls = computed$1(() => [
22096
+ ns.be("item", "header"),
22097
+ ns.is("active", unref(isActive)),
22098
+ { focusing: unref(focusing) && !props.disabled }
22099
+ ]);
22100
+ const arrowKls = computed$1(() => [
22101
+ ns.be("item", "arrow"),
22102
+ ns.is("active", unref(isActive))
22103
+ ]);
22104
+ const itemWrapperKls = computed$1(() => ns.be("item", "wrap"));
22105
+ const itemContentKls = computed$1(() => ns.be("item", "content"));
22106
+ const scopedContentId = computed$1(() => ns.b(`content-${unref(id)}`));
22107
+ const scopedHeadId = computed$1(() => ns.b(`head-${unref(id)}`));
22108
+ return {
22109
+ arrowKls,
22110
+ headKls,
22111
+ rootKls,
22112
+ itemWrapperKls,
22113
+ itemContentKls,
22114
+ scopedContentId,
22115
+ scopedHeadId
22116
+ };
22117
+ };
22118
+
21986
22119
  const _hoisted_1$N = ["aria-expanded", "aria-controls", "aria-describedby"];
21987
- const _hoisted_2$v = ["id", "tabindex", "onKeypress"];
22120
+ const _hoisted_2$v = ["id", "tabindex"];
21988
22121
  const _hoisted_3$g = ["id", "aria-hidden", "aria-labelledby"];
21989
22122
  const __default__$X = defineComponent({
21990
22123
  name: "ElCollapseItem"
@@ -21994,67 +22127,51 @@ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
21994
22127
  props: collapseItemProps,
21995
22128
  setup(__props, { expose }) {
21996
22129
  const props = __props;
21997
- const collapse = inject(collapseContextKey);
21998
- const ns = useNamespace("collapse");
21999
- const focusing = ref(false);
22000
- const isClick = ref(false);
22001
- const id = ref(generateId());
22002
- const isActive = computed$1(() => collapse == null ? void 0 : collapse.activeNames.value.includes(props.name));
22003
- const handleFocus = () => {
22004
- setTimeout(() => {
22005
- if (!isClick.value) {
22006
- focusing.value = true;
22007
- } else {
22008
- isClick.value = false;
22009
- }
22010
- }, 50);
22011
- };
22012
- const handleHeaderClick = () => {
22013
- if (props.disabled)
22014
- return;
22015
- collapse == null ? void 0 : collapse.handleItemClick(props.name);
22016
- focusing.value = false;
22017
- isClick.value = true;
22018
- };
22019
- const handleEnterClick = () => {
22020
- collapse == null ? void 0 : collapse.handleItemClick(props.name);
22021
- };
22130
+ const {
22131
+ focusing,
22132
+ id,
22133
+ isActive,
22134
+ handleFocus,
22135
+ handleHeaderClick,
22136
+ handleEnterClick
22137
+ } = useCollapseItem(props);
22138
+ const {
22139
+ arrowKls,
22140
+ headKls,
22141
+ rootKls,
22142
+ itemWrapperKls,
22143
+ itemContentKls,
22144
+ scopedContentId,
22145
+ scopedHeadId
22146
+ } = useCollapseItemDOM(props, { focusing, isActive, id });
22022
22147
  expose({
22023
22148
  isActive
22024
22149
  });
22025
22150
  return (_ctx, _cache) => {
22026
22151
  return openBlock(), createElementBlock("div", {
22027
- class: normalizeClass([
22028
- unref(ns).b("item"),
22029
- unref(ns).is("active", unref(isActive)),
22030
- unref(ns).is("disabled", _ctx.disabled)
22031
- ])
22152
+ class: normalizeClass(unref(rootKls))
22032
22153
  }, [
22033
22154
  createElementVNode("div", {
22034
22155
  role: "tab",
22035
22156
  "aria-expanded": unref(isActive),
22036
- "aria-controls": unref(ns).b(`content-${id.value}`),
22037
- "aria-describedby": unref(ns).b(`content-${id.value}`)
22157
+ "aria-controls": unref(scopedContentId),
22158
+ "aria-describedby": unref(scopedContentId)
22038
22159
  }, [
22039
22160
  createElementVNode("div", {
22040
- id: unref(ns).b(`head-${id.value}`),
22041
- class: normalizeClass([
22042
- unref(ns).be("item", "header"),
22043
- unref(ns).is("active", unref(isActive)),
22044
- { focusing: focusing.value && !_ctx.disabled }
22045
- ]),
22161
+ id: unref(scopedHeadId),
22162
+ class: normalizeClass(unref(headKls)),
22046
22163
  role: "button",
22047
22164
  tabindex: _ctx.disabled ? -1 : 0,
22048
- onClick: handleHeaderClick,
22049
- onKeypress: withKeys(withModifiers(handleEnterClick, ["stop", "prevent"]), ["space", "enter"]),
22050
- onFocus: handleFocus,
22051
- onBlur: _cache[0] || (_cache[0] = ($event) => focusing.value = false)
22165
+ onClick: _cache[0] || (_cache[0] = (...args) => unref(handleHeaderClick) && unref(handleHeaderClick)(...args)),
22166
+ onKeypress: _cache[1] || (_cache[1] = withKeys(withModifiers((...args) => unref(handleEnterClick) && unref(handleEnterClick)(...args), ["stop", "prevent"]), ["space", "enter"])),
22167
+ onFocus: _cache[2] || (_cache[2] = (...args) => unref(handleFocus) && unref(handleFocus)(...args)),
22168
+ onBlur: _cache[3] || (_cache[3] = ($event) => focusing.value = false)
22052
22169
  }, [
22053
22170
  renderSlot(_ctx.$slots, "title", {}, () => [
22054
22171
  createTextVNode(toDisplayString(_ctx.title), 1)
22055
22172
  ]),
22056
22173
  createVNode(unref(ElIcon), {
22057
- class: normalizeClass([unref(ns).be("item", "arrow"), unref(ns).is("active", unref(isActive))])
22174
+ class: normalizeClass(unref(arrowKls))
22058
22175
  }, {
22059
22176
  default: withCtx(() => [
22060
22177
  createVNode(unref(arrow_right_default))
@@ -22066,14 +22183,14 @@ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
22066
22183
  createVNode(unref(_CollapseTransition), null, {
22067
22184
  default: withCtx(() => [
22068
22185
  withDirectives(createElementVNode("div", {
22069
- id: unref(ns).b(`content-${id.value}`),
22070
- class: normalizeClass(unref(ns).be("item", "wrap")),
22186
+ id: unref(scopedContentId),
22187
+ class: normalizeClass(unref(itemWrapperKls)),
22071
22188
  role: "tabpanel",
22072
22189
  "aria-hidden": !unref(isActive),
22073
- "aria-labelledby": unref(ns).b(`head-${id.value}`)
22190
+ "aria-labelledby": unref(scopedHeadId)
22074
22191
  }, [
22075
22192
  createElementVNode("div", {
22076
- class: normalizeClass(unref(ns).be("item", "content"))
22193
+ class: normalizeClass(unref(itemContentKls))
22077
22194
  }, [
22078
22195
  renderSlot(_ctx.$slots, "default")
22079
22196
  ], 2)
@@ -25752,12 +25869,12 @@ const useMonthRangeHeader = ({
25752
25869
  const { t } = useLocale();
25753
25870
  const leftPrevYear = () => {
25754
25871
  leftDate.value = leftDate.value.subtract(1, "year");
25755
- if (!unlinkPanels) {
25872
+ if (!unlinkPanels.value) {
25756
25873
  rightDate.value = rightDate.value.subtract(1, "year");
25757
25874
  }
25758
25875
  };
25759
25876
  const rightNextYear = () => {
25760
- if (!unlinkPanels) {
25877
+ if (!unlinkPanels.value) {
25761
25878
  leftDate.value = leftDate.value.add(1, "year");
25762
25879
  }
25763
25880
  rightDate.value = rightDate.value.add(1, "year");
@@ -27631,7 +27748,8 @@ const dropdownProps = buildProps({
27631
27748
  },
27632
27749
  buttonProps: {
27633
27750
  type: definePropType(Object)
27634
- }
27751
+ },
27752
+ teleported: useTooltipContentProps.teleported
27635
27753
  });
27636
27754
  const dropdownItemProps = buildProps({
27637
27755
  command: {
@@ -27829,7 +27947,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
27829
27947
  "virtual-triggering": _ctx.splitButton,
27830
27948
  disabled: _ctx.disabled,
27831
27949
  transition: `${_ctx.ns.namespace.value}-zoom-in-top`,
27832
- teleported: "",
27950
+ teleported: _ctx.teleported,
27833
27951
  pure: "",
27834
27952
  persistent: "",
27835
27953
  onBeforeShow: _ctx.handleBeforeShowTooltip,
@@ -27882,7 +28000,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
27882
28000
  }, 8, ["id", "tabindex"])
27883
28001
  ])
27884
28002
  } : void 0
27885
- ]), 1032, ["role", "effect", "popper-options", "hide-after", "placement", "popper-class", "reference-element", "trigger", "trigger-keys", "trigger-target-el", "show-after", "virtual-ref", "virtual-triggering", "disabled", "transition", "onBeforeShow", "onShow", "onBeforeHide"]),
28003
+ ]), 1032, ["role", "effect", "popper-options", "hide-after", "placement", "popper-class", "reference-element", "trigger", "trigger-keys", "trigger-target-el", "show-after", "virtual-ref", "virtual-triggering", "disabled", "transition", "teleported", "onBeforeShow", "onShow", "onBeforeHide"]),
27886
28004
  _ctx.splitButton ? (openBlock(), createBlock(_component_el_button_group, { key: 0 }, {
27887
28005
  default: withCtx(() => [
27888
28006
  createVNode(_component_el_button, mergeProps({ ref: "referenceElementRef" }, _ctx.buttonProps, {
@@ -28621,6 +28739,8 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
28621
28739
  }
28622
28740
  return result;
28623
28741
  } catch (e) {
28742
+ if (e instanceof Error)
28743
+ throw e;
28624
28744
  const invalidFields = e;
28625
28745
  if (props.scrollToError) {
28626
28746
  scrollToField(Object.keys(invalidFields)[0]);
@@ -30990,7 +31110,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
30990
31110
  const increase = () => {
30991
31111
  if (props.readonly || inputNumberDisabled.value || maxDisabled.value)
30992
31112
  return;
30993
- const value = props.modelValue || 0;
31113
+ const value = Number(displayValue.value) || 0;
30994
31114
  const newVal = ensurePrecision(value);
30995
31115
  setCurrentValue(newVal);
30996
31116
  emit(INPUT_EVENT, data.currentValue);
@@ -30998,7 +31118,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
30998
31118
  const decrease = () => {
30999
31119
  if (props.readonly || inputNumberDisabled.value || minDisabled.value)
31000
31120
  return;
31001
- const value = props.modelValue || 0;
31121
+ const value = Number(displayValue.value) || 0;
31002
31122
  const newVal = ensurePrecision(value, -1);
31003
31123
  setCurrentValue(newVal);
31004
31124
  emit(INPUT_EVENT, data.currentValue);
@@ -32754,10 +32874,10 @@ const useSelect$3 = (props, states, ctx) => {
32754
32874
  if (!val) {
32755
32875
  if (props.filterable) {
32756
32876
  if (isFunction(props.filterMethod)) {
32757
- props.filterMethod();
32877
+ props.filterMethod("");
32758
32878
  }
32759
32879
  if (isFunction(props.remoteMethod)) {
32760
- props.remoteMethod();
32880
+ props.remoteMethod("");
32761
32881
  }
32762
32882
  }
32763
32883
  input.value && input.value.blur();
@@ -32828,7 +32948,7 @@ const useSelect$3 = (props, states, ctx) => {
32828
32948
  flush: "post"
32829
32949
  });
32830
32950
  watch(() => states.hoverIndex, (val) => {
32831
- if (typeof val === "number" && val > -1) {
32951
+ if (isNumber(val) && val > -1) {
32832
32952
  hoverOption.value = optionsArray.value[val] || {};
32833
32953
  } else {
32834
32954
  hoverOption.value = {};
@@ -32857,7 +32977,7 @@ const useSelect$3 = (props, states, ctx) => {
32857
32977
  const handleQueryChange = async (val) => {
32858
32978
  if (states.previousQuery === val || states.isOnComposition)
32859
32979
  return;
32860
- if (states.previousQuery === null && (typeof props.filterMethod === "function" || typeof props.remoteMethod === "function")) {
32980
+ if (states.previousQuery === null && (isFunction(props.filterMethod) || isFunction(props.remoteMethod))) {
32861
32981
  states.previousQuery = val;
32862
32982
  return;
32863
32983
  }
@@ -32876,10 +32996,10 @@ const useSelect$3 = (props, states, ctx) => {
32876
32996
  resetInputHeight();
32877
32997
  });
32878
32998
  }
32879
- if (props.remote && typeof props.remoteMethod === "function") {
32999
+ if (props.remote && isFunction(props.remoteMethod)) {
32880
33000
  states.hoverIndex = -1;
32881
33001
  props.remoteMethod(val);
32882
- } else if (typeof props.filterMethod === "function") {
33002
+ } else if (isFunction(props.filterMethod)) {
32883
33003
  props.filterMethod(val);
32884
33004
  triggerRef(groupQueryChange);
32885
33005
  } else {
@@ -33035,7 +33155,7 @@ const useSelect$3 = (props, states, ctx) => {
33035
33155
  const deleteSelected = (event) => {
33036
33156
  event.stopPropagation();
33037
33157
  const value = props.multiple ? [] : "";
33038
- if (typeof value !== "string") {
33158
+ if (!isString(value)) {
33039
33159
  for (const item of states.selected) {
33040
33160
  if (item.isDisabled)
33041
33161
  value.push(item.value);
@@ -38138,7 +38258,7 @@ const useSelect$1 = (props, emit) => {
38138
38258
  selectWidth: 200,
38139
38259
  initialInputHeight: 0,
38140
38260
  previousQuery: null,
38141
- previousValue: "",
38261
+ previousValue: void 0,
38142
38262
  query: "",
38143
38263
  selectedLabel: "",
38144
38264
  softFocus: false,
@@ -38327,7 +38447,7 @@ const useSelect$1 = (props, emit) => {
38327
38447
  const update = (val) => {
38328
38448
  emit(UPDATE_MODEL_EVENT, val);
38329
38449
  emitChange(val);
38330
- states.previousValue = val.toString();
38450
+ states.previousValue = val == null ? void 0 : val.toString();
38331
38451
  };
38332
38452
  const getValueIndex = (arr = [], value) => {
38333
38453
  if (!isObject$1(value)) {
@@ -38493,7 +38613,7 @@ const useSelect$1 = (props, emit) => {
38493
38613
  if (isArray(props.modelValue)) {
38494
38614
  emptyValue = [];
38495
38615
  } else {
38496
- emptyValue = "";
38616
+ emptyValue = void 0;
38497
38617
  }
38498
38618
  states.softFocus = true;
38499
38619
  if (props.multiple) {
@@ -38613,7 +38733,7 @@ const useSelect$1 = (props, emit) => {
38613
38733
  });
38614
38734
  } else {
38615
38735
  states.cachedOptions = [];
38616
- states.previousValue = "";
38736
+ states.previousValue = void 0;
38617
38737
  }
38618
38738
  } else {
38619
38739
  if (hasModelValue.value) {
@@ -38628,7 +38748,7 @@ const useSelect$1 = (props, emit) => {
38628
38748
  }
38629
38749
  } else {
38630
38750
  states.selectedLabel = "";
38631
- states.previousValue = "";
38751
+ states.previousValue = void 0;
38632
38752
  }
38633
38753
  }
38634
38754
  clearAllNewOption();
@@ -41171,26 +41291,27 @@ function toggleRowStatus(statusArr, row, newVal) {
41171
41291
  let changed = false;
41172
41292
  const index = statusArr.indexOf(row);
41173
41293
  const included = index !== -1;
41174
- const addRow = () => {
41175
- statusArr.push(row);
41176
- changed = true;
41177
- };
41178
- const removeRow = () => {
41179
- statusArr.splice(index, 1);
41294
+ const toggleStatus = (type) => {
41295
+ if (type === "add") {
41296
+ statusArr.push(row);
41297
+ } else {
41298
+ statusArr.splice(index, 1);
41299
+ }
41180
41300
  changed = true;
41301
+ if (isArray(row.children)) {
41302
+ row.children.forEach((item) => {
41303
+ toggleRowStatus(statusArr, item, newVal != null ? newVal : !included);
41304
+ });
41305
+ }
41181
41306
  };
41182
- if (typeof newVal === "boolean") {
41307
+ if (isBoolean(newVal)) {
41183
41308
  if (newVal && !included) {
41184
- addRow();
41309
+ toggleStatus("add");
41185
41310
  } else if (!newVal && included) {
41186
- removeRow();
41311
+ toggleStatus("remove");
41187
41312
  }
41188
41313
  } else {
41189
- if (included) {
41190
- removeRow();
41191
- } else {
41192
- addRow();
41193
- }
41314
+ included ? toggleStatus("remove") : toggleStatus("add");
41194
41315
  }
41195
41316
  return changed;
41196
41317
  }
@@ -41283,22 +41404,29 @@ function createTablePopper(parentNode, trigger, popperContent, popperOptions, to
41283
41404
  scrollContainer == null ? void 0 : scrollContainer.addEventListener("scroll", removePopper);
41284
41405
  return popperInstance;
41285
41406
  }
41407
+ function getCurrentColumns(column) {
41408
+ if (column.children) {
41409
+ return flatMap(column.children, getCurrentColumns);
41410
+ } else {
41411
+ return [column];
41412
+ }
41413
+ }
41414
+ function getColSpan(colSpan, column) {
41415
+ return colSpan + column.colSpan;
41416
+ }
41286
41417
  const isFixedColumn = (index, fixed, store, realColumns) => {
41287
41418
  let start = 0;
41288
41419
  let after = index;
41420
+ const columns = store.states.columns.value;
41289
41421
  if (realColumns) {
41290
- if (realColumns[index].colSpan > 1) {
41291
- return {};
41292
- }
41293
- for (let i = 0; i < index; i++) {
41294
- start += realColumns[i].colSpan;
41295
- }
41296
- after = start + realColumns[index].colSpan - 1;
41422
+ const curColumns = getCurrentColumns(realColumns[index]);
41423
+ const preColumns = columns.slice(0, columns.indexOf(curColumns[0]));
41424
+ start = preColumns.reduce(getColSpan, 0);
41425
+ after = start + curColumns.reduce(getColSpan, 0) - 1;
41297
41426
  } else {
41298
41427
  start = index;
41299
41428
  }
41300
41429
  let fixedLayout;
41301
- const columns = store.states.columns;
41302
41430
  switch (fixed) {
41303
41431
  case "left":
41304
41432
  if (after < store.states.fixedLeafColumnsLength.value) {
@@ -41306,14 +41434,14 @@ const isFixedColumn = (index, fixed, store, realColumns) => {
41306
41434
  }
41307
41435
  break;
41308
41436
  case "right":
41309
- if (start >= columns.value.length - store.states.rightFixedLeafColumnsLength.value) {
41437
+ if (start >= columns.length - store.states.rightFixedLeafColumnsLength.value) {
41310
41438
  fixedLayout = "right";
41311
41439
  }
41312
41440
  break;
41313
41441
  default:
41314
41442
  if (after < store.states.fixedLeafColumnsLength.value) {
41315
41443
  fixedLayout = "left";
41316
- } else if (start >= columns.value.length - store.states.rightFixedLeafColumnsLength.value) {
41444
+ } else if (start >= columns.length - store.states.rightFixedLeafColumnsLength.value) {
41317
41445
  fixedLayout = "right";
41318
41446
  }
41319
41447
  }
@@ -41325,11 +41453,11 @@ const isFixedColumn = (index, fixed, store, realColumns) => {
41325
41453
  };
41326
41454
  const getFixedColumnsClass = (namespace, index, fixed, store, realColumns, offset = 0) => {
41327
41455
  const classes = [];
41328
- const { direction, start } = isFixedColumn(index, fixed, store, realColumns);
41456
+ const { direction, start, after } = isFixedColumn(index, fixed, store, realColumns);
41329
41457
  if (direction) {
41330
41458
  const isLeft = direction === "left";
41331
41459
  classes.push(`${namespace}-fixed-column--${direction}`);
41332
- if (isLeft && start + offset === store.states.fixedLeafColumnsLength.value - 1) {
41460
+ if (isLeft && after + offset === store.states.fixedLeafColumnsLength.value - 1) {
41333
41461
  classes.push("is-last-column");
41334
41462
  } else if (!isLeft && start - offset === store.states.columns.value.length - store.states.rightFixedLeafColumnsLength.value) {
41335
41463
  classes.push("is-first-column");
@@ -41341,7 +41469,11 @@ function getOffset(offset, column) {
41341
41469
  return offset + (column.realWidth === null || Number.isNaN(column.realWidth) ? Number(column.width) : column.realWidth);
41342
41470
  }
41343
41471
  const getFixedColumnOffset = (index, fixed, store, realColumns) => {
41344
- const { direction, start = 0 } = isFixedColumn(index, fixed, store, realColumns);
41472
+ const {
41473
+ direction,
41474
+ start = 0,
41475
+ after = 0
41476
+ } = isFixedColumn(index, fixed, store, realColumns);
41345
41477
  if (!direction) {
41346
41478
  return;
41347
41479
  }
@@ -41349,9 +41481,9 @@ const getFixedColumnOffset = (index, fixed, store, realColumns) => {
41349
41481
  const isLeft = direction === "left";
41350
41482
  const columns = store.states.columns.value;
41351
41483
  if (isLeft) {
41352
- styles.left = columns.slice(0, index).reduce(getOffset, 0);
41484
+ styles.left = columns.slice(0, start).reduce(getOffset, 0);
41353
41485
  } else {
41354
- styles.right = columns.slice(start + 1).reverse().reduce(getOffset, 0);
41486
+ styles.right = columns.slice(after + 1).reverse().reduce(getOffset, 0);
41355
41487
  }
41356
41488
  return styles;
41357
41489
  };
@@ -41737,7 +41869,17 @@ function useWatcher$1() {
41737
41869
  if (!rowKey.value)
41738
41870
  throw new Error("[ElTable] prop row-key is required");
41739
41871
  };
41872
+ const updateChildFixed = (column) => {
41873
+ var _a2;
41874
+ (_a2 = column.children) == null ? void 0 : _a2.forEach((childColumn) => {
41875
+ childColumn.fixed = column.fixed;
41876
+ updateChildFixed(childColumn);
41877
+ });
41878
+ };
41740
41879
  const updateColumns = () => {
41880
+ _columns.value.forEach((column) => {
41881
+ updateChildFixed(column);
41882
+ });
41741
41883
  fixedColumns.value = _columns.value.filter((column) => column.fixed === true || column.fixed === "left");
41742
41884
  rightFixedColumns.value = _columns.value.filter((column) => column.fixed === "right");
41743
41885
  if (fixedColumns.value.length > 0 && _columns.value[0] && _columns.value[0].type === "selection" && !_columns.value[0].fixed) {
@@ -43037,13 +43179,13 @@ function useStyle$2(props) {
43037
43179
  column
43038
43180
  });
43039
43181
  }
43040
- const fixedStyle = column.isSubColumn ? null : getFixedColumnOffset(columnIndex, column.fixed, props.store, row);
43182
+ const fixedStyle = getFixedColumnOffset(columnIndex, column.fixed, props.store, row);
43041
43183
  ensurePosition(fixedStyle, "left");
43042
43184
  ensurePosition(fixedStyle, "right");
43043
43185
  return Object.assign({}, headerCellStyles, fixedStyle);
43044
43186
  };
43045
43187
  const getHeaderCellClass = (rowIndex, columnIndex, row, column) => {
43046
- const fixedClasses = column.isSubColumn ? [] : getFixedColumnsClass(ns.b(), columnIndex, column.fixed, props.store, row);
43188
+ const fixedClasses = getFixedColumnsClass(ns.b(), columnIndex, column.fixed, props.store, row);
43047
43189
  const classes = [
43048
43190
  column.id,
43049
43191
  column.order,
@@ -43441,13 +43583,13 @@ function useStyles$1(props) {
43441
43583
  column
43442
43584
  });
43443
43585
  }
43444
- const fixedStyle = column.isSubColumn ? null : getFixedColumnOffset(columnIndex, props == null ? void 0 : props.fixed, props.store);
43586
+ const fixedStyle = getFixedColumnOffset(columnIndex, props == null ? void 0 : props.fixed, props.store);
43445
43587
  ensurePosition(fixedStyle, "left");
43446
43588
  ensurePosition(fixedStyle, "right");
43447
43589
  return Object.assign({}, cellStyles, fixedStyle);
43448
43590
  };
43449
43591
  const getCellClass = (rowIndex, columnIndex, row, column, offset) => {
43450
- const fixedClasses = column.isSubColumn ? [] : getFixedColumnsClass(ns.b(), columnIndex, props == null ? void 0 : props.fixed, props.store, void 0, offset);
43592
+ const fixedClasses = getFixedColumnsClass(ns.b(), columnIndex, props == null ? void 0 : props.fixed, props.store, void 0, offset);
43451
43593
  const classes = [column.id, column.align, column.className, ...fixedClasses];
43452
43594
  const cellClassName = parent == null ? void 0 : parent.props.cellClassName;
43453
43595
  if (typeof cellClassName === "string") {
@@ -47743,19 +47885,6 @@ const TabNav = defineComponent({
47743
47885
  }
47744
47886
  });
47745
47887
 
47746
- const getTabPanes = (vm) => {
47747
- const nodes = flattedChildren(vm.subTree);
47748
- return nodes.filter((n) => {
47749
- var _a;
47750
- return isVNode(n) && ((_a = n.type) == null ? void 0 : _a.name) === "ElTabPane" && !!n.component;
47751
- });
47752
- };
47753
- const getOrderedPanes = (vm, panes) => {
47754
- const nodes = getTabPanes(vm);
47755
- const uids = nodes.map((n) => n.component.uid);
47756
- return uids.map((uid) => panes[uid]).filter((p) => !!p);
47757
- };
47758
-
47759
47888
  const tabsProps = buildProps({
47760
47889
  type: {
47761
47890
  type: String,
@@ -47801,11 +47930,13 @@ var Tabs = defineComponent({
47801
47930
  expose
47802
47931
  }) {
47803
47932
  var _a, _b;
47804
- const vm = getCurrentInstance();
47805
47933
  const ns = useNamespace("tabs");
47934
+ const {
47935
+ children: panes,
47936
+ addChild: registerPane,
47937
+ removeChild: unregisterPane
47938
+ } = useOrderedChildren(getCurrentInstance(), "ElTabPane");
47806
47939
  const nav$ = ref();
47807
- const panes = shallowReactive({});
47808
- const orderedPanes = shallowRef([]);
47809
47940
  const currentName = ref((_b = (_a = props.modelValue) != null ? _a : props.activeName) != null ? _b : "0");
47810
47941
  const changeCurrentName = (value) => {
47811
47942
  currentName.value = value;
@@ -47857,22 +47988,12 @@ var Tabs = defineComponent({
47857
47988
  await nextTick();
47858
47989
  (_a2 = nav$.value) == null ? void 0 : _a2.scrollToActiveTab();
47859
47990
  });
47860
- {
47861
- const registerPane = (pane) => {
47862
- panes[pane.uid] = pane;
47863
- orderedPanes.value = getOrderedPanes(vm, panes);
47864
- };
47865
- const unregisterPane = (uid) => {
47866
- delete panes[uid];
47867
- orderedPanes.value = getOrderedPanes(vm, panes);
47868
- };
47869
- provide(tabsRootContextKey, {
47870
- props,
47871
- currentName,
47872
- registerPane,
47873
- unregisterPane
47874
- });
47875
- }
47991
+ provide(tabsRootContextKey, {
47992
+ props,
47993
+ currentName,
47994
+ registerPane,
47995
+ unregisterPane
47996
+ });
47876
47997
  expose({
47877
47998
  currentName
47878
47999
  });
@@ -47897,7 +48018,7 @@ var Tabs = defineComponent({
47897
48018
  "currentName": currentName.value,
47898
48019
  "editable": props.editable,
47899
48020
  "type": props.type,
47900
- "panes": orderedPanes.value,
48021
+ "panes": panes.value,
47901
48022
  "stretch": props.stretch,
47902
48023
  "onTabClick": handleTabClick,
47903
48024
  "onTabRemove": handleTabRemove
@@ -51943,7 +52064,6 @@ var ElNodeContent = defineComponent({
51943
52064
  });
51944
52065
 
51945
52066
  const _hoisted_1$6 = ["aria-expanded", "aria-disabled", "aria-checked", "data-key", "onClick"];
51946
- const DEFAULT_ICON = "caret-right";
51947
52067
  const __default__$7 = defineComponent({
51948
52068
  name: "ElTreeNode"
51949
52069
  });
@@ -51961,7 +52081,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
51961
52081
  });
51962
52082
  const icon = computed$1(() => {
51963
52083
  var _a;
51964
- return (_a = tree == null ? void 0 : tree.props.icon) != null ? _a : DEFAULT_ICON;
52084
+ return (_a = tree == null ? void 0 : tree.props.icon) != null ? _a : caret_right_default;
51965
52085
  });
51966
52086
  const handleClick = (e) => {
51967
52087
  emit("click", props.node, e);
@@ -52841,6 +52961,8 @@ const useHandlers = (props, uploadRef) => {
52841
52961
  props.onChange(file, uploadFiles.value);
52842
52962
  };
52843
52963
  const handleStart = (file) => {
52964
+ if (isNil(file.uid))
52965
+ file.uid = genFileId();
52844
52966
  const uploadFile = {
52845
52967
  name: file.name,
52846
52968
  percentage: 0,