element-pe 2.2.57 → 2.2.58

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 (410) hide show
  1. package/dist/index.full.js +9 -5
  2. package/dist/index.full.min.js +1 -1
  3. package/dist/index.full.min.js.map +1 -1
  4. package/dist/index.full.min.mjs +1 -1
  5. package/dist/index.full.min.mjs.map +1 -1
  6. package/dist/index.full.mjs +9 -5
  7. package/es/components/alert/index.mjs +2 -2
  8. package/es/components/alert/src/alert.mjs +38 -103
  9. package/es/components/alert/src/alert.mjs.map +1 -1
  10. package/es/components/alert/src/alert2.mjs +103 -38
  11. package/es/components/alert/src/alert2.mjs.map +1 -1
  12. package/es/components/avatar/index.mjs +2 -2
  13. package/es/components/avatar/src/avatar.mjs +35 -76
  14. package/es/components/avatar/src/avatar.mjs.map +1 -1
  15. package/es/components/avatar/src/avatar2.mjs +76 -35
  16. package/es/components/avatar/src/avatar2.mjs.map +1 -1
  17. package/es/components/badge/index.mjs +2 -2
  18. package/es/components/badge/src/badge.mjs +59 -17
  19. package/es/components/badge/src/badge.mjs.map +1 -1
  20. package/es/components/badge/src/badge2.mjs +17 -59
  21. package/es/components/badge/src/badge2.mjs.map +1 -1
  22. package/es/components/breadcrumb/index.mjs +4 -4
  23. package/es/components/breadcrumb/src/breadcrumb-item.mjs +56 -11
  24. package/es/components/breadcrumb/src/breadcrumb-item.mjs.map +1 -1
  25. package/es/components/breadcrumb/src/breadcrumb-item2.mjs +11 -56
  26. package/es/components/breadcrumb/src/breadcrumb-item2.mjs.map +1 -1
  27. package/es/components/breadcrumb/src/breadcrumb.mjs +11 -36
  28. package/es/components/breadcrumb/src/breadcrumb.mjs.map +1 -1
  29. package/es/components/breadcrumb/src/breadcrumb2.mjs +36 -11
  30. package/es/components/breadcrumb/src/breadcrumb2.mjs.map +1 -1
  31. package/es/components/calendar/src/calendar2.mjs +1 -1
  32. package/es/components/calendar/src/date-table.mjs +87 -33
  33. package/es/components/calendar/src/date-table.mjs.map +1 -1
  34. package/es/components/calendar/src/date-table2.mjs +33 -87
  35. package/es/components/calendar/src/date-table2.mjs.map +1 -1
  36. package/es/components/calendar/src/use-date-table.mjs +1 -1
  37. package/es/components/carousel/index.mjs +2 -2
  38. package/es/components/carousel/src/carousel.mjs +56 -169
  39. package/es/components/carousel/src/carousel.mjs.map +1 -1
  40. package/es/components/carousel/src/carousel2.mjs +169 -56
  41. package/es/components/carousel/src/carousel2.mjs.map +1 -1
  42. package/es/components/cascader/index.mjs +2 -2
  43. package/es/components/cascader/src/cascader.mjs +622 -63
  44. package/es/components/cascader/src/cascader.mjs.map +1 -1
  45. package/es/components/cascader/src/cascader2.mjs +63 -622
  46. package/es/components/cascader/src/cascader2.mjs.map +1 -1
  47. package/es/components/checkbox/index.mjs +2 -2
  48. package/es/components/checkbox/src/checkbox-button.mjs +1 -1
  49. package/es/components/checkbox/src/checkbox.mjs +49 -117
  50. package/es/components/checkbox/src/checkbox.mjs.map +1 -1
  51. package/es/components/checkbox/src/checkbox2.mjs +117 -49
  52. package/es/components/checkbox/src/checkbox2.mjs.map +1 -1
  53. package/es/components/col/index.mjs +2 -2
  54. package/es/components/col/src/col.mjs +66 -43
  55. package/es/components/col/src/col.mjs.map +1 -1
  56. package/es/components/col/src/col2.mjs +43 -66
  57. package/es/components/col/src/col2.mjs.map +1 -1
  58. package/es/components/collection/src/collection.mjs +9 -5
  59. package/es/components/collection/src/collection.mjs.map +1 -1
  60. package/es/components/descriptions/src/description.mjs +1 -1
  61. package/es/components/descriptions/src/descriptions-row.mjs +64 -7
  62. package/es/components/descriptions/src/descriptions-row.mjs.map +1 -1
  63. package/es/components/descriptions/src/descriptions-row2.mjs +7 -64
  64. package/es/components/descriptions/src/descriptions-row2.mjs.map +1 -1
  65. package/es/components/dialog/index.mjs +2 -2
  66. package/es/components/dialog/src/dialog.mjs +174 -73
  67. package/es/components/dialog/src/dialog.mjs.map +1 -1
  68. package/es/components/dialog/src/dialog2.mjs +73 -174
  69. package/es/components/dialog/src/dialog2.mjs.map +1 -1
  70. package/es/components/divider/index.mjs +2 -2
  71. package/es/components/divider/src/divider.mjs +17 -35
  72. package/es/components/divider/src/divider.mjs.map +1 -1
  73. package/es/components/divider/src/divider2.mjs +35 -17
  74. package/es/components/divider/src/divider2.mjs.map +1 -1
  75. package/es/components/drawer/index.mjs +2 -2
  76. package/es/components/drawer/src/drawer.mjs +25 -186
  77. package/es/components/drawer/src/drawer.mjs.map +1 -1
  78. package/es/components/drawer/src/drawer2.mjs +186 -25
  79. package/es/components/drawer/src/drawer2.mjs.map +1 -1
  80. package/es/components/dropdown/src/dropdown-item-impl.mjs +1 -1
  81. package/es/components/dropdown/src/dropdown-menu.mjs +1 -1
  82. package/es/components/dropdown/src/dropdown2.mjs +1 -1
  83. package/es/components/form/index.mjs +2 -2
  84. package/es/components/form/src/form.mjs +57 -150
  85. package/es/components/form/src/form.mjs.map +1 -1
  86. package/es/components/form/src/form2.mjs +150 -57
  87. package/es/components/form/src/form2.mjs.map +1 -1
  88. package/es/components/image-viewer/index.mjs +2 -2
  89. package/es/components/image-viewer/src/image-viewer.mjs +38 -401
  90. package/es/components/image-viewer/src/image-viewer.mjs.map +1 -1
  91. package/es/components/image-viewer/src/image-viewer2.mjs +401 -38
  92. package/es/components/image-viewer/src/image-viewer2.mjs.map +1 -1
  93. package/es/components/index.mjs +31 -31
  94. package/es/components/input/index.mjs +2 -2
  95. package/es/components/input/src/input.mjs +458 -108
  96. package/es/components/input/src/input.mjs.map +1 -1
  97. package/es/components/input/src/input2.mjs +108 -458
  98. package/es/components/input/src/input2.mjs.map +1 -1
  99. package/es/components/input-number/index.mjs +2 -2
  100. package/es/components/input-number/src/input-number.mjs +58 -318
  101. package/es/components/input-number/src/input-number.mjs.map +1 -1
  102. package/es/components/input-number/src/input-number2.mjs +318 -58
  103. package/es/components/input-number/src/input-number2.mjs.map +1 -1
  104. package/es/components/link/index.mjs +2 -2
  105. package/es/components/link/src/link.mjs +21 -50
  106. package/es/components/link/src/link.mjs.map +1 -1
  107. package/es/components/link/src/link2.mjs +50 -21
  108. package/es/components/link/src/link2.mjs.map +1 -1
  109. package/es/components/pagination/src/components/sizes.mjs +70 -22
  110. package/es/components/pagination/src/components/sizes.mjs.map +1 -1
  111. package/es/components/pagination/src/components/sizes2.mjs +22 -70
  112. package/es/components/pagination/src/components/sizes2.mjs.map +1 -1
  113. package/es/components/pagination/src/pagination.mjs +1 -1
  114. package/es/components/popconfirm/index.mjs +2 -2
  115. package/es/components/popconfirm/src/popconfirm.mjs +110 -47
  116. package/es/components/popconfirm/src/popconfirm.mjs.map +1 -1
  117. package/es/components/popconfirm/src/popconfirm2.mjs +47 -110
  118. package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
  119. package/es/components/popper/index.mjs +2 -2
  120. package/es/components/popper/src/arrow.mjs +39 -8
  121. package/es/components/popper/src/arrow.mjs.map +1 -1
  122. package/es/components/popper/src/arrow2.mjs +8 -39
  123. package/es/components/popper/src/arrow2.mjs.map +1 -1
  124. package/es/components/radio/index.mjs +2 -2
  125. package/es/components/radio/src/radio-button.mjs +1 -1
  126. package/es/components/radio/src/radio-group.mjs +1 -1
  127. package/es/components/radio/src/radio.mjs +30 -71
  128. package/es/components/radio/src/radio.mjs.map +1 -1
  129. package/es/components/radio/src/radio2.mjs +71 -30
  130. package/es/components/radio/src/radio2.mjs.map +1 -1
  131. package/es/components/rate/index.mjs +2 -2
  132. package/es/components/rate/src/rate.mjs +87 -257
  133. package/es/components/rate/src/rate.mjs.map +1 -1
  134. package/es/components/rate/src/rate2.mjs +257 -87
  135. package/es/components/rate/src/rate2.mjs.map +1 -1
  136. package/es/components/result/index.mjs +2 -2
  137. package/es/components/result/src/result.mjs +63 -29
  138. package/es/components/result/src/result.mjs.map +1 -1
  139. package/es/components/result/src/result2.mjs +29 -63
  140. package/es/components/result/src/result2.mjs.map +1 -1
  141. package/es/components/roving-focus-group/index.mjs +3 -3
  142. package/es/components/roving-focus-group/src/roving-focus-group-impl.mjs +1 -1
  143. package/es/components/roving-focus-group/src/roving-focus-group.mjs +27 -29
  144. package/es/components/roving-focus-group/src/roving-focus-group.mjs.map +1 -1
  145. package/es/components/roving-focus-group/src/roving-focus-group2.mjs +29 -27
  146. package/es/components/roving-focus-group/src/roving-focus-group2.mjs.map +1 -1
  147. package/es/components/roving-focus-group/src/roving-focus-item.mjs +1 -1
  148. package/es/components/skeleton/index.mjs +2 -2
  149. package/es/components/skeleton/src/skeleton-item.mjs +18 -23
  150. package/es/components/skeleton/src/skeleton-item.mjs.map +1 -1
  151. package/es/components/skeleton/src/skeleton-item2.mjs +23 -18
  152. package/es/components/skeleton/src/skeleton-item2.mjs.map +1 -1
  153. package/es/components/skeleton/src/skeleton2.mjs +1 -1
  154. package/es/components/slider/index.mjs +2 -2
  155. package/es/components/slider/src/button.mjs +93 -21
  156. package/es/components/slider/src/button.mjs.map +1 -1
  157. package/es/components/slider/src/button2.mjs +21 -93
  158. package/es/components/slider/src/button2.mjs.map +1 -1
  159. package/es/components/slider/src/slider.mjs +91 -233
  160. package/es/components/slider/src/slider.mjs.map +1 -1
  161. package/es/components/slider/src/slider2.mjs +233 -91
  162. package/es/components/slider/src/slider2.mjs.map +1 -1
  163. package/es/components/steps/index.mjs +2 -2
  164. package/es/components/steps/src/item.mjs +19 -193
  165. package/es/components/steps/src/item.mjs.map +1 -1
  166. package/es/components/steps/src/item2.mjs +193 -19
  167. package/es/components/steps/src/item2.mjs.map +1 -1
  168. package/es/components/switch/index.mjs +2 -2
  169. package/es/components/switch/src/switch.mjs +243 -88
  170. package/es/components/switch/src/switch.mjs.map +1 -1
  171. package/es/components/switch/src/switch2.mjs +88 -243
  172. package/es/components/switch/src/switch2.mjs.map +1 -1
  173. package/es/components/tabs/index.mjs +3 -3
  174. package/es/components/tabs/src/tab-bar.mjs +7 -75
  175. package/es/components/tabs/src/tab-bar.mjs.map +1 -1
  176. package/es/components/tabs/src/tab-bar2.mjs +75 -7
  177. package/es/components/tabs/src/tab-bar2.mjs.map +1 -1
  178. package/es/components/tabs/src/tab-nav.mjs +1 -1
  179. package/es/components/tabs/src/tab-pane.mjs +73 -14
  180. package/es/components/tabs/src/tab-pane.mjs.map +1 -1
  181. package/es/components/tabs/src/tab-pane2.mjs +14 -73
  182. package/es/components/tabs/src/tab-pane2.mjs.map +1 -1
  183. package/es/components/text/index.mjs +2 -2
  184. package/es/components/text/src/text.mjs +35 -22
  185. package/es/components/text/src/text.mjs.map +1 -1
  186. package/es/components/text/src/text2.mjs +22 -35
  187. package/es/components/text/src/text2.mjs.map +1 -1
  188. package/es/components/tooltip/src/tooltip.mjs +1 -1
  189. package/es/components/tooltip/src/tooltip2.mjs +1 -1
  190. package/es/components/tooltip-v2/index.mjs +2 -2
  191. package/es/components/tooltip-v2/src/content2.mjs +1 -1
  192. package/es/components/tooltip-v2/src/tooltip.mjs +20 -77
  193. package/es/components/tooltip-v2/src/tooltip.mjs.map +1 -1
  194. package/es/components/tooltip-v2/src/tooltip2.mjs +77 -20
  195. package/es/components/tooltip-v2/src/tooltip2.mjs.map +1 -1
  196. package/es/components/upload/index.mjs +1 -1
  197. package/es/components/upload/src/upload-content.mjs +33 -182
  198. package/es/components/upload/src/upload-content.mjs.map +1 -1
  199. package/es/components/upload/src/upload-content2.mjs +182 -33
  200. package/es/components/upload/src/upload-content2.mjs.map +1 -1
  201. package/es/components/upload/src/upload2.mjs +1 -1
  202. package/es/components/visual-hidden/index.mjs +3 -3
  203. package/es/components/visual-hidden/src/visual-hidden.mjs +35 -7
  204. package/es/components/visual-hidden/src/visual-hidden.mjs.map +1 -1
  205. package/es/components/visual-hidden/src/visual-hidden2.mjs +7 -35
  206. package/es/components/visual-hidden/src/visual-hidden2.mjs.map +1 -1
  207. package/es/index.mjs +31 -31
  208. package/lib/components/alert/index.js +2 -2
  209. package/lib/components/alert/src/alert.js +39 -102
  210. package/lib/components/alert/src/alert.js.map +1 -1
  211. package/lib/components/alert/src/alert2.js +102 -39
  212. package/lib/components/alert/src/alert2.js.map +1 -1
  213. package/lib/components/avatar/index.js +2 -2
  214. package/lib/components/avatar/src/avatar.js +35 -75
  215. package/lib/components/avatar/src/avatar.js.map +1 -1
  216. package/lib/components/avatar/src/avatar2.js +75 -35
  217. package/lib/components/avatar/src/avatar2.js.map +1 -1
  218. package/lib/components/badge/index.js +2 -2
  219. package/lib/components/badge/src/badge.js +59 -17
  220. package/lib/components/badge/src/badge.js.map +1 -1
  221. package/lib/components/badge/src/badge2.js +17 -59
  222. package/lib/components/badge/src/badge2.js.map +1 -1
  223. package/lib/components/breadcrumb/index.js +4 -4
  224. package/lib/components/breadcrumb/src/breadcrumb-item.js +56 -11
  225. package/lib/components/breadcrumb/src/breadcrumb-item.js.map +1 -1
  226. package/lib/components/breadcrumb/src/breadcrumb-item2.js +11 -56
  227. package/lib/components/breadcrumb/src/breadcrumb-item2.js.map +1 -1
  228. package/lib/components/breadcrumb/src/breadcrumb.js +11 -36
  229. package/lib/components/breadcrumb/src/breadcrumb.js.map +1 -1
  230. package/lib/components/breadcrumb/src/breadcrumb2.js +36 -11
  231. package/lib/components/breadcrumb/src/breadcrumb2.js.map +1 -1
  232. package/lib/components/calendar/src/calendar2.js +1 -1
  233. package/lib/components/calendar/src/date-table.js +87 -37
  234. package/lib/components/calendar/src/date-table.js.map +1 -1
  235. package/lib/components/calendar/src/date-table2.js +37 -87
  236. package/lib/components/calendar/src/date-table2.js.map +1 -1
  237. package/lib/components/calendar/src/use-date-table.js +1 -1
  238. package/lib/components/carousel/index.js +2 -2
  239. package/lib/components/carousel/src/carousel.js +57 -169
  240. package/lib/components/carousel/src/carousel.js.map +1 -1
  241. package/lib/components/carousel/src/carousel2.js +169 -57
  242. package/lib/components/carousel/src/carousel2.js.map +1 -1
  243. package/lib/components/cascader/index.js +2 -2
  244. package/lib/components/cascader/src/cascader.js +622 -64
  245. package/lib/components/cascader/src/cascader.js.map +1 -1
  246. package/lib/components/cascader/src/cascader2.js +64 -622
  247. package/lib/components/cascader/src/cascader2.js.map +1 -1
  248. package/lib/components/checkbox/index.js +2 -2
  249. package/lib/components/checkbox/src/checkbox-button.js +1 -1
  250. package/lib/components/checkbox/src/checkbox.js +50 -117
  251. package/lib/components/checkbox/src/checkbox.js.map +1 -1
  252. package/lib/components/checkbox/src/checkbox2.js +117 -50
  253. package/lib/components/checkbox/src/checkbox2.js.map +1 -1
  254. package/lib/components/col/index.js +2 -2
  255. package/lib/components/col/src/col.js +66 -43
  256. package/lib/components/col/src/col.js.map +1 -1
  257. package/lib/components/col/src/col2.js +43 -66
  258. package/lib/components/col/src/col2.js.map +1 -1
  259. package/lib/components/collection/src/collection.js +9 -5
  260. package/lib/components/collection/src/collection.js.map +1 -1
  261. package/lib/components/descriptions/src/description.js +1 -1
  262. package/lib/components/descriptions/src/descriptions-row.js +64 -7
  263. package/lib/components/descriptions/src/descriptions-row.js.map +1 -1
  264. package/lib/components/descriptions/src/descriptions-row2.js +7 -64
  265. package/lib/components/descriptions/src/descriptions-row2.js.map +1 -1
  266. package/lib/components/dialog/index.js +2 -2
  267. package/lib/components/dialog/src/dialog.js +174 -74
  268. package/lib/components/dialog/src/dialog.js.map +1 -1
  269. package/lib/components/dialog/src/dialog2.js +74 -174
  270. package/lib/components/dialog/src/dialog2.js.map +1 -1
  271. package/lib/components/divider/index.js +2 -2
  272. package/lib/components/divider/src/divider.js +17 -35
  273. package/lib/components/divider/src/divider.js.map +1 -1
  274. package/lib/components/divider/src/divider2.js +35 -17
  275. package/lib/components/divider/src/divider2.js.map +1 -1
  276. package/lib/components/drawer/index.js +2 -2
  277. package/lib/components/drawer/src/drawer.js +26 -186
  278. package/lib/components/drawer/src/drawer.js.map +1 -1
  279. package/lib/components/drawer/src/drawer2.js +186 -26
  280. package/lib/components/drawer/src/drawer2.js.map +1 -1
  281. package/lib/components/dropdown/src/dropdown-item-impl.js +1 -1
  282. package/lib/components/dropdown/src/dropdown-menu.js +1 -1
  283. package/lib/components/dropdown/src/dropdown2.js +1 -1
  284. package/lib/components/form/index.js +2 -2
  285. package/lib/components/form/src/form.js +57 -149
  286. package/lib/components/form/src/form.js.map +1 -1
  287. package/lib/components/form/src/form2.js +149 -57
  288. package/lib/components/form/src/form2.js.map +1 -1
  289. package/lib/components/image-viewer/index.js +2 -2
  290. package/lib/components/image-viewer/src/image-viewer.js +39 -401
  291. package/lib/components/image-viewer/src/image-viewer.js.map +1 -1
  292. package/lib/components/image-viewer/src/image-viewer2.js +401 -39
  293. package/lib/components/image-viewer/src/image-viewer2.js.map +1 -1
  294. package/lib/components/index.js +31 -31
  295. package/lib/components/input/index.js +2 -2
  296. package/lib/components/input/src/input.js +457 -108
  297. package/lib/components/input/src/input.js.map +1 -1
  298. package/lib/components/input/src/input2.js +108 -457
  299. package/lib/components/input/src/input2.js.map +1 -1
  300. package/lib/components/input-number/index.js +2 -2
  301. package/lib/components/input-number/src/input-number.js +57 -316
  302. package/lib/components/input-number/src/input-number.js.map +1 -1
  303. package/lib/components/input-number/src/input-number2.js +316 -57
  304. package/lib/components/input-number/src/input-number2.js.map +1 -1
  305. package/lib/components/link/index.js +2 -2
  306. package/lib/components/link/src/link.js +22 -50
  307. package/lib/components/link/src/link.js.map +1 -1
  308. package/lib/components/link/src/link2.js +50 -22
  309. package/lib/components/link/src/link2.js.map +1 -1
  310. package/lib/components/pagination/src/components/sizes.js +70 -22
  311. package/lib/components/pagination/src/components/sizes.js.map +1 -1
  312. package/lib/components/pagination/src/components/sizes2.js +22 -70
  313. package/lib/components/pagination/src/components/sizes2.js.map +1 -1
  314. package/lib/components/pagination/src/pagination.js +1 -1
  315. package/lib/components/popconfirm/index.js +2 -2
  316. package/lib/components/popconfirm/src/popconfirm.js +110 -48
  317. package/lib/components/popconfirm/src/popconfirm.js.map +1 -1
  318. package/lib/components/popconfirm/src/popconfirm2.js +48 -110
  319. package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
  320. package/lib/components/popper/index.js +2 -2
  321. package/lib/components/popper/src/arrow.js +39 -9
  322. package/lib/components/popper/src/arrow.js.map +1 -1
  323. package/lib/components/popper/src/arrow2.js +9 -39
  324. package/lib/components/popper/src/arrow2.js.map +1 -1
  325. package/lib/components/radio/index.js +2 -2
  326. package/lib/components/radio/src/radio-button.js +1 -1
  327. package/lib/components/radio/src/radio-group.js +1 -1
  328. package/lib/components/radio/src/radio.js +32 -71
  329. package/lib/components/radio/src/radio.js.map +1 -1
  330. package/lib/components/radio/src/radio2.js +71 -32
  331. package/lib/components/radio/src/radio2.js.map +1 -1
  332. package/lib/components/rate/index.js +2 -2
  333. package/lib/components/rate/src/rate.js +87 -256
  334. package/lib/components/rate/src/rate.js.map +1 -1
  335. package/lib/components/rate/src/rate2.js +256 -87
  336. package/lib/components/rate/src/rate2.js.map +1 -1
  337. package/lib/components/result/index.js +2 -2
  338. package/lib/components/result/src/result.js +63 -31
  339. package/lib/components/result/src/result.js.map +1 -1
  340. package/lib/components/result/src/result2.js +31 -63
  341. package/lib/components/result/src/result2.js.map +1 -1
  342. package/lib/components/roving-focus-group/index.js +2 -2
  343. package/lib/components/roving-focus-group/src/roving-focus-group-impl.js +1 -1
  344. package/lib/components/roving-focus-group/src/roving-focus-group.js +27 -33
  345. package/lib/components/roving-focus-group/src/roving-focus-group.js.map +1 -1
  346. package/lib/components/roving-focus-group/src/roving-focus-group2.js +33 -27
  347. package/lib/components/roving-focus-group/src/roving-focus-group2.js.map +1 -1
  348. package/lib/components/roving-focus-group/src/roving-focus-item.js +1 -1
  349. package/lib/components/skeleton/index.js +2 -2
  350. package/lib/components/skeleton/src/skeleton-item.js +18 -23
  351. package/lib/components/skeleton/src/skeleton-item.js.map +1 -1
  352. package/lib/components/skeleton/src/skeleton-item2.js +23 -18
  353. package/lib/components/skeleton/src/skeleton-item2.js.map +1 -1
  354. package/lib/components/skeleton/src/skeleton2.js +1 -1
  355. package/lib/components/slider/index.js +2 -2
  356. package/lib/components/slider/src/button.js +93 -22
  357. package/lib/components/slider/src/button.js.map +1 -1
  358. package/lib/components/slider/src/button2.js +22 -93
  359. package/lib/components/slider/src/button2.js.map +1 -1
  360. package/lib/components/slider/src/slider.js +92 -233
  361. package/lib/components/slider/src/slider.js.map +1 -1
  362. package/lib/components/slider/src/slider2.js +233 -92
  363. package/lib/components/slider/src/slider2.js.map +1 -1
  364. package/lib/components/steps/index.js +2 -2
  365. package/lib/components/steps/src/item.js +19 -193
  366. package/lib/components/steps/src/item.js.map +1 -1
  367. package/lib/components/steps/src/item2.js +193 -19
  368. package/lib/components/steps/src/item2.js.map +1 -1
  369. package/lib/components/switch/index.js +2 -2
  370. package/lib/components/switch/src/switch.js +242 -88
  371. package/lib/components/switch/src/switch.js.map +1 -1
  372. package/lib/components/switch/src/switch2.js +88 -242
  373. package/lib/components/switch/src/switch2.js.map +1 -1
  374. package/lib/components/tabs/index.js +3 -3
  375. package/lib/components/tabs/src/tab-bar.js +7 -75
  376. package/lib/components/tabs/src/tab-bar.js.map +1 -1
  377. package/lib/components/tabs/src/tab-bar2.js +75 -7
  378. package/lib/components/tabs/src/tab-bar2.js.map +1 -1
  379. package/lib/components/tabs/src/tab-nav.js +1 -1
  380. package/lib/components/tabs/src/tab-pane.js +73 -14
  381. package/lib/components/tabs/src/tab-pane.js.map +1 -1
  382. package/lib/components/tabs/src/tab-pane2.js +14 -73
  383. package/lib/components/tabs/src/tab-pane2.js.map +1 -1
  384. package/lib/components/text/index.js +2 -2
  385. package/lib/components/text/src/text.js +35 -22
  386. package/lib/components/text/src/text.js.map +1 -1
  387. package/lib/components/text/src/text2.js +22 -35
  388. package/lib/components/text/src/text2.js.map +1 -1
  389. package/lib/components/tooltip/src/tooltip.js +1 -1
  390. package/lib/components/tooltip/src/tooltip2.js +1 -1
  391. package/lib/components/tooltip-v2/index.js +2 -2
  392. package/lib/components/tooltip-v2/src/content2.js +1 -1
  393. package/lib/components/tooltip-v2/src/tooltip.js +20 -77
  394. package/lib/components/tooltip-v2/src/tooltip.js.map +1 -1
  395. package/lib/components/tooltip-v2/src/tooltip2.js +77 -20
  396. package/lib/components/tooltip-v2/src/tooltip2.js.map +1 -1
  397. package/lib/components/upload/index.js +1 -1
  398. package/lib/components/upload/src/upload-content.js +31 -180
  399. package/lib/components/upload/src/upload-content.js.map +1 -1
  400. package/lib/components/upload/src/upload-content2.js +180 -31
  401. package/lib/components/upload/src/upload-content2.js.map +1 -1
  402. package/lib/components/upload/src/upload2.js +1 -1
  403. package/lib/components/visual-hidden/index.js +2 -2
  404. package/lib/components/visual-hidden/src/visual-hidden.js +35 -7
  405. package/lib/components/visual-hidden/src/visual-hidden.js.map +1 -1
  406. package/lib/components/visual-hidden/src/visual-hidden2.js +7 -35
  407. package/lib/components/visual-hidden/src/visual-hidden2.js.map +1 -1
  408. package/lib/index.js +31 -31
  409. package/package.json +1 -1
  410. package/web-types.json +1 -1
