@element-plus/nightly 0.0.20221013 → 0.0.20221014

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 (424) hide show
  1. package/dist/index.full.js +7 -35
  2. package/dist/index.full.min.js +12 -12
  3. package/dist/index.full.min.js.map +1 -1
  4. package/dist/index.full.min.mjs +13 -13
  5. package/dist/index.full.min.mjs.map +1 -1
  6. package/dist/index.full.mjs +8 -36
  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.js +1 -1
  12. package/dist/locale/ar.min.js +1 -1
  13. package/dist/locale/ar.min.mjs +1 -1
  14. package/dist/locale/ar.mjs +1 -1
  15. package/dist/locale/az.js +1 -1
  16. package/dist/locale/az.min.js +1 -1
  17. package/dist/locale/az.min.mjs +1 -1
  18. package/dist/locale/az.mjs +1 -1
  19. package/dist/locale/bg.js +1 -1
  20. package/dist/locale/bg.min.js +1 -1
  21. package/dist/locale/bg.min.mjs +1 -1
  22. package/dist/locale/bg.mjs +1 -1
  23. package/dist/locale/bn.js +1 -1
  24. package/dist/locale/bn.min.js +1 -1
  25. package/dist/locale/bn.min.mjs +1 -1
  26. package/dist/locale/bn.mjs +1 -1
  27. package/dist/locale/ca.js +1 -1
  28. package/dist/locale/ca.min.js +1 -1
  29. package/dist/locale/ca.min.mjs +1 -1
  30. package/dist/locale/ca.mjs +1 -1
  31. package/dist/locale/cs.js +1 -1
  32. package/dist/locale/cs.min.js +1 -1
  33. package/dist/locale/cs.min.mjs +1 -1
  34. package/dist/locale/cs.mjs +1 -1
  35. package/dist/locale/da.js +1 -1
  36. package/dist/locale/da.min.js +1 -1
  37. package/dist/locale/da.min.mjs +1 -1
  38. package/dist/locale/da.mjs +1 -1
  39. package/dist/locale/de.js +1 -1
  40. package/dist/locale/de.min.js +1 -1
  41. package/dist/locale/de.min.mjs +1 -1
  42. package/dist/locale/de.mjs +1 -1
  43. package/dist/locale/el.js +1 -1
  44. package/dist/locale/el.min.js +1 -1
  45. package/dist/locale/el.min.mjs +1 -1
  46. package/dist/locale/el.mjs +1 -1
  47. package/dist/locale/en.js +1 -1
  48. package/dist/locale/en.min.js +1 -1
  49. package/dist/locale/en.min.mjs +1 -1
  50. package/dist/locale/en.mjs +1 -1
  51. package/dist/locale/eo.js +1 -1
  52. package/dist/locale/eo.min.js +1 -1
  53. package/dist/locale/eo.min.mjs +1 -1
  54. package/dist/locale/eo.mjs +1 -1
  55. package/dist/locale/es.js +1 -1
  56. package/dist/locale/es.min.js +1 -1
  57. package/dist/locale/es.min.mjs +1 -1
  58. package/dist/locale/es.mjs +1 -1
  59. package/dist/locale/et.js +1 -1
  60. package/dist/locale/et.min.js +1 -1
  61. package/dist/locale/et.min.mjs +1 -1
  62. package/dist/locale/et.mjs +1 -1
  63. package/dist/locale/eu.js +1 -1
  64. package/dist/locale/eu.min.js +1 -1
  65. package/dist/locale/eu.min.mjs +1 -1
  66. package/dist/locale/eu.mjs +1 -1
  67. package/dist/locale/fa.js +1 -1
  68. package/dist/locale/fa.min.js +1 -1
  69. package/dist/locale/fa.min.mjs +1 -1
  70. package/dist/locale/fa.mjs +1 -1
  71. package/dist/locale/fi.js +1 -1
  72. package/dist/locale/fi.min.js +1 -1
  73. package/dist/locale/fi.min.mjs +1 -1
  74. package/dist/locale/fi.mjs +1 -1
  75. package/dist/locale/fr.js +1 -1
  76. package/dist/locale/fr.min.js +1 -1
  77. package/dist/locale/fr.min.mjs +1 -1
  78. package/dist/locale/fr.mjs +1 -1
  79. package/dist/locale/he.js +1 -1
  80. package/dist/locale/he.min.js +1 -1
  81. package/dist/locale/he.min.mjs +1 -1
  82. package/dist/locale/he.mjs +1 -1
  83. package/dist/locale/hr.js +1 -1
  84. package/dist/locale/hr.min.js +1 -1
  85. package/dist/locale/hr.min.mjs +1 -1
  86. package/dist/locale/hr.mjs +1 -1
  87. package/dist/locale/hu.js +1 -1
  88. package/dist/locale/hu.min.js +1 -1
  89. package/dist/locale/hu.min.mjs +1 -1
  90. package/dist/locale/hu.mjs +1 -1
  91. package/dist/locale/hy-am.js +1 -1
  92. package/dist/locale/hy-am.min.js +1 -1
  93. package/dist/locale/hy-am.min.mjs +1 -1
  94. package/dist/locale/hy-am.mjs +1 -1
  95. package/dist/locale/id.js +1 -1
  96. package/dist/locale/id.min.js +1 -1
  97. package/dist/locale/id.min.mjs +1 -1
  98. package/dist/locale/id.mjs +1 -1
  99. package/dist/locale/it.js +1 -1
  100. package/dist/locale/it.min.js +1 -1
  101. package/dist/locale/it.min.mjs +1 -1
  102. package/dist/locale/it.mjs +1 -1
  103. package/dist/locale/ja.js +1 -1
  104. package/dist/locale/ja.min.js +1 -1
  105. package/dist/locale/ja.min.mjs +1 -1
  106. package/dist/locale/ja.mjs +1 -1
  107. package/dist/locale/kk.js +1 -1
  108. package/dist/locale/kk.min.js +1 -1
  109. package/dist/locale/kk.min.mjs +1 -1
  110. package/dist/locale/kk.mjs +1 -1
  111. package/dist/locale/km.js +1 -1
  112. package/dist/locale/km.min.js +1 -1
  113. package/dist/locale/km.min.mjs +1 -1
  114. package/dist/locale/km.mjs +1 -1
  115. package/dist/locale/ko.js +1 -1
  116. package/dist/locale/ko.min.js +1 -1
  117. package/dist/locale/ko.min.mjs +1 -1
  118. package/dist/locale/ko.mjs +1 -1
  119. package/dist/locale/ku.js +1 -1
  120. package/dist/locale/ku.min.js +1 -1
  121. package/dist/locale/ku.min.mjs +1 -1
  122. package/dist/locale/ku.mjs +1 -1
  123. package/dist/locale/ky.js +1 -1
  124. package/dist/locale/ky.min.js +1 -1
  125. package/dist/locale/ky.min.mjs +1 -1
  126. package/dist/locale/ky.mjs +1 -1
  127. package/dist/locale/lt.js +1 -1
  128. package/dist/locale/lt.min.js +1 -1
  129. package/dist/locale/lt.min.mjs +1 -1
  130. package/dist/locale/lt.mjs +1 -1
  131. package/dist/locale/lv.js +1 -1
  132. package/dist/locale/lv.min.js +1 -1
  133. package/dist/locale/lv.min.mjs +1 -1
  134. package/dist/locale/lv.mjs +1 -1
  135. package/dist/locale/mg.js +1 -1
  136. package/dist/locale/mg.min.js +1 -1
  137. package/dist/locale/mg.min.mjs +1 -1
  138. package/dist/locale/mg.mjs +1 -1
  139. package/dist/locale/mn.js +1 -1
  140. package/dist/locale/mn.min.js +1 -1
  141. package/dist/locale/mn.min.mjs +1 -1
  142. package/dist/locale/mn.mjs +1 -1
  143. package/dist/locale/nb-no.js +1 -1
  144. package/dist/locale/nb-no.min.js +1 -1
  145. package/dist/locale/nb-no.min.mjs +1 -1
  146. package/dist/locale/nb-no.mjs +1 -1
  147. package/dist/locale/nl.js +1 -1
  148. package/dist/locale/nl.min.js +1 -1
  149. package/dist/locale/nl.min.mjs +1 -1
  150. package/dist/locale/nl.mjs +1 -1
  151. package/dist/locale/pa.js +1 -1
  152. package/dist/locale/pa.min.js +1 -1
  153. package/dist/locale/pa.min.mjs +1 -1
  154. package/dist/locale/pa.mjs +1 -1
  155. package/dist/locale/pl.js +1 -1
  156. package/dist/locale/pl.min.js +1 -1
  157. package/dist/locale/pl.min.mjs +1 -1
  158. package/dist/locale/pl.mjs +1 -1
  159. package/dist/locale/pt-br.js +1 -1
  160. package/dist/locale/pt-br.min.js +1 -1
  161. package/dist/locale/pt-br.min.mjs +1 -1
  162. package/dist/locale/pt-br.mjs +1 -1
  163. package/dist/locale/pt.js +1 -1
  164. package/dist/locale/pt.min.js +1 -1
  165. package/dist/locale/pt.min.mjs +1 -1
  166. package/dist/locale/pt.mjs +1 -1
  167. package/dist/locale/ro.js +1 -1
  168. package/dist/locale/ro.min.js +1 -1
  169. package/dist/locale/ro.min.mjs +1 -1
  170. package/dist/locale/ro.mjs +1 -1
  171. package/dist/locale/ru.js +1 -1
  172. package/dist/locale/ru.min.js +1 -1
  173. package/dist/locale/ru.min.mjs +1 -1
  174. package/dist/locale/ru.mjs +1 -1
  175. package/dist/locale/sk.js +1 -1
  176. package/dist/locale/sk.min.js +1 -1
  177. package/dist/locale/sk.min.mjs +1 -1
  178. package/dist/locale/sk.mjs +1 -1
  179. package/dist/locale/sl.js +1 -1
  180. package/dist/locale/sl.min.js +1 -1
  181. package/dist/locale/sl.min.mjs +1 -1
  182. package/dist/locale/sl.mjs +1 -1
  183. package/dist/locale/sr.js +1 -1
  184. package/dist/locale/sr.min.js +1 -1
  185. package/dist/locale/sr.min.mjs +1 -1
  186. package/dist/locale/sr.mjs +1 -1
  187. package/dist/locale/sv.js +1 -1
  188. package/dist/locale/sv.min.js +1 -1
  189. package/dist/locale/sv.min.mjs +1 -1
  190. package/dist/locale/sv.mjs +1 -1
  191. package/dist/locale/ta.js +1 -1
  192. package/dist/locale/ta.min.js +1 -1
  193. package/dist/locale/ta.min.mjs +1 -1
  194. package/dist/locale/ta.mjs +1 -1
  195. package/dist/locale/th.js +1 -1
  196. package/dist/locale/th.min.js +1 -1
  197. package/dist/locale/th.min.mjs +1 -1
  198. package/dist/locale/th.mjs +1 -1
  199. package/dist/locale/tk.js +1 -1
  200. package/dist/locale/tk.min.js +1 -1
  201. package/dist/locale/tk.min.mjs +1 -1
  202. package/dist/locale/tk.mjs +1 -1
  203. package/dist/locale/tr.js +1 -1
  204. package/dist/locale/tr.min.js +1 -1
  205. package/dist/locale/tr.min.mjs +1 -1
  206. package/dist/locale/tr.mjs +1 -1
  207. package/dist/locale/ug-cn.js +1 -1
  208. package/dist/locale/ug-cn.min.js +1 -1
  209. package/dist/locale/ug-cn.min.mjs +1 -1
  210. package/dist/locale/ug-cn.mjs +1 -1
  211. package/dist/locale/uk.js +1 -1
  212. package/dist/locale/uk.min.js +1 -1
  213. package/dist/locale/uk.min.mjs +1 -1
  214. package/dist/locale/uk.mjs +1 -1
  215. package/dist/locale/uz-uz.js +1 -1
  216. package/dist/locale/uz-uz.min.js +1 -1
  217. package/dist/locale/uz-uz.min.mjs +1 -1
  218. package/dist/locale/uz-uz.mjs +1 -1
  219. package/dist/locale/vi.js +1 -1
  220. package/dist/locale/vi.min.js +1 -1
  221. package/dist/locale/vi.min.mjs +1 -1
  222. package/dist/locale/vi.mjs +1 -1
  223. package/dist/locale/zh-cn.js +1 -1
  224. package/dist/locale/zh-cn.min.js +1 -1
  225. package/dist/locale/zh-cn.min.mjs +1 -1
  226. package/dist/locale/zh-cn.mjs +1 -1
  227. package/dist/locale/zh-tw.js +1 -1
  228. package/dist/locale/zh-tw.min.js +1 -1
  229. package/dist/locale/zh-tw.min.mjs +1 -1
  230. package/dist/locale/zh-tw.mjs +1 -1
  231. package/es/components/alert/index.mjs +2 -2
  232. package/es/components/alert/src/alert.mjs +96 -36
  233. package/es/components/alert/src/alert.mjs.map +1 -1
  234. package/es/components/alert/src/alert2.mjs +36 -96
  235. package/es/components/alert/src/alert2.mjs.map +1 -1
  236. package/es/components/autocomplete/index.d.ts +49 -33
  237. package/es/components/autocomplete/src/autocomplete.vue.d.ts +49 -33
  238. package/es/components/avatar/index.mjs +2 -2
  239. package/es/components/avatar/src/avatar.mjs +67 -32
  240. package/es/components/avatar/src/avatar.mjs.map +1 -1
  241. package/es/components/avatar/src/avatar2.mjs +32 -67
  242. package/es/components/avatar/src/avatar2.mjs.map +1 -1
  243. package/es/components/badge/index.mjs +2 -2
  244. package/es/components/badge/src/badge.mjs +55 -17
  245. package/es/components/badge/src/badge.mjs.map +1 -1
  246. package/es/components/badge/src/badge2.mjs +17 -55
  247. package/es/components/badge/src/badge2.mjs.map +1 -1
  248. package/es/components/card/index.mjs +2 -2
  249. package/es/components/card/src/card.mjs +35 -16
  250. package/es/components/card/src/card.mjs.map +1 -1
  251. package/es/components/card/src/card2.mjs +16 -35
  252. package/es/components/card/src/card2.mjs.map +1 -1
  253. package/es/components/cascader/index.d.ts +62 -44
  254. package/es/components/cascader/src/index.vue.d.ts +31 -22
  255. package/es/components/color-picker/index.d.ts +18 -11
  256. package/es/components/color-picker/src/color-picker.vue.d.ts +18 -11
  257. package/es/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +18 -11
  258. package/es/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +18 -11
  259. package/es/components/date-picker/src/panel-utils.d.ts +36 -22
  260. package/es/components/descriptions/src/description2.mjs +1 -1
  261. package/es/components/descriptions/src/descriptions-row.mjs +64 -7
  262. package/es/components/descriptions/src/descriptions-row.mjs.map +1 -1
  263. package/es/components/descriptions/src/descriptions-row2.mjs +7 -64
  264. package/es/components/descriptions/src/descriptions-row2.mjs.map +1 -1
  265. package/es/components/index.mjs +10 -10
  266. package/es/components/input/index.d.ts +18 -11
  267. package/es/components/input/src/input.d.ts +6 -1
  268. package/es/components/input/src/input.mjs +1 -2
  269. package/es/components/input/src/input.mjs.map +1 -1
  270. package/es/components/input/src/input.vue.d.ts +18 -11
  271. package/es/components/input/src/input2.mjs +5 -32
  272. package/es/components/input/src/input2.mjs.map +1 -1
  273. package/es/components/input-number/index.d.ts +49 -33
  274. package/es/components/input-number/index.mjs +2 -2
  275. package/es/components/input-number/src/input-number.mjs +298 -57
  276. package/es/components/input-number/src/input-number.mjs.map +1 -1
  277. package/es/components/input-number/src/input-number.vue.d.ts +49 -33
  278. package/es/components/input-number/src/input-number2.mjs +57 -298
  279. package/es/components/input-number/src/input-number2.mjs.map +1 -1
  280. package/es/components/menu/index.mjs +2 -2
  281. package/es/components/menu/src/menu-item.mjs +100 -14
  282. package/es/components/menu/src/menu-item.mjs.map +1 -1
  283. package/es/components/menu/src/menu-item2.mjs +14 -100
  284. package/es/components/menu/src/menu-item2.mjs.map +1 -1
  285. package/es/components/page-header/index.mjs +2 -2
  286. package/es/components/page-header/src/page-header.mjs +102 -17
  287. package/es/components/page-header/src/page-header.mjs.map +1 -1
  288. package/es/components/page-header/src/page-header2.mjs +17 -102
  289. package/es/components/page-header/src/page-header2.mjs.map +1 -1
  290. package/es/components/pagination/src/components/jumper.vue.d.ts +18 -11
  291. package/es/components/pagination/src/components/prev.mjs +34 -18
  292. package/es/components/pagination/src/components/prev.mjs.map +1 -1
  293. package/es/components/pagination/src/components/prev2.mjs +18 -34
  294. package/es/components/pagination/src/components/prev2.mjs.map +1 -1
  295. package/es/components/pagination/src/pagination.mjs +1 -1
  296. package/es/components/radio/index.mjs +2 -2
  297. package/es/components/radio/src/radio-button.mjs +64 -9
  298. package/es/components/radio/src/radio-button.mjs.map +1 -1
  299. package/es/components/radio/src/radio-button2.mjs +9 -64
  300. package/es/components/radio/src/radio-button2.mjs.map +1 -1
  301. package/es/components/slider/index.d.ts +49 -33
  302. package/es/components/slider/src/slider.vue.d.ts +49 -33
  303. package/es/components/steps/index.mjs +2 -2
  304. package/es/components/steps/src/item.mjs +191 -20
  305. package/es/components/steps/src/item.mjs.map +1 -1
  306. package/es/components/steps/src/item2.mjs +20 -191
  307. package/es/components/steps/src/item2.mjs.map +1 -1
  308. package/es/components/tabs/index.mjs +2 -2
  309. package/es/components/tabs/src/tab-pane.mjs +73 -13
  310. package/es/components/tabs/src/tab-pane.mjs.map +1 -1
  311. package/es/components/tabs/src/tab-pane2.mjs +13 -73
  312. package/es/components/tabs/src/tab-pane2.mjs.map +1 -1
  313. package/es/components/time-picker/src/common/picker.vue.d.ts +18 -11
  314. package/es/components/transfer/index.d.ts +90 -55
  315. package/es/components/transfer/src/composables/use-check.mjs +1 -1
  316. package/es/components/transfer/src/transfer-panel.mjs +131 -19
  317. package/es/components/transfer/src/transfer-panel.mjs.map +1 -1
  318. package/es/components/transfer/src/transfer-panel.vue.d.ts +18 -11
  319. package/es/components/transfer/src/transfer-panel2.mjs +19 -131
  320. package/es/components/transfer/src/transfer-panel2.mjs.map +1 -1
  321. package/es/components/transfer/src/transfer.vue.d.ts +90 -55
  322. package/es/components/transfer/src/transfer2.mjs +1 -1
  323. package/es/index.mjs +10 -10
  324. package/es/version.d.ts +1 -1
  325. package/es/version.mjs +1 -1
  326. package/es/version.mjs.map +1 -1
  327. package/lib/components/alert/index.js +2 -2
  328. package/lib/components/alert/src/alert.js +95 -37
  329. package/lib/components/alert/src/alert.js.map +1 -1
  330. package/lib/components/alert/src/alert2.js +37 -95
  331. package/lib/components/alert/src/alert2.js.map +1 -1
  332. package/lib/components/autocomplete/index.d.ts +49 -33
  333. package/lib/components/autocomplete/src/autocomplete.vue.d.ts +49 -33
  334. package/lib/components/avatar/index.js +2 -2
  335. package/lib/components/avatar/src/avatar.js +67 -33
  336. package/lib/components/avatar/src/avatar.js.map +1 -1
  337. package/lib/components/avatar/src/avatar2.js +33 -67
  338. package/lib/components/avatar/src/avatar2.js.map +1 -1
  339. package/lib/components/badge/index.js +2 -2
  340. package/lib/components/badge/src/badge.js +55 -17
  341. package/lib/components/badge/src/badge.js.map +1 -1
  342. package/lib/components/badge/src/badge2.js +17 -55
  343. package/lib/components/badge/src/badge2.js.map +1 -1
  344. package/lib/components/card/index.js +2 -2
  345. package/lib/components/card/src/card.js +35 -16
  346. package/lib/components/card/src/card.js.map +1 -1
  347. package/lib/components/card/src/card2.js +16 -35
  348. package/lib/components/card/src/card2.js.map +1 -1
  349. package/lib/components/cascader/index.d.ts +62 -44
  350. package/lib/components/cascader/src/index.vue.d.ts +31 -22
  351. package/lib/components/color-picker/index.d.ts +18 -11
  352. package/lib/components/color-picker/src/color-picker.vue.d.ts +18 -11
  353. package/lib/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +18 -11
  354. package/lib/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +18 -11
  355. package/lib/components/date-picker/src/panel-utils.d.ts +36 -22
  356. package/lib/components/descriptions/src/description2.js +1 -1
  357. package/lib/components/descriptions/src/descriptions-row.js +64 -7
  358. package/lib/components/descriptions/src/descriptions-row.js.map +1 -1
  359. package/lib/components/descriptions/src/descriptions-row2.js +7 -64
  360. package/lib/components/descriptions/src/descriptions-row2.js.map +1 -1
  361. package/lib/components/index.js +10 -10
  362. package/lib/components/input/index.d.ts +18 -11
  363. package/lib/components/input/src/input.d.ts +6 -1
  364. package/lib/components/input/src/input.js +1 -2
  365. package/lib/components/input/src/input.js.map +1 -1
  366. package/lib/components/input/src/input.vue.d.ts +18 -11
  367. package/lib/components/input/src/input2.js +4 -31
  368. package/lib/components/input/src/input2.js.map +1 -1
  369. package/lib/components/input-number/index.d.ts +49 -33
  370. package/lib/components/input-number/index.js +2 -2
  371. package/lib/components/input-number/src/input-number.js +297 -57
  372. package/lib/components/input-number/src/input-number.js.map +1 -1
  373. package/lib/components/input-number/src/input-number.vue.d.ts +49 -33
  374. package/lib/components/input-number/src/input-number2.js +57 -297
  375. package/lib/components/input-number/src/input-number2.js.map +1 -1
  376. package/lib/components/menu/index.js +2 -2
  377. package/lib/components/menu/src/menu-item.js +100 -15
  378. package/lib/components/menu/src/menu-item.js.map +1 -1
  379. package/lib/components/menu/src/menu-item2.js +15 -100
  380. package/lib/components/menu/src/menu-item2.js.map +1 -1
  381. package/lib/components/page-header/index.js +2 -2
  382. package/lib/components/page-header/src/page-header.js +102 -18
  383. package/lib/components/page-header/src/page-header.js.map +1 -1
  384. package/lib/components/page-header/src/page-header2.js +18 -102
  385. package/lib/components/page-header/src/page-header2.js.map +1 -1
  386. package/lib/components/pagination/src/components/jumper.vue.d.ts +18 -11
  387. package/lib/components/pagination/src/components/prev.js +34 -19
  388. package/lib/components/pagination/src/components/prev.js.map +1 -1
  389. package/lib/components/pagination/src/components/prev2.js +19 -34
  390. package/lib/components/pagination/src/components/prev2.js.map +1 -1
  391. package/lib/components/pagination/src/pagination.js +1 -1
  392. package/lib/components/radio/index.js +2 -2
  393. package/lib/components/radio/src/radio-button.js +64 -9
  394. package/lib/components/radio/src/radio-button.js.map +1 -1
  395. package/lib/components/radio/src/radio-button2.js +9 -64
  396. package/lib/components/radio/src/radio-button2.js.map +1 -1
  397. package/lib/components/slider/index.d.ts +49 -33
  398. package/lib/components/slider/src/slider.vue.d.ts +49 -33
  399. package/lib/components/steps/index.js +2 -2
  400. package/lib/components/steps/src/item.js +191 -20
  401. package/lib/components/steps/src/item.js.map +1 -1
  402. package/lib/components/steps/src/item2.js +20 -191
  403. package/lib/components/steps/src/item2.js.map +1 -1
  404. package/lib/components/tabs/index.js +2 -2
  405. package/lib/components/tabs/src/tab-pane.js +73 -13
  406. package/lib/components/tabs/src/tab-pane.js.map +1 -1
  407. package/lib/components/tabs/src/tab-pane2.js +13 -73
  408. package/lib/components/tabs/src/tab-pane2.js.map +1 -1
  409. package/lib/components/time-picker/src/common/picker.vue.d.ts +18 -11
  410. package/lib/components/transfer/index.d.ts +90 -55
  411. package/lib/components/transfer/src/composables/use-check.js +1 -1
  412. package/lib/components/transfer/src/transfer-panel.js +131 -21
  413. package/lib/components/transfer/src/transfer-panel.js.map +1 -1
  414. package/lib/components/transfer/src/transfer-panel.vue.d.ts +18 -11
  415. package/lib/components/transfer/src/transfer-panel2.js +21 -131
  416. package/lib/components/transfer/src/transfer-panel2.js.map +1 -1
  417. package/lib/components/transfer/src/transfer.vue.d.ts +90 -55
  418. package/lib/components/transfer/src/transfer2.js +1 -1
  419. package/lib/index.js +10 -10
  420. package/lib/version.d.ts +1 -1
  421. package/lib/version.js +1 -1
  422. package/lib/version.js.map +1 -1
  423. package/package.json +2 -2
  424. package/web-types.json +1 -1
