@element-plus/nightly 0.0.20260131 → 0.0.20260202

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 (514) hide show
  1. package/dist/index.full.js +16 -8
  2. package/dist/index.full.min.js +15 -15
  3. package/dist/index.full.min.js.map +1 -1
  4. package/dist/index.full.min.mjs +15 -15
  5. package/dist/index.full.min.mjs.map +1 -1
  6. package/dist/index.full.mjs +16 -8
  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/alert/src/alert.mjs.map +1 -1
  276. package/es/components/autocomplete/src/autocomplete.vue.d.ts +1 -1
  277. package/es/components/avatar/src/avatar.d.ts +4 -3
  278. package/es/components/avatar/src/avatar.mjs.map +1 -1
  279. package/es/components/breadcrumb/src/breadcrumb.d.ts +4 -3
  280. package/es/components/breadcrumb/src/breadcrumb.mjs.map +1 -1
  281. package/es/components/button/src/button.d.ts +3 -2
  282. package/es/components/button/src/button.mjs.map +1 -1
  283. package/es/components/button/src/button.vue.d.ts +1 -1
  284. package/es/components/calendar/src/calendar.mjs.map +1 -1
  285. package/es/components/calendar/src/date-table.mjs.map +1 -1
  286. package/es/components/calendar/src/select-controller.mjs.map +1 -1
  287. package/es/components/card/src/card.d.ts +3 -0
  288. package/es/components/card/src/card.mjs.map +1 -1
  289. package/es/components/carousel/src/use-carousel.mjs +1 -1
  290. package/es/components/carousel/src/use-carousel.mjs.map +1 -1
  291. package/es/components/cascader/src/cascader.d.ts +4 -3
  292. package/es/components/cascader/src/cascader.mjs.map +1 -1
  293. package/es/components/cascader/src/cascader.vue.d.ts +1 -1
  294. package/es/components/checkbox/src/checkbox-group.mjs.map +1 -1
  295. package/es/components/checkbox/src/checkbox.d.ts +1 -1
  296. package/es/components/checkbox/src/checkbox.mjs.map +1 -1
  297. package/es/components/collapse/src/collapse-item.d.ts +4 -3
  298. package/es/components/collapse/src/collapse-item.mjs.map +1 -1
  299. package/es/components/collapse/src/collapse-item.vue.d.ts +1 -1
  300. package/es/components/color-picker-panel/src/props/sv-panel.mjs.map +1 -1
  301. package/es/components/countdown/src/countdown.mjs.map +1 -1
  302. package/es/components/descriptions/src/descriptions-row.d.ts +1 -1
  303. package/es/components/descriptions/src/descriptions-row.mjs.map +1 -1
  304. package/es/components/dialog/src/dialog-content.d.ts +3 -3
  305. package/es/components/dialog/src/dialog-content.mjs.map +1 -1
  306. package/es/components/divider/src/divider.d.ts +6 -0
  307. package/es/components/divider/src/divider.mjs.map +1 -1
  308. package/es/components/drawer/src/drawer.vue.d.ts +2 -0
  309. package/es/components/drawer/src/drawer.vue2.mjs +2 -0
  310. package/es/components/drawer/src/drawer.vue2.mjs.map +1 -1
  311. package/es/components/input/src/input.d.ts +8 -7
  312. package/es/components/input/src/input.mjs.map +1 -1
  313. package/es/components/input/src/input.vue.d.ts +23 -23
  314. package/es/components/input/src/input.vue2.mjs +1 -3
  315. package/es/components/input/src/input.vue2.mjs.map +1 -1
  316. package/es/components/input-number/src/input-number.d.ts +3 -0
  317. package/es/components/input-number/src/input-number.mjs.map +1 -1
  318. package/es/components/input-tag/src/input-tag.d.ts +4 -3
  319. package/es/components/input-tag/src/input-tag.mjs.map +1 -1
  320. package/es/components/input-tag/src/input-tag.vue.d.ts +1 -1
  321. package/es/components/link/src/link.d.ts +4 -3
  322. package/es/components/link/src/link.mjs.map +1 -1
  323. package/es/components/mention/src/mention.mjs.map +1 -1
  324. package/es/components/mention/src/mention.vue.d.ts +1 -1
  325. package/es/components/message/src/message.d.ts +4 -4
  326. package/es/components/message/src/message.mjs.map +1 -1
  327. package/es/components/message/src/message.vue.d.ts +1 -1
  328. package/es/components/notification/src/notification.d.ts +6 -5
  329. package/es/components/notification/src/notification.mjs.map +1 -1
  330. package/es/components/notification/src/notification.vue.d.ts +1 -1
  331. package/es/components/page-header/src/page-header.d.ts +10 -3
  332. package/es/components/page-header/src/page-header.mjs.map +1 -1
  333. package/es/components/page-header/src/page-header.vue.d.ts +1 -1
  334. package/es/components/page-header/src/page-header.vue2.mjs.map +1 -1
  335. package/es/components/popconfirm/src/popconfirm.d.ts +4 -3
  336. package/es/components/popconfirm/src/popconfirm.mjs.map +1 -1
  337. package/es/components/popconfirm/src/popconfirm.vue.d.ts +1 -1
  338. package/es/components/popper/src/arrow.mjs.map +1 -1
  339. package/es/components/popper/src/content.mjs.map +1 -1
  340. package/es/components/radio/src/radio-button.vue.d.ts +10 -10
  341. package/es/components/radio/src/radio-button.vue2.mjs.map +1 -1
  342. package/es/components/radio/src/radio-group.vue.d.ts +18 -18
  343. package/es/components/radio/src/radio-group.vue2.mjs.map +1 -1
  344. package/es/components/radio/src/radio.vue.d.ts +12 -12
  345. package/es/components/radio/src/radio.vue2.mjs.map +1 -1
  346. package/es/components/rate/src/rate.d.ts +4 -3
  347. package/es/components/rate/src/rate.mjs.map +1 -1
  348. package/es/components/rate/src/rate.vue.d.ts +3 -4
  349. package/es/components/result/src/result.d.ts +6 -0
  350. package/es/components/result/src/result.mjs.map +1 -1
  351. package/es/components/scrollbar/src/bar.d.ts +3 -0
  352. package/es/components/scrollbar/src/bar.mjs.map +1 -1
  353. package/es/components/scrollbar/src/scrollbar.d.ts +3 -0
  354. package/es/components/scrollbar/src/scrollbar.mjs.map +1 -1
  355. package/es/components/scrollbar/src/thumb.d.ts +3 -0
  356. package/es/components/scrollbar/src/thumb.mjs.map +1 -1
  357. package/es/components/skeleton/src/skeleton-item.mjs.map +1 -1
  358. package/es/components/skeleton/src/skeleton.mjs.map +1 -1
  359. package/es/components/steps/src/item.d.ts +7 -3
  360. package/es/components/steps/src/item.mjs.map +1 -1
  361. package/es/components/steps/src/item.vue.d.ts +1 -1
  362. package/es/components/switch/src/switch.d.ts +10 -9
  363. package/es/components/switch/src/switch.mjs.map +1 -1
  364. package/es/components/tabs/src/tab-bar.mjs.map +1 -1
  365. package/es/components/tabs/src/tab-pane.mjs.map +1 -1
  366. package/es/components/time-select/src/time-select.d.ts +6 -2
  367. package/es/components/time-select/src/time-select.mjs.map +1 -1
  368. package/es/components/time-select/src/time-select.vue.d.ts +2 -2
  369. package/es/components/time-select/src/time-select.vue2.mjs.map +1 -1
  370. package/es/components/timeline/src/timeline-item.d.ts +4 -3
  371. package/es/components/timeline/src/timeline-item.mjs.map +1 -1
  372. package/es/components/tooltip/src/tooltip.d.ts +3 -0
  373. package/es/components/tooltip/src/tooltip.mjs.map +1 -1
  374. package/es/components/tour/src/step.d.ts +4 -3
  375. package/es/components/tour/src/step.mjs.map +1 -1
  376. package/es/components/tour/src/tour.d.ts +4 -3
  377. package/es/components/tour/src/tour.mjs.map +1 -1
  378. package/es/components/tree-v2/src/types.d.ts +1 -1
  379. package/es/hooks/use-aria/index.d.ts +3 -0
  380. package/es/hooks/use-aria/index.mjs.map +1 -1
  381. package/es/utils/dom/aria.d.ts +1 -0
  382. package/es/utils/dom/aria.mjs +5 -1
  383. package/es/utils/dom/aria.mjs.map +1 -1
  384. package/es/utils/dom/index.mjs +1 -1
  385. package/es/utils/dom/scroll.mjs +6 -1
  386. package/es/utils/dom/scroll.mjs.map +1 -1
  387. package/es/utils/dom/style.mjs +2 -1
  388. package/es/utils/dom/style.mjs.map +1 -1
  389. package/es/utils/index.mjs +1 -1
  390. package/es/version.d.ts +1 -1
  391. package/es/version.mjs +1 -1
  392. package/es/version.mjs.map +1 -1
  393. package/lib/components/alert/src/alert.js.map +1 -1
  394. package/lib/components/autocomplete/src/autocomplete.vue.d.ts +1 -1
  395. package/lib/components/avatar/src/avatar.d.ts +4 -3
  396. package/lib/components/avatar/src/avatar.js.map +1 -1
  397. package/lib/components/breadcrumb/src/breadcrumb.d.ts +4 -3
  398. package/lib/components/breadcrumb/src/breadcrumb.js.map +1 -1
  399. package/lib/components/button/src/button.d.ts +3 -2
  400. package/lib/components/button/src/button.js.map +1 -1
  401. package/lib/components/button/src/button.vue.d.ts +1 -1
  402. package/lib/components/calendar/src/calendar.js.map +1 -1
  403. package/lib/components/calendar/src/date-table.js.map +1 -1
  404. package/lib/components/calendar/src/select-controller.js.map +1 -1
  405. package/lib/components/card/src/card.d.ts +3 -0
  406. package/lib/components/card/src/card.js.map +1 -1
  407. package/lib/components/carousel/src/use-carousel.js +1 -1
  408. package/lib/components/carousel/src/use-carousel.js.map +1 -1
  409. package/lib/components/cascader/src/cascader.d.ts +4 -3
  410. package/lib/components/cascader/src/cascader.js.map +1 -1
  411. package/lib/components/cascader/src/cascader.vue.d.ts +1 -1
  412. package/lib/components/checkbox/src/checkbox-group.js.map +1 -1
  413. package/lib/components/checkbox/src/checkbox.d.ts +1 -1
  414. package/lib/components/checkbox/src/checkbox.js.map +1 -1
  415. package/lib/components/collapse/src/collapse-item.d.ts +4 -3
  416. package/lib/components/collapse/src/collapse-item.js.map +1 -1
  417. package/lib/components/collapse/src/collapse-item.vue.d.ts +1 -1
  418. package/lib/components/color-picker-panel/src/props/sv-panel.js.map +1 -1
  419. package/lib/components/countdown/src/countdown.js.map +1 -1
  420. package/lib/components/descriptions/src/descriptions-row.d.ts +1 -1
  421. package/lib/components/descriptions/src/descriptions-row.js.map +1 -1
  422. package/lib/components/dialog/src/dialog-content.d.ts +3 -3
  423. package/lib/components/dialog/src/dialog-content.js.map +1 -1
  424. package/lib/components/divider/src/divider.d.ts +6 -0
  425. package/lib/components/divider/src/divider.js.map +1 -1
  426. package/lib/components/drawer/src/drawer.vue.d.ts +2 -0
  427. package/lib/components/drawer/src/drawer.vue2.js +2 -0
  428. package/lib/components/drawer/src/drawer.vue2.js.map +1 -1
  429. package/lib/components/input/src/input.d.ts +8 -7
  430. package/lib/components/input/src/input.js.map +1 -1
  431. package/lib/components/input/src/input.vue.d.ts +23 -23
  432. package/lib/components/input/src/input.vue2.js +1 -3
  433. package/lib/components/input/src/input.vue2.js.map +1 -1
  434. package/lib/components/input-number/src/input-number.d.ts +3 -0
  435. package/lib/components/input-number/src/input-number.js.map +1 -1
  436. package/lib/components/input-tag/src/input-tag.d.ts +4 -3
  437. package/lib/components/input-tag/src/input-tag.js.map +1 -1
  438. package/lib/components/input-tag/src/input-tag.vue.d.ts +1 -1
  439. package/lib/components/link/src/link.d.ts +4 -3
  440. package/lib/components/link/src/link.js.map +1 -1
  441. package/lib/components/mention/src/mention.js.map +1 -1
  442. package/lib/components/mention/src/mention.vue.d.ts +1 -1
  443. package/lib/components/message/src/message.d.ts +4 -4
  444. package/lib/components/message/src/message.js.map +1 -1
  445. package/lib/components/message/src/message.vue.d.ts +1 -1
  446. package/lib/components/notification/src/notification.d.ts +6 -5
  447. package/lib/components/notification/src/notification.js.map +1 -1
  448. package/lib/components/notification/src/notification.vue.d.ts +1 -1
  449. package/lib/components/page-header/src/page-header.d.ts +10 -3
  450. package/lib/components/page-header/src/page-header.js.map +1 -1
  451. package/lib/components/page-header/src/page-header.vue.d.ts +1 -1
  452. package/lib/components/page-header/src/page-header.vue2.js.map +1 -1
  453. package/lib/components/popconfirm/src/popconfirm.d.ts +4 -3
  454. package/lib/components/popconfirm/src/popconfirm.js.map +1 -1
  455. package/lib/components/popconfirm/src/popconfirm.vue.d.ts +1 -1
  456. package/lib/components/popper/src/arrow.js.map +1 -1
  457. package/lib/components/popper/src/content.js.map +1 -1
  458. package/lib/components/radio/src/radio-button.vue.d.ts +10 -10
  459. package/lib/components/radio/src/radio-button.vue2.js.map +1 -1
  460. package/lib/components/radio/src/radio-group.vue.d.ts +18 -18
  461. package/lib/components/radio/src/radio-group.vue2.js.map +1 -1
  462. package/lib/components/radio/src/radio.vue.d.ts +12 -12
  463. package/lib/components/radio/src/radio.vue2.js.map +1 -1
  464. package/lib/components/rate/src/rate.d.ts +4 -3
  465. package/lib/components/rate/src/rate.js.map +1 -1
  466. package/lib/components/rate/src/rate.vue.d.ts +3 -4
  467. package/lib/components/result/src/result.d.ts +6 -0
  468. package/lib/components/result/src/result.js.map +1 -1
  469. package/lib/components/scrollbar/src/bar.d.ts +3 -0
  470. package/lib/components/scrollbar/src/bar.js.map +1 -1
  471. package/lib/components/scrollbar/src/scrollbar.d.ts +3 -0
  472. package/lib/components/scrollbar/src/scrollbar.js.map +1 -1
  473. package/lib/components/scrollbar/src/thumb.d.ts +3 -0
  474. package/lib/components/scrollbar/src/thumb.js.map +1 -1
  475. package/lib/components/skeleton/src/skeleton-item.js.map +1 -1
  476. package/lib/components/skeleton/src/skeleton.js.map +1 -1
  477. package/lib/components/steps/src/item.d.ts +7 -3
  478. package/lib/components/steps/src/item.js.map +1 -1
  479. package/lib/components/steps/src/item.vue.d.ts +1 -1
  480. package/lib/components/switch/src/switch.d.ts +10 -9
  481. package/lib/components/switch/src/switch.js.map +1 -1
  482. package/lib/components/tabs/src/tab-bar.js.map +1 -1
  483. package/lib/components/tabs/src/tab-pane.js.map +1 -1
  484. package/lib/components/time-select/src/time-select.d.ts +6 -2
  485. package/lib/components/time-select/src/time-select.js.map +1 -1
  486. package/lib/components/time-select/src/time-select.vue.d.ts +2 -2
  487. package/lib/components/time-select/src/time-select.vue2.js.map +1 -1
  488. package/lib/components/timeline/src/timeline-item.d.ts +4 -3
  489. package/lib/components/timeline/src/timeline-item.js.map +1 -1
  490. package/lib/components/tooltip/src/tooltip.d.ts +3 -0
  491. package/lib/components/tooltip/src/tooltip.js.map +1 -1
  492. package/lib/components/tour/src/step.d.ts +4 -3
  493. package/lib/components/tour/src/step.js.map +1 -1
  494. package/lib/components/tour/src/tour.d.ts +4 -3
  495. package/lib/components/tour/src/tour.js.map +1 -1
  496. package/lib/components/tree-v2/src/types.d.ts +1 -1
  497. package/lib/hooks/use-aria/index.d.ts +3 -0
  498. package/lib/hooks/use-aria/index.js.map +1 -1
  499. package/lib/utils/dom/aria.d.ts +1 -0
  500. package/lib/utils/dom/aria.js +5 -0
  501. package/lib/utils/dom/aria.js.map +1 -1
  502. package/lib/utils/dom/index.js +1 -0
  503. package/lib/utils/dom/index.js.map +1 -1
  504. package/lib/utils/dom/scroll.js +6 -1
  505. package/lib/utils/dom/scroll.js.map +1 -1
  506. package/lib/utils/dom/style.js +2 -1
  507. package/lib/utils/dom/style.js.map +1 -1
  508. package/lib/utils/index.js +1 -0
  509. package/lib/utils/index.js.map +1 -1
  510. package/lib/version.d.ts +1 -1
  511. package/lib/version.js +1 -1
  512. package/lib/version.js.map +1 -1
  513. package/package.json +2 -2
  514. package/web-types.json +1 -1