@@ -1,49 +1,72 @@
1
+ import { defineComponent, inject, computed, openBlock, createBlock, resolveDynamicComponent, normalizeClass, unref, normalizeStyle, withCtx, renderSlot } from 'vue';
1
2
  import '../../../utils/index.mjs';
2
- import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
3
- import { mutable } from '../../../utils/typescript.mjs';
3
+ import '../../../hooks/index.mjs';
4
+ import '../../row/index.mjs';
5
+ import { colProps } from './col2.mjs';
6
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
7
+ import { rowContextKey } from '../../row/src/constants.mjs';
8
+ import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
9
+ import { isNumber } from '../../../utils/types.mjs';
10
+ import { isObject } from '@vue/shared';
4
11
 
5
- const colProps = buildProps({
6
- tag: {
7
- type: String,
8
- default: "div"
9
- },
10
- span: {
11
- type: Number,
12
- default: 24
13
- },
14
- offset: {
15
- type: Number,
16
- default: 0
17
- },
18
- pull: {
19
- type: Number,
20
- default: 0
21
- },
22
- push: {
23
- type: Number,
24
- default: 0
25
- },
26
- xs: {
27
- type: definePropType([Number, Object]),
28
- default: () => mutable({})
29
- },
30
- sm: {
31
- type: definePropType([Number, Object]),
32
- default: () => mutable({})
33
- },
34
- md: {
35
- type: definePropType([Number, Object]),
36
- default: () => mutable({})
37
- },
38
- lg: {
39
- type: definePropType([Number, Object]),
40
- default: () => mutable({})
41
- },
42
- xl: {
43
- type: definePropType([Number, Object]),
44
- default: () => mutable({})
12
+ const __default__ = defineComponent({
13
+ name: "ElCol"
14
+ });
15
+ const _sfc_main = /* @__PURE__ */ defineComponent({
16
+ ...__default__,
17
+ props: colProps,
18
+ setup(__props) {
19
+ const props = __props;
20
+ const { gutter } = inject(rowContextKey, { gutter: computed(() => 0) });
21
+ const ns = useNamespace("col");
22
+ const style = computed(() => {
23
+ const styles = {};
24
+ if (gutter.value) {
25
+ styles.paddingLeft = styles.paddingRight = `${gutter.value / 2}px`;
26
+ }
27
+ return styles;
28
+ });
29
+ const colKls = computed(() => {
30
+ const classes = [];
31
+ const pos = ["span", "offset", "pull", "push"];
32
+ pos.forEach((prop) => {
33
+ const size = props[prop];
34
+ if (isNumber(size)) {
35
+ if (prop === "span")
36
+ classes.push(ns.b(`${props[prop]}`));
37
+ else if (size > 0)
38
+ classes.push(ns.b(`${prop}-${props[prop]}`));
39
+ }
40
+ });
41
+ const sizes = ["xs", "sm", "md", "lg", "xl"];
42
+ sizes.forEach((size) => {
43
+ if (isNumber(props[size])) {
44
+ classes.push(ns.b(`${size}-${props[size]}`));
45
+ } else if (isObject(props[size])) {
46
+ Object.entries(props[size]).forEach(([prop, sizeProp]) => {
47
+ classes.push(prop !== "span" ? ns.b(`${size}-${prop}-${sizeProp}`) : ns.b(`${size}-${sizeProp}`));
48
+ });
49
+ }
50
+ });
51
+ if (gutter.value) {
52
+ classes.push(ns.is("guttered"));
53
+ }
54
+ return [ns.b(), classes];
55
+ });
56
+ return (_ctx, _cache) => {
57
+ return openBlock(), createBlock(resolveDynamicComponent(_ctx.tag), {
58
+ class: normalizeClass(unref(colKls)),
59
+ style: normalizeStyle(unref(style))
60
+ }, {
61
+ default: withCtx(() => [
62
+ renderSlot(_ctx.$slots, "default")
63
+ ]),
64
+ _: 3
65
+ }, 8, ["class", "style"]);
66
+ };
45
67
  }
46
68
  });
69
+ var Col = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:\\workspace\\element-pe\\packages\\components\\col\\src\\col.vue"]]);
47
70
 
48
- export { colProps };
71
+ export { Col as default };
49
72
  //# sourceMappingURL=col.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"col.mjs","sources":["../../../../../../packages/components/col/src/col.ts"],"sourcesContent":["import { buildProps, definePropType, mutable } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\nimport type Col from './col.vue'\n\nexport type ColSizeObject = {\n span?: number\n offset?: number\n pull?: number\n push?: number\n}\nexport type ColSize = number | ColSizeObject\n\nexport const colProps = buildProps({\n /**\n * @description custom element tag\n */\n tag: {\n type: String,\n default: 'div',\n },\n /**\n * @description number of column the grid spans\n */\n span: {\n type: Number,\n default: 24,\n },\n /**\n * @description number of spacing on the left side of the grid\n */\n offset: {\n type: Number,\n default: 0,\n },\n /**\n * @description number of columns that grid moves to the left\n */\n pull: {\n type: Number,\n default: 0,\n },\n /**\n * @description number of columns that grid moves to the right\n */\n push: {\n type: Number,\n default: 0,\n },\n /**\n * @description `<768px` Responsive columns or column props object\n */\n xs: {\n type: definePropType<ColSize>([Number, Object]),\n default: () => mutable({} as const),\n },\n /**\n * @description `≥768px` Responsive columns or column props object\n */\n sm: {\n type: definePropType<ColSize>([Number, Object]),\n default: () => mutable({} as const),\n },\n /**\n * @description `≥992px` Responsive columns or column props object\n */\n md: {\n type: definePropType<ColSize>([Number, Object]),\n default: () => mutable({} as const),\n },\n /**\n * @description `≥1200px` Responsive columns or column props object\n */\n lg: {\n type: definePropType<ColSize>([Number, Object]),\n default: () => mutable({} as const),\n },\n /**\n * @description `≥1920px` Responsive columns or column props object\n */\n xl: {\n type: definePropType<ColSize>([Number, Object]),\n default: () => mutable({} as const),\n },\n} as const)\nexport type ColProps = ExtractPropTypes<typeof colProps>\nexport type ColInstance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E,cAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAE,MAAM,OAAO,CAAC,EAAE,CAAC;AAC9B,GAAG;AACH,CAAC;;;;"}
1
+ {"version":3,"file":"col.mjs","sources":["../../../../../../packages/components/col/src/col.vue"],"sourcesContent":["<template>\n <component :is=\"tag\" :class=\"colKls\" :style=\"style\">\n <slot />\n </component>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, inject } from 'vue'\nimport { isNumber, isObject } from '@element-plus/utils'\nimport { useNamespace } from '@element-plus/hooks'\nimport { rowContextKey } from '@element-plus/components/row'\nimport { colProps } from './col'\nimport type { CSSProperties } from 'vue'\n\ndefineOptions({\n name: 'ElCol',\n})\n\nconst props = defineProps(colProps)\n\nconst { gutter } = inject(rowContextKey, { gutter: computed(() => 0) })\nconst ns = useNamespace('col')\n\nconst style = computed(() => {\n const styles: CSSProperties = {}\n if (gutter.value) {\n styles.paddingLeft = styles.paddingRight = `${gutter.value / 2}px`\n }\n return styles\n})\n\nconst colKls = computed(() => {\n const classes: string[] = []\n const pos = ['span', 'offset', 'pull', 'push'] as const\n\n pos.forEach((prop) => {\n const size = props[prop]\n if (isNumber(size)) {\n if (prop === 'span') classes.push(ns.b(`${props[prop]}`))\n else if (size > 0) classes.push(ns.b(`${prop}-${props[prop]}`))\n }\n })\n\n const sizes = ['xs', 'sm', 'md', 'lg', 'xl'] as const\n sizes.forEach((size) => {\n if (isNumber(props[size])) {\n classes.push(ns.b(`${size}-${props[size]}`))\n } else if (isObject(props[size])) {\n Object.entries(props[size]).forEach(([prop, sizeProp]) => {\n classes.push(\n prop !== 'span'\n ? ns.b(`${size}-${prop}-${sizeProp}`)\n : ns.b(`${size}-${sizeProp}`)\n )\n })\n }\n })\n\n // this is for the fix\n if (gutter.value) {\n classes.push(ns.is('guttered'))\n }\n return [ns.b(), classes]\n})\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;mCAcc,CAAA;AAAA,EACZ,I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EAAM,IAAM,EAAA,IAAA,EAAM,MAAM,IAAI,CAAA,CAAA;AAC3C,MAAM,KAAA,CAAA,OAAA,CAAQ,CAAC,IAAS,KAAA;AACtB,QAAI,IAAA,QAAA,CAAS,KAAM,CAAA,IAAA,CAAK,CAAG,EAAA;AACzB,UAAA,OAAA,CAAQ,KAAK,EAAG,CAAA,CAAA,CAAE,GAAG,IAAQ,CAAA,CAAA,EAAA,KAAA,CAAM,OAAO,CAAC,CAAA,CAAA;AAAA,SAClC,MAAA,IAAA,QAAA,CAAS,KAAM,CAAA,IAAA,CAAK,CAAG,EAAA;AAChC,UAAO,MAAA,CAAA,OAAA,CAAQ,MAAM,IAAK,CAAA,CAAA,CAAE,QAAQ,CAAC,CAAC,MAAM,QAAc,CAAA,KAAA;AACxD,YAAA,OAAA,CAAQ,IACN,CAAA,IAAA,KAAS,MACL,GAAA,EAAA,CAAG,EAAE,CAAG,EAAA,IAAA,CAAA,CAAA,EAAQ,IAAQ,CAAA,CAAA,EAAA,QAAA,CAAA,CAAU,IAClC,EAAG,CAAA,CAAA,CAAE,CAAG,EAAA,IAAA,CAAA,CAAA,EAAQ,UAAU,CAChC,CAAA,CAAA;AAAA,WACD,CAAA,CAAA;AAAA,SACH;AAAA,OACD,CAAA,CAAA;AAGD,MAAA,IAAI,OAAO,KAAO,EAAA;AAChB,QAAA,OAAA,CAAQ,IAAK,CAAA,EAAA,CAAG,EAAG,CAAA,UAAU,CAAC,CAAA,CAAA;AAAA,OAChC;AACA,MAAA,OAAO,CAAC,EAAA,CAAG,CAAE,EAAA,EAAG,OAAO,CAAA,CAAA;AAAA,KACxB,CAAA,CAAA;;;;;;;;;;;;;;;;;;"}
@@ -1,72 +1,49 @@
1
- import { defineComponent, inject, computed, openBlock, createBlock, resolveDynamicComponent, normalizeClass, unref, normalizeStyle, withCtx, renderSlot } from 'vue';
2
1
  import '../../../utils/index.mjs';
3
- import '../../../hooks/index.mjs';
4
- import '../../row/index.mjs';
5
- import { colProps } from './col.mjs';
6
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
7
- import { rowContextKey } from '../../row/src/constants.mjs';
8
- import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
9
- import { isNumber } from '../../../utils/types.mjs';
10
- import { isObject } from '@vue/shared';
2
+ import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
3
+ import { mutable } from '../../../utils/typescript.mjs';
11
4
 
12
- const __default__ = defineComponent({
13
- name: "ElCol"
14
- });
15
- const _sfc_main = /* @__PURE__ */ defineComponent({
16
- ...__default__,
17
- props: colProps,
18
- setup(__props) {
19
- const props = __props;
20
- const { gutter } = inject(rowContextKey, { gutter: computed(() => 0) });
21
- const ns = useNamespace("col");
22
- const style = computed(() => {
23
- const styles = {};
24
- if (gutter.value) {
25
- styles.paddingLeft = styles.paddingRight = `${gutter.value / 2}px`;
26
- }
27
- return styles;
28
- });
29
- const colKls = computed(() => {
30
- const classes = [];
31
- const pos = ["span", "offset", "pull", "push"];
32
- pos.forEach((prop) => {
33
- const size = props[prop];
34
- if (isNumber(size)) {
35
- if (prop === "span")
36
- classes.push(ns.b(`${props[prop]}`));
37
- else if (size > 0)
38
- classes.push(ns.b(`${prop}-${props[prop]}`));
39
- }
40
- });
41
- const sizes = ["xs", "sm", "md", "lg", "xl"];
42
- sizes.forEach((size) => {
43
- if (isNumber(props[size])) {
44
- classes.push(ns.b(`${size}-${props[size]}`));
45
- } else if (isObject(props[size])) {
46
- Object.entries(props[size]).forEach(([prop, sizeProp]) => {
47
- classes.push(prop !== "span" ? ns.b(`${size}-${prop}-${sizeProp}`) : ns.b(`${size}-${sizeProp}`));
48
- });
49
- }
50
- });
51
- if (gutter.value) {
52
- classes.push(ns.is("guttered"));
53
- }
54
- return [ns.b(), classes];
55
- });
56
- return (_ctx, _cache) => {
57
- return openBlock(), createBlock(resolveDynamicComponent(_ctx.tag), {
58
- class: normalizeClass(unref(colKls)),
59
- style: normalizeStyle(unref(style))
60
- }, {
61
- default: withCtx(() => [
62
- renderSlot(_ctx.$slots, "default")
63
- ]),
64
- _: 3
65
- }, 8, ["class", "style"]);
66
- };
5
+ const colProps = buildProps({
6
+ tag: {
7
+ type: String,
8
+ default: "div"
9
+ },
10
+ span: {
11
+ type: Number,
12
+ default: 24
13
+ },
14
+ offset: {
15
+ type: Number,
16
+ default: 0
17
+ },
18
+ pull: {
19
+ type: Number,
20
+ default: 0
21
+ },
22
+ push: {
23
+ type: Number,
24
+ default: 0
25
+ },
26
+ xs: {
27
+ type: definePropType([Number, Object]),
28
+ default: () => mutable({})
29
+ },
30
+ sm: {
31
+ type: definePropType([Number, Object]),
32
+ default: () => mutable({})
33
+ },
34
+ md: {
35
+ type: definePropType([Number, Object]),
36
+ default: () => mutable({})
37
+ },
38
+ lg: {
39
+ type: definePropType([Number, Object]),
40
+ default: () => mutable({})
41
+ },
42
+ xl: {
43
+ type: definePropType([Number, Object]),
44
+ default: () => mutable({})
67
45
  }
68
46
  });
69
- var Col = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:\\workspace\\element-pe\\packages\\components\\col\\src\\col.vue"]]);
70
47
 
71
- export { Col as default };
48
+ export { colProps };
72
49
  //# sourceMappingURL=col2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"col2.mjs","sources":["../../../../../../packages/components/col/src/col.vue"],"sourcesContent":["<template>\n <component :is=\"tag\" :class=\"colKls\" :style=\"style\">\n <slot />\n </component>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, inject } from 'vue'\nimport { isNumber, isObject } from '@element-plus/utils'\nimport { useNamespace } from '@element-plus/hooks'\nimport { rowContextKey } from '@element-plus/components/row'\nimport { colProps } from './col'\nimport type { CSSProperties } from 'vue'\n\ndefineOptions({\n name: 'ElCol',\n})\n\nconst props = defineProps(colProps)\n\nconst { gutter } = inject(rowContextKey, { gutter: computed(() => 0) })\nconst ns = useNamespace('col')\n\nconst style = computed(() => {\n const styles: CSSProperties = {}\n if (gutter.value) {\n styles.paddingLeft = styles.paddingRight = `${gutter.value / 2}px`\n }\n return styles\n})\n\nconst colKls = computed(() => {\n const classes: string[] = []\n const pos = ['span', 'offset', 'pull', 'push'] as const\n\n pos.forEach((prop) => {\n const size = props[prop]\n if (isNumber(size)) {\n if (prop === 'span') classes.push(ns.b(`${props[prop]}`))\n else if (size > 0) classes.push(ns.b(`${prop}-${props[prop]}`))\n }\n })\n\n const sizes = ['xs', 'sm', 'md', 'lg', 'xl'] as const\n sizes.forEach((size) => {\n if (isNumber(props[size])) {\n classes.push(ns.b(`${size}-${props[size]}`))\n } else if (isObject(props[size])) {\n Object.entries(props[size]).forEach(([prop, sizeProp]) => {\n classes.push(\n prop !== 'span'\n ? ns.b(`${size}-${prop}-${sizeProp}`)\n : ns.b(`${size}-${sizeProp}`)\n )\n })\n }\n })\n\n // this is for the fix\n if (gutter.value) {\n classes.push(ns.is('guttered'))\n }\n return [ns.b(), classes]\n})\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;mCAcc,CAAA;AAAA,EACZ,IAAM,EAAA,OAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAIA,IAAM,MAAA,EAAE,MAAW,EAAA,GAAA,MAAA,CAAO,aAAe,EAAA,EAAE,QAAQ,QAAS,CAAA,MAAM,CAAC,CAAA,EAAG,CAAA,CAAA;AACtE,IAAM,MAAA,EAAA,GAAK,aAAa,KAAK,CAAA,CAAA;AAE7B,IAAM,MAAA,KAAA,GAAQ,SAAS,MAAM;AAC3B,MAAA,MAAM,SAAwB,EAAC,CAAA;AAC/B,MAAA,IAAI,OAAO,KAAO,EAAA;AAChB,QAAA,MAAA,CAAO,WAAc,GAAA,MAAA,CAAO,YAAe,GAAA,CAAA,EAAG,OAAO,KAAQ,GAAA,CAAA,CAAA,EAAA,CAAA,CAAA;AAAA,OAC/D;AACA,MAAO,OAAA,MAAA,CAAA;AAAA,KACR,CAAA,CAAA;AAED,IAAM,MAAA,MAAA,GAAS,SAAS,MAAM;AAC5B,MAAA,MAAM,UAAoB,EAA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AAA,CAAA,EAAA,QAAA,CAAA,CAAU,IAClC,EAAG,CAAA,CAAA,CAAE,CAAG,EAAA,IAAA,CAAA,CAAA,EAAQ,UAAU,CAChC,CAAA,CAAA;AAAA,WACD,CAAA,CAAA;AAAA,SACH;AAAA,OACD,CAAA,CAAA;AAGD,MAAA,IAAI,OAAO,KAAO,EAAA;AAChB,QAAA,OAAA,CAAQ,IAAK,CAAA,EAAA,CAAG,EAAG,CAAA,UAAU,CAAC,CAAA,CAAA;AAAA,OAChC;AACA,MAAA,OAAO,CAAC,EAAA,CAAG,CAAE,EAAA,EAAG,OAAO,CAAA,CAAA;AAAA,KACxB,CAAA,CAAA;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"col2.mjs","sources":["../../../../../../packages/components/col/src/col.ts"],"sourcesContent":["import { buildProps, definePropType, mutable } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\nimport type Col from './col.vue'\n\nexport type ColSizeObject = {\n span?: number\n offset?: number\n pull?: number\n push?: number\n}\nexport type ColSize = number | ColSizeObject\n\nexport const colProps = buildProps({\n /**\n * @description custom element tag\n */\n tag: {\n type: String,\n default: 'div',\n },\n /**\n * @description number of column the grid spans\n */\n span: {\n type: Number,\n default: 24,\n },\n /**\n * @description number of spacing on the left side of the grid\n */\n offset: {\n type: Number,\n default: 0,\n },\n /**\n * @description number of columns that grid moves to the left\n */\n pull: {\n type: Number,\n default: 0,\n },\n /**\n * @description number of columns that grid moves to the right\n */\n push: {\n type: Number,\n default: 0,\n },\n /**\n * @description `<768px` Responsive columns or column props object\n */\n xs: {\n type: definePropType<ColSize>([Number, Object]),\n default: () => mutable({} as const),\n },\n /**\n * @description `≥768px` Responsive columns or column props object\n */\n sm: {\n type: definePropType<ColSize>([Number, Object]),\n default: () => mutable({} as const),\n },\n /**\n * @description `≥992px` Responsive columns or column props object\n */\n md: {\n type: definePropType<ColSize>([Number, Object]),\n default: () => mutable({} as const),\n },\n /**\n * @description `≥1200px` Responsive columns or column props object\n */\n lg: {\n type: definePropType<ColSize>([Number, Object]),\n default: () => mutable({} as const),\n },\n /**\n * @description `≥1920px` Responsive columns or column props object\n */\n xl: {\n type: definePropType<ColSize>([Number, Object]),\n default: () => mutable({} as const),\n },\n} as const)\nexport type ColProps = ExtractPropTypes<typeof colProps>\nexport type ColInstance = InstanceType<typeof Col>\n"],"names":[],"mappings":";;;;AACY,MAAC,QAAQ,GAAG,UAAU,CAAC;AACnC,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,EAAE,EAAE;AACN,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAE,MAAM,OAAO,CAAC,EAAE,CAAC;AAC9B,GAAG;AACH,EAAE,EAAE,EAAE;AACN,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAE,MAAM,OAAO,CAAC,EAAE,CAAC;AAC9B,GAAG;AACH,EAAE,EAAE,EAAE;AACN,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAE,MAAM,OAAO,CAAC,EAAE,CAAC;AAC9B,GAAG;AACH,EAAE,EAAE,EAAE;AACN,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAE,MAAM,OAAO,CAAC,EAAE,CAAC;AAC9B,GAAG;AACH,EAAE,EAAE,EAAE;AACN,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAE,MAAM,OAAO,CAAC,EAAE,CAAC;AAC9B,GAAG;AACH,CAAC;;;;"}
@@ -41,15 +41,19 @@ const createCollectionWithScope = (name) => {
41
41
  onMounted(() => {
42
42
  const collectionItemEl = unref(collectionItemRef);
43
43
  if (collectionItemEl) {
44
- collectionInjection.itemMap.set(collectionItemEl, {
45
- ref: collectionItemEl,
46
- ...attrs
47
- });
44
+ if (collectionInjection) {
45
+ collectionInjection.itemMap.set(collectionItemEl, {
46
+ ref: collectionItemEl,
47
+ ...attrs
48
+ });
49
+ }
48
50
  }
49
51
  });
50
52
  onBeforeUnmount(() => {
51
53
  const collectionItemEl = unref(collectionItemRef);
52
- collectionInjection.itemMap.delete(collectionItemEl);
54
+ if (collectionInjection) {
55
+ collectionInjection.itemMap.delete(collectionItemEl);
56
+ }
53
57
  });
54
58
  }
55
59
  };
@@ -1 +1 @@
1
- {"version":3,"file":"collection.mjs","sources":["../../../../../../packages/components/collection/src/collection.ts"],"sourcesContent":["import { inject, onBeforeUnmount, onMounted, provide, ref, unref } from 'vue'\nimport Collection from './collection.vue'\nimport CollectionItem from './collection-item.vue'\n\nimport type { InjectionKey } from 'vue'\nimport type { SetupContext } from '@vue/runtime-core'\nimport type {\n ElCollectionInjectionContext,\n ElCollectionItemInjectionContext,\n} from './tokens'\n\nexport const COLLECTION_ITEM_SIGN = `data-el-collection-item`\n\n// Make sure the first letter of name is capitalized\nexport const createCollectionWithScope = (name: string) => {\n const COLLECTION_NAME = `El${name}Collection`\n const COLLECTION_ITEM_NAME = `${COLLECTION_NAME}Item`\n const COLLECTION_INJECTION_KEY: InjectionKey<ElCollectionInjectionContext> =\n Symbol(COLLECTION_NAME)\n const COLLECTION_ITEM_INJECTION_KEY: InjectionKey<ElCollectionItemInjectionContext> =\n Symbol(COLLECTION_ITEM_NAME)\n\n const ElCollection = {\n ...Collection,\n name: COLLECTION_NAME,\n setup() {\n const collectionRef = ref<HTMLElement | null>(null)\n const itemMap: ElCollectionInjectionContext['itemMap'] = new Map()\n const getItems = () => {\n const collectionEl = unref(collectionRef)\n\n if (!collectionEl) return []\n const orderedNodes = Array.from(\n collectionEl.querySelectorAll(`[${COLLECTION_ITEM_SIGN}]`)\n )\n\n const items = [...itemMap.values()]\n\n return items.sort(\n (a, b) => orderedNodes.indexOf(a.ref!) - orderedNodes.indexOf(b.ref!)\n )\n }\n\n provide(COLLECTION_INJECTION_KEY, {\n itemMap,\n getItems,\n collectionRef,\n })\n },\n }\n\n const ElCollectionItem = {\n ...CollectionItem,\n name: COLLECTION_ITEM_NAME,\n setup(_: unknown, { attrs }: SetupContext) {\n const collectionItemRef = ref<HTMLElement | null>(null)\n const collectionInjection = inject(COLLECTION_INJECTION_KEY, undefined)!\n\n provide(COLLECTION_ITEM_INJECTION_KEY, {\n collectionItemRef,\n })\n\n onMounted(() => {\n const collectionItemEl = unref(collectionItemRef)\n if (collectionItemEl) {\n collectionInjection.itemMap.set(collectionItemEl, {\n ref: collectionItemEl,\n ...attrs,\n })\n }\n })\n\n onBeforeUnmount(() => {\n const collectionItemEl = unref(collectionItemRef)!\n collectionInjection.itemMap.delete(collectionItemEl)\n })\n },\n }\n\n return {\n COLLECTION_INJECTION_KEY,\n COLLECTION_ITEM_INJECTION_KEY,\n ElCollection,\n ElCollectionItem,\n }\n}\n"],"names":[],"mappings":";;;;AAGY,MAAC,oBAAoB,GAAG,CAAC,uBAAuB,EAAE;AAClD,MAAC,yBAAyB,GAAG,CAAC,IAAI,KAAK;AACnD,EAAE,MAAM,eAAe,GAAG,CAAC,EAAE,EAAE,IA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3B,IAAI,GAAG,cAAc;AACrB,IAAI,IAAI,EAAE,oBAAoB;AAC9B,IAAI,KAAK,CAAC,CAAC,EAAE,EAAE,KAAK,EAAE,EAAE;AACxB,MAAM,MAAM,iBAAiB,GAAG,GAAG,CAAC,IAAI,CAAC,CAAC;AAC1C,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,wBAAwB,EAAE,KAAK,CAAC,CAAC,CAAC;AAC3E,MAAM,OAAO,CAAC,6BAA6B,EAAE;AAC7C,QAAQ,iBAAiB;AACzB,OAAO,CAAC,CAAC;AACT,MAAM,SAAS,CAAC,MAAM;AACtB,QAAQ,MAAM,gBAAgB,GAAG,KAAK,CAAC,iBAAiB,CAAC,CAAC;AAC1D,QAAQ,IAAI,gBAAgB,EAAE;AAC9B,UAAU,mBAAmB,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE;AAC5D,YAAY,GAAG,EAAE,gBAAgB;AACjC,YAAY,GAAG,KAAK;AACpB,WAAW,CAAC,CAAC;AACb,SAAS;AACT,OAAO,CAAC,CAAC;AACT,MAAM,eAAe,CAAC,MAAM;AAC5B,QAAQ,MAAM,gBAAgB,GAAG,KAAK,CAAC,iBAAiB,CAAC,CAAC;AAC1D,QAAQ,mBAAmB,CAAC,OAAO,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;AAC7D,OAAO,CAAC,CAAC;AACT,KAAK;AACL,GAAG,CAAC;AACJ,EAAE,OAAO;AACT,IAAI,wBAAwB;AAC5B,IAAI,6BAA6B;AACjC,IAAI,YAAY;AAChB,IAAI,gBAAgB;AACpB,GAAG,CAAC;AACJ;;;;"}
1
+ {"version":3,"file":"collection.mjs","sources":["../../../../../../packages/components/collection/src/collection.ts"],"sourcesContent":["import { inject, onBeforeUnmount, onMounted, provide, ref, unref } from 'vue'\nimport Collection from './collection.vue'\nimport CollectionItem from './collection-item.vue'\n\nimport type { InjectionKey } from 'vue'\nimport type { SetupContext } from '@vue/runtime-core'\nimport type {\n ElCollectionInjectionContext,\n ElCollectionItemInjectionContext,\n} from './tokens'\n\nexport const COLLECTION_ITEM_SIGN = `data-el-collection-item`\n\n// Make sure the first letter of name is capitalized\nexport const createCollectionWithScope = (name: string) => {\n const COLLECTION_NAME = `El${name}Collection`\n const COLLECTION_ITEM_NAME = `${COLLECTION_NAME}Item`\n const COLLECTION_INJECTION_KEY: InjectionKey<ElCollectionInjectionContext> =\n Symbol(COLLECTION_NAME)\n const COLLECTION_ITEM_INJECTION_KEY: InjectionKey<ElCollectionItemInjectionContext> =\n Symbol(COLLECTION_ITEM_NAME)\n\n const ElCollection = {\n ...Collection,\n name: COLLECTION_NAME,\n setup() {\n const collectionRef = ref<HTMLElement | null>(null)\n const itemMap: ElCollectionInjectionContext['itemMap'] = new Map()\n const getItems = () => {\n const collectionEl = unref(collectionRef)\n\n if (!collectionEl) return []\n const orderedNodes = Array.from(\n collectionEl.querySelectorAll(`[${COLLECTION_ITEM_SIGN}]`)\n )\n\n const items = [...itemMap.values()]\n\n return items.sort(\n (a, b) => orderedNodes.indexOf(a.ref!) - orderedNodes.indexOf(b.ref!)\n )\n }\n\n provide(COLLECTION_INJECTION_KEY, {\n itemMap,\n getItems,\n collectionRef,\n })\n },\n }\n\n const ElCollectionItem = {\n ...CollectionItem,\n name: COLLECTION_ITEM_NAME,\n setup(_: unknown, { attrs }: SetupContext) {\n const collectionItemRef = ref<HTMLElement | null>(null)\n const collectionInjection = inject(COLLECTION_INJECTION_KEY, undefined)!\n\n provide(COLLECTION_ITEM_INJECTION_KEY, {\n collectionItemRef,\n })\n\n onMounted(() => {\n const collectionItemEl = unref(collectionItemRef)\n if (collectionItemEl) {\n if (collectionInjection) {\n collectionInjection.itemMap.set(collectionItemEl, {\n ref: collectionItemEl,\n ...attrs,\n })\n }\n }\n })\n\n onBeforeUnmount(() => {\n const collectionItemEl = unref(collectionItemRef)!\n if (collectionInjection) {\n collectionInjection.itemMap.delete(collectionItemEl)\n }\n })\n },\n }\n\n return {\n COLLECTION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I,wBAAwB;AAC5B,IAAI,6BAA6B;AACjC,IAAI,YAAY;AAChB,IAAI,gBAAgB;AACpB,GAAG,CAAC;AACJ;;;;"}
@@ -2,7 +2,7 @@ import { defineComponent, useSlots, provide, computed, openBlock, createElementB
2
2
  import '../../../utils/index.mjs';
3
3
  import '../../../hooks/index.mjs';
4
4
  import '../../form/index.mjs';
5
- import ElDescriptionsRow from './descriptions-row2.mjs';
5
+ import ElDescriptionsRow from './descriptions-row.mjs';
6
6
  import { descriptionsKey } from './token.mjs';
7
7
  import { descriptionProps } from './description2.mjs';
8
8
  import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
@@ -1,12 +1,69 @@
1
- import '../../../utils/index.mjs';
2
- import { buildProps } from '../../../utils/vue/props/runtime.mjs';
1
+ import { defineComponent, inject, unref, openBlock, createElementBlock, Fragment, createElementVNode, renderList, createBlock, createVNode } from 'vue';
2
+ import ElDescriptionsCell from './descriptions-cell.mjs';
3
+ import { descriptionsKey } from './token.mjs';
4
+ import { descriptionsRowProps } from './descriptions-row2.mjs';
5
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
3
6
 
4
- const descriptionsRowProps = buildProps({
5
- row: {
6
- type: Array,
7
- default: () => []
7
+ const _hoisted_1 = { key: 1 };
8
+ const __default__ = defineComponent({
9
+ name: "ElDescriptionsRow"
10
+ });
11
+ const _sfc_main = /* @__PURE__ */ defineComponent({
12
+ ...__default__,
13
+ props: descriptionsRowProps,
14
+ setup(__props) {
15
+ const descriptions = inject(descriptionsKey, {});
16
+ return (_ctx, _cache) => {
17
+ return unref(descriptions).direction === "vertical" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
18
+ createElementVNode("tr", null, [
19
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.row, (cell, index) => {
20
+ return openBlock(), createBlock(unref(ElDescriptionsCell), {
21
+ key: `tr1-${index}`,
22
+ cell,
23
+ tag: "th",
24
+ type: "label"
25
+ }, null, 8, ["cell"]);
26
+ }), 128))
27
+ ]),
28
+ createElementVNode("tr", null, [
29
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.row, (cell, index) => {
30
+ return openBlock(), createBlock(unref(ElDescriptionsCell), {
31
+ key: `tr2-${index}`,
32
+ cell,
33
+ tag: "td",
34
+ type: "content"
35
+ }, null, 8, ["cell"]);
36
+ }), 128))
37
+ ])
38
+ ], 64)) : (openBlock(), createElementBlock("tr", _hoisted_1, [
39
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.row, (cell, index) => {
40
+ return openBlock(), createElementBlock(Fragment, {
41
+ key: `tr3-${index}`
42
+ }, [
43
+ unref(descriptions).border ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
44
+ createVNode(unref(ElDescriptionsCell), {
45
+ cell,
46
+ tag: "td",
47
+ type: "label"
48
+ }, null, 8, ["cell"]),
49
+ createVNode(unref(ElDescriptionsCell), {
50
+ cell,
51
+ tag: "td",
52
+ type: "content"
53
+ }, null, 8, ["cell"])
54
+ ], 64)) : (openBlock(), createBlock(unref(ElDescriptionsCell), {
55
+ key: 1,
56
+ cell,
57
+ tag: "td",
58
+ type: "both"
59
+ }, null, 8, ["cell"]))
60
+ ], 64);
61
+ }), 128))
62
+ ]));
63
+ };
8
64
  }