@@ -1,196 +1,25 @@
1
- import { defineComponent, ref, inject, getCurrentInstance, onMounted, watch, onBeforeUnmount, computed, reactive, openBlock, createElementBlock, normalizeStyle, unref, normalizeClass, createCommentVNode, createElementVNode, renderSlot, createBlock, withCtx, resolveDynamicComponent, createVNode, toDisplayString, createTextVNode } from 'vue';
2
- import '../../../hooks/index.mjs';
3
- import { ElIcon } from '../../icon/index.mjs';
4
- import { Check, Close } from '@element-plus/icons-vue';
5
- import { stepProps } from './item.mjs';
6
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
7
- import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
1
+ import '../../../utils/index.mjs';
2
+ import { buildProps } from '../../../utils/vue/props/runtime.mjs';
3
+ import { iconPropType } from '../../../utils/vue/icon.mjs';
8
4
 
9
- const __default__ = defineComponent({
10
- name: "ElStep"
11
- });
12
- const _sfc_main = defineComponent({
13
- ...__default__,
14
- props: stepProps,
15
- setup(__props) {
16
- const props = __props;
17
- const ns = useNamespace("step");
18
- const index = ref(-1);
19
- const lineStyle = ref({});
20
- const internalStatus = ref("");
21
- const parent = inject("ElSteps");
22
- const currentInstance = getCurrentInstance();
23
- onMounted(() => {
24
- watch([
25
- () => parent.props.active,
26
- () => parent.props.processStatus,
27
- () => parent.props.finishStatus
28
- ], ([active]) => {
29
- updateStatus(active);
30
- }, { immediate: true });
31
- });
32
- onBeforeUnmount(() => {
33
- parent.steps.value = parent.steps.value.filter((instance) => instance.uid !== (currentInstance == null ? void 0 : currentInstance.uid));
34
- });
35
- const currentStatus = computed(() => {
36
- return props.status || internalStatus.value;
37
- });
38
- const prevStatus = computed(() => {
39
- const prevStep = parent.steps.value[index.value - 1];
40
- return prevStep ? prevStep.currentStatus : "wait";
41
- });
42
- const isCenter = computed(() => {
43
- return parent.props.alignCenter;
44
- });
45
- const isVertical = computed(() => {
46
- return parent.props.direction === "vertical";
47
- });
48
- const isSimple = computed(() => {
49
- return parent.props.simple;
50
- });
51
- const stepsCount = computed(() => {
52
- return parent.steps.value.length;
53
- });
54
- const isLast = computed(() => {
55
- var _a;
56
- return ((_a = parent.steps.value[stepsCount.value - 1]) == null ? void 0 : _a.uid) === (currentInstance == null ? void 0 : currentInstance.uid);
57
- });
58
- const space = computed(() => {
59
- return isSimple.value ? "" : parent.props.space;
60
- });
61
- const style = computed(() => {
62
- const style2 = {
63
- flexBasis: typeof space.value === "number" ? `${space.value}px` : space.value ? space.value : `${100 / (stepsCount.value - (isCenter.value ? 0 : 1))}%`
64
- };
65
- if (isVertical.value)
66
- return style2;
67
- if (isLast.value) {
68
- style2.maxWidth = `${100 / stepsCount.value}%`;
69
- }
70
- return style2;
71
- });
72
- const setIndex = (val) => {
73
- index.value = val;
74
- };
75
- const calcProgress = (status) => {
76
- let step = 100;
77
- const style2 = {};
78
- style2.transitionDelay = `${150 * index.value}ms`;
79
- if (status === parent.props.processStatus) {
80
- step = 0;
81
- } else if (status === "wait") {
82
- step = 0;
83
- style2.transitionDelay = `${-150 * index.value}ms`;
84
- }
85
- style2.borderWidth = step && !isSimple.value ? "1px" : 0;
86
- style2[parent.props.direction === "vertical" ? "height" : "width"] = `${step}%`;
87
- lineStyle.value = style2;
88
- };
89
- const updateStatus = (activeIndex) => {
90
- if (activeIndex > index.value) {
91
- internalStatus.value = parent.props.finishStatus;
92
- } else if (activeIndex === index.value && prevStatus.value !== "error") {
93
- internalStatus.value = parent.props.processStatus;
94
- } else {
95
- internalStatus.value = "wait";
96
- }
97
- const prevChild = parent.steps.value[index.value - 1];
98
- if (prevChild)
99
- prevChild.calcProgress(internalStatus.value);
100
- };
101
- const stepItemState = reactive({
102
- uid: computed(() => currentInstance == null ? void 0 : currentInstance.uid),
103
- currentStatus,
104
- setIndex,
105
- calcProgress
106
- });
107
- parent.steps.value = [...parent.steps.value, stepItemState];
108
- return (_ctx, _cache) => {
109
- return openBlock(), createElementBlock("div", {
110
- style: normalizeStyle(unref(style)),
111
- class: normalizeClass([
112
- unref(ns).b(),
113
- unref(ns).is(unref(isSimple) ? "simple" : unref(parent).props.direction),
114
- unref(ns).is("flex", unref(isLast) && !unref(space) && !unref(isCenter)),
115
- unref(ns).is("center", unref(isCenter) && !unref(isVertical) && !unref(isSimple))
116
- ])
117
- }, [
118
- createCommentVNode(" icon & line "),
119
- createElementVNode("div", {
120
- class: normalizeClass([unref(ns).e("head"), unref(ns).is(unref(currentStatus))])
121
- }, [
122
- !unref(isSimple) ? (openBlock(), createElementBlock("div", {
123
- key: 0,
124
- class: normalizeClass(unref(ns).e("line"))
125
- }, [
126
- createElementVNode("i", {
127
- class: normalizeClass(unref(ns).e("line-inner")),
128
- style: normalizeStyle(lineStyle.value)
129
- }, null, 6)
130
- ], 2)) : createCommentVNode("v-if", true),
131
- createElementVNode("div", {
132
- class: normalizeClass([unref(ns).e("icon"), unref(ns).is(_ctx.icon || _ctx.$slots.icon ? "icon" : "text")])
133
- }, [
134
- renderSlot(_ctx.$slots, "icon", {}, () => [
135
- _ctx.icon ? (openBlock(), createBlock(unref(ElIcon), {
136
- key: 0,
137
- class: normalizeClass(unref(ns).e("icon-inner"))
138
- }, {
139
- default: withCtx(() => [
140
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon)))
141
- ]),
142
- _: 1
143
- }, 8, ["class"])) : unref(currentStatus) === "success" ? (openBlock(), createBlock(unref(ElIcon), {
144
- key: 1,
145
- class: normalizeClass([unref(ns).e("icon-inner"), unref(ns).is("status")])
146
- }, {
147
- default: withCtx(() => [
148
- createVNode(unref(Check))
149
- ]),
150
- _: 1
151
- }, 8, ["class"])) : unref(currentStatus) === "error" ? (openBlock(), createBlock(unref(ElIcon), {
152
- key: 2,
153
- class: normalizeClass([unref(ns).e("icon-inner"), unref(ns).is("status")])
154
- }, {
155
- default: withCtx(() => [
156
- createVNode(unref(Close))
157
- ]),
158
- _: 1
159
- }, 8, ["class"])) : !unref(isSimple) ? (openBlock(), createElementBlock("div", {
160
- key: 3,
161
- class: normalizeClass(unref(ns).e("icon-inner"))
162
- }, toDisplayString(index.value + 1), 3)) : createCommentVNode("v-if", true)
163
- ])
164
- ], 2)
165
- ], 2),
166
- createCommentVNode(" title & description "),
167
- createElementVNode("div", {
168
- class: normalizeClass(unref(ns).e("main"))
169
- }, [
170
- createElementVNode("div", {
171
- class: normalizeClass([unref(ns).e("title"), unref(ns).is(unref(currentStatus))])
172
- }, [
173
- renderSlot(_ctx.$slots, "title", {}, () => [
174
- createTextVNode(toDisplayString(_ctx.title), 1)
175
- ])
176
- ], 2),
177
- unref(isSimple) ? (openBlock(), createElementBlock("div", {
178
- key: 0,
179
- class: normalizeClass(unref(ns).e("arrow"))
180
- }, null, 2)) : (openBlock(), createElementBlock("div", {
181
- key: 1,
182
- class: normalizeClass([unref(ns).e("description"), unref(ns).is(unref(currentStatus))])
183
- }, [
184
- renderSlot(_ctx.$slots, "description", {}, () => [
185
- createTextVNode(toDisplayString(_ctx.description), 1)
186
- ])
187
- ], 2))
188
- ], 2)
189
- ], 6);
190
- };
5
+ const stepProps = buildProps({
6
+ title: {
7
+ type: String,
8
+ default: ""
9
+ },
10
+ icon: {
11
+ type: iconPropType
12
+ },
13
+ description: {
14
+ type: String,
15
+ default: ""
16
+ },
17
+ status: {
18
+ type: String,
19
+ values: ["", "wait", "process", "finish", "error", "success"],
20
+ default: ""
191
21
  }
192
22
  });
