@element-plus/nightly 0.0.20250728 → 0.0.20250730

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 (598) hide show
  1. package/attributes.json +1 -1
  2. package/dist/index.css +1 -1
  3. package/dist/index.full.js +111 -84
  4. package/dist/index.full.min.js +10 -10
  5. package/dist/index.full.min.js.map +1 -1
  6. package/dist/index.full.min.mjs +8 -8
  7. package/dist/index.full.min.mjs.map +1 -1
  8. package/dist/index.full.mjs +111 -84
  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-eg.js +1 -1
  14. package/dist/locale/ar-eg.min.js +1 -1
  15. package/dist/locale/ar-eg.min.mjs +1 -1
  16. package/dist/locale/ar-eg.mjs +1 -1
  17. package/dist/locale/ar.js +1 -1
  18. package/dist/locale/ar.min.js +1 -1
  19. package/dist/locale/ar.min.mjs +1 -1
  20. package/dist/locale/ar.mjs +1 -1
  21. package/dist/locale/az.js +1 -1
  22. package/dist/locale/az.min.js +1 -1
  23. package/dist/locale/az.min.mjs +1 -1
  24. package/dist/locale/az.mjs +1 -1
  25. package/dist/locale/bg.js +1 -1
  26. package/dist/locale/bg.min.js +1 -1
  27. package/dist/locale/bg.min.mjs +1 -1
  28. package/dist/locale/bg.mjs +1 -1
  29. package/dist/locale/bn.js +1 -1
  30. package/dist/locale/bn.min.js +1 -1
  31. package/dist/locale/bn.min.mjs +1 -1
  32. package/dist/locale/bn.mjs +1 -1
  33. package/dist/locale/ca.js +1 -1
  34. package/dist/locale/ca.min.js +1 -1
  35. package/dist/locale/ca.min.mjs +1 -1
  36. package/dist/locale/ca.mjs +1 -1
  37. package/dist/locale/ckb.js +1 -1
  38. package/dist/locale/ckb.min.js +1 -1
  39. package/dist/locale/ckb.min.mjs +1 -1
  40. package/dist/locale/ckb.mjs +1 -1
  41. package/dist/locale/cs.js +1 -1
  42. package/dist/locale/cs.min.js +1 -1
  43. package/dist/locale/cs.min.mjs +1 -1
  44. package/dist/locale/cs.mjs +1 -1
  45. package/dist/locale/da.js +1 -1
  46. package/dist/locale/da.min.js +1 -1
  47. package/dist/locale/da.min.mjs +1 -1
  48. package/dist/locale/da.mjs +1 -1
  49. package/dist/locale/de.js +1 -1
  50. package/dist/locale/de.min.js +1 -1
  51. package/dist/locale/de.min.mjs +1 -1
  52. package/dist/locale/de.mjs +1 -1
  53. package/dist/locale/el.js +1 -1
  54. package/dist/locale/el.min.js +1 -1
  55. package/dist/locale/el.min.mjs +1 -1
  56. package/dist/locale/el.mjs +1 -1
  57. package/dist/locale/en.js +1 -1
  58. package/dist/locale/en.min.js +1 -1
  59. package/dist/locale/en.min.mjs +1 -1
  60. package/dist/locale/en.mjs +1 -1
  61. package/dist/locale/eo.js +1 -1
  62. package/dist/locale/eo.min.js +1 -1
  63. package/dist/locale/eo.min.mjs +1 -1
  64. package/dist/locale/eo.mjs +1 -1
  65. package/dist/locale/es.js +1 -1
  66. package/dist/locale/es.min.js +1 -1
  67. package/dist/locale/es.min.mjs +1 -1
  68. package/dist/locale/es.mjs +1 -1
  69. package/dist/locale/et.js +1 -1
  70. package/dist/locale/et.min.js +1 -1
  71. package/dist/locale/et.min.mjs +1 -1
  72. package/dist/locale/et.mjs +1 -1
  73. package/dist/locale/eu.js +1 -1
  74. package/dist/locale/eu.min.js +1 -1
  75. package/dist/locale/eu.min.mjs +1 -1
  76. package/dist/locale/eu.mjs +1 -1
  77. package/dist/locale/fa.js +1 -1
  78. package/dist/locale/fa.min.js +1 -1
  79. package/dist/locale/fa.min.mjs +1 -1
  80. package/dist/locale/fa.mjs +1 -1
  81. package/dist/locale/fi.js +1 -1
  82. package/dist/locale/fi.min.js +1 -1
  83. package/dist/locale/fi.min.mjs +1 -1
  84. package/dist/locale/fi.mjs +1 -1
  85. package/dist/locale/fr.js +1 -1
  86. package/dist/locale/fr.min.js +1 -1
  87. package/dist/locale/fr.min.mjs +1 -1
  88. package/dist/locale/fr.mjs +1 -1
  89. package/dist/locale/he.js +1 -1
  90. package/dist/locale/he.min.js +1 -1
  91. package/dist/locale/he.min.mjs +1 -1
  92. package/dist/locale/he.mjs +1 -1
  93. package/dist/locale/hi.js +1 -1
  94. package/dist/locale/hi.min.js +1 -1
  95. package/dist/locale/hi.min.mjs +1 -1
  96. package/dist/locale/hi.mjs +1 -1
  97. package/dist/locale/hr.js +1 -1
  98. package/dist/locale/hr.min.js +1 -1
  99. package/dist/locale/hr.min.mjs +1 -1
  100. package/dist/locale/hr.mjs +1 -1
  101. package/dist/locale/hu.js +1 -1
  102. package/dist/locale/hu.min.js +1 -1
  103. package/dist/locale/hu.min.mjs +1 -1
  104. package/dist/locale/hu.mjs +1 -1
  105. package/dist/locale/hy-am.js +1 -1
  106. package/dist/locale/hy-am.min.js +1 -1
  107. package/dist/locale/hy-am.min.mjs +1 -1
  108. package/dist/locale/hy-am.mjs +1 -1
  109. package/dist/locale/id.js +1 -1
  110. package/dist/locale/id.min.js +1 -1
  111. package/dist/locale/id.min.mjs +1 -1
  112. package/dist/locale/id.mjs +1 -1
  113. package/dist/locale/it.js +1 -1
  114. package/dist/locale/it.min.js +1 -1
  115. package/dist/locale/it.min.mjs +1 -1
  116. package/dist/locale/it.mjs +1 -1
  117. package/dist/locale/ja.js +1 -1
  118. package/dist/locale/ja.min.js +1 -1
  119. package/dist/locale/ja.min.mjs +1 -1
  120. package/dist/locale/ja.mjs +1 -1
  121. package/dist/locale/kk.js +1 -1
  122. package/dist/locale/kk.min.js +1 -1
  123. package/dist/locale/kk.min.mjs +1 -1
  124. package/dist/locale/kk.mjs +1 -1
  125. package/dist/locale/km.js +1 -1
  126. package/dist/locale/km.min.js +1 -1
  127. package/dist/locale/km.min.mjs +1 -1
  128. package/dist/locale/km.mjs +1 -1
  129. package/dist/locale/ko.js +1 -1
  130. package/dist/locale/ko.min.js +1 -1
  131. package/dist/locale/ko.min.mjs +1 -1
  132. package/dist/locale/ko.mjs +1 -1
  133. package/dist/locale/ku.js +1 -1
  134. package/dist/locale/ku.min.js +1 -1
  135. package/dist/locale/ku.min.mjs +1 -1
  136. package/dist/locale/ku.mjs +1 -1
  137. package/dist/locale/ky.js +1 -1
  138. package/dist/locale/ky.min.js +1 -1
  139. package/dist/locale/ky.min.mjs +1 -1
  140. package/dist/locale/ky.mjs +1 -1
  141. package/dist/locale/lo.js +1 -1
  142. package/dist/locale/lo.min.js +1 -1
  143. package/dist/locale/lo.min.mjs +1 -1
  144. package/dist/locale/lo.mjs +1 -1
  145. package/dist/locale/lt.js +1 -1
  146. package/dist/locale/lt.min.js +1 -1
  147. package/dist/locale/lt.min.mjs +1 -1
  148. package/dist/locale/lt.mjs +1 -1
  149. package/dist/locale/lv.js +1 -1
  150. package/dist/locale/lv.min.js +1 -1
  151. package/dist/locale/lv.min.mjs +1 -1
  152. package/dist/locale/lv.mjs +1 -1
  153. package/dist/locale/mg.js +1 -1
  154. package/dist/locale/mg.min.js +1 -1
  155. package/dist/locale/mg.min.mjs +1 -1
  156. package/dist/locale/mg.mjs +1 -1
  157. package/dist/locale/mn.js +1 -1
  158. package/dist/locale/mn.min.js +1 -1
  159. package/dist/locale/mn.min.mjs +1 -1
  160. package/dist/locale/mn.mjs +1 -1
  161. package/dist/locale/ms.js +1 -1
  162. package/dist/locale/ms.min.js +1 -1
  163. package/dist/locale/ms.min.mjs +1 -1
  164. package/dist/locale/ms.mjs +1 -1
  165. package/dist/locale/my.js +1 -1
  166. package/dist/locale/my.min.js +1 -1
  167. package/dist/locale/my.min.mjs +1 -1
  168. package/dist/locale/my.mjs +1 -1
  169. package/dist/locale/nb-no.js +1 -1
  170. package/dist/locale/nb-no.min.js +1 -1
  171. package/dist/locale/nb-no.min.mjs +1 -1
  172. package/dist/locale/nb-no.mjs +1 -1
  173. package/dist/locale/nl.js +1 -1
  174. package/dist/locale/nl.min.js +1 -1
  175. package/dist/locale/nl.min.mjs +1 -1
  176. package/dist/locale/nl.mjs +1 -1
  177. package/dist/locale/no.js +1 -1
  178. package/dist/locale/no.min.js +1 -1
  179. package/dist/locale/no.min.mjs +1 -1
  180. package/dist/locale/no.mjs +1 -1
  181. package/dist/locale/pa.js +1 -1
  182. package/dist/locale/pa.min.js +1 -1
  183. package/dist/locale/pa.min.mjs +1 -1
  184. package/dist/locale/pa.mjs +1 -1
  185. package/dist/locale/pl.js +1 -1
  186. package/dist/locale/pl.min.js +1 -1
  187. package/dist/locale/pl.min.mjs +1 -1
  188. package/dist/locale/pl.mjs +1 -1
  189. package/dist/locale/pt-br.js +1 -1
  190. package/dist/locale/pt-br.min.js +1 -1
  191. package/dist/locale/pt-br.min.mjs +1 -1
  192. package/dist/locale/pt-br.mjs +1 -1
  193. package/dist/locale/pt.js +1 -1
  194. package/dist/locale/pt.min.js +1 -1
  195. package/dist/locale/pt.min.mjs +1 -1
  196. package/dist/locale/pt.mjs +1 -1
  197. package/dist/locale/ro.js +1 -1
  198. package/dist/locale/ro.min.js +1 -1
  199. package/dist/locale/ro.min.mjs +1 -1
  200. package/dist/locale/ro.mjs +1 -1
  201. package/dist/locale/ru.js +1 -1
  202. package/dist/locale/ru.min.js +1 -1
  203. package/dist/locale/ru.min.mjs +1 -1
  204. package/dist/locale/ru.mjs +1 -1
  205. package/dist/locale/sk.js +1 -1
  206. package/dist/locale/sk.min.js +1 -1
  207. package/dist/locale/sk.min.mjs +1 -1
  208. package/dist/locale/sk.mjs +1 -1
  209. package/dist/locale/sl.js +1 -1
  210. package/dist/locale/sl.min.js +1 -1
  211. package/dist/locale/sl.min.mjs +1 -1
  212. package/dist/locale/sl.mjs +1 -1
  213. package/dist/locale/sr.js +1 -1
  214. package/dist/locale/sr.min.js +1 -1
  215. package/dist/locale/sr.min.mjs +1 -1
  216. package/dist/locale/sr.mjs +1 -1
  217. package/dist/locale/sv.js +1 -1
  218. package/dist/locale/sv.min.js +1 -1
  219. package/dist/locale/sv.min.mjs +1 -1
  220. package/dist/locale/sv.mjs +1 -1
  221. package/dist/locale/sw.js +1 -1
  222. package/dist/locale/sw.min.js +1 -1
  223. package/dist/locale/sw.min.mjs +1 -1
  224. package/dist/locale/sw.mjs +1 -1
  225. package/dist/locale/ta.js +1 -1
  226. package/dist/locale/ta.min.js +1 -1
  227. package/dist/locale/ta.min.mjs +1 -1
  228. package/dist/locale/ta.mjs +1 -1
  229. package/dist/locale/te.js +1 -1
  230. package/dist/locale/te.min.js +1 -1
  231. package/dist/locale/te.min.mjs +1 -1
  232. package/dist/locale/te.mjs +1 -1
  233. package/dist/locale/th.js +1 -1
  234. package/dist/locale/th.min.js +1 -1
  235. package/dist/locale/th.min.mjs +1 -1
  236. package/dist/locale/th.mjs +1 -1
  237. package/dist/locale/tk.js +1 -1
  238. package/dist/locale/tk.min.js +1 -1
  239. package/dist/locale/tk.min.mjs +1 -1
  240. package/dist/locale/tk.mjs +1 -1
  241. package/dist/locale/tr.js +1 -1
  242. package/dist/locale/tr.min.js +1 -1
  243. package/dist/locale/tr.min.mjs +1 -1
  244. package/dist/locale/tr.mjs +1 -1
  245. package/dist/locale/ug-cn.js +1 -1
  246. package/dist/locale/ug-cn.min.js +1 -1
  247. package/dist/locale/ug-cn.min.mjs +1 -1
  248. package/dist/locale/ug-cn.mjs +1 -1
  249. package/dist/locale/uk.js +1 -1
  250. package/dist/locale/uk.min.js +1 -1
  251. package/dist/locale/uk.min.mjs +1 -1
  252. package/dist/locale/uk.mjs +1 -1
  253. package/dist/locale/uz-uz.js +1 -1
  254. package/dist/locale/uz-uz.min.js +1 -1
  255. package/dist/locale/uz-uz.min.mjs +1 -1
  256. package/dist/locale/uz-uz.mjs +1 -1
  257. package/dist/locale/vi.js +1 -1
  258. package/dist/locale/vi.min.js +1 -1
  259. package/dist/locale/vi.min.mjs +1 -1
  260. package/dist/locale/vi.mjs +1 -1
  261. package/dist/locale/zh-cn.js +1 -1
  262. package/dist/locale/zh-cn.min.js +1 -1
  263. package/dist/locale/zh-cn.min.mjs +1 -1
  264. package/dist/locale/zh-cn.mjs +1 -1
  265. package/dist/locale/zh-hk.js +1 -1
  266. package/dist/locale/zh-hk.min.js +1 -1
  267. package/dist/locale/zh-hk.min.mjs +1 -1
  268. package/dist/locale/zh-hk.mjs +1 -1
  269. package/dist/locale/zh-mo.js +1 -1
  270. package/dist/locale/zh-mo.min.js +1 -1
  271. package/dist/locale/zh-mo.min.mjs +1 -1
  272. package/dist/locale/zh-mo.mjs +1 -1
  273. package/dist/locale/zh-tw.js +1 -1
  274. package/dist/locale/zh-tw.min.js +1 -1
  275. package/dist/locale/zh-tw.min.mjs +1 -1
  276. package/dist/locale/zh-tw.mjs +1 -1
  277. package/es/components/affix/index.mjs +2 -2
  278. package/es/components/affix/src/affix.mjs +129 -24
  279. package/es/components/affix/src/affix.mjs.map +1 -1
  280. package/es/components/affix/src/affix2.mjs +24 -129
  281. package/es/components/affix/src/affix2.mjs.map +1 -1
  282. package/es/components/anchor/index.mjs +2 -2
  283. package/es/components/anchor/src/anchor.mjs +40 -207
  284. package/es/components/anchor/src/anchor.mjs.map +1 -1
  285. package/es/components/anchor/src/anchor2.mjs +207 -40
  286. package/es/components/anchor/src/anchor2.mjs.map +1 -1
  287. package/es/components/backtop/index.mjs +2 -2
  288. package/es/components/backtop/src/backtop.mjs +53 -21
  289. package/es/components/backtop/src/backtop.mjs.map +1 -1
  290. package/es/components/backtop/src/backtop2.mjs +21 -53
  291. package/es/components/backtop/src/backtop2.mjs.map +1 -1
  292. package/es/components/badge/index.mjs +2 -2
  293. package/es/components/badge/src/badge.mjs +71 -32
  294. package/es/components/badge/src/badge.mjs.map +1 -1
  295. package/es/components/badge/src/badge2.mjs +32 -71
  296. package/es/components/badge/src/badge2.mjs.map +1 -1
  297. package/es/components/carousel/index.mjs +2 -2
  298. package/es/components/carousel/src/carousel-item.mjs +7 -69
  299. package/es/components/carousel/src/carousel-item.mjs.map +1 -1
  300. package/es/components/carousel/src/carousel-item2.mjs +69 -7
  301. package/es/components/carousel/src/carousel-item2.mjs.map +1 -1
  302. package/es/components/cascader/index.mjs +2 -2
  303. package/es/components/cascader/src/cascader.mjs +682 -95
  304. package/es/components/cascader/src/cascader.mjs.map +1 -1
  305. package/es/components/cascader/src/cascader2.mjs +95 -682
  306. package/es/components/cascader/src/cascader2.mjs.map +1 -1
  307. package/es/components/col/index.mjs +2 -2
  308. package/es/components/col/src/col.mjs +64 -43
  309. package/es/components/col/src/col.mjs.map +1 -1
  310. package/es/components/col/src/col2.mjs +43 -64
  311. package/es/components/col/src/col2.mjs.map +1 -1
  312. package/es/components/collapse/index.mjs +2 -2
  313. package/es/components/collapse/src/collapse-item.mjs +95 -18
  314. package/es/components/collapse/src/collapse-item.mjs.map +1 -1
  315. package/es/components/collapse/src/collapse-item2.mjs +18 -95
  316. package/es/components/collapse/src/collapse-item2.mjs.map +1 -1
  317. package/es/components/dialog/src/dialog.d.ts +1 -0
  318. package/es/components/dialog/src/dialog.mjs +2 -1
  319. package/es/components/dialog/src/dialog.mjs.map +1 -1
  320. package/es/components/dialog/src/dialog.vue.d.ts +3 -0
  321. package/es/components/dialog/src/dialog2.mjs +87 -79
  322. package/es/components/dialog/src/dialog2.mjs.map +1 -1
  323. package/es/components/drawer/src/drawer.d.ts +1 -0
  324. package/es/components/drawer/src/drawer.vue.d.ts +3 -0
  325. package/es/components/dropdown/index.mjs +2 -2
  326. package/es/components/dropdown/src/dropdown-item-impl.mjs +1 -1
  327. package/es/components/dropdown/src/dropdown-item.mjs +1 -1
  328. package/es/components/dropdown/src/dropdown-menu.mjs +1 -1
  329. package/es/components/dropdown/src/dropdown.mjs +303 -108
  330. package/es/components/dropdown/src/dropdown.mjs.map +1 -1
  331. package/es/components/dropdown/src/dropdown2.mjs +108 -303
  332. package/es/components/dropdown/src/dropdown2.mjs.map +1 -1
  333. package/es/components/icon/index.mjs +2 -2
  334. package/es/components/icon/src/icon.mjs +35 -8
  335. package/es/components/icon/src/icon.mjs.map +1 -1
  336. package/es/components/icon/src/icon2.mjs +8 -35
  337. package/es/components/icon/src/icon2.mjs.map +1 -1
  338. package/es/components/index.mjs +20 -20
  339. package/es/components/input-number/index.mjs +2 -2
  340. package/es/components/input-number/src/input-number.mjs +374 -71
  341. package/es/components/input-number/src/input-number.mjs.map +1 -1
  342. package/es/components/input-number/src/input-number2.mjs +71 -374
  343. package/es/components/input-number/src/input-number2.mjs.map +1 -1
  344. package/es/components/page-header/index.mjs +2 -2
  345. package/es/components/page-header/src/page-header.mjs +16 -97
  346. package/es/components/page-header/src/page-header.mjs.map +1 -1
  347. package/es/components/page-header/src/page-header2.mjs +97 -16
  348. package/es/components/page-header/src/page-header2.mjs.map +1 -1
  349. package/es/components/pagination/src/components/pager.mjs +16 -210
  350. package/es/components/pagination/src/components/pager.mjs.map +1 -1
  351. package/es/components/pagination/src/components/pager2.mjs +210 -16
  352. package/es/components/pagination/src/components/pager2.mjs.map +1 -1
  353. package/es/components/pagination/src/pagination.mjs +1 -1
  354. package/es/components/popover/index.mjs +2 -2
  355. package/es/components/popover/src/popover.mjs +112 -66
  356. package/es/components/popover/src/popover.mjs.map +1 -1
  357. package/es/components/popover/src/popover2.mjs +66 -112
  358. package/es/components/popover/src/popover2.mjs.map +1 -1
  359. package/es/components/rate/index.mjs +2 -2
  360. package/es/components/rate/src/rate.mjs +83 -258
  361. package/es/components/rate/src/rate.mjs.map +1 -1
  362. package/es/components/rate/src/rate2.mjs +258 -83
  363. package/es/components/rate/src/rate2.mjs.map +1 -1
  364. package/es/components/result/index.mjs +2 -2
  365. package/es/components/result/src/result.mjs +30 -62
  366. package/es/components/result/src/result.mjs.map +1 -1
  367. package/es/components/result/src/result2.mjs +62 -30
  368. package/es/components/result/src/result2.mjs.map +1 -1
  369. package/es/components/select/src/select.d.ts +17 -0
  370. package/es/components/select/src/select.mjs +6 -0
  371. package/es/components/select/src/select.mjs.map +1 -1
  372. package/es/components/select/src/select.vue.d.ts +24 -0
  373. package/es/components/select/src/select2.mjs +11 -1
  374. package/es/components/select/src/select2.mjs.map +1 -1
  375. package/es/components/slider/index.mjs +2 -2
  376. package/es/components/slider/src/slider.mjs +238 -92
  377. package/es/components/slider/src/slider.mjs.map +1 -1
  378. package/es/components/slider/src/slider2.mjs +92 -238
  379. package/es/components/slider/src/slider2.mjs.map +1 -1
  380. package/es/components/table/src/table/defaults.d.ts +5 -0
  381. package/es/components/table/src/table/defaults.mjs +2 -1
  382. package/es/components/table/src/table/defaults.mjs.map +1 -1
  383. package/es/components/table/src/table.mjs +2 -1
  384. package/es/components/table/src/table.mjs.map +1 -1
  385. package/es/components/table/src/table.vue.d.ts +3 -0
  386. package/es/components/tabs/index.mjs +1 -1
  387. package/es/components/tabs/src/tab-bar.mjs +87 -11
  388. package/es/components/tabs/src/tab-bar.mjs.map +1 -1
  389. package/es/components/tabs/src/tab-bar2.mjs +11 -87
  390. package/es/components/tabs/src/tab-bar2.mjs.map +1 -1
  391. package/es/components/tabs/src/tab-nav.mjs +1 -1
  392. package/es/components/teleport/index.mjs +2 -2
  393. package/es/components/teleport/src/teleport.mjs +8 -18
  394. package/es/components/teleport/src/teleport.mjs.map +1 -1
  395. package/es/components/teleport/src/teleport2.mjs +18 -8
  396. package/es/components/teleport/src/teleport2.mjs.map +1 -1
  397. package/es/components/text/index.mjs +2 -2
  398. package/es/components/text/src/text.mjs +21 -67
  399. package/es/components/text/src/text.mjs.map +1 -1
  400. package/es/components/text/src/text2.mjs +67 -21
  401. package/es/components/text/src/text2.mjs.map +1 -1
  402. package/es/components/time-select/index.mjs +2 -2
  403. package/es/components/time-select/src/time-select.mjs +51 -132
  404. package/es/components/time-select/src/time-select.mjs.map +1 -1
  405. package/es/components/time-select/src/time-select2.mjs +132 -51
  406. package/es/components/time-select/src/time-select2.mjs.map +1 -1
  407. package/es/components/tooltip/src/content.mjs +1 -1
  408. package/es/components/tooltip-v2/index.mjs +1 -1
  409. package/es/components/tooltip-v2/src/content2.mjs +1 -1
  410. package/es/components/tooltip-v2/src/tooltip.mjs +1 -1
  411. package/es/components/tooltip-v2/src/tooltip2.mjs +2 -2
  412. package/es/components/tooltip-v2/src/trigger.mjs +89 -12
  413. package/es/components/tooltip-v2/src/trigger.mjs.map +1 -1
  414. package/es/components/tooltip-v2/src/trigger2.mjs +12 -89
  415. package/es/components/tooltip-v2/src/trigger2.mjs.map +1 -1
  416. package/es/components/tour/index.mjs +2 -2
  417. package/es/components/tour/src/mask.mjs +18 -75
  418. package/es/components/tour/src/mask.mjs.map +1 -1
  419. package/es/components/tour/src/mask2.mjs +75 -18
  420. package/es/components/tour/src/mask2.mjs.map +1 -1
  421. package/es/components/tour/src/tour.mjs +69 -154
  422. package/es/components/tour/src/tour.mjs.map +1 -1
  423. package/es/components/tour/src/tour2.mjs +154 -69
  424. package/es/components/tour/src/tour2.mjs.map +1 -1
  425. package/es/components/visual-hidden/index.mjs +3 -3
  426. package/es/components/visual-hidden/src/visual-hidden.mjs +6 -35
  427. package/es/components/visual-hidden/src/visual-hidden.mjs.map +1 -1
  428. package/es/components/visual-hidden/src/visual-hidden2.mjs +35 -6
  429. package/es/components/visual-hidden/src/visual-hidden2.mjs.map +1 -1
  430. package/es/index.d.ts +53 -0
  431. package/es/index.mjs +20 -20
  432. package/es/version.d.ts +1 -1
  433. package/es/version.mjs +1 -1
  434. package/es/version.mjs.map +1 -1
  435. package/lib/components/affix/index.js +2 -2
  436. package/lib/components/affix/src/affix.js +129 -25
  437. package/lib/components/affix/src/affix.js.map +1 -1
  438. package/lib/components/affix/src/affix2.js +25 -129
  439. package/lib/components/affix/src/affix2.js.map +1 -1
  440. package/lib/components/anchor/index.js +2 -2
  441. package/lib/components/anchor/src/anchor.js +40 -206
  442. package/lib/components/anchor/src/anchor.js.map +1 -1
  443. package/lib/components/anchor/src/anchor2.js +206 -40
  444. package/lib/components/anchor/src/anchor2.js.map +1 -1
  445. package/lib/components/backtop/index.js +2 -2
  446. package/lib/components/backtop/src/backtop.js +53 -22
  447. package/lib/components/backtop/src/backtop.js.map +1 -1
  448. package/lib/components/backtop/src/backtop2.js +22 -53
  449. package/lib/components/backtop/src/backtop2.js.map +1 -1
  450. package/lib/components/badge/index.js +2 -2
  451. package/lib/components/badge/src/badge.js +71 -32
  452. package/lib/components/badge/src/badge.js.map +1 -1
  453. package/lib/components/badge/src/badge2.js +32 -71
  454. package/lib/components/badge/src/badge2.js.map +1 -1
  455. package/lib/components/carousel/index.js +2 -2
  456. package/lib/components/carousel/src/carousel-item.js +7 -69
  457. package/lib/components/carousel/src/carousel-item.js.map +1 -1
  458. package/lib/components/carousel/src/carousel-item2.js +69 -7
  459. package/lib/components/carousel/src/carousel-item2.js.map +1 -1
  460. package/lib/components/cascader/index.js +2 -2
  461. package/lib/components/cascader/src/cascader.js +682 -96
  462. package/lib/components/cascader/src/cascader.js.map +1 -1
  463. package/lib/components/cascader/src/cascader2.js +96 -682
  464. package/lib/components/cascader/src/cascader2.js.map +1 -1
  465. package/lib/components/col/index.js +2 -2
  466. package/lib/components/col/src/col.js +64 -43
  467. package/lib/components/col/src/col.js.map +1 -1
  468. package/lib/components/col/src/col2.js +43 -64
  469. package/lib/components/col/src/col2.js.map +1 -1
  470. package/lib/components/collapse/index.js +2 -2
  471. package/lib/components/collapse/src/collapse-item.js +95 -18
  472. package/lib/components/collapse/src/collapse-item.js.map +1 -1
  473. package/lib/components/collapse/src/collapse-item2.js +18 -95
  474. package/lib/components/collapse/src/collapse-item2.js.map +1 -1
  475. package/lib/components/dialog/src/dialog.d.ts +1 -0
  476. package/lib/components/dialog/src/dialog.js +2 -1
  477. package/lib/components/dialog/src/dialog.js.map +1 -1
  478. package/lib/components/dialog/src/dialog.vue.d.ts +3 -0
  479. package/lib/components/dialog/src/dialog2.js +87 -79
  480. package/lib/components/dialog/src/dialog2.js.map +1 -1
  481. package/lib/components/drawer/src/drawer.d.ts +1 -0
  482. package/lib/components/drawer/src/drawer.vue.d.ts +3 -0
  483. package/lib/components/dropdown/index.js +2 -2
  484. package/lib/components/dropdown/src/dropdown-item-impl.js +1 -1
  485. package/lib/components/dropdown/src/dropdown-item.js +1 -1
  486. package/lib/components/dropdown/src/dropdown-menu.js +1 -1
  487. package/lib/components/dropdown/src/dropdown.js +303 -117
  488. package/lib/components/dropdown/src/dropdown.js.map +1 -1
  489. package/lib/components/dropdown/src/dropdown2.js +117 -303
  490. package/lib/components/dropdown/src/dropdown2.js.map +1 -1
  491. package/lib/components/icon/index.js +2 -2
  492. package/lib/components/icon/src/icon.js +35 -8
  493. package/lib/components/icon/src/icon.js.map +1 -1
  494. package/lib/components/icon/src/icon2.js +8 -35
  495. package/lib/components/icon/src/icon2.js.map +1 -1
  496. package/lib/components/index.js +20 -20
  497. package/lib/components/input-number/index.js +2 -2
  498. package/lib/components/input-number/src/input-number.js +372 -70
  499. package/lib/components/input-number/src/input-number.js.map +1 -1
  500. package/lib/components/input-number/src/input-number2.js +70 -372
  501. package/lib/components/input-number/src/input-number2.js.map +1 -1
  502. package/lib/components/page-header/index.js +2 -2
  503. package/lib/components/page-header/src/page-header.js +17 -97
  504. package/lib/components/page-header/src/page-header.js.map +1 -1
  505. package/lib/components/page-header/src/page-header2.js +97 -17
  506. package/lib/components/page-header/src/page-header2.js.map +1 -1
  507. package/lib/components/pagination/src/components/pager.js +16 -210
  508. package/lib/components/pagination/src/components/pager.js.map +1 -1
  509. package/lib/components/pagination/src/components/pager2.js +210 -16
  510. package/lib/components/pagination/src/components/pager2.js.map +1 -1
  511. package/lib/components/pagination/src/pagination.js +1 -1
  512. package/lib/components/popover/index.js +2 -2
  513. package/lib/components/popover/src/popover.js +112 -67
  514. package/lib/components/popover/src/popover.js.map +1 -1
  515. package/lib/components/popover/src/popover2.js +67 -112
  516. package/lib/components/popover/src/popover2.js.map +1 -1
  517. package/lib/components/rate/index.js +2 -2
  518. package/lib/components/rate/src/rate.js +83 -257
  519. package/lib/components/rate/src/rate.js.map +1 -1
  520. package/lib/components/rate/src/rate2.js +257 -83
  521. package/lib/components/rate/src/rate2.js.map +1 -1
  522. package/lib/components/result/index.js +2 -2
  523. package/lib/components/result/src/result.js +32 -62
  524. package/lib/components/result/src/result.js.map +1 -1
  525. package/lib/components/result/src/result2.js +62 -32
  526. package/lib/components/result/src/result2.js.map +1 -1
  527. package/lib/components/select/src/select.d.ts +17 -0
  528. package/lib/components/select/src/select.js +6 -0
  529. package/lib/components/select/src/select.js.map +1 -1
  530. package/lib/components/select/src/select.vue.d.ts +24 -0
  531. package/lib/components/select/src/select2.js +11 -1
  532. package/lib/components/select/src/select2.js.map +1 -1
  533. package/lib/components/slider/index.js +2 -2
  534. package/lib/components/slider/src/slider.js +238 -93
  535. package/lib/components/slider/src/slider.js.map +1 -1
  536. package/lib/components/slider/src/slider2.js +93 -238
  537. package/lib/components/slider/src/slider2.js.map +1 -1
  538. package/lib/components/table/src/table/defaults.d.ts +5 -0
  539. package/lib/components/table/src/table/defaults.js +2 -1
  540. package/lib/components/table/src/table/defaults.js.map +1 -1
  541. package/lib/components/table/src/table.js +2 -1
  542. package/lib/components/table/src/table.js.map +1 -1
  543. package/lib/components/table/src/table.vue.d.ts +3 -0
  544. package/lib/components/tabs/index.js +1 -1
  545. package/lib/components/tabs/src/tab-bar.js +87 -11
  546. package/lib/components/tabs/src/tab-bar.js.map +1 -1
  547. package/lib/components/tabs/src/tab-bar2.js +11 -87
  548. package/lib/components/tabs/src/tab-bar2.js.map +1 -1
  549. package/lib/components/tabs/src/tab-nav.js +1 -1
  550. package/lib/components/teleport/index.js +2 -2
  551. package/lib/components/teleport/src/teleport.js +8 -18
  552. package/lib/components/teleport/src/teleport.js.map +1 -1
  553. package/lib/components/teleport/src/teleport2.js +18 -8
  554. package/lib/components/teleport/src/teleport2.js.map +1 -1
  555. package/lib/components/text/index.js +2 -2
  556. package/lib/components/text/src/text.js +21 -67
  557. package/lib/components/text/src/text.js.map +1 -1
  558. package/lib/components/text/src/text2.js +67 -21
  559. package/lib/components/text/src/text2.js.map +1 -1
  560. package/lib/components/time-select/index.js +2 -2
  561. package/lib/components/time-select/src/time-select.js +51 -137
  562. package/lib/components/time-select/src/time-select.js.map +1 -1
  563. package/lib/components/time-select/src/time-select2.js +137 -51
  564. package/lib/components/time-select/src/time-select2.js.map +1 -1
  565. package/lib/components/tooltip/src/content.js +1 -1
  566. package/lib/components/tooltip-v2/index.js +1 -1
  567. package/lib/components/tooltip-v2/src/content2.js +1 -1
  568. package/lib/components/tooltip-v2/src/tooltip.js +1 -1
  569. package/lib/components/tooltip-v2/src/tooltip2.js +2 -2
  570. package/lib/components/tooltip-v2/src/trigger.js +89 -12
  571. package/lib/components/tooltip-v2/src/trigger.js.map +1 -1
  572. package/lib/components/tooltip-v2/src/trigger2.js +12 -89
  573. package/lib/components/tooltip-v2/src/trigger2.js.map +1 -1
  574. package/lib/components/tour/index.js +2 -2
  575. package/lib/components/tour/src/mask.js +18 -75
  576. package/lib/components/tour/src/mask.js.map +1 -1
  577. package/lib/components/tour/src/mask2.js +75 -18
  578. package/lib/components/tour/src/mask2.js.map +1 -1
  579. package/lib/components/tour/src/tour.js +69 -153
  580. package/lib/components/tour/src/tour.js.map +1 -1
  581. package/lib/components/tour/src/tour2.js +153 -69
  582. package/lib/components/tour/src/tour2.js.map +1 -1
  583. package/lib/components/visual-hidden/index.js +2 -2
  584. package/lib/components/visual-hidden/src/visual-hidden.js +6 -35
  585. package/lib/components/visual-hidden/src/visual-hidden.js.map +1 -1
  586. package/lib/components/visual-hidden/src/visual-hidden2.js +35 -6
  587. package/lib/components/visual-hidden/src/visual-hidden2.js.map +1 -1
  588. package/lib/index.d.ts +53 -0
  589. package/lib/index.js +20 -20
  590. package/lib/version.d.ts +1 -1
  591. package/lib/version.js +1 -1
  592. package/lib/version.js.map +1 -1
  593. package/package.json +2 -2
  594. package/tags.json +1 -1
  595. package/theme-chalk/el-dialog.css +1 -1
  596. package/theme-chalk/index.css +1 -1
  597. package/theme-chalk/src/dialog.scss +10 -0
  598. package/web-types.json +1 -1