9
65
  });
66
+ var ElDescriptionsRow = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:\\workspace\\element-pe\\packages\\components\\descriptions\\src\\descriptions-row.vue"]]);
10
67
 
11
- export { descriptionsRowProps };
68
+ export { ElDescriptionsRow as default };
12
69
  //# sourceMappingURL=descriptions-row.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"descriptions-row.mjs","sources":["../../../../../../packages/components/descriptions/src/descriptions-row.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\n\nexport const descriptionsRowProps = buildProps({\n row: {\n type: Array,\n default: () => [],\n },\n} as const)\n"],"names":[],"mappings":";;;AACY,MAAC,oBAAoB,GAAG,UAAU,CAAC;AAC/C,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,KAAK;AACf,IAAI,OAAO,EAAE,MAAM,EAAE;AACrB,GAAG;AACH,CAAC;;;;"}
1
+ {"version":3,"file":"descriptions-row.mjs","sources":["../../../../../../packages/components/descriptions/src/descriptions-row.vue"],"sourcesContent":["<template>\n <template v-if=\"descriptions.direction === 'vertical'\">\n <tr>\n <template v-for=\"(cell, index) in row\" :key=\"`tr1-${index}`\">\n <el-descriptions-cell :cell=\"cell\" tag=\"th\" type=\"label\" />\n </template>\n </tr>\n <tr>\n <template v-for=\"(cell, index) in row\" :key=\"`tr2-${index}`\">\n <el-descriptions-cell :cell=\"cell\" tag=\"td\" type=\"content\" />\n </template>\n </tr>\n </template>\n <tr v-else>\n <template v-for=\"(cell, index) in row\" :key=\"`tr3-${index}`\">\n <template v-if=\"descriptions.border\">\n <el-descriptions-cell :cell=\"cell\" tag=\"td\" type=\"label\" />\n <el-descriptions-cell :cell=\"cell\" tag=\"td\" type=\"content\" />\n </template>\n <el-descriptions-cell v-else :cell=\"cell\" tag=\"td\" type=\"both\" />\n </template>\n </tr>\n</template>\n\n<script lang=\"ts\" setup>\n// @ts-nocheck\nimport { inject } from 'vue'\n\nimport ElDescriptionsCell from './descriptions-cell'\nimport { descriptionsKey } from './token'\nimport { descriptionsRowProps } from './descriptions-row'\n\nimport type { IDescriptionsInject } from './descriptions.type'\n\ndefineOptions({\n name: 'ElDescriptionsRow',\n})\n\ndefineProps(descriptionsRowProps)\n\nconst descriptions = inject(descriptionsKey, {} as IDescriptionsInject)\n</script>\n"],"names":[],"mappings":";;;;;;;mCAkCc,CAAA;AAAA,EACZ,IAAM,EAAA,mBAAA;AACR,CAAA,CAAA,CAAA;;;;;AAIA,IAAA,MAAM,YAAe,GAAA,MAAA,CAAO,eAAiB,EAAA,EAAyB,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,69 +1,12 @@
1
- import { defineComponent, inject, unref, openBlock, createElementBlock, Fragment, createElementVNode, renderList, createBlock, createVNode } from 'vue';
2
- import ElDescriptionsCell from './descriptions-cell.mjs';
3
- import { descriptionsKey } from './token.mjs';
4
- import { descriptionsRowProps } from './descriptions-row.mjs';
5
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
1
+ import '../../../utils/index.mjs';
2
+ import { buildProps } from '../../../utils/vue/props/runtime.mjs';
6
3
 
7
- const _hoisted_1 = { key: 1 };
8
- const __default__ = defineComponent({
9
- name: "ElDescriptionsRow"
10
- });
11
- const _sfc_main = /* @__PURE__ */ defineComponent({
12
- ...__default__,
13
- props: descriptionsRowProps,
14
- setup(__props) {
15
- const descriptions = inject(descriptionsKey, {});
16
- return (_ctx, _cache) => {
17
- return unref(descriptions).direction === "vertical" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
18
- createElementVNode("tr", null, [
19
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.row, (cell, index) => {
20
- return openBlock(), createBlock(unref(ElDescriptionsCell), {
21
- key: `tr1-${index}`,
22
- cell,
23
- tag: "th",
24
- type: "label"
25
- }, null, 8, ["cell"]);
26
- }), 128))
27
- ]),
28
- createElementVNode("tr", null, [
29
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.row, (cell, index) => {
30
- return openBlock(), createBlock(unref(ElDescriptionsCell), {
31
- key: `tr2-${index}`,
32
- cell,
33
- tag: "td",
34
- type: "content"
35
- }, null, 8, ["cell"]);
36
- }), 128))
37
- ])
38
- ], 64)) : (openBlock(), createElementBlock("tr", _hoisted_1, [
39
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.row, (cell, index) => {
40
- return openBlock(), createElementBlock(Fragment, {
41
- key: `tr3-${index}`
42
- }, [
43
- unref(descriptions).border ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
44
- createVNode(unref(ElDescriptionsCell), {
45
- cell,
46
- tag: "td",
47
- type: "label"
48
- }, null, 8, ["cell"]),
49
- createVNode(unref(ElDescriptionsCell), {
50
- cell,
51
- tag: "td",
52
- type: "content"
53
- }, null, 8, ["cell"])
54
- ], 64)) : (openBlock(), createBlock(unref(ElDescriptionsCell), {
55
- key: 1,
56
- cell,
57
- tag: "td",
58
- type: "both"
59
- }, null, 8, ["cell"]))
60
- ], 64);
61
- }), 128))
62
- ]));
63
- };
4
+ const descriptionsRowProps = buildProps({
5
+ row: {
6
+ type: Array,
7
+ default: () => []
64
8
  }
65
9
  });
