element-pe 2.2.85 → 2.2.87

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 (442) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index.full.js +0 -6
  3. package/dist/index.full.min.js +1 -1
  4. package/dist/index.full.min.js.map +1 -1
  5. package/dist/index.full.min.mjs +1 -1
  6. package/dist/index.full.min.mjs.map +1 -1
  7. package/dist/index.full.mjs +0 -6
  8. package/es/components/alert/index.mjs +2 -2
  9. package/es/components/alert/src/alert.mjs +38 -103
  10. package/es/components/alert/src/alert.mjs.map +1 -1
  11. package/es/components/alert/src/alert2.mjs +103 -38
  12. package/es/components/alert/src/alert2.mjs.map +1 -1
  13. package/es/components/badge/index.mjs +2 -2
  14. package/es/components/badge/src/badge.mjs +59 -17
  15. package/es/components/badge/src/badge.mjs.map +1 -1
  16. package/es/components/badge/src/badge2.mjs +17 -59
  17. package/es/components/badge/src/badge2.mjs.map +1 -1
  18. package/es/components/breadcrumb/index.mjs +4 -4
  19. package/es/components/breadcrumb/src/breadcrumb-item.mjs +11 -56
  20. package/es/components/breadcrumb/src/breadcrumb-item.mjs.map +1 -1
  21. package/es/components/breadcrumb/src/breadcrumb-item2.mjs +56 -11
  22. package/es/components/breadcrumb/src/breadcrumb-item2.mjs.map +1 -1
  23. package/es/components/breadcrumb/src/breadcrumb.mjs +36 -11
  24. package/es/components/breadcrumb/src/breadcrumb.mjs.map +1 -1
  25. package/es/components/breadcrumb/src/breadcrumb2.mjs +11 -36
  26. package/es/components/breadcrumb/src/breadcrumb2.mjs.map +1 -1
  27. package/es/components/button/index.mjs +2 -2
  28. package/es/components/button/src/button-group.mjs +1 -1
  29. package/es/components/button/src/button.mjs +57 -76
  30. package/es/components/button/src/button.mjs.map +1 -1
  31. package/es/components/button/src/button2.mjs +76 -57
  32. package/es/components/button/src/button2.mjs.map +1 -1
  33. package/es/components/calendar/src/calendar.mjs +1 -1
  34. package/es/components/calendar/src/date-table.mjs +33 -87
  35. package/es/components/calendar/src/date-table.mjs.map +1 -1
  36. package/es/components/calendar/src/date-table2.mjs +87 -33
  37. package/es/components/calendar/src/date-table2.mjs.map +1 -1
  38. package/es/components/calendar/src/use-date-table.mjs +1 -1
  39. package/es/components/card/index.mjs +2 -2
  40. package/es/components/card/src/card.mjs +17 -35
  41. package/es/components/card/src/card.mjs.map +1 -1
  42. package/es/components/card/src/card2.mjs +35 -17
  43. package/es/components/card/src/card2.mjs.map +1 -1
  44. package/es/components/cascader/src/cascader.mjs +1 -1
  45. package/es/components/collection/index.mjs +1 -1
  46. package/es/components/collection/src/collection.mjs +10 -66
  47. package/es/components/collection/src/collection.mjs.map +1 -1
  48. package/es/components/collection/src/collection2.mjs +66 -10
  49. package/es/components/collection/src/collection2.mjs.map +1 -1
  50. package/es/components/descriptions/src/description.mjs +1 -1
  51. package/es/components/descriptions/src/descriptions-row.mjs +7 -64
  52. package/es/components/descriptions/src/descriptions-row.mjs.map +1 -1
  53. package/es/components/descriptions/src/descriptions-row2.mjs +64 -7
  54. package/es/components/descriptions/src/descriptions-row2.mjs.map +1 -1
  55. package/es/components/dropdown/src/dropdown-item-impl.mjs +2 -2
  56. package/es/components/dropdown/src/dropdown-menu.mjs +1 -1
  57. package/es/components/dropdown/src/dropdown.mjs +1 -1
  58. package/es/components/dropdown/src/dropdown2.mjs +1 -1
  59. package/es/components/form/index.mjs +4 -4
  60. package/es/components/form/src/form-item.mjs +46 -328
  61. package/es/components/form/src/form-item.mjs.map +1 -1
  62. package/es/components/form/src/form-item2.mjs +328 -46
  63. package/es/components/form/src/form-item2.mjs.map +1 -1
  64. package/es/components/form/src/form.mjs +58 -150
  65. package/es/components/form/src/form.mjs.map +1 -1
  66. package/es/components/form/src/form2.mjs +150 -58
  67. package/es/components/form/src/form2.mjs.map +1 -1
  68. package/es/components/index.mjs +29 -29
  69. package/es/components/input/index.mjs +2 -2
  70. package/es/components/input/src/input.mjs +114 -468
  71. package/es/components/input/src/input.mjs.map +1 -1
  72. package/es/components/input/src/input2.mjs +468 -114
  73. package/es/components/input/src/input2.mjs.map +1 -1
  74. package/es/components/input-number/index.mjs +2 -2
  75. package/es/components/input-number/src/input-number.mjs +335 -69
  76. package/es/components/input-number/src/input-number.mjs.map +1 -1
  77. package/es/components/input-number/src/input-number2.mjs +69 -335
  78. package/es/components/input-number/src/input-number2.mjs.map +1 -1
  79. package/es/components/pagination/src/components/next.mjs +19 -38
  80. package/es/components/pagination/src/components/next.mjs.map +1 -1
  81. package/es/components/pagination/src/components/next2.mjs +38 -19
  82. package/es/components/pagination/src/components/next2.mjs.map +1 -1
  83. package/es/components/pagination/src/components/prev.mjs +18 -38
  84. package/es/components/pagination/src/components/prev.mjs.map +1 -1
  85. package/es/components/pagination/src/components/prev2.mjs +38 -18
  86. package/es/components/pagination/src/components/prev2.mjs.map +1 -1
  87. package/es/components/pagination/src/components/total.mjs +28 -7
  88. package/es/components/pagination/src/components/total.mjs.map +1 -1
  89. package/es/components/pagination/src/components/total2.mjs +7 -28
  90. package/es/components/pagination/src/components/total2.mjs.map +1 -1
  91. package/es/components/pagination/src/pagination.mjs +3 -3
  92. package/es/components/popconfirm/index.mjs +2 -2
  93. package/es/components/popconfirm/src/popconfirm.mjs +47 -110
  94. package/es/components/popconfirm/src/popconfirm.mjs.map +1 -1
  95. package/es/components/popconfirm/src/popconfirm2.mjs +110 -47
  96. package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
  97. package/es/components/popover/index.mjs +2 -2
  98. package/es/components/popover/src/popover.mjs +111 -66
  99. package/es/components/popover/src/popover.mjs.map +1 -1
  100. package/es/components/popover/src/popover2.mjs +66 -111
  101. package/es/components/popover/src/popover2.mjs.map +1 -1
  102. package/es/components/radio/index.mjs +6 -6
  103. package/es/components/radio/src/radio-button.mjs +9 -67
  104. package/es/components/radio/src/radio-button.mjs.map +1 -1
  105. package/es/components/radio/src/radio-button2.mjs +67 -9
  106. package/es/components/radio/src/radio-button2.mjs.map +1 -1
  107. package/es/components/radio/src/radio-group.mjs +42 -70
  108. package/es/components/radio/src/radio-group.mjs.map +1 -1
  109. package/es/components/radio/src/radio-group2.mjs +70 -42
  110. package/es/components/radio/src/radio-group2.mjs.map +1 -1
  111. package/es/components/radio/src/radio.mjs +35 -76
  112. package/es/components/radio/src/radio.mjs.map +1 -1
  113. package/es/components/radio/src/radio2.mjs +76 -35
  114. package/es/components/radio/src/radio2.mjs.map +1 -1
  115. package/es/components/resizable-columns/index.mjs +4 -4
  116. package/es/components/resizable-columns/src/resizable-column.mjs +145 -8
  117. package/es/components/resizable-columns/src/resizable-column.mjs.map +1 -1
  118. package/es/components/resizable-columns/src/resizable-column2.mjs +8 -145
  119. package/es/components/resizable-columns/src/resizable-column2.mjs.map +1 -1
  120. package/es/components/resizable-columns/src/resizable-columns.mjs +248 -21
  121. package/es/components/resizable-columns/src/resizable-columns.mjs.map +1 -1
  122. package/es/components/resizable-columns/src/resizable-columns2.mjs +21 -254
  123. package/es/components/resizable-columns/src/resizable-columns2.mjs.map +1 -1
  124. package/es/components/result/index.mjs +2 -2
  125. package/es/components/result/src/result.mjs +63 -29
  126. package/es/components/result/src/result.mjs.map +1 -1
  127. package/es/components/result/src/result2.mjs +29 -63
  128. package/es/components/result/src/result2.mjs.map +1 -1
  129. package/es/components/roving-focus-group/index.mjs +3 -3
  130. package/es/components/roving-focus-group/src/roving-focus-group-impl.mjs +1 -1
  131. package/es/components/roving-focus-group/src/roving-focus-group.mjs +29 -27
  132. package/es/components/roving-focus-group/src/roving-focus-group.mjs.map +1 -1
  133. package/es/components/roving-focus-group/src/roving-focus-group2.mjs +27 -29
  134. package/es/components/roving-focus-group/src/roving-focus-group2.mjs.map +1 -1
  135. package/es/components/roving-focus-group/src/roving-focus-item.mjs +1 -1
  136. package/es/components/row/index.mjs +2 -2
  137. package/es/components/row/src/row.mjs +45 -29
  138. package/es/components/row/src/row.mjs.map +1 -1
  139. package/es/components/row/src/row2.mjs +29 -45
  140. package/es/components/row/src/row2.mjs.map +1 -1
  141. package/es/components/select/src/select.mjs +1 -1
  142. package/es/components/skeleton/index.mjs +2 -2
  143. package/es/components/skeleton/src/skeleton.mjs +22 -49
  144. package/es/components/skeleton/src/skeleton.mjs.map +1 -1
  145. package/es/components/skeleton/src/skeleton2.mjs +49 -22
  146. package/es/components/skeleton/src/skeleton2.mjs.map +1 -1
  147. package/es/components/slider/index.mjs +2 -2
  148. package/es/components/slider/src/slider.mjs +96 -237
  149. package/es/components/slider/src/slider.mjs.map +1 -1
  150. package/es/components/slider/src/slider2.mjs +237 -96
  151. package/es/components/slider/src/slider2.mjs.map +1 -1
  152. package/es/components/steps/index.mjs +4 -4
  153. package/es/components/steps/src/item.mjs +193 -19
  154. package/es/components/steps/src/item.mjs.map +1 -1
  155. package/es/components/steps/src/item2.mjs +19 -193
  156. package/es/components/steps/src/item2.mjs.map +1 -1
  157. package/es/components/steps/src/steps.mjs +39 -36
  158. package/es/components/steps/src/steps.mjs.map +1 -1
  159. package/es/components/steps/src/steps2.mjs +36 -39
  160. package/es/components/steps/src/steps2.mjs.map +1 -1
  161. package/es/components/switch/index.mjs +2 -2
  162. package/es/components/switch/src/switch.mjs +99 -267
  163. package/es/components/switch/src/switch.mjs.map +1 -1
  164. package/es/components/switch/src/switch2.mjs +267 -99
  165. package/es/components/switch/src/switch2.mjs.map +1 -1
  166. package/es/components/tabs/index.mjs +1 -1
  167. package/es/components/tabs/src/tab-bar.mjs +7 -75
  168. package/es/components/tabs/src/tab-bar.mjs.map +1 -1
  169. package/es/components/tabs/src/tab-bar2.mjs +75 -7
  170. package/es/components/tabs/src/tab-bar2.mjs.map +1 -1
  171. package/es/components/tabs/src/tab-nav.mjs +1 -1
  172. package/es/components/tag/index.mjs +2 -2
  173. package/es/components/tag/src/tag.mjs +98 -33
  174. package/es/components/tag/src/tag.mjs.map +1 -1
  175. package/es/components/tag/src/tag2.mjs +33 -98
  176. package/es/components/tag/src/tag2.mjs.map +1 -1
  177. package/es/components/text/index.mjs +2 -2
  178. package/es/components/text/src/text.mjs +35 -22
  179. package/es/components/text/src/text.mjs.map +1 -1
  180. package/es/components/text/src/text2.mjs +22 -35
  181. package/es/components/text/src/text2.mjs.map +1 -1
  182. package/es/components/time-select/index.mjs +1 -1
  183. package/es/components/time-select/src/time-select.mjs +132 -55
  184. package/es/components/time-select/src/time-select.mjs.map +1 -1
  185. package/es/components/time-select/src/time-select2.mjs +55 -132
  186. package/es/components/time-select/src/time-select2.mjs.map +1 -1
  187. package/es/components/tooltip-v2/index.mjs +5 -5
  188. package/es/components/tooltip-v2/src/arrow.mjs +22 -37
  189. package/es/components/tooltip-v2/src/arrow.mjs.map +1 -1
  190. package/es/components/tooltip-v2/src/arrow2.mjs +37 -22
  191. package/es/components/tooltip-v2/src/arrow2.mjs.map +1 -1
  192. package/es/components/tooltip-v2/src/content.mjs +114 -50
  193. package/es/components/tooltip-v2/src/content.mjs.map +1 -1
  194. package/es/components/tooltip-v2/src/content2.mjs +50 -114
  195. package/es/components/tooltip-v2/src/content2.mjs.map +1 -1
  196. package/es/components/tooltip-v2/src/tooltip.mjs +21 -78
  197. package/es/components/tooltip-v2/src/tooltip.mjs.map +1 -1
  198. package/es/components/tooltip-v2/src/tooltip2.mjs +78 -21
  199. package/es/components/tooltip-v2/src/tooltip2.mjs.map +1 -1
  200. package/es/components/tooltip-v2/src/trigger.mjs +91 -12
  201. package/es/components/tooltip-v2/src/trigger.mjs.map +1 -1
  202. package/es/components/tooltip-v2/src/trigger2.mjs +12 -91
  203. package/es/components/tooltip-v2/src/trigger2.mjs.map +1 -1
  204. package/es/components/transfer/index.mjs +2 -2
  205. package/es/components/transfer/src/composables/use-checked-change.mjs +1 -1
  206. package/es/components/transfer/src/transfer-panel2.mjs +1 -1
  207. package/es/components/transfer/src/transfer.mjs +162 -69
  208. package/es/components/transfer/src/transfer.mjs.map +1 -1
  209. package/es/components/transfer/src/transfer2.mjs +69 -162
  210. package/es/components/transfer/src/transfer2.mjs.map +1 -1
  211. package/es/components/upload/index.mjs +1 -1
  212. package/es/components/upload/src/upload-list.mjs +26 -179
  213. package/es/components/upload/src/upload-list.mjs.map +1 -1
  214. package/es/components/upload/src/upload-list2.mjs +179 -26
  215. package/es/components/upload/src/upload-list2.mjs.map +1 -1
  216. package/es/components/upload/src/upload2.mjs +1 -1
  217. package/es/components/visual-hidden/index.mjs +3 -3
  218. package/es/components/visual-hidden/src/visual-hidden.mjs +7 -35
  219. package/es/components/visual-hidden/src/visual-hidden.mjs.map +1 -1
  220. package/es/components/visual-hidden/src/visual-hidden2.mjs +35 -7
  221. package/es/components/visual-hidden/src/visual-hidden2.mjs.map +1 -1
  222. package/es/index.mjs +29 -29
  223. package/lib/components/alert/index.js +2 -2
  224. package/lib/components/alert/src/alert.js +39 -102
  225. package/lib/components/alert/src/alert.js.map +1 -1
  226. package/lib/components/alert/src/alert2.js +102 -39
  227. package/lib/components/alert/src/alert2.js.map +1 -1
  228. package/lib/components/badge/index.js +2 -2
  229. package/lib/components/badge/src/badge.js +59 -17
  230. package/lib/components/badge/src/badge.js.map +1 -1
  231. package/lib/components/badge/src/badge2.js +17 -59
  232. package/lib/components/badge/src/badge2.js.map +1 -1
  233. package/lib/components/breadcrumb/index.js +4 -4
  234. package/lib/components/breadcrumb/src/breadcrumb-item.js +11 -56
  235. package/lib/components/breadcrumb/src/breadcrumb-item.js.map +1 -1
  236. package/lib/components/breadcrumb/src/breadcrumb-item2.js +56 -11
  237. package/lib/components/breadcrumb/src/breadcrumb-item2.js.map +1 -1
  238. package/lib/components/breadcrumb/src/breadcrumb.js +36 -11
  239. package/lib/components/breadcrumb/src/breadcrumb.js.map +1 -1
  240. package/lib/components/breadcrumb/src/breadcrumb2.js +11 -36
  241. package/lib/components/breadcrumb/src/breadcrumb2.js.map +1 -1
  242. package/lib/components/button/index.js +2 -2
  243. package/lib/components/button/src/button-group.js +1 -1
  244. package/lib/components/button/src/button.js +60 -76
  245. package/lib/components/button/src/button.js.map +1 -1
  246. package/lib/components/button/src/button2.js +76 -60
  247. package/lib/components/button/src/button2.js.map +1 -1
  248. package/lib/components/calendar/src/calendar.js +1 -1
  249. package/lib/components/calendar/src/date-table.js +37 -87
  250. package/lib/components/calendar/src/date-table.js.map +1 -1
  251. package/lib/components/calendar/src/date-table2.js +87 -37
  252. package/lib/components/calendar/src/date-table2.js.map +1 -1
  253. package/lib/components/calendar/src/use-date-table.js +1 -1
  254. package/lib/components/card/index.js +2 -2
  255. package/lib/components/card/src/card.js +17 -35
  256. package/lib/components/card/src/card.js.map +1 -1
  257. package/lib/components/card/src/card2.js +35 -17
  258. package/lib/components/card/src/card2.js.map +1 -1
  259. package/lib/components/cascader/src/cascader.js +1 -1
  260. package/lib/components/collection/index.js +1 -1
  261. package/lib/components/collection/src/collection.js +9 -66
  262. package/lib/components/collection/src/collection.js.map +1 -1
  263. package/lib/components/collection/src/collection2.js +66 -9
  264. package/lib/components/collection/src/collection2.js.map +1 -1
  265. package/lib/components/descriptions/src/description.js +1 -1
  266. package/lib/components/descriptions/src/descriptions-row.js +7 -64
  267. package/lib/components/descriptions/src/descriptions-row.js.map +1 -1
  268. package/lib/components/descriptions/src/descriptions-row2.js +64 -7
  269. package/lib/components/descriptions/src/descriptions-row2.js.map +1 -1
  270. package/lib/components/dropdown/src/dropdown-item-impl.js +2 -2
  271. package/lib/components/dropdown/src/dropdown-menu.js +1 -1
  272. package/lib/components/dropdown/src/dropdown.js +1 -1
  273. package/lib/components/dropdown/src/dropdown2.js +1 -1
  274. package/lib/components/form/index.js +4 -4
  275. package/lib/components/form/src/form-item.js +47 -332
  276. package/lib/components/form/src/form-item.js.map +1 -1
  277. package/lib/components/form/src/form-item2.js +332 -47
  278. package/lib/components/form/src/form-item2.js.map +1 -1
  279. package/lib/components/form/src/form.js +58 -149
  280. package/lib/components/form/src/form.js.map +1 -1
  281. package/lib/components/form/src/form2.js +149 -58
  282. package/lib/components/form/src/form2.js.map +1 -1
  283. package/lib/components/index.js +29 -29
  284. package/lib/components/input/index.js +2 -2
  285. package/lib/components/input/src/input.js +114 -467
  286. package/lib/components/input/src/input.js.map +1 -1
  287. package/lib/components/input/src/input2.js +467 -114
  288. package/lib/components/input/src/input2.js.map +1 -1
  289. package/lib/components/input-number/index.js +2 -2
  290. package/lib/components/input-number/src/input-number.js +333 -68
  291. package/lib/components/input-number/src/input-number.js.map +1 -1
  292. package/lib/components/input-number/src/input-number2.js +68 -333
  293. package/lib/components/input-number/src/input-number2.js.map +1 -1
  294. package/lib/components/pagination/src/components/next.js +19 -38
  295. package/lib/components/pagination/src/components/next.js.map +1 -1
  296. package/lib/components/pagination/src/components/next2.js +38 -19
  297. package/lib/components/pagination/src/components/next2.js.map +1 -1
  298. package/lib/components/pagination/src/components/prev.js +19 -38
  299. package/lib/components/pagination/src/components/prev.js.map +1 -1
  300. package/lib/components/pagination/src/components/prev2.js +38 -19
  301. package/lib/components/pagination/src/components/prev2.js.map +1 -1
  302. package/lib/components/pagination/src/components/total.js +28 -7
  303. package/lib/components/pagination/src/components/total.js.map +1 -1
  304. package/lib/components/pagination/src/components/total2.js +7 -28
  305. package/lib/components/pagination/src/components/total2.js.map +1 -1
  306. package/lib/components/pagination/src/pagination.js +3 -3
  307. package/lib/components/popconfirm/index.js +2 -2
  308. package/lib/components/popconfirm/src/popconfirm.js +48 -110
  309. package/lib/components/popconfirm/src/popconfirm.js.map +1 -1
  310. package/lib/components/popconfirm/src/popconfirm2.js +110 -48
  311. package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
  312. package/lib/components/popover/index.js +2 -2
  313. package/lib/components/popover/src/popover.js +111 -67
  314. package/lib/components/popover/src/popover.js.map +1 -1
  315. package/lib/components/popover/src/popover2.js +67 -111
  316. package/lib/components/popover/src/popover2.js.map +1 -1
  317. package/lib/components/radio/index.js +6 -6
  318. package/lib/components/radio/src/radio-button.js +9 -67
  319. package/lib/components/radio/src/radio-button.js.map +1 -1
  320. package/lib/components/radio/src/radio-button2.js +67 -9
  321. package/lib/components/radio/src/radio-button2.js.map +1 -1
  322. package/lib/components/radio/src/radio-group.js +43 -70
  323. package/lib/components/radio/src/radio-group.js.map +1 -1
  324. package/lib/components/radio/src/radio-group2.js +70 -43
  325. package/lib/components/radio/src/radio-group2.js.map +1 -1
  326. package/lib/components/radio/src/radio.js +37 -76
  327. package/lib/components/radio/src/radio.js.map +1 -1
  328. package/lib/components/radio/src/radio2.js +76 -37
  329. package/lib/components/radio/src/radio2.js.map +1 -1
  330. package/lib/components/resizable-columns/index.js +4 -4
  331. package/lib/components/resizable-columns/src/resizable-column.js +145 -8
  332. package/lib/components/resizable-columns/src/resizable-column.js.map +1 -1
  333. package/lib/components/resizable-columns/src/resizable-column2.js +8 -145
  334. package/lib/components/resizable-columns/src/resizable-column2.js.map +1 -1
  335. package/lib/components/resizable-columns/src/resizable-columns.js +248 -21
  336. package/lib/components/resizable-columns/src/resizable-columns.js.map +1 -1
  337. package/lib/components/resizable-columns/src/resizable-columns2.js +21 -254
  338. package/lib/components/resizable-columns/src/resizable-columns2.js.map +1 -1
  339. package/lib/components/result/index.js +2 -2
  340. package/lib/components/result/src/result.js +63 -31
  341. package/lib/components/result/src/result.js.map +1 -1
  342. package/lib/components/result/src/result2.js +31 -63
  343. package/lib/components/result/src/result2.js.map +1 -1
  344. package/lib/components/roving-focus-group/index.js +2 -2
  345. package/lib/components/roving-focus-group/src/roving-focus-group-impl.js +1 -1
  346. package/lib/components/roving-focus-group/src/roving-focus-group.js +33 -27
  347. package/lib/components/roving-focus-group/src/roving-focus-group.js.map +1 -1
  348. package/lib/components/roving-focus-group/src/roving-focus-group2.js +27 -33
  349. package/lib/components/roving-focus-group/src/roving-focus-group2.js.map +1 -1
  350. package/lib/components/roving-focus-group/src/roving-focus-item.js +1 -1
  351. package/lib/components/row/index.js +2 -2
  352. package/lib/components/row/src/row.js +45 -31
  353. package/lib/components/row/src/row.js.map +1 -1
  354. package/lib/components/row/src/row2.js +31 -45
  355. package/lib/components/row/src/row2.js.map +1 -1
  356. package/lib/components/select/src/select.js +1 -1
  357. package/lib/components/skeleton/index.js +2 -2
  358. package/lib/components/skeleton/src/skeleton.js +22 -49
  359. package/lib/components/skeleton/src/skeleton.js.map +1 -1
  360. package/lib/components/skeleton/src/skeleton2.js +49 -22
  361. package/lib/components/skeleton/src/skeleton2.js.map +1 -1
  362. package/lib/components/slider/index.js +2 -2
  363. package/lib/components/slider/src/slider.js +97 -237
  364. package/lib/components/slider/src/slider.js.map +1 -1
  365. package/lib/components/slider/src/slider2.js +237 -97
  366. package/lib/components/slider/src/slider2.js.map +1 -1
  367. package/lib/components/steps/index.js +4 -4
  368. package/lib/components/steps/src/item.js +193 -19
  369. package/lib/components/steps/src/item.js.map +1 -1
  370. package/lib/components/steps/src/item2.js +19 -193
  371. package/lib/components/steps/src/item2.js.map +1 -1
  372. package/lib/components/steps/src/steps.js +39 -37
  373. package/lib/components/steps/src/steps.js.map +1 -1
  374. package/lib/components/steps/src/steps2.js +37 -39
  375. package/lib/components/steps/src/steps2.js.map +1 -1
  376. package/lib/components/switch/index.js +2 -2
  377. package/lib/components/switch/src/switch.js +99 -266
  378. package/lib/components/switch/src/switch.js.map +1 -1
  379. package/lib/components/switch/src/switch2.js +266 -99
  380. package/lib/components/switch/src/switch2.js.map +1 -1
  381. package/lib/components/tabs/index.js +1 -1
  382. package/lib/components/tabs/src/tab-bar.js +7 -75
  383. package/lib/components/tabs/src/tab-bar.js.map +1 -1
  384. package/lib/components/tabs/src/tab-bar2.js +75 -7
  385. package/lib/components/tabs/src/tab-bar2.js.map +1 -1
  386. package/lib/components/tabs/src/tab-nav.js +1 -1
  387. package/lib/components/tag/index.js +2 -2
  388. package/lib/components/tag/src/tag.js +98 -34
  389. package/lib/components/tag/src/tag.js.map +1 -1
  390. package/lib/components/tag/src/tag2.js +34 -98
  391. package/lib/components/tag/src/tag2.js.map +1 -1
  392. package/lib/components/text/index.js +2 -2
  393. package/lib/components/text/src/text.js +35 -22
  394. package/lib/components/text/src/text.js.map +1 -1
  395. package/lib/components/text/src/text2.js +22 -35
  396. package/lib/components/text/src/text2.js.map +1 -1
  397. package/lib/components/time-select/index.js +1 -1
  398. package/lib/components/time-select/src/time-select.js +137 -55
  399. package/lib/components/time-select/src/time-select.js.map +1 -1
  400. package/lib/components/time-select/src/time-select2.js +55 -137
  401. package/lib/components/time-select/src/time-select2.js.map +1 -1
  402. package/lib/components/tooltip-v2/index.js +5 -5
  403. package/lib/components/tooltip-v2/src/arrow.js +23 -37
  404. package/lib/components/tooltip-v2/src/arrow.js.map +1 -1
  405. package/lib/components/tooltip-v2/src/arrow2.js +37 -23
  406. package/lib/components/tooltip-v2/src/arrow2.js.map +1 -1
  407. package/lib/components/tooltip-v2/src/content.js +114 -50
  408. package/lib/components/tooltip-v2/src/content.js.map +1 -1
  409. package/lib/components/tooltip-v2/src/content2.js +50 -114
  410. package/lib/components/tooltip-v2/src/content2.js.map +1 -1
  411. package/lib/components/tooltip-v2/src/tooltip.js +21 -78
  412. package/lib/components/tooltip-v2/src/tooltip.js.map +1 -1
  413. package/lib/components/tooltip-v2/src/tooltip2.js +78 -21
  414. package/lib/components/tooltip-v2/src/tooltip2.js.map +1 -1
  415. package/lib/components/tooltip-v2/src/trigger.js +91 -12
  416. package/lib/components/tooltip-v2/src/trigger.js.map +1 -1
  417. package/lib/components/tooltip-v2/src/trigger2.js +12 -91
  418. package/lib/components/tooltip-v2/src/trigger2.js.map +1 -1
  419. package/lib/components/transfer/index.js +2 -2
  420. package/lib/components/transfer/src/composables/use-checked-change.js +1 -1
  421. package/lib/components/transfer/src/transfer-panel2.js +1 -1
  422. package/lib/components/transfer/src/transfer.js +162 -73
  423. package/lib/components/transfer/src/transfer.js.map +1 -1
  424. package/lib/components/transfer/src/transfer2.js +73 -162
  425. package/lib/components/transfer/src/transfer2.js.map +1 -1
  426. package/lib/components/upload/index.js +1 -1
  427. package/lib/components/upload/src/upload-list.js +27 -179
  428. package/lib/components/upload/src/upload-list.js.map +1 -1
  429. package/lib/components/upload/src/upload-list2.js +179 -27
  430. package/lib/components/upload/src/upload-list2.js.map +1 -1
  431. package/lib/components/upload/src/upload2.js +1 -1
  432. package/lib/components/visual-hidden/index.js +2 -2
  433. package/lib/components/visual-hidden/src/visual-hidden.js +7 -35
  434. package/lib/components/visual-hidden/src/visual-hidden.js.map +1 -1
  435. package/lib/components/visual-hidden/src/visual-hidden2.js +35 -7
  436. package/lib/components/visual-hidden/src/visual-hidden2.js.map +1 -1
  437. package/lib/index.js +29 -29
  438. package/package.json +1 -1
  439. package/theme-chalk/el-resizable-columns.css +1 -1
  440. package/theme-chalk/index.css +1 -1
  441. package/theme-chalk/src/resizable-columns.scss +2 -2
  442. package/web-types.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"tab-bar2.mjs","sources":["../../../../../../packages/components/tabs/src/tab-bar.ts"],"sourcesContent":["import { buildProps, definePropType, mutable } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\nimport type { TabsPaneContext } from './constants'\nimport type TabBar from './tab-bar.vue'\n\nexport const tabBarProps = buildProps({\n tabs: {\n type: definePropType<TabsPaneContext[]>(Array),\n default: () => mutable([] as const),\n },\n} as const)\n\nexport type TabBarProps = ExtractPropTypes<typeof tabBarProps>\nexport type TabBarInstance = InstanceType<typeof TabBar>\n"],"names":[],"mappings":";;;;AACY,MAAC,WAAW,GAAG,UAAU,CAAC;AACtC,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,cAAc,CAAC,KAAK,CAAC;AAC/B,IAAI,OAAO,EAAE,MAAM,OAAO,CAAC,EAAE,CAAC;AAC9B,GAAG;AACH,CAAC;;;;"}