193
- var Step = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/steps/src/item.vue"]]);
194
23
 
195
- export { Step as default };
24
+ export { stepProps };
196
25
  //# sourceMappingURL=item2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"item2.mjs","sources":["../../../../../../packages/components/steps/src/item.vue"],"sourcesContent":["<template>\n <div\n :style=\"style\"\n :class=\"[\n ns.b(),\n ns.is(isSimple ? 'simple' : parent.props.direction),\n ns.is('flex', isLast && !space && !isCenter),\n ns.is('center', isCenter && !isVertical && !isSimple),\n ]\"\n >\n <!-- icon & line -->\n <div :class=\"[ns.e('head'), ns.is(currentStatus)]\">\n <div v-if=\"!isSimple\" :class=\"ns.e('line')\">\n <i :class=\"ns.e('line-inner')\" :style=\"lineStyle\" />\n </div>\n\n <div\n :class=\"[ns.e('icon'), ns.is(icon || $slots.icon ? 'icon' : 'text')]\"\n >\n <slot name=\"icon\">\n <el-icon v-if=\"icon\" :class=\"ns.e('icon-inner')\">\n <component :is=\"icon\" />\n </el-icon>\n <el-icon\n v-else-if=\"currentStatus === 'success'\"\n :class=\"[ns.e('icon-inner'), ns.is('status')]\"\n >\n <Check />\n </el-icon>\n <el-icon\n v-else-if=\"currentStatus === 'error'\"\n :class=\"[ns.e('icon-inner'), ns.is('status')]\"\n >\n <Close />\n </el-icon>\n <div v-else-if=\"!isSimple\" :class=\"ns.e('icon-inner')\">\n {{ index + 1 }}\n </div>\n </slot>\n </div>\n </div>\n <!-- title & description -->\n <div :class=\"ns.e('main')\">\n <div :class=\"[ns.e('title'), ns.is(currentStatus)]\">\n <slot name=\"title\">{{ title }}</slot>\n </div>\n <div v-if=\"isSimple\" :class=\"ns.e('arrow')\" />\n <div v-else :class=\"[ns.e('description'), ns.is(currentStatus)]\">\n <slot name=\"description\">{{ description }}</slot>\n </div>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport {\n computed,\n getCurrentInstance,\n inject,\n onBeforeUnmount,\n onMounted,\n reactive,\n ref,\n watch,\n} from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { Check, Close } from '@element-plus/icons-vue'\nimport { stepProps } from './item'\n\nimport type { CSSProperties, Ref } from 'vue'\n\nexport interface IStepsProps {\n space: number | string\n active: number\n direction: string\n alignCenter: boolean\n simple: boolean\n finishStatus: string\n processStatus: string\n}\n\nexport interface StepItemState {\n uid: number | undefined\n currentStatus: string\n setIndex: (val: number) => void\n calcProgress: (status: string) => void\n}\n\nexport interface IStepsInject {\n props: IStepsProps\n steps: Ref<StepItemState[]>\n}\n\ndefineOptions({\n name: 'ElStep',\n})\n\nconst props = defineProps(stepProps)\nconst ns = useNamespace('step')\nconst index = ref(-1)\nconst lineStyle = ref({})\nconst internalStatus = ref('')\nconst parent = inject('ElSteps') as IStepsInject\nconst currentInstance = getCurrentInstance()\n\nonMounted(() => {\n watch(\n [\n () => parent.props.active,\n () => parent.props.processStatus,\n () => parent.props.finishStatus,\n ],\n ([active]) => {\n updateStatus(active)\n },\n { immediate: true }\n )\n})\n\nonBeforeUnmount(() => {\n parent.steps.value = parent.steps.value.filter(\n (instance) => instance.uid !== currentInstance?.uid\n )\n})\n\nconst currentStatus = computed(() => {\n return props.status || internalStatus.value\n})\n\nconst prevStatus = computed(() => {\n const prevStep = parent.steps.value[index.value - 1]\n return prevStep ? prevStep.currentStatus : 'wait'\n})\n\nconst isCenter = computed(() => {\n return parent.props.alignCenter\n})\n\nconst isVertical = computed(() => {\n return parent.props.direction === 'vertical'\n})\n\nconst isSimple = computed(() => {\n return parent.props.simple\n})\n\nconst stepsCount = computed(() => {\n return parent.steps.value.length\n})\n\nconst isLast = computed(() => {\n return parent.steps.value[stepsCount.value - 1]?.uid === currentInstance?.uid\n})\n\nconst space = computed(() => {\n return isSimple.value ? '' : parent.props.space\n})\n\nconst style = computed(() => {\n const style: CSSProperties = {\n flexBasis:\n typeof space.value === 'number'\n ? `${space.value}px`\n : space.value\n ? space.value\n : `${100 / (stepsCount.value - (isCenter.value ? 0 : 1))}%`,\n }\n if (isVertical.value) return style\n if (isLast.value) {\n style.maxWidth = `${100 / stepsCount.value}%`\n }\n return style\n})\n\nconst setIndex = (val: number) => {\n index.value = val\n}\n\nconst calcProgress = (status: string) => {\n let step = 100\n const style: CSSProperties = {}\n style.transitionDelay = `${150 * index.value}ms`\n if (status === parent.props.processStatus) {\n step = 0\n } else if (status === 'wait') {\n step = 0\n style.transitionDelay = `${-150 * index.value}ms`\n }\n style.borderWidth = step && !isSimple.value ? '1px' : 0\n style[parent.props.direction === 'vertical' ? 'height' : 'width'] = `${step}%`\n lineStyle.value = style\n}\n\nconst updateStatus = (activeIndex: number) => {\n if (activeIndex > index.value) {\n internalStatus.value = parent.props.finishStatus\n } else if (activeIndex === index.value && prevStatus.value !== 'error') {\n internalStatus.value = parent.props.processStatus\n } else {\n internalStatus.value = 'wait'\n }\n const prevChild = parent.steps.value[index.value - 1]\n if (prevChild) prevChild.calcProgress(internalStatus.value)\n}\n\nconst stepItemState = reactive({\n uid: computed(() => currentInstance?.uid),\n currentStatus,\n setIndex,\n calcProgress,\n})\n\nparent.steps.value = [...parent.steps.value, stepItemState]\n</script>\n"],"names":[],"mappings":";;;;;;;;mCA8Fc,CAAA;AAAA,EACZ,IAAM,EAAA,QAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAGA,IAAM,MAAA,EAAA,GAAK,aAAa,MAAM,CAAA,CAAA;AAC9B,IAAM,MAAA,KA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A,OAAA,CAAA,GAAA,CAAA,EAAA,IAAA,CAAA,CAAA,CAAA,CAAA;AAAA,MACpB,SAAA,CAAA,KAAA,GAAA,MAAA,CAAA;AAEA,KAAM,CAAA;AACJ,IAAI,MAAA,YAAA,eAA2B,KAAA;AAC7B,MAAe,IAAA,WAAA,GAAA,KAAA,CAAA;AAAqB,sBACX,CAAA,KAAA,GAAA,MAAA,CAAA,KAAe,CAAA,YAAA,CAAA;AACxC,OAAe,MAAA,IAAA,WAAA,UAAe,CAAM,KAAA,IAAA,UAAA,CAAA,KAAA,KAAA,OAAA,EAAA;AAAA,QAC/B,cAAA,CAAA,KAAA,GAAA,MAAA,CAAA,KAAA,CAAA,aAAA,CAAA;AACL,OAAA,MAAA;AAAuB,QACzB,cAAA,CAAA,KAAA,GAAA,MAAA,CAAA;AACA,OAAA;AACA,MAAI,MAAA,SAAA,GAAA,MAAA,CAAA,KAAA,CAAA,KAAA,CAAA,KAAA,CAAA,KAAA,GAAA,CAAA,CAAA,CAAA;AAAW,MAAU,IAAA,SAAA;AAAiC,QAC5D,SAAA,CAAA,YAAA,CAAA,cAAA,CAAA,KAAA,CAAA,CAAA;AAEA,KAAA,CAAA;AAA+B,IAAA,MACxB,aAAe,GAAA,QAAA,CAAA;AAAoB,MACxC,GAAA,EAAA,QAAA,CAAA,MAAA,eAAA,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,eAAA,CAAA,GAAA,CAAA;AAAA,MACA,aAAA;AAAA,MACA,QAAA;AAAA,MACD,YAAA;AAED,KAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"item2.mjs","sources":["../../../../../../packages/components/steps/src/item.ts"],"sourcesContent":["import { buildProps, iconPropType } from '@element-plus/utils'\nimport type Step from './item.vue'\nimport type { ExtractPropTypes } from 'vue'\n\nexport const stepProps = buildProps({\n title: {\n type: String,\n default: '',\n },\n icon: {\n type: iconPropType,\n },\n description: {\n type: String,\n default: '',\n },\n status: {\n type: String,\n values: ['', 'wait', 'process', 'finish', 'error', 'success'],\n default: '',\n },\n} as const)\n\nexport type StepProps = ExtractPropTypes<typeof stepProps>\n\nexport type StepInstance = InstanceType<typeof Step>\n"],"names":[],"mappings":";;;;AACY,MAAC,SAAS,GAAG,UAAU,CAAC;AACpC,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,YAAY;AACtB,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,CAAC;AACjE,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,CAAC;;;;"}
