@element-plus/nightly 0.0.20240212 → 0.0.20240213

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 (512) 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/hr.js +1 -1
  92. package/dist/locale/hr.min.js +1 -1
  93. package/dist/locale/hr.min.mjs +1 -1
  94. package/dist/locale/hr.mjs +1 -1
  95. package/dist/locale/hu.js +1 -1
  96. package/dist/locale/hu.min.js +1 -1
  97. package/dist/locale/hu.min.mjs +1 -1
  98. package/dist/locale/hu.mjs +1 -1
  99. package/dist/locale/hy-am.js +1 -1
  100. package/dist/locale/hy-am.min.js +1 -1
  101. package/dist/locale/hy-am.min.mjs +1 -1
  102. package/dist/locale/hy-am.mjs +1 -1
  103. package/dist/locale/id.js +1 -1
  104. package/dist/locale/id.min.js +1 -1
  105. package/dist/locale/id.min.mjs +1 -1
  106. package/dist/locale/id.mjs +1 -1
  107. package/dist/locale/it.js +1 -1
  108. package/dist/locale/it.min.js +1 -1
  109. package/dist/locale/it.min.mjs +1 -1
  110. package/dist/locale/it.mjs +1 -1
  111. package/dist/locale/ja.js +1 -1
  112. package/dist/locale/ja.min.js +1 -1
  113. package/dist/locale/ja.min.mjs +1 -1
  114. package/dist/locale/ja.mjs +1 -1
  115. package/dist/locale/kk.js +1 -1
  116. package/dist/locale/kk.min.js +1 -1
  117. package/dist/locale/kk.min.mjs +1 -1
  118. package/dist/locale/kk.mjs +1 -1
  119. package/dist/locale/km.js +1 -1
  120. package/dist/locale/km.min.js +1 -1
  121. package/dist/locale/km.min.mjs +1 -1
  122. package/dist/locale/km.mjs +1 -1
  123. package/dist/locale/ko.js +1 -1
  124. package/dist/locale/ko.min.js +1 -1
  125. package/dist/locale/ko.min.mjs +1 -1
  126. package/dist/locale/ko.mjs +1 -1
  127. package/dist/locale/ku.js +1 -1
  128. package/dist/locale/ku.min.js +1 -1
  129. package/dist/locale/ku.min.mjs +1 -1
  130. package/dist/locale/ku.mjs +1 -1
  131. package/dist/locale/ky.js +1 -1
  132. package/dist/locale/ky.min.js +1 -1
  133. package/dist/locale/ky.min.mjs +1 -1
  134. package/dist/locale/ky.mjs +1 -1
  135. package/dist/locale/lt.js +1 -1
  136. package/dist/locale/lt.min.js +1 -1
  137. package/dist/locale/lt.min.mjs +1 -1
  138. package/dist/locale/lt.mjs +1 -1
  139. package/dist/locale/lv.js +1 -1
  140. package/dist/locale/lv.min.js +1 -1
  141. package/dist/locale/lv.min.mjs +1 -1
  142. package/dist/locale/lv.mjs +1 -1
  143. package/dist/locale/mg.js +1 -1
  144. package/dist/locale/mg.min.js +1 -1
  145. package/dist/locale/mg.min.mjs +1 -1
  146. package/dist/locale/mg.mjs +1 -1
  147. package/dist/locale/mn.js +1 -1
  148. package/dist/locale/mn.min.js +1 -1
  149. package/dist/locale/mn.min.mjs +1 -1
  150. package/dist/locale/mn.mjs +1 -1
  151. package/dist/locale/nb-no.js +1 -1
  152. package/dist/locale/nb-no.min.js +1 -1
  153. package/dist/locale/nb-no.min.mjs +1 -1
  154. package/dist/locale/nb-no.mjs +1 -1
  155. package/dist/locale/nl.js +1 -1
  156. package/dist/locale/nl.min.js +1 -1
  157. package/dist/locale/nl.min.mjs +1 -1
  158. package/dist/locale/nl.mjs +1 -1
  159. package/dist/locale/pa.js +1 -1
  160. package/dist/locale/pa.min.js +1 -1
  161. package/dist/locale/pa.min.mjs +1 -1
  162. package/dist/locale/pa.mjs +1 -1
  163. package/dist/locale/pl.js +1 -1
  164. package/dist/locale/pl.min.js +1 -1
  165. package/dist/locale/pl.min.mjs +1 -1
  166. package/dist/locale/pl.mjs +1 -1
  167. package/dist/locale/pt-br.js +1 -1
  168. package/dist/locale/pt-br.min.js +1 -1
  169. package/dist/locale/pt-br.min.mjs +1 -1
  170. package/dist/locale/pt-br.mjs +1 -1
  171. package/dist/locale/pt.js +1 -1
  172. package/dist/locale/pt.min.js +1 -1
  173. package/dist/locale/pt.min.mjs +1 -1
  174. package/dist/locale/pt.mjs +1 -1
  175. package/dist/locale/ro.js +1 -1
  176. package/dist/locale/ro.min.js +1 -1
  177. package/dist/locale/ro.min.mjs +1 -1
  178. package/dist/locale/ro.mjs +1 -1
  179. package/dist/locale/ru.js +1 -1
  180. package/dist/locale/ru.min.js +1 -1
  181. package/dist/locale/ru.min.mjs +1 -1
  182. package/dist/locale/ru.mjs +1 -1
  183. package/dist/locale/sk.js +1 -1
  184. package/dist/locale/sk.min.js +1 -1
  185. package/dist/locale/sk.min.mjs +1 -1
  186. package/dist/locale/sk.mjs +1 -1
  187. package/dist/locale/sl.js +1 -1
  188. package/dist/locale/sl.min.js +1 -1
  189. package/dist/locale/sl.min.mjs +1 -1
  190. package/dist/locale/sl.mjs +1 -1
  191. package/dist/locale/sr.js +1 -1
  192. package/dist/locale/sr.min.js +1 -1
  193. package/dist/locale/sr.min.mjs +1 -1
  194. package/dist/locale/sr.mjs +1 -1
  195. package/dist/locale/sv.js +1 -1
  196. package/dist/locale/sv.min.js +1 -1
  197. package/dist/locale/sv.min.mjs +1 -1
  198. package/dist/locale/sv.mjs +1 -1
  199. package/dist/locale/sw.js +1 -1
  200. package/dist/locale/sw.min.js +1 -1
  201. package/dist/locale/sw.min.mjs +1 -1
  202. package/dist/locale/sw.mjs +1 -1
  203. package/dist/locale/ta.js +1 -1
  204. package/dist/locale/ta.min.js +1 -1
  205. package/dist/locale/ta.min.mjs +1 -1
  206. package/dist/locale/ta.mjs +1 -1
  207. package/dist/locale/th.js +1 -1
  208. package/dist/locale/th.min.js +1 -1
  209. package/dist/locale/th.min.mjs +1 -1
  210. package/dist/locale/th.mjs +1 -1
  211. package/dist/locale/tk.js +1 -1
  212. package/dist/locale/tk.min.js +1 -1
  213. package/dist/locale/tk.min.mjs +1 -1
  214. package/dist/locale/tk.mjs +1 -1
  215. package/dist/locale/tr.js +1 -1
  216. package/dist/locale/tr.min.js +1 -1
  217. package/dist/locale/tr.min.mjs +1 -1
  218. package/dist/locale/tr.mjs +1 -1
  219. package/dist/locale/ug-cn.js +1 -1
  220. package/dist/locale/ug-cn.min.js +1 -1
  221. package/dist/locale/ug-cn.min.mjs +1 -1
  222. package/dist/locale/ug-cn.mjs +1 -1
  223. package/dist/locale/uk.js +1 -1
  224. package/dist/locale/uk.min.js +1 -1
  225. package/dist/locale/uk.min.mjs +1 -1
  226. package/dist/locale/uk.mjs +1 -1
  227. package/dist/locale/uz-uz.js +1 -1
  228. package/dist/locale/uz-uz.min.js +1 -1
  229. package/dist/locale/uz-uz.min.mjs +1 -1
  230. package/dist/locale/uz-uz.mjs +1 -1
  231. package/dist/locale/vi.js +1 -1
  232. package/dist/locale/vi.min.js +1 -1
  233. package/dist/locale/vi.min.mjs +1 -1
  234. package/dist/locale/vi.mjs +1 -1
  235. package/dist/locale/zh-cn.js +1 -1
  236. package/dist/locale/zh-cn.min.js +1 -1
  237. package/dist/locale/zh-cn.min.mjs +1 -1
  238. package/dist/locale/zh-cn.mjs +1 -1
  239. package/dist/locale/zh-tw.js +1 -1
  240. package/dist/locale/zh-tw.min.js +1 -1
  241. package/dist/locale/zh-tw.min.mjs +1 -1
  242. package/dist/locale/zh-tw.mjs +1 -1
  243. package/es/components/alert/index.d.ts +4 -4
  244. package/es/components/alert/src/alert.d.ts +1 -1
  245. package/es/components/alert/src/alert.vue.d.ts +4 -4
  246. package/es/components/autocomplete/index.d.ts +65 -65
  247. package/es/components/autocomplete/src/autocomplete.vue.d.ts +65 -65
  248. package/es/components/avatar/index.mjs +2 -2
  249. package/es/components/avatar/src/avatar.mjs +67 -32
  250. package/es/components/avatar/src/avatar.mjs.map +1 -1
  251. package/es/components/avatar/src/avatar2.mjs +32 -67
  252. package/es/components/avatar/src/avatar2.mjs.map +1 -1
  253. package/es/components/breadcrumb/index.mjs +2 -2
  254. package/es/components/breadcrumb/src/breadcrumb-item.mjs +56 -11
  255. package/es/components/breadcrumb/src/breadcrumb-item.mjs.map +1 -1
  256. package/es/components/breadcrumb/src/breadcrumb-item2.mjs +11 -56
  257. package/es/components/breadcrumb/src/breadcrumb-item2.mjs.map +1 -1
  258. package/es/components/button/index.d.ts +5 -5
  259. package/es/components/button/src/button.d.ts +1 -1
  260. package/es/components/button/src/button.vue.d.ts +5 -5
  261. package/es/components/button/src/use-button.d.ts +1 -1
  262. package/es/components/calendar/index.d.ts +5 -5
  263. package/es/components/calendar/src/calendar.vue.d.ts +5 -5
  264. package/es/components/card/index.mjs +2 -2
  265. package/es/components/card/src/card.mjs +43 -21
  266. package/es/components/card/src/card.mjs.map +1 -1
  267. package/es/components/card/src/card2.mjs +21 -43
  268. package/es/components/card/src/card2.mjs.map +1 -1
  269. package/es/components/carousel/index.d.ts +5 -5
  270. package/es/components/carousel/src/carousel.d.ts +1 -1
  271. package/es/components/carousel/src/carousel.vue.d.ts +5 -5
  272. package/es/components/cascader/index.d.ts +128 -128
  273. package/es/components/cascader/src/cascader.vue.d.ts +64 -64
  274. package/es/components/collapse/index.mjs +2 -2
  275. package/es/components/collapse/src/collapse-item.mjs +91 -13
  276. package/es/components/collapse/src/collapse-item.mjs.map +1 -1
  277. package/es/components/collapse/src/collapse-item2.mjs +13 -91
  278. package/es/components/collapse/src/collapse-item2.mjs.map +1 -1
  279. package/es/components/color-picker/index.d.ts +38 -38
  280. package/es/components/color-picker/src/color-picker.vue.d.ts +38 -38
  281. package/es/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +17 -17
  282. package/es/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +17 -17
  283. package/es/components/date-picker/src/panel-utils.d.ts +34 -34
  284. package/es/components/dialog/index.d.ts +1 -1
  285. package/es/components/dialog/src/dialog.vue.d.ts +1 -1
  286. package/es/components/drawer/index.d.ts +1 -1
  287. package/es/components/drawer/src/drawer.vue.d.ts +1 -1
  288. package/es/components/dropdown/index.d.ts +14 -14
  289. package/es/components/dropdown/src/dropdown-item-impl.vue.d.ts +1 -1
  290. package/es/components/dropdown/src/dropdown-item.vue.d.ts +1 -1
  291. package/es/components/dropdown/src/dropdown.vue.d.ts +12 -12
  292. package/es/components/focus-trap/src/focus-trap.vue.d.ts +1 -1
  293. package/es/components/form/index.d.ts +12 -12
  294. package/es/components/form/src/form-item.d.ts +1 -1
  295. package/es/components/form/src/form-item.vue.d.ts +5 -5
  296. package/es/components/image/index.d.ts +1 -1
  297. package/es/components/image/src/image.vue.d.ts +1 -1
  298. package/es/components/index.mjs +5 -5
  299. package/es/components/input/index.d.ts +12 -12
  300. package/es/components/input/src/input.vue.d.ts +12 -12
  301. package/es/components/input-number/index.d.ts +45 -45
  302. package/es/components/input-number/src/input-number.vue.d.ts +45 -45
  303. package/es/components/menu/index.d.ts +3 -3
  304. package/es/components/menu/src/menu.d.ts +4 -4
  305. package/es/components/message/src/message.d.ts +1 -1
  306. package/es/components/message/src/message.vue.d.ts +4 -4
  307. package/es/components/message-box/src/index.vue.d.ts +1 -1
  308. package/es/components/notification/src/notification.d.ts +1 -1
  309. package/es/components/notification/src/notification.vue.d.ts +4 -4
  310. package/es/components/pagination/src/components/jumper.vue.d.ts +12 -12
  311. package/es/components/pagination/src/components/sizes.vue.d.ts +27 -27
  312. package/es/components/popconfirm/index.d.ts +23 -23
  313. package/es/components/popconfirm/index.mjs +2 -2
  314. package/es/components/popconfirm/src/popconfirm.mjs +47 -110
  315. package/es/components/popconfirm/src/popconfirm.mjs.map +1 -1
  316. package/es/components/popconfirm/src/popconfirm.vue.d.ts +23 -23
  317. package/es/components/popconfirm/src/popconfirm2.mjs +110 -47
  318. package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
  319. package/es/components/popover/index.d.ts +18 -18
  320. package/es/components/popover/src/popover.vue.d.ts +18 -18
  321. package/es/components/popper/src/content.vue.d.ts +6 -6
  322. package/es/components/result/index.d.ts +4 -4
  323. package/es/components/result/src/result.d.ts +1 -1
  324. package/es/components/result/src/result.vue.d.ts +4 -4
  325. package/es/components/roving-focus-group/src/roving-focus-item.vue.d.ts +1 -1
  326. package/es/components/select/index.d.ts +27 -27
  327. package/es/components/select/src/select.vue.d.ts +27 -27
  328. package/es/components/select/src/useSelect.d.ts +25 -25
  329. package/es/components/select-v2/index.d.ts +54 -54
  330. package/es/components/select-v2/src/option-item.vue.d.ts +1 -1
  331. package/es/components/select-v2/src/select.vue.d.ts +27 -27
  332. package/es/components/select-v2/src/useSelect.d.ts +25 -25
  333. package/es/components/slider/index.d.ts +75 -75
  334. package/es/components/slider/src/button.vue.d.ts +6 -6
  335. package/es/components/slider/src/composables/use-slide.d.ts +24 -24
  336. package/es/components/slider/src/slider.vue.d.ts +75 -75
  337. package/es/components/steps/index.d.ts +16 -16
  338. package/es/components/steps/src/item.d.ts +1 -1
  339. package/es/components/steps/src/item.vue.d.ts +4 -4
  340. package/es/components/steps/src/steps.d.ts +2 -2
  341. package/es/components/steps/src/steps.vue.d.ts +8 -8
  342. package/es/components/table/index.d.ts +1 -1
  343. package/es/components/table/src/filter-panel.vue.d.ts +12 -12
  344. package/es/components/table/src/table.vue.d.ts +1 -1
  345. package/es/components/tag/index.d.ts +1 -1
  346. package/es/components/tag/src/tag.vue.d.ts +1 -1
  347. package/es/components/time-picker/src/common/picker.vue.d.ts +34 -34
  348. package/es/components/time-select/index.d.ts +114 -114
  349. package/es/components/time-select/src/time-select.vue.d.ts +57 -57
  350. package/es/components/tooltip/index.d.ts +6 -6
  351. package/es/components/tooltip/src/content.vue.d.ts +6 -6
  352. package/es/components/tooltip/src/tooltip.vue.d.ts +6 -6
  353. package/es/components/tooltip-v2/index.d.ts +4 -4
  354. package/es/components/tooltip-v2/index.mjs +2 -2
  355. package/es/components/tooltip-v2/src/tooltip.mjs +20 -73
  356. package/es/components/tooltip-v2/src/tooltip.mjs.map +1 -1
  357. package/es/components/tooltip-v2/src/tooltip.vue.d.ts +4 -4
  358. package/es/components/tooltip-v2/src/tooltip2.mjs +73 -20
  359. package/es/components/tooltip-v2/src/tooltip2.mjs.map +1 -1
  360. package/es/components/tour/index.d.ts +11 -11
  361. package/es/components/tour/src/content.vue.d.ts +1 -1
  362. package/es/components/tour/src/step.vue.d.ts +5 -5
  363. package/es/components/tour/src/tour.vue.d.ts +1 -1
  364. package/es/components/transfer/index.d.ts +65 -65
  365. package/es/components/transfer/src/transfer-panel.vue.d.ts +12 -12
  366. package/es/components/transfer/src/transfer.vue.d.ts +65 -65
  367. package/es/components/tree-v2/index.d.ts +1 -1
  368. package/es/components/tree-v2/src/tree-node.vue.d.ts +1 -1
  369. package/es/components/tree-v2/src/tree.vue.d.ts +1 -1
  370. package/es/components/upload/index.d.ts +5 -5
  371. package/es/components/upload/src/upload-content.vue.d.ts +1 -1
  372. package/es/components/upload/src/upload.vue.d.ts +5 -5
  373. package/es/index.mjs +5 -5
  374. package/es/version.d.ts +1 -1
  375. package/es/version.mjs +1 -1
  376. package/es/version.mjs.map +1 -1
  377. package/lib/components/alert/index.d.ts +4 -4
  378. package/lib/components/alert/src/alert.d.ts +1 -1
  379. package/lib/components/alert/src/alert.vue.d.ts +4 -4
  380. package/lib/components/autocomplete/index.d.ts +65 -65
  381. package/lib/components/autocomplete/src/autocomplete.vue.d.ts +65 -65
  382. package/lib/components/avatar/index.js +2 -2
  383. package/lib/components/avatar/src/avatar.js +67 -33
  384. package/lib/components/avatar/src/avatar.js.map +1 -1
  385. package/lib/components/avatar/src/avatar2.js +33 -67
  386. package/lib/components/avatar/src/avatar2.js.map +1 -1
  387. package/lib/components/breadcrumb/index.js +2 -2
  388. package/lib/components/breadcrumb/src/breadcrumb-item.js +56 -11
  389. package/lib/components/breadcrumb/src/breadcrumb-item.js.map +1 -1
  390. package/lib/components/breadcrumb/src/breadcrumb-item2.js +11 -56
  391. package/lib/components/breadcrumb/src/breadcrumb-item2.js.map +1 -1
  392. package/lib/components/button/index.d.ts +5 -5
  393. package/lib/components/button/src/button.d.ts +1 -1
  394. package/lib/components/button/src/button.vue.d.ts +5 -5
  395. package/lib/components/button/src/use-button.d.ts +1 -1
  396. package/lib/components/calendar/index.d.ts +5 -5
  397. package/lib/components/calendar/src/calendar.vue.d.ts +5 -5
  398. package/lib/components/card/index.js +2 -2
  399. package/lib/components/card/src/card.js +43 -21
  400. package/lib/components/card/src/card.js.map +1 -1
  401. package/lib/components/card/src/card2.js +21 -43
  402. package/lib/components/card/src/card2.js.map +1 -1
  403. package/lib/components/carousel/index.d.ts +5 -5
  404. package/lib/components/carousel/src/carousel.d.ts +1 -1
  405. package/lib/components/carousel/src/carousel.vue.d.ts +5 -5
  406. package/lib/components/cascader/index.d.ts +128 -128
  407. package/lib/components/cascader/src/cascader.vue.d.ts +64 -64
  408. package/lib/components/collapse/index.js +2 -2
  409. package/lib/components/collapse/src/collapse-item.js +91 -13
  410. package/lib/components/collapse/src/collapse-item.js.map +1 -1
  411. package/lib/components/collapse/src/collapse-item2.js +13 -91
  412. package/lib/components/collapse/src/collapse-item2.js.map +1 -1
  413. package/lib/components/color-picker/index.d.ts +38 -38
  414. package/lib/components/color-picker/src/color-picker.vue.d.ts +38 -38
  415. package/lib/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +17 -17
  416. package/lib/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +17 -17
  417. package/lib/components/date-picker/src/panel-utils.d.ts +34 -34
  418. package/lib/components/dialog/index.d.ts +1 -1
  419. package/lib/components/dialog/src/dialog.vue.d.ts +1 -1
  420. package/lib/components/drawer/index.d.ts +1 -1
  421. package/lib/components/drawer/src/drawer.vue.d.ts +1 -1
  422. package/lib/components/dropdown/index.d.ts +14 -14
  423. package/lib/components/dropdown/src/dropdown-item-impl.vue.d.ts +1 -1
  424. package/lib/components/dropdown/src/dropdown-item.vue.d.ts +1 -1
  425. package/lib/components/dropdown/src/dropdown.vue.d.ts +12 -12
  426. package/lib/components/focus-trap/src/focus-trap.vue.d.ts +1 -1
  427. package/lib/components/form/index.d.ts +12 -12
  428. package/lib/components/form/src/form-item.d.ts +1 -1
  429. package/lib/components/form/src/form-item.vue.d.ts +5 -5
  430. package/lib/components/image/index.d.ts +1 -1
  431. package/lib/components/image/src/image.vue.d.ts +1 -1
  432. package/lib/components/index.js +5 -5
  433. package/lib/components/input/index.d.ts +12 -12
  434. package/lib/components/input/src/input.vue.d.ts +12 -12
  435. package/lib/components/input-number/index.d.ts +45 -45
  436. package/lib/components/input-number/src/input-number.vue.d.ts +45 -45
  437. package/lib/components/menu/index.d.ts +3 -3
  438. package/lib/components/menu/src/menu.d.ts +4 -4
  439. package/lib/components/message/src/message.d.ts +1 -1
  440. package/lib/components/message/src/message.vue.d.ts +4 -4
  441. package/lib/components/message-box/src/index.vue.d.ts +1 -1
  442. package/lib/components/notification/src/notification.d.ts +1 -1
  443. package/lib/components/notification/src/notification.vue.d.ts +4 -4
  444. package/lib/components/pagination/src/components/jumper.vue.d.ts +12 -12
  445. package/lib/components/pagination/src/components/sizes.vue.d.ts +27 -27
  446. package/lib/components/popconfirm/index.d.ts +23 -23
  447. package/lib/components/popconfirm/index.js +2 -2
  448. package/lib/components/popconfirm/src/popconfirm.js +48 -110
  449. package/lib/components/popconfirm/src/popconfirm.js.map +1 -1
  450. package/lib/components/popconfirm/src/popconfirm.vue.d.ts +23 -23
  451. package/lib/components/popconfirm/src/popconfirm2.js +110 -48
  452. package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
  453. package/lib/components/popover/index.d.ts +18 -18
  454. package/lib/components/popover/src/popover.vue.d.ts +18 -18
  455. package/lib/components/popper/src/content.vue.d.ts +6 -6
  456. package/lib/components/result/index.d.ts +4 -4
  457. package/lib/components/result/src/result.d.ts +1 -1
  458. package/lib/components/result/src/result.vue.d.ts +4 -4
  459. package/lib/components/roving-focus-group/src/roving-focus-item.vue.d.ts +1 -1
  460. package/lib/components/select/index.d.ts +27 -27
  461. package/lib/components/select/src/select.vue.d.ts +27 -27
  462. package/lib/components/select/src/useSelect.d.ts +25 -25
  463. package/lib/components/select-v2/index.d.ts +54 -54
  464. package/lib/components/select-v2/src/option-item.vue.d.ts +1 -1
  465. package/lib/components/select-v2/src/select.vue.d.ts +27 -27
  466. package/lib/components/select-v2/src/useSelect.d.ts +25 -25
  467. package/lib/components/slider/index.d.ts +75 -75
  468. package/lib/components/slider/src/button.vue.d.ts +6 -6
  469. package/lib/components/slider/src/composables/use-slide.d.ts +24 -24
  470. package/lib/components/slider/src/slider.vue.d.ts +75 -75
  471. package/lib/components/steps/index.d.ts +16 -16
  472. package/lib/components/steps/src/item.d.ts +1 -1
  473. package/lib/components/steps/src/item.vue.d.ts +4 -4
  474. package/lib/components/steps/src/steps.d.ts +2 -2
  475. package/lib/components/steps/src/steps.vue.d.ts +8 -8
  476. package/lib/components/table/index.d.ts +1 -1
  477. package/lib/components/table/src/filter-panel.vue.d.ts +12 -12
  478. package/lib/components/table/src/table.vue.d.ts +1 -1
  479. package/lib/components/tag/index.d.ts +1 -1
  480. package/lib/components/tag/src/tag.vue.d.ts +1 -1
  481. package/lib/components/time-picker/src/common/picker.vue.d.ts +34 -34
  482. package/lib/components/time-select/index.d.ts +114 -114
  483. package/lib/components/time-select/src/time-select.vue.d.ts +57 -57
  484. package/lib/components/tooltip/index.d.ts +6 -6
  485. package/lib/components/tooltip/src/content.vue.d.ts +6 -6
  486. package/lib/components/tooltip/src/tooltip.vue.d.ts +6 -6
  487. package/lib/components/tooltip-v2/index.d.ts +4 -4
  488. package/lib/components/tooltip-v2/index.js +2 -2
  489. package/lib/components/tooltip-v2/src/tooltip.js +20 -73
  490. package/lib/components/tooltip-v2/src/tooltip.js.map +1 -1
  491. package/lib/components/tooltip-v2/src/tooltip.vue.d.ts +4 -4
  492. package/lib/components/tooltip-v2/src/tooltip2.js +73 -20
  493. package/lib/components/tooltip-v2/src/tooltip2.js.map +1 -1
  494. package/lib/components/tour/index.d.ts +11 -11
  495. package/lib/components/tour/src/content.vue.d.ts +1 -1
  496. package/lib/components/tour/src/step.vue.d.ts +5 -5
  497. package/lib/components/tour/src/tour.vue.d.ts +1 -1
  498. package/lib/components/transfer/index.d.ts +65 -65
  499. package/lib/components/transfer/src/transfer-panel.vue.d.ts +12 -12
  500. package/lib/components/transfer/src/transfer.vue.d.ts +65 -65
  501. package/lib/components/tree-v2/index.d.ts +1 -1
  502. package/lib/components/tree-v2/src/tree-node.vue.d.ts +1 -1
  503. package/lib/components/tree-v2/src/tree.vue.d.ts +1 -1
  504. package/lib/components/upload/index.d.ts +5 -5
  505. package/lib/components/upload/src/upload-content.vue.d.ts +1 -1
  506. package/lib/components/upload/src/upload.vue.d.ts +5 -5
  507. package/lib/index.js +5 -5
  508. package/lib/version.d.ts +1 -1
  509. package/lib/version.js +1 -1
  510. package/lib/version.js.map +1 -1
  511. package/package.json +2 -2
  512. package/web-types.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"avatar2.mjs","sources":["../../../../../../packages/components/avatar/src/avatar.vue"],"sourcesContent":["<template>\n <span :class=\"avatarClass\" :style=\"sizeStyle\">\n <img\n v-if=\"(src || srcSet) && !hasLoadError\"\n :src=\"src\"\n :alt=\"alt\"\n :srcset=\"srcSet\"\n :style=\"fitStyle\"\n @error=\"handleError\"\n />\n <el-icon v-else-if=\"icon\">\n <component :is=\"icon\" />\n </el-icon>\n <slot v-else />\n </span>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, ref, watch } from 'vue'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { useNamespace } from '@element-plus/hooks'\nimport { addUnit, isNumber, isString } from '@element-plus/utils'\nimport { avatarEmits, avatarProps } from './avatar'\n\nimport type { CSSProperties } from 'vue'\n\ndefineOptions({\n name: 'ElAvatar',\n})\n\nconst props = defineProps(avatarProps)\nconst emit = defineEmits(avatarEmits)\n\nconst ns = useNamespace('avatar')\n\nconst hasLoadError = ref(false)\n\nconst avatarClass = computed(() => {\n const { size, icon, shape } = props\n const classList = [ns.b()]\n if (isString(size)) classList.push(ns.m(size))\n if (icon) classList.push(ns.m('icon'))\n if (shape) classList.push(ns.m(shape))\n return classList\n})\n\nconst sizeStyle = computed(() => {\n const { size } = props\n return isNumber(size)\n ? (ns.cssVarBlock({\n size: addUnit(size) || '',\n }) as CSSProperties)\n : undefined\n})\n\nconst fitStyle = computed<CSSProperties>(() => ({\n objectFit: props.fit,\n}))\n\n// need reset hasLoadError to false if src changed\nwatch(\n () => props.src,\n () => (hasLoadError.value = false)\n)\n\nfunction handleError(e: Event) {\n hasLoadError.value = true\n emit('error', e)\n}\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;mCA0Bc,CAAA;AAAA,EACZ,IAAM,EAAA,UAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAKA,IAAM,MAAA,EAAA,GAAK,aAAa,QAAQ,CAAA,CAAA;AAEhC,IAAM,MAAA,YAAA,GAAe,IAAI,KAAK,CAAA,CAAA;AAE9B,IAAM,MAAA,WAAA,GAAc,SAAS,MAAM;AACjC,MAAM,MAAA,EAAE,IAAM,EAAA,IAAA,EAAM,KAAU,EAAA,GAAA,KAAA,CAAA;AAC9B,MAAA,MAAM,SAAY,GAAA,CAAC,EAAG,CAAA,CAAA,EAAG,CAAA,CAAA;AACzB,MAAA,IAAI,SAAS,IAAI,CAAA;AAAG,QAAA,SAAA,CAAU,IAAK,CAAA,EAAA,CAAG,CAAE,CAAA,IAAI,CAAC,CAAA,CAAA;AAC7C,MAAI,IAAA,IAAA;AAAM,QAAA,SAAA,CAAU,IAAK,CAAA,EAAA,CAAG,CAAE,CAAA,MAAM,CAAC,CAAA,CAAA;AACrC,MAAI,IAAA,KAAA;AAAO,QAAA,SAAA,CAAU,IAAK,CAAA,EAAA,CAAG,CAAE,CAAA,KAAK,CAAC,CAAA,CAAA;AACrC,MAAO,OAAA,SAAA,CAAA;AAAA,KACR,CAAA,CAAA;AAED,IAAM,MAAA,SAAA,GAAY,SAAS,MAAM;AAC/B,MAAA,MAAM,EAAE,IAAS,EAAA,GAAA,KAAA,CAAA;AACjB,MAAA,OAAO,QAAS,CAAA,IAAI,CACf,GAAA,EAAA,CAAG,WAAY,CAAA;AAAA,QACd,IAAA,EAAM,OAAQ,CAAA,IAAI,CAAK,IAAA,EAAA;AAAA,OACxB,CACD,GAAA,KAAA,CAAA,CAAA;AAAA,KACL,CAAA,CAAA;AAED,IAAM,MAAA,QAAA,GAAW,SAAwB,OAAO;AAAA,MAC9C,WAAW,KAAM,CAAA,GAAA;AAAA,KACjB,CAAA,CAAA,CAAA;AAGF,IAAA,KAAA,CACE,MAAM,KAAM,CAAA,GAAA,EACZ,MAAO,YAAA,CAAa,QAAQ,KAC9B,CAAA,CAAA;AAEA,IAAA,SAAA,WAAA,CAAqB,CAAU,EAAA;AAC7B,MAAA,YAAA,CAAa,KAAQ,GAAA,IAAA,CAAA;AACrB,MAAA,IAAA,CAAK,SAAS,CAAC,CAAA,CAAA;AAAA,KACjB;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"avatar2.mjs","sources":["../../../../../../packages/components/avatar/src/avatar.ts"],"sourcesContent":["import {\n buildProps,\n definePropType,\n iconPropType,\n isNumber,\n} from '@element-plus/utils'\nimport { componentSizes } from '@element-plus/constants'\nimport type { ExtractPropTypes } from 'vue'\nimport type { ObjectFitProperty } from 'csstype'\n\nexport const avatarProps = buildProps({\n /**\n * @description avatar size.\n */\n size: {\n type: [Number, String],\n values: componentSizes,\n default: '',\n validator: (val: unknown): val is number => isNumber(val),\n },\n /**\n * @description avatar shape.\n */\n shape: {\n type: String,\n values: ['circle', 'square'],\n default: 'circle',\n },\n /**\n * @description representation type to icon, more info on icon component.\n */\n icon: {\n type: iconPropType,\n },\n /**\n * @description the source of the image for an image avatar.\n */\n src: {\n type: String,\n default: '',\n },\n /**\n * @description native attribute `alt` of image avatar.\n */\n alt: String,\n /**\n * @description native attribute srcset of image avatar.\n */\n srcSet: String,\n /**\n * @description set how the image fit its container for an image avatar.\n */\n fit: {\n type: definePropType<ObjectFitProperty>(String),\n default: 'cover',\n },\n} as const)\nexport type AvatarProps = ExtractPropTypes<typeof avatarProps>\n\nexport const avatarEmits = {\n error: (evt: Event) => evt instanceof Event,\n}\nexport type AvatarEmits = typeof avatarEmits\n"],"names":[],"mappings":";;;;;;;AAOY,MAAC,WAAW,GAAG,UAAU,CAAC;AACtC,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,IAAI,MAAM,EAAE,cAAc;AAC1B,IAAI,OAAO,EAAE,EAAE;AACf,IAAI,SAAS,EAAE,CAAC,GAAG,KAAK,QAAQ,CAAC,GAAG,CAAC;AACrC,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC;AAChC,IAAI,OAAO,EAAE,QAAQ;AACrB,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,YAAY;AACtB,GAAG;AACH,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,GAAG,EAAE,MAAM;AACb,EAAE,MAAM,EAAE,MAAM;AAChB,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,WAAW,GAAG;AAC3B,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,KAAK;AACtC;;;;"}
@@ -1,8 +1,8 @@
1
1
  import '../../utils/index.mjs';
2
2
  import Breadcrumb from './src/breadcrumb2.mjs';
3
- import BreadcrumbItem from './src/breadcrumb-item2.mjs';
3
+ import BreadcrumbItem from './src/breadcrumb-item.mjs';
4
4
  export { breadcrumbProps } from './src/breadcrumb.mjs';
5
- export { breadcrumbItemProps } from './src/breadcrumb-item.mjs';
5
+ export { breadcrumbItemProps } from './src/breadcrumb-item2.mjs';
6
6
  export { breadcrumbKey } from './src/constants.mjs';
7
7
  import { withInstall, withNoopInstall } from '../../utils/vue/install.mjs';
8
8
 
@@ -1,16 +1,61 @@
1
- import '../../../utils/index.mjs';
2
- import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
1
+ import { defineComponent, getCurrentInstance, inject, ref, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, renderSlot, createBlock, withCtx, resolveDynamicComponent, toDisplayString } from 'vue';
2
+ import { ElIcon } from '../../icon/index.mjs';
3
+ import '../../../hooks/index.mjs';
4
+ import { breadcrumbKey } from './constants.mjs';
5
+ import { breadcrumbItemProps } from './breadcrumb-item2.mjs';
6
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
7
+ import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
3
8
 
4
- const breadcrumbItemProps = buildProps({
5
- to: {
6
- type: definePropType([String, Object]),
7
- default: ""
8
- },
9
- replace: {
10
- type: Boolean,
11
- default: false
9
+ const __default__ = defineComponent({
10
+ name: "ElBreadcrumbItem"
11
+ });
12
+ const _sfc_main = /* @__PURE__ */ defineComponent({
13
+ ...__default__,
14
+ props: breadcrumbItemProps,
15
+ setup(__props) {
16
+ const props = __props;
17
+ const instance = getCurrentInstance();
18
+ const breadcrumbContext = inject(breadcrumbKey, void 0);
19
+ const ns = useNamespace("breadcrumb");
20
+ const router = instance.appContext.config.globalProperties.$router;
21
+ const link = ref();
22
+ const onClick = () => {
23
+ if (!props.to || !router)
24
+ return;
25
+ props.replace ? router.replace(props.to) : router.push(props.to);
26
+ };
27
+ return (_ctx, _cache) => {
28
+ var _a, _b;
29
+ return openBlock(), createElementBlock("span", {
30
+ class: normalizeClass(unref(ns).e("item"))
31
+ }, [
32
+ createElementVNode("span", {
33
+ ref_key: "link",
34
+ ref: link,
35
+ class: normalizeClass([unref(ns).e("inner"), unref(ns).is("link", !!_ctx.to)]),
36
+ role: "link",
37
+ onClick
38
+ }, [
39
+ renderSlot(_ctx.$slots, "default")
40
+ ], 2),
41
+ ((_a = unref(breadcrumbContext)) == null ? void 0 : _a.separatorIcon) ? (openBlock(), createBlock(unref(ElIcon), {
42
+ key: 0,
43
+ class: normalizeClass(unref(ns).e("separator"))
44
+ }, {
45
+ default: withCtx(() => [
46
+ (openBlock(), createBlock(resolveDynamicComponent(unref(breadcrumbContext).separatorIcon)))
47
+ ]),
48
+ _: 1
49
+ }, 8, ["class"])) : (openBlock(), createElementBlock("span", {
50
+ key: 1,
51
+ class: normalizeClass(unref(ns).e("separator")),
52
+ role: "presentation"
53
+ }, toDisplayString((_b = unref(breadcrumbContext)) == null ? void 0 : _b.separator), 3))
54
+ ], 2);
55
+ };
12
56
  }
13
57
  });
58
+ var BreadcrumbItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "breadcrumb-item.vue"]]);
14
59
 
15
- export { breadcrumbItemProps };
60
+ export { BreadcrumbItem as default };
16
61
  //# sourceMappingURL=breadcrumb-item.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"breadcrumb-item.mjs","sources":["../../../../../../packages/components/breadcrumb/src/breadcrumb-item.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\nimport type { RouteLocationRaw } from 'vue-router'\n\nexport const breadcrumbItemProps = buildProps({\n /**\n * @description target route of the link, same as `to` of `vue-router`\n */\n to: {\n type: definePropType<RouteLocationRaw>([String, Object]),\n default: '',\n },\n /**\n * @description if `true`, the navigation will not leave a history record\n */\n replace: {\n type: Boolean,\n default: false,\n },\n} as const)\nexport type BreadcrumbItemProps = ExtractPropTypes<typeof breadcrumbItemProps>\n"],"names":[],"mappings":";;;AACY,MAAC,mBAAmB,GAAG,UAAU,CAAC;AAC9C,EAAE,EAAE,EAAE;AACN,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,CAAC;;;;"}
1
+ {"version":3,"file":"breadcrumb-item.mjs","sources":["../../../../../../packages/components/breadcrumb/src/breadcrumb-item.vue"],"sourcesContent":["<template>\n <span :class=\"ns.e('item')\">\n <span\n ref=\"link\"\n :class=\"[ns.e('inner'), ns.is('link', !!to)]\"\n role=\"link\"\n @click=\"onClick\"\n >\n <slot />\n </span>\n <el-icon v-if=\"breadcrumbContext?.separatorIcon\" :class=\"ns.e('separator')\">\n <component :is=\"breadcrumbContext.separatorIcon\" />\n </el-icon>\n <span v-else :class=\"ns.e('separator')\" role=\"presentation\">\n {{ breadcrumbContext?.separator }}\n </span>\n </span>\n</template>\n\n<script lang=\"ts\" setup>\nimport { getCurrentInstance, inject, ref } from 'vue'\nimport ElIcon from '@element-plus/components/icon'\nimport { useNamespace } from '@element-plus/hooks'\nimport { breadcrumbKey } from './constants'\nimport { breadcrumbItemProps } from './breadcrumb-item'\n\nimport type { Router } from 'vue-router'\n\ndefineOptions({\n name: 'ElBreadcrumbItem',\n})\n\nconst props = defineProps(breadcrumbItemProps)\n\nconst instance = getCurrentInstance()!\nconst breadcrumbContext = inject(breadcrumbKey, undefined)\nconst ns = useNamespace('breadcrumb')\n\nconst router = instance.appContext.config.globalProperties.$router as Router\n\nconst link = ref<HTMLSpanElement>()\n\nconst onClick = () => {\n if (!props.to || !router) return\n props.replace ? router.replace(props.to) : router.push(props.to)\n}\n</script>\n"],"names":[],"mappings":";;;;;;;;mCA4Bc,CAAA;AAAA,EACZ,IAAM,EAAA,kBAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAIA,IAAA,MAAM,WAAW,kBAAmB,EAAA,CAAA;AACpC,IAAM,MAAA,iBAAA,GAAoB,MAAO,CAAA,aAAA,EAAe,KAAS,CAAA,CAAA,CAAA;AACzD,IAAM,MAAA,EAAA,GAAK,aAAa,YAAY,CAAA,CAAA;AAEpC,IAAA,MAAM,MAAS,GAAA,QAAA,CAAS,UAAW,CAAA,MAAA,CAAO,gBAAiB,CAAA,OAAA,CAAA;AAE3D,IAAA,MAAM,OAAO,GAAqB,EAAA,CAAA;AAElC,IAAA,MAAM,UAAU,MAAM;AACpB,MAAI,IAAA,CAAC,KAAM,CAAA,EAAA,IAAM,CAAC,MAAA;AAAQ,QAAA,OAAA;AAC1B,MAAM,KAAA,CAAA,OAAA,GAAU,OAAO,OAAQ,CAAA,KAAA,CAAM,EAAE,CAAI,GAAA,MAAA,CAAO,IAAK,CAAA,KAAA,CAAM,EAAE,CAAA,CAAA;AAAA,KACjE,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,61 +1,16 @@
1
- import { defineComponent, getCurrentInstance, inject, ref, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, renderSlot, createBlock, withCtx, resolveDynamicComponent, toDisplayString } from 'vue';
2
- import { ElIcon } from '../../icon/index.mjs';
3
- import '../../../hooks/index.mjs';
4
- import { breadcrumbKey } from './constants.mjs';
5
- import { breadcrumbItemProps } from './breadcrumb-item.mjs';
6
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
7
- import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
1
+ import '../../../utils/index.mjs';
2
+ import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
8
3
 
9
- const __default__ = defineComponent({
10
- name: "ElBreadcrumbItem"
11
- });
12
- const _sfc_main = /* @__PURE__ */ defineComponent({
13
- ...__default__,
14
- props: breadcrumbItemProps,
15
- setup(__props) {
16
- const props = __props;
17
- const instance = getCurrentInstance();
18
- const breadcrumbContext = inject(breadcrumbKey, void 0);
19
- const ns = useNamespace("breadcrumb");
20
- const router = instance.appContext.config.globalProperties.$router;
21
- const link = ref();
22
- const onClick = () => {
23
- if (!props.to || !router)
24
- return;
25
- props.replace ? router.replace(props.to) : router.push(props.to);
26
- };
27
- return (_ctx, _cache) => {
28
- var _a, _b;
29
- return openBlock(), createElementBlock("span", {
30
- class: normalizeClass(unref(ns).e("item"))
31
- }, [
32
- createElementVNode("span", {
33
- ref_key: "link",
34
- ref: link,
35
- class: normalizeClass([unref(ns).e("inner"), unref(ns).is("link", !!_ctx.to)]),
36
- role: "link",
37
- onClick
38
- }, [
39
- renderSlot(_ctx.$slots, "default")
40
- ], 2),
41
- ((_a = unref(breadcrumbContext)) == null ? void 0 : _a.separatorIcon) ? (openBlock(), createBlock(unref(ElIcon), {
42
- key: 0,
43
- class: normalizeClass(unref(ns).e("separator"))
44
- }, {
45
- default: withCtx(() => [
46
- (openBlock(), createBlock(resolveDynamicComponent(unref(breadcrumbContext).separatorIcon)))
47
- ]),
48
- _: 1
49
- }, 8, ["class"])) : (openBlock(), createElementBlock("span", {
50
- key: 1,
51
- class: normalizeClass(unref(ns).e("separator")),
52
- role: "presentation"
53
- }, toDisplayString((_b = unref(breadcrumbContext)) == null ? void 0 : _b.separator), 3))
54
- ], 2);
55
- };
4
+ const breadcrumbItemProps = buildProps({
5
+ to: {
6
+ type: definePropType([String, Object]),
7
+ default: ""
8
+ },
9
+ replace: {
10
+ type: Boolean,
11
+ default: false
56
12
  }
57
13
  });
58
- var BreadcrumbItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "breadcrumb-item.vue"]]);
59
14
 
60
- export { BreadcrumbItem as default };
15
+ export { breadcrumbItemProps };
61
16
  //# sourceMappingURL=breadcrumb-item2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"breadcrumb-item2.mjs","sources":["../../../../../../packages/components/breadcrumb/src/breadcrumb-item.vue"],"sourcesContent":["<template>\n <span :class=\"ns.e('item')\">\n <span\n ref=\"link\"\n :class=\"[ns.e('inner'), ns.is('link', !!to)]\"\n role=\"link\"\n @click=\"onClick\"\n >\n <slot />\n </span>\n <el-icon v-if=\"breadcrumbContext?.separatorIcon\" :class=\"ns.e('separator')\">\n <component :is=\"breadcrumbContext.separatorIcon\" />\n </el-icon>\n <span v-else :class=\"ns.e('separator')\" role=\"presentation\">\n {{ breadcrumbContext?.separator }}\n </span>\n </span>\n</template>\n\n<script lang=\"ts\" setup>\nimport { getCurrentInstance, inject, ref } from 'vue'\nimport ElIcon from '@element-plus/components/icon'\nimport { useNamespace } from '@element-plus/hooks'\nimport { breadcrumbKey } from './constants'\nimport { breadcrumbItemProps } from './breadcrumb-item'\n\nimport type { Router } from 'vue-router'\n\ndefineOptions({\n name: 'ElBreadcrumbItem',\n})\n\nconst props = defineProps(breadcrumbItemProps)\n\nconst instance = getCurrentInstance()!\nconst breadcrumbContext = inject(breadcrumbKey, undefined)\nconst ns = useNamespace('breadcrumb')\n\nconst router = instance.appContext.config.globalProperties.$router as Router\n\nconst link = ref<HTMLSpanElement>()\n\nconst onClick = () => {\n if (!props.to || !router) return\n props.replace ? router.replace(props.to) : router.push(props.to)\n}\n</script>\n"],"names":[],"mappings":";;;;;;;;mCA4Bc,CAAA;AAAA,EACZ,IAAM,EAAA,kBAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAIA,IAAA,MAAM,WAAW,kBAAmB,EAAA,CAAA;AACpC,IAAM,MAAA,iBAAA,GAAoB,MAAO,CAAA,aAAA,EAAe,KAAS,CAAA,CAAA,CAAA;AACzD,IAAM,MAAA,EAAA,GAAK,aAAa,YAAY,CAAA,CAAA;AAEpC,IAAA,MAAM,MAAS,GAAA,QAAA,CAAS,UAAW,CAAA,MAAA,CAAO,gBAAiB,CAAA,OAAA,CAAA;AAE3D,IAAA,MAAM,OAAO,GAAqB,EAAA,CAAA;AAElC,IAAA,MAAM,UAAU,MAAM;AACpB,MAAI,IAAA,CAAC,KAAM,CAAA,EAAA,IAAM,CAAC,MAAA;AAAQ,QAAA,OAAA;AAC1B,MAAM,KAAA,CAAA,OAAA,GAAU,OAAO,OAAQ,CAAA,KAAA,CAAM,EAAE,CAAI,GAAA,MAAA,CAAO,IAAK,CAAA,KAAA,CAAM,EAAE,CAAA,CAAA;AAAA,KACjE,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"breadcrumb-item2.mjs","sources":["../../../../../../packages/components/breadcrumb/src/breadcrumb-item.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\nimport type { RouteLocationRaw } from 'vue-router'\n\nexport const breadcrumbItemProps = buildProps({\n /**\n * @description target route of the link, same as `to` of `vue-router`\n */\n to: {\n type: definePropType<RouteLocationRaw>([String, Object]),\n default: '',\n },\n /**\n * @description if `true`, the navigation will not leave a history record\n */\n replace: {\n type: Boolean,\n default: false,\n },\n} as const)\nexport type BreadcrumbItemProps = ExtractPropTypes<typeof breadcrumbItemProps>\n"],"names":[],"mappings":";;;AACY,MAAC,mBAAmB,GAAG,UAAU,CAAC;AAC9C,EAAE,EAAE,EAAE;AACN,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,CAAC;;;;"}
@@ -13,7 +13,7 @@ export declare const ElButton: import("@element-plus/nightly/es/utils").SFCWithI
13
13
  readonly validator: ((val: unknown) => boolean) | undefined;
14
14
  __epPropKey: true;
15
15
  };
16
- readonly nativeType: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "reset" | "submit" | "button", unknown, "button", boolean>;
16
+ readonly nativeType: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "button" | "reset" | "submit", unknown, "button", boolean>;
17
17
  readonly loading: BooleanConstructor;
18
18
  readonly loadingIcon: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown, () => any, boolean>;
19
19
  readonly plain: BooleanConstructor;
@@ -43,7 +43,7 @@ export declare const ElButton: import("@element-plus/nightly/es/utils").SFCWithI
43
43
  readonly validator: ((val: unknown) => boolean) | undefined;
44
44
  __epPropKey: true;
45
45
  };
