@element-plus/nightly 0.0.20251219 → 0.0.20251220

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (586) hide show
  1. package/dist/index.full.js +2 -2
  2. package/dist/index.full.min.js +2 -2
  3. package/dist/index.full.min.js.map +1 -1
  4. package/dist/index.full.min.mjs +2 -2
  5. package/dist/index.full.min.mjs.map +1 -1
  6. package/dist/index.full.mjs +2 -2
  7. package/dist/locale/af.js +1 -1
  8. package/dist/locale/af.min.js +1 -1
  9. package/dist/locale/af.min.mjs +1 -1
  10. package/dist/locale/af.mjs +1 -1
  11. package/dist/locale/ar-eg.js +1 -1
  12. package/dist/locale/ar-eg.min.js +1 -1
  13. package/dist/locale/ar-eg.min.mjs +1 -1
  14. package/dist/locale/ar-eg.mjs +1 -1
  15. package/dist/locale/ar.js +1 -1
  16. package/dist/locale/ar.min.js +1 -1
  17. package/dist/locale/ar.min.mjs +1 -1
  18. package/dist/locale/ar.mjs +1 -1
  19. package/dist/locale/az.js +1 -1
  20. package/dist/locale/az.min.js +1 -1
  21. package/dist/locale/az.min.mjs +1 -1
  22. package/dist/locale/az.mjs +1 -1
  23. package/dist/locale/bg.js +1 -1
  24. package/dist/locale/bg.min.js +1 -1
  25. package/dist/locale/bg.min.mjs +1 -1
  26. package/dist/locale/bg.mjs +1 -1
  27. package/dist/locale/bn.js +1 -1
  28. package/dist/locale/bn.min.js +1 -1
  29. package/dist/locale/bn.min.mjs +1 -1
  30. package/dist/locale/bn.mjs +1 -1
  31. package/dist/locale/ca.js +1 -1
  32. package/dist/locale/ca.min.js +1 -1
  33. package/dist/locale/ca.min.mjs +1 -1
  34. package/dist/locale/ca.mjs +1 -1
  35. package/dist/locale/ckb.js +1 -1
  36. package/dist/locale/ckb.min.js +1 -1
  37. package/dist/locale/ckb.min.mjs +1 -1
  38. package/dist/locale/ckb.mjs +1 -1
  39. package/dist/locale/cs.js +1 -1
  40. package/dist/locale/cs.min.js +1 -1
  41. package/dist/locale/cs.min.mjs +1 -1
  42. package/dist/locale/cs.mjs +1 -1
  43. package/dist/locale/da.js +1 -1
  44. package/dist/locale/da.min.js +1 -1
  45. package/dist/locale/da.min.mjs +1 -1
  46. package/dist/locale/da.mjs +1 -1
  47. package/dist/locale/de.js +1 -1
  48. package/dist/locale/de.min.js +1 -1
  49. package/dist/locale/de.min.mjs +1 -1
  50. package/dist/locale/de.mjs +1 -1
  51. package/dist/locale/el.js +1 -1
  52. package/dist/locale/el.min.js +1 -1
  53. package/dist/locale/el.min.mjs +1 -1
  54. package/dist/locale/el.mjs +1 -1
  55. package/dist/locale/en.js +1 -1
  56. package/dist/locale/en.min.js +1 -1
  57. package/dist/locale/en.min.mjs +1 -1
  58. package/dist/locale/en.mjs +1 -1
  59. package/dist/locale/eo.js +1 -1
  60. package/dist/locale/eo.min.js +1 -1
  61. package/dist/locale/eo.min.mjs +1 -1
  62. package/dist/locale/eo.mjs +1 -1
  63. package/dist/locale/es.js +1 -1
  64. package/dist/locale/es.min.js +1 -1
  65. package/dist/locale/es.min.mjs +1 -1
  66. package/dist/locale/es.mjs +1 -1
  67. package/dist/locale/et.js +1 -1
  68. package/dist/locale/et.min.js +1 -1
  69. package/dist/locale/et.min.mjs +1 -1
  70. package/dist/locale/et.mjs +1 -1
  71. package/dist/locale/eu.js +1 -1
  72. package/dist/locale/eu.min.js +1 -1
  73. package/dist/locale/eu.min.mjs +1 -1
  74. package/dist/locale/eu.mjs +1 -1
  75. package/dist/locale/fa.js +1 -1
  76. package/dist/locale/fa.min.js +1 -1
  77. package/dist/locale/fa.min.mjs +1 -1
  78. package/dist/locale/fa.mjs +1 -1
  79. package/dist/locale/fi.js +1 -1
  80. package/dist/locale/fi.min.js +1 -1
  81. package/dist/locale/fi.min.mjs +1 -1
  82. package/dist/locale/fi.mjs +1 -1
  83. package/dist/locale/fr.js +1 -1
  84. package/dist/locale/fr.min.js +1 -1
  85. package/dist/locale/fr.min.mjs +1 -1
  86. package/dist/locale/fr.mjs +1 -1
  87. package/dist/locale/he.js +1 -1
  88. package/dist/locale/he.min.js +1 -1
  89. package/dist/locale/he.min.mjs +1 -1
  90. package/dist/locale/he.mjs +1 -1
  91. package/dist/locale/hi.js +1 -1
  92. package/dist/locale/hi.min.js +1 -1
  93. package/dist/locale/hi.min.mjs +1 -1
  94. package/dist/locale/hi.mjs +1 -1
  95. package/dist/locale/hr.js +1 -1
  96. package/dist/locale/hr.min.js +1 -1
  97. package/dist/locale/hr.min.mjs +1 -1
  98. package/dist/locale/hr.mjs +1 -1
  99. package/dist/locale/hu.js +1 -1
  100. package/dist/locale/hu.min.js +1 -1
  101. package/dist/locale/hu.min.mjs +1 -1
  102. package/dist/locale/hu.mjs +1 -1
  103. package/dist/locale/hy-am.js +1 -1
  104. package/dist/locale/hy-am.min.js +1 -1
  105. package/dist/locale/hy-am.min.mjs +1 -1
  106. package/dist/locale/hy-am.mjs +1 -1
  107. package/dist/locale/id.js +1 -1
  108. package/dist/locale/id.min.js +1 -1
  109. package/dist/locale/id.min.mjs +1 -1
  110. package/dist/locale/id.mjs +1 -1
  111. package/dist/locale/it.js +1 -1
  112. package/dist/locale/it.min.js +1 -1
  113. package/dist/locale/it.min.mjs +1 -1
  114. package/dist/locale/it.mjs +1 -1
  115. package/dist/locale/ja.js +1 -1
  116. package/dist/locale/ja.min.js +1 -1
  117. package/dist/locale/ja.min.mjs +1 -1
  118. package/dist/locale/ja.mjs +1 -1
  119. package/dist/locale/kk.js +1 -1
  120. package/dist/locale/kk.min.js +1 -1
  121. package/dist/locale/kk.min.mjs +1 -1
  122. package/dist/locale/kk.mjs +1 -1
  123. package/dist/locale/km.js +1 -1
  124. package/dist/locale/km.min.js +1 -1
  125. package/dist/locale/km.min.mjs +1 -1
  126. package/dist/locale/km.mjs +1 -1
  127. package/dist/locale/ko.js +1 -1
  128. package/dist/locale/ko.min.js +1 -1
  129. package/dist/locale/ko.min.mjs +1 -1
  130. package/dist/locale/ko.mjs +1 -1
  131. package/dist/locale/ku.js +1 -1
  132. package/dist/locale/ku.min.js +1 -1
  133. package/dist/locale/ku.min.mjs +1 -1
  134. package/dist/locale/ku.mjs +1 -1
  135. package/dist/locale/ky.js +1 -1
  136. package/dist/locale/ky.min.js +1 -1
  137. package/dist/locale/ky.min.mjs +1 -1
  138. package/dist/locale/ky.mjs +1 -1
  139. package/dist/locale/lo.js +1 -1
  140. package/dist/locale/lo.min.js +1 -1
  141. package/dist/locale/lo.min.mjs +1 -1
  142. package/dist/locale/lo.mjs +1 -1
  143. package/dist/locale/lt.js +1 -1
  144. package/dist/locale/lt.min.js +1 -1
  145. package/dist/locale/lt.min.mjs +1 -1
  146. package/dist/locale/lt.mjs +1 -1
  147. package/dist/locale/lv.js +1 -1
  148. package/dist/locale/lv.min.js +1 -1
  149. package/dist/locale/lv.min.mjs +1 -1
  150. package/dist/locale/lv.mjs +1 -1
  151. package/dist/locale/mg.js +1 -1
  152. package/dist/locale/mg.min.js +1 -1
  153. package/dist/locale/mg.min.mjs +1 -1
  154. package/dist/locale/mg.mjs +1 -1
  155. package/dist/locale/mn.js +1 -1
  156. package/dist/locale/mn.min.js +1 -1
  157. package/dist/locale/mn.min.mjs +1 -1
  158. package/dist/locale/mn.mjs +1 -1
  159. package/dist/locale/ms.js +1 -1
  160. package/dist/locale/ms.min.js +1 -1
  161. package/dist/locale/ms.min.mjs +1 -1
  162. package/dist/locale/ms.mjs +1 -1
  163. package/dist/locale/my.js +1 -1
  164. package/dist/locale/my.min.js +1 -1
  165. package/dist/locale/my.min.mjs +1 -1
  166. package/dist/locale/my.mjs +1 -1
  167. package/dist/locale/nb-no.js +1 -1
  168. package/dist/locale/nb-no.min.js +1 -1
  169. package/dist/locale/nb-no.min.mjs +1 -1
  170. package/dist/locale/nb-no.mjs +1 -1
  171. package/dist/locale/nl.js +1 -1
  172. package/dist/locale/nl.min.js +1 -1
  173. package/dist/locale/nl.min.mjs +1 -1
  174. package/dist/locale/nl.mjs +1 -1
  175. package/dist/locale/no.js +1 -1
  176. package/dist/locale/no.min.js +1 -1
  177. package/dist/locale/no.min.mjs +1 -1
  178. package/dist/locale/no.mjs +1 -1
  179. package/dist/locale/pa.js +1 -1
  180. package/dist/locale/pa.min.js +1 -1
  181. package/dist/locale/pa.min.mjs +1 -1
  182. package/dist/locale/pa.mjs +1 -1
  183. package/dist/locale/pl.js +1 -1
  184. package/dist/locale/pl.min.js +1 -1
  185. package/dist/locale/pl.min.mjs +1 -1
  186. package/dist/locale/pl.mjs +1 -1
  187. package/dist/locale/pt-br.js +1 -1
  188. package/dist/locale/pt-br.min.js +1 -1
  189. package/dist/locale/pt-br.min.mjs +1 -1
  190. package/dist/locale/pt-br.mjs +1 -1
  191. package/dist/locale/pt.js +1 -1
  192. package/dist/locale/pt.min.js +1 -1
  193. package/dist/locale/pt.min.mjs +1 -1
  194. package/dist/locale/pt.mjs +1 -1
  195. package/dist/locale/ro.js +1 -1
  196. package/dist/locale/ro.min.js +1 -1
  197. package/dist/locale/ro.min.mjs +1 -1
  198. package/dist/locale/ro.mjs +1 -1
  199. package/dist/locale/ru.js +1 -1
  200. package/dist/locale/ru.min.js +1 -1
  201. package/dist/locale/ru.min.mjs +1 -1
  202. package/dist/locale/ru.mjs +1 -1
  203. package/dist/locale/sk.js +1 -1
  204. package/dist/locale/sk.min.js +1 -1
  205. package/dist/locale/sk.min.mjs +1 -1
  206. package/dist/locale/sk.mjs +1 -1
  207. package/dist/locale/sl.js +1 -1
  208. package/dist/locale/sl.min.js +1 -1
  209. package/dist/locale/sl.min.mjs +1 -1
  210. package/dist/locale/sl.mjs +1 -1
  211. package/dist/locale/sr.js +1 -1
  212. package/dist/locale/sr.min.js +1 -1
  213. package/dist/locale/sr.min.mjs +1 -1
  214. package/dist/locale/sr.mjs +1 -1
  215. package/dist/locale/sv.js +1 -1
  216. package/dist/locale/sv.min.js +1 -1
  217. package/dist/locale/sv.min.mjs +1 -1
  218. package/dist/locale/sv.mjs +1 -1
  219. package/dist/locale/sw.js +1 -1
  220. package/dist/locale/sw.min.js +1 -1
  221. package/dist/locale/sw.min.mjs +1 -1
  222. package/dist/locale/sw.mjs +1 -1
  223. package/dist/locale/ta.js +1 -1
  224. package/dist/locale/ta.min.js +1 -1
  225. package/dist/locale/ta.min.mjs +1 -1
  226. package/dist/locale/ta.mjs +1 -1
  227. package/dist/locale/te.js +1 -1
  228. package/dist/locale/te.min.js +1 -1
  229. package/dist/locale/te.min.mjs +1 -1
  230. package/dist/locale/te.mjs +1 -1
  231. package/dist/locale/th.js +1 -1
  232. package/dist/locale/th.min.js +1 -1
  233. package/dist/locale/th.min.mjs +1 -1
  234. package/dist/locale/th.mjs +1 -1
  235. package/dist/locale/tk.js +1 -1
  236. package/dist/locale/tk.min.js +1 -1
  237. package/dist/locale/tk.min.mjs +1 -1
  238. package/dist/locale/tk.mjs +1 -1
  239. package/dist/locale/tr.js +1 -1
  240. package/dist/locale/tr.min.js +1 -1
  241. package/dist/locale/tr.min.mjs +1 -1
  242. package/dist/locale/tr.mjs +1 -1
  243. package/dist/locale/ug-cn.js +1 -1
  244. package/dist/locale/ug-cn.min.js +1 -1
  245. package/dist/locale/ug-cn.min.mjs +1 -1
  246. package/dist/locale/ug-cn.mjs +1 -1
  247. package/dist/locale/uk.js +1 -1
  248. package/dist/locale/uk.min.js +1 -1
  249. package/dist/locale/uk.min.mjs +1 -1
  250. package/dist/locale/uk.mjs +1 -1
  251. package/dist/locale/uz-uz.js +1 -1
  252. package/dist/locale/uz-uz.min.js +1 -1
  253. package/dist/locale/uz-uz.min.mjs +1 -1
  254. package/dist/locale/uz-uz.mjs +1 -1
  255. package/dist/locale/vi.js +1 -1
  256. package/dist/locale/vi.min.js +1 -1
  257. package/dist/locale/vi.min.mjs +1 -1
  258. package/dist/locale/vi.mjs +1 -1
  259. package/dist/locale/zh-cn.js +1 -1
  260. package/dist/locale/zh-cn.min.js +1 -1
  261. package/dist/locale/zh-cn.min.mjs +1 -1
  262. package/dist/locale/zh-cn.mjs +1 -1
  263. package/dist/locale/zh-hk.js +1 -1
  264. package/dist/locale/zh-hk.min.js +1 -1
  265. package/dist/locale/zh-hk.min.mjs +1 -1
  266. package/dist/locale/zh-hk.mjs +1 -1
  267. package/dist/locale/zh-mo.js +1 -1
  268. package/dist/locale/zh-mo.min.js +1 -1
  269. package/dist/locale/zh-mo.min.mjs +1 -1
  270. package/dist/locale/zh-mo.mjs +1 -1
  271. package/dist/locale/zh-tw.js +1 -1
  272. package/dist/locale/zh-tw.min.js +1 -1
  273. package/dist/locale/zh-tw.min.mjs +1 -1
  274. package/dist/locale/zh-tw.mjs +1 -1
  275. package/es/components/affix/src/affix.mjs +1 -1
  276. package/es/components/alert/index.mjs +2 -2
  277. package/es/components/alert/src/alert.mjs +135 -39
  278. package/es/components/alert/src/alert.mjs.map +1 -1
  279. package/es/components/alert/src/alert2.mjs +39 -135
  280. package/es/components/alert/src/alert2.mjs.map +1 -1
  281. package/es/components/autocomplete/index.mjs +2 -2
  282. package/es/components/autocomplete/src/autocomplete.mjs +60 -486
  283. package/es/components/autocomplete/src/autocomplete.mjs.map +1 -1
  284. package/es/components/autocomplete/src/autocomplete2.mjs +486 -60
  285. package/es/components/autocomplete/src/autocomplete2.mjs.map +1 -1
  286. package/es/components/backtop/index.mjs +2 -2
  287. package/es/components/backtop/src/backtop.mjs +20 -61
  288. package/es/components/backtop/src/backtop.mjs.map +1 -1
  289. package/es/components/backtop/src/backtop2.mjs +61 -20
  290. package/es/components/backtop/src/backtop2.mjs.map +1 -1
  291. package/es/components/button/index.mjs +1 -1
  292. package/es/components/button/src/button-group.mjs +36 -11
  293. package/es/components/button/src/button-group.mjs.map +1 -1
  294. package/es/components/button/src/button-group2.mjs +11 -36
  295. package/es/components/button/src/button-group2.mjs.map +1 -1
  296. package/es/components/card/index.mjs +2 -2
  297. package/es/components/card/src/card.mjs +73 -22
  298. package/es/components/card/src/card.mjs.map +1 -1
  299. package/es/components/card/src/card2.mjs +22 -73
  300. package/es/components/card/src/card2.mjs.map +1 -1
  301. package/es/components/carousel/index.mjs +2 -2
  302. package/es/components/carousel/src/carousel-item.mjs +79 -7
  303. package/es/components/carousel/src/carousel-item.mjs.map +1 -1
  304. package/es/components/carousel/src/carousel-item2.mjs +7 -79
  305. package/es/components/carousel/src/carousel-item2.mjs.map +1 -1
  306. package/es/components/color-picker/index.mjs +2 -2
  307. package/es/components/color-picker/src/color-picker.mjs +389 -48
  308. package/es/components/color-picker/src/color-picker.mjs.map +1 -1
  309. package/es/components/color-picker/src/color-picker2.mjs +48 -389
  310. package/es/components/color-picker/src/color-picker2.mjs.map +1 -1
  311. package/es/components/countdown/index.mjs +2 -2
  312. package/es/components/countdown/src/countdown.mjs +83 -20
  313. package/es/components/countdown/src/countdown.mjs.map +1 -1
  314. package/es/components/countdown/src/countdown2.mjs +20 -83
  315. package/es/components/countdown/src/countdown2.mjs.map +1 -1
  316. package/es/components/dialog/src/dialog.mjs +1 -1
  317. package/es/components/index.mjs +24 -24
  318. package/es/components/input/index.mjs +2 -2
  319. package/es/components/input/src/input.mjs +124 -586
  320. package/es/components/input/src/input.mjs.map +1 -1
  321. package/es/components/input/src/input2.mjs +586 -124
  322. package/es/components/input/src/input2.mjs.map +1 -1
  323. package/es/components/mention/src/mention.mjs +1 -1
  324. package/es/components/mention/src/mention2.mjs +1 -1
  325. package/es/components/notification/index.mjs +1 -1
  326. package/es/components/notification/src/notification.mjs +174 -72
  327. package/es/components/notification/src/notification.mjs.map +1 -1
  328. package/es/components/notification/src/notification2.mjs +72 -174
  329. package/es/components/notification/src/notification2.mjs.map +1 -1
  330. package/es/components/notification/src/notify.mjs +2 -2
  331. package/es/components/pagination/src/components/jumper.mjs +69 -7
  332. package/es/components/pagination/src/components/jumper.mjs.map +1 -1
  333. package/es/components/pagination/src/components/jumper2.mjs +7 -69
  334. package/es/components/pagination/src/components/jumper2.mjs.map +1 -1
  335. package/es/components/pagination/src/pagination.mjs +1 -1
  336. package/es/components/popper/index.mjs +2 -2
  337. package/es/components/popper/src/content.mjs +145 -88
  338. package/es/components/popper/src/content.mjs.map +1 -1
  339. package/es/components/popper/src/content2.mjs +88 -145
  340. package/es/components/popper/src/content2.mjs.map +1 -1
  341. package/es/components/rate/index.mjs +2 -2
  342. package/es/components/rate/src/rate.mjs +85 -295
  343. package/es/components/rate/src/rate.mjs.map +1 -1
  344. package/es/components/rate/src/rate2.mjs +295 -85
  345. package/es/components/rate/src/rate2.mjs.map +1 -1
  346. package/es/components/select/index.mjs +2 -2
  347. package/es/components/select/src/select.mjs +727 -152
  348. package/es/components/select/src/select.mjs.map +1 -1
  349. package/es/components/select/src/select2.mjs +152 -727
  350. package/es/components/select/src/select2.mjs.map +1 -1
  351. package/es/components/skeleton/index.mjs +2 -2
  352. package/es/components/skeleton/src/skeleton-item.mjs +17 -27
  353. package/es/components/skeleton/src/skeleton-item.mjs.map +1 -1
  354. package/es/components/skeleton/src/skeleton-item2.mjs +27 -17
  355. package/es/components/skeleton/src/skeleton-item2.mjs.map +1 -1
  356. package/es/components/skeleton/src/skeleton2.mjs +1 -1
  357. package/es/components/slider/src/button.mjs +104 -18
  358. package/es/components/slider/src/button.mjs.map +1 -1
  359. package/es/components/slider/src/button2.mjs +18 -104
  360. package/es/components/slider/src/button2.mjs.map +1 -1
  361. package/es/components/slider/src/slider2.mjs +1 -1
  362. package/es/components/splitter/index.mjs +2 -2
  363. package/es/components/splitter/src/split-panel.mjs +186 -19
  364. package/es/components/splitter/src/split-panel.mjs.map +1 -1
  365. package/es/components/splitter/src/split-panel2.mjs +19 -186
  366. package/es/components/splitter/src/split-panel2.mjs.map +1 -1
  367. package/es/components/statistic/index.mjs +2 -2
  368. package/es/components/statistic/src/statistic.mjs +111 -24
  369. package/es/components/statistic/src/statistic.mjs.map +1 -1
  370. package/es/components/statistic/src/statistic2.mjs +24 -111
  371. package/es/components/statistic/src/statistic2.mjs.map +1 -1
  372. package/es/components/teleport/index.mjs +2 -2
  373. package/es/components/teleport/src/teleport.mjs +18 -8
  374. package/es/components/teleport/src/teleport.mjs.map +1 -1
  375. package/es/components/teleport/src/teleport2.mjs +8 -18
  376. package/es/components/teleport/src/teleport2.mjs.map +1 -1
  377. package/es/components/text/index.mjs +2 -2
  378. package/es/components/text/src/text.mjs +66 -20
  379. package/es/components/text/src/text.mjs.map +1 -1
  380. package/es/components/text/src/text2.mjs +20 -66
  381. package/es/components/text/src/text2.mjs.map +1 -1
  382. package/es/components/time-select/index.mjs +2 -2
  383. package/es/components/time-select/src/time-select.mjs +138 -66
  384. package/es/components/time-select/src/time-select.mjs.map +1 -1
  385. package/es/components/time-select/src/time-select2.mjs +66 -138
  386. package/es/components/time-select/src/time-select2.mjs.map +1 -1
  387. package/es/components/timeline/index.mjs +2 -2
  388. package/es/components/timeline/src/timeline-item.mjs +111 -32
  389. package/es/components/timeline/src/timeline-item.mjs.map +1 -1
  390. package/es/components/timeline/src/timeline-item2.mjs +32 -111
  391. package/es/components/timeline/src/timeline-item2.mjs.map +1 -1
  392. package/es/components/tooltip/index.mjs +2 -2
  393. package/es/components/tooltip/src/content.mjs +2 -2
  394. package/es/components/tooltip/src/content2.mjs +1 -1
  395. package/es/components/tooltip/src/tooltip.mjs +183 -30
  396. package/es/components/tooltip/src/tooltip.mjs.map +1 -1
  397. package/es/components/tooltip/src/tooltip2.mjs +30 -183
  398. package/es/components/tooltip/src/tooltip2.mjs.map +1 -1
  399. package/es/components/tour/index.mjs +3 -3
  400. package/es/components/tour/src/content.mjs +85 -42
  401. package/es/components/tour/src/content.mjs.map +1 -1
  402. package/es/components/tour/src/content2.mjs +42 -85
  403. package/es/components/tour/src/content2.mjs.map +1 -1
  404. package/es/components/tour/src/mask.mjs +17 -82
  405. package/es/components/tour/src/mask.mjs.map +1 -1
  406. package/es/components/tour/src/mask2.mjs +82 -17
  407. package/es/components/tour/src/mask2.mjs.map +1 -1
  408. package/es/components/tour/src/step.mjs +255 -43
  409. package/es/components/tour/src/step.mjs.map +1 -1
  410. package/es/components/tour/src/step2.mjs +43 -255
  411. package/es/components/tour/src/step2.mjs.map +1 -1
  412. package/es/components/tour/src/tour.mjs +2 -2
  413. package/es/components/tour/src/tour2.mjs +2 -2
  414. package/es/components/tree-select/src/tree-select.mjs +1 -1
  415. package/es/components/upload/index.mjs +1 -1
  416. package/es/components/upload/src/upload-list.mjs +27 -206
  417. package/es/components/upload/src/upload-list.mjs.map +1 -1
  418. package/es/components/upload/src/upload-list2.mjs +206 -27
  419. package/es/components/upload/src/upload-list2.mjs.map +1 -1
  420. package/es/components/upload/src/upload2.mjs +1 -1
  421. package/es/components/watermark/index.mjs +2 -2
  422. package/es/components/watermark/src/watermark.mjs +26 -247
  423. package/es/components/watermark/src/watermark.mjs.map +1 -1
  424. package/es/components/watermark/src/watermark2.mjs +247 -26
  425. package/es/components/watermark/src/watermark2.mjs.map +1 -1
  426. package/es/index.mjs +24 -24
  427. package/es/version.d.ts +1 -1
  428. package/es/version.mjs +1 -1
  429. package/es/version.mjs.map +1 -1
  430. package/lib/components/affix/src/affix.js +1 -1
  431. package/lib/components/alert/index.js +2 -2
  432. package/lib/components/alert/src/alert.js +134 -40
  433. package/lib/components/alert/src/alert.js.map +1 -1
  434. package/lib/components/alert/src/alert2.js +40 -134
  435. package/lib/components/alert/src/alert2.js.map +1 -1
  436. package/lib/components/autocomplete/index.js +2 -2
  437. package/lib/components/autocomplete/src/autocomplete.js +59 -484
  438. package/lib/components/autocomplete/src/autocomplete.js.map +1 -1
  439. package/lib/components/autocomplete/src/autocomplete2.js +484 -59
  440. package/lib/components/autocomplete/src/autocomplete2.js.map +1 -1
  441. package/lib/components/backtop/index.js +2 -2
  442. package/lib/components/backtop/src/backtop.js +21 -61
  443. package/lib/components/backtop/src/backtop.js.map +1 -1
  444. package/lib/components/backtop/src/backtop2.js +61 -21
  445. package/lib/components/backtop/src/backtop2.js.map +1 -1
  446. package/lib/components/button/index.js +1 -1
  447. package/lib/components/button/src/button-group.js +36 -11
  448. package/lib/components/button/src/button-group.js.map +1 -1
  449. package/lib/components/button/src/button-group2.js +11 -36
  450. package/lib/components/button/src/button-group2.js.map +1 -1
  451. package/lib/components/card/index.js +2 -2
  452. package/lib/components/card/src/card.js +73 -23
  453. package/lib/components/card/src/card.js.map +1 -1
  454. package/lib/components/card/src/card2.js +23 -73
  455. package/lib/components/card/src/card2.js.map +1 -1
  456. package/lib/components/carousel/index.js +2 -2
  457. package/lib/components/carousel/src/carousel-item.js +79 -7
  458. package/lib/components/carousel/src/carousel-item.js.map +1 -1
  459. package/lib/components/carousel/src/carousel-item2.js +7 -79
  460. package/lib/components/carousel/src/carousel-item2.js.map +1 -1
  461. package/lib/components/color-picker/index.js +2 -2
  462. package/lib/components/color-picker/src/color-picker.js +388 -48
  463. package/lib/components/color-picker/src/color-picker.js.map +1 -1
  464. package/lib/components/color-picker/src/color-picker2.js +48 -388
  465. package/lib/components/color-picker/src/color-picker2.js.map +1 -1
  466. package/lib/components/countdown/index.js +2 -2
  467. package/lib/components/countdown/src/countdown.js +83 -21
  468. package/lib/components/countdown/src/countdown.js.map +1 -1
  469. package/lib/components/countdown/src/countdown2.js +21 -83
  470. package/lib/components/countdown/src/countdown2.js.map +1 -1
  471. package/lib/components/dialog/src/dialog.js +1 -1
  472. package/lib/components/index.js +24 -24
  473. package/lib/components/input/index.js +2 -2
  474. package/lib/components/input/src/input.js +121 -582
  475. package/lib/components/input/src/input.js.map +1 -1
  476. package/lib/components/input/src/input2.js +582 -121
  477. package/lib/components/input/src/input2.js.map +1 -1
  478. package/lib/components/mention/src/mention.js +1 -1
  479. package/lib/components/mention/src/mention2.js +1 -1
  480. package/lib/components/notification/index.js +1 -1
  481. package/lib/components/notification/src/notification.js +173 -73
  482. package/lib/components/notification/src/notification.js.map +1 -1
  483. package/lib/components/notification/src/notification2.js +73 -173
  484. package/lib/components/notification/src/notification2.js.map +1 -1
  485. package/lib/components/notification/src/notify.js +2 -2
  486. package/lib/components/pagination/src/components/jumper.js +69 -7
  487. package/lib/components/pagination/src/components/jumper.js.map +1 -1
  488. package/lib/components/pagination/src/components/jumper2.js +7 -69
  489. package/lib/components/pagination/src/components/jumper2.js.map +1 -1
  490. package/lib/components/pagination/src/pagination.js +1 -1
  491. package/lib/components/popper/index.js +2 -2
  492. package/lib/components/popper/src/content.js +145 -93
  493. package/lib/components/popper/src/content.js.map +1 -1
  494. package/lib/components/popper/src/content2.js +93 -145
  495. package/lib/components/popper/src/content2.js.map +1 -1
  496. package/lib/components/rate/index.js +2 -2
  497. package/lib/components/rate/src/rate.js +85 -294
  498. package/lib/components/rate/src/rate.js.map +1 -1
  499. package/lib/components/rate/src/rate2.js +294 -85
  500. package/lib/components/rate/src/rate2.js.map +1 -1
  501. package/lib/components/select/index.js +2 -2
  502. package/lib/components/select/src/select.js +726 -152
  503. package/lib/components/select/src/select.js.map +1 -1
  504. package/lib/components/select/src/select2.js +152 -726
  505. package/lib/components/select/src/select2.js.map +1 -1
  506. package/lib/components/skeleton/index.js +2 -2
  507. package/lib/components/skeleton/src/skeleton-item.js +17 -27
  508. package/lib/components/skeleton/src/skeleton-item.js.map +1 -1
  509. package/lib/components/skeleton/src/skeleton-item2.js +27 -17
  510. package/lib/components/skeleton/src/skeleton-item2.js.map +1 -1
  511. package/lib/components/skeleton/src/skeleton2.js +1 -1
  512. package/lib/components/slider/src/button.js +104 -19
  513. package/lib/components/slider/src/button.js.map +1 -1
  514. package/lib/components/slider/src/button2.js +19 -104
  515. package/lib/components/slider/src/button2.js.map +1 -1
  516. package/lib/components/slider/src/slider2.js +1 -1
  517. package/lib/components/splitter/index.js +2 -2
  518. package/lib/components/splitter/src/split-panel.js +186 -20
  519. package/lib/components/splitter/src/split-panel.js.map +1 -1
  520. package/lib/components/splitter/src/split-panel2.js +20 -186
  521. package/lib/components/splitter/src/split-panel2.js.map +1 -1
  522. package/lib/components/statistic/index.js +2 -2
  523. package/lib/components/statistic/src/statistic.js +111 -24
  524. package/lib/components/statistic/src/statistic.js.map +1 -1
  525. package/lib/components/statistic/src/statistic2.js +24 -111
  526. package/lib/components/statistic/src/statistic2.js.map +1 -1
  527. package/lib/components/teleport/index.js +2 -2
  528. package/lib/components/teleport/src/teleport.js +18 -8
  529. package/lib/components/teleport/src/teleport.js.map +1 -1
  530. package/lib/components/teleport/src/teleport2.js +8 -18
  531. package/lib/components/teleport/src/teleport2.js.map +1 -1
  532. package/lib/components/text/index.js +2 -2
  533. package/lib/components/text/src/text.js +66 -20
  534. package/lib/components/text/src/text.js.map +1 -1
  535. package/lib/components/text/src/text2.js +20 -66
  536. package/lib/components/text/src/text2.js.map +1 -1
  537. package/lib/components/time-select/index.js +2 -2
  538. package/lib/components/time-select/src/time-select.js +143 -66
  539. package/lib/components/time-select/src/time-select.js.map +1 -1
  540. package/lib/components/time-select/src/time-select2.js +66 -143
  541. package/lib/components/time-select/src/time-select2.js.map +1 -1
  542. package/lib/components/timeline/index.js +2 -2
  543. package/lib/components/timeline/src/timeline-item.js +111 -32
  544. package/lib/components/timeline/src/timeline-item.js.map +1 -1
  545. package/lib/components/timeline/src/timeline-item2.js +32 -111
  546. package/lib/components/timeline/src/timeline-item2.js.map +1 -1
  547. package/lib/components/tooltip/index.js +2 -2
  548. package/lib/components/tooltip/src/content.js +2 -2
  549. package/lib/components/tooltip/src/content2.js +1 -1
  550. package/lib/components/tooltip/src/tooltip.js +183 -34
  551. package/lib/components/tooltip/src/tooltip.js.map +1 -1
  552. package/lib/components/tooltip/src/tooltip2.js +34 -183
  553. package/lib/components/tooltip/src/tooltip2.js.map +1 -1
  554. package/lib/components/tour/index.js +3 -3
  555. package/lib/components/tour/src/content.js +85 -45
  556. package/lib/components/tour/src/content.js.map +1 -1
  557. package/lib/components/tour/src/content2.js +45 -85
  558. package/lib/components/tour/src/content2.js.map +1 -1
  559. package/lib/components/tour/src/mask.js +17 -82
  560. package/lib/components/tour/src/mask.js.map +1 -1
  561. package/lib/components/tour/src/mask2.js +82 -17
  562. package/lib/components/tour/src/mask2.js.map +1 -1
  563. package/lib/components/tour/src/step.js +254 -43
  564. package/lib/components/tour/src/step.js.map +1 -1
  565. package/lib/components/tour/src/step2.js +43 -254
  566. package/lib/components/tour/src/step2.js.map +1 -1
  567. package/lib/components/tour/src/tour.js +2 -2
  568. package/lib/components/tour/src/tour2.js +2 -2
  569. package/lib/components/tree-select/src/tree-select.js +1 -1
  570. package/lib/components/upload/index.js +1 -1
  571. package/lib/components/upload/src/upload-list.js +28 -206
  572. package/lib/components/upload/src/upload-list.js.map +1 -1
  573. package/lib/components/upload/src/upload-list2.js +206 -28
  574. package/lib/components/upload/src/upload-list2.js.map +1 -1
  575. package/lib/components/upload/src/upload2.js +1 -1
  576. package/lib/components/watermark/index.js +2 -2
  577. package/lib/components/watermark/src/watermark.js +26 -247
  578. package/lib/components/watermark/src/watermark.js.map +1 -1
  579. package/lib/components/watermark/src/watermark2.js +247 -26
  580. package/lib/components/watermark/src/watermark2.js.map +1 -1
  581. package/lib/index.js +24 -24
  582. package/lib/version.d.ts +1 -1
  583. package/lib/version.js +1 -1
  584. package/lib/version.js.map +1 -1
  585. package/package.json +1 -1
  586. package/web-types.json +1 -1