@@ -1,99 +1,22 @@
1
- import { defineComponent, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, withKeys, withModifiers, renderSlot, createTextVNode, toDisplayString, createVNode, withCtx, createBlock, resolveDynamicComponent, withDirectives, vShow } from 'vue';
2
- import { ElCollapseTransition } from '../../collapse-transition/index.mjs';
3
- import { ElIcon } from '../../icon/index.mjs';
4
- import { collapseItemProps } from './collapse-item.mjs';
5
- import { useCollapseItem, useCollapseItemDOM } from './use-collapse-item.mjs';
6
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
1
+ import { ArrowRight } from '@element-plus/icons-vue';
2
+ import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
3
+ import { iconPropType } from '../../../utils/vue/icon.mjs';
7
4
 
8
- const __default__ = defineComponent({
9
- name: "ElCollapseItem"
5
+ const collapseItemProps = buildProps({
6
+ title: {
7
+ type: String,
8
+ default: ""
9
+ },
10
+ name: {
11
+ type: definePropType([String, Number]),
12
+ default: void 0
13
+ },
14
+ icon: {
15
+ type: iconPropType,
16
+ default: ArrowRight
17
+ },
18
+ disabled: Boolean
10
19
  });
11
- const _sfc_main = /* @__PURE__ */ defineComponent({
12
- ...__default__,
13
- props: collapseItemProps,
14
- setup(__props, { expose }) {
15
- const props = __props;
16
- const {
17
- focusing,
18
- id,
19
- isActive,
20
- handleFocus,
21
- handleHeaderClick,
22
- handleEnterClick
23
- } = useCollapseItem(props);
24
- const {
25
- arrowKls,
26
- headKls,
27
- rootKls,
28
- itemTitleKls,
29
- itemWrapperKls,
30
- itemContentKls,
31
- scopedContentId,
32
- scopedHeadId
33
- } = useCollapseItemDOM(props, { focusing, isActive, id });
34
- expose({
35
- isActive
36
- });
37
- return (_ctx, _cache) => {
38
- return openBlock(), createElementBlock("div", {
39
- class: normalizeClass(unref(rootKls))
40
- }, [
41
- createElementVNode("div", {
42
- id: unref(scopedHeadId),
43
- class: normalizeClass(unref(headKls)),
44
- "aria-expanded": unref(isActive),
45
- "aria-controls": unref(scopedContentId),
46
- "aria-describedby": unref(scopedContentId),
47
- tabindex: _ctx.disabled ? -1 : 0,
48
- role: "button",
49
- onClick: unref(handleHeaderClick),
50
- onKeydown: withKeys(withModifiers(unref(handleEnterClick), ["stop"]), ["space", "enter"]),
51
- onFocus: unref(handleFocus),
52
- onBlur: ($event) => focusing.value = false
53
- }, [
54
- createElementVNode("span", {
55
- class: normalizeClass(unref(itemTitleKls))
56
- }, [
57
- renderSlot(_ctx.$slots, "title", { isActive: unref(isActive) }, () => [
58
- createTextVNode(toDisplayString(_ctx.title), 1)
59
- ])
60
- ], 2),
61
- renderSlot(_ctx.$slots, "icon", { isActive: unref(isActive) }, () => [
62
- createVNode(unref(ElIcon), {
63
- class: normalizeClass(unref(arrowKls))
64
- }, {
65
- default: withCtx(() => [
66
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon)))
67
- ]),
68
- _: 1
69
- }, 8, ["class"])
70
- ])
71
- ], 42, ["id", "aria-expanded", "aria-controls", "aria-describedby", "tabindex", "onClick", "onKeydown", "onFocus", "onBlur"]),
72
- createVNode(unref(ElCollapseTransition), null, {
73
- default: withCtx(() => [
74
- withDirectives(createElementVNode("div", {
75
- id: unref(scopedContentId),
76
- role: "region",
77
- class: normalizeClass(unref(itemWrapperKls)),
78
- "aria-hidden": !unref(isActive),
79
- "aria-labelledby": unref(scopedHeadId)
80
- }, [
81
- createElementVNode("div", {
82
- class: normalizeClass(unref(itemContentKls))
83
- }, [
84
- renderSlot(_ctx.$slots, "default")
85
- ], 2)
86
- ], 10, ["id", "aria-hidden", "aria-labelledby"]), [
87
- [vShow, unref(isActive)]
88
- ])
89
- ]),
90
- _: 3
91
- })
92
- ], 2);
93
- };
94
- }
95
- });
96
- var CollapseItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "collapse-item.vue"]]);
97
20
 