46
- readonly nativeType: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "reset" | "submit" | "button", unknown, "button", boolean>;
46
+ readonly nativeType: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "button" | "reset" | "submit", unknown, "button", boolean>;
47
47
  readonly loading: BooleanConstructor;
48
48
  readonly loadingIcon: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown, () => any, boolean>;
49
49
  readonly plain: BooleanConstructor;
@@ -88,7 +88,7 @@ export declare const ElButton: import("@element-plus/nightly/es/utils").SFCWithI
88
88
  ariaDisabled: boolean;
89
89
  disabled: boolean;
90
90
  autofocus: boolean;
91
- type: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "reset" | "submit" | "button", unknown>;
91
+ type: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "button" | "reset" | "submit", unknown>;
92
92
  } | {
93
93
  ariaDisabled?: undefined;
94
94
  disabled?: undefined;
@@ -177,7 +177,7 @@ export declare const ElButton: import("@element-plus/nightly/es/utils").SFCWithI
177
177
  readonly validator: ((val: unknown) => boolean) | undefined;
178
178
  __epPropKey: true;
179
179
  };
180
- readonly nativeType: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "reset" | "submit" | "button", unknown, "button", boolean>;
180
+ readonly nativeType: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "button" | "reset" | "submit", unknown, "button", boolean>;
181
181
  readonly loading: BooleanConstructor;