@@ -4,28 +4,28 @@ type __VLS_Slots = {} & {
4
4
  default?: (props: typeof __VLS_1) => any;
5
5
  };
6
6
  declare const __VLS_base: import("vue").DefineComponent<__VLS_WithDefaultsLocal<__VLS_TypePropsToOption<RadioGroupProps>, {
7
- id: undefined;
8
- disabled: undefined;
9
- modelValue: undefined;
10
- fill: "";
11
- textColor: "";
12
- name: undefined;
13
- validateEvent: true;
14
- props: () => Required<import("./radio-group").radioOptionProp>;
15
- type: "radio";
7
+ readonly id: undefined;
8
+ readonly disabled: undefined;
9
+ readonly modelValue: undefined;
10
+ readonly fill: "";
11
+ readonly textColor: "";
12
+ readonly name: undefined;
13
+ readonly validateEvent: true;
14
+ readonly props: () => Required<import("./radio-group").radioOptionProp>;
15
+ readonly type: "radio";
16
16
  }>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
17
17
  "update:modelValue": (val: string | number | boolean | undefined) => void;
18
18
  change: (val: string | number | boolean | undefined) => void;
19
19
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaultsLocal<__VLS_TypePropsToOption<RadioGroupProps>, {
20
- id: undefined;
21
- disabled: undefined;
22
- modelValue: undefined;
23
- fill: "";
24
- textColor: "";
25
- name: undefined;
26
- validateEvent: true;
27
- props: () => Required<import("./radio-group").radioOptionProp>;
28
- type: "radio";
20
+ readonly id: undefined;
21
+ readonly disabled: undefined;
22
+ readonly modelValue: undefined;
23
+ readonly fill: "";
24
+ readonly textColor: "";
25
+ readonly name: undefined;
26
+ readonly validateEvent: true;
27
+ readonly props: () => Required<import("./radio-group").radioOptionProp>;
28
+ readonly type: "radio";
29
29
  }>>> & {
30
30
  "onUpdate:modelValue"?: ((val: string | number | boolean | undefined) => any) | undefined;
31
31
  onChange?: ((val: string | number | boolean | undefined) => any) | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"radio-group.vue2.js","sources":["../../../../../../packages/components/radio/src/radio-group.vue"],"sourcesContent":["<template>\n <div\n :id=\"groupId\"\n ref=\"radioGroupRef\"\n :class=\"ns.b('group')\"\n role=\"radiogroup\"\n :aria-label=\"!isLabeledByFormItem ? ariaLabel || 'radio-group' : undefined\"\n :aria-labelledby=\"isLabeledByFormItem ? formItem!.labelId : undefined\"\n >\n <slot>\n <component\n :is=\"optionComponent\"\n v-for=\"(item, index) in options\"\n :key=\"index\"\n v-bind=\"getOptionProps(item)\"\n />\n </slot>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport {\n computed,\n nextTick,\n onMounted,\n provide,\n reactive,\n ref,\n toRefs,\n watch,\n} from 'vue'\nimport { useFormItem, useFormItemInputId } from '@element-plus/components/form'\nimport { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { useId, useNamespace } from '@element-plus/hooks'\nimport { debugWarn } from '@element-plus/utils'\nimport {\n type RadioGroupProps,\n radioDefaultProps,\n radioGroupEmits,\n radioGroupPropsDefaults,\n} from './radio-group'\nimport { radioGroupKey } from './constants'\nimport { isEqual, omit } from 'lodash-unified'\nimport ElRadio from './radio.vue'\nimport ElRadioButton from './radio-button.vue'\n\ndefineOptions({\n name: 'ElRadioGroup',\n})\n\nconst props = withDefaults(defineProps<RadioGroupProps>(), {\n ...radioGroupPropsDefaults,\n})\nconst emit = defineEmits(radioGroupEmits)\n\nconst ns = useNamespace('radio')\nconst radioId = useId()\nconst radioGroupRef = ref<HTMLDivElement>()\nconst { formItem } = useFormItem()\nconst { inputId: groupId, isLabeledByFormItem } = useFormItemInputId(props, {\n formItemContext: formItem,\n})\n\nconst changeEvent = (value: RadioGroupProps['modelValue']) => {\n emit(UPDATE_MODEL_EVENT, value)\n nextTick(() => emit(CHANGE_EVENT, value))\n}\n\nonMounted(() => {\n const radios =\n radioGroupRef.value!.querySelectorAll<HTMLInputElement>('[type=radio]')\n const firstLabel = radios[0]\n if (!Array.from(radios).some((radio) => radio.checked) && firstLabel) {\n firstLabel.tabIndex = 0\n }\n})\n\nconst name = computed(() => {\n return props.name || radioId.value\n})\n\nconst aliasProps = computed(() => ({\n ...radioDefaultProps,\n ...props.props,\n}))\nconst getOptionProps = (option: Record<string, any>) => {\n const { label, value, disabled } = aliasProps.value\n const base = {\n label: option[label],\n value: option[value],\n disabled: option[disabled],\n }\n return { ...omit(option, [label, value, disabled]), ...base }\n}\n\nconst optionComponent = computed(() =>\n props.type === 'button' ? ElRadioButton : ElRadio\n)\n\nprovide(\n radioGroupKey,\n reactive({\n ...toRefs(props),\n changeEvent,\n name,\n })\n)\n\nwatch(\n () => props.modelValue,\n (newVal, oldValue) => {\n if (props.validateEvent && !isEqual(newVal, oldValue)) {\n formItem?.validate('change').catch((err) => debugWarn(err))\n }\n }\n)\n</script>\n"],"names":["useNamespace","useId","ref","useFormItem","useFormItemInputId","UPDATE_MODEL_EVENT","nextTick","CHANGE_EVENT","onMounted","computed","radioDefaultProps","omit","ElRadioButton","ElRadio","provide","radioGroupKey","reactive","toRefs","watch","isEqual","debugWarn","_createElementBlock","_unref","_normalizeClass","_renderSlot","_openBlock","_Fragment","_renderList","_createBlock","_resolveDynamicComponent","_mergeProps"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAkDA,IAAA,MAAM,KAAA,GAAQ,OAAA;AAGd,IAAA,MAAM,IAAA,GAAO,MAAA;AAEb,IAAA,MAAM,EAAA,GAAKA,mBAAa,OAAO,CAAA;AAC/B,IAAA,MAAM,UAAUC,aAAA,EAAM;AACtB,IAAA,MAAM,gBAAgBC,OAAA,EAAoB;AAC1C,IAAA,MAAM,EAAE,QAAA,EAAS,GAAIC,uBAAA,EAAY;AACjC,IAAA,MAAM,EAAE,OAAA,EAAS,OAAA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AAJ,sBAAA;AAAA,YAKEK,YAAA;AAAA,YAAA,IAAA;AAAA,YAAAC,cAAA,CAHwB,OAAA,CAAA,OAAA,EAAO,CAAvB,MAAM,KAAA,KAAK;sCAFrBC,eAAA;AAAA,gBAKEC,2BAAA,CAJK,gBAAA,KAAe,CAAA;AAAA,gBADtBC,cAAA,CAKE,EAFC,GAAA,EAAK,KAAA,EAAK,EAAA,EAAA,OAAA,EAAA,IAAA,EAAA,EACH,cAAA,CAAe,IAAI,CAAA,CAAA;AAAA,gBAAA,IAAA;AAAA,gBAAA;AAAA;AAAA,eAAA;AAAA;;;;;;;;;;;;"}
1
+ {"version":3,"file":"radio-group.vue2.js","sources":["../../../../../../packages/components/radio/src/radio-group.vue"],"sourcesContent":["<template>\n <div\n :id=\"groupId\"\n ref=\"radioGroupRef\"\n :class=\"ns.b('group')\"\n role=\"radiogroup\"\n :aria-label=\"!isLabeledByFormItem ? ariaLabel || 'radio-group' : undefined\"\n :aria-labelledby=\"isLabeledByFormItem ? formItem!.labelId : undefined\"\n >\n <slot>\n <component\n :is=\"optionComponent\"\n v-for=\"(item, index) in options\"\n :key=\"index\"\n v-bind=\"getOptionProps(item)\"\n />\n </slot>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport {\n computed,\n nextTick,\n onMounted,\n provide,\n reactive,\n ref,\n toRefs,\n watch,\n} from 'vue'\nimport { useFormItem, useFormItemInputId } from '@element-plus/components/form'\nimport { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { useId, useNamespace } from '@element-plus/hooks'\nimport { debugWarn } from '@element-plus/utils'\nimport {\n type RadioGroupProps,\n radioDefaultProps,\n radioGroupEmits,\n radioGroupPropsDefaults,\n} from './radio-group'\nimport { radioGroupKey } from './constants'\nimport { isEqual, omit } from 'lodash-unified'\nimport ElRadio from './radio.vue'\nimport ElRadioButton from './radio-button.vue'\n\ndefineOptions({\n name: 'ElRadioGroup',\n})\n\nconst props = withDefaults(\n defineProps<RadioGroupProps>(),\n radioGroupPropsDefaults\n)\nconst emit = defineEmits(radioGroupEmits)\n\nconst ns = useNamespace('radio')\nconst radioId = useId()\nconst radioGroupRef = ref<HTMLDivElement>()\nconst { formItem } = useFormItem()\nconst { inputId: groupId, isLabeledByFormItem } = useFormItemInputId(props, {\n formItemContext: formItem,\n})\n\nconst changeEvent = (value: RadioGroupProps['modelValue']) => {\n emit(UPDATE_MODEL_EVENT, value)\n nextTick(() => emit(CHANGE_EVENT, value))\n}\n\nonMounted(() => {\n const radios =\n radioGroupRef.value!.querySelectorAll<HTMLInputElement>('[type=radio]')\n const firstLabel = radios[0]\n if (!Array.from(radios).some((radio) => radio.checked) && firstLabel) {\n firstLabel.tabIndex = 0\n }\n})\n\nconst name = computed(() => {\n return props.name || radioId.value\n})\n\nconst aliasProps = computed(() => ({\n ...radioDefaultProps,\n ...props.props,\n}))\nconst getOptionProps = (option: Record<string, any>) => {\n const { label, value, disabled } = aliasProps.value\n const base = {\n label: option[label],\n value: option[value],\n disabled: option[disabled],\n }\n return { ...omit(option, [label, value, disabled]), ...base }\n}\n\nconst optionComponent = computed(() =>\n props.type === 'button' ? ElRadioButton : ElRadio\n)\n\nprovide(\n radioGroupKey,\n reactive({\n ...toRefs(props),\n changeEvent,\n name,\n })\n)\n\nwatch(\n () => props.modelValue,\n (newVal, oldValue) => {\n if (props.validateEvent && !isEqual(newVal, oldValue)) {\n formItem?.validate('change').catch((err) => debugWarn(err))\n }\n }\n)\n</script>\n"],"names":["useNamespace","useId","ref","useFormItem","useFormItemInputId","UPDATE_MODEL_EVENT","nextTick","CHANGE_EVENT","onMounted","computed","radioDefaultProps","omit","ElRadioButton","ElRadio","provide","radioGroupKey","reactive","toRefs","watch","isEqual","debugWarn","_createElementBlock","_unref","_normalizeClass","_renderSlot","_openBlock","_Fragment","_renderList","_createBlock","_resolveDynamicComponent","_mergeProps"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAkDA,IAAA,MAAM,KAAA,GAAQ,OA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;AAAA,QACZ,IAAA,EAAK,YAAA;AAAA,QACJ,cAAU,CAAGA,SAAA,CAAA,mBAAA,CAAA,GAAsB,OAAA,CAAA,6BAA6B,MAAA;AAAA,QAChE,mBAAiBA,SAAA,CAAA,mBAAA,IAAsBA,SAAA,WAAU,OAAA,GAAU;AAAA;QAE5DE,eAOO,IAAA,wBAPP,MAOO;AAAA,WANLC,aAAA,CAAA,IAAA,CAAA,EAAAJ,sBAAA;AAAA,YAKEK,YAAA;AAAA,YAAA,IAAA;AAAA,YAAAC,cAAA,CAHwB,OAAA,CAAA,OAAA,EAAO,CAAvB,MAAM,KAAA,KAAK;sCAFrBC,eAAA;AAAA,gBAKEC,2BAAA,CAJK,gBAAA,KAAe,CAAA;AAAA,gBADtBC,cAAA,CAKE,EAFC,GAAA,EAAK,KAAA,EAAK,EAAA,EAAA,OAAA,EAAA,IAAA,EAAA,EACH,cAAA,CAAe,IAAI,CAAA,CAAA;AAAA,gBAAA,IAAA;AAAA,gBAAA;AAAA;AAAA,eAAA;AAAA;;;;;;;;;;;;"}
@@ -4,22 +4,22 @@ type __VLS_Slots = {} & {
4
4
  default?: (props: typeof __VLS_1) => any;
5
5
  };
6
6
  declare const __VLS_base: import("vue").DefineComponent<__VLS_WithDefaultsLocal<__VLS_TypePropsToOption<RadioProps>, {
7
- modelValue: undefined;
8
- disabled: undefined;
9
- label: undefined;
10
- value: undefined;
11
- name: undefined;
12
- border: false;
7
+ readonly modelValue: undefined;
8
+ readonly disabled: undefined;
9
+ readonly label: undefined;
10
+ readonly value: undefined;
11
+ readonly name: undefined;
12
+ readonly border: false;
13
13
  }>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
14
  "update:modelValue": (val: string | number | boolean | undefined) => void;
15
15
  change: (val: string | number | boolean | undefined) => void;
16
16
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaultsLocal<__VLS_TypePropsToOption<RadioProps>, {
17
- modelValue: undefined;
18
- disabled: undefined;
19
- label: undefined;
20
- value: undefined;
21
- name: undefined;
22
- border: false;
17
+ readonly modelValue: undefined;
18
+ readonly disabled: undefined;
19
+ readonly label: undefined;
20
+ readonly value: undefined;
21
+ readonly name: undefined;
22
+ readonly border: false;
23
23
  }>>> & {
24
24
  "onUpdate:modelValue"?: ((val: string | number | boolean | undefined) => any) | undefined;
25
25
  onChange?: ((val: string | number | boolean | undefined) => any) | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"radio.vue2.js","sources":["../../../../../../packages/components/radio/src/radio.vue"],"sourcesContent":["<template>\n <label\n :class=\"[\n ns.b(),\n ns.is('disabled', disabled),\n ns.is('focus', focus),\n ns.is('bordered', border),\n ns.is('checked', modelValue === actualValue),\n ns.m(size),\n ]\"\n >\n <span\n :class=\"[\n ns.e('input'),\n ns.is('disabled', disabled),\n ns.is('checked', modelValue === actualValue),\n ]\"\n >\n <input\n ref=\"radioRef\"\n v-model=\"modelValue\"\n :class=\"ns.e('original')\"\n :value=\"actualValue\"\n :name=\"name || radioGroup?.name\"\n :disabled=\"disabled\"\n :checked=\"modelValue === actualValue\"\n type=\"radio\"\n @focus=\"focus = true\"\n @blur=\"focus = false\"\n @change=\"handleChange\"\n @click.stop\n />\n <span :class=\"ns.e('inner')\" />\n </span>\n <span :class=\"ns.e('label')\" @keydown.stop>\n <slot>\n {{ label }}\n </slot>\n </span>\n </label>\n</template>\n\n<script lang=\"ts\" setup>\nimport { nextTick } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { CHANGE_EVENT } from '@element-plus/constants'\nimport { type RadioProps, radioEmits, radioPropsDefaults } from './radio'\nimport { useRadio } from './use-radio'\n\ndefineOptions({\n name: 'ElRadio',\n})\n\nconst props = withDefaults(defineProps<RadioProps>(), {\n ...radioPropsDefaults,\n})\nconst emit = defineEmits(radioEmits)\n\nconst ns = useNamespace('radio')\nconst { radioRef, radioGroup, focus, size, disabled, modelValue, actualValue } =\n useRadio(props, emit)\n\nfunction handleChange() {\n nextTick(() => emit(CHANGE_EVENT, modelValue.value))\n}\n</script>\n"],"names":["useNamespace","useRadio","nextTick","CHANGE_EVENT","_createElementBlock","_normalizeClass","_unref","_createElementVNode","_renderSlot"],"mappings":";;;;;;;;;;;;;;;;;;;AAqDA,IAAA,MAAM,KAAA,GAAQ,OAAA;AAGd,IAAA,MAAM,IAAA,GAAO,MAAA;AAEb,IAAA,MAAM,EAAA,GAAKA,mBAAa,OAAO,CAAA;AAC/B,IAAA,MAAM,EAAE,QAAA,EAAU,UAAA,EAAY,KAAA,EAAO,IAAA,EAAM,QAAA,EAAU,UAAA,EAAY,WAAA,EAAY,GAC3EC,iBAAA,CAAS,KAAA,EAAO,IAAI,CAAA;AAEtB,IAAA,SAAS,YAAA,GAAe;AACtB,MAAAC,YAAA,CAAS,MAAM,IAAA,CAAKC,kBAAA,EAAc,UAAA,CAAW,KAAK,CAAC,CAAA;AAAA,IACrD;;;8BA/DEC,sBAAA;AAAA,QAsCQ,OAAA;AAAA,QAAA;AAAA,UArCL,OAAKC,kBAAA,CAAA;AAAA,YAAUC,SAAA,CAAA,EAAA,CAAA,CAAG,CAAA,EAAC;AAAA,YAAUA,UAAA,EAAA,CAAA,CAAG,GAAE,UAAA,EAAaA,SAAA,CAAA,QAAA,CAAQ,CAAA;AAAA,YAASA,UAAA,EAAA,CAAA,CAAG,GAAE,OAAA,EAAUA,SAAA,CAAA,KAAA,CAAK,CAAA;AAAA,YAASA,UAAA,EAAA,CAAA,CAAG,EAAA,CAAE,UAAA,EAAa,QAAA,MAAM,CAAA;AAAA,YAASA,SAAA,CAAA,EAAA,CAAA,CAAG,EAAA,CAAE,SAAA,EAAYA,UAAA,UAAA,CAAA,KAAeA,SAAA,CAAA,WAAA,CAAW,CAAA;AAAA,YAASA,UAAA,EAAA,CAAA,CAAG,CAAA,CAAEA,SAAA,CAAA,IAAA,CAAI;AAAA;;;UAS5LC,sBAAA;AAAA,YAsBO,MAAA;AAAA,YAAA;AA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AA,CAAEC,SAAA,CAAA,EAAA,CAAA,CAAG,CAAA,CAAC,OAAA,CAAA;AAAA;;;;;;;;;UAEpBC,sBAAA;AAAA,YAIO,MAAA;AAAA,YAAA;AAAA,cAJA,OAAKF,kBAAA,CAAEC,SAAA,CAAA,EAAA,CAAA,CAAG,CAAA,CAAC,OAAA,CAAA,CAAA;AAAA,cAAY,SAAA,8CAAD,MAAA;AAAA,cAAA,CAAA,EAAa,CAAA,MAAA,CAAA,CAAA;AAAA;;cACxCE,eAEO,IAAA,wBAFP,MAEO;AAAA;sCADF,QAAA,KAAK,CAAA;AAAA,kBAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"radio.vue2.js","sources":["../../../../../../packages/components/radio/src/radio.vue"],"sourcesContent":["<template>\n <label\n :class=\"[\n ns.b(),\n ns.is('disabled', disabled),\n ns.is('focus', focus),\n ns.is('bordered', border),\n ns.is('checked', modelValue === actualValue),\n ns.m(size),\n ]\"\n >\n <span\n :class=\"[\n ns.e('input'),\n ns.is('disabled', disabled),\n ns.is('checked', modelValue === actualValue),\n ]\"\n >\n <input\n ref=\"radioRef\"\n v-model=\"modelValue\"\n :class=\"ns.e('original')\"\n :value=\"actualValue\"\n :name=\"name || radioGroup?.name\"\n :disabled=\"disabled\"\n :checked=\"modelValue === actualValue\"\n type=\"radio\"\n @focus=\"focus = true\"\n @blur=\"focus = false\"\n @change=\"handleChange\"\n @click.stop\n />\n <span :class=\"ns.e('inner')\" />\n </span>\n <span :class=\"ns.e('label')\" @keydown.stop>\n <slot>\n {{ label }}\n </slot>\n </span>\n </label>\n</template>\n\n<script lang=\"ts\" setup>\nimport { nextTick } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { CHANGE_EVENT } from '@element-plus/constants'\nimport { type RadioProps, radioEmits, radioPropsDefaults } from './radio'\nimport { useRadio } from './use-radio'\n\ndefineOptions({\n name: 'ElRadio',\n})\n\nconst props = withDefaults(defineProps<RadioProps>(), radioPropsDefaults)\nconst emit = defineEmits(radioEmits)\n\nconst ns = useNamespace('radio')\nconst { radioRef, radioGroup, focus, size, disabled, modelValue, actualValue } =\n useRadio(props, emit)\n\nfunction handleChange() {\n nextTick(() => emit(CHANGE_EVENT, modelValue.value))\n}\n</script>\n"],"names":["useNamespace","useRadio","nextTick","CHANGE_EVENT","_createElementBlock","_normalizeClass","_unref","_createElementVNode","_renderSlot"],"mappings":";;;;;;;;;;;;;;;;;;;AAqDA,IAAA,MAAM,KAAA,GAAQ,OAAA;AACd,IAAA,MAAM,IAAA,GAAO,MAAA;AAEb,IAAA,MAAM,EAAA,GAAKA,mBAAa,OAAO,CAAA;AAC/B,IAAA,MAAM,EAAE,QAAA,EAAU,UAAA,EAAY,KAAA,EAAO,IAAA,EAAM,QAAA,EAAU,UAAA,EAAY,WAAA,EAAY,GAC3EC,iBAAA,CAAS,KAAA,EAAO,IAAI,CAAA;AAEtB,IAAA,SAAS,YAAA,GAAe;AACtB,MAAAC,YAAA,CAAS,MAAM,IAAA,CAAKC,kBAAA,EAAc,UAAA,CAAW,KAAK,CAAC,CAAA;AAAA,IACrD;;;8BA7DEC,sBAAA;AAAA,QAsCQ,OAAA;AAAA,QAAA;AAAA,UArCL,OAAKC,kBAAA,CAAA;AAAA,YAAUC,SAAA,CAAA,EAAA,CAAA,CAAG,CAAA,EAAC;AAAA,YAAUA,UAAA,EAAA,CAAA,CAAG,GAAE,UAAA,EAAaA,SAAA,CAAA,QAAA,CAAQ,CAAA;AAAA,YAASA,UAAA,EAAA,CAAA,CAAG,GAAE,OAAA,EAAUA,SAAA,CAAA,KAAA,CAAK,CAAA;AAAA,YAASA,UAAA,EAAA,CAAA,CAAG,EAAA,CAAE,UAAA,EAAa,QAAA,MAAM,CAAA;AAAA,YAASA,SAAA,CAAA,EAAA,CAAA,CAAG,EAAA,CAAE,SAAA,EAAYA,UAAA,UAAA,CAAA,KAAeA,SAAA,CAAA,WAAA,CAAW,CAAA;AAAA,YAASA,UAAA,E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CAVFA,SAAA,CAAA,UAAA,CAAU;AAAA;cAYrBC,sBAAA;AAAA,gBAA+B,MAAA;AAAA,gBAAA;AAAA,kBAAxB,OAAKF,kBAAA,CAAEC,SAAA,CAAA,EAAA,CAAA,CAAG,CAAA,CAAC,OAAA,CAAA;AAAA;;;;;;;;;UAEpBC,sBAAA;AAAA,YAIO,MAAA;AAAA,YAAA;AAAA,cAJA,OAAKF,kBAAA,CAAEC,SAAA,CAAA,EAAA,CAAA,CAAG,CAAA,CAAC,OAAA,CAAA,CAAA;AAAA,cAAY,SAAA,8CAAD,MAAA;AAAA,cAAA,CAAA,EAAa,CAAA,MAAA,CAAA,CAAA;AAAA;;cACxCE,eAEO,IAAA,wBAFP,MAEO;AAAA;sCADF,QAAA,KAAK,CAAA;AAAA,kBAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;;;"}
@@ -1,5 +1,6 @@
1
1
  import type { Component, ExtractPublicPropTypes } from 'vue';
2
2
  import type { ComponentSize } from '@element-plus/nightly/es/constants';
3
+ import type { IconPropType } from '@element-plus/nightly/es/utils';
3
4
  import type Rate from './rate.vue';
4
5
  export interface RateProps {
5
6
  /**
@@ -37,15 +38,15 @@ export interface RateProps {
37
38
  /**
38
39
  * @description icon components. If array, it should have 3 elements, each of which corresponds with a score level, else if object, the key should be threshold value between two levels, and the value should be corresponding icon component
39
40
  */
40
- icons?: Array<string | Component> | Record<number, string | Component>;
41
+ icons?: Array<IconPropType> | Record<number, IconPropType>;
41
42
  /**
42
43
  * @description component of unselected icons
43
44
  */
44
- voidIcon?: string | Component;
45
+ voidIcon?: IconPropType;
45
46
  /**
46
47
  * @description component of unselected read-only icons
47
48
  */
48
- disabledVoidIcon?: string | Component;
49
+ disabledVoidIcon?: IconPropType;
49
50
  /**
50
51
  * @description whether Rate is read-only
51
52
  */
@@ -1 +1 @@
1
- {"version":3,"file":"rate.js","sources":["../../../../../../packages/components/rate/src/rate.ts"],"sourcesContent":["import { Star, StarFilled } from '@element-plus/icons-vue'\nimport { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport {\n buildProps,\n definePropType,\n iconPropType,\n isNumber,\n mutable,\n} from '@element-plus/utils'\nimport { useAriaProps, useSizeProp } from '@element-plus/hooks'\n\nimport type { Component, ExtractPublicPropTypes } from 'vue'\nimport type { ComponentSize } from '@element-plus/constants'\nimport type Rate from './rate.vue'\n\nexport interface RateProps {\n /**\n * @description binding value\n */\n modelValue?: number\n /**\n * @description native `id` attribute\n */\n id?: string\n /**\n * @description threshold value between low and medium level. The value itself will be included in low level\n */\n lowThreshold?: number\n /**\n * @description threshold value between medium and high level. The value itself will be included in high level\n */\n highThreshold?: number\n /**\n * @description max rating score\n */\n max?: number\n /**\n * @description colors for icons. If array, it should have 3 elements, each of which corresponds with a score level, else if object, the key should be threshold value between two levels, and the value should be corresponding color\n */\n colors?: string[] | Record<number, string>\n /**\n * @description color of unselected icons\n */\n voidColor?: string\n /**\n * @description color of unselected read-only icons\n */\n disabledVoidColor?: string\n /**\n * @description icon components. If array, it should have 3 elements, each of which corresponds with a score level, else if object, the key should be threshold value between two levels, and the value should be corresponding icon component\n */\n icons?: Array<string | Component> | Record<number, string | Component>\n /**\n * @description component of unselected icons\n */\n voidIcon?: string | Component\n /**\n * @description component of unselected read-only icons\n */\n disabledVoidIcon?: string | Component\n /**\n * @description whether Rate is read-only\n */\n disabled?: boolean\n /**\n * @description whether picking half start is allowed\n */\n allowHalf?: boolean\n /**\n * @description whether to display texts\n */\n showText?: boolean\n /**\n * @description whether to display current score. show-score and show-text cannot be true at the same time\n */\n showScore?: boolean\n /**\n * @description color of texts\n */\n textColor?: string\n /**\n * @description text array\n */\n texts?: string[]\n /**\n * @description score template\n */\n scoreTemplate?: string\n /**\n * @description size of Rate\n */\n size?: ComponentSize\n /**\n * @description whether value can be reset to `0`\n */\n clearable?: boolean\n /**\n * @description native `aria-label` attribute\n */\n ariaLabel?: string\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `RateProps` instead.\n */\nexport const rateProps = buildProps({\n /**\n * @description binding value\n */\n modelValue: {\n type: Number,\n default: 0,\n },\n /**\n * @description native `id` attribute\n */\n id: {\n type: String,\n default: undefined,\n },\n /**\n * @description threshold value between low and medium level. The value itself will be included in low level\n */\n lowThreshold: {\n type: Number,\n default: 2,\n },\n /**\n * @description threshold value between medium and high level. The value itself will be included in high level\n */\n highThreshold: {\n type: Number,\n default: 4,\n },\n /**\n * @description max rating score\n */\n max: {\n type: Number,\n default: 5,\n },\n /**\n * @description colors for icons. If array, it should have 3 elements, each of which corresponds with a score level, else if object, the key should be threshold value between two levels, and the value should be corresponding color\n */\n colors: {\n type: definePropType<string[] | Record<number, string>>([Array, Object]),\n default: () => mutable(['', '', ''] as const),\n },\n /**\n * @description color of unselected icons\n */\n voidColor: {\n type: String,\n default: '',\n },\n /**\n * @description color of unselected read-only icons\n */\n disabledVoidColor: {\n type: String,\n default: '',\n },\n /**\n * @description icon components. If array, it should have 3 elements, each of which corresponds with a score level, else if object, the key should be threshold value between two levels, and the value should be corresponding icon component\n */\n icons: {\n type: definePropType<\n Array<string | Component> | Record<number, string | Component>\n >([Array, Object]),\n default: () =>\n [StarFilled, StarFilled, StarFilled] as [Component, Component, Component],\n },\n /**\n * @description component of unselected icons\n */\n voidIcon: {\n type: iconPropType,\n default: () => Star as Component,\n },\n /**\n * @description component of unselected read-only icons\n */\n disabledVoidIcon: {\n type: iconPropType,\n default: () => StarFilled as Component,\n },\n /**\n * @description whether Rate is read-only\n */\n disabled: {\n type: Boolean,\n default: undefined,\n },\n /**\n * @description whether picking half start is allowed\n */\n allowHalf: Boolean,\n /**\n * @description whether to display texts\n */\n showText: Boolean,\n /**\n * @description whether to display current score. show-score and show-text cannot be true at the same time\n */\n showScore: Boolean,\n /**\n * @description color of texts\n */\n textColor: {\n type: String,\n default: '',\n },\n /**\n * @description text array\n */\n texts: {\n type: definePropType<string[]>(Array),\n default: () =>\n mutable([\n 'Extremely bad',\n 'Disappointed',\n 'Fair',\n 'Satisfied',\n 'Surprise',\n ] as const),\n },\n /**\n * @description score template\n */\n scoreTemplate: {\n type: String,\n default: '{value}',\n },\n /**\n * @description size of Rate\n */\n size: useSizeProp,\n /**\n * @description whether value can be reset to `0`\n */\n clearable: Boolean,\n ...useAriaProps(['ariaLabel']),\n} as const)\n\n/**\n * @deprecated Removed after 3.0.0, Use `RateProps` instead.\n */\nexport type RatePropsPublic = ExtractPublicPropTypes<typeof rateProps>\n\nexport const rateEmits = {\n [CHANGE_EVENT]: (value: number) => isNumber(value),\n [UPDATE_MODEL_EVENT]: (value: number) => isNumber(value),\n}\nexport type RateEmits = typeof rateEmits\n\nexport type RateInstance = InstanceType<typeof Rate> & unknown\n"],"names":["buildProps","definePropType","mutable","StarFilled","iconPropType","Star","useSizeProp","useAriaProps","CHANGE_EVENT","isNumber","UPDATE_MODEL_EVENT"],"mappings":";;;;;;;;;;;AAyGO,MAAM,YAAYA,kBAAA,CAAW;AAAA;AAAA;AAAA;AAAA,EAIlC,UAAA,EAAY;AAAA,IACV,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,EAAA,EAAI;AAAA,IACF,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,YAAA,EAAc;AAAA,IACZ,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,aAAA,EAAe;AAAA,IACb,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,GAAA,EAAK;AAAA,IACH,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,MAAA,EAAQ;AAAA,IACN,IAAA,EAAMC,sBAAA,CAAkD,CAAC,KAAA,EAAO,MAAM,CAAC,CAAA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,MACA,cAAA;AAAA,MACA,MAAA;AAAA,MACA,WAAA;AAAA,MACA;AAAA,KACQ;AAAA,GACd;AAAA;AAAA;AAAA;AAAA,EAIA,aAAA,EAAe;AAAA,IACb,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,IAAA,EAAMI,mBAAA;AAAA;AAAA;AAAA;AAAA,EAIN,SAAA,EAAW,OAAA;AAAA,EACX,GAAGC,kBAAA,CAAa,CAAC,WAAW,CAAC;AAC/B,CAAU;AAOH,MAAM,SAAA,GAAY;AAAA,EACvB,CAACC,kBAAY,GAAG,CAAC,KAAA,KAAkBC,eAAS,KAAK,CAAA;AAAA,EACjD,CAACC,wBAAkB,GAAG,CAAC,KAAA,KAAkBD,eAAS,KAAK;AACzD;;;;;"}
1
+ {"version":3,"file":"rate.js","sources":["../../../../../../packages/components/rate/src/rate.ts"],"sourcesContent":["import { Star, StarFilled } from '@element-plus/icons-vue'\nimport { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport {\n buildProps,\n definePropType,\n iconPropType,\n isNumber,\n mutable,\n} from '@element-plus/utils'\nimport { useAriaProps, useSizeProp } from '@element-plus/hooks'\n\nimport type { Component, ExtractPublicPropTypes } from 'vue'\nimport type { ComponentSize } from '@element-plus/constants'\nimport type { IconPropType } from '@element-plus/utils'\nimport type Rate from './rate.vue'\n\nexport interface RateProps {\n /**\n * @description binding value\n */\n modelValue?: number\n /**\n * @description native `id` attribute\n */\n id?: string\n /**\n * @description threshold value between low and medium level. The value itself will be included in low level\n */\n lowThreshold?: number\n /**\n * @description threshold value between medium and high level. The value itself will be included in high level\n */\n highThreshold?: number\n /**\n * @description max rating score\n */\n max?: number\n /**\n * @description colors for icons. If array, it should have 3 elements, each of which corresponds with a score level, else if object, the key should be threshold value between two levels, and the value should be corresponding color\n */\n colors?: string[] | Record<number, string>\n /**\n * @description color of unselected icons\n */\n voidColor?: string\n /**\n * @description color of unselected read-only icons\n */\n disabledVoidColor?: string\n /**\n * @description icon components. If array, it should have 3 elements, each of which corresponds with a score level, else if object, the key should be threshold value between two levels, and the value should be corresponding icon component\n */\n icons?: Array<IconPropType> | Record<number, IconPropType>\n /**\n * @description component of unselected icons\n */\n voidIcon?: IconPropType\n /**\n * @description component of unselected read-only icons\n */\n disabledVoidIcon?: IconPropType\n /**\n * @description whether Rate is read-only\n */\n disabled?: boolean\n /**\n * @description whether picking half start is allowed\n */\n allowHalf?: boolean\n /**\n * @description whether to display texts\n */\n showText?: boolean\n /**\n * @description whether to display current score. show-score and show-text cannot be true at the same time\n */\n showScore?: boolean\n /**\n * @description color of texts\n */\n textColor?: string\n /**\n * @description text array\n */\n texts?: string[]\n /**\n * @description score template\n */\n scoreTemplate?: string\n /**\n * @description size of Rate\n */\n size?: ComponentSize\n /**\n * @description whether value can be reset to `0`\n */\n clearable?: boolean\n /**\n * @description native `aria-label` attribute\n */\n ariaLabel?: string\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `RateProps` instead.\n */\nexport const rateProps = buildProps({\n /**\n * @description binding value\n */\n modelValue: {\n type: Number,\n default: 0,\n },\n /**\n * @description native `id` attribute\n */\n id: {\n type: String,\n default: undefined,\n },\n /**\n * @description threshold value between low and medium level. The value itself will be included in low level\n */\n lowThreshold: {\n type: Number,\n default: 2,\n },\n /**\n * @description threshold value between medium and high level. The value itself will be included in high level\n */\n highThreshold: {\n type: Number,\n default: 4,\n },\n /**\n * @description max rating score\n */\n max: {\n type: Number,\n default: 5,\n },\n /**\n * @description colors for icons. If array, it should have 3 elements, each of which corresponds with a score level, else if object, the key should be threshold value between two levels, and the value should be corresponding color\n */\n colors: {\n type: definePropType<string[] | Record<number, string>>([Array, Object]),\n default: () => mutable(['', '', ''] as const),\n },\n /**\n * @description color of unselected icons\n */\n voidColor: {\n type: String,\n default: '',\n },\n /**\n * @description color of unselected read-only icons\n */\n disabledVoidColor: {\n type: String,\n default: '',\n },\n /**\n * @description icon components. If array, it should have 3 elements, each of which corresponds with a score level, else if object, the key should be threshold value between two levels, and the value should be corresponding icon component\n */\n icons: {\n type: definePropType<\n Array<string | Component> | Record<number, string | Component>\n >([Array, Object]),\n default: () =>\n [StarFilled, StarFilled, StarFilled] as [Component, Component, Component],\n },\n /**\n * @description component of unselected icons\n */\n voidIcon: {\n type: iconPropType,\n default: () => Star as Component,\n },\n /**\n * @description component of unselected read-only icons\n */\n disabledVoidIcon: {\n type: iconPropType,\n default: () => StarFilled as Component,\n },\n /**\n * @description whether Rate is read-only\n */\n disabled: {\n type: Boolean,\n default: undefined,\n },\n /**\n * @description whether picking half start is allowed\n */\n allowHalf: Boolean,\n /**\n * @description whether to display texts\n */\n showText: Boolean,\n /**\n * @description whether to display current score. show-score and show-text cannot be true at the same time\n */\n showScore: Boolean,\n /**\n * @description color of texts\n */\n textColor: {\n type: String,\n default: '',\n },\n /**\n * @description text array\n */\n texts: {\n type: definePropType<string[]>(Array),\n default: () =>\n mutable([\n 'Extremely bad',\n 'Disappointed',\n 'Fair',\n 'Satisfied',\n 'Surprise',\n ] as const),\n },\n /**\n * @description score template\n */\n scoreTemplate: {\n type: String,\n default: '{value}',\n },\n /**\n * @description size of Rate\n */\n size: useSizeProp,\n /**\n * @description whether value can be reset to `0`\n */\n clearable: Boolean,\n ...useAriaProps(['ariaLabel']),\n} as const)\n\n/**\n * @deprecated Removed after 3.0.0, Use `RateProps` instead.\n */\nexport type RatePropsPublic = ExtractPublicPropTypes<typeof rateProps>\n\nexport const rateEmits = {\n [CHANGE_EVENT]: (value: number) => isNumber(value),\n [UPDATE_MODEL_EVENT]: (value: number) => isNumber(value),\n}\nexport type RateEmits = typeof rateEmits\n\nexport type RateInstance = InstanceType<typeof Rate> & unknown\n"],"names":["buildProps","definePropType","mutable","StarFilled","iconPropType","Star","useSizeProp","useAriaProps","CHANGE_EVENT","isNumber","UPDATE_MODEL_EVENT"],"mappings":";;;;;;;;;;;AA0GO,MAAM,YAAYA,kBAAA,CA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declare function setCurrentValue(value: number, event?: MouseEvent): void;
4
3
  declare function resetCurrentValue(): void;
@@ -56,9 +55,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_WithDefaultsLoca
56
55
  highThreshold: number;
57
56
  voidColor: string;
58
57
  disabledVoidColor: string;
59
- icons: Array<string | Component> | Record<number, string | Component>;
60
- voidIcon: string | Component;
61
- disabledVoidIcon: string | Component;
58
+ icons: Array<import("@element-plus/nightly/es/utils").IconPropType> | Record<number, import("@element-plus/nightly/es/utils").IconPropType>;
59
+ voidIcon: import("@element-plus/nightly/es/utils").IconPropType;
60
+ disabledVoidIcon: import("@element-plus/nightly/es/utils").IconPropType;
62
61
  texts: string[];
63
62
  scoreTemplate: string;
64
63
  }, {}>;
@@ -22,10 +22,16 @@ export interface ResultProps {
22
22
  */
23
23
  icon?: 'primary' | 'success' | 'warning' | 'info' | 'error';
24
24
  }
25
+ /**
26
+ * @deprecated Removed after 3.0.0, Use `ResultProps` instead.
27
+ */
25
28
  export declare const resultProps: {
26
29
  readonly title: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
27
30
  readonly subTitle: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
28
31
  readonly icon: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "error" | "primary" | "success" | "warning" | "info", unknown, "info", boolean>;
29
32
  };
33
+ /**
34
+ * @deprecated Removed after 3.0.0, Use `ResultProps` instead.
35
+ */
30
36
  export type ResultPropsPublic = ExtractPublicPropTypes<typeof resultProps>;
31
37
  export type ResultInstance = InstanceType<typeof Result> & unknown;
@@ -1 +1 @@
1
- {"version":3,"file":"result.js","sources":["../../../../../../packages/components/result/src/result.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport {\n CircleCheckFilled,\n CircleCloseFilled,\n InfoFilled,\n WarningFilled,\n} from '@element-plus/icons-vue'\n\nimport type { Component, ExtractPublicPropTypes } from 'vue'\nimport type Result from './result.vue'\n\nexport const IconMap = {\n primary: 'icon-primary',\n success: 'icon-success',\n warning: 'icon-warning',\n error: 'icon-error',\n info: 'icon-info',\n} as const\n\nexport const IconComponentMap: Record<\n (typeof IconMap)[keyof typeof IconMap],\n Component\n> = {\n [IconMap.primary]: InfoFilled,\n [IconMap.success]: CircleCheckFilled,\n [IconMap.warning]: WarningFilled,\n [IconMap.error]: CircleCloseFilled,\n [IconMap.info]: InfoFilled,\n}\n\nexport interface ResultProps {\n /**\n * @description title of result\n */\n title?: string\n /**\n * @description sub title of result\n */\n subTitle?: string\n /**\n * @description icon type of result\n */\n icon?: 'primary' | 'success' | 'warning' | 'info' | 'error'\n}\n\nexport const resultProps = buildProps({\n /**\n * @description title of result\n */\n title: {\n type: String,\n default: '',\n },\n /**\n * @description sub title of result\n */\n subTitle: {\n type: String,\n default: '',\n },\n /**\n * @description icon type of result\n */\n icon: {\n type: String,\n values: ['primary', 'success', 'warning', 'info', 'error'],\n default: 'info',\n },\n} as const)\n\nexport type ResultPropsPublic = ExtractPublicPropTypes<typeof resultProps>\n\nexport type ResultInstance = InstanceType<typeof Result> & unknown\n"],"names":["InfoFilled","CircleCheckFilled","WarningFilled","CircleCloseFilled","buildProps"],"mappings":";;;;;AAWO,MAAM,OAAA,GAAU;AAAA,EACrB,OAAA,EAAS,cAAA;AAAA,EACT,OAAA,EAAS,cAAA;AAAA,EACT,OAAA,EAAS,cAAA;AAAA,EACT,KAAA,EAAO,YAAA;AAAA,EACP,IAAA,EAAM;AACR;AAEO,MAAM,gBAAA,GAGT;AAAA,EACF,CAAC,OAAA,CAAQ,OAAO,GAAGA,mBAAA;AAAA,EACnB,CAAC,OAAA,CAAQ,OAAO,GAAGC,0BAAA;AAAA,EACnB,CAAC,OAAA,CAAQ,OAAO,GAAGC,sBAAA;AAAA,EACnB,CAAC,OAAA,CAAQ,KAAK,GAAGC,0BAAA;AAAA,EACjB,CAAC,OAAA,CAAQ,IAAI,GAAGH;AAClB;AAiBO,MAAM,cAAcI,kBAAA,CAAW;AAAA;AAAA;AAAA;AAAA,EAIpC,KAAA,EAAO;AAAA,IACL,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,QAAA,EAAU;AAAA,IACR,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,IAAA,EAAM;AAAA,IACJ,IAAA,EAAM,MAAA;AAAA,IACN,QAAQ,CAAC,SAAA,EAAW,SAAA,EAAW,SAAA,EAAW,QAAQ,OAAO,CAAA;AAAA,IACzD,OAAA,EAAS;AAAA;AAEb,CAAU;;;;;;"}
1
+ {"version":3,"file":"result.js","sources":["../../../../../../packages/components/result/src/result.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport {\n CircleCheckFilled,\n CircleCloseFilled,\n InfoFilled,\n WarningFilled,\n} from '@element-plus/icons-vue'\n\nimport type { Component, ExtractPublicPropTypes } from 'vue'\nimport type Result from './result.vue'\n\nexport const IconMap = {\n primary: 'icon-primary',\n success: 'icon-success',\n warning: 'icon-warning',\n error: 'icon-error',\n info: 'icon-info',\n} as const\n\nexport const IconComponentMap: Record<\n (typeof IconMap)[keyof typeof IconMap],\n Component\n> = {\n [IconMap.primary]: InfoFilled,\n [IconMap.success]: CircleCheckFilled,\n [IconMap.warning]: WarningFilled,\n [IconMap.error]: CircleCloseFilled,\n [IconMap.info]: InfoFilled,\n}\n\nexport interface ResultProps {\n /**\n * @description title of result\n */\n title?: string\n /**\n * @description sub title of result\n */\n subTitle?: string\n /**\n * @description icon type of result\n */\n icon?: 'primary' | 'success' | 'warning' | 'info' | 'error'\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `ResultProps` instead.\n */\nexport const resultProps = buildProps({\n /**\n * @description title of result\n */\n title: {\n type: String,\n default: '',\n },\n /**\n * @description sub title of result\n */\n subTitle: {\n type: String,\n default: '',\n },\n /**\n * @description icon type of result\n */\n icon: {\n type: String,\n values: ['primary', 'success', 'warning', 'info', 'error'],\n default: 'info',\n },\n} as const)\n\n/**\n * @deprecated Removed after 3.0.0, Use `ResultProps` instead.\n */\nexport type ResultPropsPublic = ExtractPublicPropTypes<typeof resultProps>\n\nexport type ResultInstance = InstanceType<typeof Result> & unknown\n"],"names":["InfoFilled","CircleCheckFilled","WarningFilled","CircleCloseFilled","buildProps"],"mappings":";;;;;AAWO,MAAM,OAAA,GAAU;AAAA,EACrB,OAAA,EAAS,cAAA;AAAA,EACT,OAAA,EAAS,cAAA;AAAA,EACT,OAAA,EAAS,cAAA;AAAA,EACT,KAAA,EAAO,YAAA;AAAA,EACP,IAAA,EAAM;AACR;AAEO,MAAM,gBAAA,GAGT;AAAA,EACF,CAAC,OAAA,CAAQ,OAAO,GAAGA,mBAAA;AAAA,EACnB,CAAC,OAAA,CAAQ,OAAO,GAAGC,0BAAA;AAAA,EACnB,CAAC,OAAA,CAAQ,OAAO,GAAGC,sBAAA;AAAA,EACnB,CAAC,OAAA,CAAQ,KAAK,GAAGC,0BAAA;AAAA,EACjB,CAAC,OAAA,CAAQ,IAAI,GAAGH;AAClB;AAoBO,MAAM,cAAcI,kBAAA,CAAW;AAAA;AAAA;AAAA;AAAA,EAIpC,KAAA,EAAO;AAAA,IACL,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,QAAA,EAAU;AAAA,IACR,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,IAAA,EAAM;AAAA,IACJ,IAAA,EAAM,MAAA;AAAA,IACN,QAAQ,CAAC,SAAA,EAAW,SAAA,EAAW,SAAA,EAAW,QAAQ,OAAO,CAAA;AAAA,IACzD,OAAA,EAAS;AAAA;AAEb,CAAU;;;;;;"}
@@ -16,5 +16,8 @@ export declare const barProps: {
16
16
  __epPropKey: true;
17
17
  };
18
18
  };
19
+ /**
20
+ * @deprecated Removed after 3.0.0, Use `BarProps` instead.
21
+ */
19
22
  export type BarPropsPublic = ExtractPublicPropTypes<typeof barProps>;
20
23
  export type BarInstance = InstanceType<typeof Bar> & unknown;
@@ -1 +1 @@
1
- {"version":3,"file":"bar.js","sources":["../../../../../../packages/components/scrollbar/src/bar.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\n\nimport type { ExtractPublicPropTypes } from 'vue'\nimport type Bar from './bar.vue'\n\nexport interface BarProps {\n always?: boolean\n minSize: number\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `BarProps` instead.\n */\nexport const barProps = buildProps({\n always: {\n type: Boolean,\n default: true,\n },\n minSize: {\n type: Number,\n required: true,\n },\n} as const)\n\nexport type BarPropsPublic = ExtractPublicPropTypes<typeof barProps>\n\nexport type BarInstance = InstanceType<typeof Bar> & unknown\n"],"names":["buildProps"],"mappings":";;;;AAaO,MAAM,WAAWA,kBAAA,CAAW;AAAA,EACjC,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA,EACA,OAAA,EAAS;AAAA,IACP,IAAA,EAAM,MAAA;AAAA,IACN,QAAA,EAAU;AAAA;AAEd,CAAU;;;;"}
1
+ {"version":3,"file":"bar.js","sources":["../../../../../../packages/components/scrollbar/src/bar.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\n\nimport type { ExtractPublicPropTypes } from 'vue'\nimport type Bar from './bar.vue'\n\nexport interface BarProps {\n always?: boolean\n minSize: number\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `BarProps` instead.\n */\nexport const barProps = buildProps({\n always: {\n type: Boolean,\n default: true,\n },\n minSize: {\n type: Number,\n required: true,\n },\n} as const)\n\n/**\n * @deprecated Removed after 3.0.0, Use `BarProps` instead.\n */\nexport type BarPropsPublic = ExtractPublicPropTypes<typeof barProps>\n\nexport type BarInstance = InstanceType<typeof Bar> & unknown\n"],"names":["buildProps"],"mappings":";;;;AAaO,MAAM,WAAWA,kBAAA,CAAW;AAAA,EACjC,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA,EACA,OAAA,EAAS;AAAA,IACP,IAAA,EAAM,MAAA;AAAA,IACN,QAAA,EAAU;AAAA;AAEd,CAAU;;;;"}
@@ -107,6 +107,9 @@ export declare const scrollbarProps: {
107
107
  readonly id: StringConstructor;
108
108
  readonly role: StringConstructor;
109
109
  };
110
+ /**
111
+ * @deprecated Removed after 3.0.0, Use `ScrollbarProps` instead.
112
+ */
110
113
  export type ScrollbarPropsPublic = ExtractPublicPropTypes<typeof scrollbarProps>;
111
114
  export declare const scrollbarEmits: {
112
115
  'end-reached': (direction: ScrollbarDirection) => boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"scrollbar.js","sources":["../../../../../../packages/components/scrollbar/src/scrollbar.ts"],"sourcesContent":["import { buildProps, definePropType, isNumber } from '@element-plus/utils'\nimport { useAriaProps } from '@element-plus/hooks'\n\nimport type { ExtractPublicPropTypes, StyleValue } from 'vue'\nimport type Scrollbar from './scrollbar.vue'\n\nexport interface ScrollbarProps {\n /**\n * @description trigger distance(px)\n * @default 0\n */\n distance?: number\n /**\n * @description height of scrollbar\n * @default ''\n */\n height?: number | string\n /**\n * @description max height of scrollbar\n * @default ''\n */\n maxHeight?: number | string\n /**\n * @description whether to use the native scrollbar\n */\n native?: boolean\n /**\n * @description style of wrap\n * @default ''\n */\n wrapStyle?: StyleValue\n /**\n * @description class of wrap\n * @default ''\n */\n wrapClass?: string | string[]\n /**\n * @description class of view\n * @default ''\n */\n viewClass?: string | string[]\n /**\n * @description style of view\n * @default ''\n */\n viewStyle?: StyleValue\n /**\n * @description do not respond to container size changes, if the container size does not change, it is better to set it to optimize performance\n */\n noresize?: boolean\n /**\n * @description element tag of the view\n * @default 'div'\n */\n tag?: keyof HTMLElementTagNameMap | (string & {})\n /**\n * @description always show\n */\n always?: boolean\n /**\n * @description minimum size of scrollbar\n * @default 20\n */\n minSize?: number\n /**\n * @description Wrap tabindex\n * @default undefined\n */\n tabindex?: number | string\n /**\n * @description id of view\n */\n id?: string\n /**\n * @description role of view\n */\n role?: string\n /**\n * @description native `aria-label` attribute\n */\n ariaLabel?: string\n /**\n * @description native `aria-orientation` attribute\n */\n ariaOrientation?: 'horizontal' | 'vertical' | 'undefined'\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `ScrollbarProps` instead.\n */\nexport const scrollbarProps = buildProps({\n /**\n * @description trigger distance(px)\n */\n distance: {\n type: Number,\n default: 0,\n },\n /**\n * @description height of scrollbar\n */\n height: {\n type: [String, Number],\n default: '',\n },\n /**\n * @description max height of scrollbar\n */\n maxHeight: {\n type: [String, Number],\n default: '',\n },\n /**\n * @description whether to use the native scrollbar\n */\n native: Boolean,\n /**\n * @description style of wrap\n */\n wrapStyle: {\n type: definePropType<StyleValue>([String, Object, Array]),\n default: '',\n },\n /**\n * @description class of wrap\n */\n wrapClass: {\n type: [String, Array],\n default: '',\n },\n /**\n * @description class of view\n */\n viewClass: {\n type: [String, Array],\n default: '',\n },\n /**\n * @description style of view\n */\n viewStyle: {\n type: [String, Array, Object],\n default: '',\n },\n /**\n * @description do not respond to container size changes, if the container size does not change, it is better to set it to optimize performance\n */\n noresize: Boolean, // 如果 container 尺寸不会发生变化,最好设置它可以优化性能\n /**\n * @description element tag of the view\n */\n tag: {\n type: String,\n default: 'div',\n },\n /**\n * @description always show\n */\n always: Boolean,\n /**\n * @description minimum size of scrollbar\n */\n minSize: {\n type: Number,\n default: 20,\n },\n /**\n * @description Wrap tabindex\n */\n tabindex: {\n type: [String, Number],\n default: undefined,\n },\n /**\n * @description id of view\n */\n id: String,\n /**\n * @description role of view\n */\n role: String,\n ...useAriaProps(['ariaLabel', 'ariaOrientation']),\n} as const)\nexport type ScrollbarPropsPublic = ExtractPublicPropTypes<typeof scrollbarProps>\n\nexport const scrollbarEmits = {\n 'end-reached': (direction: ScrollbarDirection) =>\n ['left', 'right', 'top', 'bottom'].includes(direction),\n scroll: ({\n scrollTop,\n scrollLeft,\n }: {\n scrollTop: number\n scrollLeft: number\n }) => [scrollTop, scrollLeft].every(isNumber),\n}\nexport type ScrollbarEmits = typeof scrollbarEmits\nexport type ScrollbarDirection = 'top' | 'bottom' | 'left' | 'right'\n\nexport type ScrollbarInstance = InstanceType<typeof Scrollbar> & unknown\n"],"names":["buildProps","definePropType","useAriaProps","isNumber"],"mappings":";;;;;;AA0FO,MAAM,iBAAiBA,kBAAA,CAAW;AAAA;AAAA;AAAA;AAAA,EAIvC,QAAA,EAAU;AAAA,IACR,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM,CAAC,MAAA,EAAQ,MAAM,CAAA;AAAA,IACrB,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,SAAA,EAAW;AAAA,IACT,IAAA,EAAM,CAAC,MAAA,EAAQ,MAAM,CAAA;AAAA,IACrB,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,MAAA,EAAQ,OAAA;AAAA;AAAA;AAAA;AAAA,EAIR,SAAA,EAAW;AAAA,IACT,MAAMC,sBAAA,CAA2B,CAAC,MAAA,EAAQ,MAAA,EAAQ,KAAK,CAAC,CAAA;AAAA,IACxD,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,SAAA,EAAW;AAAA,IACT,IAAA,EAAM,CAAC,MAAA,EAAQ,KAAK,CAAA;AAAA,IACpB,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,SAAA,EAAW;AAAA,IACT,IAAA,EAAM,CAAC,MAAA,EAAQ,KAAK,CAAA;AAAA,IACpB,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,SAAA,EAAW;AAAA,IACT,IAAA,EAAM,CAAC,MAAA,EAAQ,KAAA,EAAO,MAAM,CAAA;AAAA,IAC5B,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,QAAA,EAAU,OAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAIV,GAAA,EAAK;AAAA,IACH,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,MAAA,EAAQ,OAAA;AAAA;AAAA;AAAA;AAAA,EAIR,OAAA,EAAS;AAAA,IACP,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,QAAA,EAAU;AAAA,IACR,IAAA,EAAM,CAAC,MAAA,EAAQ,MAAM,CAAA;AAAA,IACrB,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,EAAA,EAAI,MAAA;AAAA;AAAA;AAAA;AAAA,EAIJ,IAAA,EAAM,MAAA;AAAA,EACN,GAAGC,kBAAA,CAAa,CAAC,WAAA,EAAa,iBAAiB,CAAC;AAClD,CAAU;AAGH,MAAM,cAAA,GAAiB;AAAA,EAC5B,aAAA,EAAe,CAAC,SAAA,KACd,CAAC,MAAA,EAAQ,SAAS,KAAA,EAAO,QAAQ,CAAA,CAAE,QAAA,CAAS,SAAS,CAAA;AAAA,EACvD,QAAQ,CAAC;AAAA,IACP,SAAA;AAAA,IACA;AAAA,QAII,CAAC,SAAA,EAAW,UAAU,CAAA,CAAE,MAAMC,cAAQ;AAC9C;;;;;"}
1
+ {"version":3,"file":"scrollbar.js","sources":["../../../../../../packages/components/scrollbar/src/scrollbar.ts"],"sourcesContent":["import { buildProps, definePropType, isNumber } from '@element-plus/utils'\nimport { useAriaProps } from '@element-plus/hooks'\n\nimport type { ExtractPublicPropTypes, StyleValue } from 'vue'\nimport type Scrollbar from './scrollbar.vue'\n\nexport interface ScrollbarProps {\n /**\n * @description trigger distance(px)\n * @default 0\n */\n distance?: number\n /**\n * @description height of scrollbar\n * @default ''\n */\n height?: number | string\n /**\n * @description max height of scrollbar\n * @default ''\n */\n maxHeight?: number | string\n /**\n * @description whether to use the native scrollbar\n */\n native?: boolean\n /**\n * @description style of wrap\n * @default ''\n */\n wrapStyle?: StyleValue\n /**\n * @description class of wrap\n * @default ''\n */\n wrapClass?: string | string[]\n /**\n * @description class of view\n * @default ''\n */\n viewClass?: string | string[]\n /**\n * @description style of view\n * @default ''\n */\n viewStyle?: StyleValue\n /**\n * @description do not respond to container size changes, if the container size does not change, it is better to set it to optimize performance\n */\n noresize?: boolean\n /**\n * @description element tag of the view\n * @default 'div'\n */\n tag?: keyof HTMLElementTagNameMap | (string & {})\n /**\n * @description always show\n */\n always?: boolean\n /**\n * @description minimum size of scrollbar\n * @default 20\n */\n minSize?: number\n /**\n * @description Wrap tabindex\n * @default undefined\n */\n tabindex?: number | string\n /**\n * @description id of view\n */\n id?: string\n /**\n * @description role of view\n */\n role?: string\n /**\n * @description native `aria-label` attribute\n */\n ariaLabel?: string\n /**\n * @description native `aria-orientation` attribute\n */\n ariaOrientation?: 'horizontal' | 'vertical' | 'undefined'\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `ScrollbarProps` instead.\n */\nexport const scrollbarProps = buildProps({\n /**\n * @description trigger distance(px)\n */\n distance: {\n type: Number,\n default: 0,\n },\n /**\n * @description height of scrollbar\n */\n height: {\n type: [String, Number],\n default: '',\n },\n /**\n * @description max height of scrollbar\n */\n maxHeight: {\n type: [String, Number],\n default: '',\n },\n /**\n * @description whether to use the native scrollbar\n */\n native: Boolean,\n /**\n * @description style of wrap\n */\n wrapStyle: {\n type: definePropType<StyleValue>([String, Object, Array]),\n default: '',\n },\n /**\n * @description class of wrap\n */\n wrapClass: {\n type: [String, Array],\n default: '',\n },\n /**\n * @description class of view\n */\n viewClass: {\n type: [String, Array],\n default: '',\n },\n /**\n * @description style of view\n */\n viewStyle: {\n type: [String, Array, Object],\n default: '',\n },\n /**\n * @description do not respond to container size changes, if the container size does not change, it is better to set it to optimize performance\n */\n noresize: Boolean, // 如果 container 尺寸不会发生变化,最好设置它可以优化性能\n /**\n * @description element tag of the view\n */\n tag: {\n type: String,\n default: 'div',\n },\n /**\n * @description always show\n */\n always: Boolean,\n /**\n * @description minimum size of scrollbar\n */\n minSize: {\n type: Number,\n default: 20,\n },\n /**\n * @description Wrap tabindex\n */\n tabindex: {\n type: [String, Number],\n default: undefined,\n },\n /**\n * @description id of view\n */\n id: String,\n /**\n * @description role of view\n */\n role: String,\n ...useAriaProps(['ariaLabel', 'ariaOrientation']),\n} as const)\n\n/**\n * @deprecated Removed after 3.0.0, Use `ScrollbarProps` instead.\n */\nexport type ScrollbarPropsPublic = ExtractPublicPropTypes<typeof scrollbarProps>\n\nexport const scrollbarEmits = {\n 'end-reached': (direction: ScrollbarDirection) =>\n ['left', 'right', 'top', 'bottom'].includes(direction),\n scroll: ({\n scrollTop,\n scrollLeft,\n }: {\n scrollTop: number\n scrollLeft: number\n }) => [scrollTop, scrollLeft].every(isNumber),\n}\nexport type ScrollbarEmits = typeof scrollbarEmits\nexport type ScrollbarDirection = 'top' | 'bottom' | 'left' | 'right'\n\nexport type ScrollbarInstance = InstanceType<typeof Scrollbar> & unknown\n"],"names":["buildProps","definePropType","useAriaProps","isNumber"],"mappings":";;;;;;AA0FO,MAAM,iBAAiBA,kBAAA,CAAW;AAAA;AAAA;AAAA;AAAA,EAIvC,QAAA,EAAU;AAAA,IACR,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM,CAAC,MAAA,EAAQ,MAAM,CAAA;AAAA,IACrB,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,SAAA,EAAW;AAAA,IACT,IAAA,EAAM,CAAC,MAAA,EAAQ,MAAM,CAAA;AAAA,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Aa,iBAAiB,CAAC;AAClD,CAAU;AAOH,MAAM,cAAA,GAAiB;AAAA,EAC5B,aAAA,EAAe,CAAC,SAAA,KACd,CAAC,MAAA,EAAQ,SAAS,KAAA,EAAO,QAAQ,CAAA,CAAE,QAAA,CAAS,SAAS,CAAA;AAAA,EACvD,QAAQ,CAAC;AAAA,IACP,SAAA;AAAA,IACA;AAAA,QAII,CAAC,SAAA,EAAW,UAAU,CAAA,CAAE,MAAMC,cAAQ;AAC9C;;;;;"}
@@ -22,5 +22,8 @@ export declare const thumbProps: {
22
22
  };
23
23
  readonly always: BooleanConstructor;
24
24
  };
25
+ /**
26
+ * @deprecated Removed after 3.0.0, Use `ThumbProps` instead.
27
+ */
25
28
  export type ThumbPropsPublic = ExtractPublicPropTypes<typeof thumbProps>;
26
29
  export type ThumbInstance = InstanceType<typeof Thumb> & unknown;
@@ -1 +1 @@
1
- {"version":3,"file":"thumb.js","sources":["../../../../../../packages/components/scrollbar/src/thumb.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\n\nimport type { ExtractPublicPropTypes } from 'vue'\nimport type Thumb from './thumb.vue'\n\nexport interface ThumbProps {\n vertical?: boolean\n size?: string\n move?: number\n ratio: number\n always?: boolean\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `ThumbProps` instead.\n */\nexport const thumbProps = buildProps({\n vertical: Boolean,\n size: String,\n move: Number,\n ratio: {\n type: Number,\n required: true,\n },\n always: Boolean,\n} as const)\nexport type ThumbPropsPublic = ExtractPublicPropTypes<typeof thumbProps>\n\nexport type ThumbInstance = InstanceType<typeof Thumb> & unknown\n"],"names":["buildProps"],"mappings":";;;;AAgBO,MAAM,aAAaA,kBAAA,CAAW;AAAA,EACnC,QAAA,EAAU,OAAA;AAAA,EACV,IAAA,EAAM,MAAA;AAAA,EACN,IAAA,EAAM,MAAA;AAAA,EACN,KAAA,EAAO;AAAA,IACL,IAAA,EAAM,MAAA;AAAA,IACN,QAAA,EAAU;AAAA,GACZ;AAAA,EACA,MAAA,EAAQ;AACV,CAAU;;;;"}
1
+ {"version":3,"file":"thumb.js","sources":["../../../../../../packages/components/scrollbar/src/thumb.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\n\nimport type { ExtractPublicPropTypes } from 'vue'\nimport type Thumb from './thumb.vue'\n\nexport interface ThumbProps {\n vertical?: boolean\n size?: string\n move?: number\n ratio: number\n always?: boolean\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `ThumbProps` instead.\n */\nexport const thumbProps = buildProps({\n vertical: Boolean,\n size: String,\n move: Number,\n ratio: {\n type: Number,\n required: true,\n },\n always: Boolean,\n} as const)\n\n/**\n * @deprecated Removed after 3.0.0, Use `ThumbProps` instead.\n */\nexport type ThumbPropsPublic = ExtractPublicPropTypes<typeof thumbProps>\n\nexport type ThumbInstance = InstanceType<typeof Thumb> & unknown\n"],"names":["buildProps"],"mappings":";;;;AAgBO,MAAM,aAAaA,kBAAA,CAAW;AAAA,EACnC,QAAA,EAAU,OAAA;AAAA,EACV,IAAA,EAAM,MAAA;AAAA,EACN,IAAA,EAAM,MAAA;AAAA,EACN,KAAA,EAAO;AAAA,IACL,IAAA,EAAM,MAAA;AAAA,IACN,QAAA,EAAU;AAAA,GACZ;AAAA,EACA,MAAA,EAAQ;AACV,CAAU;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"skeleton-item.js","sources":["../../../../../../packages/components/skeleton/src/skeleton-item.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\n\nimport type SkeletonItem from './skeleton-item.vue'\nimport type { ExtractPublicPropTypes } from 'vue'\n\nexport interface SkeletonItemProps {\n /**\n * @description the current rendering skeleton type\n */\n variant?:\n | 'circle'\n | 'rect'\n | 'h1'\n | 'h3'\n | 'text'\n | 'caption'\n | 'p'\n | 'image'\n | 'button'\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `SkeletonItemProps` instead.\n */\nexport const skeletonItemProps = buildProps({\n /**\n * @description the current rendering skeleton type\n */\n variant: {\n type: String,\n values: [\n 'circle',\n 'rect',\n 'h1',\n 'h3',\n 'text',\n 'caption',\n 'p',\n 'image',\n 'button',\n ],\n default: 'text',\n },\n} as const)\n/**\n * @deprecated Removed after 3.0.0, Use `SkeletonItemProps` instead.\n */\nexport type SkeletonItemPropsPublic = ExtractPublicPropTypes<\n typeof skeletonItemProps\n>\n\nexport type SkeletonItemInstance = InstanceType<typeof SkeletonItem> & unknown\n"],"names":["buildProps"],"mappings":";;;;AAwBO,MAAM,oBAAoBA,kBAAA,CAAW;AAAA;AAAA;AAAA;AAAA,EAI1C,OAAA,EAAS;AAAA,IACP,IAAA,EAAM,MAAA;AAAA,IACN,MAAA,EAAQ;AAAA,MACN,QAAA;AAAA,MACA,MAAA;AAAA,MACA,IAAA;AAAA,MACA,IAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,MACA,GAAA;AAAA,MACA,OAAA;AAAA,MACA;AAAA,KACF;AAAA,IACA,OAAA,EAAS;AAAA;AAEb,CAAU;;;;"}
1
+ {"version":3,"file":"skeleton-item.js","sources":["../../../../../../packages/components/skeleton/src/skeleton-item.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\n\nimport type SkeletonItem from './skeleton-item.vue'\nimport type { ExtractPublicPropTypes } from 'vue'\n\nexport interface SkeletonItemProps {\n /**\n * @description the current rendering skeleton type\n */\n variant?:\n | 'circle'\n | 'rect'\n | 'h1'\n | 'h3'\n | 'text'\n | 'caption'\n | 'p'\n | 'image'\n | 'button'\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `SkeletonItemProps` instead.\n */\nexport const skeletonItemProps = buildProps({\n /**\n * @description the current rendering skeleton type\n */\n variant: {\n type: String,\n values: [\n 'circle',\n 'rect',\n 'h1',\n 'h3',\n 'text',\n 'caption',\n 'p',\n 'image',\n 'button',\n ],\n default: 'text',\n },\n} as const)\n\n/**\n * @deprecated Removed after 3.0.0, Use `SkeletonItemProps` instead.\n */\nexport type SkeletonItemPropsPublic = ExtractPublicPropTypes<\n typeof skeletonItemProps\n>\n\nexport type SkeletonItemInstance = InstanceType<typeof SkeletonItem> & unknown\n"],"names":["buildProps"],"mappings":";;;;AAwBO,MAAM,oBAAoBA,kBAAA,CAAW;AAAA;AAAA;AAAA;AAAA,EAI1C,OAAA,EAAS;AAAA,IACP,IAAA,EAAM,MAAA;AAAA,IACN,MAAA,EAAQ;AAAA,MACN,QAAA;AAAA,MACA,MAAA;AAAA,MACA,IAAA;AAAA,MACA,IAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,MACA,GAAA;AAAA,MACA,OAAA;AAAA,MACA;AAAA,KACF;AAAA,IACA,OAAA,EAAS;AAAA;AAEb,CAAU;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"skeleton.js","sources":["../../../../../../packages/components/skeleton/src/skeleton.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\n\nimport type Skeleton from './skeleton.vue'\nimport type { ExtractPublicPropTypes } from 'vue'\nimport type { ThrottleType } from '@element-plus/hooks'\n\nexport interface SkeletonProps {\n /**\n * @description whether showing the animation\n */\n animated?: boolean\n /**\n * @description how many fake items to render to the DOM\n */\n count?: number\n /**\n * @description numbers of the row, only useful when no template slot were given\n */\n rows?: number\n /**\n * @description whether showing the real DOM\n */\n loading?: boolean\n /**\n * @description rendering delay in milliseconds\n */\n throttle?: ThrottleType\n}\n/**\n * @deprecated Removed after 3.0.0, Use `SkeletonProps` instead.\n */\nexport const skeletonProps = buildProps({\n /**\n * @description whether showing the animation\n */\n animated: Boolean,\n /**\n * @description how many fake items to render to the DOM\n */\n count: {\n type: Number,\n default: 1,\n },\n /**\n * @description numbers of the row, only useful when no template slot were given\n */\n rows: {\n type: Number,\n default: 3,\n },\n /**\n * @description whether showing the real DOM\n */\n loading: {\n type: Boolean,\n default: true,\n },\n /**\n * @description rendering delay in milliseconds\n */\n throttle: {\n type: definePropType<ThrottleType>([Number, Object]),\n },\n} as const)\n/**\n * @deprecated Removed after 3.0.0, Use `SkeletonProps` instead.\n */\nexport type SkeletonPropsPublic = ExtractPublicPropTypes<typeof skeletonProps>\n\nexport type SkeletonInstance = InstanceType<typeof Skeleton> & unknown\n"],"names":["buildProps","definePropType"],"mappings":";;;;AA+BO,MAAM,gBAAgBA,kBAAA,CAAW;AAAA;AAAA;AAAA;AAAA,EAItC,QAAA,EAAU,OAAA;AAAA;AAAA;AAAA;AAAA,EAIV,KAAA,EAAO;AAAA,IACL,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,IAAA,EAAM;AAAA,IACJ,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,OAAA,EAAS;AAAA,IACP,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,QAAA,EAAU;AAAA,IACR,IAAA,EAAMC,sBAAA,CAA6B,CAAC,MAAA,EAAQ,MAAM,CAAC;AAAA;AAEvD,CAAU;;;;"}
1
+ {"version":3,"file":"skeleton.js","sources":["../../../../../../packages/components/skeleton/src/skeleton.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\n\nimport type Skeleton from './skeleton.vue'\nimport type { ExtractPublicPropTypes } from 'vue'\nimport type { ThrottleType } from '@element-plus/hooks'\n\nexport interface SkeletonProps {\n /**\n * @description whether showing the animation\n */\n animated?: boolean\n /**\n * @description how many fake items to render to the DOM\n */\n count?: number\n /**\n * @description numbers of the row, only useful when no template slot were given\n */\n rows?: number\n /**\n * @description whether showing the real DOM\n */\n loading?: boolean\n /**\n * @description rendering delay in milliseconds\n */\n throttle?: ThrottleType\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `SkeletonProps` instead.\n */\nexport const skeletonProps = buildProps({\n /**\n * @description whether showing the animation\n */\n animated: Boolean,\n /**\n * @description how many fake items to render to the DOM\n */\n count: {\n type: Number,\n default: 1,\n },\n /**\n * @description numbers of the row, only useful when no template slot were given\n */\n rows: {\n type: Number,\n default: 3,\n },\n /**\n * @description whether showing the real DOM\n */\n loading: {\n type: Boolean,\n default: true,\n },\n /**\n * @description rendering delay in milliseconds\n */\n throttle: {\n type: definePropType<ThrottleType>([Number, Object]),\n },\n} as const)\n\n/**\n * @deprecated Removed after 3.0.0, Use `SkeletonProps` instead.\n */\nexport type SkeletonPropsPublic = ExtractPublicPropTypes<typeof skeletonProps>\n\nexport type SkeletonInstance = InstanceType<typeof Skeleton> & unknown\n"],"names":["buildProps","definePropType"],"mappings":";;;;AAgCO,MAAM,gBAAgBA,kBAAA,CAAW;AAAA;AAAA;AAAA;AAAA,EAItC,QAAA,EAAU,OAAA;AAAA;AAAA;AAAA;AAAA,EAIV,KAAA,EAAO;AAAA,IACL,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,IAAA,EAAM;AAAA,IACJ,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,OAAA,EAAS;AAAA,IACP,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,QAAA,EAAU;AAAA,IACR,IAAA,EAAMC,sBAAA,CAA6B,CAAC,MAAA,EAAQ,MAAM,CAAC;AAAA;AAEvD,CAAU;;;;"}
@@ -1,5 +1,6 @@
1
+ import type { ExtractPublicPropTypes } from 'vue';
2
+ import type { IconPropType } from '@element-plus/nightly/es/utils';
1
3
  import type Step from './item.vue';
2
- import type { Component, ExtractPublicPropTypes } from 'vue';
3
4
  export interface StepProps {
4
5
  /**
5
6
  * @description step title
@@ -8,7 +9,7 @@ export interface StepProps {
8
9
  /**
9
10
  * @description step custom icon. Icons can be passed via named slot as well
10
11
  */
11
- icon?: string | Component;
12
+ icon?: IconPropType;
12
13
  /**
13
14
  * @description step description
14
15
  * @default ''
@@ -26,7 +27,7 @@ export interface StepProps {
26
27
  export declare const stepProps: {
27
28
  readonly title: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
28
29
  readonly icon: {
29
- readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown>>;
30
+ readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | ((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component))[], unknown, unknown>>;
30
31
  readonly required: false;
31
32
  readonly validator: ((val: unknown) => boolean) | undefined;
32
33
  __epPropKey: true;
@@ -34,5 +35,8 @@ export declare const stepProps: {
34
35
  readonly description: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
35
36
  readonly status: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "" | "wait" | "error" | "finish" | "success" | "process", unknown, "", boolean>;
36
37
  };
38
+ /**
39
+ * @deprecated Removed after 3.0.0, Use `StepProps` instead.
40
+ */
37
41
  export type StepPropsPublic = ExtractPublicPropTypes<typeof stepProps>;
38
42
  export type StepInstance = InstanceType<typeof Step> & unknown;
@@ -1 +1 @@
1
- {"version":3,"file":"item.js","sources":["../../../../../../packages/components/steps/src/item.ts"],"sourcesContent":["import { buildProps, iconPropType } from '@element-plus/utils'\n\nimport type Step from './item.vue'\nimport type { Component, ExtractPublicPropTypes } from 'vue'\n\nexport interface StepProps {\n /**\n * @description step title\n */\n title?: string\n /**\n * @description step custom icon. Icons can be passed via named slot as well\n */\n icon?: string | Component\n /**\n * @description step description\n * @default ''\n */\n description?: string\n /**\n * @description current status. It will be automatically set by Steps if not configured.\n * @default ''\n */\n status?: '' | 'wait' | 'process' | 'finish' | 'error' | 'success'\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `StepProps` instead.\n */\nexport const stepProps = buildProps({\n /**\n * @description step title\n */\n title: {\n type: String,\n default: '',\n },\n /**\n * @description step custom icon. Icons can be passed via named slot as well\n */\n icon: {\n type: iconPropType,\n },\n /**\n * @description step description\n */\n description: {\n type: String,\n default: '',\n },\n /**\n * @description current status. It will be automatically set by Steps if not configured.\n */\n status: {\n type: String,\n values: ['', 'wait', 'process', 'finish', 'error', 'success'],\n default: '',\n },\n} as const)\n\nexport type StepPropsPublic = ExtractPublicPropTypes<typeof stepProps>\n\nexport type StepInstance = InstanceType<typeof Step> & unknown\n"],"names":["buildProps","iconPropType"],"mappings":";;;;;AA6BO,MAAM,YAAYA,kBAAA,CAAW;AAAA;AAAA;AAAA;AAAA,EAIlC,KAAA,EAAO;AAAA,IACL,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,IAAA,EAAM;AAAA,IACJ,IAAA,EAAMC;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,WAAA,EAAa;AAAA,IACX,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM,MAAA;AAAA,IACN,QAAQ,CAAC,EAAA,EAAI,QAAQ,SAAA,EAAW,QAAA,EAAU,SAAS,SAAS,CAAA;AAAA,IAC5D,OAAA,EAAS;AAAA;AAEb,CAAU;;;;"}
1
+ {"version":3,"file":"item.js","sources":["../../../../../../packages/components/steps/src/item.ts"],"sourcesContent":["import { buildProps, iconPropType } from '@element-plus/utils'\n\nimport type { ExtractPublicPropTypes } from 'vue'\nimport type { IconPropType } from '@element-plus/utils'\nimport type Step from './item.vue'\n\nexport interface StepProps {\n /**\n * @description step title\n */\n title?: string\n /**\n * @description step custom icon. Icons can be passed via named slot as well\n */\n icon?: IconPropType\n /**\n * @description step description\n * @default ''\n */\n description?: string\n /**\n * @description current status. It will be automatically set by Steps if not configured.\n * @default ''\n */\n status?: '' | 'wait' | 'process' | 'finish' | 'error' | 'success'\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `StepProps` instead.\n */\nexport const stepProps = buildProps({\n /**\n * @description step title\n */\n title: {\n type: String,\n default: '',\n },\n /**\n * @description step custom icon. Icons can be passed via named slot as well\n */\n icon: {\n type: iconPropType,\n },\n /**\n * @description step description\n */\n description: {\n type: String,\n default: '',\n },\n /**\n * @description current status. It will be automatically set by Steps if not configured.\n */\n status: {\n type: String,\n values: ['', 'wait', 'process', 'finish', 'error', 'success'],\n default: '',\n },\n} as const)\n\n/**\n * @deprecated Removed after 3.0.0, Use `StepProps` instead.\n */\nexport type StepPropsPublic = ExtractPublicPropTypes<typeof stepProps>\n\nexport type StepInstance = InstanceType<typeof Step> & unknown\n"],"names":["buildProps","iconPropType"],"mappings":";;;;;AA8BO,MAAM,YAAYA,kBAAA,CAAW;AAAA;AAAA;AAAA;AAAA,EAIlC,KAAA,EAAO;AAAA,IACL,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,IAAA,EAAM;AAAA,IACJ,IAAA,EAAMC;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,WAAA,EAAa;AAAA,IACX,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM,MAAA;AAAA,IACN,QAAQ,CAAC,EAAA,EAAI,QAAQ,SAAA,EAAW,QAAA,EAAU,SAAS,SAAS,CAAA;AAAA,IAC5D,OAAA,EAAS;AAAA;AAEb,CAAU;;;;"}
@@ -35,7 +35,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_WithDefaultsLocal<
35
35
  status: string;
36
36
  }>>>, {
37
37
  title: string;
38
- icon: string | import("vue").Component;
38
+ icon: import("@element-plus/nightly/es/utils").IconPropType;
39
39
  description: string;
40
40
  status: "" | "wait" | "process" | "finish" | "error" | "success";
41
41
  }, {}>;
@@ -1,5 +1,6 @@
1
1
  import type { ComponentSize } from '@element-plus/nightly/es/constants';
2
- import type { Component, ExtractPublicPropTypes, PropType } from 'vue';
2
+ import type { ExtractPublicPropTypes, PropType } from 'vue';
3
+ import type { IconPropType } from '@element-plus/nightly/es/utils';
3
4
  import type Switch from './switch.vue';
4
5
  export interface SwitchProps {
5
6
  /**
@@ -29,19 +30,19 @@ export interface SwitchProps {
29
30
  /**
30
31
  * @description component of the icon displayed in action when in `off` state
31
32
  */
32
- inactiveActionIcon?: string | Component;
33
+ inactiveActionIcon?: IconPropType;
33
34
  /**
34
35
  * @description component of the icon displayed in action when in `on` state
35
36
  */
36
- activeActionIcon?: string | Component;
37
+ activeActionIcon?: IconPropType;
37
38
  /**
38
39
  * @description component of the icon displayed when in `on` state, overrides `active-text`
39
40
  */
40
- activeIcon?: string | Component;
41
+ activeIcon?: IconPropType;
41
42
  /**
42
43
  * @description component of the icon displayed when in `off` state, overrides `inactive-text`
43
44
  */
44
- inactiveIcon?: string | Component;
45
+ inactiveIcon?: IconPropType;
45
46
  /**
46
47
  * @description text displayed when in `on` state
47
48
  */
@@ -100,25 +101,25 @@ export declare const switchProps: {
100
101
  readonly width: import("@element-plus/nightly/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
101
102
  readonly inlinePrompt: BooleanConstructor;
102
103
  readonly inactiveActionIcon: {
103
- readonly type: PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown>>;
104
+ readonly type: PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | ((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component))[], unknown, unknown>>;
104
105
  readonly required: false;
105
106
  readonly validator: ((val: unknown) => boolean) | undefined;
106
107
  __epPropKey: true;
107
108
  };
108
109
  readonly activeActionIcon: {
109
- readonly type: PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown>>;
110
+ readonly type: PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | ((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component))[], unknown, unknown>>;
110
111
  readonly required: false;
111
112
  readonly validator: ((val: unknown) => boolean) | undefined;
112
113
  __epPropKey: true;
113
114
  };
114
115
  readonly activeIcon: {
115
- readonly type: PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown>>;
116
+ readonly type: PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | ((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component))[], unknown, unknown>>;
116
117
  readonly required: false;
117
118
  readonly validator: ((val: unknown) => boolean) | undefined;
118
119
  __epPropKey: true;
119
120
  };
120
121
  readonly inactiveIcon: {
121
- readonly type: PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown>>;
122
+ readonly type: PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | ((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component))[], unknown, unknown>>;
122
123
  readonly required: false;
123
124
  readonly validator: ((val: unknown) => boolean) | undefined;
124
125
  __epPropKey: true;
@@ -1 +1 @@
1
- {"version":3,"file":"switch.js","sources":["../../../../../../packages/components/switch/src/switch.ts"],"sourcesContent":["import {\n buildProps,\n definePropType,\n iconPropType,\n isBoolean,\n isNumber,\n isString,\n isValidComponentSize,\n} from '@element-plus/utils'\nimport {\n CHANGE_EVENT,\n INPUT_EVENT,\n UPDATE_MODEL_EVENT,\n} from '@element-plus/constants'\nimport { useAriaProps } from '@element-plus/hooks'\n\nimport type { ComponentSize } from '@element-plus/constants'\nimport type { Component, ExtractPublicPropTypes, PropType } from 'vue'\nimport type Switch from './switch.vue'\n\nexport interface SwitchProps {\n /**\n * @description binding value, it should be equivalent to either `active-value` or `inactive-value`, by default it's `boolean` type\n */\n modelValue?: boolean | string | number\n /**\n * @description whether Switch is disabled\n */\n disabled?: boolean\n /**\n * @description whether Switch is in loading state\n */\n loading?: boolean\n /**\n * @description size of Switch\n */\n size?: ComponentSize\n /**\n * @description width of Switch\n */\n width?: string | number\n /**\n * @description whether icon or text is displayed inside dot, only the first character will be rendered for text\n */\n inlinePrompt?: boolean\n /**\n * @description component of the icon displayed in action when in `off` state\n */\n inactiveActionIcon?: string | Component\n /**\n * @description component of the icon displayed in action when in `on` state\n */\n activeActionIcon?: string | Component\n /**\n * @description component of the icon displayed when in `on` state, overrides `active-text`\n */\n activeIcon?: string | Component\n /**\n * @description component of the icon displayed when in `off` state, overrides `inactive-text`\n */\n inactiveIcon?: string | Component\n /**\n * @description text displayed when in `on` state\n */\n activeText?: string\n /**\n * @description text displayed when in `off` state\n */\n inactiveText?: string\n /**\n * @description switch value when in `on` state\n */\n activeValue?: boolean | string | number\n /**\n * @description switch value when in `off` state\n */\n inactiveValue?: boolean | string | number\n /**\n * @description input name of Switch\n */\n name?: string\n /**\n * @description whether to trigger form validation\n */\n validateEvent?: boolean\n /**\n * @description before-change hook before the switch state changes. If `false` is returned or a `Promise` is returned and then is rejected, will stop switching\n */\n beforeChange?: () => Promise<boolean> | boolean\n /**\n * @description id for input\n */\n id?: string\n /**\n * @description tabindex for input\n */\n tabindex?: string | number\n /**\n * @description native `aria-label` attribute\n */\n ariaLabel?: string\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `SwitchProps` instead.\n */\nexport const switchProps = buildProps({\n /**\n * @description binding value, it should be equivalent to either `active-value` or `inactive-value`, by default it's `boolean` type\n */\n modelValue: {\n type: [Boolean, String, Number],\n default: false,\n },\n /**\n * @description whether Switch is disabled\n */\n disabled: {\n type: Boolean,\n default: undefined,\n },\n /**\n * @description whether Switch is in loading state\n */\n loading: Boolean,\n /**\n * @description size of Switch\n */\n size: {\n type: String as PropType<ComponentSize>,\n validator: isValidComponentSize,\n },\n /**\n * @description width of Switch\n */\n width: {\n type: [String, Number],\n default: '',\n },\n /**\n * @description whether icon or text is displayed inside dot, only the first character will be rendered for text\n */\n inlinePrompt: Boolean,\n /**\n * @description component of the icon displayed in action when in `off` state\n */\n inactiveActionIcon: {\n type: iconPropType,\n },\n /**\n * @description component of the icon displayed in action when in `on` state\n */\n activeActionIcon: {\n type: iconPropType,\n },\n /**\n * @description component of the icon displayed when in `on` state, overrides `active-text`\n */\n activeIcon: {\n type: iconPropType,\n },\n /**\n * @description component of the icon displayed when in `off` state, overrides `inactive-text`\n */\n inactiveIcon: {\n type: iconPropType,\n },\n /**\n * @description text displayed when in `on` state\n */\n activeText: {\n type: String,\n default: '',\n },\n /**\n * @description text displayed when in `off` state\n */\n inactiveText: {\n type: String,\n default: '',\n },\n /**\n * @description switch value when in `on` state\n */\n activeValue: {\n type: [Boolean, String, Number],\n default: true,\n },\n /**\n * @description switch value when in `off` state\n */\n inactiveValue: {\n type: [Boolean, String, Number],\n default: false,\n },\n /**\n * @description input name of Switch\n */\n name: {\n type: String,\n default: '',\n },\n /**\n * @description whether to trigger form validation\n */\n validateEvent: {\n type: Boolean,\n default: true,\n },\n /**\n * @description before-change hook before the switch state changes. If `false` is returned or a `Promise` is returned and then is rejected, will stop switching\n */\n beforeChange: {\n type: definePropType<() => Promise<boolean> | boolean>(Function),\n },\n /**\n * @description id for input\n */\n id: String,\n /**\n * @description tabindex for input\n */\n tabindex: {\n type: [String, Number],\n },\n ...useAriaProps(['ariaLabel']),\n} as const)\n\n/**\n * @deprecated Removed after 3.0.0, Use `SwitchProps` instead.\n */\nexport type SwitchPropsPublic = ExtractPublicPropTypes<typeof switchProps>\n\nexport const switchEmits = {\n [UPDATE_MODEL_EVENT]: (val: boolean | string | number) =>\n isBoolean(val) || isString(val) || isNumber(val),\n [CHANGE_EVENT]: (val: boolean | string | number) =>\n isBoolean(val) || isString(val) || isNumber(val),\n [INPUT_EVENT]: (val: boolean | string | number) =>\n isBoolean(val) || isString(val) || isNumber(val),\n}\nexport type SwitchEmits = typeof switchEmits\n\nexport type SwitchInstance = InstanceType<typeof Switch> & unknown\n"],"names":["buildProps","isValidComponentSize","iconPropType","definePropType","useAriaProps","UPDATE_MODEL_EVENT","isBoolean","isString","isNumber","CHANGE_EVENT","INPUT_EVENT"],"mappings":";;;;;;;;;;AA0GO,MAAM,cAAcA,kBAAA,CAAW;AAAA;AAAA;AAAA;AAAA,EAIpC,UAAA,EAAY;AAAA,IACV,IAAA,EAAM,CAAC,OAAA,EAAS,MAAA,EAAQ,MAAM,CAAA;AAAA,IAC9B,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,QAAA,EAAU;AAAA,IACR,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,OAAA,EAAS,OAAA;AAAA;AAAA;AAAA;AAAA,EAIT,IAAA,EAAM;AAAA,IACJ,IAAA,EAAM,MAAA;AAAA,IACN,SAAA,EAAWC;AAAA,GACb;AAAA;AAAA;AAAA;AAAA,EAIA,KAAA,EAAO;AAAA,IACL,IAAA,EAAM,CAAC,MAAA,EAAQ,MAAM,CAA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IA,EAAA,EAAI,MAAA;AAAA;AAAA;AAAA;AAAA,EAIJ,QAAA,EAAU;AAAA,IACR,IAAA,EAAM,CAAC,MAAA,EAAQ,MAAM;AAAA,GACvB;AAAA,EACA,GAAGC,kBAAA,CAAa,CAAC,WAAW,CAAC;AAC/B,CAAU;AAOH,MAAM,WAAA,GAAc;AAAA,EACzB,CAACC,wBAAkB,GAAG,CAAC,GAAA,KACrBC,eAAA,CAAU,GAAG,CAAA,IAAKC,eAAA,CAAS,GAAG,CAAA,IAAKC,cAAA,CAAS,GAAG,CAAA;AAAA,EACjD,CAACC,kBAAY,GAAG,CAAC,GAAA,KACfH,eAAA,CAAU,GAAG,CAAA,IAAKC,eAAA,CAAS,GAAG,CAAA,IAAKC,cAAA,CAAS,GAAG,CAAA;AAAA,EACjD,CAACE,iBAAW,GAAG,CAAC,GAAA,KACdJ,eAAA,CAAU,GAAG,CAAA,IAAKC,eAAA,CAAS,GAAG,CAAA,IAAKC,cAAA,CAAS,GAAG;AACnD;;;;;"}
1
+ {"version":3,"file":"switch.js","sources":["../../../../../../packages/components/switch/src/switch.ts"],"sourcesContent":["import {\n buildProps,\n definePropType,\n iconPropType,\n isBoolean,\n isNumber,\n isString,\n isValidComponentSize,\n} from '@element-plus/utils'\nimport {\n CHANGE_EVENT,\n INPUT_EVENT,\n UPDATE_MODEL_EVENT,\n} from '@element-plus/constants'\nimport { useAriaProps } from '@element-plus/hooks'\n\nimport type { ComponentSize } from '@element-plus/constants'\nimport type { ExtractPublicPropTypes, PropType } from 'vue'\nimport type { IconPropType } from '@element-plus/utils'\nimport type Switch from './switch.vue'\n\nexport interface SwitchProps {\n /**\n * @description binding value, it should be equivalent to either `active-value` or `inactive-value`, by default it's `boolean` type\n */\n modelValue?: boolean | string | number\n /**\n * @description whether Switch is disabled\n */\n disabled?: boolean\n /**\n * @description whether Switch is in loading state\n */\n loading?: boolean\n /**\n * @description size of Switch\n */\n size?: ComponentSize\n /**\n * @description width of Switch\n */\n width?: string | number\n /**\n * @description whether icon or text is displayed inside dot, only the first character will be rendered for text\n */\n inlinePrompt?: boolean\n /**\n * @description component of the icon displayed in action when in `off` state\n */\n inactiveActionIcon?: IconPropType\n /**\n * @description component of the icon displayed in action when in `on` state\n */\n activeActionIcon?: IconPropType\n /**\n * @description component of the icon displayed when in `on` state, overrides `active-text`\n */\n activeIcon?: IconPropType\n /**\n * @description component of the icon displayed when in `off` state, overrides `inactive-text`\n */\n inactiveIcon?: IconPropType\n /**\n * @description text displayed when in `on` state\n */\n activeText?: string\n /**\n * @description text displayed when in `off` state\n */\n inactiveText?: string\n /**\n * @description switch value when in `on` state\n */\n activeValue?: boolean | string | number\n /**\n * @description switch value when in `off` state\n */\n inactiveValue?: boolean | string | number\n /**\n * @description input name of Switch\n */\n name?: string\n /**\n * @description whether to trigger form validation\n */\n validateEvent?: boolean\n /**\n * @description before-change hook before the switch state changes. If `false` is returned or a `Promise` is returned and then is rejected, will stop switching\n */\n beforeChange?: () => Promise<boolean> | boolean\n /**\n * @description id for input\n */\n id?: string\n /**\n * @description tabindex for input\n */\n tabindex?: string | number\n /**\n * @description native `aria-label` attribute\n */\n ariaLabel?: string\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `SwitchProps` instead.\n */\nexport const switchProps = buildProps({\n /**\n * @description binding value, it should be equivalent to either `active-value` or `inactive-value`, by default it's `boolean` type\n */\n modelValue: {\n type: [Boolean, String, Number],\n default: false,\n },\n /**\n * @description whether Switch is disabled\n */\n disabled: {\n type: Boolean,\n default: undefined,\n },\n /**\n * @description whether Switch is in loading state\n */\n loading: Boolean,\n /**\n * @description size of Switch\n */\n size: {\n type: String as PropType<ComponentSize>,\n validator: isValidComponentSize,\n },\n /**\n * @description width of Switch\n */\n width: {\n type: [String, Number],\n default: '',\n },\n /**\n * @description whether icon or text is displayed inside dot, only the first character will be rendered for text\n */\n inlinePrompt: Boolean,\n /**\n * @description component of the icon displayed in action when in `off` state\n */\n inactiveActionIcon: {\n type: iconPropType,\n },\n /**\n * @description component of the icon displayed in action when in `on` state\n */\n activeActionIcon: {\n type: iconPropType,\n },\n /**\n * @description component of the icon displayed when in `on` state, overrides `active-text`\n */\n activeIcon: {\n type: iconPropType,\n },\n /**\n * @description component of the icon displayed when in `off` state, overrides `inactive-text`\n */\n inactiveIcon: {\n type: iconPropType,\n },\n /**\n * @description text displayed when in `on` state\n */\n activeText: {\n type: String,\n default: '',\n },\n /**\n * @description text displayed when in `off` state\n */\n inactiveText: {\n type: String,\n default: '',\n },\n /**\n * @description switch value when in `on` state\n */\n activeValue: {\n type: [Boolean, String, Number],\n default: true,\n },\n /**\n * @description switch value when in `off` state\n */\n inactiveValue: {\n type: [Boolean, String, Number],\n default: false,\n },\n /**\n * @description input name of Switch\n */\n name: {\n type: String,\n default: '',\n },\n /**\n * @description whether to trigger form validation\n */\n validateEvent: {\n type: Boolean,\n default: true,\n },\n /**\n * @description before-change hook before the switch state changes. If `false` is returned or a `Promise` is returned and then is rejected, will stop switching\n */\n beforeChange: {\n type: definePropType<() => Promise<boolean> | boolean>(Function),\n },\n /**\n * @description id for input\n */\n id: String,\n /**\n * @description tabindex for input\n */\n tabindex: {\n type: [String, Number],\n },\n ...useAriaProps(['ariaLabel']),\n} as const)\n\n/**\n * @deprecated Removed after 3.0.0, Use `SwitchProps` instead.\n */\nexport type SwitchPropsPublic = ExtractPublicPropTypes<typeof switchProps>\n\nexport const switchEmits = {\n [UPDATE_MODEL_EVENT]: (val: boolean | string | number) =>\n isBoolean(val) || isString(val) || isNumber(val),\n [CHANGE_EVENT]: (val: boolean | string | number) =>\n isBoolean(val) || isString(val) || isNumber(val),\n [INPUT_EVENT]: (val: boolean | string | number) =>\n isBoolean(val) || isString(val) || isNumber(val),\n}\nexport type SwitchEmits = typeof switchEmits\n\nexport type SwitchInstance = InstanceType<typeof Switch> & unknown\n"],"names":["buildProps","isValidComponentSize","iconPropType","definePropType","useAriaProps","UPDATE_MODEL_EVENT","isBoolean","isString","isNumber","CHANGE_EVENT","INPUT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ources":["../../../../../../packages/components/tabs/src/tab-bar.ts"],"sourcesContent":["import { buildProps, definePropType, mutable } from '@element-plus/utils'\n\nimport type { ExtractPublicPropTypes } from 'vue'\nimport type { TabPaneName, TabsPaneContext } from './constants'\nimport type TabBar from './tab-bar.vue'\n\n/**\n * @deprecated Removed after 3.0.0, Use `TabBarProps` instead.\n */\nexport const tabBarProps = buildProps({\n tabs: {\n type: definePropType<TabsPaneContext[]>(Array),\n default: () => mutable([] as const),\n },\n tabRefs: {\n type: definePropType<{ [key: TabPaneName]: HTMLDivElement }>(Object),\n default: () => mutable({} as const),\n },\n} as const)\n\nexport type TabBarProps = {\n tabs?: TabsPaneContext[]\n tabRefs?: { [key: TabPaneName]: HTMLDivElement }\n}\n/**\n * @deprecated Removed after 3.0.0, Use `TabBarProps` instead.\n */\nexport type TabBarPropsPublic = ExtractPublicPropTypes<typeof tabBarProps>\nexport type TabBarInstance = InstanceType<typeof TabBar> & unknown\n"],"names":["buildProps","definePropType","mutable"],"mappings":";;;;;AASO,MAAM,cAAcA,kBAAA,CAAW;AAAA,EACpC,IAAA,EAAM;AAAA,IACJ,IAAA,EAAMC,uBAAkC,KAAK,CAAA;AAAA,IAC7C,OAAA,EAAS,MAAMC,kBAAA,CAAQ,EAAW;AAAA,GACpC;AAAA,EACA,OAAA,EAAS;AAAA,IACP,IAAA,EAAMD,uBAAuD,MAAM,CAAA;AAAA,IACnE,OAAA,EAAS,MAAMC,kBAAA,CAAQ,EAAW;AAAA;AAEtC,CAAU;;;;"}
1
+ {"version":3,"file":"tab-bar.js","sources":["../../../../../../packages/components/tabs/src/tab-bar.ts"],"sourcesContent":["import { buildProps, definePropType, mutable } from '@element-plus/utils'\n\nimport type { ExtractPublicPropTypes } from 'vue'\nimport type { TabPaneName, TabsPaneContext } from './constants'\nimport type TabBar from './tab-bar.vue'\n\n/**\n * @deprecated Removed after 3.0.0, Use `TabBarProps` instead.\n */\nexport const tabBarProps = buildProps({\n tabs: {\n type: definePropType<TabsPaneContext[]>(Array),\n default: () => mutable([] as const),\n },\n tabRefs: {\n type: definePropType<{ [key: TabPaneName]: HTMLDivElement }>(Object),\n default: () => mutable({} as const),\n },\n} as const)\n\nexport type TabBarProps = {\n tabs?: TabsPaneContext[]\n tabRefs?: { [key: TabPaneName]: HTMLDivElement }\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `TabBarProps` instead.\n */\nexport type TabBarPropsPublic = ExtractPublicPropTypes<typeof tabBarProps>\nexport type TabBarInstance = InstanceType<typeof TabBar> & unknown\n"],"names":["buildProps","definePropType","mutable"],"mappings":";;;;;AASO,MAAM,cAAcA,kBAAA,CAAW;AAAA,EACpC,IAAA,EAAM;AAAA,IACJ,IAAA,EAAMC,uBAAkC,KAAK,CAAA;AAAA,IAC7C,OAAA,EAAS,MAAMC,kBAAA,CAAQ,EAAW;AAAA,GACpC;AAAA,EACA,OAAA,EAAS;AAAA,IACP,IAAA,EAAMD,uBAAuD,MAAM,CAAA;AAAA,IACnE,OAAA,EAAS,MAAMC,kBAAA,CAAQ,EAAW;AAAA;AAEtC,CAAU;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"tab-pane.js","sources":["../../../../../../packages/components/tabs/src/tab-pane.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\n\nimport type { ExtractPublicPropTypes } from 'vue'\nimport type TabPane from './tab-pane.vue'\n\n/**\n * @deprecated Removed after 3.0.0, Use `TabPaneProps` instead.\n */\nexport const tabPaneProps = buildProps({\n /**\n * @description title of the tab\n */\n label: {\n type: String,\n default: '',\n },\n /**\n * @description identifier corresponding to the name of Tabs, representing the alias of the tab-pane, the default is ordinal number of the tab-pane in the sequence, e.g. the first tab-pane is '0'\n */\n name: {\n type: [String, Number],\n },\n /**\n * @description whether Tab is closable\n */\n closable: {\n type: Boolean,\n default: undefined,\n },\n /**\n * @description whether Tab is disabled\n */\n disabled: Boolean,\n /**\n * @description whether Tab is lazily rendered\n */\n lazy: Boolean,\n} as const)\n\nexport type TabPaneProps = {\n /**\n * @description title of the tab\n */\n label?: string\n /**\n * @description identifier corresponding to the name of Tabs, representing the alias of the tab-pane, the default is ordinal number of the tab-pane in the sequence, e.g. the first tab-pane is '0'\n */\n name?: string | number\n /**\n * @description whether Tab is closable\n */\n closable?: boolean\n /**\n * @description whether Tab is disabled\n */\n disabled?: boolean\n /**\n * @description whether Tab is lazily rendered\n */\n lazy?: boolean\n}\n/**\n * @deprecated Removed after 3.0.0, Use `TabPaneProps` instead.\n */\nexport type TabPanePropsPublic = ExtractPublicPropTypes<typeof tabPaneProps>\n\nexport type TabPaneInstance = InstanceType<typeof TabPane> & unknown\n"],"names":["buildProps"],"mappings":";;;;AAQO,MAAM,eAAeA,kBAAA,CAAW;AAAA;AAAA;AAAA;AAAA,EAIrC,KAAA,EAAO;AAAA,IACL,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,IAAA,EAAM;AAAA,IACJ,IAAA,EAAM,CAAC,MAAA,EAAQ,MAAM;AAAA,GACvB;AAAA;AAAA;AAAA;AAAA,EAIA,QAAA,EAAU;AAAA,IACR,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,QAAA,EAAU,OAAA;AAAA;AAAA;AAAA;AAAA,EAIV,IAAA,EAAM;AACR,CAAU;;;;"}
1
+ {"version":3,"file":"tab-pane.js","sources":["../../../../../../packages/components/tabs/src/tab-pane.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\n\nimport type { ExtractPublicPropTypes } from 'vue'\nimport type TabPane from './tab-pane.vue'\n\n/**\n * @deprecated Removed after 3.0.0, Use `TabPaneProps` instead.\n */\nexport const tabPaneProps = buildProps({\n /**\n * @description title of the tab\n */\n label: {\n type: String,\n default: '',\n },\n /**\n * @description identifier corresponding to the name of Tabs, representing the alias of the tab-pane, the default is ordinal number of the tab-pane in the sequence, e.g. the first tab-pane is '0'\n */\n name: {\n type: [String, Number],\n },\n /**\n * @description whether Tab is closable\n */\n closable: {\n type: Boolean,\n default: undefined,\n },\n /**\n * @description whether Tab is disabled\n */\n disabled: Boolean,\n /**\n * @description whether Tab is lazily rendered\n */\n lazy: Boolean,\n} as const)\n\nexport type TabPaneProps = {\n /**\n * @description title of the tab\n */\n label?: string\n /**\n * @description identifier corresponding to the name of Tabs, representing the alias of the tab-pane, the default is ordinal number of the tab-pane in the sequence, e.g. the first tab-pane is '0'\n */\n name?: string | number\n /**\n * @description whether Tab is closable\n */\n closable?: boolean\n /**\n * @description whether Tab is disabled\n */\n disabled?: boolean\n /**\n * @description whether Tab is lazily rendered\n */\n lazy?: boolean\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `TabPaneProps` instead.\n */\nexport type TabPanePropsPublic = ExtractPublicPropTypes<typeof tabPaneProps>\n\nexport type TabPaneInstance = InstanceType<typeof TabPane> & unknown\n"],"names":["buildProps"],"mappings":";;;;AAQO,MAAM,eAAeA,kBAAA,CAAW;AAAA;AAAA;AAAA;AAAA,EAIrC,KAAA,EAAO;AAAA,IACL,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,IAAA,EAAM;AAAA,IACJ,IAAA,EAAM,CAAC,MAAA,EAAQ,MAAM;AAAA,GACvB;AAAA;AAAA;AAAA;AAAA,EAIA,QAAA,EAAU;AAAA,IACR,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,QAAA,EAAU,OAAA;AAAA;AAAA;AAAA;AAAA,EAIV,IAAA,EAAM;AACR,CAAU;;;;"}