@element-plus/nightly 0.0.20251219 → 0.0.20251220

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 (586) 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/lo.js +1 -1
  140. package/dist/locale/lo.min.js +1 -1
  141. package/dist/locale/lo.min.mjs +1 -1
  142. package/dist/locale/lo.mjs +1 -1
  143. package/dist/locale/lt.js +1 -1
  144. package/dist/locale/lt.min.js +1 -1
  145. package/dist/locale/lt.min.mjs +1 -1
  146. package/dist/locale/lt.mjs +1 -1
  147. package/dist/locale/lv.js +1 -1
  148. package/dist/locale/lv.min.js +1 -1
  149. package/dist/locale/lv.min.mjs +1 -1
  150. package/dist/locale/lv.mjs +1 -1
  151. package/dist/locale/mg.js +1 -1
  152. package/dist/locale/mg.min.js +1 -1
  153. package/dist/locale/mg.min.mjs +1 -1
  154. package/dist/locale/mg.mjs +1 -1
  155. package/dist/locale/mn.js +1 -1
  156. package/dist/locale/mn.min.js +1 -1
  157. package/dist/locale/mn.min.mjs +1 -1
  158. package/dist/locale/mn.mjs +1 -1
  159. package/dist/locale/ms.js +1 -1
  160. package/dist/locale/ms.min.js +1 -1
  161. package/dist/locale/ms.min.mjs +1 -1
  162. package/dist/locale/ms.mjs +1 -1
  163. package/dist/locale/my.js +1 -1
  164. package/dist/locale/my.min.js +1 -1
  165. package/dist/locale/my.min.mjs +1 -1
  166. package/dist/locale/my.mjs +1 -1
  167. package/dist/locale/nb-no.js +1 -1
  168. package/dist/locale/nb-no.min.js +1 -1
  169. package/dist/locale/nb-no.min.mjs +1 -1
  170. package/dist/locale/nb-no.mjs +1 -1
  171. package/dist/locale/nl.js +1 -1
  172. package/dist/locale/nl.min.js +1 -1
  173. package/dist/locale/nl.min.mjs +1 -1
  174. package/dist/locale/nl.mjs +1 -1
  175. package/dist/locale/no.js +1 -1
  176. package/dist/locale/no.min.js +1 -1
  177. package/dist/locale/no.min.mjs +1 -1
  178. package/dist/locale/no.mjs +1 -1
  179. package/dist/locale/pa.js +1 -1
  180. package/dist/locale/pa.min.js +1 -1
  181. package/dist/locale/pa.min.mjs +1 -1
  182. package/dist/locale/pa.mjs +1 -1
  183. package/dist/locale/pl.js +1 -1
  184. package/dist/locale/pl.min.js +1 -1
  185. package/dist/locale/pl.min.mjs +1 -1
  186. package/dist/locale/pl.mjs +1 -1
  187. package/dist/locale/pt-br.js +1 -1
  188. package/dist/locale/pt-br.min.js +1 -1
  189. package/dist/locale/pt-br.min.mjs +1 -1
  190. package/dist/locale/pt-br.mjs +1 -1
  191. package/dist/locale/pt.js +1 -1
  192. package/dist/locale/pt.min.js +1 -1
  193. package/dist/locale/pt.min.mjs +1 -1
  194. package/dist/locale/pt.mjs +1 -1
  195. package/dist/locale/ro.js +1 -1
  196. package/dist/locale/ro.min.js +1 -1
  197. package/dist/locale/ro.min.mjs +1 -1
  198. package/dist/locale/ro.mjs +1 -1
  199. package/dist/locale/ru.js +1 -1
  200. package/dist/locale/ru.min.js +1 -1
  201. package/dist/locale/ru.min.mjs +1 -1
  202. package/dist/locale/ru.mjs +1 -1
  203. package/dist/locale/sk.js +1 -1
  204. package/dist/locale/sk.min.js +1 -1
  205. package/dist/locale/sk.min.mjs +1 -1
  206. package/dist/locale/sk.mjs +1 -1
  207. package/dist/locale/sl.js +1 -1
  208. package/dist/locale/sl.min.js +1 -1
  209. package/dist/locale/sl.min.mjs +1 -1
  210. package/dist/locale/sl.mjs +1 -1
  211. package/dist/locale/sr.js +1 -1
  212. package/dist/locale/sr.min.js +1 -1
  213. package/dist/locale/sr.min.mjs +1 -1
  214. package/dist/locale/sr.mjs +1 -1
  215. package/dist/locale/sv.js +1 -1
  216. package/dist/locale/sv.min.js +1 -1
  217. package/dist/locale/sv.min.mjs +1 -1
  218. package/dist/locale/sv.mjs +1 -1
  219. package/dist/locale/sw.js +1 -1
  220. package/dist/locale/sw.min.js +1 -1
  221. package/dist/locale/sw.min.mjs +1 -1
  222. package/dist/locale/sw.mjs +1 -1
  223. package/dist/locale/ta.js +1 -1
  224. package/dist/locale/ta.min.js +1 -1
  225. package/dist/locale/ta.min.mjs +1 -1
  226. package/dist/locale/ta.mjs +1 -1
  227. package/dist/locale/te.js +1 -1
  228. package/dist/locale/te.min.js +1 -1
  229. package/dist/locale/te.min.mjs +1 -1
  230. package/dist/locale/te.mjs +1 -1
  231. package/dist/locale/th.js +1 -1
  232. package/dist/locale/th.min.js +1 -1
  233. package/dist/locale/th.min.mjs +1 -1
  234. package/dist/locale/th.mjs +1 -1
  235. package/dist/locale/tk.js +1 -1
  236. package/dist/locale/tk.min.js +1 -1
  237. package/dist/locale/tk.min.mjs +1 -1
  238. package/dist/locale/tk.mjs +1 -1
  239. package/dist/locale/tr.js +1 -1
  240. package/dist/locale/tr.min.js +1 -1
  241. package/dist/locale/tr.min.mjs +1 -1
  242. package/dist/locale/tr.mjs +1 -1
  243. package/dist/locale/ug-cn.js +1 -1
  244. package/dist/locale/ug-cn.min.js +1 -1
  245. package/dist/locale/ug-cn.min.mjs +1 -1
  246. package/dist/locale/ug-cn.mjs +1 -1
  247. package/dist/locale/uk.js +1 -1
  248. package/dist/locale/uk.min.js +1 -1
  249. package/dist/locale/uk.min.mjs +1 -1
  250. package/dist/locale/uk.mjs +1 -1
  251. package/dist/locale/uz-uz.js +1 -1
  252. package/dist/locale/uz-uz.min.js +1 -1
  253. package/dist/locale/uz-uz.min.mjs +1 -1
  254. package/dist/locale/uz-uz.mjs +1 -1
  255. package/dist/locale/vi.js +1 -1
  256. package/dist/locale/vi.min.js +1 -1
  257. package/dist/locale/vi.min.mjs +1 -1
  258. package/dist/locale/vi.mjs +1 -1
  259. package/dist/locale/zh-cn.js +1 -1
  260. package/dist/locale/zh-cn.min.js +1 -1
  261. package/dist/locale/zh-cn.min.mjs +1 -1
  262. package/dist/locale/zh-cn.mjs +1 -1
  263. package/dist/locale/zh-hk.js +1 -1
  264. package/dist/locale/zh-hk.min.js +1 -1
  265. package/dist/locale/zh-hk.min.mjs +1 -1
  266. package/dist/locale/zh-hk.mjs +1 -1
  267. package/dist/locale/zh-mo.js +1 -1
  268. package/dist/locale/zh-mo.min.js +1 -1
  269. package/dist/locale/zh-mo.min.mjs +1 -1
  270. package/dist/locale/zh-mo.mjs +1 -1
  271. package/dist/locale/zh-tw.js +1 -1
  272. package/dist/locale/zh-tw.min.js +1 -1
  273. package/dist/locale/zh-tw.min.mjs +1 -1
  274. package/dist/locale/zh-tw.mjs +1 -1
  275. package/es/components/affix/src/affix.mjs +1 -1
  276. package/es/components/alert/index.mjs +2 -2
  277. package/es/components/alert/src/alert.mjs +135 -39
  278. package/es/components/alert/src/alert.mjs.map +1 -1
  279. package/es/components/alert/src/alert2.mjs +39 -135
  280. package/es/components/alert/src/alert2.mjs.map +1 -1
  281. package/es/components/autocomplete/index.mjs +2 -2
  282. package/es/components/autocomplete/src/autocomplete.mjs +60 -486
  283. package/es/components/autocomplete/src/autocomplete.mjs.map +1 -1
  284. package/es/components/autocomplete/src/autocomplete2.mjs +486 -60
  285. package/es/components/autocomplete/src/autocomplete2.mjs.map +1 -1
  286. package/es/components/backtop/index.mjs +2 -2
  287. package/es/components/backtop/src/backtop.mjs +20 -61
  288. package/es/components/backtop/src/backtop.mjs.map +1 -1
  289. package/es/components/backtop/src/backtop2.mjs +61 -20
  290. package/es/components/backtop/src/backtop2.mjs.map +1 -1
  291. package/es/components/button/index.mjs +1 -1
  292. package/es/components/button/src/button-group.mjs +36 -11
  293. package/es/components/button/src/button-group.mjs.map +1 -1
  294. package/es/components/button/src/button-group2.mjs +11 -36
  295. package/es/components/button/src/button-group2.mjs.map +1 -1
  296. package/es/components/card/index.mjs +2 -2
  297. package/es/components/card/src/card.mjs +73 -22
  298. package/es/components/card/src/card.mjs.map +1 -1
  299. package/es/components/card/src/card2.mjs +22 -73
  300. package/es/components/card/src/card2.mjs.map +1 -1
  301. package/es/components/carousel/index.mjs +2 -2
  302. package/es/components/carousel/src/carousel-item.mjs +79 -7
  303. package/es/components/carousel/src/carousel-item.mjs.map +1 -1
  304. package/es/components/carousel/src/carousel-item2.mjs +7 -79
  305. package/es/components/carousel/src/carousel-item2.mjs.map +1 -1
  306. package/es/components/color-picker/index.mjs +2 -2
  307. package/es/components/color-picker/src/color-picker.mjs +389 -48
  308. package/es/components/color-picker/src/color-picker.mjs.map +1 -1
  309. package/es/components/color-picker/src/color-picker2.mjs +48 -389
  310. package/es/components/color-picker/src/color-picker2.mjs.map +1 -1
  311. package/es/components/countdown/index.mjs +2 -2
  312. package/es/components/countdown/src/countdown.mjs +83 -20
  313. package/es/components/countdown/src/countdown.mjs.map +1 -1
  314. package/es/components/countdown/src/countdown2.mjs +20 -83
  315. package/es/components/countdown/src/countdown2.mjs.map +1 -1
  316. package/es/components/dialog/src/dialog.mjs +1 -1
  317. package/es/components/index.mjs +24 -24
  318. package/es/components/input/index.mjs +2 -2
  319. package/es/components/input/src/input.mjs +124 -586
  320. package/es/components/input/src/input.mjs.map +1 -1
  321. package/es/components/input/src/input2.mjs +586 -124
  322. package/es/components/input/src/input2.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/notification/index.mjs +1 -1
  326. package/es/components/notification/src/notification.mjs +174 -72
  327. package/es/components/notification/src/notification.mjs.map +1 -1
  328. package/es/components/notification/src/notification2.mjs +72 -174
  329. package/es/components/notification/src/notification2.mjs.map +1 -1
  330. package/es/components/notification/src/notify.mjs +2 -2
  331. package/es/components/pagination/src/components/jumper.mjs +69 -7
  332. package/es/components/pagination/src/components/jumper.mjs.map +1 -1
  333. package/es/components/pagination/src/components/jumper2.mjs +7 -69
  334. package/es/components/pagination/src/components/jumper2.mjs.map +1 -1
  335. package/es/components/pagination/src/pagination.mjs +1 -1
  336. package/es/components/popper/index.mjs +2 -2
  337. package/es/components/popper/src/content.mjs +145 -88
  338. package/es/components/popper/src/content.mjs.map +1 -1
  339. package/es/components/popper/src/content2.mjs +88 -145
  340. package/es/components/popper/src/content2.mjs.map +1 -1
  341. package/es/components/rate/index.mjs +2 -2
  342. package/es/components/rate/src/rate.mjs +85 -295
  343. package/es/components/rate/src/rate.mjs.map +1 -1
  344. package/es/components/rate/src/rate2.mjs +295 -85
  345. package/es/components/rate/src/rate2.mjs.map +1 -1
  346. package/es/components/select/index.mjs +2 -2
  347. package/es/components/select/src/select.mjs +727 -152
  348. package/es/components/select/src/select.mjs.map +1 -1
  349. package/es/components/select/src/select2.mjs +152 -727
  350. package/es/components/select/src/select2.mjs.map +1 -1
  351. package/es/components/skeleton/index.mjs +2 -2
  352. package/es/components/skeleton/src/skeleton-item.mjs +17 -27
  353. package/es/components/skeleton/src/skeleton-item.mjs.map +1 -1
  354. package/es/components/skeleton/src/skeleton-item2.mjs +27 -17
  355. package/es/components/skeleton/src/skeleton-item2.mjs.map +1 -1
  356. package/es/components/skeleton/src/skeleton2.mjs +1 -1
  357. package/es/components/slider/src/button.mjs +104 -18
  358. package/es/components/slider/src/button.mjs.map +1 -1
  359. package/es/components/slider/src/button2.mjs +18 -104
  360. package/es/components/slider/src/button2.mjs.map +1 -1
  361. package/es/components/slider/src/slider2.mjs +1 -1
  362. package/es/components/splitter/index.mjs +2 -2
  363. package/es/components/splitter/src/split-panel.mjs +186 -19
  364. package/es/components/splitter/src/split-panel.mjs.map +1 -1
  365. package/es/components/splitter/src/split-panel2.mjs +19 -186
  366. package/es/components/splitter/src/split-panel2.mjs.map +1 -1
  367. package/es/components/statistic/index.mjs +2 -2
  368. package/es/components/statistic/src/statistic.mjs +111 -24
  369. package/es/components/statistic/src/statistic.mjs.map +1 -1
  370. package/es/components/statistic/src/statistic2.mjs +24 -111
  371. package/es/components/statistic/src/statistic2.mjs.map +1 -1
  372. package/es/components/teleport/index.mjs +2 -2
  373. package/es/components/teleport/src/teleport.mjs +18 -8
  374. package/es/components/teleport/src/teleport.mjs.map +1 -1
  375. package/es/components/teleport/src/teleport2.mjs +8 -18
  376. package/es/components/teleport/src/teleport2.mjs.map +1 -1
  377. package/es/components/text/index.mjs +2 -2
  378. package/es/components/text/src/text.mjs +66 -20
  379. package/es/components/text/src/text.mjs.map +1 -1
  380. package/es/components/text/src/text2.mjs +20 -66
  381. package/es/components/text/src/text2.mjs.map +1 -1
  382. package/es/components/time-select/index.mjs +2 -2
  383. package/es/components/time-select/src/time-select.mjs +138 -66
  384. package/es/components/time-select/src/time-select.mjs.map +1 -1
  385. package/es/components/time-select/src/time-select2.mjs +66 -138
  386. package/es/components/time-select/src/time-select2.mjs.map +1 -1
  387. package/es/components/timeline/index.mjs +2 -2
  388. package/es/components/timeline/src/timeline-item.mjs +111 -32
  389. package/es/components/timeline/src/timeline-item.mjs.map +1 -1
  390. package/es/components/timeline/src/timeline-item2.mjs +32 -111
  391. package/es/components/timeline/src/timeline-item2.mjs.map +1 -1
  392. package/es/components/tooltip/index.mjs +2 -2
  393. package/es/components/tooltip/src/content.mjs +2 -2
  394. package/es/components/tooltip/src/content2.mjs +1 -1
  395. package/es/components/tooltip/src/tooltip.mjs +183 -30
  396. package/es/components/tooltip/src/tooltip.mjs.map +1 -1
  397. package/es/components/tooltip/src/tooltip2.mjs +30 -183
  398. package/es/components/tooltip/src/tooltip2.mjs.map +1 -1
  399. package/es/components/tour/index.mjs +3 -3
  400. package/es/components/tour/src/content.mjs +85 -42
  401. package/es/components/tour/src/content.mjs.map +1 -1
  402. package/es/components/tour/src/content2.mjs +42 -85
  403. package/es/components/tour/src/content2.mjs.map +1 -1
  404. package/es/components/tour/src/mask.mjs +17 -82
  405. package/es/components/tour/src/mask.mjs.map +1 -1
  406. package/es/components/tour/src/mask2.mjs +82 -17
  407. package/es/components/tour/src/mask2.mjs.map +1 -1
  408. package/es/components/tour/src/step.mjs +255 -43
  409. package/es/components/tour/src/step.mjs.map +1 -1
  410. package/es/components/tour/src/step2.mjs +43 -255
  411. package/es/components/tour/src/step2.mjs.map +1 -1
  412. package/es/components/tour/src/tour.mjs +2 -2
  413. package/es/components/tour/src/tour2.mjs +2 -2
  414. package/es/components/tree-select/src/tree-select.mjs +1 -1
  415. package/es/components/upload/index.mjs +1 -1
  416. package/es/components/upload/src/upload-list.mjs +27 -206
  417. package/es/components/upload/src/upload-list.mjs.map +1 -1
  418. package/es/components/upload/src/upload-list2.mjs +206 -27
  419. package/es/components/upload/src/upload-list2.mjs.map +1 -1
  420. package/es/components/upload/src/upload2.mjs +1 -1
  421. package/es/components/watermark/index.mjs +2 -2
  422. package/es/components/watermark/src/watermark.mjs +26 -247
  423. package/es/components/watermark/src/watermark.mjs.map +1 -1
  424. package/es/components/watermark/src/watermark2.mjs +247 -26
  425. package/es/components/watermark/src/watermark2.mjs.map +1 -1
  426. package/es/index.mjs +24 -24
  427. package/es/version.d.ts +1 -1
  428. package/es/version.mjs +1 -1
  429. package/es/version.mjs.map +1 -1
  430. package/lib/components/affix/src/affix.js +1 -1
  431. package/lib/components/alert/index.js +2 -2
  432. package/lib/components/alert/src/alert.js +134 -40
  433. package/lib/components/alert/src/alert.js.map +1 -1
  434. package/lib/components/alert/src/alert2.js +40 -134
  435. package/lib/components/alert/src/alert2.js.map +1 -1
  436. package/lib/components/autocomplete/index.js +2 -2
  437. package/lib/components/autocomplete/src/autocomplete.js +59 -484
  438. package/lib/components/autocomplete/src/autocomplete.js.map +1 -1
  439. package/lib/components/autocomplete/src/autocomplete2.js +484 -59
  440. package/lib/components/autocomplete/src/autocomplete2.js.map +1 -1
  441. package/lib/components/backtop/index.js +2 -2
  442. package/lib/components/backtop/src/backtop.js +21 -61
  443. package/lib/components/backtop/src/backtop.js.map +1 -1
  444. package/lib/components/backtop/src/backtop2.js +61 -21
  445. package/lib/components/backtop/src/backtop2.js.map +1 -1
  446. package/lib/components/button/index.js +1 -1
  447. package/lib/components/button/src/button-group.js +36 -11
  448. package/lib/components/button/src/button-group.js.map +1 -1
  449. package/lib/components/button/src/button-group2.js +11 -36
  450. package/lib/components/button/src/button-group2.js.map +1 -1
  451. package/lib/components/card/index.js +2 -2
  452. package/lib/components/card/src/card.js +73 -23
  453. package/lib/components/card/src/card.js.map +1 -1
  454. package/lib/components/card/src/card2.js +23 -73
  455. package/lib/components/card/src/card2.js.map +1 -1
  456. package/lib/components/carousel/index.js +2 -2
  457. package/lib/components/carousel/src/carousel-item.js +79 -7
  458. package/lib/components/carousel/src/carousel-item.js.map +1 -1
  459. package/lib/components/carousel/src/carousel-item2.js +7 -79
  460. package/lib/components/carousel/src/carousel-item2.js.map +1 -1
  461. package/lib/components/color-picker/index.js +2 -2
  462. package/lib/components/color-picker/src/color-picker.js +388 -48
  463. package/lib/components/color-picker/src/color-picker.js.map +1 -1
  464. package/lib/components/color-picker/src/color-picker2.js +48 -388
  465. package/lib/components/color-picker/src/color-picker2.js.map +1 -1
  466. package/lib/components/countdown/index.js +2 -2
  467. package/lib/components/countdown/src/countdown.js +83 -21
  468. package/lib/components/countdown/src/countdown.js.map +1 -1
  469. package/lib/components/countdown/src/countdown2.js +21 -83
  470. package/lib/components/countdown/src/countdown2.js.map +1 -1
  471. package/lib/components/dialog/src/dialog.js +1 -1
  472. package/lib/components/index.js +24 -24
  473. package/lib/components/input/index.js +2 -2
  474. package/lib/components/input/src/input.js +121 -582
  475. package/lib/components/input/src/input.js.map +1 -1
  476. package/lib/components/input/src/input2.js +582 -121
  477. package/lib/components/input/src/input2.js.map +1 -1
  478. package/lib/components/mention/src/mention.js +1 -1
  479. package/lib/components/mention/src/mention2.js +1 -1
  480. package/lib/components/notification/index.js +1 -1
  481. package/lib/components/notification/src/notification.js +173 -73
  482. package/lib/components/notification/src/notification.js.map +1 -1
  483. package/lib/components/notification/src/notification2.js +73 -173
  484. package/lib/components/notification/src/notification2.js.map +1 -1
  485. package/lib/components/notification/src/notify.js +2 -2
  486. package/lib/components/pagination/src/components/jumper.js +69 -7
  487. package/lib/components/pagination/src/components/jumper.js.map +1 -1
  488. package/lib/components/pagination/src/components/jumper2.js +7 -69
  489. package/lib/components/pagination/src/components/jumper2.js.map +1 -1
  490. package/lib/components/pagination/src/pagination.js +1 -1
  491. package/lib/components/popper/index.js +2 -2
  492. package/lib/components/popper/src/content.js +145 -93
  493. package/lib/components/popper/src/content.js.map +1 -1
  494. package/lib/components/popper/src/content2.js +93 -145
  495. package/lib/components/popper/src/content2.js.map +1 -1
  496. package/lib/components/rate/index.js +2 -2
  497. package/lib/components/rate/src/rate.js +85 -294
  498. package/lib/components/rate/src/rate.js.map +1 -1
  499. package/lib/components/rate/src/rate2.js +294 -85
  500. package/lib/components/rate/src/rate2.js.map +1 -1
  501. package/lib/components/select/index.js +2 -2
  502. package/lib/components/select/src/select.js +726 -152
  503. package/lib/components/select/src/select.js.map +1 -1
  504. package/lib/components/select/src/select2.js +152 -726
  505. package/lib/components/select/src/select2.js.map +1 -1
  506. package/lib/components/skeleton/index.js +2 -2
  507. package/lib/components/skeleton/src/skeleton-item.js +17 -27
  508. package/lib/components/skeleton/src/skeleton-item.js.map +1 -1
  509. package/lib/components/skeleton/src/skeleton-item2.js +27 -17
  510. package/lib/components/skeleton/src/skeleton-item2.js.map +1 -1
  511. package/lib/components/skeleton/src/skeleton2.js +1 -1
  512. package/lib/components/slider/src/button.js +104 -19
  513. package/lib/components/slider/src/button.js.map +1 -1
  514. package/lib/components/slider/src/button2.js +19 -104
  515. package/lib/components/slider/src/button2.js.map +1 -1
  516. package/lib/components/slider/src/slider2.js +1 -1
  517. package/lib/components/splitter/index.js +2 -2
  518. package/lib/components/splitter/src/split-panel.js +186 -20
  519. package/lib/components/splitter/src/split-panel.js.map +1 -1
  520. package/lib/components/splitter/src/split-panel2.js +20 -186
  521. package/lib/components/splitter/src/split-panel2.js.map +1 -1
  522. package/lib/components/statistic/index.js +2 -2
  523. package/lib/components/statistic/src/statistic.js +111 -24
  524. package/lib/components/statistic/src/statistic.js.map +1 -1
  525. package/lib/components/statistic/src/statistic2.js +24 -111
  526. package/lib/components/statistic/src/statistic2.js.map +1 -1
  527. package/lib/components/teleport/index.js +2 -2
  528. package/lib/components/teleport/src/teleport.js +18 -8
  529. package/lib/components/teleport/src/teleport.js.map +1 -1
  530. package/lib/components/teleport/src/teleport2.js +8 -18
  531. package/lib/components/teleport/src/teleport2.js.map +1 -1
  532. package/lib/components/text/index.js +2 -2
  533. package/lib/components/text/src/text.js +66 -20
  534. package/lib/components/text/src/text.js.map +1 -1
  535. package/lib/components/text/src/text2.js +20 -66
  536. package/lib/components/text/src/text2.js.map +1 -1
  537. package/lib/components/time-select/index.js +2 -2
  538. package/lib/components/time-select/src/time-select.js +143 -66
  539. package/lib/components/time-select/src/time-select.js.map +1 -1
  540. package/lib/components/time-select/src/time-select2.js +66 -143
  541. package/lib/components/time-select/src/time-select2.js.map +1 -1
  542. package/lib/components/timeline/index.js +2 -2
  543. package/lib/components/timeline/src/timeline-item.js +111 -32
  544. package/lib/components/timeline/src/timeline-item.js.map +1 -1
  545. package/lib/components/timeline/src/timeline-item2.js +32 -111
  546. package/lib/components/timeline/src/timeline-item2.js.map +1 -1
  547. package/lib/components/tooltip/index.js +2 -2
  548. package/lib/components/tooltip/src/content.js +2 -2
  549. package/lib/components/tooltip/src/content2.js +1 -1
  550. package/lib/components/tooltip/src/tooltip.js +183 -34
  551. package/lib/components/tooltip/src/tooltip.js.map +1 -1
  552. package/lib/components/tooltip/src/tooltip2.js +34 -183
  553. package/lib/components/tooltip/src/tooltip2.js.map +1 -1
  554. package/lib/components/tour/index.js +3 -3
  555. package/lib/components/tour/src/content.js +85 -45
  556. package/lib/components/tour/src/content.js.map +1 -1
  557. package/lib/components/tour/src/content2.js +45 -85
  558. package/lib/components/tour/src/content2.js.map +1 -1
  559. package/lib/components/tour/src/mask.js +17 -82
  560. package/lib/components/tour/src/mask.js.map +1 -1
  561. package/lib/components/tour/src/mask2.js +82 -17
  562. package/lib/components/tour/src/mask2.js.map +1 -1
  563. package/lib/components/tour/src/step.js +254 -43
  564. package/lib/components/tour/src/step.js.map +1 -1
  565. package/lib/components/tour/src/step2.js +43 -254
  566. package/lib/components/tour/src/step2.js.map +1 -1
  567. package/lib/components/tour/src/tour.js +2 -2
  568. package/lib/components/tour/src/tour2.js +2 -2
  569. package/lib/components/tree-select/src/tree-select.js +1 -1
  570. package/lib/components/upload/index.js +1 -1
  571. package/lib/components/upload/src/upload-list.js +28 -206
  572. package/lib/components/upload/src/upload-list.js.map +1 -1
  573. package/lib/components/upload/src/upload-list2.js +206 -28
  574. package/lib/components/upload/src/upload-list2.js.map +1 -1
  575. package/lib/components/upload/src/upload2.js +1 -1
  576. package/lib/components/watermark/index.js +2 -2
  577. package/lib/components/watermark/src/watermark.js +26 -247
  578. package/lib/components/watermark/src/watermark.js.map +1 -1
  579. package/lib/components/watermark/src/watermark2.js +247 -26
  580. package/lib/components/watermark/src/watermark2.js.map +1 -1
  581. package/lib/index.js +24 -24
  582. package/lib/version.d.ts +1 -1
  583. package/lib/version.js +1 -1
  584. package/lib/version.js.map +1 -1
  585. package/package.json +1 -1
  586. package/web-types.json +1 -1