98
- export { CollapseItem as default };
21
+ export { collapseItemProps };
99
22
  //# sourceMappingURL=collapse-item2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"collapse-item2.mjs","sources":["../../../../../../packages/components/collapse/src/collapse-item.vue"],"sourcesContent":["<template>\n <div :class=\"rootKls\">\n <div\n :id=\"scopedHeadId\"\n :class=\"headKls\"\n :aria-expanded=\"isActive\"\n :aria-controls=\"scopedContentId\"\n :aria-describedby=\"scopedContentId\"\n :tabindex=\"disabled ? -1 : 0\"\n role=\"button\"\n @click=\"handleHeaderClick\"\n @keydown.space.enter.stop=\"handleEnterClick\"\n @focus=\"handleFocus\"\n @blur=\"focusing = false\"\n >\n <span :class=\"itemTitleKls\">\n <slot name=\"title\" :is-active=\"isActive\">{{ title }}</slot>\n </span>\n <slot name=\"icon\" :is-active=\"isActive\">\n <el-icon :class=\"arrowKls\">\n <component :is=\"icon\" />\n </el-icon>\n </slot>\n </div>\n\n <el-collapse-transition>\n <div\n v-show=\"isActive\"\n :id=\"scopedContentId\"\n role=\"region\"\n :class=\"itemWrapperKls\"\n :aria-hidden=\"!isActive\"\n :aria-labelledby=\"scopedHeadId\"\n >\n <div :class=\"itemContentKls\">\n <slot />\n </div>\n </div>\n </el-collapse-transition>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport ElCollapseTransition from '@element-plus/components/collapse-transition'\nimport ElIcon from '@element-plus/components/icon'\nimport { collapseItemProps } from './collapse-item'\nimport { useCollapseItem, useCollapseItemDOM } from './use-collapse-item'\n\ndefineOptions({\n name: 'ElCollapseItem',\n})\n\nconst props = defineProps(collapseItemProps)\nconst {\n focusing,\n id,\n isActive,\n handleFocus,\n handleHeaderClick,\n handleEnterClick,\n} = useCollapseItem(props)\n\nconst {\n arrowKls,\n headKls,\n rootKls,\n itemTitleKls,\n itemWrapperKls,\n itemContentKls,\n scopedContentId,\n scopedHeadId,\n} = useCollapseItemDOM(props, { focusing, isActive, id })\n\ndefineExpose({\n /** @description current collapse-item whether active */\n isActive,\n})\n</script>\n"],"names":[],"mappings":";;;;;;;mCAgDc,CAAA;AAAA,EACZ,IAAM,EAAA,gBAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAGA,IAAM,MAAA;AAAA,MACJ,QAAA;AAAA,MACA,EAAA;AAAA,MACA,QAAA;AAAA,MACA,WAAA;AAAA,MACA,iBAAA;AAAA,MACA,gBAAA;AAAA,KACF,GAAI,gBAAgB,KAAK,CAAA,CAAA;AAEzB,IAAM,MAAA;AAAA,MACJ,QAAA;AAAA,MACA,OAAA;AAAA,MACA,OAAA;AAAA,MACA,YAAA;AAAA,MACA,cAAA;AAAA,MACA,cAAA;AAAA,MACA,eAAA;AAAA,MACA,YAAA;AAAA,QACE,kBAAmB,CAAA,KAAA,EAAO,EAAE,QAAU,EAAA,QAAA,EAAU,IAAI,CAAA,CAAA;AAExD,IAAa,MAAA,CAAA;AAAA,MAAA,QAAA;AAAA,KAEX,CAAA,CAAA;AAAA,IACF,OAAC,CAAA,IAAA,EAAA,MAAA,KAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"collapse-item2.mjs","sources":["../../../../../../packages/components/collapse/src/collapse-item.ts"],"sourcesContent":["import { buildProps, definePropType, iconPropType } from '@element-plus/utils'\nimport { ArrowRight } from '@element-plus/icons-vue'\n\nimport type { ExtractPropTypes, __ExtractPublicPropTypes } from 'vue'\nimport type { CollapseActiveName } from './collapse'\n\nexport const collapseItemProps = buildProps({\n /**\n * @description title of the panel\n */\n title: {\n type: String,\n default: '',\n },\n /**\n * @description unique identification of the panel\n */\n name: {\n type: definePropType<CollapseActiveName>([String, Number]),\n default: undefined,\n },\n /**\n * @description icon of the collapse item\n */\n icon: {\n type: iconPropType,\n default: ArrowRight,\n },\n /**\n * @description disable the collapse item\n */\n disabled: Boolean,\n} as const)\nexport type CollapseItemProps = ExtractPropTypes<typeof collapseItemProps>\nexport type CollapseItemPropsPublic = __ExtractPublicPropTypes<\n typeof collapseItemProps\n>\n"],"names":[],"mappings":";;;;AAEY,MAAC,iBAAiB,GAAG,UAAU,CAAC;AAC5C,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,YAAY;AACtB,IAAI,OAAO,EAAE,UAAU;AACvB,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,CAAC;;;;"}
