@element-plus/nightly 0.0.20250228 → 0.0.20250302

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 (540) hide show
  1. package/dist/index.full.js +2 -2
  2. package/dist/index.full.min.js +2 -2
  3. package/dist/index.full.min.js.map +1 -1
  4. package/dist/index.full.min.mjs +2 -2
  5. package/dist/index.full.min.mjs.map +1 -1
  6. package/dist/index.full.mjs +2 -2
  7. package/dist/locale/af.js +1 -1
  8. package/dist/locale/af.min.js +1 -1
  9. package/dist/locale/af.min.mjs +1 -1
  10. package/dist/locale/af.mjs +1 -1
  11. package/dist/locale/ar-eg.js +1 -1
  12. package/dist/locale/ar-eg.min.js +1 -1
  13. package/dist/locale/ar-eg.min.mjs +1 -1
  14. package/dist/locale/ar-eg.mjs +1 -1
  15. package/dist/locale/ar.js +1 -1
  16. package/dist/locale/ar.min.js +1 -1
  17. package/dist/locale/ar.min.mjs +1 -1
  18. package/dist/locale/ar.mjs +1 -1
  19. package/dist/locale/az.js +1 -1
  20. package/dist/locale/az.min.js +1 -1
  21. package/dist/locale/az.min.mjs +1 -1
  22. package/dist/locale/az.mjs +1 -1
  23. package/dist/locale/bg.js +1 -1
  24. package/dist/locale/bg.min.js +1 -1
  25. package/dist/locale/bg.min.mjs +1 -1
  26. package/dist/locale/bg.mjs +1 -1
  27. package/dist/locale/bn.js +1 -1
  28. package/dist/locale/bn.min.js +1 -1
  29. package/dist/locale/bn.min.mjs +1 -1
  30. package/dist/locale/bn.mjs +1 -1
  31. package/dist/locale/ca.js +1 -1
  32. package/dist/locale/ca.min.js +1 -1
  33. package/dist/locale/ca.min.mjs +1 -1
  34. package/dist/locale/ca.mjs +1 -1
  35. package/dist/locale/ckb.js +1 -1
  36. package/dist/locale/ckb.min.js +1 -1
  37. package/dist/locale/ckb.min.mjs +1 -1
  38. package/dist/locale/ckb.mjs +1 -1
  39. package/dist/locale/cs.js +1 -1
  40. package/dist/locale/cs.min.js +1 -1
  41. package/dist/locale/cs.min.mjs +1 -1
  42. package/dist/locale/cs.mjs +1 -1
  43. package/dist/locale/da.js +1 -1
  44. package/dist/locale/da.min.js +1 -1
  45. package/dist/locale/da.min.mjs +1 -1
  46. package/dist/locale/da.mjs +1 -1
  47. package/dist/locale/de.js +1 -1
  48. package/dist/locale/de.min.js +1 -1
  49. package/dist/locale/de.min.mjs +1 -1
  50. package/dist/locale/de.mjs +1 -1
  51. package/dist/locale/el.js +1 -1
  52. package/dist/locale/el.min.js +1 -1
  53. package/dist/locale/el.min.mjs +1 -1
  54. package/dist/locale/el.mjs +1 -1
  55. package/dist/locale/en.js +1 -1
  56. package/dist/locale/en.min.js +1 -1
  57. package/dist/locale/en.min.mjs +1 -1
  58. package/dist/locale/en.mjs +1 -1
  59. package/dist/locale/eo.js +1 -1
  60. package/dist/locale/eo.min.js +1 -1
  61. package/dist/locale/eo.min.mjs +1 -1
  62. package/dist/locale/eo.mjs +1 -1
  63. package/dist/locale/es.js +1 -1
  64. package/dist/locale/es.min.js +1 -1
  65. package/dist/locale/es.min.mjs +1 -1
  66. package/dist/locale/es.mjs +1 -1
  67. package/dist/locale/et.js +1 -1
  68. package/dist/locale/et.min.js +1 -1
  69. package/dist/locale/et.min.mjs +1 -1
  70. package/dist/locale/et.mjs +1 -1
  71. package/dist/locale/eu.js +1 -1
  72. package/dist/locale/eu.min.js +1 -1
  73. package/dist/locale/eu.min.mjs +1 -1
  74. package/dist/locale/eu.mjs +1 -1
  75. package/dist/locale/fa.js +1 -1
  76. package/dist/locale/fa.min.js +1 -1
  77. package/dist/locale/fa.min.mjs +1 -1
  78. package/dist/locale/fa.mjs +1 -1
  79. package/dist/locale/fi.js +1 -1
  80. package/dist/locale/fi.min.js +1 -1
  81. package/dist/locale/fi.min.mjs +1 -1
  82. package/dist/locale/fi.mjs +1 -1
  83. package/dist/locale/fr.js +1 -1
  84. package/dist/locale/fr.min.js +1 -1
  85. package/dist/locale/fr.min.mjs +1 -1
  86. package/dist/locale/fr.mjs +1 -1
  87. package/dist/locale/he.js +1 -1
  88. package/dist/locale/he.min.js +1 -1
  89. package/dist/locale/he.min.mjs +1 -1
  90. package/dist/locale/he.mjs +1 -1
  91. package/dist/locale/hi.js +1 -1
  92. package/dist/locale/hi.min.js +1 -1
  93. package/dist/locale/hi.min.mjs +1 -1
  94. package/dist/locale/hi.mjs +1 -1
  95. package/dist/locale/hr.js +1 -1
  96. package/dist/locale/hr.min.js +1 -1
  97. package/dist/locale/hr.min.mjs +1 -1
  98. package/dist/locale/hr.mjs +1 -1
  99. package/dist/locale/hu.js +1 -1
  100. package/dist/locale/hu.min.js +1 -1
  101. package/dist/locale/hu.min.mjs +1 -1
  102. package/dist/locale/hu.mjs +1 -1
  103. package/dist/locale/hy-am.js +1 -1
  104. package/dist/locale/hy-am.min.js +1 -1
  105. package/dist/locale/hy-am.min.mjs +1 -1
  106. package/dist/locale/hy-am.mjs +1 -1
  107. package/dist/locale/id.js +1 -1
  108. package/dist/locale/id.min.js +1 -1
  109. package/dist/locale/id.min.mjs +1 -1
  110. package/dist/locale/id.mjs +1 -1
  111. package/dist/locale/it.js +1 -1
  112. package/dist/locale/it.min.js +1 -1
  113. package/dist/locale/it.min.mjs +1 -1
  114. package/dist/locale/it.mjs +1 -1
  115. package/dist/locale/ja.js +1 -1
  116. package/dist/locale/ja.min.js +1 -1
  117. package/dist/locale/ja.min.mjs +1 -1
  118. package/dist/locale/ja.mjs +1 -1
  119. package/dist/locale/kk.js +1 -1
  120. package/dist/locale/kk.min.js +1 -1
  121. package/dist/locale/kk.min.mjs +1 -1
  122. package/dist/locale/kk.mjs +1 -1
  123. package/dist/locale/km.js +1 -1
  124. package/dist/locale/km.min.js +1 -1
  125. package/dist/locale/km.min.mjs +1 -1
  126. package/dist/locale/km.mjs +1 -1
  127. package/dist/locale/ko.js +1 -1
  128. package/dist/locale/ko.min.js +1 -1
  129. package/dist/locale/ko.min.mjs +1 -1
  130. package/dist/locale/ko.mjs +1 -1
  131. package/dist/locale/ku.js +1 -1
  132. package/dist/locale/ku.min.js +1 -1
  133. package/dist/locale/ku.min.mjs +1 -1
  134. package/dist/locale/ku.mjs +1 -1
  135. package/dist/locale/ky.js +1 -1
  136. package/dist/locale/ky.min.js +1 -1
  137. package/dist/locale/ky.min.mjs +1 -1
  138. package/dist/locale/ky.mjs +1 -1
  139. package/dist/locale/lt.js +1 -1
  140. package/dist/locale/lt.min.js +1 -1
  141. package/dist/locale/lt.min.mjs +1 -1
  142. package/dist/locale/lt.mjs +1 -1
  143. package/dist/locale/lv.js +1 -1
  144. package/dist/locale/lv.min.js +1 -1
  145. package/dist/locale/lv.min.mjs +1 -1
  146. package/dist/locale/lv.mjs +1 -1
  147. package/dist/locale/mg.js +1 -1
  148. package/dist/locale/mg.min.js +1 -1
  149. package/dist/locale/mg.min.mjs +1 -1
  150. package/dist/locale/mg.mjs +1 -1
  151. package/dist/locale/mn.js +1 -1
  152. package/dist/locale/mn.min.js +1 -1
  153. package/dist/locale/mn.min.mjs +1 -1
  154. package/dist/locale/mn.mjs +1 -1
  155. package/dist/locale/ms.js +1 -1
  156. package/dist/locale/ms.min.js +1 -1
  157. package/dist/locale/ms.min.mjs +1 -1
  158. package/dist/locale/ms.mjs +1 -1
  159. package/dist/locale/my.js +1 -1
  160. package/dist/locale/my.min.js +1 -1
  161. package/dist/locale/my.min.mjs +1 -1
  162. package/dist/locale/my.mjs +1 -1
  163. package/dist/locale/nb-no.js +1 -1
  164. package/dist/locale/nb-no.min.js +1 -1
  165. package/dist/locale/nb-no.min.mjs +1 -1
  166. package/dist/locale/nb-no.mjs +1 -1
  167. package/dist/locale/nl.js +1 -1
  168. package/dist/locale/nl.min.js +1 -1
  169. package/dist/locale/nl.min.mjs +1 -1
  170. package/dist/locale/nl.mjs +1 -1
  171. package/dist/locale/no.js +1 -1
  172. package/dist/locale/no.min.js +1 -1
  173. package/dist/locale/no.min.mjs +1 -1
  174. package/dist/locale/no.mjs +1 -1
  175. package/dist/locale/pa.js +1 -1
  176. package/dist/locale/pa.min.js +1 -1
  177. package/dist/locale/pa.min.mjs +1 -1
  178. package/dist/locale/pa.mjs +1 -1
  179. package/dist/locale/pl.js +1 -1
  180. package/dist/locale/pl.min.js +1 -1
  181. package/dist/locale/pl.min.mjs +1 -1
  182. package/dist/locale/pl.mjs +1 -1
  183. package/dist/locale/pt-br.js +1 -1
  184. package/dist/locale/pt-br.min.js +1 -1
  185. package/dist/locale/pt-br.min.mjs +1 -1
  186. package/dist/locale/pt-br.mjs +1 -1
  187. package/dist/locale/pt.js +1 -1
  188. package/dist/locale/pt.min.js +1 -1
  189. package/dist/locale/pt.min.mjs +1 -1
  190. package/dist/locale/pt.mjs +1 -1
  191. package/dist/locale/ro.js +1 -1
  192. package/dist/locale/ro.min.js +1 -1
  193. package/dist/locale/ro.min.mjs +1 -1
  194. package/dist/locale/ro.mjs +1 -1
  195. package/dist/locale/ru.js +1 -1
  196. package/dist/locale/ru.min.js +1 -1
  197. package/dist/locale/ru.min.mjs +1 -1
  198. package/dist/locale/ru.mjs +1 -1
  199. package/dist/locale/sk.js +1 -1
  200. package/dist/locale/sk.min.js +1 -1
  201. package/dist/locale/sk.min.mjs +1 -1
  202. package/dist/locale/sk.mjs +1 -1
  203. package/dist/locale/sl.js +1 -1
  204. package/dist/locale/sl.min.js +1 -1
  205. package/dist/locale/sl.min.mjs +1 -1
  206. package/dist/locale/sl.mjs +1 -1
  207. package/dist/locale/sr.js +1 -1
  208. package/dist/locale/sr.min.js +1 -1
  209. package/dist/locale/sr.min.mjs +1 -1
  210. package/dist/locale/sr.mjs +1 -1
  211. package/dist/locale/sv.js +1 -1
  212. package/dist/locale/sv.min.js +1 -1
  213. package/dist/locale/sv.min.mjs +1 -1
  214. package/dist/locale/sv.mjs +1 -1
  215. package/dist/locale/sw.js +1 -1
  216. package/dist/locale/sw.min.js +1 -1
  217. package/dist/locale/sw.min.mjs +1 -1
  218. package/dist/locale/sw.mjs +1 -1
  219. package/dist/locale/ta.js +1 -1
  220. package/dist/locale/ta.min.js +1 -1
  221. package/dist/locale/ta.min.mjs +1 -1
  222. package/dist/locale/ta.mjs +1 -1
  223. package/dist/locale/te.js +1 -1
  224. package/dist/locale/te.min.js +1 -1
  225. package/dist/locale/te.min.mjs +1 -1
  226. package/dist/locale/te.mjs +1 -1
  227. package/dist/locale/th.js +1 -1
  228. package/dist/locale/th.min.js +1 -1
  229. package/dist/locale/th.min.mjs +1 -1
  230. package/dist/locale/th.mjs +1 -1
  231. package/dist/locale/tk.js +1 -1
  232. package/dist/locale/tk.min.js +1 -1
  233. package/dist/locale/tk.min.mjs +1 -1
  234. package/dist/locale/tk.mjs +1 -1
  235. package/dist/locale/tr.js +1 -1
  236. package/dist/locale/tr.min.js +1 -1
  237. package/dist/locale/tr.min.mjs +1 -1
  238. package/dist/locale/tr.mjs +1 -1
  239. package/dist/locale/ug-cn.js +1 -1
  240. package/dist/locale/ug-cn.min.js +1 -1
  241. package/dist/locale/ug-cn.min.mjs +1 -1
  242. package/dist/locale/ug-cn.mjs +1 -1
  243. package/dist/locale/uk.js +1 -1
  244. package/dist/locale/uk.min.js +1 -1
  245. package/dist/locale/uk.min.mjs +1 -1
  246. package/dist/locale/uk.mjs +1 -1
  247. package/dist/locale/uz-uz.js +1 -1
  248. package/dist/locale/uz-uz.min.js +1 -1
  249. package/dist/locale/uz-uz.min.mjs +1 -1
  250. package/dist/locale/uz-uz.mjs +1 -1
  251. package/dist/locale/vi.js +1 -1
  252. package/dist/locale/vi.min.js +1 -1
  253. package/dist/locale/vi.min.mjs +1 -1
  254. package/dist/locale/vi.mjs +1 -1
  255. package/dist/locale/zh-cn.js +1 -1
  256. package/dist/locale/zh-cn.min.js +1 -1
  257. package/dist/locale/zh-cn.min.mjs +1 -1
  258. package/dist/locale/zh-cn.mjs +1 -1
  259. package/dist/locale/zh-hk.js +1 -1
  260. package/dist/locale/zh-hk.min.js +1 -1
  261. package/dist/locale/zh-hk.min.mjs +1 -1
  262. package/dist/locale/zh-hk.mjs +1 -1
  263. package/dist/locale/zh-mo.js +1 -1
  264. package/dist/locale/zh-mo.min.js +1 -1
  265. package/dist/locale/zh-mo.min.mjs +1 -1
  266. package/dist/locale/zh-mo.mjs +1 -1
  267. package/dist/locale/zh-tw.js +1 -1
  268. package/dist/locale/zh-tw.min.js +1 -1
  269. package/dist/locale/zh-tw.min.mjs +1 -1
  270. package/dist/locale/zh-tw.mjs +1 -1
  271. package/es/components/alert/index.mjs +2 -2
  272. package/es/components/alert/src/alert.mjs +89 -36
  273. package/es/components/alert/src/alert.mjs.map +1 -1
  274. package/es/components/alert/src/alert2.mjs +36 -89
  275. package/es/components/alert/src/alert2.mjs.map +1 -1
  276. package/es/components/anchor/index.mjs +2 -2
  277. package/es/components/anchor/src/anchor.mjs +192 -42
  278. package/es/components/anchor/src/anchor.mjs.map +1 -1
  279. package/es/components/anchor/src/anchor2.mjs +42 -192
  280. package/es/components/anchor/src/anchor2.mjs.map +1 -1
  281. package/es/components/avatar/index.mjs +2 -2
  282. package/es/components/avatar/src/avatar.mjs +65 -31
  283. package/es/components/avatar/src/avatar.mjs.map +1 -1
  284. package/es/components/avatar/src/avatar2.mjs +31 -65
  285. package/es/components/avatar/src/avatar2.mjs.map +1 -1
  286. package/es/components/button/index.mjs +2 -2
  287. package/es/components/button/src/button-group.mjs +1 -1
  288. package/es/components/button/src/button.mjs +77 -56
  289. package/es/components/button/src/button.mjs.map +1 -1
  290. package/es/components/button/src/button2.mjs +56 -77
  291. package/es/components/button/src/button2.mjs.map +1 -1
  292. package/es/components/card/index.mjs +2 -2
  293. package/es/components/card/src/card.mjs +20 -42
  294. package/es/components/card/src/card.mjs.map +1 -1
  295. package/es/components/card/src/card2.mjs +42 -20
  296. package/es/components/card/src/card2.mjs.map +1 -1
  297. package/es/components/carousel/index.mjs +2 -2
  298. package/es/components/carousel/src/carousel-item.mjs +69 -7
  299. package/es/components/carousel/src/carousel-item.mjs.map +1 -1
  300. package/es/components/carousel/src/carousel-item2.mjs +7 -69
  301. package/es/components/carousel/src/carousel-item2.mjs.map +1 -1
  302. package/es/components/image/index.mjs +2 -2
  303. package/es/components/image/src/image.mjs +222 -68
  304. package/es/components/image/src/image.mjs.map +1 -1
  305. package/es/components/image/src/image2.mjs +68 -222
  306. package/es/components/image/src/image2.mjs.map +1 -1
  307. package/es/components/image-viewer/index.mjs +2 -2
  308. package/es/components/image-viewer/src/image-viewer.mjs +446 -49
  309. package/es/components/image-viewer/src/image-viewer.mjs.map +1 -1
  310. package/es/components/image-viewer/src/image-viewer2.mjs +49 -446
  311. package/es/components/image-viewer/src/image-viewer2.mjs.map +1 -1
  312. package/es/components/index.mjs +20 -20
  313. package/es/components/input/index.mjs +2 -2
  314. package/es/components/input/src/input.mjs +102 -431
  315. package/es/components/input/src/input.mjs.map +1 -1
  316. package/es/components/input/src/input2.mjs +431 -102
  317. package/es/components/input/src/input2.mjs.map +1 -1
  318. package/es/components/input-tag/index.mjs +2 -2
  319. package/es/components/input-tag/src/input-tag.mjs +215 -65
  320. package/es/components/input-tag/src/input-tag.mjs.map +1 -1
  321. package/es/components/input-tag/src/input-tag2.mjs +65 -215
  322. package/es/components/input-tag/src/input-tag2.mjs.map +1 -1
  323. package/es/components/mention/src/mention.mjs +1 -1
  324. package/es/components/mention/src/mention2.mjs +1 -1
  325. package/es/components/menu/index.mjs +2 -2
  326. package/es/components/menu/src/menu-item.mjs +97 -15
  327. package/es/components/menu/src/menu-item.mjs.map +1 -1
  328. package/es/components/menu/src/menu-item2.mjs +15 -97
  329. package/es/components/menu/src/menu-item2.mjs.map +1 -1
  330. package/es/components/notification/index.mjs +1 -1
  331. package/es/components/notification/src/notification.mjs +142 -68
  332. package/es/components/notification/src/notification.mjs.map +1 -1
  333. package/es/components/notification/src/notification2.mjs +68 -142
  334. package/es/components/notification/src/notification2.mjs.map +1 -1
  335. package/es/components/notification/src/notify.mjs +2 -2
  336. package/es/components/pagination/src/components/jumper.mjs +58 -7
  337. package/es/components/pagination/src/components/jumper.mjs.map +1 -1
  338. package/es/components/pagination/src/components/jumper2.mjs +7 -58
  339. package/es/components/pagination/src/components/jumper2.mjs.map +1 -1
  340. package/es/components/pagination/src/pagination.mjs +1 -1
  341. package/es/components/popconfirm/src/popconfirm.mjs +1 -1
  342. package/es/components/popper/index.mjs +2 -2
  343. package/es/components/popper/src/trigger.mjs +31 -127
  344. package/es/components/popper/src/trigger.mjs.map +1 -1
  345. package/es/components/popper/src/trigger2.mjs +127 -31
  346. package/es/components/popper/src/trigger2.mjs.map +1 -1
  347. package/es/components/result/index.mjs +2 -2
  348. package/es/components/result/src/result.mjs +28 -62
  349. package/es/components/result/src/result.mjs.map +1 -1
  350. package/es/components/result/src/result2.mjs +62 -28
  351. package/es/components/result/src/result2.mjs.map +1 -1
  352. package/es/components/scrollbar/index.mjs +2 -2
  353. package/es/components/scrollbar/src/scrollbar.mjs +55 -170
  354. package/es/components/scrollbar/src/scrollbar.mjs.map +1 -1
  355. package/es/components/scrollbar/src/scrollbar2.mjs +170 -55
  356. package/es/components/scrollbar/src/scrollbar2.mjs.map +1 -1
  357. package/es/components/skeleton/index.mjs +4 -4
  358. package/es/components/skeleton/src/skeleton-item.mjs +17 -22
  359. package/es/components/skeleton/src/skeleton-item.mjs.map +1 -1
  360. package/es/components/skeleton/src/skeleton-item2.mjs +22 -17
  361. package/es/components/skeleton/src/skeleton-item2.mjs.map +1 -1
  362. package/es/components/skeleton/src/skeleton.mjs +48 -21
  363. package/es/components/skeleton/src/skeleton.mjs.map +1 -1
  364. package/es/components/skeleton/src/skeleton2.mjs +21 -48
  365. package/es/components/skeleton/src/skeleton2.mjs.map +1 -1
  366. package/es/components/slider/src/button.mjs +91 -19
  367. package/es/components/slider/src/button.mjs.map +1 -1
  368. package/es/components/slider/src/button2.mjs +19 -91
  369. package/es/components/slider/src/button2.mjs.map +1 -1
  370. package/es/components/slider/src/slider2.mjs +1 -1
  371. package/es/components/timeline/index.mjs +2 -2
  372. package/es/components/timeline/src/timeline-item.mjs +72 -33
  373. package/es/components/timeline/src/timeline-item.mjs.map +1 -1
  374. package/es/components/timeline/src/timeline-item2.mjs +33 -72
  375. package/es/components/timeline/src/timeline-item2.mjs.map +1 -1
  376. package/es/components/tooltip/src/trigger.mjs +1 -1
  377. package/es/components/tooltip/src/trigger2.mjs +1 -1
  378. package/es/components/tooltip-v2/index.mjs +2 -2
  379. package/es/components/tooltip-v2/src/arrow.mjs +37 -21
  380. package/es/components/tooltip-v2/src/arrow.mjs.map +1 -1
  381. package/es/components/tooltip-v2/src/arrow2.mjs +21 -37
  382. package/es/components/tooltip-v2/src/arrow2.mjs.map +1 -1
  383. package/es/components/tooltip-v2/src/tooltip.mjs +2 -2
  384. package/es/components/tooltip-v2/src/tooltip2.mjs +4 -4
  385. package/es/components/tooltip-v2/src/trigger.mjs +12 -89
  386. package/es/components/tooltip-v2/src/trigger.mjs.map +1 -1
  387. package/es/components/tooltip-v2/src/trigger2.mjs +89 -12
  388. package/es/components/tooltip-v2/src/trigger2.mjs.map +1 -1
  389. package/es/components/upload/index.mjs +2 -2
  390. package/es/components/upload/src/upload-content.mjs +1 -1
  391. package/es/components/upload/src/upload-content2.mjs +1 -1
  392. package/es/components/upload/src/upload-list.mjs +1 -1
  393. package/es/components/upload/src/upload.mjs +97 -125
  394. package/es/components/upload/src/upload.mjs.map +1 -1
  395. package/es/components/upload/src/upload2.mjs +125 -97
  396. package/es/components/upload/src/upload2.mjs.map +1 -1
  397. package/es/components/upload/src/use-handlers.mjs +1 -1
  398. package/es/directives/click-outside/index.mjs +1 -1
  399. package/es/hooks/use-focus-controller/index.mjs +1 -1
  400. package/es/hooks/use-lockscreen/index.mjs +1 -1
  401. package/es/index.mjs +20 -20
  402. package/es/version.d.ts +1 -1
  403. package/es/version.mjs +1 -1
  404. package/es/version.mjs.map +1 -1
  405. package/lib/components/alert/index.js +2 -2
  406. package/lib/components/alert/src/alert.js +88 -37
  407. package/lib/components/alert/src/alert.js.map +1 -1
  408. package/lib/components/alert/src/alert2.js +37 -88
  409. package/lib/components/alert/src/alert2.js.map +1 -1
  410. package/lib/components/anchor/index.js +2 -2
  411. package/lib/components/anchor/src/anchor.js +191 -42
  412. package/lib/components/anchor/src/anchor.js.map +1 -1
  413. package/lib/components/anchor/src/anchor2.js +42 -191
  414. package/lib/components/anchor/src/anchor2.js.map +1 -1
  415. package/lib/components/avatar/index.js +2 -2
  416. package/lib/components/avatar/src/avatar.js +65 -32
  417. package/lib/components/avatar/src/avatar.js.map +1 -1
  418. package/lib/components/avatar/src/avatar2.js +32 -65
  419. package/lib/components/avatar/src/avatar2.js.map +1 -1
  420. package/lib/components/button/index.js +2 -2
  421. package/lib/components/button/src/button-group.js +1 -1
  422. package/lib/components/button/src/button.js +77 -59
  423. package/lib/components/button/src/button.js.map +1 -1
  424. package/lib/components/button/src/button2.js +59 -77
  425. package/lib/components/button/src/button2.js.map +1 -1
  426. package/lib/components/card/index.js +2 -2
  427. package/lib/components/card/src/card.js +20 -42
  428. package/lib/components/card/src/card.js.map +1 -1
  429. package/lib/components/card/src/card2.js +42 -20
  430. package/lib/components/card/src/card2.js.map +1 -1
  431. package/lib/components/carousel/index.js +2 -2
  432. package/lib/components/carousel/src/carousel-item.js +69 -7
  433. package/lib/components/carousel/src/carousel-item.js.map +1 -1
  434. package/lib/components/carousel/src/carousel-item2.js +7 -69
  435. package/lib/components/carousel/src/carousel-item2.js.map +1 -1
  436. package/lib/components/image/index.js +2 -2
  437. package/lib/components/image/src/image.js +221 -68
  438. package/lib/components/image/src/image.js.map +1 -1
  439. package/lib/components/image/src/image2.js +68 -221
  440. package/lib/components/image/src/image2.js.map +1 -1
  441. package/lib/components/image-viewer/index.js +2 -2
  442. package/lib/components/image-viewer/src/image-viewer.js +446 -50
  443. package/lib/components/image-viewer/src/image-viewer.js.map +1 -1
  444. package/lib/components/image-viewer/src/image-viewer2.js +50 -446
  445. package/lib/components/image-viewer/src/image-viewer2.js.map +1 -1
  446. package/lib/components/index.js +20 -20
  447. package/lib/components/input/index.js +2 -2
  448. package/lib/components/input/src/input.js +102 -430
  449. package/lib/components/input/src/input.js.map +1 -1
  450. package/lib/components/input/src/input2.js +430 -102
  451. package/lib/components/input/src/input2.js.map +1 -1
  452. package/lib/components/input-tag/index.js +2 -2
  453. package/lib/components/input-tag/src/input-tag.js +214 -65
  454. package/lib/components/input-tag/src/input-tag.js.map +1 -1
  455. package/lib/components/input-tag/src/input-tag2.js +65 -214
  456. package/lib/components/input-tag/src/input-tag2.js.map +1 -1
  457. package/lib/components/mention/src/mention.js +1 -1
  458. package/lib/components/mention/src/mention2.js +1 -1
  459. package/lib/components/menu/index.js +2 -2
  460. package/lib/components/menu/src/menu-item.js +97 -16
  461. package/lib/components/menu/src/menu-item.js.map +1 -1
  462. package/lib/components/menu/src/menu-item2.js +16 -97
  463. package/lib/components/menu/src/menu-item2.js.map +1 -1
  464. package/lib/components/notification/index.js +1 -1
  465. package/lib/components/notification/src/notification.js +141 -69
  466. package/lib/components/notification/src/notification.js.map +1 -1
  467. package/lib/components/notification/src/notification2.js +69 -141
  468. package/lib/components/notification/src/notification2.js.map +1 -1
  469. package/lib/components/notification/src/notify.js +2 -2
  470. package/lib/components/pagination/src/components/jumper.js +58 -7
  471. package/lib/components/pagination/src/components/jumper.js.map +1 -1
  472. package/lib/components/pagination/src/components/jumper2.js +7 -58
  473. package/lib/components/pagination/src/components/jumper2.js.map +1 -1
  474. package/lib/components/pagination/src/pagination.js +1 -1
  475. package/lib/components/popconfirm/src/popconfirm.js +1 -1
  476. package/lib/components/popper/index.js +2 -2
  477. package/lib/components/popper/src/trigger.js +32 -127
  478. package/lib/components/popper/src/trigger.js.map +1 -1
  479. package/lib/components/popper/src/trigger2.js +127 -32
  480. package/lib/components/popper/src/trigger2.js.map +1 -1
  481. package/lib/components/result/index.js +2 -2
  482. package/lib/components/result/src/result.js +30 -62
  483. package/lib/components/result/src/result.js.map +1 -1
  484. package/lib/components/result/src/result2.js +62 -30
  485. package/lib/components/result/src/result2.js.map +1 -1
  486. package/lib/components/scrollbar/index.js +2 -2
  487. package/lib/components/scrollbar/src/scrollbar.js +56 -170
  488. package/lib/components/scrollbar/src/scrollbar.js.map +1 -1
  489. package/lib/components/scrollbar/src/scrollbar2.js +170 -56
  490. package/lib/components/scrollbar/src/scrollbar2.js.map +1 -1
  491. package/lib/components/skeleton/index.js +4 -4
  492. package/lib/components/skeleton/src/skeleton-item.js +17 -22
  493. package/lib/components/skeleton/src/skeleton-item.js.map +1 -1
  494. package/lib/components/skeleton/src/skeleton-item2.js +22 -17
  495. package/lib/components/skeleton/src/skeleton-item2.js.map +1 -1
  496. package/lib/components/skeleton/src/skeleton.js +48 -21
  497. package/lib/components/skeleton/src/skeleton.js.map +1 -1
  498. package/lib/components/skeleton/src/skeleton2.js +21 -48
  499. package/lib/components/skeleton/src/skeleton2.js.map +1 -1
  500. package/lib/components/slider/src/button.js +91 -20
  501. package/lib/components/slider/src/button.js.map +1 -1
  502. package/lib/components/slider/src/button2.js +20 -91
  503. package/lib/components/slider/src/button2.js.map +1 -1
  504. package/lib/components/slider/src/slider2.js +1 -1
  505. package/lib/components/timeline/index.js +2 -2
  506. package/lib/components/timeline/src/timeline-item.js +72 -33
  507. package/lib/components/timeline/src/timeline-item.js.map +1 -1
  508. package/lib/components/timeline/src/timeline-item2.js +33 -72
  509. package/lib/components/timeline/src/timeline-item2.js.map +1 -1
  510. package/lib/components/tooltip/src/trigger.js +1 -1
  511. package/lib/components/tooltip/src/trigger2.js +1 -1
  512. package/lib/components/tooltip-v2/index.js +2 -2
  513. package/lib/components/tooltip-v2/src/arrow.js +37 -22
  514. package/lib/components/tooltip-v2/src/arrow.js.map +1 -1
  515. package/lib/components/tooltip-v2/src/arrow2.js +22 -37
  516. package/lib/components/tooltip-v2/src/arrow2.js.map +1 -1
  517. package/lib/components/tooltip-v2/src/tooltip.js +2 -2
  518. package/lib/components/tooltip-v2/src/tooltip2.js +4 -4
  519. package/lib/components/tooltip-v2/src/trigger.js +12 -89
  520. package/lib/components/tooltip-v2/src/trigger.js.map +1 -1
  521. package/lib/components/tooltip-v2/src/trigger2.js +89 -12
  522. package/lib/components/tooltip-v2/src/trigger2.js.map +1 -1
  523. package/lib/components/upload/index.js +2 -2
  524. package/lib/components/upload/src/upload-content.js +1 -1
  525. package/lib/components/upload/src/upload-content2.js +1 -1
  526. package/lib/components/upload/src/upload-list.js +1 -1
  527. package/lib/components/upload/src/upload.js +100 -125
  528. package/lib/components/upload/src/upload.js.map +1 -1
  529. package/lib/components/upload/src/upload2.js +125 -100
  530. package/lib/components/upload/src/upload2.js.map +1 -1
  531. package/lib/components/upload/src/use-handlers.js +1 -1
  532. package/lib/directives/click-outside/index.js +1 -1
  533. package/lib/hooks/use-focus-controller/index.js +1 -1
  534. package/lib/hooks/use-lockscreen/index.js +1 -1
  535. package/lib/index.js +20 -20
  536. package/lib/version.d.ts +1 -1
  537. package/lib/version.js +1 -1
  538. package/lib/version.js.map +1 -1
  539. package/package.json +1 -1
  540. package/web-types.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"card.mjs","sources":["../../../../../../packages/components/card/src/card.vue"],"sourcesContent":["<template>\n <div :class=\"[ns.b(), ns.is(`${shadow}-shadow`)]\">\n <div v-if=\"$slots.header || header\" :class=\"ns.e('header')\">\n <slot name=\"header\">{{ header }}</slot>\n </div>\n <div :class=\"[ns.e('body'), bodyClass]\" :style=\"bodyStyle\">\n <slot />\n </div>\n <div v-if=\"$slots.footer || footer\" :class=\"ns.e('footer')\">\n <slot name=\"footer\">{{ footer }}</slot>\n </div>\n </div>\n</template>\n<script lang=\"ts\" setup>\nimport { useNamespace } from '@element-plus/hooks'\nimport { cardProps } from './card'\n\ndefineOptions({\n name: 'ElCard',\n})\n\ndefineProps(cardProps)\n\nconst ns = useNamespace('card')\n</script>\n"],"names":[],"mappings":";;;;;mCAiBc,CAAA;AAAA,EACZ,IAAM,EAAA,QAAA;AACR,CAAA,CAAA,CAAA;;;;;AAIA,IAAM,MAAA,EAAA,GAAK,aAAa,MAAM,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"card.mjs","sources":["../../../../../../packages/components/card/src/card.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport type { ExtractPropTypes, StyleValue } from 'vue'\n\nexport const cardProps = buildProps({\n /**\n * @description title of the card. Also accepts a DOM passed by `slot#header`\n */\n header: {\n type: String,\n default: '',\n },\n footer: {\n type: String,\n default: '',\n },\n /**\n * @description CSS style of card body\n */\n bodyStyle: {\n type: definePropType<StyleValue>([String, Object, Array]),\n default: '',\n },\n /**\n * @description custom class name of card body\n */\n bodyClass: String,\n /**\n * @description when to show card shadows\n */\n shadow: {\n type: String,\n values: ['always', 'hover', 'never'],\n default: 'always',\n },\n} as const)\nexport type CardProps = ExtractPropTypes<typeof cardProps>\n"],"names":[],"mappings":";;AACY,MAAC,SAAS,GAAG,UAAU,CAAC;AACpC,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;AACjD,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,SAAS,EAAE,MAAM;AACnB,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,CAAC;AACxC,IAAI,OAAO,EAAE,QAAQ;AACrB,GAAG;AACH,CAAC;;;;"}