@@ -1,65 +1,24 @@
1
- import { defineComponent, computed, openBlock, createBlock, Transition, unref, withCtx, createElementBlock, normalizeStyle, normalizeClass, withModifiers, renderSlot, createVNode, createCommentVNode } from 'vue';
2
- import { ElIcon } from '../../icon/index.mjs';
3
- import { CaretTop } from '@element-plus/icons-vue';
4
- import { backtopProps, backtopEmits } from './backtop2.mjs';
5
- import { useBackTop } from './use-backtop.mjs';
6
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
7
- import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
8
-
9
- const COMPONENT_NAME = "ElBacktop";
10
- const _sfc_main = defineComponent({
11
- ...{
12
- name: COMPONENT_NAME
1
+ const backtopProps = {
2
+ visibilityHeight: {
3
+ type: Number,
4
+ default: 200
5
+ },
6
+ target: {
7
+ type: String,
8
+ default: ""
9
+ },
10
+ right: {
11
+ type: Number,
12
+ default: 40
13
13
  },
14
- __name: "backtop",
15
- props: backtopProps,
16
- emits: backtopEmits,
17
- setup(__props, { emit: __emit }) {
18
- const props = __props;
19
- const emit = __emit;
20
- const ns = useNamespace("backtop");
21
- const { handleClick, visible } = useBackTop(props, emit, COMPONENT_NAME);
22
- const backTopStyle = computed(() => ({
23
- right: `${props.right}px`,
24
- bottom: `${props.bottom}px`
25
- }));
26
- return (_ctx, _cache) => {
27
- return openBlock(), createBlock(Transition, {
28
- name: `${unref(ns).namespace.value}-fade-in`
29
- }, {
30
- default: withCtx(() => [
31
- unref(visible) ? (openBlock(), createElementBlock(
32
- "div",
33
- {
34
- key: 0,
35
- style: normalizeStyle(backTopStyle.value),
36
- class: normalizeClass(unref(ns).b()),
37
- onClick: _cache[0] || (_cache[0] = withModifiers(
38
- (...args) => unref(handleClick) && unref(handleClick)(...args),
39
- ["stop"]
40
- ))
41
- },
42
- [
43
- renderSlot(_ctx.$slots, "default", {}, () => [
44
- createVNode(unref(ElIcon), {
45
- class: normalizeClass(unref(ns).e("icon"))
46
- }, {
47
- default: withCtx(() => [
48
- createVNode(unref(CaretTop))
49
- ]),
50
- _: 1
51
- }, 8, ["class"])
52
- ])
53
- ],
54
- 6
55
- )) : createCommentVNode("v-if", true)
56
- ]),
57
- _: 3
58
- }, 8, ["name"]);
59
- };
14
+ bottom: {
15
+ type: Number,
16
+ default: 40
60
17
  }
61
- });
62
- var Backtop = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/backtop/src/backtop.vue"]]);
18
+ };
19
+ const backtopEmits = {
20
+ click: (evt) => evt instanceof MouseEvent
21
+ };
63
22
 
64
- export { Backtop as default };
23
+ export { backtopEmits, backtopProps };
65
24
  //# sourceMappingURL=backtop.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"backtop.mjs","sources":["../../../../../../packages/components/backtop/src/backtop.vue"],"sourcesContent":["<template>\n <transition :name=\"`${ns.namespace.value}-fade-in`\">\n <div\n v-if=\"visible\"\n :style=\"backTopStyle\"\n :class=\"ns.b()\"\n @click.stop=\"handleClick\"\n >\n <slot>\n <el-icon :class=\"ns.e('icon')\"><caret-top /></el-icon>\n </slot>\n </div>\n </transition>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { CaretTop } from '@element-plus/icons-vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { backtopEmits, backtopProps } from './backtop'\nimport { useBackTop } from './use-backtop'\n\nconst COMPONENT_NAME = 'ElBacktop'\n\ndefineOptions({\n name: COMPONENT_NAME,\n})\n\nconst props = defineProps(backtopProps)\nconst emit = defineEmits(backtopEmits)\n\nconst ns = useNamespace('backtop')\n\nconst { handleClick, visible } = useBackTop(props, emit, COMPONENT_NAME)\n\nconst backTopStyle = computed(() => ({\n right: `${props.right}px`,\n bottom: `${props.bottom}px`,\n}))\n</script>\n"],"names":["_createBlock","_Transition","_unref","_openBlock","_createElementBlock","_normalizeStyle","_normalizeClass","_withModifiers","_renderSlot","_createVNode"],"mappings":";;;;;;;;AAuBA,MAAM,cAAiB,GAAA,WAAA,CAAA;;;;;;;;;AAMvB,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAA,MAAM,IAAO,GAAA,MAAA,CAAA;AAEP,IAAA,MAAA,EAAA,GAAK,aAAa,SAAS,CAAA,CAAA;AAEjC,IAAA,MAAM,EAAE,WAAa,EAAA,OAAA,KAAY,UAAW,CAAA,KAAA,EAAO,MAAM,cAAc,CAAA,CAAA;AAEjE,IAAA,MAAA,YAAA,GAAe,SAAS,OAAO;AAAA,MACnC,KAAA,EAAO,GAAG,KAAM,CAAA,KAAA,CAAA,EAAA,CAAA;AAAA,MAChB,MAAA,EAAQ,GAAG,KAAM,CAAA,MAAA,CAAA,EAAA,CAAA;AAAA,KACjB,CAAA,CAAA,CAAA;;wBAtCA,EAAAA,WAAA,CAWaC,UAAA,EAAA;AAAA,QAXA,IAAI,EAAA,CAAA,EAAKC,KAAG,CAAA,EAAA,EAAA,SAAU,CAAA,KAAA,CAAA,QAAA,CAAA;AAAA,OAAK,EAAA;AAAA,yBACtC,MASM;AAAA,UAREA,KADR,CAAA,OAAA,CAAA,IAAAC,SAAA,EAAA,EAAAC,kBAAA;AAAA,YASM,KAAA;AAAA,YAAA;AAAA,cAAA,GAAA,EAAA,CAAA;AAAA,cAPH,KAAA,EAAKC,cAAE,CAAA,YAAA,CAAY,KAAA,CAAA;AAAA,cACnB,OAAKC,cAAE,CAAAJ,KAAA,CAAA,EAAA,CAAA,CAAG,GAAC,CAAA;AAAA,cACX,OAAK,EAAA,MAAA,CAAA,CAAA,CAAA,KAAA,MAAA,CAAA,CAAA,CAAA,GAAAK,aAAA;AAAA,gBAAO,CAAA,GAAA,SAAAL,KAAA,CAAA,WAAA,KAAAA,KAAA,CAAA,WAAA,CAAA,CAAA,GAAA,IAAA,CAAA;AAAA,gBAAW,CAAA,MAAA,CAAA;AAAA,eAAA,CAAA;AAAA,aAAA;AAAA;cAExBM,WAEO,4BAFP,MAEO;AAAA,gBADLC,WAAA,CAAsDP,KAAA,CAAA,MAAA,CAAA,EAAA;AAAA,kBAA5C,OAAKI,cAAE,CAAAJ,KAAA,CAAA,EAAA,CAAG,CAAA,CAAA,CAAC,MAAA,CAAA,CAAA;AAAA,iBAAA,EAAA;AAAA,mCAAU,MAAa;AAAA,oBAAbO,WAAA,CAAaP,KAAA,CAAA,QAAA,CAAA,CAAA;AAAA,mBAAA,CAAA;AAAA;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"backtop.mjs","sources":["../../../../../../packages/components/backtop/src/backtop.ts"],"sourcesContent":["import type { ExtractPropTypes, ExtractPublicPropTypes } from 'vue'\n\nexport const backtopProps = {\n /**\n * @description the button will not show until the scroll height reaches this value.\n */\n visibilityHeight: {\n type: Number,\n default: 200,\n },\n /**\n * @description the target to trigger scroll.\n */\n target: {\n type: String,\n default: '',\n },\n /**\n * @description right distance.\n */\n right: {\n type: Number,\n default: 40,\n },\n /**\n * @description bottom distance.\n */\n bottom: {\n type: Number,\n default: 40,\n },\n} as const\nexport type BacktopProps = ExtractPropTypes<typeof backtopProps>\nexport type BacktopPropsPublic = ExtractPublicPropTypes<typeof backtopProps>\n\nexport const backtopEmits = {\n click: (evt: MouseEvent) => evt instanceof MouseEvent,\n}\nexport type BacktopEmits = typeof backtopEmits\n"],"names":[],"mappings":"AAEO,MAAM,YAAe,GAAA;AAAA,EAI1B,gBAAkB,EAAA;AAAA,IAChB,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,GAAA;AAAA,GACX;AAAA,EAIA,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,EAAA;AAAA,GACX;AAAA,EAIA,KAAO,EAAA;AAAA,IACL,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,EAAA;AAAA,GACX;AAAA,EAIA,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,EAAA;AAAA,GACX;AACF,EAAA;AAIO,MAAM,YAAe,GAAA;AAAA,EAC1B,KAAA,EAAO,CAAC,GAAA,KAAoB,GAAe,YAAA,UAAA;AAC7C;;;;"}
@@ -1,24 +1,65 @@
1
- const backtopProps = {
2
- visibilityHeight: {
3
- type: Number,
4
- default: 200
5
- },
6
- target: {
7
- type: String,
8
- default: ""
9
- },
10
- right: {
11
- type: Number,
12
- default: 40
1
+ import { defineComponent, computed, openBlock, createBlock, Transition, unref, withCtx, createElementBlock, normalizeStyle, normalizeClass, withModifiers, renderSlot, createVNode, createCommentVNode } from 'vue';
2
+ import { ElIcon } from '../../icon/index.mjs';
3
+ import { CaretTop } from '@element-plus/icons-vue';
4
+ import { backtopProps, backtopEmits } from './backtop.mjs';
5
+ import { useBackTop } from './use-backtop.mjs';
6
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
7
+ import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
8
+
9
+ const COMPONENT_NAME = "ElBacktop";
10
+ const _sfc_main = defineComponent({
11
+ ...{
12
+ name: COMPONENT_NAME
13
13
  },
14
- bottom: {
15
- type: Number,
16
- default: 40
14
+ __name: "backtop",
15
+ props: backtopProps,
16
+ emits: backtopEmits,
17
+ setup(__props, { emit: __emit }) {
18
+ const props = __props;
19
+ const emit = __emit;
20
+ const ns = useNamespace("backtop");
21
+ const { handleClick, visible } = useBackTop(props, emit, COMPONENT_NAME);
22
+ const backTopStyle = computed(() => ({
23
+ right: `${props.right}px`,
24
+ bottom: `${props.bottom}px`
25
+ }));
26
+ return (_ctx, _cache) => {
27
+ return openBlock(), createBlock(Transition, {
28
+ name: `${unref(ns).namespace.value}-fade-in`
29
+ }, {
30
+ default: withCtx(() => [
31
+ unref(visible) ? (openBlock(), createElementBlock(
32
+ "div",
33
+ {
34
+ key: 0,
35
+ style: normalizeStyle(backTopStyle.value),
36
+ class: normalizeClass(unref(ns).b()),
37
+ onClick: _cache[0] || (_cache[0] = withModifiers(
38
+ (...args) => unref(handleClick) && unref(handleClick)(...args),
39
+ ["stop"]
40
+ ))
41
+ },
42
+ [
43
+ renderSlot(_ctx.$slots, "default", {}, () => [
44
+ createVNode(unref(ElIcon), {
45
+ class: normalizeClass(unref(ns).e("icon"))
46
+ }, {
47
+ default: withCtx(() => [
48
+ createVNode(unref(CaretTop))
49
+ ]),
50
+ _: 1
51
+ }, 8, ["class"])
52
+ ])
53
+ ],
54
+ 6
55
+ )) : createCommentVNode("v-if", true)
56
+ ]),
57
+ _: 3
58
+ }, 8, ["name"]);
59
+ };
17
60
  }
18
- };
19
- const backtopEmits = {
20
- click: (evt) => evt instanceof MouseEvent
21
- };
61
+ });
62
+ var Backtop = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/backtop/src/backtop.vue"]]);
22
63
 
23
- export { backtopEmits, backtopProps };
64
+ export { Backtop as default };
24
65
  //# sourceMappingURL=backtop2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"backtop2.mjs","sources":["../../../../../../packages/components/backtop/src/backtop.ts"],"sourcesContent":["import type { ExtractPropTypes, ExtractPublicPropTypes } from 'vue'\n\nexport const backtopProps = {\n /**\n * @description the button will not show until the scroll height reaches this value.\n */\n visibilityHeight: {\n type: Number,\n default: 200,\n },\n /**\n * @description the target to trigger scroll.\n */\n target: {\n type: String,\n default: '',\n },\n /**\n * @description right distance.\n */\n right: {\n type: Number,\n default: 40,\n },\n /**\n * @description bottom distance.\n */\n bottom: {\n type: Number,\n default: 40,\n },\n} as const\nexport type BacktopProps = ExtractPropTypes<typeof backtopProps>\nexport type BacktopPropsPublic = ExtractPublicPropTypes<typeof backtopProps>\n\nexport const backtopEmits = {\n click: (evt: MouseEvent) => evt instanceof MouseEvent,\n}\nexport type BacktopEmits = typeof backtopEmits\n"],"names":[],"mappings":"AAEO,MAAM,YAAe,GAAA;AAAA,EAI1B,gBAAkB,EAAA;AAAA,IAChB,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,GAAA;AAAA,GACX;AAAA,EAIA,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,EAAA;AAAA,GACX;AAAA,EAIA,KAAO,EAAA;AAAA,IACL,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,EAAA;AAAA,GACX;AAAA,EAIA,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,EAAA;AAAA,GACX;AACF,EAAA;AAIO,MAAM,YAAe,GAAA;AAAA,EAC1B,KAAA,EAAO,CAAC,GAAA,KAAoB,GAAe,YAAA,UAAA;AAC7C;;;;"}
1
+ {"version":3,"file":"backtop2.mjs","sources":["../../../../../../packages/components/backtop/src/backtop.vue"],"sourcesContent":["<template>\n <transition :name=\"`${ns.namespace.value}-fade-in`\">\n <div\n v-if=\"visible\"\n :style=\"backTopStyle\"\n :class=\"ns.b()\"\n @click.stop=\"handleClick\"\n >\n <slot>\n <el-icon :class=\"ns.e('icon')\"><caret-top /></el-icon>\n </slot>\n </div>\n </transition>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { CaretTop } from '@element-plus/icons-vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { backtopEmits, backtopProps } from './backtop'\nimport { useBackTop } from './use-backtop'\n\nconst COMPONENT_NAME = 'ElBacktop'\n\ndefineOptions({\n name: COMPONENT_NAME,\n})\n\nconst props = defineProps(backtopProps)\nconst emit = defineEmits(backtopEmits)\n\nconst ns = useNamespace('backtop')\n\nconst { handleClick, visible } = useBackTop(props, emit, COMPONENT_NAME)\n\nconst backTopStyle = computed(() => ({\n right: `${props.right}px`,\n bottom: `${props.bottom}px`,\n}))\n</script>\n"],"names":["_createBlock","_Transition","_unref","_openBlock","_createElementBlock","_normalizeStyle","_normalizeClass","_withModifiers","_renderSlot","_createVNode"],"mappings":";;;;;;;;AAuBA,MAAM,cAAiB,GAAA,WAAA,CAAA;;;;;;;;;AAMvB,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAA,MAAM,IAAO,GAAA,MAAA,CAAA;AAEP,IAAA,MAAA,EAAA,GAAK,aAAa,SAAS,CAAA,CAAA;AAEjC,IAAA,MAAM,EAAE,WAAa,EAAA,OAAA,KAAY,UAAW,CAAA,KAAA,EAAO,MAAM,cAAc,CAAA,CAAA;AAEjE,IAAA,MAAA,YAAA,GAAe,SAAS,OAAO;AAAA,MACnC,KAAA,EAAO,GAAG,KAAM,CAAA,KAAA,CAAA,EAAA,CAAA;AAAA,MAChB,MAAA,EAAQ,GAAG,KAAM,CAAA,MAAA,CAAA,EAAA,CAAA;AAAA,KACjB,CAAA,CAAA,CAAA;;wBAtCA,EAAAA,WAAA,CAWaC,UAAA,EAAA;AAAA,QAXA,IAAI,EAAA,CAAA,EAAKC,KAAG,CAAA,EAAA,EAAA,SAAU,CAAA,KAAA,CAAA,QAAA,CAAA;AAAA,OAAK,EAAA;AAAA,yBACtC,MASM;AAAA,UAREA,KADR,CAAA,OAAA,CAAA,IAAAC,SAAA,EAAA,EAAAC,kBAAA;AAAA,YASM,KAAA;AAAA,YAAA;AAAA,cAAA,GAAA,EAAA,CAAA;AAAA,cAPH,KAAA,EAAKC,cAAE,CAAA,YAAA,CAAY,KAAA,CAAA;AAAA,cACnB,OAAKC,cAAE,CAAAJ,KAAA,CAAA,EAAA,CAAA,CAAG,GAAC,CAAA;AAAA,cACX,OAAK,EAAA,MAAA,CAAA,CAAA,CAAA,KAAA,MAAA,CAAA,CAAA,CAAA,GAAAK,aAAA;AAAA,gBAAO,CAAA,GAAA,SAAAL,KAAA,CAAA,WAAA,KAAAA,KAAA,CAAA,WAAA,CAAA,CAAA,GAAA,IAAA,CAAA;AAAA,gBAAW,CAAA,MAAA,CAAA;AAAA,eAAA,CAAA;AAAA,aAAA;AAAA;cAExBM,WAEO,4BAFP,MAEO;AAAA,gBADLC,WAAA,CAAsDP,KAAA,CAAA,MAAA,CAAA,EAAA;AAAA,kBAA5C,OAAKI,cAAE,CAAAJ,KAAA,CAAA,EAAA,CAAG,CAAA,CAAA,CAAC,MAAA,CAAA,CAAA;AAAA,iBAAA,EAAA;AAAA,mCAAU,MAAa;AAAA,oBAAbO,WAAA,CAAaP,KAAA,CAAA,QAAA,CAAA,CAAA;AAAA,mBAAA,CAAA;AAAA;;;;;;;;;;;;;;;;"}
@@ -1,5 +1,5 @@
1
1
  import Button from './src/button2.mjs';
2
- import ButtonGroup from './src/button-group2.mjs';
2
+ import ButtonGroup from './src/button-group.mjs';
3
3
  export { buttonEmits, buttonNativeTypes, buttonProps, buttonTypes } from './src/button.mjs';
4
4
  export { buttonGroupContextKey } from './src/constants.mjs';
5
5
  import { withInstall, withNoopInstall } from '../../utils/vue/install.mjs';
@@ -1,15 +1,40 @@
1
- import { buttonProps } from './button.mjs';
2
- import { definePropType } from '../../../utils/vue/props/runtime.mjs';
1
+ import { defineComponent, provide, reactive, toRef, openBlock, createElementBlock, normalizeClass, unref, renderSlot } from 'vue';
2
+ import { buttonGroupProps } from './button-group2.mjs';
3
+ import { buttonGroupContextKey } from './constants.mjs';
4
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
5
+ import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
3
6
 
4
- const buttonGroupProps = {
5
- size: buttonProps.size,
6
- type: buttonProps.type,
7
- direction: {
8
- type: definePropType(String),
9
- values: ["horizontal", "vertical"],
10
- default: "horizontal"
7
+ const _sfc_main = defineComponent({
8
+ ...{
9
+ name: "ElButtonGroup"
10
+ },
11
+ __name: "button-group",
12
+ props: buttonGroupProps,
13
+ setup(__props) {
14
+ const props = __props;
15
+ provide(
16
+ buttonGroupContextKey,
17
+ reactive({
18
+ size: toRef(props, "size"),
19
+ type: toRef(props, "type")
20
+ })
21
+ );
22
+ const ns = useNamespace("button");
23
+ return (_ctx, _cache) => {
24
+ return openBlock(), createElementBlock(
25
+ "div",
26
+ {
27
+ class: normalizeClass([unref(ns).b("group"), unref(ns).bm("group", props.direction)])
28
+ },
29
+ [
30
+ renderSlot(_ctx.$slots, "default")
31
+ ],
32
+ 2
33
+ );
34
+ };
11
35
  }
12
- };
36
+ });
37
+ var ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);
13
38
 
14
- export { buttonGroupProps };
39
+ export { ButtonGroup as default };
15
40
  //# sourceMappingURL=button-group.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"button-group.mjs","sources":["../../../../../../packages/components/button/src/button-group.ts"],"sourcesContent":["import { definePropType } from '@element-plus/utils'\nimport { buttonProps } from './button'\n\nimport type { ExtractPropTypes, ExtractPublicPropTypes } from 'vue'\n\nexport const buttonGroupProps = {\n /**\n * @description control the size of buttons in this button-group\n */\n size: buttonProps.size,\n /**\n * @description control the type of buttons in this button-group\n */\n type: buttonProps.type,\n /**\n * @description display direction\n */\n direction: {\n type: definePropType<'horizontal' | 'vertical'>(String),\n values: ['horizontal', 'vertical'],\n default: 'horizontal',\n },\n} as const\nexport type ButtonGroupProps = ExtractPropTypes<typeof buttonGroupProps>\nexport type ButtonGroupPropsPublic = ExtractPublicPropTypes<\n typeof buttonGroupProps\n>\n"],"names":[],"mappings":";;;AAKO,MAAM,gBAAmB,GAAA;AAAA,EAI9B,MAAM,WAAY,CAAA,IAAA;AAAA,EAIlB,MAAM,WAAY,CAAA,IAAA;AAAA,EAIlB,SAAW,EAAA;AAAA,IACT,IAAA,EAAM,eAA0C,MAAM,CAAA;AAAA,IACtD,MAAA,EAAQ,CAAC,YAAA,EAAc,UAAU,CAAA;AAAA,IACjC,OAAS,EAAA,YAAA;AAAA,GACX;AACF;;;;"}
1
+ {"version":3,"file":"button-group.mjs","sources":["../../../../../../packages/components/button/src/button-group.vue"],"sourcesContent":["<template>\n <div :class=\"[ns.b('group'), ns.bm('group', props.direction)]\">\n <slot />\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { provide, reactive, toRef } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { buttonGroupProps } from './button-group'\nimport { buttonGroupContextKey } from './constants'\n\ndefineOptions({\n name: 'ElButtonGroup',\n})\nconst props = defineProps(buttonGroupProps)\nprovide(\n buttonGroupContextKey,\n reactive({\n size: toRef(props, 'size'),\n type: toRef(props, 'type'),\n })\n)\nconst ns = useNamespace('button')\n</script>\n"],"names":["_openBlock","_createElementBlock","_normalizeClass","_unref","_renderSlot"],"mappings":";;;;;;;;;;;;;AAeA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAA,OAAA;AAAA,MACE,qBAAA;AAAA,MACA,QAAS,CAAA;AAAA,QACP,IAAA,EAAM,KAAM,CAAA,KAAA,EAAO,MAAM,CAAA;AAAA,QACzB,IAAA,EAAM,KAAM,CAAA,KAAA,EAAO,MAAM,CAAA;AAAA,OAC1B,CAAA;AAAA,KACH,CAAA;AACM,IAAA,MAAA,EAAA,GAAK,aAAa,QAAQ,CAAA,CAAA;;AAtB9B,MAAA,OAAAA,WAAA,EAAAC,kBAAA;AAAA,QAEM,KAAA;AAAA,QAAA;AAAA,UAFA,OAAKC,gBAAGC,KAAG,CAAA,EAAA,EAAA,CAAC,CAAA,QAAW,EAAAA,KAAA,CAAG,EAAA,CAAA,CAAA,EAAA,CAAE,SAAU,KAAM,CAAA,SAAS,CAAA,CAAA,CAAA;AAAA,SAAA;AAAA;UACzDC,UAAA,CAAQ,IAAA,CAAA,MAAA,EAAA,SAAA,CAAA;AAAA,SAAA;AAAA;;;;;;;;;"}
@@ -1,40 +1,15 @@
1
- import { defineComponent, provide, reactive, toRef, openBlock, createElementBlock, normalizeClass, unref, renderSlot } from 'vue';
2
- import { buttonGroupProps } from './button-group.mjs';
3
- import { buttonGroupContextKey } from './constants.mjs';
4
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
5
- import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
1
+ import { buttonProps } from './button.mjs';
2
+ import { definePropType } from '../../../utils/vue/props/runtime.mjs';
6
3
 
7
- const _sfc_main = defineComponent({
8
- ...{
9
- name: "ElButtonGroup"
10
- },
11
- __name: "button-group",
12
- props: buttonGroupProps,
13
- setup(__props) {
14
- const props = __props;
15
- provide(
16
- buttonGroupContextKey,
17
- reactive({
18
- size: toRef(props, "size"),
19
- type: toRef(props, "type")
20
- })
21
- );
22
- const ns = useNamespace("button");
23
- return (_ctx, _cache) => {
24
- return openBlock(), createElementBlock(
25
- "div",
26
- {
27
- class: normalizeClass([unref(ns).b("group"), unref(ns).bm("group", props.direction)])
28
- },
29
- [
30
- renderSlot(_ctx.$slots, "default")
31
- ],
32
- 2
33
- );
34
- };
4
+ const buttonGroupProps = {
5
+ size: buttonProps.size,
6
+ type: buttonProps.type,
7
+ direction: {
8
+ type: definePropType(String),
9
+ values: ["horizontal", "vertical"],
10
+ default: "horizontal"
35
11
  }
36
- });
37
- var ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);
12
+ };
38
13
 
39
- export { ButtonGroup as default };
14
+ export { buttonGroupProps };
40
15
  //# sourceMappingURL=button-group2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"button-group2.mjs","sources":["../../../../../../packages/components/button/src/button-group.vue"],"sourcesContent":["<template>\n <div :class=\"[ns.b('group'), ns.bm('group', props.direction)]\">\n <slot />\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { provide, reactive, toRef } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { buttonGroupProps } from './button-group'\nimport { buttonGroupContextKey } from './constants'\n\ndefineOptions({\n name: 'ElButtonGroup',\n})\nconst props = defineProps(buttonGroupProps)\nprovide(\n buttonGroupContextKey,\n reactive({\n size: toRef(props, 'size'),\n type: toRef(props, 'type'),\n })\n)\nconst ns = useNamespace('button')\n</script>\n"],"names":["_openBlock","_createElementBlock","_normalizeClass","_unref","_renderSlot"],"mappings":";;;;;;;;;;;;;AAeA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAA,OAAA;AAAA,MACE,qBAAA;AAAA,MACA,QAAS,CAAA;AAAA,QACP,IAAA,EAAM,KAAM,CAAA,KAAA,EAAO,MAAM,CAAA;AAAA,QACzB,IAAA,EAAM,KAAM,CAAA,KAAA,EAAO,MAAM,CAAA;AAAA,OAC1B,CAAA;AAAA,KACH,CAAA;AACM,IAAA,MAAA,EAAA,GAAK,aAAa,QAAQ,CAAA,CAAA;;AAtB9B,MAAA,OAAAA,WAAA,EAAAC,kBAAA;AAAA,QAEM,KAAA;AAAA,QAAA;AAAA,UAFA,OAAKC,gBAAGC,KAAG,CAAA,EAAA,EAAA,CAAC,CAAA,QAAW,EAAAA,KAAA,CAAG,EAAA,CAAA,CAAA,EAAA,CAAE,SAAU,KAAM,CAAA,SAAS,CAAA,CAAA,CAAA;AAAA,SAAA;AAAA;UACzDC,UAAA,CAAQ,IAAA,CAAA,MAAA,EAAA,SAAA,CAAA;AAAA,SAAA;AAAA;;;;;;;;;"}
1
+ {"version":3,"file":"button-group2.mjs","sources":["../../../../../../packages/components/button/src/button-group.ts"],"sourcesContent":["import { definePropType } from '@element-plus/utils'\nimport { buttonProps } from './button'\n\nimport type { ExtractPropTypes, ExtractPublicPropTypes } from 'vue'\n\nexport const buttonGroupProps = {\n /**\n * @description control the size of buttons in this button-group\n */\n size: buttonProps.size,\n /**\n * @description control the type of buttons in this button-group\n */\n type: buttonProps.type,\n /**\n * @description display direction\n */\n direction: {\n type: definePropType<'horizontal' | 'vertical'>(String),\n values: ['horizontal', 'vertical'],\n default: 'horizontal',\n },\n} as const\nexport type ButtonGroupProps = ExtractPropTypes<typeof buttonGroupProps>\nexport type ButtonGroupPropsPublic = ExtractPublicPropTypes<\n typeof buttonGroupProps\n>\n"],"names":[],"mappings":";;;AAKO,MAAM,gBAAmB,GAAA;AAAA,EAI9B,MAAM,WAAY,CAAA,IAAA;AAAA,EAIlB,MAAM,WAAY,CAAA,IAAA;AAAA,EAIlB,SAAW,EAAA;AAAA,IACT,IAAA,EAAM,eAA0C,MAAM,CAAA;AAAA,IACtD,MAAA,EAAQ,CAAC,YAAA,EAAc,UAAU,CAAA;AAAA,IACjC,OAAS,EAAA,YAAA;AAAA,GACX;AACF;;;;"}
@@ -1,5 +1,5 @@
1
- import Card from './src/card2.mjs';
2
- export { cardContextKey, cardProps } from './src/card.mjs';
1
+ import Card from './src/card.mjs';
2
+ export { cardContextKey, cardProps } from './src/card2.mjs';
3
3
  import { withInstall } from '../../utils/vue/install.mjs';
4
4
 
5
5
  const ElCard = withInstall(Card);
@@ -1,28 +1,79 @@
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 './card2.mjs';
3
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
4
+ import { useGlobalConfig } from '../../config-provider/src/hooks/use-global-config.mjs';
5
+ import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
2
6
 
3
- const cardProps = buildProps({
4
- header: {
5
- type: String,
6
- default: ""
7
+ const _sfc_main = defineComponent({
8
+ ...{
9
+ name: "ElCard"
7
10
  },
8
- footer: {
9
- type: String,
10
- default: ""
11
- },
12
- bodyStyle: {
13
- type: definePropType([String, Object, Array]),
14
- default: ""
15
- },
16
- headerClass: String,
17
- bodyClass: String,
18
- footerClass: String,
19
- shadow: {
20
- type: String,
21
- values: ["always", "hover", "never"],
22
- default: void 0
11
+ __name: "card",
12
+ props: cardProps,
13
+ setup(__props) {
14
+ const globalConfig = useGlobalConfig("card");
15
+ const ns = useNamespace("card");
16
+ return (_ctx, _cache) => {
17
+ var _a;
18
+ return openBlock(), createElementBlock(
19
+ "div",
20
+ {
21
+ class: normalizeClass([
22
+ unref(ns).b(),
23
+ unref(ns).is(`${_ctx.shadow || ((_a = unref(globalConfig)) == null ? void 0 : _a.shadow) || "always"}-shadow`)
24
+ ])
25
+ },
26
+ [
27
+ _ctx.$slots.header || _ctx.header ? (openBlock(), createElementBlock(
28
+ "div",
29
+ {
30
+ key: 0,
31
+ class: normalizeClass([unref(ns).e("header"), _ctx.headerClass])
32
+ },
33
+ [
34
+ renderSlot(_ctx.$slots, "header", {}, () => [
35
+ createTextVNode(
36
+ toDisplayString(_ctx.header),
37
+ 1
38
+ )
39
+ ])
40
+ ],
41
+ 2
42
+ )) : createCommentVNode("v-if", true),
43
+ createElementVNode(
44
+ "div",
45
+ {
46
+ class: normalizeClass([unref(ns).e("body"), _ctx.bodyClass]),
47
+ style: normalizeStyle(_ctx.bodyStyle)
48
+ },
49
+ [
50
+ renderSlot(_ctx.$slots, "default")
51
+ ],
52
+ 6
53
+ ),
54
+ _ctx.$slots.footer || _ctx.footer ? (openBlock(), createElementBlock(
55
+ "div",
56
+ {
57
+ key: 1,
58
+ class: normalizeClass([unref(ns).e("footer"), _ctx.footerClass])
59
+ },
60
+ [
61
+ renderSlot(_ctx.$slots, "footer", {}, () => [
62
+ createTextVNode(
63
+ toDisplayString(_ctx.footer),
64
+ 1
65
+ )
66
+ ])
67
+ ],
68
+ 2
69
+ )) : createCommentVNode("v-if", true)
70
+ ],
71
+ 2
72
+ );
73
+ };
23
74
  }
24
75
  });
25
- const cardContextKey = Symbol("cardContextKey");
76
+ var Card = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/card/src/card.vue"]]);
26
77
 
27
- export { cardContextKey, cardProps };
78
+ export { Card as default };
28
79
  //# sourceMappingURL=card.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"card.mjs","sources":["../../../../../../packages/components/card/src/card.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\n\nimport type {\n ExtractPropTypes,\n ExtractPublicPropTypes,\n InjectionKey,\n StyleValue,\n} 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 /**\n * @description content of footer. Also accepts a DOM passed by `slot#footer`\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 footer\n */\n headerClass: String,\n /**\n * @description custom class name of card body\n */\n bodyClass: String,\n /**\n * @description custom class name of card footer\n */\n footerClass: String,\n /**\n * @description when to show card shadows\n */\n shadow: {\n type: String,\n values: ['always', 'hover', 'never'],\n default: undefined,\n },\n} as const)\nexport type CardProps = ExtractPropTypes<typeof cardProps>\nexport type CardPropsPublic = ExtractPublicPropTypes<typeof cardProps>\nexport interface CardConfigContext {\n shadow?: string\n}\n\nexport const cardContextKey: InjectionKey<CardConfigContext> =\n Symbol('cardContextKey')\n"],"names":[],"mappings":";;AASO,MAAM,YAAY,UAAW,CAAA;AAAA,EAIlC,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,EAAA;AAAA,GACX;AAAA,EAIA,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,EAAA;AAAA,GACX;AAAA,EAIA,SAAW,EAAA;AAAA,IACT,MAAM,cAA2B,CAAA,CAAC,MAAQ,EAAA,MAAA,EAAQ,KAAK,CAAC,CAAA;AAAA,IACxD,OAAS,EAAA,EAAA;AAAA,GACX;AAAA,EAIA,WAAa,EAAA,MAAA;AAAA,EAIb,SAAW,EAAA,MAAA;AAAA,EAIX,WAAa,EAAA,MAAA;AAAA,EAIb,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,MAAA;AAAA,IACN,MAAQ,EAAA,CAAC,QAAU,EAAA,OAAA,EAAS,OAAO,CAAA;AAAA,IACnC,OAAS,EAAA,KAAA,CAAA;AAAA,GACX;AACF,CAAU,EAAA;AAOG,MAAA,cAAA,GACX,OAAO,gBAAgB;;;;"}
1
+ {"version":3,"file":"card.mjs","sources":["../../../../../../packages/components/card/src/card.vue"],"sourcesContent":["<template>\n <div\n :class=\"[\n ns.b(),\n ns.is(`${shadow || globalConfig?.shadow || 'always'}-shadow`),\n ]\"\n >\n <div v-if=\"$slots.header || header\" :class=\"[ns.e('header'), headerClass]\">\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'), footerClass]\">\n <slot name=\"footer\">{{ footer }}</slot>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { useNamespace } from '@element-plus/hooks'\nimport { useGlobalConfig } from '@element-plus/components/config-provider'\nimport { cardProps } from './card'\n\nconst globalConfig = useGlobalConfig('card')\n\ndefineOptions({\n name: 'ElCard',\n})\n\ndefineProps(cardProps)\n\nconst ns = useNamespace('card')\n</script>\n"],"names":["_openBlock","_createElementBlock","_normalizeClass","_unref","shadow","$slots","header","headerClass","_renderSlot","_createTextVNode","_createElementVNode","bodyClass","_normalizeStyle","bodyStyle","footer","footerClass"],"mappings":";;;;;;;;;;;;;AAwBM,IAAA,MAAA,YAAA,GAAe,gBAAgB,MAAM,CAAA,CAAA;AAQrC,IAAA,MAAA,EAAA,GAAK,aAAa,MAAM,CAAA,CAAA;;;AA/B5B,MAAA,OAAAA,WAAA,EAAAC,kBAAA;AAAA,QAeM,KAAA;AAAA,QAAA;AAAA,UAdH,OAAKC,cAAA,CAAA;AAAA,YAAUC,KAAA,KAAG,CAAC,EAAA;AAAA,YAAUA,KAAG,CAAA,EAAA,CAAA,CAAA,EAAA,CAAE,CAAIC,EAAAA,IAAAA,CAAAA,MAAU,KAAA,CAAA,EAAA,GAAAD,KAAA,mBAAA,IAAc,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,MAAA,CAAA,IAAM,QAAA,CAAA,OAAA,CAAA,CAAA;AAAA,WAAA,CAAA;AAAA;;UAK1DE,KAAAA,MAAO,CAAA,MAAA,IAAUC,IAA5B,CAAA,MAAA,IAAAN,WAAA,EAAAC,kBAAA;AAAA,YAEM,KAAA;AAAA,YAAA;AAAA,cAAA,GAAA,EAAA,CAAA;AAAA,cAF+B,KAAA,EAAKC,cAAG,CAAA,CAAAC,KAAA,CAAA,EAAA,CAAG,CAAA,CAAA,CAAC,QAAA,CAAA,EAAYI,IAAW,CAAA,WAAA,CAAA,CAAA;AAAA,aAAA;AAAA;cACtEC,WAAuC,2BAAvC,MAAuC;AAAA,gBAAAC,eAAA;AAAA,kCAAhBH,KAAM,MAAA,CAAA;AAAA,kBAAA,CAAA;AAAA,iBAAA;AAAA,eAAA,CAAA;AAAA;;;UAE/BI,kBAAA;AAAA,YAEM,KAAA;AAAA,YAAA;AAAA,cAFA,KAAA,EAAKR,cAAA,CAAA,CAAGC,KAAG,CAAA,EAAA,CAAA,CAAA,CAAA,CAAC,SAAUQ,IAAS,CAAA,SAAA,CAAA,CAAA;AAAA,cAAI,KAAA,EAAKC,cAAEC,CAAAA,IAAAA,CAAS,SAAA,CAAA;AAAA,aAAA;AAAA;cACvDL,UAAA,CAAQ,IAAA,CAAA,MAAA,EAAA,SAAA,CAAA;AAAA,aAAA;AAAA;;UAECH,KAAAA,MAAO,CAAA,MAAA,IAAUS,IAA5B,CAAA,MAAA,IAAAd,WAAA,EAAAC,kBAAA;AAAA,YAEM,KAAA;AAAA,YAAA;AAAA,cAAA,GAAA,EAAA,CAAA;AAAA,cAF+B,KAAA,EAAKC,cAAG,CAAA,CAAAC,KAAA,CAAA,EAAA,CAAG,CAAA,CAAA,CAAC,QAAA,CAAA,EAAYY,IAAW,CAAA,WAAA,CAAA,CAAA;AAAA,aAAA;AAAA;cACtEP,WAAuC,2BAAvC,MAAuC;AAAA,gBAAAC,eAAA;AAAA,kCAAhBK,KAAM,MAAA,CAAA;AAAA,kBAAA,CAAA;AAAA,iBAAA;AAAA,eAAA,CAAA;AAAA;;;;;;;;;;;;;"}
@@ -1,79 +1,28 @@
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 { useGlobalConfig } from '../../config-provider/src/hooks/use-global-config.mjs';
5
- import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
1
+ import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
6
2
 
7
- const _sfc_main = defineComponent({
8
- ...{
9
- name: "ElCard"
3
+ const cardProps = buildProps({
4
+ header: {
5
+ type: String,
6
+ default: ""
10
7
  },
11
- __name: "card",
12
- props: cardProps,
13
- setup(__props) {
14
- const globalConfig = useGlobalConfig("card");
15
- const ns = useNamespace("card");
16
- return (_ctx, _cache) => {
17
- var _a;
18
- return openBlock(), createElementBlock(
19
- "div",
20
- {
21
- class: normalizeClass([
22
- unref(ns).b(),
23
- unref(ns).is(`${_ctx.shadow || ((_a = unref(globalConfig)) == null ? void 0 : _a.shadow) || "always"}-shadow`)
24
- ])
25
- },
26
- [
27
- _ctx.$slots.header || _ctx.header ? (openBlock(), createElementBlock(
28
- "div",
29
- {
30
- key: 0,
31
- class: normalizeClass([unref(ns).e("header"), _ctx.headerClass])
32
- },
33
- [
34
- renderSlot(_ctx.$slots, "header", {}, () => [
35
- createTextVNode(
36
- toDisplayString(_ctx.header),
37
- 1
38
- )
39
- ])
40
- ],
41
- 2
42
- )) : createCommentVNode("v-if", true),
43
- createElementVNode(
44
- "div",
45
- {
46
- class: normalizeClass([unref(ns).e("body"), _ctx.bodyClass]),
47
- style: normalizeStyle(_ctx.bodyStyle)
48
- },
49
- [
50
- renderSlot(_ctx.$slots, "default")
51
- ],
52
- 6
53
- ),
54
- _ctx.$slots.footer || _ctx.footer ? (openBlock(), createElementBlock(
55
- "div",
56
- {
57
- key: 1,
58
- class: normalizeClass([unref(ns).e("footer"), _ctx.footerClass])
59
- },
60
- [
61
- renderSlot(_ctx.$slots, "footer", {}, () => [
62
- createTextVNode(
63
- toDisplayString(_ctx.footer),
64
- 1
65
- )
66
- ])
67
- ],
68
- 2
69
- )) : createCommentVNode("v-if", true)
70
- ],
71
- 2
72
- );
73
- };
8
+ footer: {
9
+ type: String,
10
+ default: ""
11
+ },
12
+ bodyStyle: {
13
+ type: definePropType([String, Object, Array]),
14
+ default: ""
15
+ },
16
+ headerClass: String,
17
+ bodyClass: String,
18
+ footerClass: String,
19
+ shadow: {
20
+ type: String,
21
+ values: ["always", "hover", "never"],
22
+ default: void 0
74
23
  }
75
24
  });
76
- var Card = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/card/src/card.vue"]]);
25
+ const cardContextKey = Symbol("cardContextKey");
77
26
 
78
- export { Card as default };
27
+ export { cardContextKey, cardProps };
79
28
  //# sourceMappingURL=card2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"card2.mjs","sources":["../../../../../../packages/components/card/src/card.vue"],"sourcesContent":["<template>\n <div\n :class=\"[\n ns.b(),\n ns.is(`${shadow || globalConfig?.shadow || 'always'}-shadow`),\n ]\"\n >\n <div v-if=\"$slots.header || header\" :class=\"[ns.e('header'), headerClass]\">\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'), footerClass]\">\n <slot name=\"footer\">{{ footer }}</slot>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { useNamespace } from '@element-plus/hooks'\nimport { useGlobalConfig } from '@element-plus/components/config-provider'\nimport { cardProps } from './card'\n\nconst globalConfig = useGlobalConfig('card')\n\ndefineOptions({\n name: 'ElCard',\n})\n\ndefineProps(cardProps)\n\nconst ns = useNamespace('card')\n</script>\n"],"names":["_openBlock","_createElementBlock","_normalizeClass","_unref","shadow","$slots","header","headerClass","_renderSlot","_createTextVNode","_createElementVNode","bodyClass","_normalizeStyle","bodyStyle","footer","footerClass"],"mappings":";;;;;;;;;;;;;AAwBM,IAAA,MAAA,YAAA,GAAe,gBAAgB,MAAM,CAAA,CAAA;AAQrC,IAAA,MAAA,EAAA,GAAK,aAAa,MAAM,CAAA,CAAA;;;AA/B5B,MAAA,OAAAA,WAAA,EAAAC,kBAAA;AAAA,QAeM,KAAA;AAAA,QAAA;AAAA,UAdH,OAAKC,cAAA,CAAA;AAAA,YAAUC,KAAA,KAAG,CAAC,EAAA;AAAA,YAAUA,KAAG,CAAA,EAAA,CAAA,CAAA,EAAA,CAAE,CAAIC,EAAAA,IAAAA,CAAAA,MAAU,KAAA,CAAA,EAAA,GAAAD,KAAA,mBAAA,IAAc,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,MAAA,CAAA,IAAM,QAAA,CAAA,OAAA,CAAA,CAAA;AAAA,WAAA,CAAA;AAAA;;UAK1DE,KAAAA,MAAO,CAAA,MAAA,IAAUC,IAA5B,CAAA,MAAA,IAAAN,WAAA,EAAAC,kBAAA;AAAA,YAEM,KAAA;AAAA,YAAA;AAAA,cAAA,GAAA,EAAA,CAAA;AAAA,cAF+B,KAAA,EAAKC,cAAG,CAAA,CAAAC,KAAA,CAAA,EAAA,CAAG,CAAA,CAAA,CAAC,QAAA,CAAA,EAAYI,IAAW,CAAA,WAAA,CAAA,CAAA;AAAA,aAAA;AAAA;cACtEC,WAAuC,2BAAvC,MAAuC;AAAA,gBAAAC,eAAA;AAAA,kCAAhBH,KAAM,MAAA,CAAA;AAAA,kBAAA,CAAA;AAAA,iBAAA;AAAA,eAAA,CAAA;AAAA;;;UAE/BI,kBAAA;AAAA,YAEM,KAAA;AAAA,YAAA;AAAA,cAFA,KAAA,EAAKR,cAAA,CAAA,CAAGC,KAAG,CAAA,EAAA,CAAA,CAAA,CAAA,CAAC,SAAUQ,IAAS,CAAA,SAAA,CAAA,CAAA;AAAA,cAAI,KAAA,EAAKC,cAAEC,CAAAA,IAAAA,CAAS,SAAA,CAAA;AAAA,aAAA;AAAA;cACvDL,UAAA,CAAQ,IAAA,CAAA,MAAA,EAAA,SAAA,CAAA;AAAA,aAAA;AAAA;;UAECH,KAAAA,MAAO,CAAA,MAAA,IAAUS,IAA5B,CAAA,MAAA,IAAAd,WAAA,EAAAC,kBAAA;AAAA,YAEM,KAAA;AAAA,YAAA;AAAA,cAAA,GAAA,EAAA,CAAA;AAAA,cAF+B,KAAA,EAAKC,cAAG,CAAA,CAAAC,KAAA,CAAA,EAAA,CAAG,CAAA,CAAA,CAAC,QAAA,CAAA,EAAYY,IAAW,CAAA,WAAA,CAAA,CAAA;AAAA,aAAA;AAAA;cACtEP,WAAuC,2BAAvC,MAAuC;AAAA,gBAAAC,eAAA;AAAA,kCAAhBK,KAAM,MAAA,CAAA;AAAA,kBAAA,CAAA;AAAA,iBAAA;AAAA,eAAA,CAAA;AAAA;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"card2.mjs","sources":["../../../../../../packages/components/card/src/card.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\n\nimport type {\n ExtractPropTypes,\n ExtractPublicPropTypes,\n InjectionKey,\n StyleValue,\n} 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 /**\n * @description content of footer. Also accepts a DOM passed by `slot#footer`\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 footer\n */\n headerClass: String,\n /**\n * @description custom class name of card body\n */\n bodyClass: String,\n /**\n * @description custom class name of card footer\n */\n footerClass: String,\n /**\n * @description when to show card shadows\n */\n shadow: {\n type: String,\n values: ['always', 'hover', 'never'],\n default: undefined,\n },\n} as const)\nexport type CardProps = ExtractPropTypes<typeof cardProps>\nexport type CardPropsPublic = ExtractPublicPropTypes<typeof cardProps>\nexport interface CardConfigContext {\n shadow?: string\n}\n\nexport const cardContextKey: InjectionKey<CardConfigContext> =\n Symbol('cardContextKey')\n"],"names":[],"mappings":";;AASO,MAAM,YAAY,UAAW,CAAA;AAAA,EAIlC,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,EAAA;AAAA,GACX;AAAA,EAIA,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,EAAA;AAAA,GACX;AAAA,EAIA,SAAW,EAAA;AAAA,IACT,MAAM,cAA2B,CAAA,CAAC,MAAQ,EAAA,MAAA,EAAQ,KAAK,CAAC,CAAA;AAAA,IACxD,OAAS,EAAA,EAAA;AAAA,GACX;AAAA,EAIA,WAAa,EAAA,MAAA;AAAA,EAIb,SAAW,EAAA,MAAA;AAAA,EAIX,WAAa,EAAA,MAAA;AAAA,EAIb,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,MAAA;AAAA,IACN,MAAQ,EAAA,CAAC,QAAU,EAAA,OAAA,EAAS,OAAO,CAAA;AAAA,IACnC,OAAS,EAAA,KAAA,CAAA;AAAA,GACX;AACF,CAAU,EAAA;AAOG,MAAA,cAAA,GACX,OAAO,gBAAgB;;;;"}
@@ -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