@@ -17,6 +17,7 @@ export declare const dialogProps: {
17
17
  readonly closeOnPressEscape: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
18
18
  readonly lockScroll: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
19
19
  readonly modal: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
20
+ readonly modalPenetrable: BooleanConstructor;
20
21
  readonly openDelay: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
21
22
  readonly closeDelay: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
22
23
  readonly top: {
@@ -1,7 +1,7 @@
1
1
  import { DEFAULT_DIALOG_TRANSITION } from './constants.mjs';
2
2
  import { dialogContentProps } from './dialog-content.mjs';
3
3
  import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
4
- import { teleportProps } from '../../teleport/src/teleport2.mjs';
4
+ import { teleportProps } from '../../teleport/src/teleport.mjs';
5
5
  import { UPDATE_MODEL_EVENT } from '../../../constants/event.mjs';
6
6
  import { isBoolean } from '../../../utils/types.mjs';
7
7
 
@@ -32,6 +32,7 @@ const dialogProps = buildProps({
32
32
  type: Boolean,
33
33
  default: true
34
34
  },
35
+ modalPenetrable: Boolean,
35
36
  openDelay: {
36
37
  type: Number,
37
38
  default: 0
@@ -1 +1 @@
1
- {"version":3,"file":"dialog.mjs","sources":["../../../../../../packages/components/dialog/src/dialog.ts"],"sourcesContent":["import { buildProps, definePropType, isBoolean } from '@element-plus/utils'\nimport { UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { teleportProps } from '@element-plus/components/teleport'\nimport { DEFAULT_DIALOG_TRANSITION } from './constants'\nimport { dialogContentProps } from './dialog-content'\n\nimport type {\n ExtractPropTypes,\n TransitionProps,\n __ExtractPublicPropTypes,\n} from 'vue'\nimport type Dialog from './dialog.vue'\n\ntype DoneFn = (cancel?: boolean) => void\n\nexport type DialogBeforeCloseFn = (done: DoneFn) => void\n\nexport type DialogTransition = string | TransitionProps\n\nexport const dialogProps = buildProps({\n ...dialogContentProps,\n /**\n * @description whether to append Dialog itself to body. A nested Dialog should have this attribute set to `true`\n */\n appendToBody: Boolean,\n /**\n * @description which element the Dialog appends to\n */\n appendTo: {\n type: teleportProps.to.type,\n default: 'body',\n },\n /**\n * @description callback before Dialog closes, and it will prevent Dialog from closing, use done to close the dialog\n */\n beforeClose: {\n type: definePropType<DialogBeforeCloseFn>(Function),\n },\n /**\n * @description destroy elements in Dialog when closed\n */\n destroyOnClose: Boolean,\n /**\n * @description whether the Dialog can be closed by clicking the mask\n */\n closeOnClickModal: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether the Dialog can be closed by pressing ESC\n */\n closeOnPressEscape: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether scroll of body is disabled while Dialog is displayed\n */\n lockScroll: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether a mask is displayed\n */\n modal: {\n type: Boolean,\n default: true,\n },\n /**\n * @description the Time(milliseconds) before open\n */\n openDelay: {\n type: Number,\n default: 0,\n },\n /**\n * @description the Time(milliseconds) before close\n */\n closeDelay: {\n type: Number,\n default: 0,\n },\n /**\n * @description value for `margin-top` of Dialog CSS, default is 15vh\n */\n top: {\n type: String,\n },\n /**\n * @description visibility of Dialog\n */\n modelValue: Boolean,\n /**\n * @description custom class names for mask\n */\n modalClass: String,\n /**\n * @description custom class names for header wrapper\n */\n headerClass: String,\n /**\n * @description custom class names for body wrapper\n */\n bodyClass: String,\n /**\n * @description custom class names for footer wrapper\n */\n footerClass: String,\n /**\n * @description width of Dialog, default is 50%\n */\n width: {\n type: [String, Number],\n },\n /**\n * @description same as z-index in native CSS, z-order of dialog\n */\n zIndex: {\n type: Number,\n },\n trapFocus: Boolean,\n /**\n * @description header's aria-level attribute\n */\n headerAriaLevel: {\n type: String,\n default: '2',\n },\n /**\n * @description custom transition configuration for dialog animation, it can be a string (transition name) or an object with Vue transition props\n */\n transition: {\n type: definePropType<DialogTransition>([String, Object]),\n default: DEFAULT_DIALOG_TRANSITION,\n },\n} as const)\n\nexport type DialogProps = ExtractPropTypes<typeof dialogProps>\nexport type DialogPropsPublic = __ExtractPublicPropTypes<typeof dialogProps>\n\nexport const dialogEmits = {\n open: () => true,\n opened: () => true,\n close: () => true,\n closed: () => true,\n [UPDATE_MODEL_EVENT]: (value: boolean) => isBoolean(value),\n openAutoFocus: () => true,\n closeAutoFocus: () => true,\n}\nexport type DialogEmits = typeof dialogEmits\nexport type DialogInstance = InstanceType<typeof Dialog> & unknown\n"],"names":[],"mappings":";;;;;;;AAKY,MAAC,WAAW,GAAG,UAAU,CAAC;AACtC,EAAE,GAAG,kBAAkB;AACvB,EAAE,YAAY,EAAE,OAAO;AACvB,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,aAAa,CAAC,EAAE,CAAC,IAAI;AAC/B,IAAI,OAAO,EAAE,MAAM;AACnB,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,cAAc,CAAC,QAAQ,CAAC;AAClC,GAAG;AACH,EAAE,cAAc,EAAE,OAAO;AACzB,EAAE,iBAAiB,EAAE;AACrB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,kBAAkB,EAAE;AACtB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,GAAG;AACH,EAAE,UAAU,EAAE,OAAO;AACrB,EAAE,UAAU,EAAE,MAAM;AACpB,EAAE,WAAW,EAAE,MAAM;AACrB,EAAE,SAAS,EAAE,MAAM;AACnB,EAAE,WAAW,EAAE,MAAM;AACrB,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,GAAG;AACH,EAAE,SAAS,EAAE,OAAO;AACpB,EAAE,eAAe,EAAE;AACnB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAE,yBAAyB;AACtC,GAAG;AACH,CAAC,EAAE;AACS,MAAC,WAAW,GAAG;AAC3B,EAAE,IAAI,EAAE,MAAM,IAAI;AAClB,EAAE,MAAM,EAAE,MAAM,IAAI;AACpB,EAAE,KAAK,EAAE,MAAM,IAAI;AACnB,EAAE,MAAM,EAAE,MAAM,IAAI;AACpB,EAAE,CAAC,kBAAkB,GAAG,CAAC,KAAK,KAAK,SAAS,CAAC,KAAK,CAAC;AACnD,EAAE,aAAa,EAAE,MAAM,IAAI;AAC3B,EAAE,cAAc,EAAE,MAAM,IAAI;AAC5B;;;;"}
1
+ {"version":3,"file":"dialog.mjs","sources":["../../../../../../packages/components/dialog/src/dialog.ts"],"sourcesContent":["import { buildProps, definePropType, isBoolean } from '@element-plus/utils'\nimport { UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { teleportProps } from '@element-plus/components/teleport'\nimport { DEFAULT_DIALOG_TRANSITION } from './constants'\nimport { dialogContentProps } from './dialog-content'\n\nimport type {\n ExtractPropTypes,\n TransitionProps,\n __ExtractPublicPropTypes,\n} from 'vue'\nimport type Dialog from './dialog.vue'\n\ntype DoneFn = (cancel?: boolean) => void\n\nexport type DialogBeforeCloseFn = (done: DoneFn) => void\n\nexport type DialogTransition = string | TransitionProps\n\nexport const dialogProps = buildProps({\n ...dialogContentProps,\n /**\n * @description whether to append Dialog itself to body. A nested Dialog should have this attribute set to `true`\n */\n appendToBody: Boolean,\n /**\n * @description which element the Dialog appends to\n */\n appendTo: {\n type: teleportProps.to.type,\n default: 'body',\n },\n /**\n * @description callback before Dialog closes, and it will prevent Dialog from closing, use done to close the dialog\n */\n beforeClose: {\n type: definePropType<DialogBeforeCloseFn>(Function),\n },\n /**\n * @description destroy elements in Dialog when closed\n */\n destroyOnClose: Boolean,\n /**\n * @description whether the Dialog can be closed by clicking the mask\n */\n closeOnClickModal: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether the Dialog can be closed by pressing ESC\n */\n closeOnPressEscape: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether scroll of body is disabled while Dialog is displayed\n */\n lockScroll: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether a mask is displayed\n */\n modal: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether the mask is penetrable\n */\n modalPenetrable: Boolean,\n /**\n * @description the Time(milliseconds) before open\n */\n openDelay: {\n type: Number,\n default: 0,\n },\n /**\n * @description the Time(milliseconds) before close\n */\n closeDelay: {\n type: Number,\n default: 0,\n },\n /**\n * @description value for `margin-top` of Dialog CSS, default is 15vh\n */\n top: {\n type: String,\n },\n /**\n * @description visibility of Dialog\n */\n modelValue: Boolean,\n /**\n * @description custom class names for mask\n */\n modalClass: String,\n /**\n * @description custom class names for header wrapper\n */\n headerClass: String,\n /**\n * @description custom class names for body wrapper\n */\n bodyClass: String,\n /**\n * @description custom class names for footer wrapper\n */\n footerClass: String,\n /**\n * @description width of Dialog, default is 50%\n */\n width: {\n type: [String, Number],\n },\n /**\n * @description same as z-index in native CSS, z-order of dialog\n */\n zIndex: {\n type: Number,\n },\n trapFocus: Boolean,\n /**\n * @description header's aria-level attribute\n */\n headerAriaLevel: {\n type: String,\n default: '2',\n },\n /**\n * @description custom transition configuration for dialog animation, it can be a string (transition name) or an object with Vue transition props\n */\n transition: {\n type: definePropType<DialogTransition>([String, Object]),\n default: DEFAULT_DIALOG_TRANSITION,\n },\n} as const)\n\nexport type DialogProps = ExtractPropTypes<typeof dialogProps>\nexport type DialogPropsPublic = __ExtractPublicPropTypes<typeof dialogProps>\n\nexport const dialogEmits = {\n open: () => true,\n opened: () => true,\n close: () => true,\n closed: () => true,\n [UPDATE_MODEL_EVENT]: (value: boolean) => isBoolean(value),\n openAutoFocus: () => true,\n closeAutoFocus: () => true,\n}\nexport type DialogEmits = typeof dialogEmits\nexport type DialogInstance = InstanceType<typeof Dialog> & unknown\n"],"names":[],"mappings":";;;;;;;AAKY,MAAC,WAAW,GAAG,UAAU,CAAC;AACtC,EAAE,GAAG,kBAAkB;AACvB,EAAE,YAAY,EAAE,OAAO;AACvB,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,aAAa,CAAC,EAAE,CAAC,IAAI;AAC/B,IAAI,OAAO,EAAE,MAAM;AACnB,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,cAAc,CAAC,QAAQ,CAAC;AAClC,GAAG;AACH,EAAE,cAAc,EAAE,OAAO;AACzB,EAAE,iBAAiB,EAAE;AACrB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,kBAAkB,EAAE;AACtB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,eAAe,EAAE,OAAO;AAC1B,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,GAAG;AACH,EAAE,UAAU,EAAE,OAAO;AACrB,EAAE,UAAU,EAAE,MAAM;AACpB,EAAE,WAAW,EAAE,MAAM;AACrB,EAAE,SAAS,EAAE,MAAM;AACnB,EAAE,WAAW,EAAE,MAAM;AACrB,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,GAAG;AACH,EAAE,SAAS,EAAE,OAAO;AACpB,EAAE,eAAe,EAAE;AACnB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAE,yBAAyB;AACtC,GAAG;AACH,CAAC,EAAE;AACS,MAAC,WAAW,GAAG;AAC3B,EAAE,IAAI,EAAE,MAAM,IAAI;AAClB,EAAE,MAAM,EAAE,MAAM,IAAI;AACpB,EAAE,KAAK,EAAE,MAAM,IAAI;AACnB,EAAE,MAAM,EAAE,MAAM,IAAI;AACpB,EAAE,CAAC,kBAAkB,GAAG,CAAC,KAAK,KAAK,SAAS,CAAC,KAAK,CAAC;AACnD,EAAE,aAAa,EAAE,MAAM,IAAI;AAC3B,EAAE,cAAc,EAAE,MAAM,IAAI;AAC5B;;;;"}
@@ -22,6 +22,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
22
22
  readonly closeOnPressEscape: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
23
23
  readonly lockScroll: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
24
24
  readonly modal: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
25
+ readonly modalPenetrable: BooleanConstructor;
25
26
  readonly openDelay: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
26
27
  readonly closeDelay: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
27
28
  readonly top: {
@@ -92,6 +93,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
92
93
  readonly closeOnPressEscape: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
93
94
  readonly lockScroll: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
94
95
  readonly modal: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
96
+ readonly modalPenetrable: BooleanConstructor;
95
97
  readonly openDelay: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
96
98
  readonly closeDelay: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
97
99
  readonly top: {
@@ -163,6 +165,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
163
165
  readonly headerAriaLevel: string;
164
166
  readonly appendToBody: boolean;
165
167
  readonly destroyOnClose: boolean;
168
+ readonly modalPenetrable: boolean;
166
169
  readonly trapFocus: boolean;
167
170
  }>;
168
171
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
@@ -59,6 +59,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
59
59
  });
60
60
  const overlayEvent = useSameTarget(onModalClick);
61
61
  const draggable = computed(() => props.draggable && !props.fullscreen);
62
+ const penetrable = computed(() => props.modalPenetrable && !props.modal && !props.fullscreen);
62
63
  const resetPosition = () => {
63
64
  var _a;
64
65
  (_a = dialogContentRef.value) == null ? void 0 : _a.resetPosition();
@@ -76,85 +77,92 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
76
77
  }, {
77
78
  default: withCtx(() => [
78
79
  createVNode(Transition, mergeProps(unref(transitionConfig), { persisted: "" }), {
79
- default: withCtx(() => [
80
- withDirectives(createVNode(unref(ElOverlay), {
81
- "custom-mask-event": "",
82
- mask: _ctx.modal,
83
- "overlay-class": _ctx.modalClass,
84
- "z-index": unref(zIndex)
85
- }, {
86
- default: withCtx(() => [
87
- createElementVNode("div", {
88
- role: "dialog",
89
- "aria-modal": "true",
90
- "aria-label": _ctx.title || void 0,
91
- "aria-labelledby": !_ctx.title ? unref(titleId) : void 0,
92
- "aria-describedby": unref(bodyId),
93
- class: normalizeClass(`${unref(ns).namespace.value}-overlay-dialog`),
94
- style: normalizeStyle(unref(overlayDialogStyle)),
95
- onClick: unref(overlayEvent).onClick,
96
- onMousedown: unref(overlayEvent).onMousedown,
97
- onMouseup: unref(overlayEvent).onMouseup
98
- }, [
99
- createVNode(unref(ElFocusTrap), {
100
- loop: "",
101
- trapped: unref(visible),
102
- "focus-start-el": "container",
103
- onFocusAfterTrapped: unref(onOpenAutoFocus),
104
- onFocusAfterReleased: unref(onCloseAutoFocus),
105
- onFocusoutPrevented: unref(onFocusoutPrevented),
106
- onReleaseRequested: unref(onCloseRequested)
107
- }, {
108
- default: withCtx(() => [
109
- unref(rendered) ? (openBlock(), createBlock(ElDialogContent, mergeProps({
110
- key: 0,
111
- ref_key: "dialogContentRef",
112
- ref: dialogContentRef
113
- }, _ctx.$attrs, {
114
- center: _ctx.center,
115
- "align-center": _ctx.alignCenter,
116
- "close-icon": _ctx.closeIcon,
117
- draggable: unref(draggable),
118
- overflow: _ctx.overflow,
119
- fullscreen: _ctx.fullscreen,
120
- "header-class": _ctx.headerClass,
121
- "body-class": _ctx.bodyClass,
122
- "footer-class": _ctx.footerClass,
123
- "show-close": _ctx.showClose,
124
- title: _ctx.title,
125
- "aria-level": _ctx.headerAriaLevel,
126
- onClose: unref(handleClose)
127
- }), createSlots({
128
- header: withCtx(() => [
129
- !_ctx.$slots.title ? renderSlot(_ctx.$slots, "header", {
130
- key: 0,
131
- close: unref(handleClose),
132
- titleId: unref(titleId),
133
- titleClass: unref(ns).e("title")
134
- }) : renderSlot(_ctx.$slots, "title", { key: 1 })
135
- ]),
136
- default: withCtx(() => [
137
- renderSlot(_ctx.$slots, "default")
138
- ]),
139
- _: 2
140
- }, [
141
- _ctx.$slots.footer ? {
142
- name: "footer",
143
- fn: withCtx(() => [
144
- renderSlot(_ctx.$slots, "footer")
145
- ])
146
- } : void 0
147
- ]), 1040, ["center", "align-center", "close-icon", "draggable", "overflow", "fullscreen", "header-class", "body-class", "footer-class", "show-close", "title", "aria-level", "onClose"])) : createCommentVNode("v-if", true)
148
- ]),
149
- _: 3
150
- }, 8, ["trapped", "onFocusAfterTrapped", "onFocusAfterReleased", "onFocusoutPrevented", "onReleaseRequested"])
151
- ], 46, ["aria-label", "aria-labelledby", "aria-describedby", "onClick", "onMousedown", "onMouseup"])
152
- ]),
153
- _: 3
154
- }, 8, ["mask", "overlay-class", "z-index"]), [
155
- [vShow, unref(visible)]
156
- ])
157
- ]),
80
+ default: withCtx(() => {
81
+ var _a;
82
+ return [
83
+ withDirectives(createVNode(unref(ElOverlay), {
84
+ "custom-mask-event": "",
85
+ mask: _ctx.modal,
86
+ "overlay-class": [
87
+ (_a = _ctx.modalClass) != null ? _a : "",
88
+ `${unref(ns).namespace.value}-modal-dialog`,
89
+ unref(ns).is("penetrable", unref(penetrable))
90
+ ],
91
+ "z-index": unref(zIndex)
92
+ }, {
93
+ default: withCtx(() => [
94
+ createElementVNode("div", {
95
+ role: "dialog",
96
+ "aria-modal": "true",
97
+ "aria-label": _ctx.title || void 0,
98
+ "aria-labelledby": !_ctx.title ? unref(titleId) : void 0,
99
+ "aria-describedby": unref(bodyId),
100
+ class: normalizeClass(`${unref(ns).namespace.value}-overlay-dialog`),
101
+ style: normalizeStyle(unref(overlayDialogStyle)),
102
+ onClick: unref(overlayEvent).onClick,
103
+ onMousedown: unref(overlayEvent).onMousedown,
104
+ onMouseup: unref(overlayEvent).onMouseup
105
+ }, [
106
+ createVNode(unref(ElFocusTrap), {
107
+ loop: "",
108
+ trapped: unref(visible),
109
+ "focus-start-el": "container",
110
+ onFocusAfterTrapped: unref(onOpenAutoFocus),
111
+ onFocusAfterReleased: unref(onCloseAutoFocus),
112
+ onFocusoutPrevented: unref(onFocusoutPrevented),
113
+ onReleaseRequested: unref(onCloseRequested)
114
+ }, {
115
+ default: withCtx(() => [
116
+ unref(rendered) ? (openBlock(), createBlock(ElDialogContent, mergeProps({
117
+ key: 0,
118
+ ref_key: "dialogContentRef",
119
+ ref: dialogContentRef
120
+ }, _ctx.$attrs, {
121
+ center: _ctx.center,
122
+ "align-center": _ctx.alignCenter,
123
+ "close-icon": _ctx.closeIcon,
124
+ draggable: unref(draggable),
125
+ overflow: _ctx.overflow,
126
+ fullscreen: _ctx.fullscreen,
127
+ "header-class": _ctx.headerClass,
128
+ "body-class": _ctx.bodyClass,
129
+ "footer-class": _ctx.footerClass,
130
+ "show-close": _ctx.showClose,
131
+ title: _ctx.title,
132
+ "aria-level": _ctx.headerAriaLevel,
133
+ onClose: unref(handleClose)
134
+ }), createSlots({
135
+ header: withCtx(() => [
136
+ !_ctx.$slots.title ? renderSlot(_ctx.$slots, "header", {
137
+ key: 0,
138
+ close: unref(handleClose),
139
+ titleId: unref(titleId),
140
+ titleClass: unref(ns).e("title")
141
+ }) : renderSlot(_ctx.$slots, "title", { key: 1 })
142
+ ]),
143
+ default: withCtx(() => [
144
+ renderSlot(_ctx.$slots, "default")
145
+ ]),
146
+ _: 2
147
+ }, [
148
+ _ctx.$slots.footer ? {
149
+ name: "footer",
150
+ fn: withCtx(() => [
151
+ renderSlot(_ctx.$slots, "footer")
152
+ ])
153
+ } : void 0
154
+ ]), 1040, ["center", "align-center", "close-icon", "draggable", "overflow", "fullscreen", "header-class", "body-class", "footer-class", "show-close", "title", "aria-level", "onClose"])) : createCommentVNode("v-if", true)
155
+ ]),
156
+ _: 3
157
+ }, 8, ["trapped", "onFocusAfterTrapped", "onFocusAfterReleased", "onFocusoutPrevented", "onReleaseRequested"])
158
+ ], 46, ["aria-label", "aria-labelledby", "aria-describedby", "onClick", "onMousedown", "onMouseup"])
159
+ ]),
160
+ _: 3
161
+ }, 8, ["mask", "overlay-class", "z-index"]), [
162
+ [vShow, unref(visible)]
163
+ ])
164
+ ];
165
+ }),
158
166
  _: 3
159
167
  }, 16)
160
168
  ]),
@@ -1 +1 @@
1
- {"version":3,"file":"dialog2.mjs","sources":["../../../../../../packages/components/dialog/src/dialog.vue"],"sourcesContent":["<template>\n <el-teleport\n :to=\"appendTo\"\n :disabled=\"appendTo !== 'body' ? false : !appendToBody\"\n >\n <transition v-bind=\"transitionConfig\">\n <el-overlay\n v-show=\"visible\"\n custom-mask-event\n :mask=\"modal\"\n :overlay-class=\"modalClass\"\n :z-index=\"zIndex\"\n >\n <div\n role=\"dialog\"\n aria-modal=\"true\"\n :aria-label=\"title || undefined\"\n :aria-labelledby=\"!title ? titleId : undefined\"\n :aria-describedby=\"bodyId\"\n :class=\"`${ns.namespace.value}-overlay-dialog`\"\n :style=\"overlayDialogStyle\"\n @click=\"overlayEvent.onClick\"\n @mousedown=\"overlayEvent.onMousedown\"\n @mouseup=\"overlayEvent.onMouseup\"\n >\n <el-focus-trap\n loop\n :trapped=\"visible\"\n focus-start-el=\"container\"\n @focus-after-trapped=\"onOpenAutoFocus\"\n @focus-after-released=\"onCloseAutoFocus\"\n @focusout-prevented=\"onFocusoutPrevented\"\n @release-requested=\"onCloseRequested\"\n >\n <el-dialog-content\n v-if=\"rendered\"\n ref=\"dialogContentRef\"\n v-bind=\"$attrs\"\n :center=\"center\"\n :align-center=\"alignCenter\"\n :close-icon=\"closeIcon\"\n :draggable=\"draggable\"\n :overflow=\"overflow\"\n :fullscreen=\"fullscreen\"\n :header-class=\"headerClass\"\n :body-class=\"bodyClass\"\n :footer-class=\"footerClass\"\n :show-close=\"showClose\"\n :title=\"title\"\n :aria-level=\"headerAriaLevel\"\n @close=\"handleClose\"\n >\n <template #header>\n <slot\n v-if=\"!$slots.title\"\n name=\"header\"\n :close=\"handleClose\"\n :title-id=\"titleId\"\n :title-class=\"ns.e('title')\"\n />\n <slot v-else name=\"title\" />\n </template>\n <slot />\n <template v-if=\"$slots.footer\" #footer>\n <slot name=\"footer\" />\n </template>\n </el-dialog-content>\n </el-focus-trap>\n </div>\n </el-overlay>\n </transition>\n </el-teleport>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, provide, ref, useSlots } from 'vue'\nimport { ElOverlay } from '@element-plus/components/overlay'\nimport { useDeprecated, useNamespace, useSameTarget } from '@element-plus/hooks'\nimport ElFocusTrap from '@element-plus/components/focus-trap'\nimport ElTeleport from '@element-plus/components/teleport'\nimport ElDialogContent from './dialog-content.vue'\nimport { dialogInjectionKey } from './constants'\nimport { dialogEmits, dialogProps } from './dialog'\nimport { useDialog } from './use-dialog'\n\ndefineOptions({\n name: 'ElDialog',\n inheritAttrs: false,\n})\n\nconst props = defineProps(dialogProps)\ndefineEmits(dialogEmits)\nconst slots = useSlots()\n\nuseDeprecated(\n {\n scope: 'el-dialog',\n from: 'the title slot',\n replacement: 'the header slot',\n version: '3.0.0',\n ref: 'https://element-plus.org/en-US/component/dialog.html#slots',\n },\n computed(() => !!slots.title)\n)\n\nconst ns = useNamespace('dialog')\nconst dialogRef = ref<HTMLElement>()\nconst headerRef = ref<HTMLElement>()\nconst dialogContentRef = ref()\n\nconst {\n visible,\n titleId,\n bodyId,\n style,\n overlayDialogStyle,\n rendered,\n transitionConfig,\n zIndex,\n handleClose,\n onModalClick,\n onOpenAutoFocus,\n onCloseAutoFocus,\n onCloseRequested,\n onFocusoutPrevented,\n} = useDialog(props, dialogRef)\n\nprovide(dialogInjectionKey, {\n dialogRef,\n headerRef,\n bodyId,\n ns,\n rendered,\n style,\n})\n\nconst overlayEvent = useSameTarget(onModalClick)\n\nconst draggable = computed(() => props.draggable && !props.fullscreen)\n\nconst resetPosition = () => {\n dialogContentRef.value?.resetPosition()\n}\n\ndefineExpose({\n /** @description whether the dialog is visible */\n visible,\n dialogContentRef,\n resetPosition,\n handleClose,\n})\n</script>\n"],"names":["_openBlock","_createBlock","_unref"],"mappings":";;;;;;;;;;;;;mCAqFc,CAAA;AAAA,EACZ,IAAM,EAAA,UAAA;AAAA,EACN,YAAc,EAAA,KAAA;AAChB,CAAA,CAAA,CAAA;;;;;;;AAIA,IAAA,MAAM,QAAQ,QAAS,EAAA,CAAA;AAEvB,IAAA,aAAA,CAAA;AAAA,MACE,KAAA,EAAA,WAAA;AAAA,MAAA,IACS,EAAA,gBAAA;AAAA,MAAA,WACD,EAAA,iBAAA;AAAA,MAAA,OACO,EAAA,OAAA;AAAA,MAAA,GACJ,EAAA,4DAAA;AAAA,KAAA,EAAA,QACJ,CAAA,MAAA,CAAA,CAAA,KAAA,CAAA,KAAA,CAAA,CAAA,CAAA;AAAA,IACP,MAAA,EAAA,GAAA,YAAA,CAAA,QAAA,CAAA,CAAA;AAAA,IAAA,MACS,SAAA,GAAO;AAAY,IAC9B,MAAA,SAAA,GAAA,GAAA,EAAA,CAAA;AAEA,IAAM,MAAA,mBAA0B,GAAA,EAAA,CAAA;AAChC,IAAA,MAAM;AACN,MAAA;AACA,MAAA;AAEA,MAAM,MAAA;AAAA,MACJ,KAAA;AAAA,MACA,kBAAA;AAAA,MACA,QAAA;AAAA,MACA,gBAAA;AAAA,MACA,MAAA;AAAA,MACA,WAAA;AAAA,MACA,YAAA;AAAA,MACA,eAAA;AAAA,MACA,gBAAA;AAAA,MACA,gBAAA;AAAA,MACA,mBAAA;AAAA,KACA,GAAA,SAAA,CAAA,KAAA,EAAA,SAAA,CAAA,CAAA;AAAA,IACA,OAAA,CAAA,kBAAA,EAAA;AAAA,MACA,SAAA;AAAA,MACF,SAAc;AAEd,MAAA,MAAQ;AAAoB,MAC1B,EAAA;AAAA,MACA,QAAA;AAAA,MACA,KAAA;AAAA,KACA,CAAA,CAAA;AAAA,IACA,MAAA,YAAA,GAAA,aAAA,CAAA,YAAA,CAAA,CAAA;AAAA,IACA,MAAA,SAAA,GAAA,QAAA,CAAA,MAAA,KAAA,CAAA,SAAA,IAAA,CAAA,KAAA,CAAA,UAAA,CAAA,CAAA;AAAA,IACF,MAAC,aAAA,GAAA,MAAA;AAED,MAAM,IAAA,EAAA,CAAA;AAEN,MAAA,CAAA,EAAA,mBAA2B,CAAA,KAAA,SAAY,GAAa,KAAA,CAAA,GAAA,EAAC,cAAgB,EAAA,CAAA;AAErE,KAAA,CAAA;AACE,IAAA,MAAA,CAAA;AAAsC,MACxC,OAAA;AAEA,MAAa,gBAAA;AAAA,MAAA,aAAA;AAAA,MAEX,WAAA;AAAA,KACA,CAAA,CAAA;AAAA,IACA,OAAA,CAAA,IAAA,EAAA,MAAA,KAAA;AAAA,MACA,OAAAA,SAAA,EAAA,EAAAC,WAAA,CAAAC,KAAA,CAAA,UAAA,CAAA,EAAA;AAAA,QACD,EAAA,EAAA,IAAA,CAAA,QAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"dialog2.mjs","sources":["../../../../../../packages/components/dialog/src/dialog.vue"],"sourcesContent":["<template>\n <el-teleport\n :to=\"appendTo\"\n :disabled=\"appendTo !== 'body' ? false : !appendToBody\"\n >\n <transition v-bind=\"transitionConfig\">\n <el-overlay\n v-show=\"visible\"\n custom-mask-event\n :mask=\"modal\"\n :overlay-class=\"[\n modalClass ?? '',\n `${ns.namespace.value}-modal-dialog`,\n ns.is('penetrable', penetrable),\n ]\"\n :z-index=\"zIndex\"\n >\n <div\n role=\"dialog\"\n aria-modal=\"true\"\n :aria-label=\"title || undefined\"\n :aria-labelledby=\"!title ? titleId : undefined\"\n :aria-describedby=\"bodyId\"\n :class=\"`${ns.namespace.value}-overlay-dialog`\"\n :style=\"overlayDialogStyle\"\n @click=\"overlayEvent.onClick\"\n @mousedown=\"overlayEvent.onMousedown\"\n @mouseup=\"overlayEvent.onMouseup\"\n >\n <el-focus-trap\n loop\n :trapped=\"visible\"\n focus-start-el=\"container\"\n @focus-after-trapped=\"onOpenAutoFocus\"\n @focus-after-released=\"onCloseAutoFocus\"\n @focusout-prevented=\"onFocusoutPrevented\"\n @release-requested=\"onCloseRequested\"\n >\n <el-dialog-content\n v-if=\"rendered\"\n ref=\"dialogContentRef\"\n v-bind=\"$attrs\"\n :center=\"center\"\n :align-center=\"alignCenter\"\n :close-icon=\"closeIcon\"\n :draggable=\"draggable\"\n :overflow=\"overflow\"\n :fullscreen=\"fullscreen\"\n :header-class=\"headerClass\"\n :body-class=\"bodyClass\"\n :footer-class=\"footerClass\"\n :show-close=\"showClose\"\n :title=\"title\"\n :aria-level=\"headerAriaLevel\"\n @close=\"handleClose\"\n >\n <template #header>\n <slot\n v-if=\"!$slots.title\"\n name=\"header\"\n :close=\"handleClose\"\n :title-id=\"titleId\"\n :title-class=\"ns.e('title')\"\n />\n <slot v-else name=\"title\" />\n </template>\n <slot />\n <template v-if=\"$slots.footer\" #footer>\n <slot name=\"footer\" />\n </template>\n </el-dialog-content>\n </el-focus-trap>\n </div>\n </el-overlay>\n </transition>\n </el-teleport>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, provide, ref, useSlots } from 'vue'\nimport { ElOverlay } from '@element-plus/components/overlay'\nimport { useDeprecated, useNamespace, useSameTarget } from '@element-plus/hooks'\nimport ElFocusTrap from '@element-plus/components/focus-trap'\nimport ElTeleport from '@element-plus/components/teleport'\nimport ElDialogContent from './dialog-content.vue'\nimport { dialogInjectionKey } from './constants'\nimport { dialogEmits, dialogProps } from './dialog'\nimport { useDialog } from './use-dialog'\n\ndefineOptions({\n name: 'ElDialog',\n inheritAttrs: false,\n})\n\nconst props = defineProps(dialogProps)\ndefineEmits(dialogEmits)\nconst slots = useSlots()\n\nuseDeprecated(\n {\n scope: 'el-dialog',\n from: 'the title slot',\n replacement: 'the header slot',\n version: '3.0.0',\n ref: 'https://element-plus.org/en-US/component/dialog.html#slots',\n },\n computed(() => !!slots.title)\n)\n\nconst ns = useNamespace('dialog')\nconst dialogRef = ref<HTMLElement>()\nconst headerRef = ref<HTMLElement>()\nconst dialogContentRef = ref()\n\nconst {\n visible,\n titleId,\n bodyId,\n style,\n overlayDialogStyle,\n rendered,\n transitionConfig,\n zIndex,\n handleClose,\n onModalClick,\n onOpenAutoFocus,\n onCloseAutoFocus,\n onCloseRequested,\n onFocusoutPrevented,\n} = useDialog(props, dialogRef)\n\nprovide(dialogInjectionKey, {\n dialogRef,\n headerRef,\n bodyId,\n ns,\n rendered,\n style,\n})\n\nconst overlayEvent = useSameTarget(onModalClick)\n\nconst draggable = computed(() => props.draggable && !props.fullscreen)\n\nconst penetrable = computed(\n () => props.modalPenetrable && !props.modal && !props.fullscreen\n)\n\nconst resetPosition = () => {\n dialogContentRef.value?.resetPosition()\n}\n\ndefineExpose({\n /** @description whether the dialog is visible */\n visible,\n dialogContentRef,\n resetPosition,\n handleClose,\n})\n</script>\n"],"names":["_openBlock","_createBlock","_unref"],"mappings":";;;;;;;;;;;;;mCAyFc,CAAA;AAAA,EACZ,IAAM,EAAA,UAAA;AAAA,EACN,YAAc,EAAA,KAAA;AAChB,CAAA,CAAA,CAAA;;;;;;;AAIA,IAAA,MAAM,QAAQ,QAAS,EAAA,CAAA;AAEvB,IAAA,aAAA,CAAA;AAAA,MACE,KAAA,EAAA,WAAA;AAAA,MAAA,IACS,EAAA,gBAAA;AAAA,MAAA,WACD,EAAA,iBAAA;AAAA,MAAA,OACO,EAAA,OAAA;AAAA,MAAA,GACJ,EAAA,4DAAA;AAAA,KAAA,EAAA,QACJ,CAAA,MAAA,CAAA,CAAA,KAAA,CAAA,KAAA,CAAA,CAAA,CAAA;AAAA,IACP,MAAA,EAAA,GAAA,YAAA,CAAA,QAAA,CAAA,CAAA;AAAA,IAAA,MACS,SAAA,GAAO;AAAY,IAC9B,MAAA,SAAA,GAAA,GAAA,EAAA,CAAA;AAEA,IAAM,MAAA,mBAA0B,GAAA,EAAA,CAAA;AAChC,IAAA,MAAM;AACN,MAAA;AACA,MAAA;AAEA,MAAM,MAAA;AAAA,MACJ,KAAA;AAAA,MACA,kBAAA;AAAA,MACA,QAAA;AAAA,MACA,gBAAA;AAAA,MACA,MAAA;AAAA,MACA,WAAA;AAAA,MACA,YAAA;AAAA,MACA,eAAA;AAAA,MACA,gBAAA;AAAA,MACA,gBAAA;AAAA,MACA,mBAAA;AAAA,KACA,GAAA,SAAA,CAAA,KAAA,EAAA,SAAA,CAAA,CAAA;AAAA,IACA,OAAA,CAAA,kBAAA,EAAA;AAAA,MACA,SAAA;AAAA,MACF,SAAc;AAEd,MAAA,MAAQ;AAAoB,MAC1B,EAAA;AAAA,MACA,QAAA;AAAA,MACA,KAAA;AAAA,KACA,CAAA,CAAA;AAAA,IACA,MAAA,YAAA,GAAA,aAAA,CAAA,YAAA,CAAA,CAAA;AAAA,IACA,MAAA,SAAA,GAAA,QAAA,CAAA,MAAA,KAAA,CAAA,SAAA,IAAA,CAAA,KAAA,CAAA,UAAA,CAAA,CAAA;AAAA,IACF,MAAC,UAAA,GAAA,QAAA,CAAA,MAAA,KAAA,CAAA,eAAA,IAAA,CAAA,KAAA,CAAA,KAAA,IAAA,CAAA,KAAA,CAAA,UAAA,CAAA,CAAA;AAED,IAAM,MAAA,aAAA;AAEN,MAAA,IAAM;AAEN,MAAA,CAAA,EAAA,GAAmB,gBAAA,CAAA,KAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,aAAA,EAAA,CAAA;AAAA,KAAA,CACjB;AAAsD,IACxD,MAAA,CAAA;AAEA,MAAA;AACE,MAAA,gBAAA;AAAsC,MACxC,aAAA;AAEA,MAAa,WAAA;AAAA,KAAA,CAAA,CAAA;AAAA,IAEX,OAAA,CAAA,IAAA,EAAA,MAAA,KAAA;AAAA,MACA,OAAAA,SAAA,EAAA,EAAAC,WAAA,CAAAC,KAAA,CAAA,UAAA,CAAA,EAAA;AAAA,QACA,EAAA,EAAA,IAAA,CAAA,QAAA;AAAA,QACA,QAAA,EAAA,IAAA,CAAA,QAAA,KAAA,MAAA,GAAA,KAAA,GAAA,CAAA,IAAA,CAAA,YAAA;AAAA,OACD,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -18,6 +18,7 @@ export declare const drawerProps: {
18
18
  readonly closeOnPressEscape: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
19
19
  readonly lockScroll: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
20
20
  readonly modal: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
21
+ readonly modalPenetrable: BooleanConstructor;
21
22
  readonly openDelay: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
22
23
  readonly closeDelay: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
23
24
  readonly top: {
@@ -27,6 +27,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
27
27
  readonly closeOnPressEscape: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
28
28
  readonly lockScroll: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
29
29
  readonly modal: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
30
+ readonly modalPenetrable: BooleanConstructor;
30
31
  readonly openDelay: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
31
32
  readonly closeDelay: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
32
33
  readonly top: {
@@ -99,6 +100,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
99
100
  readonly closeOnPressEscape: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
100
101
  readonly lockScroll: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
101
102
  readonly modal: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
103
+ readonly modalPenetrable: BooleanConstructor;
102
104
  readonly openDelay: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
103
105
  readonly closeDelay: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
104
106
  readonly top: {
@@ -171,6 +173,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
171
173
  readonly headerAriaLevel: string;
172
174
  readonly appendToBody: boolean;
173
175
  readonly destroyOnClose: boolean;
176
+ readonly modalPenetrable: boolean;
174
177
  readonly trapFocus: boolean;
175
178
  readonly withHeader: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
176
179
  readonly modalFade: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
@@ -1,7 +1,7 @@
1
- import Dropdown from './src/dropdown2.mjs';
1
+ import Dropdown from './src/dropdown.mjs';
2
2
  import DropdownItem from './src/dropdown-item.mjs';
3
3
  import DropdownMenu from './src/dropdown-menu.mjs';
4
- export { DROPDOWN_COLLECTION_INJECTION_KEY, DROPDOWN_COLLECTION_ITEM_INJECTION_KEY, ElCollection, ElCollectionItem, FIRST_KEYS, FIRST_LAST_KEYS, LAST_KEYS, dropdownItemProps, dropdownMenuProps, dropdownProps } from './src/dropdown.mjs';
4
+ export { DROPDOWN_COLLECTION_INJECTION_KEY, DROPDOWN_COLLECTION_ITEM_INJECTION_KEY, ElCollection, ElCollectionItem, FIRST_KEYS, FIRST_LAST_KEYS, LAST_KEYS, dropdownItemProps, dropdownMenuProps, dropdownProps } from './src/dropdown2.mjs';
5
5
  export { DROPDOWN_INJECTION_KEY, DROPDOWN_INSTANCE_INJECTION_KEY } from './src/tokens.mjs';
6
6
  import { withInstall, withNoopInstall } from '../../utils/vue/install.mjs';
7
7
 
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, inject, computed, resolveComponent, openBlock, createElementBlock, Fragment, normalizeClass, createCommentVNode, createElementVNode, mergeProps, withModifiers, createBlock, withCtx, resolveDynamicComponent, renderSlot } from 'vue';
2
2
  import { ElIcon } from '../../icon/index.mjs';
3
- import { dropdownItemProps, DROPDOWN_COLLECTION_ITEM_INJECTION_KEY as COLLECTION_ITEM_INJECTION_KEY } from './dropdown.mjs';
3
+ import { dropdownItemProps, DROPDOWN_COLLECTION_ITEM_INJECTION_KEY as COLLECTION_ITEM_INJECTION_KEY } from './dropdown2.mjs';
4
4
  import { DROPDOWN_INJECTION_KEY } from './tokens.mjs';
5
5
  import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
6
6
  import { ROVING_FOCUS_ITEM_COLLECTION_INJECTION_KEY as COLLECTION_ITEM_INJECTION_KEY$1 } from '../../roving-focus-group/src/roving-focus-group.mjs';
@@ -2,7 +2,7 @@ import { defineComponent, getCurrentInstance, ref, computed, unref, inject, reso
2
2
  import ElRovingFocusItem from '../../roving-focus-group/src/roving-focus-item.mjs';
3
3
  import ElDropdownItemImpl from './dropdown-item-impl.mjs';
4
4
  import { useDropdown } from './useDropdown.mjs';
5
- import { ElCollectionItem, dropdownItemProps } from './dropdown.mjs';
5
+ import { ElCollectionItem, dropdownItemProps } from './dropdown2.mjs';
6
6
  import { DROPDOWN_INJECTION_KEY } from './tokens.mjs';
7
7
  import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
8
8
  import { composeEventHandlers, whenMouse } from '../../../utils/dom/event.mjs';
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, inject, computed, openBlock, createElementBlock, normalizeClass, normalizeStyle, withModifiers, renderSlot, unref } from 'vue';
2
2
  import { DROPDOWN_INJECTION_KEY } from './tokens.mjs';
3
- import { dropdownMenuProps, DROPDOWN_COLLECTION_INJECTION_KEY as COLLECTION_INJECTION_KEY, FIRST_LAST_KEYS, LAST_KEYS } from './dropdown.mjs';
3
+ import { dropdownMenuProps, DROPDOWN_COLLECTION_INJECTION_KEY as COLLECTION_INJECTION_KEY, FIRST_LAST_KEYS, LAST_KEYS } from './dropdown2.mjs';
4
4
  import { useDropdown } from './useDropdown.mjs';
5
5
  import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
6
6
  import { ROVING_FOCUS_GROUP_INJECTION_KEY } from '../../roving-focus-group/src/tokens.mjs';