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,4 +1,4 @@
1
- /*! Element Plus v2.2.19 */
1
+ /*! Element Plus v2.2.20 */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
@@ -7522,6 +7522,12 @@
7522
7522
  const isPropAbsent = (prop) => {
7523
7523
  return isNil(prop);
7524
7524
  };
7525
+ const isStringNumber = (val) => {
7526
+ if (!isString(val)) {
7527
+ return false;
7528
+ }
7529
+ return !Number.isNaN(Number(val));
7530
+ };
7525
7531
 
7526
7532
  const escapeStringRegexp = (string = "") => string.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
7527
7533
  const capitalize = (str) => capitalize$1(str);
@@ -7589,10 +7595,10 @@
7589
7595
  function addUnit(value, defaultUnit = "px") {
7590
7596
  if (!value)
7591
7597
  return "";
7592
- if (isString(value)) {
7593
- return value;
7594
- } else if (isNumber(value)) {
7598
+ if (isNumber(value) || isStringNumber(value)) {
7595
7599
  return `${value}${defaultUnit}`;
7600
+ } else if (isString(value)) {
7601
+ return value;
7596
7602
  }
7597
7603
  }
7598
7604
 
@@ -8695,12 +8701,16 @@
8695
8701
  const vNodes = isArray(children) ? children : [children];
8696
8702
  const result = [];
8697
8703
  vNodes.forEach((child) => {
8704
+ var _a;
8698
8705
  if (isArray(child)) {
8699
8706
  result.push(...flattedChildren(child));
8700
8707
  } else if (vue.isVNode(child) && isArray(child.children)) {
8701
8708
  result.push(...flattedChildren(child.children));
8702
8709
  } else {
8703
8710
  result.push(child);
8711
+ if (vue.isVNode(child) && ((_a = child.component) == null ? void 0 : _a.subTree)) {
8712
+ result.push(...flattedChildren(child.component.subTree));
8713
+ }
8704
8714
  }
8705
8715
  });
8706
8716
  return result;
@@ -11072,7 +11082,7 @@
11072
11082
  };
11073
11083
  };
11074
11084
 
11075
- const version$1 = "2.2.19";
11085
+ const version$1 = "2.2.20";
11076
11086
 
11077
11087
  const makeInstaller = (components = []) => {
11078
11088
  const install = (app, options) => {
@@ -11121,9 +11131,9 @@
11121
11131
  return target;
11122
11132
  };
11123
11133
 
11124
- const COMPONENT_NAME$k = "ElAffix";
11134
+ const COMPONENT_NAME$l = "ElAffix";
11125
11135
  const __default__$1w = vue.defineComponent({
11126
- name: COMPONENT_NAME$k
11136
+ name: COMPONENT_NAME$l
11127
11137
  });
11128
11138
  const _sfc_main$2f = /* @__PURE__ */ vue.defineComponent({
11129
11139
  ...__default__$1w,
@@ -11156,7 +11166,7 @@
11156
11166
  const affixStyle = vue.computed(() => {
11157
11167
  if (!fixed.value)
11158
11168
  return {};
11159
- const offset = props.offset ? `${props.offset}px` : 0;
11169
+ const offset = props.offset ? addUnit(props.offset) : 0;
11160
11170
  return {
11161
11171
  height: `${rootHeight.value}px`,
11162
11172
  width: `${rootWidth.value}px`,
@@ -11199,7 +11209,7 @@
11199
11209
  if (props.target) {
11200
11210
  target.value = (_a = document.querySelector(props.target)) != null ? _a : void 0;
11201
11211
  if (!target.value)
11202
- throwError(COMPONENT_NAME$k, `Target is not existed: ${props.target}`);
11212
+ throwError(COMPONENT_NAME$l, `Target is not existed: ${props.target}`);
11203
11213
  } else {
11204
11214
  target.value = document.documentElement;
11205
11215
  }
@@ -11580,7 +11590,7 @@
11580
11590
 
11581
11591
  const _hoisted_1$13 = ["role"];
11582
11592
  const _hoisted_2$G = ["id", "type", "disabled", "formatter", "parser", "readonly", "autocomplete", "tabindex", "aria-label", "placeholder", "form"];
11583
- const _hoisted_3$l = ["id", "tabindex", "disabled", "readonly", "autocomplete", "aria-label", "placeholder", "form"];
11593
+ const _hoisted_3$k = ["id", "tabindex", "disabled", "readonly", "autocomplete", "aria-label", "placeholder", "form"];
11584
11594
  const __default__$1t = vue.defineComponent({
11585
11595
  name: "ElInput",
11586
11596
  inheritAttrs: false
@@ -11971,7 +11981,7 @@
11971
11981
  onBlur: handleBlur,
11972
11982
  onChange: handleChange,
11973
11983
  onKeydown: handleKeydown
11974
- }), null, 16, _hoisted_3$l),
11984
+ }), null, 16, _hoisted_3$k),
11975
11985
  vue.unref(isWordLimitVisible) ? (vue.openBlock(), vue.createElementBlock("span", {
11976
11986
  key: 0,
11977
11987
  style: vue.normalizeStyle(countStyle.value),
@@ -12031,7 +12041,7 @@
12031
12041
  always: Boolean
12032
12042
  });
12033
12043
 
12034
- const COMPONENT_NAME$j = "Thumb";
12044
+ const COMPONENT_NAME$k = "Thumb";
12035
12045
  const _sfc_main$2b = /* @__PURE__ */ vue.defineComponent({
12036
12046
  __name: "thumb",
12037
12047
  props: thumbProps,
@@ -12040,7 +12050,7 @@
12040
12050
  const scrollbar = vue.inject(scrollbarContextKey);
12041
12051
  const ns = useNamespace("scrollbar");
12042
12052
  if (!scrollbar)
12043
- throwError(COMPONENT_NAME$j, "can not inject scrollbar context");
12053
+ throwError(COMPONENT_NAME$k, "can not inject scrollbar context");
12044
12054
  const instance = vue.ref();
12045
12055
  const thumb = vue.ref();
12046
12056
  const thumbState = vue.ref({});
@@ -13225,8 +13235,7 @@
13225
13235
  {
13226
13236
  name: "computeStyles",
13227
13237
  options: {
13228
- gpuAcceleration,
13229
- adaptive: gpuAcceleration
13238
+ gpuAcceleration
13230
13239
  }
13231
13240
  }
13232
13241
  ];
@@ -13502,13 +13511,6 @@
13502
13511
  ...useTooltipContentProps,
13503
13512
  ...useTooltipTriggerProps,
13504
13513
  ...popperArrowProps,
13505
- openDelay: {
13506
- type: Number
13507
- },
13508
- visibleArrow: {
13509
- type: Boolean,
13510
- default: void 0
13511
- },
13512
13514
  showArrow: {
13513
13515
  type: Boolean,
13514
13516
  default: true
@@ -13771,14 +13773,6 @@
13771
13773
  setup(__props, { expose, emit }) {
13772
13774
  const props = __props;
13773
13775
  usePopperContainer();
13774
- const compatShowAfter = vue.computed(() => {
13775
- if (!isUndefined(props.openDelay)) ;
13776
- return props.openDelay || props.showAfter;
13777
- });
13778
- const compatShowArrow = vue.computed(() => {
13779
- if (!isUndefined(props.visibleArrow)) ;
13780
- return isBoolean(props.visibleArrow) ? props.visibleArrow : props.showArrow;
13781
- });
13782
13776
  const id = useId();
13783
13777
  const popperRef = vue.ref();
13784
13778
  const contentRef = vue.ref();
@@ -13796,7 +13790,7 @@
13796
13790
  toggleReason
13797
13791
  });
13798
13792
  const { onOpen, onClose } = useDelayedToggle({
13799
- showAfter: compatShowAfter,
13793
+ showAfter: vue.toRef(props, "showAfter"),
13800
13794
  hideAfter: vue.toRef(props, "hideAfter"),
13801
13795
  open: show,
13802
13796
  close: hide
@@ -13895,7 +13889,7 @@
13895
13889
  "raw-content": _ctx.rawContent,
13896
13890
  "reference-el": _ctx.referenceEl,
13897
13891
  "trigger-target-el": _ctx.triggerTargetEl,
13898
- "show-after": vue.unref(compatShowAfter),
13892
+ "show-after": _ctx.showAfter,
13899
13893
  strategy: _ctx.strategy,
13900
13894
  teleported: _ctx.teleported,
13901
13895
  transition: _ctx.transition,
@@ -13910,7 +13904,7 @@
13910
13904
  innerHTML: _ctx.content
13911
13905
  }, null, 8, _hoisted_1$12)) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$F, vue.toDisplayString(_ctx.content), 1))
13912
13906
  ]),
13913
- vue.unref(compatShowArrow) ? (vue.openBlock(), vue.createBlock(vue.unref(ElPopperArrow), {
13907
+ _ctx.showArrow ? (vue.openBlock(), vue.createBlock(vue.unref(ElPopperArrow), {
13914
13908
  key: 0,
13915
13909
  "arrow-offset": _ctx.arrowOffset
13916
13910
  }, null, 8, ["arrow-offset"])) : vue.createCommentVNode("v-if", true)
@@ -13997,10 +13991,10 @@
13997
13991
 
13998
13992
  const _hoisted_1$11 = ["aria-expanded", "aria-owns"];
13999
13993
  const _hoisted_2$E = { key: 0 };
14000
- const _hoisted_3$k = ["id", "aria-selected", "onClick"];
14001
- const COMPONENT_NAME$i = "ElAutocomplete";
13994
+ const _hoisted_3$j = ["id", "aria-selected", "onClick"];
13995
+ const COMPONENT_NAME$j = "ElAutocomplete";
14002
13996
  const __default__$1k = vue.defineComponent({
14003
- name: COMPONENT_NAME$i,
13997
+ name: COMPONENT_NAME$j,
14004
13998
  inheritAttrs: false
14005
13999
  });
14006
14000
  const _sfc_main$20 = /* @__PURE__ */ vue.defineComponent({
@@ -14062,7 +14056,7 @@
14062
14056
  suggestions.value = suggestionList;
14063
14057
  highlightedIndex.value = props.highlightFirstItem ? 0 : -1;
14064
14058
  } else {
14065
- throwError(COMPONENT_NAME$i, "autocomplete suggestions must be an array");
14059
+ throwError(COMPONENT_NAME$j, "autocomplete suggestions must be an array");
14066
14060
  }
14067
14061
  };
14068
14062
  loading.value = true;
@@ -14260,7 +14254,7 @@
14260
14254
  vue.renderSlot(_ctx.$slots, "default", { item }, () => [
14261
14255
  vue.createTextVNode(vue.toDisplayString(item[_ctx.valueKey]), 1)
14262
14256
  ])
14263
- ], 10, _hoisted_3$k);
14257
+ ], 10, _hoisted_3$j);
14264
14258
  }), 128))
14265
14259
  ]),
14266
14260
  _: 3
@@ -14498,9 +14492,9 @@
14498
14492
  };
14499
14493
  };
14500
14494
 
14501
- const COMPONENT_NAME$h = "ElBacktop";
14495
+ const COMPONENT_NAME$i = "ElBacktop";
14502
14496
  const __default__$1i = vue.defineComponent({
14503
- name: COMPONENT_NAME$h
14497
+ name: COMPONENT_NAME$i
14504
14498
  });