1
+ {"version":3,"file":"tab-bar2.mjs","sources":["../../../../../../packages/components/tabs/src/tab-bar.vue"],"sourcesContent":["<template>\n <div\n ref=\"barRef\"\n :class=\"[ns.e('active-bar'), ns.is(rootTabs.props.tabPosition)]\"\n :style=\"barStyle\"\n />\n</template>\n\n<script lang=\"ts\" setup>\nimport { getCurrentInstance, inject, nextTick, ref, watch } from 'vue'\nimport { useResizeObserver } from '@vueuse/core'\nimport { capitalize, throwError } from '@element-plus/utils'\nimport { useNamespace } from '@element-plus/hooks'\nimport { tabsRootContextKey } from './constants'\nimport { tabBarProps } from './tab-bar'\n\nimport type { CSSProperties } from 'vue'\n\nconst COMPONENT_NAME = 'ElTabBar'\ndefineOptions({\n name: COMPONENT_NAME,\n})\nconst props = defineProps(tabBarProps)\n\nconst instance = getCurrentInstance()!\nconst rootTabs = inject(tabsRootContextKey)\nif (!rootTabs) throwError(COMPONENT_NAME, '<el-tabs><el-tab-bar /></el-tabs>')\n\nconst ns = useNamespace('tabs')\n\nconst barRef = ref<HTMLDivElement>()\nconst barStyle = ref<CSSProperties>()\n\nconst getBarStyle = (): CSSProperties => {\n let offset = 0\n let tabSize = 0\n\n const sizeName = ['top', 'bottom'].includes(rootTabs.props.tabPosition)\n ? 'width'\n : 'height'\n const sizeDir = sizeName === 'width' ? 'x' : 'y'\n const position = sizeDir === 'x' ? 'left' : 'top'\n\n props.tabs.every((tab) => {\n const $el = instance.parent?.refs?.[`tab-${tab.uid}`] as HTMLElement\n if (!$el) return false\n\n if (!tab.active) {\n return true\n }\n\n offset = $el[`offset${capitalize(position)}`]\n tabSize = $el[`client${capitalize(sizeName)}`]\n\n const tabStyles = window.getComputedStyle($el)\n\n if (sizeName === 'width') {\n if (props.tabs.length > 1) {\n tabSize -=\n Number.parseFloat(tabStyles.paddingLeft) +\n Number.parseFloat(tabStyles.paddingRight)\n }\n offset += Number.parseFloat(tabStyles.paddingLeft)\n }\n return false\n })\n\n return {\n [sizeName]: `${tabSize}px`,\n transform: `translate${capitalize(sizeDir)}(${offset}px)`,\n }\n}\n\nconst update = () => (barStyle.value = getBarStyle())\n\nwatch(\n () => props.tabs,\n async () => {\n await nextTick()\n update()\n },\n { immediate: true }\n)\nuseResizeObserver(barRef, () => update())\n\ndefineExpose({\n /** @description tab root html element */\n ref: barRef,\n /** @description method to manually update tab bar style */\n update,\n})\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;mCAmBc,CAAA;AAAA,EACZ,IAAM,EAAA,cAAA;AACR;;;;;;AAGA,IAAA,MAAM,WAAW,kBAAmB,EAAA,CAAA;AACpC,IAAM,MAAA,QAAA,GAAW,OAAO,kBAAkB,CAAA,CAAA;AAC1C,IAAA,IAAI,CAAC,QAAA;AAAU,MAAA,UAAA,CAAW,gBAAgB,mCAAmC,CAAA,CAAA;AAE7E,IAAM,MAAA,EAAA,GAAK,aAAa,MAAM,CAAA,CAAA;AAE9B,IAAA,MAAM,SAAS,GAAoB,EAAA,CAAA;AACnC,IAAA,MAAM,WAAW,GAAmB,EAAA,CAAA;AAEpC,IAAA,MAAM,cAAc,MAAqB;AACvC,MAAA,IAAI,MAAS,GAAA,CAAA,CAAA;AACb,MAAA,IAAI,OAAU,GAAA,CAAA,CAAA;AAEd,MAAM,MAAA,QAAA,GAAW,CAAC,KAAA,EAAO,QAAQ,CAAA,CAAE,SAAS,QAAS,CAAA,KAAA,CAAM,WAAW,CAAA,GAClE,OACA,GAAA,QAAA,CAAA;AACJ,MAAM,MAAA,OAAA,GAAU,QAAa,KAAA,OAAA,GAAU,GAAM,GAAA,GAAA,CAAA;AAC7C,MAAM,MAAA,QAAA,GAAW,OAAY,KAAA,GAAA,GAAM,MAAS,GAAA,KAAA,CAAA;AAE5C,MAAM,KAAA,CAAA,IAAA,CAAK,KAAM,CAAA,CAAC,GAAQ,KAAA;AACxB,QAAA,IAAA,EAAM,EAAM,EAAA,CAAA;AACZ,QAAA,MAAK,GAAA,GAAA,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,QAAA,CAAA,MAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,IAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,CAAA,IAAA,EAAA,GAAA,CAAA,GAAA,CAAA,CAAA,CAAA,CAAA;AAAK,QAAO,IAAA,CAAA,GAAA;AAEjB,UAAI,OAAK,KAAQ,CAAA;AACf,QAAO,IAAA,CAAA,GAAA,CAAA,MAAA,EAAA;AAAA,UACT,OAAA,IAAA,CAAA;AAEA,SAAS;AACT,QAAU,MAAA,GAAA,GAAA,CAAA,CAAI,MAAS,EAAA,UAAA,CAAA,QAAmB,CAAA,CAAA,CAAA,CAAA,CAAA;AAE1C,QAAM,OAAA,GAAA,GAAA,CAAA,CAAA,MAAmB,EAAA,UAAA,CAAA,QAAiB,CAAG,CAAA,CAAA,CAAA,CAAA;AAE7C,QAAA,kBAA0B,MAAA,CAAA,gBAAA,CAAA,GAAA,CAAA,CAAA;AACxB,QAAI,IAAA,QAAM,KAAK,OAAA,EAAS;AACtB,UACE,IAAA,KAAA,CAAA,IAAA,CAAA;AACwC,YAC5C,OAAA,IAAA,MAAA,CAAA,UAAA,CAAA,SAAA,CAAA,WAAA,CAAA,GAAA,MAAA,CAAA,UAAA,CAAA,SAAA,CAAA,YAAA,CAAA,CAAA;AACA,WAAU;AAAuC,UACnD,MAAA,IAAA,MAAA,CAAA,UAAA,CAAA,SAAA,CAAA,WAAA,CAAA,CAAA;AACA,SAAO;AAAA,QACR,OAAA,KAAA,CAAA;AAED,OAAO,CAAA,CAAA;AAAA,MACL;AAAe,QACf,CAAW,QAAA,GAAA,CAAA,EAAA,OAAA,CAAY,EAAW,CAAA;AAAY,QAChD,SAAA,EAAA,CAAA,SAAA,EAAA,UAAA,CAAA,OAAA,CAAA,CAAA,CAAA,EAAA,MAAA,CAAA,GAAA,CAAA;AAAA,OACF,CAAA;AAEA,KAAA,CAAA;AAEA,IACE,MAAA,MAAM,GAAM,MAAA,QACA,CAAA,KAAA,GAAA,WAAA,EAAA,CAAA;AACV,IAAA,KAAA,CAAA,MAAe,KAAA,CAAA,IAAA,EAAA,YAAA;AACf,MAAO,MAAA,QAAA,EAAA,CAAA;AAAA,MAET,MAAa,EAAA,CAAA;AAEf,KAAkB,EAAA,EAAA,SAAA,EAAA,IAAA,EAAA,CAAA,CAAA;AAElB,IAAa,iBAAA,CAAA,MAAA,EAAA,MAAA,MAAA,EAAA,CAAA,CAAA;AAAA,IAAA,MAEN,CAAA;AAAA,MAEL,GAAA,EAAA,MAAA;AAAA,MACD,MAAA;;;;;;;;;;;;;;;;"}
@@ -5,7 +5,7 @@ import '../../../constants/index.mjs';
5
5
  import { ElIcon } from '../../icon/index.mjs';
6
6
  import { ArrowLeft, ArrowRight, Close } from '@element-plus/icons-vue';
7
7
  import '../../../hooks/index.mjs';
8
- import TabBar from './tab-bar.mjs';
8
+ import TabBar from './tab-bar2.mjs';
9
9
  import { tabsRootContextKey } from './constants.mjs';
10
10
  import '../../config-provider/index.mjs';
11
11
  import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
@@ -1,6 +1,6 @@
1
1
  import '../../utils/index.mjs';
2
- import Tag from './src/tag2.mjs';
3
- export { tagEmits, tagProps } from './src/tag.mjs';
2
+ import Tag from './src/tag.mjs';
3
+ export { tagEmits, tagProps } from './src/tag2.mjs';
4
4
  import { withInstall } from '../../utils/vue/install.mjs';
5
5
 
6
6
  const ElTag = withInstall(Tag);
@@ -1,37 +1,102 @@
1
- import '../../../utils/index.mjs';
2
- import '../../../constants/index.mjs';
3
- import { buildProps } from '../../../utils/vue/props/runtime.mjs';
4
- import { componentSizes } from '../../../constants/size.mjs';
1
+ import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, unref, normalizeStyle, createElementVNode, renderSlot, createBlock, withModifiers, withCtx, createVNode, createCommentVNode, Transition } from 'vue';
2
+ import { ElIcon } from '../../icon/index.mjs';
3
+ import { Close } from '@element-plus/icons-vue';
4
+ import '../../../hooks/index.mjs';
5
+ import '../../form/index.mjs';
6
+ import { tagProps, tagEmits } from './tag2.mjs';
7
+ import '../../config-provider/index.mjs';
8
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
9
+ import { useGlobalConfig } from '../../config-provider/src/hooks/use-global-config.mjs';
10
+ import { useFormSize } from '../../form/src/hooks/use-form-common-props.mjs';
11
+ import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
5
12
 