@@ -1,117 +1,30 @@
1
- import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, unref, renderSlot, createTextVNode, toDisplayString, createCommentVNode, createElementVNode, normalizeStyle } from 'vue';
2
- import { statisticProps } from './statistic.mjs';
3
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
4
- import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
5
- import { isFunction } from '@vue/shared';
6
- import { isNumber } from '../../../utils/types.mjs';
1
+ import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
7
2
 
8
- const _sfc_main = defineComponent({
9
- ...{
10
- name: "ElStatistic"
3
+ const statisticProps = buildProps({
4
+ decimalSeparator: {
5
+ type: String,
6
+ default: "."
11
7
  },
12
- __name: "statistic",
13
- props: statisticProps,
14
- setup(__props, { expose: __expose }) {
15
- const props = __props;
16
- const ns = useNamespace("statistic");
17
- const displayValue = computed(() => {
18
- const { value, formatter, precision, decimalSeparator, groupSeparator } = props;
19
- if (isFunction(formatter))
20
- return formatter(value);
21
- if (!isNumber(value) || Number.isNaN(value))
22
- return value;
23
- let [integer, decimal = ""] = String(value).split(".");
24
- decimal = decimal.padEnd(precision, "0").slice(0, precision > 0 ? precision : 0);
25
- integer = integer.replace(/\B(?=(\d{3})+(?!\d))/g, groupSeparator);
26
- return [integer, decimal].join(decimal ? decimalSeparator : "");
27
- });
28
- __expose({
29
- displayValue
30
- });
31
- return (_ctx, _cache) => {
32
- return openBlock(), createElementBlock(
33
- "div",
34
- {
35
- class: normalizeClass(unref(ns).b())
36
- },
37
- [
38
- _ctx.$slots.title || _ctx.title ? (openBlock(), createElementBlock(
39
- "div",
40
- {
41
- key: 0,
42
- class: normalizeClass(unref(ns).e("head"))
43
- },
44
- [
45
- renderSlot(_ctx.$slots, "title", {}, () => [
46
- createTextVNode(
47
- toDisplayString(_ctx.title),
48
- 1
49
- )
50
- ])
51
- ],
52
- 2
53
- )) : createCommentVNode("v-if", true),
54
- createElementVNode(
55
- "div",
56
- {
57
- class: normalizeClass(unref(ns).e("content"))
58
- },
59
- [
60
- _ctx.$slots.prefix || _ctx.prefix ? (openBlock(), createElementBlock(
61
- "div",
62
- {
63
- key: 0,
64
- class: normalizeClass(unref(ns).e("prefix"))
65
- },
66
- [
67
- renderSlot(_ctx.$slots, "prefix", {}, () => [
68
- createElementVNode(
69
- "span",
70
- null,
71
- toDisplayString(_ctx.prefix),
72
- 1
73
- )
74
- ])
75
- ],
76
- 2
77
- )) : createCommentVNode("v-if", true),
78
- createElementVNode(
79
- "span",
80
- {
81
- class: normalizeClass(unref(ns).e("number")),
82
- style: normalizeStyle(_ctx.valueStyle)
83
- },
84
- toDisplayString(displayValue.value),
85
- 7
86
- ),
87
- _ctx.$slots.suffix || _ctx.suffix ? (openBlock(), createElementBlock(
88
- "div",
89
- {
90
- key: 1,
91
- class: normalizeClass(unref(ns).e("suffix"))
92
- },
93
- [
94
- renderSlot(_ctx.$slots, "suffix", {}, () => [
95
- createElementVNode(
96
- "span",
97
- null,
98
- toDisplayString(_ctx.suffix),
99
- 1
100
- )
101
- ])
102
- ],
103
- 2
104
- )) : createCommentVNode("v-if", true)
105
- ],
106
- 2
107
- )
108
- ],
109
- 2
110
- );
111
- };
8
+ groupSeparator: {
9
+ type: String,
10
+ default: ","
11
+ },
12
+ precision: {
13
+ type: Number,
14
+ default: 0
15
+ },
16
+ formatter: Function,
17
+ value: {
18
+ type: definePropType([Number, Object]),
19
+ default: 0
20
+ },
21
+ prefix: String,
22
+ suffix: String,
23
+ title: String,
24
+ valueStyle: {
25
+ type: definePropType([String, Object, Array])
112
26
  }
113
27
  });
114
- var Statistic = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/statistic/src/statistic.vue"]]);
115
28
 
116
- export { Statistic as default };
29
+ export { statisticProps };
117
30
  //# sourceMappingURL=statistic2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"statistic2.mjs","sources":["../../../../../../packages/components/statistic/src/statistic.vue"],"sourcesContent":["<template>\n <div :class=\"ns.b()\">\n <div v-if=\"$slots.title || title\" :class=\"ns.e('head')\">\n <slot name=\"title\">\n {{ title }}\n </slot>\n </div>\n <div :class=\"ns.e('content')\">\n <div v-if=\"$slots.prefix || prefix\" :class=\"ns.e('prefix')\">\n <slot name=\"prefix\">\n <span>{{ prefix }}</span>\n </slot>\n </div>\n <span :class=\"ns.e('number')\" :style=\"valueStyle\">\n {{ displayValue }}\n </span>\n <div v-if=\"$slots.suffix || suffix\" :class=\"ns.e('suffix')\">\n <slot name=\"suffix\">\n <span>{{ suffix }}</span>\n </slot>\n </div>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { isFunction, isNumber } from '@element-plus/utils'\nimport { statisticProps } from './statistic'\n\ndefineOptions({\n name: 'ElStatistic',\n})\n\nconst props = defineProps(statisticProps)\nconst ns = useNamespace('statistic')\n\nconst displayValue = computed(() => {\n const { value, formatter, precision, decimalSeparator, groupSeparator } =\n props\n\n if (isFunction(formatter)) return formatter(value)\n\n // https://github.com/element-plus/element-plus/issues/17784\n if (!isNumber(value) || Number.isNaN(value)) return value\n\n let [integer, decimal = ''] = String(value).split('.')\n decimal = decimal\n .padEnd(precision, '0')\n .slice(0, precision > 0 ? precision : 0)\n integer = integer.replace(/\\B(?=(\\d{3})+(?!\\d))/g, groupSeparator)\n return [integer, decimal].join(decimal ? decimalSeparator : '')\n})\n\ndefineExpose({\n /**\n * @description current display value\n */\n displayValue,\n})\n</script>\n"],"names":["_openBlock","_createElementBlock","_normalizeClass","_unref","$slots","title","_renderSlot","_createTextVNode","_createElementVNode","prefix","_toDisplayString","_normalizeStyle","valueStyle","suffix"],"mappings":";;;;;;;;;;;;;;AAmCA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACR,IAAA,MAAA,EAAA,GAAK,aAAa,WAAW,CAAA,CAAA;AAE7B,IAAA,MAAA,YAAA,GAAe,SAAS,MAAM;AAClC,MAAA,MAAM,EAAE,KAAO,EAAA,SAAA,EAAW,SAAW,EAAA,gBAAA,EAAkB,gBACrD,GAAA,KAAA,CAAA;AAEF,MAAA,IAAI,WAAW,SAAS,CAAA;AAAG,QAAA,OAAO,UAAU,KAAK,CAAA,CAAA;AAG7C,MAAA,IAAA,CAAC,QAAS,CAAA,KAAK,CAAK,IAAA,MAAA,CAAO,MAAM,KAAK,CAAA;AAAU,QAAA,OAAA,KAAA,CAAA;AAEhD,MAAA,IAAA,CAAC,SAAS,OAAU,GAAA,EAAE,IAAI,MAAO,CAAA,KAAK,CAAE,CAAA,KAAA,CAAM,GAAG,CAAA,CAAA;AAC3C,MAAA,OAAA,GAAA,OAAA,CACP,MAAO,CAAA,SAAA,EAAW,GAAG,CAAA,CACrB,MAAM,CAAG,EAAA,SAAA,GAAY,CAAI,GAAA,SAAA,GAAY,CAAC,CAAA,CAAA;AAC/B,MAAA,O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2BAFP,MAEO;AAAA,oBADLE,kBAAA;AAAA,sBAAyB,MAAA;AAAA,sBAAA,IAAA;AAAA,sBAAAE,eAAA,CAAhBD,KAAM,MAAA,CAAA;AAAA,sBAAA,CAAA;AAAA,qBAAA;AAAA,mBAAA,CAAA;AAAA;;;cAGnBD,kBAAA;AAAA,gBAEO,MAAA;AAAA,gBAAA;AAAA,kBAFA,OAAKN,cAAE,CAAAC,KAAA,CAAA,EAAA,CAAG,CAAA,CAAA,CAAC,QAAA,CAAA,CAAA;AAAA,kBAAa,KAAA,EAAKQ,cAAEC,CAAAA,IAAAA,CAAU,UAAA,CAAA;AAAA,iBAAA;AAAA,gCAC3C,aAAY,KAAA,CAAA;AAAA,gBAAA,CAAA;AAAA,eAAA;AAAA,cAENR,KAAAA,MAAO,CAAA,MAAA,IAAUS,IAA5B,CAAA,MAAA,IAAAb,WAAA,EAAAC,kBAAA;AAAA,gBAIM,KAAA;AAAA,gBAAA;AAAA,kBAAA,GAAA,EAAA,CAAA;AAAA,kBAJ+B,OAAKC,cAAE,CAAAC,KAAA,IAAG,CAAA,CAAA,CAAC,QAAA,CAAA,CAAA;AAAA,iBAAA;AAAA;kBAC9CG,WAEO,2BAFP,MAEO;AAAA,oBADLE,kBAAA;AAAA,sBAAyB,MAAA;AAAA,sBAAA,IAAA;AAAA,sBAAAE,eAAA,CAAhBG,KAAM,MAAA,CAAA;AAAA,sBAAA,CAAA;AAAA,qBAAA;AAAA,mBAAA,CAAA;AAAA;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"statistic2.mjs","sources":["../../../../../../packages/components/statistic/src/statistic.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\n\nimport type { ExtractPropTypes, ExtractPublicPropTypes, StyleValue } from 'vue'\nimport type { Dayjs } from 'dayjs'\nimport type Statistic from './statistic.vue'\n\nexport const statisticProps = buildProps({\n /**\n * @description Setting the decimal point\n */\n decimalSeparator: {\n type: String,\n default: '.',\n },\n /**\n * @description Sets the thousandth identifier\n */\n groupSeparator: {\n type: String,\n default: ',',\n },\n /**\n * @description numerical precision\n */\n precision: {\n type: Number,\n default: 0,\n },\n /**\n * @description Custom numerical presentation\n */\n formatter: Function,\n /**\n * @description Numerical content\n */\n value: {\n type: definePropType<number | Dayjs>([Number, Object]),\n default: 0,\n },\n /**\n * @description Sets the prefix of a number\n */\n prefix: String,\n\n /**\n * @description Sets the suffix of a number\n */\n suffix: String,\n /**\n * @description Numeric titles\n */\n title: String,\n /**\n * @description Styles numeric values\n */\n valueStyle: {\n type: definePropType<StyleValue>([String, Object, Array]),\n },\n} as const)\nexport type StatisticProps = ExtractPropTypes<typeof statisticProps>\nexport type StatisticPropsPublic = ExtractPublicPropTypes<typeof statisticProps>\n\nexport type StatisticInstance = InstanceType<typeof Statistic> & unknown\n"],"names":[],"mappings":";;AAMO,MAAM,iBAAiB,UAAW,CAAA;AAAA,EAIvC,gBAAkB,EAAA;AAAA,IAChB,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,GAAA;AAAA,GACX;AAAA,EAIA,cAAgB,EAAA;AAAA,IACd,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,GAAA;AAAA,GACX;AAAA,EAIA,SAAW,EAAA;AAAA,IACT,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,CAAA;AAAA,GACX;AAAA,EAIA,SAAW,EAAA,QAAA;AAAA,EAIX,KAAO,EAAA;AAAA,IACL,IAAM,EAAA,cAAA,CAA+B,CAAC,MAAA,EAAQ,MAAM,CAAC,CAAA;AAAA,IACrD,OAAS,EAAA,CAAA;AAAA,GACX;AAAA,EAIA,MAAQ,EAAA,MAAA;AAAA,EAKR,MAAQ,EAAA,MAAA;AAAA,EAIR,KAAO,EAAA,MAAA;AAAA,EAIP,UAAY,EAAA;AAAA,IACV,MAAM,cAA2B,CAAA,CAAC,MAAQ,EAAA,MAAA,EAAQ,KAAK,CAAC,CAAA;AAAA,GAC1D;AACF,CAAU;;;;"}
@@ -1,5 +1,5 @@
1
- import Teleport from './src/teleport2.mjs';
2
- export { teleportProps } from './src/teleport.mjs';
1
+ import Teleport from './src/teleport.mjs';
2
+ export { teleportProps } from './src/teleport2.mjs';
3
3
  import { withInstall } from '../../utils/vue/install.mjs';
4
4
 
5
5
  const ElTeleport = withInstall(Teleport);
@@ -1,12 +1,22 @@
1
- import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
1
+ import { defineComponent, renderSlot, openBlock, createBlock, Teleport as Teleport$1 } from 'vue';
2
+ import { teleportProps } from './teleport2.mjs';
3
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
2
4
 
3
- const teleportProps = buildProps({
4
- to: {
5
- type: definePropType([String, Object]),
6
- required: true
7
- },
8
- disabled: Boolean
5
+ const _sfc_main = defineComponent({
6
+ __name: "teleport",
7
+ props: teleportProps,
8
+ setup(__props) {
9
+ return (_ctx, _cache) => {
10
+ return _ctx.disabled ? renderSlot(_ctx.$slots, "default", { key: 0 }) : (openBlock(), createBlock(Teleport$1, {
11
+ key: 1,
12
+ to: _ctx.to
13
+ }, [
14
+ renderSlot(_ctx.$slots, "default")
15
+ ], 8, ["to"]));
16
+ };
17
+ }
9
18
  });
19
+ var Teleport = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/teleport/src/teleport.vue"]]);
10
20
 
11
- export { teleportProps };
21
+ export { Teleport as default };
12
22
  //# sourceMappingURL=teleport.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"teleport.mjs","sources":["../../../../../../packages/components/teleport/src/teleport.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\n\nimport type { ExtractPropTypes, ExtractPublicPropTypes } from 'vue'\nimport type Teleport from './teleport.vue'\n\nexport const teleportProps = buildProps({\n to: {\n type: definePropType<string | HTMLElement>([String, Object]),\n required: true,\n },\n disabled: Boolean,\n} as const)\n\nexport type TeleportProps = ExtractPropTypes<typeof teleportProps>\nexport type TeleportPropsPublic = ExtractPublicPropTypes<typeof teleportProps>\nexport type TeleportInstance = InstanceType<typeof Teleport> & unknown\n"],"names":[],"mappings":";;AAKO,MAAM,gBAAgB,UAAW,CAAA;AAAA,EACtC,EAAI,EAAA;AAAA,IACF,IAAM,EAAA,cAAA,CAAqC,CAAC,MAAA,EAAQ,MAAM,CAAC,CAAA;AAAA,IAC3D,QAAU,EAAA,IAAA;AAAA,GACZ;AAAA,EACA,QAAU,EAAA,OAAA;AACZ,CAAU;;;;"}
1
+ {"version":3,"file":"teleport.mjs","sources":["../../../../../../packages/components/teleport/src/teleport.vue"],"sourcesContent":["<template>\n <template v-if=\"disabled\">\n <slot />\n </template>\n <teleport v-else :to=\"to\">\n <slot />\n </teleport>\n</template>\n\n<script lang=\"ts\" setup>\nimport { teleportProps } from './teleport'\n\ndefineProps(teleportProps)\n</script>\n"],"names":["disabled","_renderSlot","_createBlock","_Teleport","to"],"mappings":";;;;;;;;;aACkBA,IACd,CAAA,QAAA,GAAAC,UAAQ,CAAA,IAAA,gDAEVC,YAEWC,UAAA,EAAA;AAAA,QAAA,GAAA,EAAA,CAAA;AAAA,QAFO,IAAIC,IAAAA,CAAAA,EAAAA;AAAAA,OAAAA,EAAAA;AAAAA,QACpBH,UAAA,CAAQ,IAAA,CAAA,MAAA,EAAA,SAAA,CAAA;AAAA,OAAA,EAAA,CAAA,EAAA,CAAA,IAAA,CAAA,CAAA,CAAA,CAAA;AAAA;;;;;;;"}
@@ -1,22 +1,12 @@
1
- import { defineComponent, renderSlot, openBlock, createBlock, Teleport as Teleport$1 } from 'vue';
2
- import { teleportProps } from './teleport.mjs';
3
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
1
+ import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
4
2
 
5
- const _sfc_main = defineComponent({
6
- __name: "teleport",
7
- props: teleportProps,
8
- setup(__props) {
9
- return (_ctx, _cache) => {
10
- return _ctx.disabled ? renderSlot(_ctx.$slots, "default", { key: 0 }) : (openBlock(), createBlock(Teleport$1, {
11
- key: 1,
12
- to: _ctx.to
13
- }, [
14
- renderSlot(_ctx.$slots, "default")
15
- ], 8, ["to"]));
16
- };
17
- }
3
+ const teleportProps = buildProps({
4
+ to: {
5
+ type: definePropType([String, Object]),
6
+ required: true
7
+ },
8
+ disabled: Boolean
18
9
  });
19
- var Teleport = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/teleport/src/teleport.vue"]]);
20
10
 
21
- export { Teleport as default };
11
+ export { teleportProps };
22
12
  //# sourceMappingURL=teleport2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"teleport2.mjs","sources":["../../../../../../packages/components/teleport/src/teleport.vue"],"sourcesContent":["<template>\n <template v-if=\"disabled\">\n <slot />\n </template>\n <teleport v-else :to=\"to\">\n <slot />\n </teleport>\n</template>\n\n<script lang=\"ts\" setup>\nimport { teleportProps } from './teleport'\n\ndefineProps(teleportProps)\n</script>\n"],"names":["disabled","_renderSlot","_createBlock","_Teleport","to"],"mappings":";;;;;;;;;aACkBA,IACd,CAAA,QAAA,GAAAC,UAAQ,CAAA,IAAA,gDAEVC,YAEWC,UAAA,EAAA;AAAA,QAAA,GAAA,EAAA,CAAA;AAAA,QAFO,IAAIC,IAAAA,CAAAA,EAAAA;AAAAA,OAAAA,EAAAA;AAAAA,QACpBH,UAAA,CAAQ,IAAA,CAAA,MAAA,EAAA,SAAA,CAAA;AAAA,OAAA,EAAA,CAAA,EAAA,CAAA,IAAA,CAAA,CAAA,CAAA,CAAA;AAAA;;;;;;;"}
1
+ {"version":3,"file":"teleport2.mjs","sources":["../../../../../../packages/components/teleport/src/teleport.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\n\nimport type { ExtractPropTypes, ExtractPublicPropTypes } from 'vue'\nimport type Teleport from './teleport.vue'\n\nexport const teleportProps = buildProps({\n to: {\n type: definePropType<string | HTMLElement>([String, Object]),\n required: true,\n },\n disabled: Boolean,\n} as const)\n\nexport type TeleportProps = ExtractPropTypes<typeof teleportProps>\nexport type TeleportPropsPublic = ExtractPublicPropTypes<typeof teleportProps>\nexport type TeleportInstance = InstanceType<typeof Teleport> & unknown\n"],"names":[],"mappings":";;AAKO,MAAM,gBAAgB,UAAW,CAAA;AAAA,EACtC,EAAI,EAAA;AAAA,IACF,IAAM,EAAA,cAAA,CAAqC,CAAC,MAAA,EAAQ,MAAM,CAAC,CAAA;AAAA,IAC3D,QAAU,EAAA,IAAA;AAAA,GACZ;AAAA,EACA,QAAU,EAAA,OAAA;AACZ,CAAU;;;;"}
@@ -1,5 +1,5 @@
1
- import Text from './src/text2.mjs';
2
- export { textProps } from './src/text.mjs';
1
+ import Text from './src/text.mjs';
2
+ export { textProps } from './src/text2.mjs';
3
3
  import { withInstall } from '../../utils/vue/install.mjs';
4
4
 
5
5
  const ElText = withInstall(Text);
@@ -1,26 +1,72 @@
1
- import { buildProps } from '../../../utils/vue/props/runtime.mjs';
2
- import { componentSizes } from '../../../constants/size.mjs';
1
+ import { defineComponent, ref, computed, onMounted, onUpdated, openBlock, createBlock, resolveDynamicComponent, normalizeClass, normalizeStyle, withCtx, renderSlot, useAttrs } from 'vue';
2
+ import { textProps } from './text2.mjs';
3
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
4
+ import { useFormSize } from '../../form/src/hooks/use-form-common-props.mjs';
5
+ import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
6
+ import { isUndefined } from '../../../utils/types.mjs';
3
7
 
4
- const textProps = buildProps({
5
- type: {
6
- type: String,
7
- values: ["primary", "success", "info", "warning", "danger", ""],
8
- default: ""
8
+ const _sfc_main = defineComponent({
9
+ ...{
10
+ name: "ElText"
9
11
  },
10
- size: {
11
- type: String,
12
- values: componentSizes,
13
- default: ""
14
- },
15
- truncated: Boolean,
16
- lineClamp: {
17
- type: [String, Number]
18
- },
19
- tag: {
20
- type: String,
21
- default: "span"
12
+ __name: "text",
13
+ props: textProps,
14
+ setup(__props) {
15
+ const props = __props;
16
+ const textRef = ref();
17
+ const textSize = useFormSize();
18
+ const ns = useNamespace("text");
19
+ const textKls = computed(() => [
20
+ ns.b(),
21
+ ns.m(props.type),
22
+ ns.m(textSize.value),
23
+ ns.is("truncated", props.truncated),
24
+ ns.is("line-clamp", !isUndefined(props.lineClamp))
25
+ ]);
26
+ const bindTitle = () => {
27
+ var _a, _b, _c, _d, _e, _f, _g;
28
+ const inheritTitle = useAttrs().title;
29
+ if (inheritTitle)
30
+ return;
31
+ let shouldAddTitle = false;
32
+ const text = ((_a = textRef.value) == null ? void 0 : _a.textContent) || "";
33
+ if (props.truncated) {
34
+ const width = (_b = textRef.value) == null ? void 0 : _b.offsetWidth;
35
+ const scrollWidth = (_c = textRef.value) == null ? void 0 : _c.scrollWidth;
36
+ if (width && scrollWidth && scrollWidth > width) {
37
+ shouldAddTitle = true;
38
+ }
39
+ } else if (!isUndefined(props.lineClamp)) {
40
+ const height = (_d = textRef.value) == null ? void 0 : _d.offsetHeight;
41
+ const scrollHeight = (_e = textRef.value) == null ? void 0 : _e.scrollHeight;
42
+ if (height && scrollHeight && scrollHeight > height) {
43
+ shouldAddTitle = true;
44
+ }
45
+ }
46
+ if (shouldAddTitle) {
47
+ (_f = textRef.value) == null ? void 0 : _f.setAttribute("title", text);
48
+ } else {
49
+ (_g = textRef.value) == null ? void 0 : _g.removeAttribute("title");
50
+ }
51
+ };
52
+ onMounted(bindTitle);
53
+ onUpdated(bindTitle);
54
+ return (_ctx, _cache) => {
55
+ return openBlock(), createBlock(resolveDynamicComponent(_ctx.tag), {
56
+ ref_key: "textRef",
57
+ ref: textRef,
58
+ class: normalizeClass(textKls.value),
59
+ style: normalizeStyle({ "-webkit-line-clamp": _ctx.lineClamp })
60
+ }, {
61
+ default: withCtx(() => [
62
+ renderSlot(_ctx.$slots, "default")
63
+ ]),
64
+ _: 3
65
+ }, 8, ["class", "style"]);
66
+ };
22
67
  }
23
68
  });
69
+ var Text = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/text/src/text.vue"]]);
24
70
 
25
- export { textProps };
71
+ export { Text as default };
26
72
  //# sourceMappingURL=text.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"text.mjs","sources":["../../../../../../packages/components/text/src/text.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport { componentSizes } from '@element-plus/constants'\n\nimport type { ExtractPropTypes, ExtractPublicPropTypes } from 'vue'\n\nexport const textProps = buildProps({\n /**\n * @description text type\n */\n type: {\n type: String,\n values: ['primary', 'success', 'info', 'warning', 'danger', ''],\n default: '',\n },\n /**\n * @description text size\n */\n size: {\n type: String,\n values: componentSizes,\n default: '',\n },\n /**\n * @description render ellipsis\n */\n truncated: Boolean,\n /**\n * @description maximum lines\n */\n lineClamp: {\n type: [String, Number],\n },\n /**\n * @description custom element tag\n */\n tag: {\n type: String,\n default: 'span',\n },\n} as const)\n\nexport type TextProps = ExtractPropTypes<typeof textProps>\nexport type TextPropsPublic = ExtractPublicPropTypes<typeof textProps>\n"],"names":[],"mappings":";;;AAKO,MAAM,YAAY,UAAW,CAAA;AAAA,EAIlC,IAAM,EAAA;AAAA,IACJ,IAAM,EAAA,MAAA;AAAA,IACN,QAAQ,CAAC,SAAA,EAAW,WAAW,MAAQ,EAAA,SAAA,EAAW,UAAU,EAAE,CAAA;AAAA,IAC9D,OAAS,EAAA,EAAA;AAAA,GACX;AAAA,EAIA,IAAM,EAAA;AAAA,IACJ,IAAM,EAAA,MAAA;AAAA,IACN,MAAQ,EAAA,cAAA;AAAA,IACR,OAAS,EAAA,EAAA;AAAA,GACX;AAAA,EAIA,SAAW,EAAA,OAAA;AAAA,EAIX,SAAW,EAAA;AAAA,IACT,IAAA,EAAM,CAAC,MAAA,EAAQ,MAAM,CAAA;AAAA,GACvB;AAAA,EAIA,GAAK,EAAA;AAAA,IACH,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,MAAA;AAAA,GACX;AACF,CAAU;;;;"}
1
+ {"version":3,"file":"text.mjs","sources":["../../../../../../packages/components/text/src/text.vue"],"sourcesContent":["<template>\n <component\n :is=\"tag\"\n ref=\"textRef\"\n :class=\"textKls\"\n :style=\"{ '-webkit-line-clamp': lineClamp }\"\n >\n <slot />\n </component>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, onMounted, onUpdated, ref, useAttrs } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { useFormSize } from '@element-plus/components/form'\nimport { isUndefined } from '@element-plus/utils'\nimport { textProps } from './text'\n\ndefineOptions({\n name: 'ElText',\n})\n\nconst props = defineProps(textProps)\nconst textRef = ref<HTMLElement>()\n\nconst textSize = useFormSize()\nconst ns = useNamespace('text')\n\nconst textKls = computed(() => [\n ns.b(),\n ns.m(props.type),\n ns.m(textSize.value),\n ns.is('truncated', props.truncated),\n ns.is('line-clamp', !isUndefined(props.lineClamp)),\n])\n\nconst bindTitle = () => {\n const inheritTitle = useAttrs().title\n\n if (inheritTitle) return\n let shouldAddTitle = false\n const text = textRef.value?.textContent || ''\n\n if (props.truncated) {\n const width = textRef.value?.offsetWidth\n const scrollWidth = textRef.value?.scrollWidth\n if (width && scrollWidth && scrollWidth > width) {\n shouldAddTitle = true\n }\n } else if (!isUndefined(props.lineClamp)) {\n const height = textRef.value?.offsetHeight\n const scrollHeight = textRef.value?.scrollHeight\n if (height && scrollHeight && scrollHeight > height) {\n shouldAddTitle = true\n }\n }\n\n if (shouldAddTitle) {\n textRef.value?.setAttribute('title', text)\n } else {\n textRef.value?.removeAttribute('title')\n }\n}\n\nonMounted(bindTitle)\nonUpdated(bindTitle)\n</script>\n"],"names":["_openBlock","_createBlock","_resolveDynamicComponent","tag","_normalizeClass","_normalizeStyle","lineClamp","_renderSlot"],"mappings":";;;;;;;;;;;;;;AAsBA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAA,MAAM,UAAU,GAAiB,EAAA,CAAA;A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,72 +1,26 @@
1
- import { defineComponent, ref, computed, onMounted, onUpdated, openBlock, createBlock, resolveDynamicComponent, normalizeClass, normalizeStyle, withCtx, renderSlot, useAttrs } from 'vue';
2
- import { textProps } from './text.mjs';
3
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
4
- import { useFormSize } from '../../form/src/hooks/use-form-common-props.mjs';
5
- import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
6
- import { isUndefined } from '../../../utils/types.mjs';
1
+ import { buildProps } from '../../../utils/vue/props/runtime.mjs';
2
+ import { componentSizes } from '../../../constants/size.mjs';
7
3
 
8
- const _sfc_main = defineComponent({
9
- ...{
10
- name: "ElText"
4
+ const textProps = buildProps({
5
+ type: {
6
+ type: String,
7
+ values: ["primary", "success", "info", "warning", "danger", ""],
8
+ default: ""
11
9
  },
12
- __name: "text",
13
- props: textProps,
14
- setup(__props) {
15
- const props = __props;
16
- const textRef = ref();
17
- const textSize = useFormSize();
18
- const ns = useNamespace("text");
19
- const textKls = computed(() => [
20
- ns.b(),
21
- ns.m(props.type),
22
- ns.m(textSize.value),
23
- ns.is("truncated", props.truncated),
24
- ns.is("line-clamp", !isUndefined(props.lineClamp))
25
- ]);
26
- const bindTitle = () => {
27
- var _a, _b, _c, _d, _e, _f, _g;
28
- const inheritTitle = useAttrs().title;
29
- if (inheritTitle)
30
- return;
31
- let shouldAddTitle = false;
32
- const text = ((_a = textRef.value) == null ? void 0 : _a.textContent) || "";
33
- if (props.truncated) {
34
- const width = (_b = textRef.value) == null ? void 0 : _b.offsetWidth;
35
- const scrollWidth = (_c = textRef.value) == null ? void 0 : _c.scrollWidth;
36
- if (width && scrollWidth && scrollWidth > width) {
37
- shouldAddTitle = true;
38
- }
39
- } else if (!isUndefined(props.lineClamp)) {
40
- const height = (_d = textRef.value) == null ? void 0 : _d.offsetHeight;
41
- const scrollHeight = (_e = textRef.value) == null ? void 0 : _e.scrollHeight;
42
- if (height && scrollHeight && scrollHeight > height) {
43
- shouldAddTitle = true;
44
- }
45
- }
46
- if (shouldAddTitle) {
47
- (_f = textRef.value) == null ? void 0 : _f.setAttribute("title", text);
48
- } else {
49
- (_g = textRef.value) == null ? void 0 : _g.removeAttribute("title");
50
- }
51
- };
52
- onMounted(bindTitle);
53
- onUpdated(bindTitle);
54
- return (_ctx, _cache) => {
55
- return openBlock(), createBlock(resolveDynamicComponent(_ctx.tag), {
56
- ref_key: "textRef",
57
- ref: textRef,
58
- class: normalizeClass(textKls.value),
59
- style: normalizeStyle({ "-webkit-line-clamp": _ctx.lineClamp })
60
- }, {
61
- default: withCtx(() => [
62
- renderSlot(_ctx.$slots, "default")
63
- ]),
64
- _: 3
65
- }, 8, ["class", "style"]);
66
- };
10
+ size: {
11
+ type: String,
12
+ values: componentSizes,
13
+ default: ""
14
+ },
15
+ truncated: Boolean,
16
+ lineClamp: {
17
+ type: [String, Number]
18
+ },
19
+ tag: {
20
+ type: String,
21
+ default: "span"
67
22
  }
68
23
  });
69
- var Text = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/text/src/text.vue"]]);
70
24
 
71
- export { Text as default };
25
+ export { textProps };
72
26
  //# sourceMappingURL=text2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"text2.mjs","sources":["../../../../../../packages/components/text/src/text.vue"],"sourcesContent":["<template>\n <component\n :is=\"tag\"\n ref=\"textRef\"\n :class=\"textKls\"\n :style=\"{ '-webkit-line-clamp': lineClamp }\"\n >\n <slot />\n </component>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, onMounted, onUpdated, ref, useAttrs } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { useFormSize } from '@element-plus/components/form'\nimport { isUndefined } from '@element-plus/utils'\nimport { textProps } from './text'\n\ndefineOptions({\n name: 'ElText',\n})\n\nconst props = defineProps(textProps)\nconst textRef = ref<HTMLElement>()\n\nconst textSize = useFormSize()\nconst ns = useNamespace('text')\n\nconst textKls = computed(() => [\n ns.b(),\n ns.m(props.type),\n ns.m(textSize.value),\n ns.is('truncated', props.truncated),\n ns.is('line-clamp', !isUndefined(props.lineClamp)),\n])\n\nconst bindTitle = () => {\n const inheritTitle = useAttrs().title\n\n if (inheritTitle) return\n let shouldAddTitle = false\n const text = textRef.value?.textContent || ''\n\n if (props.truncated) {\n const width = textRef.value?.offsetWidth\n const scrollWidth = textRef.value?.scrollWidth\n if (width && scrollWidth && scrollWidth > width) {\n shouldAddTitle = true\n }\n } else if (!isUndefined(props.lineClamp)) {\n const height = textRef.value?.offsetHeight\n const scrollHeight = textRef.value?.scrollHeight\n if (height && scrollHeight && scrollHeight > height) {\n shouldAddTitle = true\n }\n }\n\n if (shouldAddTitle) {\n textRef.value?.setAttribute('title', text)\n } else {\n textRef.value?.removeAttribute('title')\n }\n}\n\nonMounted(bindTitle)\nonUpdated(bindTitle)\n</script>\n"],"names":["_openBlock","_createBlock","_resolveDynamicComponent","tag","_normalizeClass","_normalizeStyle","lineClamp","_renderSlot"],"mappings":";;;;;;;;;;;;;;AAsBA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAA,MAAM,UAAU,GAAiB,EAAA,CAAA;AAEjC,IAAA,MAAM,WAAW,WAAY,EAAA,CAAA;AACvB,IAAA,MAAA,EAAA,GAAK,aAAa,MAAM,CAAA,CAAA;AAExB,IAAA,MAAA,OAAA,GAAU,SAAS,MAAM;AAAA,MAC7B,GAAG,CAAE,EAAA;AAAA,MACL,EAAA,CAAG,CAAE,CAAA,KAAA,CAAM,IAAI,CAAA;AAAA,MACf,EAAA,CAAG,CAAE,CAAA,QAAA,CAAS,KAAK,CAAA;AAAA,MACnB,EAAG,CAAA,EAAA,CAAG,WAAa,EAAA,KAAA,CAAM,SAAS,CAAA;AAAA,MAClC,GAAG,EAAG,CAAA,YAAA,EAAc,CAAC,WAAY,CAAA,KAAA,CAAM,SAAS,CAAC,CAAA;AAAA,KAClD,CAAA,CAAA;AAED,IAAA,MAAM,YAAY,MA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AAA,IAAO,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,YAAA,CAAa,OAAS,EAAA,IAAA,CAAA,CAAA;AAAA,OAChC,MAAA;AACG,QAAA,CAAA,EAAA,GAAA,OAAA,CAAA,KAAA,KAAA,mBAAO,eAAgB,CAAA,OAAA,CAAA,CAAA;AAAA,OACjC;AAAA,KACF,CAAA;AAEA,IAAA,SAAA,CAAU,SAAS,CAAA,CAAA;AACnB,IAAA,SAAA,CAAU,SAAS,CAAA,CAAA;;AAhEjB,MAAA,OAAAA,WAAA,EAAAC,WAAA,CAOYC,uBANLC,CAAAA,IAAAA,CAAG,GAAA,CAAA,EAAA;AAAA,QACJ,OAAA,EAAA,SAAA;AAAA,QAAJ,GAAI,EAAA,OAAA;AAAA,QACH,KAAA,EAAKC,cAAE,CAAA,OAAA,CAAO,KAAA,CAAA;AAAA,QACd,OAAKC,qCAA0BC,EAAAA,IAAAA,CAAS,WAAA,CAAA;AAAA,OAAA,EAAA;AAAA,yBAEzC,MAAQ;AAAA,UAARC,UAAA,CAAQ,IAAA,CAAA,MAAA,EAAA,SAAA,CAAA;AAAA,SAAA,CAAA;AAAA;;;;;;;;;"}
1
+ {"version":3,"file":"text2.mjs","sources":["../../../../../../packages/components/text/src/text.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport { componentSizes } from '@element-plus/constants'\n\nimport type { ExtractPropTypes, ExtractPublicPropTypes } from 'vue'\n\nexport const textProps = buildProps({\n /**\n * @description text type\n */\n type: {\n type: String,\n values: ['primary', 'success', 'info', 'warning', 'danger', ''],\n default: '',\n },\n /**\n * @description text size\n */\n size: {\n type: String,\n values: componentSizes,\n default: '',\n },\n /**\n * @description render ellipsis\n */\n truncated: Boolean,\n /**\n * @description maximum lines\n */\n lineClamp: {\n type: [String, Number],\n },\n /**\n * @description custom element tag\n */\n tag: {\n type: String,\n default: 'span',\n },\n} as const)\n\nexport type TextProps = ExtractPropTypes<typeof textProps>\nexport type TextPropsPublic = ExtractPublicPropTypes<typeof textProps>\n"],"names":[],"mappings":";;;AAKO,MAAM,YAAY,UAAW,CAAA;AAAA,EAIlC,IAAM,EAAA;AAAA,IACJ,IAAM,EAAA,MAAA;AAAA,IACN,QAAQ,CAAC,SAAA,EAAW,WAAW,MAAQ,EAAA,SAAA,EAAW,UAAU,EAAE,CAAA;AAAA,IAC9D,OAAS,EAAA,EAAA;AAAA,GACX;AAAA,EAIA,IAAM,EAAA;AAAA,IACJ,IAAM,EAAA,MAAA;AAAA,IACN,MAAQ,EAAA,cAAA;AAAA,IACR,OAAS,EAAA,EAAA;AAAA,GACX;AAAA,EAIA,SAAW,EAAA,OAAA;AAAA,EAIX,SAAW,EAAA;AAAA,IACT,IAAA,EAAM,CAAC,MAAA,EAAQ,MAAM,CAAA;AAAA,GACvB;AAAA,EAIA,GAAK,EAAA;AAAA,IACH,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,MAAA;AAAA,GACX;AACF,CAAU;;;;"}
@@ -1,5 +1,5 @@
1
- import TimeSelect from './src/time-select2.mjs';
2
- export { timeSelectProps } from './src/time-select.mjs';
1
+ import TimeSelect from './src/time-select.mjs';
2
+ export { timeSelectProps } from './src/time-select2.mjs';
3
3
  import { withInstall } from '../../utils/vue/install.mjs';
4
4
 
5
5
  const ElTimeSelect = withInstall(TimeSelect);