14505
14499
  const _sfc_main$1_ = /* @__PURE__ */ vue.defineComponent({
14506
14500
  ...__default__$1i,
@@ -14509,7 +14503,7 @@
14509
14503
  setup(__props, { emit }) {
14510
14504
  const props = __props;
14511
14505
  const ns = useNamespace("backtop");
14512
- const { handleClick, visible } = useBackTop(props, emit, COMPONENT_NAME$h);
14506
+ const { handleClick, visible } = useBackTop(props, emit, COMPONENT_NAME$i);
14513
14507
  const backTopStyle = vue.computed(() => ({
14514
14508
  right: `${props.right}px`,
14515
14509
  bottom: `${props.bottom}px`
@@ -18390,9 +18384,32 @@
18390
18384
  });
18391
18385
  var DateTable$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1Q, [["__file", "date-table.vue"]]);
18392
18386
 
18387
+ const adjacentMonth = (start, end) => {
18388
+ const firstMonthLastDay = start.endOf("month");
18389
+ const lastMonthFirstDay = end.startOf("month");
18390
+ const isSameWeek = firstMonthLastDay.isSame(lastMonthFirstDay, "week");
18391
+ const lastMonthStartDay = isSameWeek ? lastMonthFirstDay.add(1, "week") : lastMonthFirstDay;
18392
+ return [
18393
+ [start, firstMonthLastDay],
18394
+ [lastMonthStartDay.startOf("week"), end]
18395
+ ];
18396
+ };
18397
+ const threeConsecutiveMonth = (start, end) => {
18398
+ const firstMonthLastDay = start.endOf("month");
18399
+ const secondMonthFirstDay = start.add(1, "month").startOf("month");
18400
+ const secondMonthStartDay = firstMonthLastDay.isSame(secondMonthFirstDay, "week") ? secondMonthFirstDay.add(1, "week") : secondMonthFirstDay;
18401
+ const secondMonthLastDay = secondMonthStartDay.endOf("month");
18402
+ const lastMonthFirstDay = end.startOf("month");
18403
+ const lastMonthStartDay = secondMonthLastDay.isSame(lastMonthFirstDay, "week") ? lastMonthFirstDay.add(1, "week") : lastMonthFirstDay;
18404
+ return [
18405
+ [start, firstMonthLastDay],
18406
+ [secondMonthStartDay.startOf("week"), secondMonthLastDay],
18407
+ [lastMonthStartDay.startOf("week"), end]
18408
+ ];
18409
+ };
18393
18410
  const useCalendar = (props, emit, componentName) => {
18394
- const solts = vue.useSlots();
18395
- const { t, lang } = useLocale();
18411
+ const slots = vue.useSlots();
18412
+ const { lang } = useLocale();
18396
18413
  const selectedDay = vue.ref();
18397
18414
  const now = dayjs().locale(lang.value);
18398
18415
  const realSelectedDay = vue.computed({
@@ -18429,12 +18446,7 @@
18429
18446
  });
18430
18447
  const date = vue.computed(() => {
18431
18448
  if (!props.modelValue) {
18432
- if (realSelectedDay.value) {
18433
- return realSelectedDay.value;
18434
- } else if (validatedRange.value.length) {
18435
- return validatedRange.value[0][0];
18436
- }
18437
- return now;
18449
+ return realSelectedDay.value || (validatedRange.value.length ? validatedRange.value[0][0] : now);
18438
18450
  } else {
18439
18451
  return dayjs(props.modelValue).locale(lang.value);
18440
18452
  }
@@ -18443,10 +18455,6 @@
18443
18455
  const nextMonthDayjs = vue.computed(() => date.value.add(1, "month").date(1));
18444
18456
  const prevYearDayjs = vue.computed(() => date.value.subtract(1, "year").date(1));
18445
18457
  const nextYearDayjs = vue.computed(() => date.value.add(1, "year").date(1));
18446
- const i18nDate = vue.computed(() => {
18447
- const pickedMonth = `el.datepicker.month${date.value.format("M")}`;
18448
- return `${date.value.year()} ${t("el.datepicker.year")} ${t(pickedMonth)}`;
18449
- });
18450
18458
  const calculateValidatedDateRange = (startDayjs, endDayjs) => {
18451
18459
  const firstDay = startDayjs.startOf("week");
18452
18460
  const lastDay = endDayjs.endOf("week");
@@ -18455,26 +18463,9 @@
18455
18463
  if (firstMonth === lastMonth) {
18456
18464
  return [[firstDay, lastDay]];
18457
18465
  } else if (firstMonth + 1 === lastMonth) {
18458
- const firstMonthLastDay = firstDay.endOf("month");
18459
- const lastMonthFirstDay = lastDay.startOf("month");
18460
- const isSameWeek = firstMonthLastDay.isSame(lastMonthFirstDay, "week");
18461
- const lastMonthStartDay = isSameWeek ? lastMonthFirstDay.add(1, "week") : lastMonthFirstDay;
18462
- return [
18463
- [firstDay, firstMonthLastDay],
18464
- [lastMonthStartDay.startOf("week"), lastDay]
18465
- ];
18466
+ return adjacentMonth(firstDay, lastDay);
18466
18467
  } else if (firstMonth + 2 === lastMonth || (firstMonth + 1) % 11 === lastMonth) {
18467
- const firstMonthLastDay = firstDay.endOf("month");
18468
- const secondMonthFirstDay = firstDay.add(1, "month").startOf("month");
18469
- const secondMonthStartDay = firstMonthLastDay.isSame(secondMonthFirstDay, "week") ? secondMonthFirstDay.add(1, "week") : secondMonthFirstDay;
18470
- const secondMonthLastDay = secondMonthStartDay.endOf("month");
18471
- const lastMonthFirstDay = lastDay.startOf("month");
18472
- const lastMonthStartDay = secondMonthLastDay.isSame(lastMonthFirstDay, "week") ? lastMonthFirstDay.add(1, "week") : lastMonthFirstDay;
18473
- return [
18474
- [firstDay, firstMonthLastDay],
18475
- [secondMonthStartDay.startOf("week"), secondMonthLastDay],
18476
- [lastMonthStartDay.startOf("week"), lastDay]
18477
- ];
18468
+ return threeConsecutiveMonth(firstDay, lastDay);
18478
18469
  } else {
18479
18470
  return [];
18480
18471
  }
@@ -18502,16 +18493,14 @@
18502
18493
  version: "2.3.0",
18503
18494
  ref: "https://element-plus.org/en-US/component/calendar.html#slots",
18504
18495
  type: "Slot"
18505
- }, vue.computed(() => !!solts.dateCell));
18496
+ }, vue.computed(() => !!slots.dateCell));
18506
18497
  return {
18507
18498
  calculateValidatedDateRange,
18508
18499
  date,
18509
18500
  realSelectedDay,
18510
18501
  pickDay,
18511
18502
  selectDate,
18512
- validatedRange,
18513
- t,
18514
- i18nDate
18503
+ validatedRange
18515
18504
  };
18516
18505
  };
18517
18506
 
@@ -18530,9 +18519,9 @@
18530
18519
  [INPUT_EVENT]: (value) => isDate(value)
18531
18520
  };
18532
18521
 
18533
- const COMPONENT_NAME$g = "ElCalendar";
18522
+ const COMPONENT_NAME$h = "ElCalendar";
18534
18523
  const __default__$1a = vue.defineComponent({
18535
- name: COMPONENT_NAME$g
18524
+ name: COMPONENT_NAME$h
18536
18525
  });
18537
18526
  const _sfc_main$1P = /* @__PURE__ */ vue.defineComponent({
18538
18527
  ...__default__$1a,
@@ -18547,10 +18536,13 @@
18547
18536
  pickDay,
18548
18537
  realSelectedDay,
18549
18538
  selectDate,
18550
- t,
18551
- i18nDate,
18552
18539
  validatedRange
18553
18540
  } = useCalendar(props, emit);
18541
+ const { t } = useLocale();
18542
+ const i18nDate = vue.computed(() => {
18543
+ const pickedMonth = `el.datepicker.month${date.value.format("M")}`;
18544
+ return `${date.value.year()} ${t("el.datepicker.year")} ${t(pickedMonth)}`;
18545
+ });
18554
18546
  expose({
18555
18547
  selectedDay: realSelectedDay,
18556
18548
  pickDay,
@@ -18762,12 +18754,208 @@
18762
18754
  change: (current, prev) => [current, prev].every(isNumber)
18763
18755
  };
18764
18756
 
18765
- const _hoisted_1$V = ["onMouseenter", "onMouseleave"];
18766
- const _hoisted_2$A = ["onMouseenter", "onClick"];
18767
- const _hoisted_3$j = { key: 0 };
18768
18757
  const THROTTLE_TIME = 300;
18758
+ const useCarousel = (props, emit, componentName) => {
18759
+ const {
18760
+ children: items,
18761
+ addChild: addItem,
18762
+ removeChild: removeItem
18763
+ } = useOrderedChildren(vue.getCurrentInstance(), "ElCarouselItem");
18764
+ const activeIndex = vue.ref(-1);
18765
+ const timer = vue.ref(null);
18766
+ const hover = vue.ref(false);
18767
+ const root = vue.ref();
18768
+ const arrowDisplay = vue.computed(() => props.arrow !== "never" && !vue.unref(isVertical));
18769
+ const hasLabel = vue.computed(() => {
18770
+ return items.value.some((item) => item.props.label.toString().length > 0);
18771
+ });
18772
+ const isCardType = vue.computed(() => props.type === "card");
18773
+ const isVertical = vue.computed(() => props.direction === "vertical");
18774
+ const throttledArrowClick = throttle((index) => {
18775
+ setActiveItem(index);
18776
+ }, THROTTLE_TIME, { trailing: true });
18777
+ const throttledIndicatorHover = throttle((index) => {
18778
+ handleIndicatorHover(index);
18779
+ }, THROTTLE_TIME);
18780
+ function pauseTimer() {
18781
+ if (timer.value) {
18782
+ clearInterval(timer.value);
18783
+ timer.value = null;
18784
+ }
18785
+ }
18786
+ function startTimer() {
18787
+ if (props.interval <= 0 || !props.autoplay || timer.value)
18788
+ return;
18789
+ timer.value = setInterval(() => playSlides(), props.interval);
18790
+ }
18791
+ const playSlides = () => {
18792
+ if (activeIndex.value < items.value.length - 1) {
18793
+ activeIndex.value = activeIndex.value + 1;
18794
+ } else if (props.loop) {
18795
+ activeIndex.value = 0;
18796
+ }
18797
+ };
18798
+ function setActiveItem(index) {
18799
+ if (isString(index)) {
18800
+ const filteredItems = items.value.filter((item) => item.props.name === index);
18801
+ if (filteredItems.length > 0) {
18802
+ index = items.value.indexOf(filteredItems[0]);
18803
+ }
18804
+ }
18805
+ index = Number(index);
18806
+ if (Number.isNaN(index) || index !== Math.floor(index)) {
18807
+ return;
18808
+ }
18809
+ const itemCount = items.value.length;
18810
+ const oldIndex = activeIndex.value;
18811
+ if (index < 0) {
18812
+ activeIndex.value = props.loop ? itemCount - 1 : 0;
18813
+ } else if (index >= itemCount) {
18814
+ activeIndex.value = props.loop ? 0 : itemCount - 1;
18815
+ } else {
18816
+ activeIndex.value = index;
18817
+ }
18818
+ if (oldIndex === activeIndex.value) {
18819
+ resetItemPosition(oldIndex);
18820
+ }
18821
+ resetTimer();
18822
+ }
18823
+ function resetItemPosition(oldIndex) {
18824
+ items.value.forEach((item, index) => {
18825
+ item.translateItem(index, activeIndex.value, oldIndex);
18826
+ });
18827
+ }
18828
+ function itemInStage(item, index) {
18829
+ var _a, _b, _c, _d;
18830
+ const _items = vue.unref(items);
18831
+ const itemCount = _items.length;
18832
+ if (itemCount === 0 || !item.states.inStage)
18833
+ return false;
18834
+ const nextItemIndex = index + 1;
18835
+ const prevItemIndex = index - 1;
18836
+ const lastItemIndex = itemCount - 1;
18837
+ const isLastItemActive = _items[lastItemIndex].states.active;
18838
+ const isFirstItemActive = _items[0].states.active;
18839
+ const isNextItemActive = (_b = (_a = _items[nextItemIndex]) == null ? void 0 : _a.states) == null ? void 0 : _b.active;
18840
+ const isPrevItemActive = (_d = (_c = _items[prevItemIndex]) == null ? void 0 : _c.states) == null ? void 0 : _d.active;
18841
+ if (index === lastItemIndex && isFirstItemActive || isNextItemActive) {
18842
+ return "left";
18843
+ } else if (index === 0 && isLastItemActive || isPrevItemActive) {
18844
+ return "right";
18845
+ }
18846
+ return false;
18847
+ }
18848
+ function handleMouseEnter() {
18849
+ hover.value = true;
18850
+ if (props.pauseOnHover) {
18851
+ pauseTimer();
18852
+ }
18853
+ }
18854
+ function handleMouseLeave() {
18855
+ hover.value = false;
18856
+ startTimer();
18857
+ }
18858
+ function handleButtonEnter(arrow) {
18859
+ if (vue.unref(isVertical))
18860
+ return;
18861
+ items.value.forEach((item, index) => {
18862
+ if (arrow === itemInStage(item, index)) {
18863
+ item.states.hover = true;
18864
+ }
18865
+ });
18866
+ }
18867
+ function handleButtonLeave() {
18868
+ if (vue.unref(isVertical))
18869
+ return;
18870
+ items.value.forEach((item) => {
18871
+ item.states.hover = false;
18872
+ });
18873
+ }
18874
+ function handleIndicatorClick(index) {
18875
+ activeIndex.value = index;
18876
+ }
18877
+ function handleIndicatorHover(index) {
18878
+ if (props.trigger === "hover" && index !== activeIndex.value) {
18879
+ activeIndex.value = index;
18880
+ }
18881
+ }
18882
+ function prev() {
18883
+ setActiveItem(activeIndex.value - 1);
18884
+ }
18885
+ function next() {
18886
+ setActiveItem(activeIndex.value + 1);
18887
+ }
18888
+ function resetTimer() {
18889
+ pauseTimer();
18890
+ startTimer();
18891
+ }
18892
+ vue.watch(() => activeIndex.value, (current, prev2) => {
18893
+ resetItemPosition(prev2);
18894
+ if (prev2 > -1) {
18895
+ emit("change", current, prev2);
18896
+ }
18897
+ });
18898
+ vue.watch(() => props.autoplay, (autoplay) => {
18899
+ autoplay ? startTimer() : pauseTimer();
18900
+ });
18901
+ vue.watch(() => props.loop, () => {
18902
+ setActiveItem(activeIndex.value);
18903
+ });
18904
+ vue.watch(() => props.interval, () => {
18905
+ resetTimer();
18906
+ });
18907
+ vue.watch(() => items.value, () => {
18908
+ if (items.value.length > 0)
18909
+ setActiveItem(props.initialIndex);
18910
+ });
18911
+ const resizeObserver = vue.shallowRef();
18912
+ vue.onMounted(() => {
18913
+ resizeObserver.value = useResizeObserver(root.value, () => {
18914
+ resetItemPosition();
18915
+ });
18916
+ startTimer();
18917
+ });
18918
+ vue.onBeforeUnmount(() => {
18919
+ pauseTimer();
18920
+ if (root.value && resizeObserver.value)
18921
+ resizeObserver.value.stop();
18922
+ });
18923
+ vue.provide(carouselContextKey, {
18924
+ root,
18925
+ isCardType,
18926
+ isVertical,
18927
+ items,
18928
+ loop: props.loop,
18929
+ addItem,
18930
+ removeItem,
18931
+ setActiveItem
18932
+ });
18933
+ return {
18934
+ root,
18935
+ activeIndex,
18936
+ arrowDisplay,
18937
+ hasLabel,
18938
+ hover,
18939
+ isCardType,
18940
+ items,
18941
+ handleButtonEnter,
18942
+ handleButtonLeave,
18943
+ handleIndicatorClick,
18944
+ handleMouseEnter,
18945
+ handleMouseLeave,
18946
+ setActiveItem,
18947
+ prev,
18948
+ next,
18949
+ throttledArrowClick,
18950
+ throttledIndicatorHover
18951
+ };
18952
+ };
18953
+
18954
+ const _hoisted_1$V = ["onMouseenter", "onClick"];
18955
+ const _hoisted_2$A = { key: 0 };
18956
+ const COMPONENT_NAME$g = "ElCarousel";
18769
18957
  const __default__$18 = vue.defineComponent({
18770
- name: "ElCarousel"
18958
+ name: COMPONENT_NAME$g
18771
18959
  });
18772
18960
  const _sfc_main$1N = /* @__PURE__ */ vue.defineComponent({
18773
18961
  ...__default__$18,
@@ -18775,20 +18963,26 @@
18775
18963
  emits: carouselEmits,
18776
18964
  setup(__props, { expose, emit }) {
18777
18965
  const props = __props;
18778
- const ns = useNamespace("carousel");
18779
18966
  const {
18780
- children: items,
18781
- addChild: addItem,
18782
- removeChild: removeItem
18783
- } = useOrderedChildren(vue.getCurrentInstance(), "ElCarouselItem");
18784
- const activeIndex = vue.ref(-1);
18785
- const timer = vue.ref(null);
18786
- const hover = vue.ref(false);
18787
- const root = vue.ref();
18788
- const arrowDisplay = vue.computed(() => props.arrow !== "never" && !vue.unref(isVertical));
18789
- const hasLabel = vue.computed(() => {
18790
- return items.value.some((item) => item.props.label.toString().length > 0);
18791
- });
18967
+ root,
18968
+ activeIndex,
18969
+ arrowDisplay,
18970
+ hasLabel,
18971
+ hover,
18972
+ isCardType,
18973
+ items,
18974
+ handleButtonEnter,
18975
+ handleButtonLeave,
18976
+ handleIndicatorClick,
18977
+ handleMouseEnter,
18978
+ handleMouseLeave,
18979
+ setActiveItem,
18980
+ prev,
18981
+ next,
18982
+ throttledArrowClick,
18983
+ throttledIndicatorHover
18984
+ } = useCarousel(props, emit);
18985
+ const ns = useNamespace("carousel");
18792
18986
  const carouselClasses = vue.computed(() => {
18793
18987
  const classes = [ns.b(), ns.m(props.direction)];
18794
18988
  if (vue.unref(isCardType)) {
@@ -18798,7 +18992,7 @@
18798
18992
  });
18799
18993
  const indicatorsClasses = vue.computed(() => {
18800
18994
  const classes = [ns.e("indicators"), ns.em("indicators", props.direction)];
18801
- if (hasLabel.value) {
18995
+ if (vue.unref(hasLabel)) {
18802
18996
  classes.push(ns.em("indicators", "labels"));
18803
18997
  }
18804
18998
  if (props.indicatorPosition === "outside" || vue.unref(isCardType)) {
@@ -18806,167 +19000,6 @@
18806
19000
  }
18807
19001
  return classes;
18808
19002
  });
18809
- const isCardType = vue.computed(() => props.type === "card");
18810
- const isVertical = vue.computed(() => props.direction === "vertical");
18811
- const throttledArrowClick = throttle((index) => {
18812
- setActiveItem(index);
18813
- }, THROTTLE_TIME, { trailing: true });
18814
- const throttledIndicatorHover = throttle((index) => {
18815
- handleIndicatorHover(index);
18816
- }, THROTTLE_TIME);
18817
- function pauseTimer() {
18818
- if (timer.value) {
18819
- clearInterval(timer.value);
18820
- timer.value = null;
18821
- }
18822
- }
18823
- function startTimer() {
18824
- if (props.interval <= 0 || !props.autoplay || timer.value)
18825
- return;
18826
- timer.value = setInterval(() => playSlides(), props.interval);
18827
- }
18828
- const playSlides = () => {
18829
- if (activeIndex.value < items.value.length - 1) {
18830
- activeIndex.value = activeIndex.value + 1;
18831
- } else if (props.loop) {
18832
- activeIndex.value = 0;
18833
- }
18834
- };
18835
- function setActiveItem(index) {
18836
- if (isString(index)) {
18837
- const filteredItems = items.value.filter((item) => item.props.name === index);
18838
- if (filteredItems.length > 0) {
18839
- index = items.value.indexOf(filteredItems[0]);
18840
- }
18841
- }
18842
- index = Number(index);
18843
- if (Number.isNaN(index) || index !== Math.floor(index)) {
18844
- return;
18845
- }
18846
- const itemCount = items.value.length;
18847
- const oldIndex = activeIndex.value;
18848
- if (index < 0) {
18849
- activeIndex.value = props.loop ? itemCount - 1 : 0;
18850
- } else if (index >= itemCount) {
18851
- activeIndex.value = props.loop ? 0 : itemCount - 1;
18852
- } else {
18853
- activeIndex.value = index;
18854
- }
18855
- if (oldIndex === activeIndex.value) {
18856
- resetItemPosition(oldIndex);
18857
- }
18858
- resetTimer();
18859
- }
18860
- function resetItemPosition(oldIndex) {
18861
- items.value.forEach((item, index) => {
18862
- item.translateItem(index, activeIndex.value, oldIndex);
18863
- });
18864
- }
18865
- function itemInStage(item, index) {
18866
- var _a, _b, _c, _d;
18867
- const _items = vue.unref(items);
18868
- const itemCount = _items.length;
18869
- if (itemCount === 0 || !item.states.inStage)
18870
- return false;
18871
- const nextItemIndex = index + 1;
18872
- const prevItemIndex = index - 1;
18873
- const lastItemIndex = itemCount - 1;
18874
- const isLastItemActive = _items[lastItemIndex].states.active;
18875
- const isFirstItemActive = _items[0].states.active;
18876
- const isNextItemActive = (_b = (_a = _items[nextItemIndex]) == null ? void 0 : _a.states) == null ? void 0 : _b.active;
18877
- const isPrevItemActive = (_d = (_c = _items[prevItemIndex]) == null ? void 0 : _c.states) == null ? void 0 : _d.active;
18878
- if (index === lastItemIndex && isFirstItemActive || isNextItemActive) {
18879
- return "left";
18880
- } else if (index === 0 && isLastItemActive || isPrevItemActive) {
18881
- return "right";
18882
- }
18883
- return false;
18884
- }
18885
- function handleMouseEnter() {
18886
- hover.value = true;
18887
- if (props.pauseOnHover) {
18888
- pauseTimer();
18889
- }
18890
- }
18891
- function handleMouseLeave() {
18892
- hover.value = false;
18893
- startTimer();
18894
- }
18895
- function handleButtonEnter(arrow) {
18896
- if (vue.unref(isVertical))
18897
- return;
18898
- items.value.forEach((item, index) => {
18899
- if (arrow === itemInStage(item, index)) {
18900
- item.states.hover = true;
18901
- }
18902
- });
18903
- }
18904
- function handleButtonLeave() {
18905
- if (vue.unref(isVertical))
18906
- return;
18907
- items.value.forEach((item) => {
18908
- item.states.hover = false;
18909
- });
18910
- }
18911
- function handleIndicatorClick(index) {
18912
- activeIndex.value = index;
18913
- }
18914
- function handleIndicatorHover(index) {
18915
- if (props.trigger === "hover" && index !== activeIndex.value) {
18916
- activeIndex.value = index;
18917
- }
18918
- }
18919
- function prev() {
18920
- setActiveItem(activeIndex.value - 1);
18921
- }
18922
- function next() {
18923
- setActiveItem(activeIndex.value + 1);
18924
- }
18925
- function resetTimer() {
18926
- pauseTimer();
18927
- startTimer();
18928
- }
18929
- vue.watch(() => activeIndex.value, (current, prev2) => {
18930
- resetItemPosition(prev2);
18931
- if (prev2 > -1) {
18932
- emit("change", current, prev2);
18933
- }
18934
- });
18935
- vue.watch(() => props.autoplay, (autoplay) => {
18936
- autoplay ? startTimer() : pauseTimer();
18937
- });
18938
- vue.watch(() => props.loop, () => {
18939
- setActiveItem(activeIndex.value);
18940
- });
18941
- vue.watch(() => props.interval, () => {
18942
- resetTimer();
18943
- });
18944
- vue.watch(() => items.value, () => {
18945
- if (items.value.length > 0)
18946
- setActiveItem(props.initialIndex);
18947
- });
18948
- const resizeObserver = vue.shallowRef();
18949
- vue.onMounted(() => {
18950
- resizeObserver.value = useResizeObserver(root.value, () => {
18951
- resetItemPosition();
18952
- });
18953
- startTimer();
18954
- });
18955
- vue.onBeforeUnmount(() => {
18956
- pauseTimer();
18957
- if (root.value && resizeObserver.value)
18958
- resizeObserver.value.stop();
18959
- });
18960
- vue.provide(carouselContextKey, {
18961
- root,
18962
- isCardType,
18963
- isVertical,
18964
- items,
18965
- loop: props.loop,
18966
- addItem,
18967
- removeItem,
18968
- setActiveItem
18969
- });
18970
19003
  expose({
18971
19004
  setActiveItem,
18972
19005
  prev,
@@ -18977,8 +19010,8 @@
18977
19010
  ref_key: "root",
18978
19011
  ref: root,
18979
19012
  class: vue.normalizeClass(vue.unref(carouselClasses)),
18980
- onMouseenter: vue.withModifiers(handleMouseEnter, ["stop"]),
18981
- onMouseleave: vue.withModifiers(handleMouseLeave, ["stop"])
19013
+ onMouseenter: _cache[6] || (_cache[6] = vue.withModifiers((...args) => vue.unref(handleMouseEnter) && vue.unref(handleMouseEnter)(...args), ["stop"])),
19014
+ onMouseleave: _cache[7] || (_cache[7] = vue.withModifiers((...args) => vue.unref(handleMouseLeave) && vue.unref(handleMouseLeave)(...args), ["stop"]))
18982
19015
  }, [
18983
19016
  vue.createElementVNode("div", {
18984
19017
  class: vue.normalizeClass(vue.unref(ns).e("container")),
@@ -18993,9 +19026,9 @@
18993
19026
  vue.withDirectives(vue.createElementVNode("button", {
18994
19027
  type: "button",
18995
19028
  class: vue.normalizeClass([vue.unref(ns).e("arrow"), vue.unref(ns).em("arrow", "left")]),
18996
- onMouseenter: _cache[0] || (_cache[0] = ($event) => handleButtonEnter("left")),
18997
- onMouseleave: handleButtonLeave,
18998
- onClick: _cache[1] || (_cache[1] = vue.withModifiers(($event) => vue.unref(throttledArrowClick)(activeIndex.value - 1), ["stop"]))
19029
+ onMouseenter: _cache[0] || (_cache[0] = ($event) => vue.unref(handleButtonEnter)("left")),
19030
+ onMouseleave: _cache[1] || (_cache[1] = (...args) => vue.unref(handleButtonLeave) && vue.unref(handleButtonLeave)(...args)),
19031
+ onClick: _cache[2] || (_cache[2] = vue.withModifiers(($event) => vue.unref(throttledArrowClick)(vue.unref(activeIndex) - 1), ["stop"]))
18999
19032
  }, [
19000
19033
  vue.createVNode(vue.unref(ElIcon), null, {
19001
19034
  default: vue.withCtx(() => [
@@ -19006,7 +19039,7 @@
19006
19039
  ], 34), [
19007
19040
  [
19008
19041
  vue.vShow,
19009
- (_ctx.arrow === "always" || hover.value) && (props.loop || activeIndex.value > 0)
19042
+ (_ctx.arrow === "always" || vue.unref(hover)) && (props.loop || vue.unref(activeIndex) > 0)
19010
19043
  ]
19011
19044
  ])
19012
19045
  ]),
@@ -19021,9 +19054,9 @@
19021
19054
  vue.withDirectives(vue.createElementVNode("button", {
19022
19055
  type: "button",
19023
19056
  class: vue.normalizeClass([vue.unref(ns).e("arrow"), vue.unref(ns).em("arrow", "right")]),
19024
- onMouseenter: _cache[2] || (_cache[2] = ($event) => handleButtonEnter("right")),
19025
- onMouseleave: handleButtonLeave,
19026
- onClick: _cache[3] || (_cache[3] = vue.withModifiers(($event) => vue.unref(throttledArrowClick)(activeIndex.value + 1), ["stop"]))
19057
+ onMouseenter: _cache[3] || (_cache[3] = ($event) => vue.unref(handleButtonEnter)("right")),
19058
+ onMouseleave: _cache[4] || (_cache[4] = (...args) => vue.unref(handleButtonLeave) && vue.unref(handleButtonLeave)(...args)),
19059
+ onClick: _cache[5] || (_cache[5] = vue.withModifiers(($event) => vue.unref(throttledArrowClick)(vue.unref(activeIndex) + 1), ["stop"]))
19027
19060
  }, [
19028
19061
  vue.createVNode(vue.unref(ElIcon), null, {
19029
19062
  default: vue.withCtx(() => [
@@ -19034,7 +19067,7 @@
19034
19067
  ], 34), [
19035
19068
  [
19036
19069
  vue.vShow,
19037
- (_ctx.arrow === "always" || hover.value) && (props.loop || activeIndex.value < vue.unref(items).length - 1)
19070
+ (_ctx.arrow === "always" || vue.unref(hover)) && (props.loop || vue.unref(activeIndex) < vue.unref(items).length - 1)
19038
19071
  ]
19039
19072
  ])
19040
19073
  ]),
@@ -19052,20 +19085,20 @@
19052
19085
  class: vue.normalizeClass([
19053
19086
  vue.unref(ns).e("indicator"),
19054
19087
  vue.unref(ns).em("indicator", _ctx.direction),
19055
- vue.unref(ns).is("active", index === activeIndex.value)
19088
+ vue.unref(ns).is("active", index === vue.unref(activeIndex))
19056
19089
  ]),
19057
19090
  onMouseenter: ($event) => vue.unref(throttledIndicatorHover)(index),
19058
- onClick: vue.withModifiers(($event) => handleIndicatorClick(index), ["stop"])
19091
+ onClick: vue.withModifiers(($event) => vue.unref(handleIndicatorClick)(index), ["stop"])
19059
19092
  }, [
19060
19093
  vue.createElementVNode("button", {
19061
19094
  class: vue.normalizeClass(vue.unref(ns).e("button"))
19062
19095
  }, [
19063
- vue.unref(hasLabel) ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$j, vue.toDisplayString(item.props.label), 1)) : vue.createCommentVNode("v-if", true)
19096
+ vue.unref(hasLabel) ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$A, vue.toDisplayString(item.props.label), 1)) : vue.createCommentVNode("v-if", true)
19064
19097
  ], 2)
19065
- ], 42, _hoisted_2$A);
19098
+ ], 42, _hoisted_1$V);
19066
19099
  }), 128))
19067
19100
  ], 2)) : vue.createCommentVNode("v-if", true)