@@ -1,25 +1,47 @@
1
- import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
1
+ import { defineComponent, openBlock, createElementBlock, normalizeClass, unref, renderSlot, createTextVNode, toDisplayString, createCommentVNode, createElementVNode, normalizeStyle } from 'vue';
2
+ import { cardProps } from './card.mjs';
3
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
4
+ import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
2
5
 
3
- const cardProps = buildProps({
4
- header: {
5
- type: String,
6
- default: ""
7
- },
8
- footer: {
9
- type: String,
10
- default: ""
11
- },
12
- bodyStyle: {
13
- type: definePropType([String, Object, Array]),
14
- default: ""
15
- },
16
- bodyClass: String,
17
- shadow: {
18
- type: String,
19
- values: ["always", "hover", "never"],
20
- default: "always"
6
+ const __default__ = defineComponent({
7
+ name: "ElCard"
8
+ });
9
+ const _sfc_main = /* @__PURE__ */ defineComponent({
10
+ ...__default__,
11
+ props: cardProps,
12
+ setup(__props) {
13
+ const ns = useNamespace("card");
14
+ return (_ctx, _cache) => {
15
+ return openBlock(), createElementBlock("div", {
16
+ class: normalizeClass([unref(ns).b(), unref(ns).is(`${_ctx.shadow}-shadow`)])
17
+ }, [
18
+ _ctx.$slots.header || _ctx.header ? (openBlock(), createElementBlock("div", {
19
+ key: 0,
20
+ class: normalizeClass(unref(ns).e("header"))
21
+ }, [
22
+ renderSlot(_ctx.$slots, "header", {}, () => [
23
+ createTextVNode(toDisplayString(_ctx.header), 1)
24
+ ])
25
+ ], 2)) : createCommentVNode("v-if", true),
26
+ createElementVNode("div", {
27
+ class: normalizeClass([unref(ns).e("body"), _ctx.bodyClass]),
28
+ style: normalizeStyle(_ctx.bodyStyle)
29
+ }, [
30
+ renderSlot(_ctx.$slots, "default")
31
+ ], 6),
32
+ _ctx.$slots.footer || _ctx.footer ? (openBlock(), createElementBlock("div", {
33
+ key: 1,
34
+ class: normalizeClass(unref(ns).e("footer"))
35
+ }, [
36
+ renderSlot(_ctx.$slots, "footer", {}, () => [
37
+ createTextVNode(toDisplayString(_ctx.footer), 1)
38
+ ])
39
+ ], 2)) : createCommentVNode("v-if", true)
40
+ ], 2);
41
+ };
21
42
  }
22
43
  });
44
+ var Card = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "card.vue"]]);
23
45
 