182
182
  readonly loadingIcon: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown, () => any, boolean>;
183
183
  readonly plain: BooleanConstructor;
@@ -203,7 +203,7 @@ export declare const ElButton: import("@element-plus/nightly/es/utils").SFCWithI
203
203
  readonly round: boolean;
204
204
  readonly circle: boolean;
205
205
  readonly tag: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>;
206
- readonly nativeType: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "reset" | "submit" | "button", unknown>;
206
+ readonly nativeType: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "button" | "reset" | "submit", unknown>;
207
207
  readonly loadingIcon: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>;
208
208
  readonly autoInsertSpace: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
209
209
  readonly loading: boolean;
@@ -16,7 +16,7 @@ export declare const buttonProps: {
16
16
  readonly validator: ((val: unknown) => boolean) | undefined;
17
17
  __epPropKey: true;
18
18
  };
19
- readonly nativeType: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "reset" | "submit" | "button", unknown, "button", boolean>;
19
+ readonly nativeType: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "button" | "reset" | "submit", unknown, "button", boolean>;
20
20
  readonly loading: BooleanConstructor;
21
21
  readonly loadingIcon: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => (string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown, () => any, boolean>;
22
22
  readonly plain: BooleanConstructor;
@@ -13,7 +13,7 @@ declare const _default: import("vue").DefineComponent<{
13
13
  readonly validator: ((val: unknown) => boolean) | undefined;
14
14
  __epPropKey: true;
15
15
  };
16
- readonly nativeType: import("../../../utils").EpPropFinalized<StringConstructor, "reset" | "submit" | "button", unknown, "button", boolean>;
16
+ readonly nativeType: import("../../../utils").EpPropFinalized<StringConstructor, "button" | "reset" | "submit", unknown, "button", boolean>;
17
17
  readonly loading: BooleanConstructor;
18
18
  readonly loadingIcon: import("../../../utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown, () => any, boolean>;
19
19
  readonly plain: BooleanConstructor;
@@ -43,7 +43,7 @@ declare const _default: import("vue").DefineComponent<{
43
43
  readonly validator: ((val: unknown) => boolean) | undefined;
44
44
  __epPropKey: true;
45
45
  };
46
- readonly nativeType: import("../../../utils").EpPropFinalized<StringConstructor, "reset" | "submit" | "button", unknown, "button", boolean>;
46
+ readonly nativeType: import("../../../utils").EpPropFinalized<StringConstructor, "button" | "reset" | "submit", unknown, "button", boolean>;
47
47
  readonly loading: BooleanConstructor;
48
48
  readonly loadingIcon: import("../../../utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown, () => any, boolean>;
49
49
  readonly plain: BooleanConstructor;
@@ -88,7 +88,7 @@ declare const _default: import("vue").DefineComponent<{
88
88
  ariaDisabled: boolean;
89
89
  disabled: boolean;
90
90
  autofocus: boolean;
91
- type: import("../../../utils").EpPropMergeType<StringConstructor, "reset" | "submit" | "button", unknown>;
91
+ type: import("../../../utils").EpPropMergeType<StringConstructor, "button" | "reset" | "submit", unknown>;
92
92
  } | {
93
93
  ariaDisabled?: undefined;
94
94
  disabled?: undefined;
@@ -177,7 +177,7 @@ declare const _default: import("vue").DefineComponent<{
177
177
  readonly validator: ((val: unknown) => boolean) | undefined;
178
178
  __epPropKey: true;
179
179
  };
180
- readonly nativeType: import("../../../utils").EpPropFinalized<StringConstructor, "reset" | "submit" | "button", unknown, "button", boolean>;
180
+ readonly nativeType: import("../../../utils").EpPropFinalized<StringConstructor, "button" | "reset" | "submit", unknown, "button", boolean>;
181
181
  readonly loading: BooleanConstructor;
182
182
  readonly loadingIcon: import("../../../utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown, () => any, boolean>;
183
183
  readonly plain: BooleanConstructor;
@@ -203,7 +203,7 @@ declare const _default: import("vue").DefineComponent<{
203
203
  readonly round: boolean;
204
204
  readonly circle: boolean;
205
205
  readonly tag: import("../../../utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>;
206
- readonly nativeType: import("../../../utils").EpPropMergeType<StringConstructor, "reset" | "submit" | "button", unknown>;
206
+ readonly nativeType: import("../../../utils").EpPropMergeType<StringConstructor, "button" | "reset" | "submit", unknown>;
207
207
  readonly loadingIcon: import("../../../utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>;
208
208
  readonly autoInsertSpace: import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
209
209
  readonly loading: boolean;
@@ -9,7 +9,7 @@ export declare const useButton: (props: ButtonProps, emit: SetupContext<ButtonEm
9
9
  ariaDisabled: boolean;
10
10
  disabled: boolean;
11
11
  autofocus: boolean;
12
- type: import("../../../utils").EpPropMergeType<StringConstructor, "reset" | "submit" | "button", unknown>;
12
+ type: import("../../../utils").EpPropMergeType<StringConstructor, "button" | "reset" | "submit", unknown>;
13
13
  } | {
14
14
  ariaDisabled?: undefined;
15
15
  disabled?: undefined;
@@ -72,7 +72,7 @@ export declare const ElCalendar: import("@element-plus/nightly/es/utils").SFCWit
72
72
  readonly validator: ((val: unknown) => boolean) | undefined;
73
73
  __epPropKey: true;
74
74
  };
75
- readonly nativeType: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "reset" | "submit" | "button", unknown, "button", boolean>;
75
+ readonly nativeType: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "button" | "reset" | "submit", unknown, "button", boolean>;
76
76
  readonly loading: BooleanConstructor;
77
77
  readonly loadingIcon: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown, () => any, boolean>;
78
78
  readonly plain: BooleanConstructor;
@@ -102,7 +102,7 @@ export declare const ElCalendar: import("@element-plus/nightly/es/utils").SFCWit
102
102
  readonly validator: ((val: unknown) => boolean) | undefined;
103
103
  __epPropKey: true;
104
104
  };
105
- readonly nativeType: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "reset" | "submit" | "button", unknown, "button", boolean>;
105
+ readonly nativeType: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "button" | "reset" | "submit", unknown, "button", boolean>;
106
106
  readonly loading: BooleanConstructor;
107
107
  readonly loadingIcon: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown, () => any, boolean>;
108
108
  readonly plain: BooleanConstructor;
@@ -147,7 +147,7 @@ export declare const ElCalendar: import("@element-plus/nightly/es/utils").SFCWit
147
147
  ariaDisabled: boolean;
148
148
  disabled: boolean;
149
149
  autofocus: boolean;
150
- type: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "reset" | "submit" | "button", unknown>;
150
+ type: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "button" | "reset" | "submit", unknown>;
151
151
  } | {
152
152
  ariaDisabled?: undefined;
153
153
  disabled?: undefined;
@@ -236,7 +236,7 @@ export declare const ElCalendar: import("@element-plus/nightly/es/utils").SFCWit
236
236
  readonly validator: ((val: unknown) => boolean) | undefined;
237
237
  __epPropKey: true;
238
238
  };
239
- readonly nativeType: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "reset" | "submit" | "button", unknown, "button", boolean>;
239
+ readonly nativeType: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "button" | "reset" | "submit", unknown, "button", boolean>;
240
240
  readonly loading: BooleanConstructor;
241
241
  readonly loadingIcon: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown, () => any, boolean>;
242
242
  readonly plain: BooleanConstructor;
@@ -262,7 +262,7 @@ export declare const ElCalendar: import("@element-plus/nightly/es/utils").SFCWit
262
262
  readonly round: boolean;
263
263
  readonly circle: boolean;
264
264
  readonly tag: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>;
265
- readonly nativeType: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "reset" | "submit" | "button", unknown>;
265
+ readonly nativeType: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "button" | "reset" | "submit", unknown>;
266
266
  readonly loadingIcon: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>;
267
267
  readonly autoInsertSpace: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
268
268
  readonly loading: boolean;
@@ -72,7 +72,7 @@ declare const _default: import("vue").DefineComponent<{
72
72
  readonly validator: ((val: unknown) => boolean) | undefined;
73
73
  __epPropKey: true;
74
74
  };
75
- readonly nativeType: import("../../../utils").EpPropFinalized<StringConstructor, "reset" | "submit" | "button", unknown, "button", boolean>;
75
+ readonly nativeType: import("../../../utils").EpPropFinalized<StringConstructor, "button" | "reset" | "submit", unknown, "button", boolean>;
76
76
  readonly loading: BooleanConstructor;
77
77
  readonly loadingIcon: import("../../../utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown, () => any, boolean>;
78
78
  readonly plain: BooleanConstructor;
@@ -102,7 +102,7 @@ declare const _default: import("vue").DefineComponent<{
102
102
  readonly validator: ((val: unknown) => boolean) | undefined;
103
103
  __epPropKey: true;
104
104
  };
105
- readonly nativeType: import("../../../utils").EpPropFinalized<StringConstructor, "reset" | "submit" | "button", unknown, "button", boolean>;
105
+ readonly nativeType: import("../../../utils").EpPropFinalized<StringConstructor, "button" | "reset" | "submit", unknown, "button", boolean>;
106
106
  readonly loading: BooleanConstructor;
107
107
  readonly loadingIcon: import("../../../utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown, () => any, boolean>;
108
108
  readonly plain: BooleanConstructor;
@@ -147,7 +147,7 @@ declare const _default: import("vue").DefineComponent<{
147
147
  ariaDisabled: boolean;
148
148
  disabled: boolean;
149
149
  autofocus: boolean;
150
- type: import("../../../utils").EpPropMergeType<StringConstructor, "reset" | "submit" | "button", unknown>;
150
+ type: import("../../../utils").EpPropMergeType<StringConstructor, "button" | "reset" | "submit", unknown>;
151
151
  } | {
152
152
  ariaDisabled?: undefined;
153
153
  disabled?: undefined;
@@ -236,7 +236,7 @@ declare const _default: import("vue").DefineComponent<{
236
236
  readonly validator: ((val: unknown) => boolean) | undefined;
237
237
  __epPropKey: true;
238
238
  };
239
- readonly nativeType: import("../../../utils").EpPropFinalized<StringConstructor, "reset" | "submit" | "button", unknown, "button", boolean>;
239
+ readonly nativeType: import("../../../utils").EpPropFinalized<StringConstructor, "button" | "reset" | "submit", unknown, "button", boolean>;
240
240
  readonly loading: BooleanConstructor;
241
241
  readonly loadingIcon: import("../../../utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown, () => any, boolean>;
242
242
  readonly plain: BooleanConstructor;
@@ -262,7 +262,7 @@ declare const _default: import("vue").DefineComponent<{
262
262
  readonly round: boolean;
263
263
  readonly circle: boolean;
264
264
  readonly tag: import("../../../utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>;
265
- readonly nativeType: import("../../../utils").EpPropMergeType<StringConstructor, "reset" | "submit" | "button", unknown>;
265
+ readonly nativeType: import("../../../utils").EpPropMergeType<StringConstructor, "button" | "reset" | "submit", unknown>;
266
266
  readonly loadingIcon: import("../../../utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>;
267
267
  readonly autoInsertSpace: import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
268
268
  readonly loading: boolean;
@@ -1,6 +1,6 @@
1
1
  import '../../utils/index.mjs';
2
- import Card from './src/card2.mjs';
3
- export { cardProps } from './src/card.mjs';
2
+ import Card from './src/card.mjs';
3
+ export { cardProps } from './src/card2.mjs';
4
4
  import { withInstall } from '../../utils/vue/install.mjs';
5
5
 
6
6
  const ElCard = withInstall(Card);
@@ -1,26 +1,48 @@
1
- import '../../../utils/index.mjs';
2
- 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 '../../../hooks/index.mjs';
3
+ import { cardProps } from './card2.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 cardProps = buildProps({
5
- header: {
6
- type: String,
7
- default: ""
8
- },
9
- footer: {
10
- type: String,
11
- default: ""
12
- },
13
- bodyStyle: {
14
- type: definePropType([String, Object, Array]),
15
- default: ""
16
- },
17
- bodyClass: String,
18
- shadow: {
19
- type: String,
20
- values: ["always", "hover", "never"],
21
- default: "always"
7
+ const __default__ = defineComponent({
8
+ name: "ElCard"
9
+ });
10
+ const _sfc_main = /* @__PURE__ */ defineComponent({
11
+ ...__default__,
12
+ props: cardProps,
13
+ setup(__props) {
14
+ const ns = useNamespace("card");
15
+ return (_ctx, _cache) => {
16
+ return openBlock(), createElementBlock("div", {
17
+ class: normalizeClass([unref(ns).b(), unref(ns).is(`${_ctx.shadow}-shadow`)])
18
+ }, [
19
+ _ctx.$slots.header || _ctx.header ? (openBlock(), createElementBlock("div", {
20
+ key: 0,
21
+ class: normalizeClass(unref(ns).e("header"))
22
+ }, [
23
+ renderSlot(_ctx.$slots, "header", {}, () => [
24
+ createTextVNode(toDisplayString(_ctx.header), 1)
25
+ ])
26
+ ], 2)) : createCommentVNode("v-if", true),
27
+ createElementVNode("div", {
28
+ class: normalizeClass([unref(ns).e("body"), _ctx.bodyClass]),
29
+ style: normalizeStyle(_ctx.bodyStyle)
30
+ }, [
31
+ renderSlot(_ctx.$slots, "default")
32
+ ], 6),
33
+ _ctx.$slots.footer || _ctx.footer ? (openBlock(), createElementBlock("div", {
34
+ key: 1,
35
+ class: normalizeClass(unref(ns).e("footer"))
36
+ }, [
37
+ renderSlot(_ctx.$slots, "footer", {}, () => [
38
+ createTextVNode(toDisplayString(_ctx.footer), 1)
39
+ ])
40
+ ], 2)) : createCommentVNode("v-if", true)
41
+ ], 2);
42
+ };
22
43
  }
23
44
  });
45
+ var Card = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "card.vue"]]);
24
46
 
25
- export { cardProps };
47
+ export { Card as default };
26
48
  //# 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'\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":"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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}