6
- const tagProps = buildProps({
7
- type: {
8
- type: String,
9
- values: ["success", "info", "warning", "danger", ""],
10
- default: ""
11
- },
12
- closable: Boolean,
13
- disableTransitions: Boolean,
14
- hit: Boolean,
15
- color: {
16
- type: String,
17
- default: ""
18
- },
19
- size: {
20
- type: String,
21
- values: componentSizes,
22
- default: ""
23
- },
24
- effect: {
25
- type: String,
26
- values: ["dark", "light", "plain"],
27
- default: "light"
28
- },
29
- round: Boolean
13
+ const __default__ = defineComponent({
14
+ name: "ElTag"
30
15
  });
31
- const tagEmits = {
32
- close: (evt) => evt instanceof MouseEvent,
33
- click: (evt) => evt instanceof MouseEvent
34
- };
16
+ const _sfc_main = /* @__PURE__ */ defineComponent({
17
+ ...__default__,
18
+ props: tagProps,
19
+ emits: tagEmits,
20
+ setup(__props, { emit }) {
21
+ const props = __props;
22
+ const forEditor = useGlobalConfig("forEditor");
23
+ const tagSize = useFormSize();
24
+ const ns = useNamespace("tag");
25
+ const containerKls = computed(() => {
26
+ const { type, hit, effect, closable, round } = props;
27
+ return [
28
+ ns.b(),
29
+ ns.is("closable", closable),
30
+ ns.m(type),
31
+ ns.m(tagSize.value),
32
+ ns.m(effect),
33
+ ns.is("hit", hit),
34
+ ns.is("round", round)
35
+ ];
36
+ });
37
+ const handleClose = (event) => {
38
+ emit("close", event);
39
+ };
40
+ const handleClick = (event) => {
41
+ emit("click", event);
42
+ };
43
+ return (_ctx, _cache) => {
44
+ return _ctx.disableTransitions ? (openBlock(), createElementBlock("span", {
45
+ key: 0,
46
+ class: normalizeClass(unref(containerKls)),
47
+ style: normalizeStyle({ backgroundColor: _ctx.color }),
48
+ onClick: handleClick
49
+ }, [
50
+ createElementVNode("span", {
51
+ class: normalizeClass(unref(ns).e("content"))
52
+ }, [
53
+ renderSlot(_ctx.$slots, "default")
54
+ ], 2),
55
+ _ctx.closable ? (openBlock(), createBlock(unref(ElIcon), {
56
+ key: 0,
57
+ class: normalizeClass(unref(ns).e("close")),
58
+ onClick: withModifiers(handleClose, ["stop"])
59
+ }, {
60
+ default: withCtx(() => [
61
+ createVNode(unref(Close))
62
+ ]),
63
+ _: 1
64
+ }, 8, ["class", "onClick"])) : createCommentVNode("v-if", true)
65
+ ], 6)) : (openBlock(), createBlock(Transition, {
66
+ key: 1,
67
+ name: `${unref(ns).namespace.value}-zoom-in-center`,
68
+ appear: "",
69
+ duration: unref(forEditor) ? -1 : 0
70
+ }, {
71
+ default: withCtx(() => [
72
+ createElementVNode("span", {
73
+ class: normalizeClass(unref(containerKls)),
74
+ style: normalizeStyle({ backgroundColor: _ctx.color }),
75
+ onClick: handleClick
76
+ }, [
77
+ createElementVNode("span", {
78
+ class: normalizeClass(unref(ns).e("content"))
79
+ }, [
80
+ renderSlot(_ctx.$slots, "default")
81
+ ], 2),
82
+ _ctx.closable ? (openBlock(), createBlock(unref(ElIcon), {
83
+ key: 0,
84
+ class: normalizeClass(unref(ns).e("close")),
85
+ onClick: withModifiers(handleClose, ["stop"])
86
+ }, {
87
+ default: withCtx(() => [
88
+ createVNode(unref(Close))
89
+ ]),
90
+ _: 1
91
+ }, 8, ["class", "onClick"])) : createCommentVNode("v-if", true)
92
+ ], 6)
93
+ ]),
94
+ _: 3
95
+ }, 8, ["name", "duration"]));
96
+ };
97
+ }
98
+ });
99
+ var Tag = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:\\workspace\\element-pe\\packages\\components\\tag\\src\\tag.vue"]]);
35
100
 
36
- export { tagEmits, tagProps };
101
+ export { Tag as default };
37
102
  //# sourceMappingURL=tag.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"tag.mjs","sources":["../../../../../../packages/components/tag/src/tag.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport { componentSizes } from '@element-plus/constants'\nimport type Tag from './tag.vue'\n\nimport type { ExtractPropTypes } from 'vue'\n\nexport const tagProps = buildProps({\n /**\n * @description type of Tag\n */\n type: {\n type: String,\n values: ['success', 'info', 'warning', 'danger', ''],\n default: '',\n },\n /**\n * @description whether Tag can be removed\n */\n closable: Boolean,\n /**\n * @description whether to disable animations\n */\n disableTransitions: Boolean,\n /**\n * @description whether Tag has a highlighted border\n */\n hit: Boolean,\n /**\n * @description background color of the Tag\n */\n color: {\n type: String,\n default: '',\n },\n /**\n * @description size of Tag\n */\n size: {\n type: String,\n values: componentSizes,\n default: '',\n },\n /**\n * @description theme of Tag\n */\n effect: {\n type: String,\n values: ['dark', 'light', 'plain'],\n default: 'light',\n },\n /**\n * @description whether Tag is rounded\n */\n round: Boolean,\n} as const)\nexport type TagProps = ExtractPropTypes<typeof tagProps>\n\nexport const tagEmits = {\n close: (evt: MouseEvent) => evt instanceof MouseEvent,\n click: (evt: MouseEvent) => evt instanceof MouseEvent,\n}\nexport type TagEmits = typeof tagEmits\n\nexport type TagInstance = InstanceType<typeof Tag>\n"],"names":[],"mappings":";;;;;AAEY,MAAC,QAAQ,GAAG,UAAU,CAAC;AACnC,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,CAAC;AACxD,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,kBAAkB,EAAE,OAAO;AAC7B,EAAE,GAAG,EAAE,OAAO;AACd,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,cAAc;AAC1B,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC;AACtC,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,EAAE,KAAK,EAAE,OAAO;AAChB,CAAC,EAAE;AACS,MAAC,QAAQ,GAAG;AACxB,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC3C,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC3C;;;;"}
1
+ {"version":3,"file":"tag.mjs","sources":["../../../../../../packages/components/tag/src/tag.vue"],"sourcesContent":["<template>\n <span\n v-if=\"disableTransitions\"\n :class=\"containerKls\"\n :style=\"{ backgroundColor: color }\"\n @click=\"handleClick\"\n >\n <span :class=\"ns.e('content')\">\n <slot />\n </span>\n <el-icon v-if=\"closable\" :class=\"ns.e('close')\" @click.stop=\"handleClose\">\n <Close />\n </el-icon>\n </span>\n <transition v-else :name=\"`${ns.namespace.value}-zoom-in-center`\" appear :duration=\"forEditor ? -1 : 0\">\n <span\n :class=\"containerKls\"\n :style=\"{ backgroundColor: color }\"\n @click=\"handleClick\"\n >\n <span :class=\"ns.e('content')\">\n <slot />\n </span>\n <el-icon v-if=\"closable\" :class=\"ns.e('close')\" @click.stop=\"handleClose\">\n <Close />\n </el-icon>\n </span>\n </transition>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport ElIcon from '@element-plus/components/icon'\nimport { Close } from '@element-plus/icons-vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { useFormSize } from '@element-plus/components/form'\n\nimport { tagEmits, tagProps } from './tag'\nimport { useGlobalConfig } from '../../config-provider'\n\nconst forEditor = useGlobalConfig('forEditor')\n\ndefineOptions({\n name: 'ElTag',\n})\nconst props = defineProps(tagProps)\nconst emit = defineEmits(tagEmits)\n\nconst tagSize = useFormSize()\nconst ns = useNamespace('tag')\nconst containerKls = computed(() => {\n const { type, hit, effect, closable, round } = props\n return [\n ns.b(),\n ns.is('closable', closable),\n ns.m(type),\n ns.m(tagSize.value),\n ns.m(effect),\n ns.is('hit', hit),\n ns.is('round', round),\n ]\n})\n\n// methods\nconst handleClose = (event: MouseEvent) => {\n emit('close', event)\n}\n\nconst handleClick = (event: MouseEvent) => {\n emit('click', event)\n}\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;mCA0Cc,CAAA;AAAA,EACZ,IAAM,EAAA,OAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAJA,IAAM,MAAA,SAAA,GAAY,gBAAgB,WAAW,CAAA,CAAA;AAQ7C,IAAA,MAAM,UAAU,WAAY,EAAA,CAAA;AAC5B,IAAM,MAAA,EAAA,GAAK,aAAa,KAAK,CAAA,CAAA;AAC7B,IAAM,MAAA,YAAA,GAAe,SAAS,MAAM;AAClC,MAAA,MAAM,EAAE,IAAA,EAAM,GAAK,EAAA,MAAA,EAAQ,UAAU,KAAU,EAAA,GAAA,KAAA,CAAA;AAC/C,MAAO,OAAA;AAAA,QACL,GAAG,CAAE,EAAA;AAAA,QACL,EAAA,CAAG,EAAG,CAAA,UAAA,EAAY,QAAQ,CAAA;AAAA,QAC1B,EAAA,CAAG,EAAE,IAAI,CAAA;AAAA,QACT,EAAA,CAAG,CAAE,CAAA,OAAA,CAAQ,KAAK,CAAA;AAAA,QAClB,EAAA,CAAG,EAAE,MAAM,CAAA;AAAA,QACX,EAAA,CAAG,EAAG,CAAA,KAAA,EAAO,GAAG,CAAA;AAAA,QAChB,EAAA,CAAG,EAAG,CAAA,OAAA,EAAS,KAAK,CAAA;AAAA,OACtB,CAAA;AAAA,KACD,CAAA,CAAA;AAGD,IAAM,MAAA,WAAA,GAAc,CAAC,KAAsB,KAAA;AACzC,MAAA,IAAA,CAAK,SAAS,KAAK,CAAA,CAAA;AAAA,KACrB,CAAA;AAEA,IAAM,MAAA,WAAA,GAAc,CAAC,KAAsB,KAAA;AACzC,MAAA,IAAA,CAAK,SAAS,KAAK,CAAA,CAAA;AAAA,KACrB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,102 +1,37 @@
1
- import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, unref, normalizeStyle, createElementVNode, renderSlot, createBlock, withModifiers, withCtx, createVNode, createCommentVNode, Transition } from 'vue';
2
- import { ElIcon } from '../../icon/index.mjs';
3
- import { Close } from '@element-plus/icons-vue';
4
- import '../../../hooks/index.mjs';
5
- import '../../form/index.mjs';
6
- import { tagProps, tagEmits } from './tag.mjs';
7
- import '../../config-provider/index.mjs';
8
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
9
- import { useGlobalConfig } from '../../config-provider/src/hooks/use-global-config.mjs';
10
- import { useFormSize } from '../../form/src/hooks/use-form-common-props.mjs';
11
- import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
1
+ import '../../../utils/index.mjs';
2
+ import '../../../constants/index.mjs';
3
+ import { buildProps } from '../../../utils/vue/props/runtime.mjs';
4
+ import { componentSizes } from '../../../constants/size.mjs';
12
5
 
13
- const __default__ = defineComponent({
14
- name: "ElTag"
6
+ const tagProps = buildProps({
7
+ type: {
8
+ type: String,
9
+ values: ["success", "info", "warning", "danger", ""],
10
+ default: ""
11
+ },
12
+ closable: Boolean,
13
+ disableTransitions: Boolean,
14
+ hit: Boolean,
15
+ color: {
16
+ type: String,
17
+ default: ""
18
+ },
19
+ size: {
20
+ type: String,
21
+ values: componentSizes,
22
+ default: ""
23
+ },
24
+ effect: {
25
+ type: String,
26
+ values: ["dark", "light", "plain"],
27
+ default: "light"
28
+ },
29
+ round: Boolean
15
30
  });
16
- const _sfc_main = /* @__PURE__ */ defineComponent({
17
- ...__default__,
18
- props: tagProps,
19
- emits: tagEmits,
20
- setup(__props, { emit }) {
21
- const props = __props;
22
- const forEditor = useGlobalConfig("forEditor");
23
- const tagSize = useFormSize();
24
- const ns = useNamespace("tag");
25
- const containerKls = computed(() => {
26
- const { type, hit, effect, closable, round } = props;
27
- return [
28
- ns.b(),
29
- ns.is("closable", closable),
30
- ns.m(type),
31
- ns.m(tagSize.value),
32
- ns.m(effect),
33
- ns.is("hit", hit),
34
- ns.is("round", round)
35
- ];
36
- });
37
- const handleClose = (event) => {
38
- emit("close", event);
39
- };
40
- const handleClick = (event) => {
41
- emit("click", event);
42
- };
43
- return (_ctx, _cache) => {
44
- return _ctx.disableTransitions ? (openBlock(), createElementBlock("span", {
45
- key: 0,
46
- class: normalizeClass(unref(containerKls)),
47
- style: normalizeStyle({ backgroundColor: _ctx.color }),
48
- onClick: handleClick
49
- }, [
50
- createElementVNode("span", {
51
- class: normalizeClass(unref(ns).e("content"))
52
- }, [
53
- renderSlot(_ctx.$slots, "default")
54
- ], 2),
55
- _ctx.closable ? (openBlock(), createBlock(unref(ElIcon), {
56
- key: 0,
57
- class: normalizeClass(unref(ns).e("close")),
58
- onClick: withModifiers(handleClose, ["stop"])
59
- }, {
60
- default: withCtx(() => [
61
- createVNode(unref(Close))
62
- ]),
63
- _: 1
64
- }, 8, ["class", "onClick"])) : createCommentVNode("v-if", true)
65
- ], 6)) : (openBlock(), createBlock(Transition, {
66
- key: 1,
67
- name: `${unref(ns).namespace.value}-zoom-in-center`,
68
- appear: "",
69
- duration: unref(forEditor) ? -1 : 0
70
- }, {
71
- default: withCtx(() => [
72
- createElementVNode("span", {
73
- class: normalizeClass(unref(containerKls)),
74
- style: normalizeStyle({ backgroundColor: _ctx.color }),
75
- onClick: handleClick
76
- }, [
77
- createElementVNode("span", {
78
- class: normalizeClass(unref(ns).e("content"))
79
- }, [
80
- renderSlot(_ctx.$slots, "default")
81
- ], 2),
82
- _ctx.closable ? (openBlock(), createBlock(unref(ElIcon), {
83
- key: 0,
84
- class: normalizeClass(unref(ns).e("close")),
85
- onClick: withModifiers(handleClose, ["stop"])
86
- }, {
87
- default: withCtx(() => [
88
- createVNode(unref(Close))
89
- ]),
90
- _: 1
91
- }, 8, ["class", "onClick"])) : createCommentVNode("v-if", true)
92
- ], 6)
93
- ]),
94
- _: 3
95
- }, 8, ["name", "duration"]));
96
- };
97
- }
98
- });
99
- var Tag = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:\\workspace\\element-pe\\packages\\components\\tag\\src\\tag.vue"]]);
31
+ const tagEmits = {
32
+ close: (evt) => evt instanceof MouseEvent,
33
+ click: (evt) => evt instanceof MouseEvent
34
+ };
100
35
 
101
- export { Tag as default };
36
+ export { tagEmits, tagProps };
102
37
  //# sourceMappingURL=tag2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"tag2.mjs","sources":["../../../../../../packages/components/tag/src/tag.vue"],"sourcesContent":["<template>\n <span\n v-if=\"disableTransitions\"\n :class=\"containerKls\"\n :style=\"{ backgroundColor: color }\"\n @click=\"handleClick\"\n >\n <span :class=\"ns.e('content')\">\n <slot />\n </span>\n <el-icon v-if=\"closable\" :class=\"ns.e('close')\" @click.stop=\"handleClose\">\n <Close />\n </el-icon>\n </span>\n <transition v-else :name=\"`${ns.namespace.value}-zoom-in-center`\" appear :duration=\"forEditor ? -1 : 0\">\n <span\n :class=\"containerKls\"\n :style=\"{ backgroundColor: color }\"\n @click=\"handleClick\"\n >\n <span :class=\"ns.e('content')\">\n <slot />\n </span>\n <el-icon v-if=\"closable\" :class=\"ns.e('close')\" @click.stop=\"handleClose\">\n <Close />\n </el-icon>\n </span>\n </transition>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport ElIcon from '@element-plus/components/icon'\nimport { Close } from '@element-plus/icons-vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { useFormSize } from '@element-plus/components/form'\n\nimport { tagEmits, tagProps } from './tag'\nimport { useGlobalConfig } from '../../config-provider'\n\nconst forEditor = useGlobalConfig('forEditor')\n\ndefineOptions({\n name: 'ElTag',\n})\nconst props = defineProps(tagProps)\nconst emit = defineEmits(tagEmits)\n\nconst tagSize = useFormSize()\nconst ns = useNamespace('tag')\nconst containerKls = computed(() => {\n const { type, hit, effect, closable, round } = props\n return [\n ns.b(),\n ns.is('closable', closable),\n ns.m(type),\n ns.m(tagSize.value),\n ns.m(effect),\n ns.is('hit', hit),\n ns.is('round', round),\n ]\n})\n\n// methods\nconst handleClose = (event: MouseEvent) => {\n emit('close', event)\n}\n\nconst handleClick = (event: MouseEvent) => {\n emit('click', event)\n}\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;mCA0Cc,CAAA;AAAA,EACZ,IAAM,EAAA,OAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAJA,IAAM,MAAA,SAAA,GAAY,gBAAgB,WAAW,CAAA,CAAA;AAQ7C,IAAA,MAAM,UAAU,WAAY,EAAA,CAAA;AAC5B,IAAM,MAAA,EAAA,GAAK,aAAa,KAAK,CAAA,CAAA;AAC7B,IAAM,MAAA,YAAA,GAAe,SAAS,MAAM;AAClC,MAAA,MAAM,EAAE,IAAA,EAAM,GAAK,EAAA,MAAA,EAAQ,UAAU,KAAU,EAAA,GAAA,KAAA,CAAA;AAC/C,MAAO,OAAA;AAAA,QACL,GAAG,CAAE,EAAA;AAAA,QACL,EAAA,CAAG,EAAG,CAAA,UAAA,EAAY,QAAQ,CAAA;AAAA,QAC1B,EAAA,CAAG,EAAE,IAAI,CAAA;AAAA,QACT,EAAA,CAAG,CAAE,CAAA,OAAA,CAAQ,KAAK,CAAA;AAAA,QAClB,EAAA,CAAG,EAAE,MAAM,CAAA;AAAA,QACX,EAAA,CAAG,EAAG,CAAA,KAAA,EAAO,GAAG,CAAA;AAAA,QAChB,EAAA,CAAG,EAAG,CAAA,OAAA,EAAS,KAAK,CAAA;AAAA,OACtB,CAAA;AAAA,KACD,CAAA,CAAA;AAGD,IAAM,MAAA,WAAA,GAAc,CAAC,KAAsB,KAAA;AACzC,MAAA,IAAA,CAAK,SAAS,KAAK,CAAA,CAAA;AAAA,KACrB,CAAA;AAEA,IAAM,MAAA,WAAA,GAAc,CAAC,KAAsB,KAAA;AACzC,MAAA,IAAA,CAAK,SAAS,KAAK,CAAA,CAAA;AAAA,KACrB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"tag2.mjs","sources":["../../../../../../packages/components/tag/src/tag.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport { componentSizes } from '@element-plus/constants'\nimport type Tag from './tag.vue'\n\nimport type { ExtractPropTypes } from 'vue'\n\nexport const tagProps = buildProps({\n /**\n * @description type of Tag\n */\n type: {\n type: String,\n values: ['success', 'info', 'warning', 'danger', ''],\n default: '',\n },\n /**\n * @description whether Tag can be removed\n */\n closable: Boolean,\n /**\n * @description whether to disable animations\n */\n disableTransitions: Boolean,\n /**\n * @description whether Tag has a highlighted border\n */\n hit: Boolean,\n /**\n * @description background color of the Tag\n */\n color: {\n type: String,\n default: '',\n },\n /**\n * @description size of Tag\n */\n size: {\n type: String,\n values: componentSizes,\n default: '',\n },\n /**\n * @description theme of Tag\n */\n effect: {\n type: String,\n values: ['dark', 'light', 'plain'],\n default: 'light',\n },\n /**\n * @description whether Tag is rounded\n */\n round: Boolean,\n} as const)\nexport type TagProps = ExtractPropTypes<typeof tagProps>\n\nexport const tagEmits = {\n close: (evt: MouseEvent) => evt instanceof MouseEvent,\n click: (evt: MouseEvent) => evt instanceof MouseEvent,\n}\nexport type TagEmits = typeof tagEmits\n\nexport type TagInstance = InstanceType<typeof Tag>\n"],"names":[],"mappings":";;;;;AAEY,MAAC,QAAQ,GAAG,UAAU,CAAC;AACnC,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,CAAC;AACxD,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,kBAAkB,EAAE,OAAO;AAC7B,EAAE,GAAG,EAAE,OAAO;AACd,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,cAAc;AAC1B,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC;AACtC,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,EAAE,KAAK,EAAE,OAAO;AAChB,CAAC,EAAE;AACS,MAAC,QAAQ,GAAG;AACxB,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC3C,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC3C;;;;"}
@@ -1,6 +1,6 @@
1
1
  import '../../utils/index.mjs';
2
- import Text from './src/text2.mjs';
3
- export { textProps } from './src/text.mjs';
2
+ import Text from './src/text.mjs';
3
+ export { textProps } from './src/text2.mjs';
4
4
  import { withInstall } from '../../utils/vue/install.mjs';
5
5
 
6
6
  const ElText = withInstall(Text);
@@ -1,27 +1,40 @@
1
- import '../../../utils/index.mjs';
2
- import '../../../constants/index.mjs';
3
- import { buildProps } from '../../../utils/vue/props/runtime.mjs';
4
- import { componentSizes } from '../../../constants/size.mjs';
1
+ import { defineComponent, computed, openBlock, createBlock, resolveDynamicComponent, normalizeClass, unref, withCtx, renderSlot } from 'vue';
2
+ import '../../../hooks/index.mjs';
3
+ import '../../form/index.mjs';
4
+ import { textProps } from './text2.mjs';
5
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
6
+ import { useFormSize } from '../../form/src/hooks/use-form-common-props.mjs';
7
+ import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
5
8
 
6
- const textProps = buildProps({
7
- type: {
8
- type: String,
9
- values: ["primary", "success", "info", "warning", "danger", ""],
10
- default: ""
11
- },
12
- size: {
13
- type: String,
14
- values: componentSizes,
15
- default: ""
16
- },
17
- truncated: {
18
- type: Boolean
19
- },
20
- tag: {
21
- type: String,
22
- default: "span"
9
+ const __default__ = defineComponent({
10
+ name: "ElText"
11
+ });
12
+ const _sfc_main = /* @__PURE__ */ defineComponent({
13
+ ...__default__,
14
+ props: textProps,
15
+ setup(__props) {
16
+ const props = __props;
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
+ ]);
25
+ return (_ctx, _cache) => {
26
+ return openBlock(), createBlock(resolveDynamicComponent(_ctx.tag), {
27
+ class: normalizeClass(unref(textKls))
28
+ }, {
29
+ default: withCtx(() => [
30
+ renderSlot(_ctx.$slots, "default")
31
+ ]),
32
+ _: 3
33
+ }, 8, ["class"]);
34
+ };
23
35
  }
24
36
  });
37
+ var Text = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:\\workspace\\element-pe\\packages\\components\\text\\src\\text.vue"]]);
25
38
 
26
- export { textProps };
39
+ export { Text as default };
27
40
  //# 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'\nimport type Text from './text.vue'\n\nimport type { ExtractPropTypes } 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: {\n type: Boolean,\n },\n /**\n * @description custom element tag\n */\n tag: {\n type: String,\n default: 'span',\n },\n} as const)\nexport type TextProps = ExtractPropTypes<typeof textProps>\nexport type TextInstance = InstanceType<typeof Text>\n"],"names":[],"mappings":";;;;;AAEY,MAAC,SAAS,GAAG,UAAU,CAAC;AACpC,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,CAAC;AACnE,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,cAAc;AAC1B,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,OAAO;AACjB,GAAG;AACH,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,MAAM;AACnB,GAAG;AACH,CAAC;;;;"}
1
+ {"version":3,"file":"text.mjs","sources":["../../../../../../packages/components/text/src/text.vue"],"sourcesContent":["<template>\n <component :is=\"tag\" :class=\"textKls\">\n <slot />\n </component>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { useFormSize } from '@element-plus/components/form'\nimport { textProps } from './text'\n\ndefineOptions({\n name: 'ElText',\n})\n\nconst props = defineProps(textProps)\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])\n</script>\n"],"names":[],"mappings":";;;;;;;;mCAYc,CAAA;AAAA,EACZ,IAAM,EAAA,QAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAIA,IAAA,MAAM,WAAW,WAAY,EAAA,CAAA;AAC7B,IAAM,MAAA,EAAA,GAAK,aAAa,MAAM,CAAA,CAAA;AAE9B,IAAM,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,KACnC,CAAA,CAAA;;;;;;;;;;;;;;;;;"}
@@ -1,40 +1,27 @@
1
- import { defineComponent, computed, openBlock, createBlock, resolveDynamicComponent, normalizeClass, unref, withCtx, renderSlot } from 'vue';
2
- import '../../../hooks/index.mjs';
3
- import '../../form/index.mjs';
4
- import { textProps } from './text.mjs';
5
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
6
- import { useFormSize } from '../../form/src/hooks/use-form-common-props.mjs';
7
- import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
1
+ import '../../../utils/index.mjs';
2
+ import '../../../constants/index.mjs';
3
+ import { buildProps } from '../../../utils/vue/props/runtime.mjs';
4
+ import { componentSizes } from '../../../constants/size.mjs';
8
5
 
9
- const __default__ = defineComponent({
10
- name: "ElText"
11
- });
12
- const _sfc_main = /* @__PURE__ */ defineComponent({
13
- ...__default__,
14
- props: textProps,
15
- setup(__props) {
16
- const props = __props;
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
- ]);
25
- return (_ctx, _cache) => {
26
- return openBlock(), createBlock(resolveDynamicComponent(_ctx.tag), {
27
- class: normalizeClass(unref(textKls))
28
- }, {
29
- default: withCtx(() => [
30
- renderSlot(_ctx.$slots, "default")
31
- ]),
32
- _: 3
33
- }, 8, ["class"]);
34
- };
6
+ const textProps = buildProps({
7
+ type: {
8
+ type: String,
9
+ values: ["primary", "success", "info", "warning", "danger", ""],
10
+ default: ""
11
+ },
12
+ size: {
13
+ type: String,
14
+ values: componentSizes,
15
+ default: ""
16
+ },
17
+ truncated: {
18
+ type: Boolean
19
+ },
20
+ tag: {
21
+ type: String,
22
+ default: "span"
35
23
  }
36
24
  });
37
- var Text = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:\\workspace\\element-pe\\packages\\components\\text\\src\\text.vue"]]);
38
25
 
39
- export { Text as default };
26
+ export { textProps };
40
27
  //# sourceMappingURL=text2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"text2.mjs","sources":["../../../../../../packages/components/text/src/text.vue"],"sourcesContent":["<template>\n <component :is=\"tag\" :class=\"textKls\">\n <slot />\n </component>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { useFormSize } from '@element-plus/components/form'\nimport { textProps } from './text'\n\ndefineOptions({\n name: 'ElText',\n})\n\nconst props = defineProps(textProps)\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])\n</script>\n"],"names":[],"mappings":";;;;;;;;mCAYc,CAAA;AAAA,EACZ,IAAM,EAAA,QAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAIA,IAAA,MAAM,WAAW,WAAY,EAAA,CAAA;AAC7B,IAAM,MAAA,EAAA,GAAK,aAAa,MAAM,CAAA,CAAA;AAE9B,IAAM,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,KACnC,CAAA,CAAA;;;;;;;;;;;;;;;;;"}
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'\nimport type Text from './text.vue'\n\nimport type { ExtractPropTypes } 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: {\n type: Boolean,\n },\n /**\n * @description custom element tag\n */\n tag: {\n type: String,\n default: 'span',\n },\n} as const)\nexport type TextProps = ExtractPropTypes<typeof textProps>\nexport type TextInstance = InstanceType<typeof Text>\n"],"names":[],"mappings":";;;;;AAEY,MAAC,SAAS,GAAG,UAAU,CAAC;AACpC,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,CAAC;AACnE,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,cAAc;AAC1B,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,OAAO;AACjB,GAAG;AACH,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,MAAM;AACnB,GAAG;AACH,CAAC;;;;"}
@@ -1,4 +1,4 @@
1
- import TimeSelect from './src/time-select2.mjs';
1
+ import TimeSelect from './src/time-select.mjs';
2
2
 
3
3
  TimeSelect.install = (app) => {
4
4
  app.component(TimeSelect.name, TimeSelect);