19068
- ], 42, _hoisted_1$V);
19101
+ ], 34);
19069
19102
  };
19070
19103
  }
19071
19104
  });
@@ -19079,7 +19112,113 @@
19079
19112
  }
19080
19113
  });
19081
19114
 
19082
- const CARD_SCALE = 0.83;
19115
+ const useCarouselItem = (props, componentName) => {
19116
+ const carouselContext = vue.inject(carouselContextKey);
19117
+ const instance = vue.getCurrentInstance();
19118
+ const CARD_SCALE = 0.83;
19119
+ const hover = vue.ref(false);
19120
+ const translate = vue.ref(0);
19121
+ const scale = vue.ref(1);
19122
+ const active = vue.ref(false);
19123
+ const ready = vue.ref(false);
19124
+ const inStage = vue.ref(false);
19125
+ const animating = vue.ref(false);
19126
+ const { isCardType, isVertical } = carouselContext;
19127
+ function processIndex(index, activeIndex, length) {
19128
+ const lastItemIndex = length - 1;
19129
+ const prevItemIndex = activeIndex - 1;
19130
+ const nextItemIndex = activeIndex + 1;
19131
+ const halfItemIndex = length / 2;
19132
+ if (activeIndex === 0 && index === lastItemIndex) {
19133
+ return -1;
19134
+ } else if (activeIndex === lastItemIndex && index === 0) {
19135
+ return length;
19136
+ } else if (index < prevItemIndex && activeIndex - index >= halfItemIndex) {
19137
+ return length + 1;
19138
+ } else if (index > nextItemIndex && index - activeIndex >= halfItemIndex) {
19139
+ return -2;
19140
+ }
19141
+ return index;
19142
+ }
19143
+ function calcCardTranslate(index, activeIndex) {
19144
+ var _a;
19145
+ const parentWidth = ((_a = carouselContext.root.value) == null ? void 0 : _a.offsetWidth) || 0;
19146
+ if (inStage.value) {
19147
+ return parentWidth * ((2 - CARD_SCALE) * (index - activeIndex) + 1) / 4;
19148
+ } else if (index < activeIndex) {
19149
+ return -(1 + CARD_SCALE) * parentWidth / 4;
19150
+ } else {
19151
+ return (3 + CARD_SCALE) * parentWidth / 4;
19152
+ }
19153
+ }
19154
+ function calcTranslate(index, activeIndex, isVertical2) {
19155
+ const rootEl = carouselContext.root.value;
19156
+ if (!rootEl)
19157
+ return 0;
19158
+ const distance = (isVertical2 ? rootEl.offsetHeight : rootEl.offsetWidth) || 0;
19159
+ return distance * (index - activeIndex);
19160
+ }
19161
+ const translateItem = (index, activeIndex, oldIndex) => {
19162
+ var _a;
19163
+ const _isCardType = vue.unref(isCardType);
19164
+ const carouselItemLength = (_a = carouselContext.items.value.length) != null ? _a : Number.NaN;
19165
+ const isActive = index === activeIndex;
19166
+ if (!_isCardType && !isUndefined(oldIndex)) {
19167
+ animating.value = isActive || index === oldIndex;
19168
+ }
19169
+ if (!isActive && carouselItemLength > 2 && carouselContext.loop) {
19170
+ index = processIndex(index, activeIndex, carouselItemLength);
19171
+ }
19172
+ const _isVertical = vue.unref(isVertical);
19173
+ active.value = isActive;
19174
+ if (_isCardType) {
19175
+ inStage.value = Math.round(Math.abs(index - activeIndex)) <= 1;
19176
+ translate.value = calcCardTranslate(index, activeIndex);
19177
+ scale.value = vue.unref(active) ? 1 : CARD_SCALE;
19178
+ } else {
19179
+ translate.value = calcTranslate(index, activeIndex, _isVertical);
19180
+ }
19181
+ ready.value = true;
19182
+ };
19183
+ function handleItemClick() {
19184
+ if (carouselContext && vue.unref(isCardType)) {
19185
+ const index = carouselContext.items.value.findIndex(({ uid }) => uid === instance.uid);
19186
+ carouselContext.setActiveItem(index);
19187
+ }
19188
+ }
19189
+ vue.onMounted(() => {
19190
+ carouselContext.addItem({
19191
+ props,
19192
+ states: vue.reactive({
19193
+ hover,
19194
+ translate,
19195
+ scale,
19196
+ active,
19197
+ ready,
19198
+ inStage,
19199
+ animating
19200
+ }),
19201
+ uid: instance.uid,
19202
+ translateItem
19203
+ });
19204
+ });
19205
+ vue.onUnmounted(() => {
19206
+ carouselContext.removeItem(instance.uid);
19207
+ });
19208
+ return {
19209
+ active,
19210
+ animating,
19211
+ hover,
19212
+ inStage,
19213
+ isVertical,
19214
+ translate,
19215
+ isCardType,
19216
+ scale,
19217
+ ready,
19218
+ handleItemClick
19219
+ };
19220
+ };
19221
+
19083
19222
  const __default__$17 = vue.defineComponent({
19084
19223
  name: "ElCarouselItem"
19085
19224
  });