@@ -1,10 +1,10 @@
1
1
  import '../../utils/index.mjs';
2
2
  import Tabs from './src/tabs.mjs';
3
3
  export { tabsEmits, tabsProps } from './src/tabs.mjs';
4
- import TabPane from './src/tab-pane2.mjs';
4
+ import TabPane from './src/tab-pane.mjs';
5
5
  export { tabBarProps } from './src/tab-bar.mjs';
6
6
  export { tabNavEmits, tabNavProps } from './src/tab-nav.mjs';
7
- export { tabPaneProps } from './src/tab-pane.mjs';
7
+ export { tabPaneProps } from './src/tab-pane2.mjs';
8
8
  import { withInstall, withNoopInstall } from '../../utils/vue/install.mjs';
9
9
 
10
10
  const ElTabs = withInstall(Tabs, {
@@ -1,18 +1,78 @@
1
+ import { defineComponent, getCurrentInstance, useSlots, inject, ref, computed, watch, reactive, onMounted, onUnmounted, unref, withDirectives, openBlock, createElementBlock, normalizeClass, renderSlot, vShow, createCommentVNode } from 'vue';
2
+ import { eagerComputed } from '@vueuse/core';
3
+ import '../../../tokens/index.mjs';
1
4
  import '../../../utils/index.mjs';
2
- import { buildProps } from '../../../utils/vue/props/runtime.mjs';
5
+ import '../../../hooks/index.mjs';
6
+ import { tabPaneProps } from './tab-pane2.mjs';
7
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
8
+ import { tabsRootContextKey } from '../../../tokens/tabs.mjs';
9
+ import { throwError } from '../../../utils/error.mjs';
10
+ import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
3
11
 
4
- const tabPaneProps = buildProps({
5
- label: {
6
- type: String,
7
- default: ""
8
- },
9
- name: {
10
- type: [String, Number]
11
- },
12
- closable: Boolean,
13
- disabled: Boolean,
14
- lazy: Boolean
12
+ const _hoisted_1 = ["id", "aria-hidden", "aria-labelledby"];
13
+ const COMPONENT_NAME = "ElTabPane";
14
+ const __default__ = defineComponent({
15
+ name: COMPONENT_NAME
15
16
  });
17
+ const _sfc_main = /* @__PURE__ */ defineComponent({
18
+ ...__default__,
19
+ props: tabPaneProps,
20
+ setup(__props) {
21
+ const props = __props;
22
+ const instance = getCurrentInstance();
23
+ const slots = useSlots();
24
+ const tabsRoot = inject(tabsRootContextKey);
25
+ if (!tabsRoot)
26
+ throwError(COMPONENT_NAME, "usage: <el-tabs><el-tab-pane /></el-tabs/>");
27
+ const ns = useNamespace("tab-pane");
28
+ const index = ref();
29
+ const isClosable = computed(() => props.closable || tabsRoot.props.closable);
30
+ const active = eagerComputed(() => {
31
+ var _a;
32
+ return tabsRoot.currentName.value === ((_a = props.name) != null ? _a : index.value);
33
+ });
34
+ const loaded = ref(active.value);
35
+ const paneName = computed(() => {
36
+ var _a;
37
+ return (_a = props.name) != null ? _a : index.value;
38
+ });
39
+ const shouldBeRender = eagerComputed(() => !props.lazy || loaded.value || active.value);
40
+ watch(active, (val) => {
41
+ if (val)
42
+ loaded.value = true;
43
+ });
44
+ const pane = reactive({
45
+ uid: instance.uid,
46
+ slots,
47
+ props,
48
+ paneName,
49
+ active,
50
+ index,
51
+ isClosable
52
+ });
53
+ onMounted(() => {
54
+ tabsRoot.registerPane(pane);
55
+ });
56
+ onUnmounted(() => {
57
+ tabsRoot.unregisterPane(pane.uid);
58
+ });
59
+ return (_ctx, _cache) => {
60
+ return unref(shouldBeRender) ? withDirectives((openBlock(), createElementBlock("div", {
61
+ key: 0,
62
+ id: `pane-${unref(paneName)}`,
63
+ class: normalizeClass(unref(ns).b()),
64
+ role: "tabpanel",
65
+ "aria-hidden": !unref(active),
66
+ "aria-labelledby": `tab-${unref(paneName)}`
67
+ }, [
68
+ renderSlot(_ctx.$slots, "default")
69
+ ], 10, _hoisted_1)), [
70
+ [vShow, unref(active)]
71
+ ]) : createCommentVNode("v-if", true);
72
+ };
73
+ }
74
+ });
75
+ var TabPane = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-pane.vue"]]);
16
76
 
17
- export { tabPaneProps };
77
+ export { TabPane as default };
18
78
  //# sourceMappingURL=tab-pane.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"tab-pane.mjs","sources":["../../../../../../packages/components/tabs/src/tab-pane.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\nimport type TabPane from './tab-pane.vue'\n\nexport const tabPaneProps = buildProps({\n label: {\n type: String,\n default: '',\n },\n name: {\n type: [String, Number],\n },\n closable: Boolean,\n disabled: Boolean,\n lazy: Boolean,\n} as const)\n\nexport type TabPaneProps = ExtractPropTypes<typeof tabPaneProps>\n\nexport type TabPaneInstance = InstanceType<typeof TabPane>\n"],"names":[],"mappings":";;;AACY,MAAC,YAAY,GAAG,UAAU,CAAC;AACvC,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,IAAI,EAAE,OAAO;AACf,CAAC;;;;"}
1
+ {"version":3,"file":"tab-pane.mjs","sources":["../../../../../../packages/components/tabs/src/tab-pane.vue"],"sourcesContent":["<template>\n <div\n v-if=\"shouldBeRender\"\n v-show=\"active\"\n :id=\"`pane-${paneName}`\"\n :class=\"ns.b()\"\n role=\"tabpanel\"\n :aria-hidden=\"!active\"\n :aria-labelledby=\"`tab-${paneName}`\"\n >\n <slot />\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport {\n computed,\n getCurrentInstance,\n inject,\n onMounted,\n onUnmounted,\n reactive,\n ref,\n useSlots,\n watch,\n} from 'vue'\nimport { eagerComputed } from '@vueuse/core'\nimport { tabsRootContextKey } from '@element-plus/tokens'\nimport { throwError } from '@element-plus/utils'\nimport { useNamespace } from '@element-plus/hooks'\nimport { tabPaneProps } from './tab-pane'\n\nconst COMPONENT_NAME = 'ElTabPane'\ndefineOptions({\n name: COMPONENT_NAME,\n})\nconst props = defineProps(tabPaneProps)\n\nconst instance = getCurrentInstance()!\nconst slots = useSlots()\n\nconst tabsRoot = inject(tabsRootContextKey)\nif (!tabsRoot)\n throwError(COMPONENT_NAME, 'usage: <el-tabs><el-tab-pane /></el-tabs/>')\n\nconst ns = useNamespace('tab-pane')\n\nconst index = ref<string>()\nconst isClosable = computed(() => props.closable || tabsRoot.props.closable)\nconst active = eagerComputed(\n () => tabsRoot.currentName.value === (props.name ?? index.value)\n)\nconst loaded = ref(active.value)\nconst paneName = computed(() => props.name ?? index.value)\nconst shouldBeRender = eagerComputed(\n () => !props.lazy || loaded.value || active.value\n)\n\nwatch(active, (val) => {\n if (val) loaded.value = true\n})\n\nconst pane = reactive({\n uid: instance.uid,\n slots,\n props,\n paneName,\n active,\n index,\n isClosable,\n})\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AA,CAAA,CAAA;AAAA,IACd,KAAA,CAAA,MAAA,EAAA,CAAA,GAAA,KAAA;AAAA,MACA,IAAA,GAAA;AAAA,QACA,MAAA,CAAA,KAAA,GAAA,IAAA,CAAA;AAAA,KACA,CAAA,CAAA;AAAA,IACA,MAAA,IAAA,GAAA,QAAA,CAAA;AAAA,MACA,GAAA,EAAA,QAAA,CAAA,GAAA;AAAA,MACD,KAAA;AAED,MAAA,KAAA;AACE,MAAA,QAAA;AAA0B,MAC3B,MAAA;AAED,MAAA,KAAA;AACE,MAAS,UAAA;AAAuB,KACjC,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,78 +1,18 @@
1
- import { defineComponent, getCurrentInstance, useSlots, inject, ref, computed, watch, reactive, onMounted, onUnmounted, unref, withDirectives, openBlock, createElementBlock, normalizeClass, renderSlot, vShow, createCommentVNode } from 'vue';
2
- import { eagerComputed } from '@vueuse/core';
3
- import '../../../tokens/index.mjs';
4
1
  import '../../../utils/index.mjs';
5
- import '../../../hooks/index.mjs';
6
- import { tabPaneProps } from './tab-pane.mjs';
7
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
8
- import { tabsRootContextKey } from '../../../tokens/tabs.mjs';
9
- import { throwError } from '../../../utils/error.mjs';
10
- import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
2
+ import { buildProps } from '../../../utils/vue/props/runtime.mjs';
11
3
 
12
- const _hoisted_1 = ["id", "aria-hidden", "aria-labelledby"];
13
- const COMPONENT_NAME = "ElTabPane";
14
- const __default__ = defineComponent({
15
- name: COMPONENT_NAME
4
+ const tabPaneProps = buildProps({
5
+ label: {
6
+ type: String,
7
+ default: ""
8
+ },
9
+ name: {
10
+ type: [String, Number]
11
+ },
12
+ closable: Boolean,
13
+ disabled: Boolean,
14
+ lazy: Boolean
16
15
  });
17
- const _sfc_main = /* @__PURE__ */ defineComponent({
18
- ...__default__,
19
- props: tabPaneProps,
20
- setup(__props) {
21
- const props = __props;
22
- const instance = getCurrentInstance();
23
- const slots = useSlots();
24
- const tabsRoot = inject(tabsRootContextKey);
25
- if (!tabsRoot)
26
- throwError(COMPONENT_NAME, "usage: <el-tabs><el-tab-pane /></el-tabs/>");
27
- const ns = useNamespace("tab-pane");
28
- const index = ref();
29
- const isClosable = computed(() => props.closable || tabsRoot.props.closable);
30
- const active = eagerComputed(() => {
31
- var _a;
32
- return tabsRoot.currentName.value === ((_a = props.name) != null ? _a : index.value);
33
- });
34
- const loaded = ref(active.value);
35
- const paneName = computed(() => {
36
- var _a;
37
- return (_a = props.name) != null ? _a : index.value;
38
- });
39
- const shouldBeRender = eagerComputed(() => !props.lazy || loaded.value || active.value);
40
- watch(active, (val) => {
41
- if (val)
42
- loaded.value = true;
43
- });
44
- const pane = reactive({
45
- uid: instance.uid,
46
- slots,
47
- props,
48
- paneName,
49
- active,
50
- index,
51
- isClosable
52
- });
53
- onMounted(() => {
54
- tabsRoot.registerPane(pane);
55
- });
56
- onUnmounted(() => {
57
- tabsRoot.unregisterPane(pane.uid);
58
- });
59
- return (_ctx, _cache) => {
60
- return unref(shouldBeRender) ? withDirectives((openBlock(), createElementBlock("div", {
61
- key: 0,
62
- id: `pane-${unref(paneName)}`,
63
- class: normalizeClass(unref(ns).b()),
64
- role: "tabpanel",
65
- "aria-hidden": !unref(active),
66
- "aria-labelledby": `tab-${unref(paneName)}`
67
- }, [
68
- renderSlot(_ctx.$slots, "default")
69
- ], 10, _hoisted_1)), [
70
- [vShow, unref(active)]
71
- ]) : createCommentVNode("v-if", true);
72
- };
73
- }
74
- });
75
- var TabPane = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-pane.vue"]]);
76
16
 
77
- export { TabPane as default };
17
+ export { tabPaneProps };
78
18
  //# sourceMappingURL=tab-pane2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"tab-pane2.mjs","sources":["../../../../../../packages/components/tabs/src/tab-pane.vue"],"sourcesContent":["<template>\n <div\n v-if=\"shouldBeRender\"\n v-show=\"active\"\n :id=\"`pane-${paneName}`\"\n :class=\"ns.b()\"\n role=\"tabpanel\"\n :aria-hidden=\"!active\"\n :aria-labelledby=\"`tab-${paneName}`\"\n >\n <slot />\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport {\n computed,\n getCurrentInstance,\n inject,\n onMounted,\n onUnmounted,\n reactive,\n ref,\n useSlots,\n watch,\n} from 'vue'\nimport { eagerComputed } from '@vueuse/core'\nimport { tabsRootContextKey } from '@element-plus/tokens'\nimport { throwError } from '@element-plus/utils'\nimport { useNamespace } from '@element-plus/hooks'\nimport { tabPaneProps } from './tab-pane'\n\nconst COMPONENT_NAME = 'ElTabPane'\ndefineOptions({\n name: COMPONENT_NAME,\n})\nconst props = defineProps(tabPaneProps)\n\nconst instance = getCurrentInstance()!\nconst slots = useSlots()\n\nconst tabsRoot = inject(tabsRootContextKey)\nif (!tabsRoot)\n throwError(COMPONENT_NAME, 'usage: <el-tabs><el-tab-pane /></el-tabs/>')\n\nconst ns = useNamespace('tab-pane')\n\nconst index = ref<string>()\nconst isClosable = computed(() => props.closable || tabsRoot.props.closable)\nconst active = eagerComputed(\n () => tabsRoot.currentName.value === (props.name ?? index.value)\n)\nconst loaded = ref(active.value)\nconst paneName = computed(() => props.name ?? index.value)\nconst shouldBeRender = eagerComputed(\n () => !props.lazy || loaded.value || active.value\n)\n\nwatch(active, (val) => {\n if (val) loaded.value = true\n})\n\nconst pane = reactive({\n uid: instance.uid,\n slots,\n props,\n paneName,\n active,\n index,\n isClosable,\n})\n\nonMounted(() => {\n tabsRoot.registerPane(pane)\n})\n\nonUnmounted(() => {\n tabsRoot.unregisterPane(pane.uid)\n})\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;mCAiCc,CAAA;AAAA,EACZ,IAAM,EAAA,cAAA;AACR;;;;;;AAGA,IAAA,MAAM,WAAW,kBAAmB,EAAA,CAAA;AACpC,IAAA,MAAM,QAAQ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A,MACD,KAAA;AAED,MAAA,KAAA;AACE,MAAA,QAAA;AAA0B,MAC3B,MAAA;AAED,MAAA,KAAA;AACE,MAAS,UAAA;AAAuB,KACjC,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"tab-pane2.mjs","sources":["../../../../../../packages/components/tabs/src/tab-pane.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\nimport type TabPane from './tab-pane.vue'\n\nexport const tabPaneProps = buildProps({\n label: {\n type: String,\n default: '',\n },\n name: {\n type: [String, Number],\n },\n closable: Boolean,\n disabled: Boolean,\n lazy: Boolean,\n} as const)\n\nexport type TabPaneProps = ExtractPropTypes<typeof tabPaneProps>\n\nexport type TabPaneInstance = InstanceType<typeof TabPane>\n"],"names":[],"mappings":";;;AACY,MAAC,YAAY,GAAG,UAAU,CAAC;AACvC,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,IAAI,EAAE,OAAO;AACf,CAAC;;;;"}
@@ -6576,7 +6576,12 @@ declare const _default: import("vue").DefineComponent<{
6576
6576
  readonly validator: ((val: unknown) => boolean) | undefined;
6577
6577
  __epPropKey: true;
6578
6578
  };
6579
- readonly form: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
6579
+ readonly form: {
6580
+ readonly type: import("vue").PropType<string>;
6581
+ readonly required: false;
6582
+ readonly validator: ((val: unknown) => boolean) | undefined;
6583
+ __epPropKey: true;
6584
+ };
6580
6585
  readonly readonly: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
6581
6586
  readonly clearable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
6582
6587
  readonly showPassword: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
@@ -6599,10 +6604,6 @@ declare const _default: import("vue").DefineComponent<{
6599
6604
  readonly validateEvent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
6600
6605
  readonly inputStyle: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("vue").StyleValue & {}) | (() => import("vue").StyleValue) | ((new (...args: any[]) => import("vue").StyleValue & {}) | (() => import("vue").StyleValue))[], unknown, unknown, () => import("element-plus/es/utils").Mutable<{}>, boolean>;
6601
6606
  }, {
6602
- PENDANT_MAP: {
6603
- readonly suffix: "append";
6604
- readonly prefix: "prepend";
6605
- };
6606
6607
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
6607
6608
  readonly id: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
6608
6609
  readonly size: {
@@ -6640,7 +6641,12 @@ declare const _default: import("vue").DefineComponent<{
6640
6641
  readonly validator: ((val: unknown) => boolean) | undefined;
6641
6642
  __epPropKey: true;
6642
6643
  };
6643
- readonly form: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
6644
+ readonly form: {
6645
+ readonly type: import("vue").PropType<string>;
6646
+ readonly required: false;
6647
+ readonly validator: ((val: unknown) => boolean) | undefined;
6648
+ __epPropKey: true;
6649
+ };
6644
6650
  readonly readonly: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
6645
6651
  readonly clearable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
6646
6652
  readonly showPassword: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
@@ -6677,7 +6683,6 @@ declare const _default: import("vue").DefineComponent<{
6677
6683
  onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
6678
6684
  }>>;
6679
6685
  emit: ((event: "update:modelValue", value: string) => void) & ((event: "change", value: string) => void) & ((event: "input", value: string) => void) & ((event: "focus", evt: FocusEvent) => void) & ((event: "blur", evt: FocusEvent) => void) & ((event: "clear") => void) & ((event: "mouseleave", evt: MouseEvent) => void) & ((event: "mouseenter", evt: MouseEvent) => void) & ((event: "keydown", evt: Event | KeyboardEvent) => void) & ((event: "compositionstart", evt: CompositionEvent) => void) & ((event: "compositionupdate", evt: CompositionEvent) => void) & ((event: "compositionend", evt: CompositionEvent) => void);
6680
- instance: import("vue").ComponentInternalInstance;
6681
6686
  rawAttrs: {
6682
6687
  [x: string]: unknown;
6683
6688
  };
@@ -6753,8 +6758,6 @@ declare const _default: import("vue").DefineComponent<{
6753
6758
  setCursor: () => void;
6754
6759
  resizeTextarea: () => void;
6755
6760
  setNativeInputValue: () => void;
6756
- calcIconOffset: (place: "suffix" | "prefix") => void;
6757
- updateIconOffset: () => void;
6758
6761
  handleInput: (event: Event) => Promise<void>;
6759
6762
  handleChange: (event: Event) => void;
6760
6763
  handleCompositionStart: (event: CompositionEvent) => void;
@@ -6885,7 +6888,12 @@ declare const _default: import("vue").DefineComponent<{
6885
6888
  readonly validator: ((val: unknown) => boolean) | undefined;
6886
6889
  __epPropKey: true;
6887
6890
  };
6888
- readonly form: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
6891
+ readonly form: {
6892
+ readonly type: import("vue").PropType<string>;
6893
+ readonly required: false;
6894
+ readonly validator: ((val: unknown) => boolean) | undefined;
6895
+ __epPropKey: true;
6896
+ };
6889
6897
  readonly readonly: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
6890
6898
  readonly clearable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
6891
6899
  readonly showPassword: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
@@ -6929,7 +6937,6 @@ declare const _default: import("vue").DefineComponent<{
6929
6937
  readonly id: string;
6930
6938
  readonly autosize: import("element-plus/es/components/input").InputAutoSize;
6931
6939
  readonly autocomplete: string;
6932
- readonly form: string;
6933
6940
  readonly readonly: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
6934
6941
  readonly clearable: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
6935
6942
  readonly showPassword: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;