24
- export { cardProps };
46
+ export { Card as default };
25
47
  //# sourceMappingURL=card2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"card2.mjs","sources":["../../../../../../packages/components/card/src/card.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport type { ExtractPropTypes, StyleValue } from 'vue'\n\nexport const cardProps = buildProps({\n /**\n * @description title of the card. Also accepts a DOM passed by `slot#header`\n */\n header: {\n type: String,\n default: '',\n },\n footer: {\n type: String,\n default: '',\n },\n /**\n * @description CSS style of card body\n */\n bodyStyle: {\n type: definePropType<StyleValue>([String, Object, Array]),\n default: '',\n },\n /**\n * @description custom class name of card body\n */\n bodyClass: String,\n /**\n * @description when to show card shadows\n */\n shadow: {\n type: String,\n values: ['always', 'hover', 'never'],\n default: 'always',\n },\n} as const)\nexport type CardProps = ExtractPropTypes<typeof cardProps>\n"],"names":[],"mappings":";;AACY,MAAC,SAAS,GAAG,UAAU,CAAC;AACpC,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;AACjD,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,SAAS,EAAE,MAAM;AACnB,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,CAAC;AACxC,IAAI,OAAO,EAAE,QAAQ;AACrB,GAAG;AACH,CAAC;;;;"}