@@ -19089,16 +19228,18 @@
19089
19228
  setup(__props) {
19090
19229
  const props = __props;
19091
19230
  const ns = useNamespace("carousel");
19092
- const carouselContext = vue.inject(carouselContextKey);
19093
- const instance = vue.getCurrentInstance();
19094
- const hover = vue.ref(false);
19095
- const translate = vue.ref(0);
19096
- const scale = vue.ref(1);
19097
- const active = vue.ref(false);
19098
- const ready = vue.ref(false);
19099
- const inStage = vue.ref(false);
19100
- const animating = vue.ref(false);
19101
- const { isCardType, isVertical } = carouselContext;
19231
+ const {
19232
+ active,
19233
+ animating,
19234
+ hover,
19235
+ inStage,
19236
+ isVertical,
19237
+ translate,
19238
+ isCardType,
19239
+ scale,
19240
+ ready,
19241
+ handleItemClick
19242
+ } = useCarouselItem(props);
19102
19243
  const itemStyle = vue.computed(() => {
19103
19244
  const translateType = `translate${vue.unref(isVertical) ? "Y" : "X"}`;
19104
19245
  const _translate = `${translateType}(${vue.unref(translate)}px)`;
@@ -19108,109 +19249,28 @@
19108
19249
  transform
19109
19250
  };
19110
19251
  });