66
- var ElDescriptionsRow = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:\\workspace\\element-pe\\packages\\components\\descriptions\\src\\descriptions-row.vue"]]);
67
10
 
68
- export { ElDescriptionsRow as default };
11
+ export { descriptionsRowProps };
69
12
  //# sourceMappingURL=descriptions-row2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"descriptions-row2.mjs","sources":["../../../../../../packages/components/descriptions/src/descriptions-row.vue"],"sourcesContent":["<template>\n <template v-if=\"descriptions.direction === 'vertical'\">\n <tr>\n <template v-for=\"(cell, index) in row\" :key=\"`tr1-${index}`\">\n <el-descriptions-cell :cell=\"cell\" tag=\"th\" type=\"label\" />\n </template>\n </tr>\n <tr>\n <template v-for=\"(cell, index) in row\" :key=\"`tr2-${index}`\">\n <el-descriptions-cell :cell=\"cell\" tag=\"td\" type=\"content\" />\n </template>\n </tr>\n </template>\n <tr v-else>\n <template v-for=\"(cell, index) in row\" :key=\"`tr3-${index}`\">\n <template v-if=\"descriptions.border\">\n <el-descriptions-cell :cell=\"cell\" tag=\"td\" type=\"label\" />\n <el-descriptions-cell :cell=\"cell\" tag=\"td\" type=\"content\" />\n </template>\n <el-descriptions-cell v-else :cell=\"cell\" tag=\"td\" type=\"both\" />\n </template>\n </tr>\n</template>\n\n<script lang=\"ts\" setup>\n// @ts-nocheck\nimport { inject } from 'vue'\n\nimport ElDescriptionsCell from './descriptions-cell'\nimport { descriptionsKey } from './token'\nimport { descriptionsRowProps } from './descriptions-row'\n\nimport type { IDescriptionsInject } from './descriptions.type'\n\ndefineOptions({\n name: 'ElDescriptionsRow',\n})\n\ndefineProps(descriptionsRowProps)\n\nconst descriptions = inject(descriptionsKey, {} as IDescriptionsInject)\n</script>\n"],"names":[],"mappings":";;;;;;;mCAkCc,CAAA;AAAA,EACZ,IAAM,EAAA,mBAAA;AACR,CAAA,CAAA,CAAA;;;;;AAIA,IAAA,MAAM,YAAe,GAAA,MAAA,CAAO,eAAiB,EAAA,EAAyB,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"descriptions-row2.mjs","sources":["../../../../../../packages/components/descriptions/src/descriptions-row.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\n\nexport const descriptionsRowProps = buildProps({\n row: {\n type: Array,\n default: () => [],\n },\n} as const)\n"],"names":[],"mappings":";;;AACY,MAAC,oBAAoB,GAAG,UAAU,CAAC;AAC/C,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,KAAK;AACf,IAAI,OAAO,EAAE,MAAM,EAAE;AACrB,GAAG;AACH,CAAC;;;;"}
@@ -1,7 +1,7 @@
1
1
  import '../../utils/index.mjs';
2
- import Dialog from './src/dialog2.mjs';
2
+ import Dialog from './src/dialog.mjs';
3
3
  export { useDialog } from './src/use-dialog.mjs';
4
- export { dialogEmits, dialogProps } from './src/dialog.mjs';
4
+ export { dialogEmits, dialogProps } from './src/dialog2.mjs';
5
5
  export { dialogInjectionKey } from './src/constants.mjs';
6
6
  import { withInstall } from '../../utils/vue/install.mjs';
7
7