1
+ {"version":3,"file":"card2.mjs","sources":["../../../../../../packages/components/card/src/card.vue"],"sourcesContent":["<template>\n <div :class=\"[ns.b(), ns.is(`${shadow}-shadow`)]\">\n <div v-if=\"$slots.header || header\" :class=\"ns.e('header')\">\n <slot name=\"header\">{{ header }}</slot>\n </div>\n <div :class=\"[ns.e('body'), bodyClass]\" :style=\"bodyStyle\">\n <slot />\n </div>\n <div v-if=\"$slots.footer || footer\" :class=\"ns.e('footer')\">\n <slot name=\"footer\">{{ footer }}</slot>\n </div>\n </div>\n</template>\n<script lang=\"ts\" setup>\nimport { useNamespace } from '@element-plus/hooks'\nimport { cardProps } from './card'\n\ndefineOptions({\n name: 'ElCard',\n})\n\ndefineProps(cardProps)\n\nconst ns = useNamespace('card')\n</script>\n"],"names":[],"mappings":";;;;;mCAiBc,CAAA;AAAA,EACZ,IAAM,EAAA,QAAA;AACR,CAAA,CAAA,CAAA;;;;;AAIA,IAAM,MAAA,EAAA,GAAK,aAAa,MAAM,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,7 +1,7 @@
1
1
  import Carousel from './src/carousel2.mjs';
2
- import CarouselItem from './src/carousel-item2.mjs';
2
+ import CarouselItem from './src/carousel-item.mjs';
3
3
  export { carouselEmits, carouselProps } from './src/carousel.mjs';
4
- export { carouselItemProps } from './src/carousel-item.mjs';
4
+ export { carouselItemProps } from './src/carousel-item2.mjs';
5
5
  export { CAROUSEL_ITEM_NAME, carouselContextKey } from './src/constants.mjs';
6
6
  import { withInstall, withNoopInstall } from '../../utils/vue/install.mjs';
7
7
 
@@ -1,12 +1,74 @@
1
- import { buildProps } from '../../../utils/vue/props/runtime.mjs';
1
+ import { defineComponent, computed, unref, withDirectives, openBlock, createElementBlock, normalizeClass, normalizeStyle, vShow, createCommentVNode, renderSlot } from 'vue';
2
+ import { carouselItemProps } from './carousel-item2.mjs';
3
+ import { useCarouselItem } from './use-carousel-item.mjs';
4
+ import { CAROUSEL_ITEM_NAME } from './constants.mjs';
5
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
6
+ import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
2
7
 
3
- const carouselItemProps = buildProps({
4
- name: { type: String, default: "" },
5
- label: {
6
- type: [String, Number],
7
- default: ""
8
+ const __default__ = defineComponent({
9
+ name: CAROUSEL_ITEM_NAME
10
+ });
11
+ const _sfc_main = /* @__PURE__ */ defineComponent({
12
+ ...__default__,
13
+ props: carouselItemProps,
14
+ setup(__props) {
15
+ const props = __props;
16
+ const ns = useNamespace("carousel");
17
+ const {
18
+ carouselItemRef,
19
+ active,
20
+ animating,
21
+ hover,
22
+ inStage,
23
+ isVertical,
24
+ translate,
25
+ isCardType,
26
+ scale,
27
+ ready,
28
+ handleItemClick
29
+ } = useCarouselItem(props);
30
+ const itemKls = computed(() => [
31
+ ns.e("item"),
32
+ ns.is("active", active.value),
33
+ ns.is("in-stage", inStage.value),
34
+ ns.is("hover", hover.value),
35
+ ns.is("animating", animating.value),
36
+ {
37
+ [ns.em("item", "card")]: isCardType.value,
38
+ [ns.em("item", "card-vertical")]: isCardType.value && isVertical.value
39
+ }
40
+ ]);
41
+ const itemStyle = computed(() => {
42
+ const translateType = `translate${unref(isVertical) ? "Y" : "X"}`;
43
+ const _translate = `${translateType}(${unref(translate)}px)`;
44
+ const _scale = `scale(${unref(scale)})`;
45
+ const transform = [_translate, _scale].join(" ");
46
+ return {
47
+ transform
48
+ };
49
+ });
50
+ return (_ctx, _cache) => {
51
+ return withDirectives((openBlock(), createElementBlock("div", {
52
+ ref_key: "carouselItemRef",
53
+ ref: carouselItemRef,
54
+ class: normalizeClass(unref(itemKls)),
55
+ style: normalizeStyle(unref(itemStyle)),
56
+ onClick: unref(handleItemClick)
57
+ }, [
58
+ unref(isCardType) ? withDirectives((openBlock(), createElementBlock("div", {
59
+ key: 0,
60
+ class: normalizeClass(unref(ns).e("mask"))
61
+ }, null, 2)), [
62
+ [vShow, !unref(active)]
63
+ ]) : createCommentVNode("v-if", true),
64
+ renderSlot(_ctx.$slots, "default")
65
+ ], 14, ["onClick"])), [
66
+ [vShow, unref(ready)]
67
+ ]);
68
+ };
8
69
  }
9
70
  });
71
+ var CarouselItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "carousel-item.vue"]]);
10
72
 
11
- export { carouselItemProps };
73
+ export { CarouselItem as default };
12
74
  //# sourceMappingURL=carousel-item.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"carousel-item.mjs","sources":["../../../../../../packages/components/carousel/src/carousel-item.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\n\nexport const carouselItemProps = buildProps({\n /**\n * @description name of the item, can be used in `setActiveItem`\n */\n name: { type: String, default: '' },\n /**\n * @description text content for the corresponding indicator\n */\n label: {\n type: [String, Number],\n default: '',\n },\n} as const)\n\nexport type CarouselItemProps = ExtractPropTypes<typeof carouselItemProps>\n"],"names":[],"mappings":";;AACY,MAAC,iBAAiB,GAAG,UAAU,CAAC;AAC5C,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE;AACrC,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,CAAC;;;;"}
1
+ {"version":3,"file":"carousel-item.mjs","sources":["../../../../../../packages/components/carousel/src/carousel-item.vue"],"sourcesContent":["<template>\n <div\n v-show=\"ready\"\n ref=\"carouselItemRef\"\n :class=\"itemKls\"\n :style=\"itemStyle\"\n @click=\"handleItemClick\"\n >\n <div v-if=\"isCardType\" v-show=\"!active\" :class=\"ns.e('mask')\" />\n <slot />\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, unref } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { carouselItemProps } from './carousel-item'\nimport { useCarouselItem } from './use-carousel-item'\nimport { CAROUSEL_ITEM_NAME } from './constants'\n\nimport type { CSSProperties } from 'vue'\n\ndefineOptions({\n name: CAROUSEL_ITEM_NAME,\n})\n\nconst props = defineProps(carouselItemProps)\nconst ns = useNamespace('carousel')\n\n// inject\nconst {\n carouselItemRef,\n active,\n animating,\n hover,\n inStage,\n isVertical,\n translate,\n isCardType,\n scale,\n ready,\n handleItemClick,\n} = useCarouselItem(props)\n\nconst itemKls = computed(() => [\n ns.e('item'),\n ns.is('active', active.value),\n ns.is('in-stage', inStage.value),\n ns.is('hover', hover.value),\n ns.is('animating', animating.value),\n {\n [ns.em('item', 'card')]: isCardType.value,\n [ns.em('item', 'card-vertical')]: isCardType.value && isVertical.value,\n },\n])\n\nconst itemStyle = computed<CSSProperties>(() => {\n const translateType = `translate${unref(isVertical) ? 'Y' : 'X'}`\n const _translate = `${translateType}(${unref(translate)}px)`\n const _scale = `scale(${unref(scale)})`\n const transform = [_translate, _scale].join(' ')\n\n return {\n transform,\n }\n})\n</script>\n"],"names":[],"mappings":";;;;;;;mCAsBc,CAAA;AAAA,EACZ,IAAM,EAAA,kBAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAGA,IAAM,MAAA,EAAA,GAAK,aAAa,UAAU,CAAA,CAAA;AAGlC,IAAM,MAAA;AAAA,MACJ,eAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,MACA,KAAA;AAAA,MACA,OAAA;AAAA,MACA,UAAA;AAAA,MACA,SAAA;AAAA,MACA,UAAA;AAAA,MACA,KAAA;AAAA,MACA,KAAA;AAAA,MACA,eAAA;AAAA,KACF,GAAI,gBAAgB,KAAK,CAAA,CAAA;AAEzB,IAAM,MAAA,OAAA,GAAU,SAAS,MAAM;AAAA,MAC7B,EAAA,CAAG,EAAE,MAAM,CAAA;AAAA,MACX,EAAG,CAAA,EAAA,CAAG,QAAU,EAAA,MAAA,CAAO,KAAK,CAAA;AAAA,MAC5B,EAAG,CAAA,EAAA,CAAG,UAAY,EAAA,OAAA,CAAQ,KAAK,CAAA;AAAA,MAC/B,EAAG,CAAA,EAAA,CAAG,OAAS,EAAA,KAAA,CAAM,KAAK,CAAA;AAAA,MAC1B,EAAG,CAAA,EAAA,CAAG,WAAa,EAAA,SAAA,CAAU,KAAK,CAAA;AAAA,MAClC;AAAA,QACE,CAAC,EAAG,CAAA,EAAA,CAAG,QAAQ,MAAM,CAAC,GAAG,UAAW,CAAA,KAAA;AAAA,QACpC,CAAC,GAAG,EAAG,CAAA,MAAA,EAAQ,eAAe,CAAC,GAAG,UAAW,CAAA,KAAA,IAAS,UAAW,CAAA,KAAA;AAAA,OACnE;AAAA,KACD,CAAA,CAAA;AAED,IAAM,MAAA,SAAA,GAAY,SAAwB,MAAM;AAC9C,MAAA,MAAM,gBAAgB,CAAY,SAAA,EAAA,KAAA,CAAM,UAAU,CAAA,GAAI,MAAM,GAAG,CAAA,CAAA,CAAA;AAC/D,MAAA,MAAM,aAAa,CAAG,EAAA,aAAa,CAAI,CAAA,EAAA,KAAA,CAAM,SAAS,CAAC,CAAA,GAAA,CAAA,CAAA;AACvD,MAAA,MAAM,MAAS,GAAA,CAAA,MAAA,EAAS,KAAM,CAAA,KAAK,CAAC,CAAA,CAAA,CAAA,CAAA;AACpC,MAAA,MAAM,YAAY,CAAC,UAAA,EAAY,MAAM,CAAA,CAAE,KAAK,GAAG,CAAA,CAAA;AAE/C,MAAO,OAAA;AAAA,QACL,SAAA;AAAA,OACF,CAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,74 +1,12 @@
1
- import { defineComponent, computed, unref, withDirectives, openBlock, createElementBlock, normalizeClass, normalizeStyle, vShow, createCommentVNode, renderSlot } from 'vue';
2
- import { carouselItemProps } from './carousel-item.mjs';
3
- import { useCarouselItem } from './use-carousel-item.mjs';
4
- import { CAROUSEL_ITEM_NAME } from './constants.mjs';
5
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
6
- import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
1
+ import { buildProps } from '../../../utils/vue/props/runtime.mjs';
7
2
 
8
- const __default__ = defineComponent({
9
- name: CAROUSEL_ITEM_NAME
10
- });
11
- const _sfc_main = /* @__PURE__ */ defineComponent({
12
- ...__default__,
13
- props: carouselItemProps,
14
- setup(__props) {
15
- const props = __props;
16
- const ns = useNamespace("carousel");
17
- const {
18
- carouselItemRef,
19
- active,
20
- animating,
21
- hover,
22
- inStage,
23
- isVertical,
24
- translate,
25
- isCardType,
26
- scale,
27
- ready,
28
- handleItemClick
29
- } = useCarouselItem(props);
30
- const itemKls = computed(() => [
31
- ns.e("item"),
32
- ns.is("active", active.value),
33
- ns.is("in-stage", inStage.value),
34
- ns.is("hover", hover.value),
35
- ns.is("animating", animating.value),
36
- {
37
- [ns.em("item", "card")]: isCardType.value,
38
- [ns.em("item", "card-vertical")]: isCardType.value && isVertical.value
39
- }
40
- ]);
41
- const itemStyle = computed(() => {
42
- const translateType = `translate${unref(isVertical) ? "Y" : "X"}`;
43
- const _translate = `${translateType}(${unref(translate)}px)`;
44
- const _scale = `scale(${unref(scale)})`;
45
- const transform = [_translate, _scale].join(" ");
46
- return {
47
- transform
48
- };
49
- });
50
- return (_ctx, _cache) => {
51
- return withDirectives((openBlock(), createElementBlock("div", {
52
- ref_key: "carouselItemRef",
53
- ref: carouselItemRef,
54
- class: normalizeClass(unref(itemKls)),
55
- style: normalizeStyle(unref(itemStyle)),
56
- onClick: unref(handleItemClick)
57
- }, [
58
- unref(isCardType) ? withDirectives((openBlock(), createElementBlock("div", {
59
- key: 0,
60
- class: normalizeClass(unref(ns).e("mask"))
61
- }, null, 2)), [
62
- [vShow, !unref(active)]
63
- ]) : createCommentVNode("v-if", true),
64
- renderSlot(_ctx.$slots, "default")
65
- ], 14, ["onClick"])), [
66
- [vShow, unref(ready)]
67
- ]);
68
- };
3
+ const carouselItemProps = buildProps({
4
+ name: { type: String, default: "" },
5
+ label: {
6
+ type: [String, Number],
7
+ default: ""
69
8
  }
70
9
  });
71
- var CarouselItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "carousel-item.vue"]]);
72
10
 
73
- export { CarouselItem as default };
11
+ export { carouselItemProps };
74
12
  //# sourceMappingURL=carousel-item2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"carousel-item2.mjs","sources":["../../../../../../packages/components/carousel/src/carousel-item.vue"],"sourcesContent":["<template>\n <div\n v-show=\"ready\"\n ref=\"carouselItemRef\"\n :class=\"itemKls\"\n :style=\"itemStyle\"\n @click=\"handleItemClick\"\n >\n <div v-if=\"isCardType\" v-show=\"!active\" :class=\"ns.e('mask')\" />\n <slot />\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, unref } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { carouselItemProps } from './carousel-item'\nimport { useCarouselItem } from './use-carousel-item'\nimport { CAROUSEL_ITEM_NAME } from './constants'\n\nimport type { CSSProperties } from 'vue'\n\ndefineOptions({\n name: CAROUSEL_ITEM_NAME,\n})\n\nconst props = defineProps(carouselItemProps)\nconst ns = useNamespace('carousel')\n\n// inject\nconst {\n carouselItemRef,\n active,\n animating,\n hover,\n inStage,\n isVertical,\n translate,\n isCardType,\n scale,\n ready,\n handleItemClick,\n} = useCarouselItem(props)\n\nconst itemKls = computed(() => [\n ns.e('item'),\n ns.is('active', active.value),\n ns.is('in-stage', inStage.value),\n ns.is('hover', hover.value),\n ns.is('animating', animating.value),\n {\n [ns.em('item', 'card')]: isCardType.value,\n [ns.em('item', 'card-vertical')]: isCardType.value && isVertical.value,\n },\n])\n\nconst itemStyle = computed<CSSProperties>(() => {\n const translateType = `translate${unref(isVertical) ? 'Y' : 'X'}`\n const _translate = `${translateType}(${unref(translate)}px)`\n const _scale = `scale(${unref(scale)})`\n const transform = [_translate, _scale].join(' ')\n\n return {\n transform,\n }\n})\n</script>\n"],"names":[],"mappings":";;;;;;;mCAsBc,CAAA;AAAA,EACZ,IAAM,EAAA,kBAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAGA,IAAM,MAAA,EAAA,GAAK,aAAa,UAAU,CAAA,CAAA;AAGlC,IAAM,MAAA;AAAA,MACJ,eAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,MACA,KAAA;AAAA,MACA,OAAA;AAAA,MACA,UAAA;AAAA,MACA,SAAA;AAAA,MACA,UAAA;AAAA,MACA,KAAA;AAAA,MACA,KAAA;AAAA,MACA,eAAA;AAAA,KACF,GAAI,gBAAgB,KAAK,CAAA,CAAA;AAEzB,IAAM,MAAA,OAAA,GAAU,SAAS,MAAM;AAAA,MAC7B,EAAA,CAAG,EAAE,MAAM,CAAA;AAAA,MACX,EAAG,CAAA,EAAA,CAAG,QAAU,EAAA,MAAA,CAAO,KAAK,CAAA;AAAA,MAC5B,EAAG,CAAA,EAAA,CAAG,UAAY,EAAA,OAAA,CAAQ,KAAK,CAAA;AAAA,MAC/B,EAAG,CAAA,EAAA,CAAG,OAAS,EAAA,KAAA,CAAM,KAAK,CAAA;AAAA,MAC1B,EAAG,CAAA,EAAA,CAAG,WAAa,EAAA,SAAA,CAAU,KAAK,CAAA;AAAA,MAClC;AAAA,QACE,CAAC,EAAG,CAAA,EAAA,CAAG,QAAQ,MAAM,CAAC,GAAG,UAAW,CAAA,KAAA;AAAA,QACpC,CAAC,GAAG,EAAG,CAAA,MAAA,EAAQ,eAAe,CAAC,GAAG,UAAW,CAAA,KAAA,IAAS,UAAW,CAAA,KAAA;AAAA,OACnE;AAAA,KACD,CAAA,CAAA;AAED,IAAM,MAAA,SAAA,GAAY,SAAwB,MAAM;AAC9C,MAAA,MAAM,gBAAgB,CAAY,SAAA,EAAA,KAAA,CAAM,UAAU,CAAA,GAAI,MAAM,GAAG,CAAA,CAAA,CAAA;AAC/D,MAAA,MAAM,aAAa,CAAG,EAAA,aAAa,CAAI,CAAA,EAAA,KAAA,CAAM,SAAS,CAAC,CAAA,GAAA,CAAA,CAAA;AACvD,MAAA,MAAM,MAAS,GAAA,CAAA,MAAA,EAAS,KAAM,CAAA,KAAK,CAAC,CAAA,CAAA,CAAA,CAAA;AACpC,MAAA,MAAM,YAAY,CAAC,UAAA,EAAY,MAAM,CAAA,CAAE,KAAK,GAAG,CAAA,CAAA;AAE/C,MAAO,OAAA;AAAA,QACL,SAAA;AAAA,OACF,CAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"carousel-item2.mjs","sources":["../../../../../../packages/components/carousel/src/carousel-item.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\n\nexport const carouselItemProps = buildProps({\n /**\n * @description name of the item, can be used in `setActiveItem`\n */\n name: { type: String, default: '' },\n /**\n * @description text content for the corresponding indicator\n */\n label: {\n type: [String, Number],\n default: '',\n },\n} as const)\n\nexport type CarouselItemProps = ExtractPropTypes<typeof carouselItemProps>\n"],"names":[],"mappings":";;AACY,MAAC,iBAAiB,GAAG,UAAU,CAAC;AAC5C,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE;AACrC,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,CAAC;;;;"}
@@ -1,5 +1,5 @@
1
- import Image from './src/image2.mjs';
2
- export { imageEmits, imageProps } from './src/image.mjs';
1
+ import Image from './src/image.mjs';
2
+ export { imageEmits, imageProps } from './src/image2.mjs';
3
3
  import { withInstall } from '../../utils/vue/install.mjs';
4
4
 
5
5
  const ElImage = withInstall(Image);
@@ -1,73 +1,227 @@
1
- import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
2
- import { mutable } from '../../../utils/typescript.mjs';
3
- import { isNumber } from '../../../utils/types.mjs';
1
+ import { defineComponent, useAttrs, computed, ref, watch, onMounted, openBlock, createElementBlock, mergeProps, unref, renderSlot, createElementVNode, normalizeClass, toDisplayString, Fragment, createCommentVNode, createBlock, withCtx, normalizeProps, guardReactiveProps, nextTick } from 'vue';
2
+ import { isClient, useThrottleFn, useEventListener } from '@vueuse/core';
3
+ import { fromPairs } from 'lodash-unified';
4
+ import { ElImageViewer } from '../../image-viewer/index.mjs';
5
+ import { imageProps, imageEmits } from './image2.mjs';
6
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
7
+ import { isInContainer } from '../../../utils/dom/position.mjs';
8
+ import { useLocale } from '../../../hooks/use-locale/index.mjs';
9
+ import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
10
+ import { useAttrs as useAttrs$1 } from '../../../hooks/use-attrs/index.mjs';
11
+ import { isArray, isString } from '@vue/shared';
12
+ import { isElement } from '../../../utils/types.mjs';
13
+ import { getScrollContainer } from '../../../utils/dom/scroll.mjs';
4
14
 
5
- const imageProps = buildProps({
6
- hideOnClickModal: Boolean,
7
- src: {
8
- type: String,
9
- default: ""
10
- },
11
- fit: {
12
- type: String,
13
- values: ["", "contain", "cover", "fill", "none", "scale-down"],
14
- default: ""
15
- },
16
- loading: {
17
- type: String,
18
- values: ["eager", "lazy"]
19
- },
20
- lazy: Boolean,
21
- scrollContainer: {
22
- type: definePropType([String, Object])
23
- },
24
- previewSrcList: {
25
- type: definePropType(Array),
26
- default: () => mutable([])
27
- },
28
- previewTeleported: Boolean,
29
- zIndex: {
30
- type: Number
31
- },
32
- initialIndex: {
33
- type: Number,
34
- default: 0
35
- },
36
- infinite: {
37
- type: Boolean,
38
- default: true
39
- },
40
- closeOnPressEscape: {
41
- type: Boolean,
42
- default: true
43
- },
44
- zoomRate: {
45
- type: Number,
46
- default: 1.2
47
- },
48
- minScale: {
49
- type: Number,
50
- default: 0.2
51
- },
52
- maxScale: {
53
- type: Number,
54
- default: 7
55
- },
56
- showProgress: {
57
- type: Boolean,
58
- default: false
59
- },
60
- crossorigin: {
61
- type: definePropType(String)
15
+ const __default__ = defineComponent({
16
+ name: "ElImage",
17
+ inheritAttrs: false
18
+ });
19
+ const _sfc_main = /* @__PURE__ */ defineComponent({
20
+ ...__default__,
21
+ props: imageProps,
22
+ emits: imageEmits,
23
+ setup(__props, { expose, emit }) {
24
+ const props = __props;
25
+ const { t } = useLocale();
26
+ const ns = useNamespace("image");
27
+ const rawAttrs = useAttrs();
28
+ const containerAttrs = computed(() => {
29
+ return fromPairs(Object.entries(rawAttrs).filter(([key]) => /^(data-|on[A-Z])/i.test(key) || ["id", "style"].includes(key)));
30
+ });
31
+ const imgAttrs = useAttrs$1({
32
+ excludeListeners: true,
33
+ excludeKeys: computed(() => {
34
+ return Object.keys(containerAttrs.value);
35
+ })
36
+ });
37
+ const imageSrc = ref();
38
+ const hasLoadError = ref(false);
39
+ const isLoading = ref(true);
40
+ const showViewer = ref(false);
41
+ const container = ref();
42
+ const _scrollContainer = ref();
43
+ const supportLoading = isClient && "loading" in HTMLImageElement.prototype;
44
+ let stopScrollListener;
45
+ const imageKls = computed(() => [
46
+ ns.e("inner"),
47
+ preview.value && ns.e("preview"),
48
+ isLoading.value && ns.is("loading")
49
+ ]);
50
+ const imageStyle = computed(() => {
51
+ const { fit } = props;
52
+ if (isClient && fit) {
53
+ return { objectFit: fit };
54
+ }
55
+ return {};
56
+ });
57
+ const preview = computed(() => {
58
+ const { previewSrcList } = props;
59
+ return isArray(previewSrcList) && previewSrcList.length > 0;
60
+ });
61
+ const imageIndex = computed(() => {
62
+ const { previewSrcList, initialIndex } = props;
63
+ let previewIndex = initialIndex;
64
+ if (initialIndex > previewSrcList.length - 1) {
65
+ previewIndex = 0;
66
+ }
67
+ return previewIndex;
68
+ });
69
+ const isManual = computed(() => {
70
+ if (props.loading === "eager")
71
+ return false;
72
+ return !supportLoading && props.loading === "lazy" || props.lazy;
73
+ });
74
+ const loadImage = () => {
75
+ if (!isClient)
76
+ return;
77
+ isLoading.value = true;
78
+ hasLoadError.value = false;
79
+ imageSrc.value = props.src;
80
+ };
81
+ function handleLoad(event) {
82
+ isLoading.value = false;
83
+ hasLoadError.value = false;
84
+ emit("load", event);
85
+ }
86
+ function handleError(event) {
87
+ isLoading.value = false;
88
+ hasLoadError.value = true;
89
+ emit("error", event);
90
+ }
91
+ function handleLazyLoad() {
92
+ if (isInContainer(container.value, _scrollContainer.value)) {
93
+ loadImage();
94
+ removeLazyLoadListener();
95
+ }
96
+ }
97
+ const lazyLoadHandler = useThrottleFn(handleLazyLoad, 200, true);
98
+ async function addLazyLoadListener() {
99
+ var _a;
100
+ if (!isClient)
101
+ return;
102
+ await nextTick();
103
+ const { scrollContainer } = props;
104
+ if (isElement(scrollContainer)) {
105
+ _scrollContainer.value = scrollContainer;
106
+ } else if (isString(scrollContainer) && scrollContainer !== "") {
107
+ _scrollContainer.value = (_a = document.querySelector(scrollContainer)) != null ? _a : void 0;
108
+ } else if (container.value) {
109
+ _scrollContainer.value = getScrollContainer(container.value);
110
+ }
111
+ if (_scrollContainer.value) {
112
+ stopScrollListener = useEventListener(_scrollContainer, "scroll", lazyLoadHandler);
113
+ setTimeout(() => handleLazyLoad(), 100);
114
+ }
115
+ }
116
+ function removeLazyLoadListener() {
117
+ if (!isClient || !_scrollContainer.value || !lazyLoadHandler)
118
+ return;
119
+ stopScrollListener == null ? void 0 : stopScrollListener();
120
+ _scrollContainer.value = void 0;
121
+ }
122
+ function clickHandler() {
123
+ if (!preview.value)
124
+ return;
125
+ showViewer.value = true;
126
+ emit("show");
127
+ }
128
+ function closeViewer() {
129
+ showViewer.value = false;
130
+ emit("close");
131
+ }
132
+ function switchViewer(val) {
133
+ emit("switch", val);
134
+ }
135
+ watch(() => props.src, () => {
136
+ if (isManual.value) {
137
+ isLoading.value = true;
138
+ hasLoadError.value = false;
139
+ removeLazyLoadListener();
140
+ addLazyLoadListener();
141
+ } else {
142
+ loadImage();
143
+ }
144
+ });
145
+ onMounted(() => {
146
+ if (isManual.value) {
147
+ addLazyLoadListener();
148
+ } else {
149
+ loadImage();
150
+ }
151
+ });
152
+ expose({
153
+ showPreview: clickHandler
154
+ });
155
+ return (_ctx, _cache) => {
156
+ return openBlock(), createElementBlock("div", mergeProps({
157
+ ref_key: "container",
158
+ ref: container
159
+ }, unref(containerAttrs), {
160
+ class: [unref(ns).b(), _ctx.$attrs.class]
161
+ }), [
162
+ hasLoadError.value ? renderSlot(_ctx.$slots, "error", { key: 0 }, () => [
163
+ createElementVNode("div", {
164
+ class: normalizeClass(unref(ns).e("error"))
165
+ }, toDisplayString(unref(t)("el.image.error")), 3)
166
+ ]) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
167
+ imageSrc.value !== void 0 ? (openBlock(), createElementBlock("img", mergeProps({ key: 0 }, unref(imgAttrs), {
168
+ src: imageSrc.value,
169
+ loading: _ctx.loading,
170
+ style: unref(imageStyle),
171
+ class: unref(imageKls),
172
+ crossorigin: _ctx.crossorigin,
173
+ onClick: clickHandler,
174
+ onLoad: handleLoad,
175
+ onError: handleError
176
+ }), null, 16, ["src", "loading", "crossorigin"])) : createCommentVNode("v-if", true),
177
+ isLoading.value ? (openBlock(), createElementBlock("div", {
178
+ key: 1,
179
+ class: normalizeClass(unref(ns).e("wrapper"))
180
+ }, [
181
+ renderSlot(_ctx.$slots, "placeholder", {}, () => [
182
+ createElementVNode("div", {
183
+ class: normalizeClass(unref(ns).e("placeholder"))
184
+ }, null, 2)
185
+ ])
186
+ ], 2)) : createCommentVNode("v-if", true)
187
+ ], 64)),
188
+ unref(preview) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
189
+ showViewer.value ? (openBlock(), createBlock(unref(ElImageViewer), {
190
+ key: 0,
191
+ "z-index": _ctx.zIndex,
192
+ "initial-index": unref(imageIndex),
193
+ infinite: _ctx.infinite,
194
+ "zoom-rate": _ctx.zoomRate,
195
+ "min-scale": _ctx.minScale,
196
+ "max-scale": _ctx.maxScale,
197
+ "show-progress": _ctx.showProgress,
198
+ "url-list": _ctx.previewSrcList,
199
+ crossorigin: _ctx.crossorigin,
200
+ "hide-on-click-modal": _ctx.hideOnClickModal,
201
+ teleported: _ctx.previewTeleported,
202
+ "close-on-press-escape": _ctx.closeOnPressEscape,
203
+ onClose: closeViewer,
204
+ onSwitch: switchViewer
205
+ }, {
206
+ progress: withCtx((progress) => [
207
+ renderSlot(_ctx.$slots, "progress", normalizeProps(guardReactiveProps(progress)))
208
+ ]),
209
+ toolbar: withCtx((toolbar) => [
210
+ renderSlot(_ctx.$slots, "toolbar", normalizeProps(guardReactiveProps(toolbar)))
211
+ ]),
212
+ default: withCtx(() => [
213
+ _ctx.$slots.viewer ? (openBlock(), createElementBlock("div", { key: 0 }, [
214
+ renderSlot(_ctx.$slots, "viewer")
215
+ ])) : createCommentVNode("v-if", true)
216
+ ]),
217
+ _: 3
218
+ }, 8, ["z-index", "initial-index", "infinite", "zoom-rate", "min-scale", "max-scale", "show-progress", "url-list", "crossorigin", "hide-on-click-modal", "teleported", "close-on-press-escape"])) : createCommentVNode("v-if", true)
219
+ ], 64)) : createCommentVNode("v-if", true)
220
+ ], 16);
221
+ };
62
222
  }
63
223
  });
64
- const imageEmits = {
65
- load: (evt) => evt instanceof Event,
66
- error: (evt) => evt instanceof Event,
67
- switch: (val) => isNumber(val),
68
- close: () => true,
69
- show: () => true
70
- };
224
+ var Image = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "image.vue"]]);
71
225
 
72
- export { imageEmits, imageProps };
226
+ export { Image as default };
73
227
  //# sourceMappingURL=image.mjs.map