19111
- function processIndex(index, activeIndex, length) {
19112
- const lastItemIndex = length - 1;
19113
- const prevItemIndex = activeIndex - 1;
19114
- const nextItemIndex = activeIndex + 1;
19115
- const halfItemIndex = length / 2;
19116
- if (activeIndex === 0 && index === lastItemIndex) {
19117
- return -1;
19118
- } else if (activeIndex === lastItemIndex && index === 0) {
19119
- return length;
19120
- } else if (index < prevItemIndex && activeIndex - index >= halfItemIndex) {
19121
- return length + 1;
19122
- } else if (index > nextItemIndex && index - activeIndex >= halfItemIndex) {
19123
- return -2;
19124
- }
19125
- return index;
19126
- }
19127
- function calcCardTranslate(index, activeIndex) {
19128
- var _a;
19129
- const parentWidth = ((_a = carouselContext.root.value) == null ? void 0 : _a.offsetWidth) || 0;
19130
- if (inStage.value) {
19131
- return parentWidth * ((2 - CARD_SCALE) * (index - activeIndex) + 1) / 4;
19132
- } else if (index < activeIndex) {
19133
- return -(1 + CARD_SCALE) * parentWidth / 4;
19134
- } else {
19135
- return (3 + CARD_SCALE) * parentWidth / 4;
19136
- }
19137
- }
19138
- function calcTranslate(index, activeIndex, isVertical2) {
19139
- const rootEl = carouselContext.root.value;
19140
- if (!rootEl)
19141
- return 0;
19142
- const distance = (isVertical2 ? rootEl.offsetHeight : rootEl.offsetWidth) || 0;
19143
- return distance * (index - activeIndex);
19144
- }
19145
- const translateItem = (index, activeIndex, oldIndex) => {
19146
- var _a;
19147
- const _isCardType = vue.unref(isCardType);
19148
- const carouselItemLength = (_a = carouselContext.items.value.length) != null ? _a : Number.NaN;
19149
- const isActive = index === activeIndex;
19150
- if (!_isCardType && !isUndefined(oldIndex)) {
19151
- animating.value = isActive || index === oldIndex;
19152
- }
19153
- if (!isActive && carouselItemLength > 2 && carouselContext.loop) {
19154
- index = processIndex(index, activeIndex, carouselItemLength);
19155
- }
19156
- const _isVertical = vue.unref(isVertical);
19157
- active.value = isActive;
19158
- if (_isCardType) {
19159
- inStage.value = Math.round(Math.abs(index - activeIndex)) <= 1;
19160
- translate.value = calcCardTranslate(index, activeIndex);
19161
- scale.value = vue.unref(active) ? 1 : CARD_SCALE;
19162
- } else {
19163
- translate.value = calcTranslate(index, activeIndex, _isVertical);
19164
- }
19165
- ready.value = true;
19166
- };
19167
- function handleItemClick() {
19168
- if (carouselContext && vue.unref(isCardType)) {
19169
- const index = carouselContext.items.value.findIndex(({ uid }) => uid === instance.uid);
19170
- carouselContext.setActiveItem(index);
19171
- }
19172
- }
19173
- vue.onMounted(() => {
19174
- carouselContext.addItem({
19175
- props,
19176
- states: vue.reactive({
19177
- hover,
19178
- translate,
19179
- scale,
19180
- active,
19181
- ready,
19182
- inStage,
19183
- animating
19184
- }),
19185
- uid: instance.uid,
19186
- translateItem
19187
- });
19188
- });
19189
- vue.onUnmounted(() => {
19190
- carouselContext.removeItem(instance.uid);
19191
- });
19192
19252
  return (_ctx, _cache) => {
19193
19253
  return vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
19194
19254
  class: vue.normalizeClass([
19195
19255
  vue.unref(ns).e("item"),
19196
- vue.unref(ns).is("active", active.value),
19197
- vue.unref(ns).is("in-stage", inStage.value),
19198
- vue.unref(ns).is("hover", hover.value),
19199
- vue.unref(ns).is("animating", animating.value),
19256
+ vue.unref(ns).is("active", vue.unref(active)),
19257
+ vue.unref(ns).is("in-stage", vue.unref(inStage)),
19258
+ vue.unref(ns).is("hover", vue.unref(hover)),
19259
+ vue.unref(ns).is("animating", vue.unref(animating)),
19200
19260
  { [vue.unref(ns).em("item", "card")]: vue.unref(isCardType) }
19201
19261
  ]),
19202
19262
  style: vue.normalizeStyle(vue.unref(itemStyle)),
19203
- onClick: handleItemClick
19263
+ onClick: _cache[0] || (_cache[0] = (...args) => vue.unref(handleItemClick) && vue.unref(handleItemClick)(...args))
19204
19264
  }, [
19205
19265
  vue.unref(isCardType) ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
19206
19266
  key: 0,
19207
19267
  class: vue.normalizeClass(vue.unref(ns).e("mask"))
19208
19268
  }, null, 2)), [
19209
- [vue.vShow, !active.value]
19269
+ [vue.vShow, !vue.unref(active)]
19210
19270
  ]) : vue.createCommentVNode("v-if", true),
19211
19271
  vue.renderSlot(_ctx.$slots, "default")
19212
19272
  ], 6)), [
19213
- [vue.vShow, ready.value]
19273
+ [vue.vShow, vue.unref(ready)]
19214
19274
  ]);
19215
19275
  };
19216
19276
  }
@@ -21000,12 +21060,6 @@
21000
21060
 
21001
21061
  const ElTag = withInstall(Tag);
21002
21062
 
21003
- const DEFAULT_INPUT_HEIGHT = 40;
21004
- const INPUT_HEIGHT_MAP = {
21005
- large: 36,
21006
- default: 32,
21007
- small: 28
21008
- };
21009
21063
  const popperOptions = {
21010
21064
  modifiers: [
21011
21065
  {
@@ -21119,6 +21173,7 @@
21119
21173
  const isOnComposition = vue.ref(false);
21120
21174
  const isDisabled = vue.computed(() => props.disabled || (form == null ? void 0 : form.disabled));
21121
21175
  const inputPlaceholder = vue.computed(() => props.placeholder || t("el.cascader.placeholder"));
21176
+ const currentPlaceholder = vue.computed(() => searchInputValue.value || presentTags.value.length > 0 ? "" : inputPlaceholder.value);
21122
21177
  const realSize = useSize();
21123
21178
  const tagSize = vue.computed(() => ["small"].includes(realSize.value) ? "small" : "default");
21124
21179
  const multiple = vue.computed(() => !!props.props.multiple);
@@ -21136,7 +21191,7 @@
21136
21191
  const presentText = vue.computed(() => {
21137
21192
  const { showAllLevels, separator } = props;
21138
21193
  const nodes = checkedNodes.value;
21139
- return nodes.length ? multiple.value ? " " : nodes[0].calcText(showAllLevels, separator) : "";
21194
+ return nodes.length ? multiple.value ? "" : nodes[0].calcText(showAllLevels, separator) : "";
21140
21195
  });
21141
21196
  const checkedValue = vue.computed({
21142
21197
  get() {
@@ -21397,10 +21452,9 @@
21397
21452
  });
21398
21453
  vue.watch(presentText, syncPresentTextValue, { immediate: true });
21399
21454
  vue.onMounted(() => {
21400
- var _a;
21401
- const inputEl = (_a = input.value) == null ? void 0 : _a.$el;
21402
- inputInitialHeight = (inputEl == null ? void 0 : inputEl.offsetHeight) || INPUT_HEIGHT_MAP[realSize.value] || DEFAULT_INPUT_HEIGHT;
21403
- useResizeObserver(inputEl, updateStyle);
21455
+ const inputInner = input.value.input;
21456
+ inputInitialHeight = inputInner.offsetHeight;
21457
+ useResizeObserver(inputInner, updateStyle);
21404
21458
  });
21405
21459
  return {
21406
21460
  popperOptions,
@@ -21413,6 +21467,7 @@
21413
21467
  popperVisible,
21414
21468
  inputHover,
21415
21469
  inputPlaceholder,
21470
+ currentPlaceholder,
21416
21471
  filtering,
21417
21472
  presentText,
21418
21473
  checkedValue,
@@ -21502,7 +21557,7 @@
21502
21557
  ref: "input",
21503
21558
  modelValue: _ctx.inputValue,
21504
21559
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.inputValue = $event),
21505
- placeholder: _ctx.searchInputValue ? "" : _ctx.inputPlaceholder,
21560
+ placeholder: _ctx.currentPlaceholder,
21506
21561
  readonly: _ctx.readonly,
21507
21562
  disabled: _ctx.isDisabled,
21508
21563
  "validate-event": false,
@@ -21843,6 +21898,46 @@
21843
21898
  [CHANGE_EVENT]: emitChangeFn
21844
21899
  };
21845
21900
 
21901
+ const useCollapse = (props, emit) => {
21902
+ const activeNames = vue.ref(castArray$1(props.modelValue));
21903
+ const setActiveNames = (_activeNames) => {
21904
+ activeNames.value = _activeNames;
21905
+ const value = props.accordion ? activeNames.value[0] : activeNames.value;
21906
+ emit(UPDATE_MODEL_EVENT, value);
21907
+ emit(CHANGE_EVENT, value);
21908
+ };
21909
+ const handleItemClick = (name) => {
21910
+ if (props.accordion) {
21911
+ setActiveNames([activeNames.value[0] === name ? "" : name]);
21912
+ } else {
21913
+ const _activeNames = [...activeNames.value];
21914
+ const index = _activeNames.indexOf(name);
21915
+ if (index > -1) {
21916
+ _activeNames.splice(index, 1);
21917
+ } else {
21918
+ _activeNames.push(name);
21919
+ }
21920
+ setActiveNames(_activeNames);
21921
+ }
21922
+ };
21923
+ vue.watch(() => props.modelValue, () => activeNames.value = castArray$1(props.modelValue), { deep: true });
21924
+ vue.provide(collapseContextKey, {
21925
+ activeNames,
21926
+ handleItemClick
21927
+ });
21928
+ return {
21929
+ activeNames,
21930
+ setActiveNames
21931
+ };
21932
+ };
21933
+ const useCollapseDOM = () => {
21934
+ const ns = useNamespace("collapse");
21935
+ const rootKls = vue.computed(() => ns.b());
21936
+ return {
21937
+ rootKls
21938
+ };
21939
+ };
21940
+
21846
21941
  const __default__$Z = vue.defineComponent({
21847
21942
  name: "ElCollapse"
21848
21943
  });
@@ -21852,42 +21947,15 @@
21852
21947
  emits: collapseEmits,
21853
21948
  setup(__props, { expose, emit }) {
21854
21949
  const props = __props;
21855
- const ns = useNamespace("collapse");
21856
- const activeNames = vue.ref(castArray$1(props.modelValue));
21857
- const setActiveNames = (_activeNames) => {
21858
- activeNames.value = _activeNames;
21859
- const value = props.accordion ? activeNames.value[0] : activeNames.value;
21860
- emit(UPDATE_MODEL_EVENT, value);
21861
- emit(CHANGE_EVENT, value);
21862
- };
21863
- const handleItemClick = (name) => {
21864
- if (props.accordion) {
21865
- setActiveNames([
21866
- (activeNames.value[0] || activeNames.value[0] === 0) && activeNames.value[0] === name ? "" : name
21867
- ]);
21868
- } else {
21869
- const _activeNames = [...activeNames.value];
21870
- const index = _activeNames.indexOf(name);
21871
- if (index > -1) {
21872
- _activeNames.splice(index, 1);
21873
- } else {
21874
- _activeNames.push(name);
21875
- }
21876
- setActiveNames(_activeNames);
21877
- }
21878
- };
21879
- vue.watch(() => props.modelValue, () => activeNames.value = castArray$1(props.modelValue), { deep: true });
21880
- vue.provide(collapseContextKey, {
21881
- activeNames,
21882
- handleItemClick
21883
- });
21950
+ const { activeNames, setActiveNames } = useCollapse(props, emit);
21951
+ const { rootKls } = useCollapseDOM();
21884
21952
  expose({
21885
21953
  activeNames,
21886
21954
  setActiveNames
21887
21955
  });
21888
21956
  return (_ctx, _cache) => {
21889
21957
  return vue.openBlock(), vue.createElementBlock("div", {
21890
- class: vue.normalizeClass(vue.unref(ns).b()),
21958
+ class: vue.normalizeClass(vue.unref(rootKls)),
21891
21959
  role: "tablist",
21892
21960
  "aria-multiselectable": "true"
21893
21961
  }, [
@@ -21987,8 +22055,73 @@
21987
22055
  disabled: Boolean
21988
22056
  });
21989
22057
 
22058
+ const useCollapseItem = (props) => {
22059
+ const collapse = vue.inject(collapseContextKey);
22060
+ const focusing = vue.ref(false);
22061
+ const isClick = vue.ref(false);
22062
+ const id = vue.ref(generateId());
22063
+ const isActive = vue.computed(() => collapse == null ? void 0 : collapse.activeNames.value.includes(props.name));
22064
+ const handleFocus = () => {
22065
+ setTimeout(() => {
22066
+ if (!isClick.value) {
22067
+ focusing.value = true;
22068
+ } else {
22069
+ isClick.value = false;
22070
+ }
22071
+ }, 50);
22072
+ };
22073
+ const handleHeaderClick = () => {
22074
+ if (props.disabled)
22075
+ return;
22076
+ collapse == null ? void 0 : collapse.handleItemClick(props.name);
22077
+ focusing.value = false;
22078
+ isClick.value = true;
22079
+ };
22080
+ const handleEnterClick = () => {
22081
+ collapse == null ? void 0 : collapse.handleItemClick(props.name);
22082
+ };
22083
+ return {
22084
+ focusing,
22085
+ id,
22086
+ isActive,
22087
+ handleFocus,
22088
+ handleHeaderClick,
22089
+ handleEnterClick
22090
+ };
22091
+ };
22092
+ const useCollapseItemDOM = (props, { focusing, isActive, id }) => {
22093
+ const ns = useNamespace("collapse");
22094
+ const rootKls = vue.computed(() => [
22095
+ ns.b("item"),
22096
+ ns.is("active", vue.unref(isActive)),
22097
+ ns.is("disabled", props.disabled)
22098
+ ]);
22099
+ const headKls = vue.computed(() => [
22100
+ ns.be("item", "header"),
22101
+ ns.is("active", vue.unref(isActive)),
22102
+ { focusing: vue.unref(focusing) && !props.disabled }
22103
+ ]);
22104
+ const arrowKls = vue.computed(() => [
22105
+ ns.be("item", "arrow"),
22106
+ ns.is("active", vue.unref(isActive))
22107
+ ]);
22108
+ const itemWrapperKls = vue.computed(() => ns.be("item", "wrap"));
22109
+ const itemContentKls = vue.computed(() => ns.be("item", "content"));
22110
+ const scopedContentId = vue.computed(() => ns.b(`content-${vue.unref(id)}`));
22111
+ const scopedHeadId = vue.computed(() => ns.b(`head-${vue.unref(id)}`));
22112
+ return {
22113
+ arrowKls,
22114
+ headKls,
22115
+ rootKls,
22116
+ itemWrapperKls,
22117
+ itemContentKls,
22118
+ scopedContentId,
22119
+ scopedHeadId
22120
+ };
22121
+ };
22122
+
21990
22123
  const _hoisted_1$N = ["aria-expanded", "aria-controls", "aria-describedby"];
21991
- const _hoisted_2$v = ["id", "tabindex", "onKeypress"];
22124
+ const _hoisted_2$v = ["id", "tabindex"];
21992
22125
  const _hoisted_3$g = ["id", "aria-hidden", "aria-labelledby"];
21993
22126
  const __default__$X = vue.defineComponent({
21994
22127
  name: "ElCollapseItem"
@@ -21998,67 +22131,51 @@
21998
22131
  props: collapseItemProps,
21999
22132
  setup(__props, { expose }) {
22000
22133
  const props = __props;
22001
- const collapse = vue.inject(collapseContextKey);
22002
- const ns = useNamespace("collapse");
22003
- const focusing = vue.ref(false);
22004
- const isClick = vue.ref(false);
22005
- const id = vue.ref(generateId());
22006
- const isActive = vue.computed(() => collapse == null ? void 0 : collapse.activeNames.value.includes(props.name));
22007
- const handleFocus = () => {
22008
- setTimeout(() => {
22009
- if (!isClick.value) {
22010
- focusing.value = true;
22011
- } else {
22012
- isClick.value = false;
22013
- }
22014
- }, 50);
22015
- };
22016
- const handleHeaderClick = () => {
22017
- if (props.disabled)
22018
- return;
22019
- collapse == null ? void 0 : collapse.handleItemClick(props.name);
22020
- focusing.value = false;
22021
- isClick.value = true;
22022
- };
22023
- const handleEnterClick = () => {
22024
- collapse == null ? void 0 : collapse.handleItemClick(props.name);
22025
- };
22134
+ const {
22135
+ focusing,
22136
+ id,
22137
+ isActive,
22138
+ handleFocus,
22139
+ handleHeaderClick,
22140
+ handleEnterClick
22141
+ } = useCollapseItem(props);
22142
+ const {
22143
+ arrowKls,
22144
+ headKls,
22145
+ rootKls,
22146
+ itemWrapperKls,
22147
+ itemContentKls,
22148
+ scopedContentId,
22149
+ scopedHeadId
22150
+ } = useCollapseItemDOM(props, { focusing, isActive, id });
22026
22151
  expose({
22027
22152
  isActive
22028
22153
  });
22029
22154
  return (_ctx, _cache) => {
22030
22155
  return vue.openBlock(), vue.createElementBlock("div", {
22031
- class: vue.normalizeClass([
22032
- vue.unref(ns).b("item"),
22033
- vue.unref(ns).is("active", vue.unref(isActive)),
22034
- vue.unref(ns).is("disabled", _ctx.disabled)
22035
- ])
22156
+ class: vue.normalizeClass(vue.unref(rootKls))
22036
22157
  }, [
22037
22158
  vue.createElementVNode("div", {
22038
22159
  role: "tab",
22039
22160
  "aria-expanded": vue.unref(isActive),
22040
- "aria-controls": vue.unref(ns).b(`content-${id.value}`),
22041
- "aria-describedby": vue.unref(ns).b(`content-${id.value}`)
22161
+ "aria-controls": vue.unref(scopedContentId),
22162
+ "aria-describedby": vue.unref(scopedContentId)
22042
22163
  }, [
22043
22164
  vue.createElementVNode("div", {
22044
- id: vue.unref(ns).b(`head-${id.value}`),
22045
- class: vue.normalizeClass([
22046
- vue.unref(ns).be("item", "header"),
22047
- vue.unref(ns).is("active", vue.unref(isActive)),
22048
- { focusing: focusing.value && !_ctx.disabled }
22049
- ]),
22165
+ id: vue.unref(scopedHeadId),
22166
+ class: vue.normalizeClass(vue.unref(headKls)),
22050
22167
  role: "button",
22051
22168
  tabindex: _ctx.disabled ? -1 : 0,
22052
- onClick: handleHeaderClick,
22053
- onKeypress: vue.withKeys(vue.withModifiers(handleEnterClick, ["stop", "prevent"]), ["space", "enter"]),
22054
- onFocus: handleFocus,
22055
- onBlur: _cache[0] || (_cache[0] = ($event) => focusing.value = false)
22169
+ onClick: _cache[0] || (_cache[0] = (...args) => vue.unref(handleHeaderClick) && vue.unref(handleHeaderClick)(...args)),
22170
+ onKeypress: _cache[1] || (_cache[1] = vue.withKeys(vue.withModifiers((...args) => vue.unref(handleEnterClick) && vue.unref(handleEnterClick)(...args), ["stop", "prevent"]), ["space", "enter"])),
22171
+ onFocus: _cache[2] || (_cache[2] = (...args) => vue.unref(handleFocus) && vue.unref(handleFocus)(...args)),
22172
+ onBlur: _cache[3] || (_cache[3] = ($event) => focusing.value = false)
22056
22173
  }, [
22057
22174
  vue.renderSlot(_ctx.$slots, "title", {}, () => [
22058
22175
  vue.createTextVNode(vue.toDisplayString(_ctx.title), 1)
22059
22176
  ]),
22060
22177
  vue.createVNode(vue.unref(ElIcon), {
22061
- class: vue.normalizeClass([vue.unref(ns).be("item", "arrow"), vue.unref(ns).is("active", vue.unref(isActive))])
22178
+ class: vue.normalizeClass(vue.unref(arrowKls))
22062
22179
  }, {
22063
22180
  default: vue.withCtx(() => [
22064
22181
  vue.createVNode(vue.unref(arrow_right_default))
@@ -22070,14 +22187,14 @@
22070
22187
  vue.createVNode(vue.unref(_CollapseTransition), null, {
22071
22188
  default: vue.withCtx(() => [
22072
22189
  vue.withDirectives(vue.createElementVNode("div", {
22073
- id: vue.unref(ns).b(`content-${id.value}`),
22074
- class: vue.normalizeClass(vue.unref(ns).be("item", "wrap")),
22190
+ id: vue.unref(scopedContentId),
22191
+ class: vue.normalizeClass(vue.unref(itemWrapperKls)),
22075
22192
  role: "tabpanel",
22076
22193
  "aria-hidden": !vue.unref(isActive),
22077
- "aria-labelledby": vue.unref(ns).b(`head-${id.value}`)
22194
+ "aria-labelledby": vue.unref(scopedHeadId)
22078
22195
  }, [
22079
22196
  vue.createElementVNode("div", {
22080
- class: vue.normalizeClass(vue.unref(ns).be("item", "content"))
22197
+ class: vue.normalizeClass(vue.unref(itemContentKls))
22081
22198
  }, [
22082
22199
  vue.renderSlot(_ctx.$slots, "default")
22083
22200
  ], 2)
@@ -25756,12 +25873,12 @@
25756
25873
  const { t } = useLocale();
25757
25874
  const leftPrevYear = () => {
25758
25875
  leftDate.value = leftDate.value.subtract(1, "year");
25759
- if (!unlinkPanels) {
25876
+ if (!unlinkPanels.value) {
25760
25877
  rightDate.value = rightDate.value.subtract(1, "year");
25761
25878
  }
25762
25879
  };
25763
25880
  const rightNextYear = () => {
25764
- if (!unlinkPanels) {
25881
+ if (!unlinkPanels.value) {
25765
25882
  leftDate.value = leftDate.value.add(1, "year");
25766
25883
  }
25767
25884
  rightDate.value = rightDate.value.add(1, "year");
@@ -27635,7 +27752,8 @@
27635
27752
  },
27636
27753
  buttonProps: {
27637
27754
  type: definePropType(Object)
27638
- }
27755
+ },
27756
+ teleported: useTooltipContentProps.teleported
27639
27757
  });
27640
27758
  const dropdownItemProps = buildProps({
27641
27759
  command: {
@@ -27833,7 +27951,7 @@
27833
27951
  "virtual-triggering": _ctx.splitButton,
27834
27952
  disabled: _ctx.disabled,
27835
27953
  transition: `${_ctx.ns.namespace.value}-zoom-in-top`,
27836
- teleported: "",
27954
+ teleported: _ctx.teleported,
27837
27955
  pure: "",
27838
27956
  persistent: "",
27839
27957
  onBeforeShow: _ctx.handleBeforeShowTooltip,
@@ -27886,7 +28004,7 @@
27886
28004
  }, 8, ["id", "tabindex"])
27887
28005
  ])
27888
28006
  } : void 0
27889
- ]), 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"]),
28007
+ ]), 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"]),
27890
28008
  _ctx.splitButton ? (vue.openBlock(), vue.createBlock(_component_el_button_group, { key: 0 }, {
27891
28009
  default: vue.withCtx(() => [
27892
28010
  vue.createVNode(_component_el_button, vue.mergeProps({ ref: "referenceElementRef" }, _ctx.buttonProps, {
@@ -28625,6 +28743,8 @@
28625
28743
  }
28626
28744
  return result;
28627
28745
  } catch (e) {
28746
+ if (e instanceof Error)
28747
+ throw e;
28628
28748
  const invalidFields = e;
28629
28749
  if (props.scrollToError) {
28630
28750
  scrollToField(Object.keys(invalidFields)[0]);
@@ -30994,7 +31114,7 @@
30994
31114
  const increase = () => {
30995
31115
  if (props.readonly || inputNumberDisabled.value || maxDisabled.value)
30996
31116
  return;
30997
- const value = props.modelValue || 0;
31117
+ const value = Number(displayValue.value) || 0;
30998
31118
  const newVal = ensurePrecision(value);
30999
31119
  setCurrentValue(newVal);
31000
31120
  emit(INPUT_EVENT, data.currentValue);
@@ -31002,7 +31122,7 @@
31002
31122
  const decrease = () => {
31003
31123
  if (props.readonly || inputNumberDisabled.value || minDisabled.value)
31004
31124
  return;
31005
- const value = props.modelValue || 0;
31125
+ const value = Number(displayValue.value) || 0;
31006
31126
  const newVal = ensurePrecision(value, -1);
31007
31127
  setCurrentValue(newVal);
31008
31128
  emit(INPUT_EVENT, data.currentValue);
@@ -32758,10 +32878,10 @@
32758
32878
  if (!val) {
32759
32879
  if (props.filterable) {
32760
32880
  if (isFunction(props.filterMethod)) {
32761
- props.filterMethod();
32881
+ props.filterMethod("");
32762
32882
  }
32763
32883
  if (isFunction(props.remoteMethod)) {
32764
- props.remoteMethod();
32884
+ props.remoteMethod("");
32765
32885
  }
32766
32886
  }
32767
32887
  input.value && input.value.blur();
@@ -32832,7 +32952,7 @@
32832
32952
  flush: "post"
32833
32953
  });
32834
32954
  vue.watch(() => states.hoverIndex, (val) => {
32835
- if (typeof val === "number" && val > -1) {
32955
+ if (isNumber(val) && val > -1) {
32836
32956
  hoverOption.value = optionsArray.value[val] || {};
32837
32957
  } else {
32838
32958
  hoverOption.value = {};
@@ -32861,7 +32981,7 @@
32861
32981
  const handleQueryChange = async (val) => {
32862
32982
  if (states.previousQuery === val || states.isOnComposition)
32863
32983
  return;
32864
- if (states.previousQuery === null && (typeof props.filterMethod === "function" || typeof props.remoteMethod === "function")) {
32984
+ if (states.previousQuery === null && (isFunction(props.filterMethod) || isFunction(props.remoteMethod))) {
32865
32985
  states.previousQuery = val;
32866
32986
  return;
32867
32987
  }
@@ -32880,10 +33000,10 @@
32880
33000
  resetInputHeight();
32881
33001
  });
32882
33002
  }
32883
- if (props.remote && typeof props.remoteMethod === "function") {
33003
+ if (props.remote && isFunction(props.remoteMethod)) {
32884
33004
  states.hoverIndex = -1;
32885
33005
  props.remoteMethod(val);
32886
- } else if (typeof props.filterMethod === "function") {
33006
+ } else if (isFunction(props.filterMethod)) {
32887
33007
  props.filterMethod(val);
32888
33008
  vue.triggerRef(groupQueryChange);
32889
33009
  } else {
@@ -33039,7 +33159,7 @@
33039
33159
  const deleteSelected = (event) => {
33040
33160
  event.stopPropagation();
33041
33161
  const value = props.multiple ? [] : "";
33042
- if (typeof value !== "string") {
33162
+ if (!isString(value)) {
33043
33163
  for (const item of states.selected) {
33044
33164
  if (item.isDisabled)
33045
33165
  value.push(item.value);
@@ -38142,7 +38262,7 @@
38142
38262
  selectWidth: 200,
38143
38263
  initialInputHeight: 0,
38144
38264
  previousQuery: null,
38145
- previousValue: "",
38265
+ previousValue: void 0,
38146
38266
  query: "",
38147
38267
  selectedLabel: "",
38148
38268
  softFocus: false,
@@ -38331,7 +38451,7 @@
38331
38451
  const update = (val) => {
38332
38452
  emit(UPDATE_MODEL_EVENT, val);
38333
38453
  emitChange(val);
38334
- states.previousValue = val.toString();
38454
+ states.previousValue = val == null ? void 0 : val.toString();
38335
38455
  };
38336
38456
  const getValueIndex = (arr = [], value) => {
38337
38457
  if (!isObject$1(value)) {
@@ -38497,7 +38617,7 @@
38497
38617
  if (isArray(props.modelValue)) {
38498
38618
  emptyValue = [];
38499
38619
  } else {
38500
- emptyValue = "";
38620
+ emptyValue = void 0;
38501
38621
  }
38502
38622
  states.softFocus = true;
38503
38623
  if (props.multiple) {
@@ -38617,7 +38737,7 @@
38617
38737
  });
38618
38738
  } else {
38619
38739
  states.cachedOptions = [];
38620
- states.previousValue = "";
38740
+ states.previousValue = void 0;
38621
38741
  }
38622
38742
  } else {
38623
38743
  if (hasModelValue.value) {
@@ -38632,7 +38752,7 @@
38632
38752
  }
38633
38753
  } else {
38634
38754
  states.selectedLabel = "";
38635
- states.previousValue = "";
38755
+ states.previousValue = void 0;
38636
38756
  }
38637
38757
  }
38638
38758
  clearAllNewOption();
@@ -41175,26 +41295,27 @@
41175
41295
  let changed = false;
41176
41296
  const index = statusArr.indexOf(row);
41177
41297
  const included = index !== -1;
41178
- const addRow = () => {
41179
- statusArr.push(row);
41180
- changed = true;
41181
- };
41182
- const removeRow = () => {
41183
- statusArr.splice(index, 1);
41298
+ const toggleStatus = (type) => {
41299
+ if (type === "add") {
41300
+ statusArr.push(row);
41301
+ } else {
41302
+ statusArr.splice(index, 1);
41303
+ }
41184
41304
  changed = true;
41305
+ if (isArray(row.children)) {
41306
+ row.children.forEach((item) => {
41307
+ toggleRowStatus(statusArr, item, newVal != null ? newVal : !included);
41308
+ });
41309
+ }
41185
41310
  };
41186
- if (typeof newVal === "boolean") {
41311
+ if (isBoolean(newVal)) {
41187
41312
  if (newVal && !included) {
41188
- addRow();
41313
+ toggleStatus("add");
41189
41314
  } else if (!newVal && included) {
41190
- removeRow();
41315
+ toggleStatus("remove");
41191
41316
  }
41192
41317
  } else {
41193
- if (included) {
41194
- removeRow();
41195
- } else {
41196
- addRow();
41197
- }
41318
+ included ? toggleStatus("remove") : toggleStatus("add");
41198
41319
  }
41199
41320
  return changed;
41200
41321
  }
@@ -41287,22 +41408,29 @@
41287
41408
  scrollContainer == null ? void 0 : scrollContainer.addEventListener("scroll", removePopper);
41288
41409
  return popperInstance;
41289
41410
  }
41411
+ function getCurrentColumns(column) {
41412
+ if (column.children) {
41413
+ return flatMap(column.children, getCurrentColumns);
41414
+ } else {
41415
+ return [column];
41416
+ }
41417
+ }
41418
+ function getColSpan(colSpan, column) {
41419
+ return colSpan + column.colSpan;
41420
+ }
41290
41421
  const isFixedColumn = (index, fixed, store, realColumns) => {
41291
41422
  let start = 0;
41292
41423
  let after = index;
41424
+ const columns = store.states.columns.value;
41293
41425
  if (realColumns) {
41294
- if (realColumns[index].colSpan > 1) {
41295
- return {};
41296
- }
41297
- for (let i = 0; i < index; i++) {
41298
- start += realColumns[i].colSpan;
41299
- }
41300
- after = start + realColumns[index].colSpan - 1;
41426
+ const curColumns = getCurrentColumns(realColumns[index]);
41427
+ const preColumns = columns.slice(0, columns.indexOf(curColumns[0]));
41428
+ start = preColumns.reduce(getColSpan, 0);
41429
+ after = start + curColumns.reduce(getColSpan, 0) - 1;
41301
41430
  } else {
41302
41431
  start = index;
41303
41432
  }
41304
41433
  let fixedLayout;
41305
- const columns = store.states.columns;
41306
41434
  switch (fixed) {
41307
41435
  case "left":
41308
41436
  if (after < store.states.fixedLeafColumnsLength.value) {
@@ -41310,14 +41438,14 @@
41310
41438
  }
41311
41439
  break;
41312
41440
  case "right":
41313
- if (start >= columns.value.length - store.states.rightFixedLeafColumnsLength.value) {
41441
+ if (start >= columns.length - store.states.rightFixedLeafColumnsLength.value) {
41314
41442
  fixedLayout = "right";
41315
41443
  }
41316
41444
  break;
41317
41445
  default:
41318
41446
  if (after < store.states.fixedLeafColumnsLength.value) {
41319
41447
  fixedLayout = "left";
41320
- } else if (start >= columns.value.length - store.states.rightFixedLeafColumnsLength.value) {
41448
+ } else if (start >= columns.length - store.states.rightFixedLeafColumnsLength.value) {
41321
41449
  fixedLayout = "right";
41322
41450
  }
41323
41451
  }
@@ -41329,11 +41457,11 @@
41329
41457
  };
41330
41458
  const getFixedColumnsClass = (namespace, index, fixed, store, realColumns, offset = 0) => {
41331
41459
  const classes = [];
41332
- const { direction, start } = isFixedColumn(index, fixed, store, realColumns);
41460
+ const { direction, start, after } = isFixedColumn(index, fixed, store, realColumns);
41333
41461
  if (direction) {
41334
41462
  const isLeft = direction === "left";
41335
41463
  classes.push(`${namespace}-fixed-column--${direction}`);
41336
- if (isLeft && start + offset === store.states.fixedLeafColumnsLength.value - 1) {
41464
+ if (isLeft && after + offset === store.states.fixedLeafColumnsLength.value - 1) {
41337
41465
  classes.push("is-last-column");
41338
41466
  } else if (!isLeft && start - offset === store.states.columns.value.length - store.states.rightFixedLeafColumnsLength.value) {
41339
41467
  classes.push("is-first-column");
@@ -41345,7 +41473,11 @@
41345
41473
  return offset + (column.realWidth === null || Number.isNaN(column.realWidth) ? Number(column.width) : column.realWidth);
41346
41474
  }
41347
41475
  const getFixedColumnOffset = (index, fixed, store, realColumns) => {
41348
- const { direction, start = 0 } = isFixedColumn(index, fixed, store, realColumns);
41476
+ const {
41477
+ direction,
41478
+ start = 0,
41479
+ after = 0
41480
+ } = isFixedColumn(index, fixed, store, realColumns);
41349
41481
  if (!direction) {
41350
41482
  return;
41351
41483
  }
@@ -41353,9 +41485,9 @@
41353
41485
  const isLeft = direction === "left";
41354
41486
  const columns = store.states.columns.value;
41355
41487
  if (isLeft) {
41356
- styles.left = columns.slice(0, index).reduce(getOffset, 0);
41488
+ styles.left = columns.slice(0, start).reduce(getOffset, 0);
41357
41489
  } else {
41358
- styles.right = columns.slice(start + 1).reverse().reduce(getOffset, 0);
41490
+ styles.right = columns.slice(after + 1).reverse().reduce(getOffset, 0);
41359
41491
  }
41360
41492
  return styles;
41361
41493
  };
@@ -41741,7 +41873,17 @@
41741
41873
  if (!rowKey.value)
41742
41874
  throw new Error("[ElTable] prop row-key is required");
41743
41875
  };
41876
+ const updateChildFixed = (column) => {
41877
+ var _a2;
41878
+ (_a2 = column.children) == null ? void 0 : _a2.forEach((childColumn) => {
41879
+ childColumn.fixed = column.fixed;
41880
+ updateChildFixed(childColumn);
41881
+ });
41882
+ };
41744
41883
  const updateColumns = () => {
41884
+ _columns.value.forEach((column) => {
41885
+ updateChildFixed(column);
41886
+ });
41745
41887
  fixedColumns.value = _columns.value.filter((column) => column.fixed === true || column.fixed === "left");
41746
41888
  rightFixedColumns.value = _columns.value.filter((column) => column.fixed === "right");
41747
41889
  if (fixedColumns.value.length > 0 && _columns.value[0] && _columns.value[0].type === "selection" && !_columns.value[0].fixed) {
@@ -43041,13 +43183,13 @@
43041
43183
  column
43042
43184
  });
43043
43185
  }
43044
- const fixedStyle = column.isSubColumn ? null : getFixedColumnOffset(columnIndex, column.fixed, props.store, row);
43186
+ const fixedStyle = getFixedColumnOffset(columnIndex, column.fixed, props.store, row);
43045
43187
  ensurePosition(fixedStyle, "left");
43046
43188
  ensurePosition(fixedStyle, "right");
43047
43189
  return Object.assign({}, headerCellStyles, fixedStyle);
43048
43190
  };
43049
43191
  const getHeaderCellClass = (rowIndex, columnIndex, row, column) => {
43050
- const fixedClasses = column.isSubColumn ? [] : getFixedColumnsClass(ns.b(), columnIndex, column.fixed, props.store, row);
43192
+ const fixedClasses = getFixedColumnsClass(ns.b(), columnIndex, column.fixed, props.store, row);
43051
43193
  const classes = [
43052
43194
  column.id,
43053
43195
  column.order,
@@ -43445,13 +43587,13 @@
43445
43587
  column
43446
43588
  });
43447
43589
  }
43448
- const fixedStyle = column.isSubColumn ? null : getFixedColumnOffset(columnIndex, props == null ? void 0 : props.fixed, props.store);
43590
+ const fixedStyle = getFixedColumnOffset(columnIndex, props == null ? void 0 : props.fixed, props.store);
43449
43591
  ensurePosition(fixedStyle, "left");
43450
43592
  ensurePosition(fixedStyle, "right");
43451
43593
  return Object.assign({}, cellStyles, fixedStyle);
43452
43594
  };
43453
43595
  const getCellClass = (rowIndex, columnIndex, row, column, offset) => {
43454
- const fixedClasses = column.isSubColumn ? [] : getFixedColumnsClass(ns.b(), columnIndex, props == null ? void 0 : props.fixed, props.store, void 0, offset);
43596
+ const fixedClasses = getFixedColumnsClass(ns.b(), columnIndex, props == null ? void 0 : props.fixed, props.store, void 0, offset);
43455
43597
  const classes = [column.id, column.align, column.className, ...fixedClasses];
43456
43598
  const cellClassName = parent == null ? void 0 : parent.props.cellClassName;
43457
43599
  if (typeof cellClassName === "string") {
@@ -47747,19 +47889,6 @@
47747
47889
  }
47748
47890
  });
47749
47891
 
47750
- const getTabPanes = (vm) => {
47751
- const nodes = flattedChildren(vm.subTree);
47752
- return nodes.filter((n) => {
47753
- var _a;
47754
- return vue.isVNode(n) && ((_a = n.type) == null ? void 0 : _a.name) === "ElTabPane" && !!n.component;
47755
- });
47756
- };
47757
- const getOrderedPanes = (vm, panes) => {
47758
- const nodes = getTabPanes(vm);
47759
- const uids = nodes.map((n) => n.component.uid);
47760
- return uids.map((uid) => panes[uid]).filter((p) => !!p);
47761
- };
47762
-
47763
47892
  const tabsProps = buildProps({
47764
47893
  type: {
47765
47894
  type: String,
@@ -47805,11 +47934,13 @@
47805
47934
  expose
47806
47935
  }) {
47807
47936
  var _a, _b;
47808
- const vm = vue.getCurrentInstance();
47809
47937
  const ns = useNamespace("tabs");
47938
+ const {
47939
+ children: panes,
47940
+ addChild: registerPane,
47941
+ removeChild: unregisterPane
47942
+ } = useOrderedChildren(vue.getCurrentInstance(), "ElTabPane");
47810
47943
  const nav$ = vue.ref();
47811
- const panes = vue.shallowReactive({});
47812
- const orderedPanes = vue.shallowRef([]);
47813
47944
  const currentName = vue.ref((_b = (_a = props.modelValue) != null ? _a : props.activeName) != null ? _b : "0");
47814
47945
  const changeCurrentName = (value) => {
47815
47946
  currentName.value = value;
@@ -47861,22 +47992,12 @@
47861
47992
  await vue.nextTick();
47862
47993
  (_a2 = nav$.value) == null ? void 0 : _a2.scrollToActiveTab();
47863
47994
  });
47864
- {
47865
- const registerPane = (pane) => {
47866
- panes[pane.uid] = pane;
47867
- orderedPanes.value = getOrderedPanes(vm, panes);
47868
- };
47869
- const unregisterPane = (uid) => {
47870
- delete panes[uid];
47871
- orderedPanes.value = getOrderedPanes(vm, panes);
47872
- };
47873
- vue.provide(tabsRootContextKey, {
47874
- props,
47875
- currentName,
47876
- registerPane,
47877
- unregisterPane
47878
- });
47879
- }
47995
+ vue.provide(tabsRootContextKey, {
47996
+ props,
47997
+ currentName,
47998
+ registerPane,
47999
+ unregisterPane
48000
+ });
47880
48001
  expose({
47881
48002
  currentName
47882
48003
  });
@@ -47901,7 +48022,7 @@
47901
48022
  "currentName": currentName.value,
47902
48023
  "editable": props.editable,
47903
48024
  "type": props.type,
47904
- "panes": orderedPanes.value,
48025
+ "panes": panes.value,
47905
48026
  "stretch": props.stretch,
47906
48027
  "onTabClick": handleTabClick,
47907
48028
  "onTabRemove": handleTabRemove
@@ -51947,7 +52068,6 @@
51947
52068
  });
51948
52069
 
51949
52070
  const _hoisted_1$6 = ["aria-expanded", "aria-disabled", "aria-checked", "data-key", "onClick"];
51950
- const DEFAULT_ICON = "caret-right";
51951
52071
  const __default__$7 = vue.defineComponent({
51952
52072
  name: "ElTreeNode"
51953
52073
  });
@@ -51965,7 +52085,7 @@
51965
52085
  });
51966
52086
  const icon = vue.computed(() => {
51967
52087
  var _a;
51968
- return (_a = tree == null ? void 0 : tree.props.icon) != null ? _a : DEFAULT_ICON;
52088
+ return (_a = tree == null ? void 0 : tree.props.icon) != null ? _a : caret_right_default;
51969
52089
  });
51970
52090
  const handleClick = (e) => {
51971
52091
  emit("click", props.node, e);
@@ -52845,6 +52965,8 @@
52845
52965
  props.onChange(file, uploadFiles.value);
52846
52966
  };
52847
52967
  const handleStart = (file) => {
52968
+ if (isNil(file.uid))
52969
+ file.uid = genFileId();
52848
52970
  const uploadFile = {
52849
52971
  name: file.name,
52850
52972
  percentage: 0,