element-plus 2.2.9 → 2.2.12

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 (720) hide show
  1. package/README.md +0 -5
  2. package/attributes.json +1 -1
  3. package/dist/index.css +1 -1
  4. package/dist/index.full.js +1038 -928
  5. package/dist/index.full.min.js +16 -16
  6. package/dist/index.full.min.js.map +1 -1
  7. package/dist/index.full.min.mjs +17 -17
  8. package/dist/index.full.min.mjs.map +1 -1
  9. package/dist/index.full.mjs +1641 -1531
  10. package/dist/locale/af.js +1 -1
  11. package/dist/locale/af.min.js +1 -1
  12. package/dist/locale/af.min.mjs +1 -1
  13. package/dist/locale/af.mjs +1 -1
  14. package/dist/locale/ar.js +1 -1
  15. package/dist/locale/ar.min.js +1 -1
  16. package/dist/locale/ar.min.mjs +1 -1
  17. package/dist/locale/ar.mjs +1 -1
  18. package/dist/locale/az.js +1 -1
  19. package/dist/locale/az.min.js +1 -1
  20. package/dist/locale/az.min.mjs +1 -1
  21. package/dist/locale/az.mjs +1 -1
  22. package/dist/locale/bg.js +1 -1
  23. package/dist/locale/bg.min.js +1 -1
  24. package/dist/locale/bg.min.mjs +1 -1
  25. package/dist/locale/bg.mjs +1 -1
  26. package/dist/locale/bn.js +1 -1
  27. package/dist/locale/bn.min.js +1 -1
  28. package/dist/locale/bn.min.mjs +1 -1
  29. package/dist/locale/bn.mjs +1 -1
  30. package/dist/locale/ca.js +1 -1
  31. package/dist/locale/ca.min.js +1 -1
  32. package/dist/locale/ca.min.mjs +1 -1
  33. package/dist/locale/ca.mjs +1 -1
  34. package/dist/locale/cs.js +1 -1
  35. package/dist/locale/cs.min.js +1 -1
  36. package/dist/locale/cs.min.mjs +1 -1
  37. package/dist/locale/cs.mjs +1 -1
  38. package/dist/locale/da.js +1 -1
  39. package/dist/locale/da.min.js +1 -1
  40. package/dist/locale/da.min.mjs +1 -1
  41. package/dist/locale/da.mjs +1 -1
  42. package/dist/locale/de.js +1 -1
  43. package/dist/locale/de.min.js +1 -1
  44. package/dist/locale/de.min.mjs +1 -1
  45. package/dist/locale/de.mjs +1 -1
  46. package/dist/locale/el.js +1 -1
  47. package/dist/locale/el.min.js +1 -1
  48. package/dist/locale/el.min.mjs +1 -1
  49. package/dist/locale/el.mjs +1 -1
  50. package/dist/locale/en.js +1 -1
  51. package/dist/locale/en.min.js +1 -1
  52. package/dist/locale/en.min.mjs +1 -1
  53. package/dist/locale/en.mjs +1 -1
  54. package/dist/locale/eo.js +1 -1
  55. package/dist/locale/eo.min.js +1 -1
  56. package/dist/locale/eo.min.mjs +1 -1
  57. package/dist/locale/eo.mjs +1 -1
  58. package/dist/locale/es.js +1 -1
  59. package/dist/locale/es.min.js +1 -1
  60. package/dist/locale/es.min.mjs +1 -1
  61. package/dist/locale/es.mjs +1 -1
  62. package/dist/locale/et.js +1 -1
  63. package/dist/locale/et.min.js +1 -1
  64. package/dist/locale/et.min.mjs +1 -1
  65. package/dist/locale/et.mjs +1 -1
  66. package/dist/locale/eu.js +1 -1
  67. package/dist/locale/eu.min.js +1 -1
  68. package/dist/locale/eu.min.mjs +1 -1
  69. package/dist/locale/eu.mjs +1 -1
  70. package/dist/locale/fa.js +1 -1
  71. package/dist/locale/fa.min.js +1 -1
  72. package/dist/locale/fa.min.mjs +1 -1
  73. package/dist/locale/fa.mjs +1 -1
  74. package/dist/locale/fi.js +1 -1
  75. package/dist/locale/fi.min.js +1 -1
  76. package/dist/locale/fi.min.mjs +1 -1
  77. package/dist/locale/fi.mjs +1 -1
  78. package/dist/locale/fr.js +1 -1
  79. package/dist/locale/fr.min.js +1 -1
  80. package/dist/locale/fr.min.mjs +1 -1
  81. package/dist/locale/fr.mjs +1 -1
  82. package/dist/locale/he.js +1 -1
  83. package/dist/locale/he.min.js +1 -1
  84. package/dist/locale/he.min.mjs +1 -1
  85. package/dist/locale/he.mjs +1 -1
  86. package/dist/locale/hr.js +1 -1
  87. package/dist/locale/hr.min.js +1 -1
  88. package/dist/locale/hr.min.mjs +1 -1
  89. package/dist/locale/hr.mjs +1 -1
  90. package/dist/locale/hu.js +1 -1
  91. package/dist/locale/hu.min.js +1 -1
  92. package/dist/locale/hu.min.mjs +1 -1
  93. package/dist/locale/hu.mjs +1 -1
  94. package/dist/locale/hy-am.js +1 -1
  95. package/dist/locale/hy-am.min.js +1 -1
  96. package/dist/locale/hy-am.min.mjs +1 -1
  97. package/dist/locale/hy-am.mjs +1 -1
  98. package/dist/locale/id.js +1 -1
  99. package/dist/locale/id.min.js +1 -1
  100. package/dist/locale/id.min.mjs +1 -1
  101. package/dist/locale/id.mjs +1 -1
  102. package/dist/locale/it.js +1 -1
  103. package/dist/locale/it.min.js +1 -1
  104. package/dist/locale/it.min.mjs +1 -1
  105. package/dist/locale/it.mjs +1 -1
  106. package/dist/locale/ja.js +1 -1
  107. package/dist/locale/ja.min.js +1 -1
  108. package/dist/locale/ja.min.mjs +1 -1
  109. package/dist/locale/ja.mjs +1 -1
  110. package/dist/locale/kk.js +1 -1
  111. package/dist/locale/kk.min.js +1 -1
  112. package/dist/locale/kk.min.mjs +1 -1
  113. package/dist/locale/kk.mjs +1 -1
  114. package/dist/locale/km.js +1 -1
  115. package/dist/locale/km.min.js +1 -1
  116. package/dist/locale/km.min.mjs +1 -1
  117. package/dist/locale/km.mjs +1 -1
  118. package/dist/locale/ko.js +29 -4
  119. package/dist/locale/ko.min.js +1 -1
  120. package/dist/locale/ko.min.js.map +1 -1
  121. package/dist/locale/ko.min.mjs +1 -1
  122. package/dist/locale/ko.min.mjs.map +1 -1
  123. package/dist/locale/ko.mjs +29 -4
  124. package/dist/locale/ku.js +1 -1
  125. package/dist/locale/ku.min.js +1 -1
  126. package/dist/locale/ku.min.mjs +1 -1
  127. package/dist/locale/ku.mjs +1 -1
  128. package/dist/locale/ky.js +1 -1
  129. package/dist/locale/ky.min.js +1 -1
  130. package/dist/locale/ky.min.mjs +1 -1
  131. package/dist/locale/ky.mjs +1 -1
  132. package/dist/locale/lt.js +1 -1
  133. package/dist/locale/lt.min.js +1 -1
  134. package/dist/locale/lt.min.mjs +1 -1
  135. package/dist/locale/lt.mjs +1 -1
  136. package/dist/locale/lv.js +1 -1
  137. package/dist/locale/lv.min.js +1 -1
  138. package/dist/locale/lv.min.mjs +1 -1
  139. package/dist/locale/lv.mjs +1 -1
  140. package/dist/locale/mg.js +1 -1
  141. package/dist/locale/mg.min.js +1 -1
  142. package/dist/locale/mg.min.mjs +1 -1
  143. package/dist/locale/mg.mjs +1 -1
  144. package/dist/locale/mn.js +1 -1
  145. package/dist/locale/mn.min.js +1 -1
  146. package/dist/locale/mn.min.mjs +1 -1
  147. package/dist/locale/mn.mjs +1 -1
  148. package/dist/locale/nb-no.js +1 -1
  149. package/dist/locale/nb-no.min.js +1 -1
  150. package/dist/locale/nb-no.min.mjs +1 -1
  151. package/dist/locale/nb-no.mjs +1 -1
  152. package/dist/locale/nl.js +1 -1
  153. package/dist/locale/nl.min.js +1 -1
  154. package/dist/locale/nl.min.mjs +1 -1
  155. package/dist/locale/nl.mjs +1 -1
  156. package/dist/locale/pa.js +1 -1
  157. package/dist/locale/pa.min.js +1 -1
  158. package/dist/locale/pa.min.mjs +1 -1
  159. package/dist/locale/pa.mjs +1 -1
  160. package/dist/locale/pl.js +1 -1
  161. package/dist/locale/pl.min.js +1 -1
  162. package/dist/locale/pl.min.mjs +1 -1
  163. package/dist/locale/pl.mjs +1 -1
  164. package/dist/locale/pt-br.js +1 -1
  165. package/dist/locale/pt-br.min.js +1 -1
  166. package/dist/locale/pt-br.min.mjs +1 -1
  167. package/dist/locale/pt-br.mjs +1 -1
  168. package/dist/locale/pt.js +1 -1
  169. package/dist/locale/pt.min.js +1 -1
  170. package/dist/locale/pt.min.mjs +1 -1
  171. package/dist/locale/pt.mjs +1 -1
  172. package/dist/locale/ro.js +1 -1
  173. package/dist/locale/ro.min.js +1 -1
  174. package/dist/locale/ro.min.mjs +1 -1
  175. package/dist/locale/ro.mjs +1 -1
  176. package/dist/locale/ru.js +1 -1
  177. package/dist/locale/ru.min.js +1 -1
  178. package/dist/locale/ru.min.mjs +1 -1
  179. package/dist/locale/ru.mjs +1 -1
  180. package/dist/locale/sk.js +1 -1
  181. package/dist/locale/sk.min.js +1 -1
  182. package/dist/locale/sk.min.mjs +1 -1
  183. package/dist/locale/sk.mjs +1 -1
  184. package/dist/locale/sl.js +1 -1
  185. package/dist/locale/sl.min.js +1 -1
  186. package/dist/locale/sl.min.mjs +1 -1
  187. package/dist/locale/sl.mjs +1 -1
  188. package/dist/locale/sr.js +1 -1
  189. package/dist/locale/sr.min.js +1 -1
  190. package/dist/locale/sr.min.mjs +1 -1
  191. package/dist/locale/sr.mjs +1 -1
  192. package/dist/locale/sv.js +1 -1
  193. package/dist/locale/sv.min.js +1 -1
  194. package/dist/locale/sv.min.mjs +1 -1
  195. package/dist/locale/sv.mjs +1 -1
  196. package/dist/locale/ta.js +1 -1
  197. package/dist/locale/ta.min.js +1 -1
  198. package/dist/locale/ta.min.mjs +1 -1
  199. package/dist/locale/ta.mjs +1 -1
  200. package/dist/locale/th.js +1 -1
  201. package/dist/locale/th.min.js +1 -1
  202. package/dist/locale/th.min.mjs +1 -1
  203. package/dist/locale/th.mjs +1 -1
  204. package/dist/locale/tk.js +1 -1
  205. package/dist/locale/tk.min.js +1 -1
  206. package/dist/locale/tk.min.mjs +1 -1
  207. package/dist/locale/tk.mjs +1 -1
  208. package/dist/locale/tr.js +1 -1
  209. package/dist/locale/tr.min.js +1 -1
  210. package/dist/locale/tr.min.mjs +1 -1
  211. package/dist/locale/tr.mjs +1 -1
  212. package/dist/locale/ug-cn.js +1 -1
  213. package/dist/locale/ug-cn.min.js +1 -1
  214. package/dist/locale/ug-cn.min.mjs +1 -1
  215. package/dist/locale/ug-cn.mjs +1 -1
  216. package/dist/locale/uk.js +1 -1
  217. package/dist/locale/uk.min.js +1 -1
  218. package/dist/locale/uk.min.mjs +1 -1
  219. package/dist/locale/uk.mjs +1 -1
  220. package/dist/locale/uz-uz.js +1 -1
  221. package/dist/locale/uz-uz.min.js +1 -1
  222. package/dist/locale/uz-uz.min.mjs +1 -1
  223. package/dist/locale/uz-uz.mjs +1 -1
  224. package/dist/locale/vi.js +1 -1
  225. package/dist/locale/vi.min.js +1 -1
  226. package/dist/locale/vi.min.mjs +1 -1
  227. package/dist/locale/vi.mjs +1 -1
  228. package/dist/locale/zh-cn.js +1 -1
  229. package/dist/locale/zh-cn.min.js +1 -1
  230. package/dist/locale/zh-cn.min.mjs +1 -1
  231. package/dist/locale/zh-cn.mjs +1 -1
  232. package/dist/locale/zh-tw.js +1 -1
  233. package/dist/locale/zh-tw.min.js +1 -1
  234. package/dist/locale/zh-tw.min.mjs +1 -1
  235. package/dist/locale/zh-tw.mjs +1 -1
  236. package/es/components/carousel/index.d.ts +1 -0
  237. package/es/components/carousel/src/carousel.vue.d.ts +1 -0
  238. package/es/components/carousel/src/carousel2.mjs +8 -0
  239. package/es/components/carousel/src/carousel2.mjs.map +1 -1
  240. package/es/components/cascader/src/index.mjs +10 -10
  241. package/es/components/cascader/src/index.mjs.map +1 -1
  242. package/es/components/cascader-panel/src/index.mjs +1 -1
  243. package/es/components/cascader-panel/src/index.mjs.map +1 -1
  244. package/es/components/checkbox/index.d.ts +4 -4
  245. package/es/components/checkbox/src/checkbox-group.mjs +1 -1
  246. package/es/components/checkbox/src/checkbox-group.mjs.map +1 -1
  247. package/es/components/checkbox/src/checkbox-group.vue.d.ts +10 -9
  248. package/es/components/color-picker/index.d.ts +216 -0
  249. package/es/components/color-picker/src/components/alpha-slider.mjs +10 -6
  250. package/es/components/color-picker/src/components/alpha-slider.mjs.map +1 -1
  251. package/es/components/color-picker/src/components/alpha-slider.vue.d.ts +18 -0
  252. package/es/components/color-picker/src/components/hue-slider.mjs +10 -6
  253. package/es/components/color-picker/src/components/hue-slider.mjs.map +1 -1
  254. package/es/components/color-picker/src/components/hue-slider.vue.d.ts +18 -0
  255. package/es/components/color-picker/src/components/predefine.mjs +21 -11
  256. package/es/components/color-picker/src/components/predefine.mjs.map +1 -1
  257. package/es/components/color-picker/src/components/predefine.vue.d.ts +18 -0
  258. package/es/components/color-picker/src/components/sv-panel.mjs +19 -13
  259. package/es/components/color-picker/src/components/sv-panel.mjs.map +1 -1
  260. package/es/components/color-picker/src/components/sv-panel.vue.d.ts +18 -0
  261. package/es/components/color-picker/src/draggable.mjs +10 -12
  262. package/es/components/color-picker/src/draggable.mjs.map +1 -1
  263. package/es/components/color-picker/src/index.mjs +0 -1
  264. package/es/components/color-picker/src/index.mjs.map +1 -1
  265. package/es/components/color-picker/src/index.vue.d.ts +108 -0
  266. package/es/components/date-picker/src/date-picker-com/basic-date-table.mjs +21 -8
  267. package/es/components/date-picker/src/date-picker-com/basic-date-table.mjs.map +1 -1
  268. package/es/components/date-picker/src/date-picker-com/basic-date-table.vue.d.ts +5 -2
  269. package/es/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +5 -2
  270. package/es/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +5 -2
  271. package/es/components/date-picker/src/panel-utils.d.ts +10 -4
  272. package/es/components/descriptions/index.d.ts +82 -54
  273. package/es/components/descriptions/index.mjs +2 -1
  274. package/es/components/descriptions/index.mjs.map +1 -1
  275. package/es/components/descriptions/src/description.d.ts +15 -0
  276. package/es/components/descriptions/src/description.mjs +32 -0
  277. package/es/components/descriptions/src/description.mjs.map +1 -0
  278. package/es/components/descriptions/src/description.vue.d.ts +106 -0
  279. package/es/components/descriptions/src/description2.mjs +127 -0
  280. package/es/components/descriptions/src/description2.mjs.map +1 -0
  281. package/es/components/descriptions/src/descriptions-cell.mjs +4 -4
  282. package/es/components/descriptions/src/descriptions-cell.mjs.map +1 -1
  283. package/es/components/descriptions/src/descriptions-row.d.ts +3 -0
  284. package/es/components/descriptions/src/descriptions-row.mjs +7 -71
  285. package/es/components/descriptions/src/descriptions-row.mjs.map +1 -1
  286. package/es/components/descriptions/src/descriptions-row.vue.d.ts +28 -7
  287. package/es/components/descriptions/src/descriptions-row2.mjs +69 -0
  288. package/es/components/descriptions/src/descriptions-row2.mjs.map +1 -0
  289. package/es/components/descriptions/src/token.d.ts +1 -1
  290. package/es/components/descriptions/src/token.mjs +2 -2
  291. package/es/components/descriptions/src/token.mjs.map +1 -1
  292. package/es/components/dialog/src/use-dialog.mjs.map +1 -1
  293. package/es/components/dropdown/src/useDropdown.mjs +3 -3
  294. package/es/components/dropdown/src/useDropdown.mjs.map +1 -1
  295. package/es/components/dropdown/style/css.d.ts +2 -1
  296. package/es/components/dropdown/style/css.mjs +2 -1
  297. package/es/components/dropdown/style/css.mjs.map +1 -1
  298. package/es/components/dropdown/style/index.d.ts +2 -1
  299. package/es/components/dropdown/style/index.mjs +2 -1
  300. package/es/components/dropdown/style/index.mjs.map +1 -1
  301. package/es/components/form/src/form-item2.mjs +1 -1
  302. package/es/components/form/src/form-item2.mjs.map +1 -1
  303. package/es/components/image/index.d.ts +4 -1
  304. package/es/components/image/src/image.d.ts +1 -0
  305. package/es/components/image/src/image.mjs +2 -1
  306. package/es/components/image/src/image.mjs.map +1 -1
  307. package/es/components/image/src/image.vue.d.ts +4 -1
  308. package/es/components/image/src/image2.mjs +1 -0
  309. package/es/components/image/src/image2.mjs.map +1 -1
  310. package/es/components/index.mjs +1 -0
  311. package/es/components/index.mjs.map +1 -1
  312. package/es/components/input-number/src/input-number2.mjs +3 -3
  313. package/es/components/menu/src/menu.mjs +12 -10
  314. package/es/components/menu/src/menu.mjs.map +1 -1
  315. package/es/components/message/src/method.mjs +3 -1
  316. package/es/components/message/src/method.mjs.map +1 -1
  317. package/es/components/message/style/css.d.ts +1 -0
  318. package/es/components/message/style/css.mjs +1 -0
  319. package/es/components/message/style/css.mjs.map +1 -1
  320. package/es/components/message/style/index.d.ts +1 -0
  321. package/es/components/message/style/index.mjs +1 -0
  322. package/es/components/message/style/index.mjs.map +1 -1
  323. package/es/components/message-box/src/index.mjs +2 -3
  324. package/es/components/message-box/src/index.mjs.map +1 -1
  325. package/es/components/notification/src/notify.mjs +1 -1
  326. package/es/components/notification/src/notify.mjs.map +1 -1
  327. package/es/components/popconfirm/index.d.ts +0 -1
  328. package/es/components/popconfirm/src/popconfirm.vue.d.ts +0 -1
  329. package/es/components/popconfirm/src/popconfirm2.mjs +2 -5
  330. package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
  331. package/es/components/popover/index.d.ts +20 -0
  332. package/es/components/popover/src/popover.d.ts +11 -5
  333. package/es/components/popover/src/popover.mjs +3 -0
  334. package/es/components/popover/src/popover.mjs.map +1 -1
  335. package/es/components/popover/src/popover.vue.d.ts +20 -0
  336. package/es/components/popover/src/popover2.mjs +7 -2
  337. package/es/components/popover/src/popover2.mjs.map +1 -1
  338. package/es/components/popper/src/content2.mjs +4 -4
  339. package/es/components/popper/src/content2.mjs.map +1 -1
  340. package/es/components/rate/src/rate2.mjs +2 -1
  341. package/es/components/rate/src/rate2.mjs.map +1 -1
  342. package/es/components/roving-focus-group/src/roving-focus-group-impl.mjs +4 -10
  343. package/es/components/roving-focus-group/src/roving-focus-group-impl.mjs.map +1 -1
  344. package/es/components/scrollbar/src/scrollbar2.mjs +3 -1
  345. package/es/components/scrollbar/src/scrollbar2.mjs.map +1 -1
  346. package/es/components/select/src/option.mjs +4 -4
  347. package/es/components/select/src/option.mjs.map +1 -1
  348. package/es/components/select/src/select.mjs +3 -4
  349. package/es/components/select/src/select.mjs.map +1 -1
  350. package/es/components/select/src/useSelect.mjs +0 -2
  351. package/es/components/select/src/useSelect.mjs.map +1 -1
  352. package/es/components/select-v2/src/select.mjs +4 -5
  353. package/es/components/select-v2/src/select.mjs.map +1 -1
  354. package/es/components/select-v2/src/useSelect.mjs +2 -1
  355. package/es/components/select-v2/src/useSelect.mjs.map +1 -1
  356. package/es/components/slider/index.d.ts +5 -0
  357. package/es/components/slider/src/button.vue.d.ts +1 -0
  358. package/es/components/slider/src/button2.mjs +12 -11
  359. package/es/components/slider/src/button2.mjs.map +1 -1
  360. package/es/components/slider/src/composables/use-slide.d.ts +4 -0
  361. package/es/components/slider/src/composables/use-slider-button.d.ts +1 -0
  362. package/es/components/slider/src/composables/use-slider-button.mjs +4 -1
  363. package/es/components/slider/src/composables/use-slider-button.mjs.map +1 -1
  364. package/es/components/slider/src/marker.mjs +1 -1
  365. package/es/components/slider/src/marker.mjs.map +1 -1
  366. package/es/components/slider/src/slider.vue.d.ts +5 -0
  367. package/es/components/space/src/space.mjs +33 -25
  368. package/es/components/space/src/space.mjs.map +1 -1
  369. package/es/components/steps/src/item2.mjs +1 -1
  370. package/es/components/steps/src/item2.mjs.map +1 -1
  371. package/es/components/table/index.d.ts +23 -33
  372. package/es/components/table/src/filter-panel.mjs +0 -1
  373. package/es/components/table/src/filter-panel.mjs.map +1 -1
  374. package/es/components/table/src/table/defaults.d.ts +2 -2
  375. package/es/components/table/src/table/defaults.mjs +1 -3
  376. package/es/components/table/src/table/defaults.mjs.map +1 -1
  377. package/es/components/table/src/table/style-helper.d.ts +21 -31
  378. package/es/components/table/src/table/style-helper.mjs +73 -97
  379. package/es/components/table/src/table/style-helper.mjs.map +1 -1
  380. package/es/components/table/src/table-header/event-helper.mjs +5 -9
  381. package/es/components/table/src/table-header/event-helper.mjs.map +1 -1
  382. package/es/components/table/src/table-layout.d.ts +1 -5
  383. package/es/components/table/src/table-layout.mjs +3 -52
  384. package/es/components/table/src/table-layout.mjs.map +1 -1
  385. package/es/components/table/src/table.mjs +30 -34
  386. package/es/components/table/src/table.mjs.map +1 -1
  387. package/es/components/table/src/table.vue.d.ts +23 -33
  388. package/es/components/table/src/util.d.ts +1 -1
  389. package/es/components/table/src/util.mjs +8 -19
  390. package/es/components/table/src/util.mjs.map +1 -1
  391. package/es/components/table-v2/index.d.ts +1 -1
  392. package/es/components/table-v2/src/components/header.d.ts +1 -1
  393. package/es/components/table-v2/src/table-grid.d.ts +1 -1
  394. package/es/components/table-v2/src/table-v2.d.ts +1 -1
  395. package/es/components/tabs/src/tab-nav.mjs +5 -4
  396. package/es/components/tabs/src/tab-nav.mjs.map +1 -1
  397. package/es/components/time-picker/src/common/picker.mjs +6 -6
  398. package/es/components/time-picker/src/common/picker.mjs.map +1 -1
  399. package/es/components/time-picker/src/time-picker-com/basic-time-spinner.mjs +3 -3
  400. package/es/components/tooltip/src/tooltip2.mjs +2 -2
  401. package/es/components/tooltip/src/tooltip2.mjs.map +1 -1
  402. package/es/components/transfer/index.d.ts +23 -35
  403. package/es/components/transfer/src/transfer-panel.vue.d.ts +4 -4
  404. package/es/components/transfer/src/transfer.d.ts +2 -1
  405. package/es/components/transfer/src/transfer.mjs.map +1 -1
  406. package/es/components/transfer/src/transfer.vue.d.ts +68 -81
  407. package/es/components/tree/src/model/useDragNode.mjs.map +1 -1
  408. package/es/components/tree/src/model/useKeydown.mjs +3 -7
  409. package/es/components/tree/src/model/useKeydown.mjs.map +1 -1
  410. package/es/components/tree/src/tree.type.d.ts +3 -2
  411. package/es/components/upload/src/use-handlers.mjs +1 -1
  412. package/es/components/upload/src/use-handlers.mjs.map +1 -1
  413. package/es/components/virtual-list/src/builders/build-grid.mjs +1 -1
  414. package/es/components/virtual-list/src/builders/build-grid.mjs.map +1 -1
  415. package/es/components/virtual-list/src/components/dynamic-size-grid.mjs +1 -1
  416. package/es/components/virtual-list/src/components/dynamic-size-grid.mjs.map +1 -1
  417. package/es/directives/click-outside/index.mjs.map +1 -1
  418. package/es/directives/index.d.ts +0 -1
  419. package/es/directives/index.mjs +0 -1
  420. package/es/directives/index.mjs.map +1 -1
  421. package/es/directives/mousewheel/index.mjs.map +1 -1
  422. package/es/directives/repeat-click/index.d.ts +2 -2
  423. package/es/directives/repeat-click/index.mjs +13 -13
  424. package/es/directives/repeat-click/index.mjs.map +1 -1
  425. package/es/directives/trap-focus/index.d.ts +1 -1
  426. package/es/directives/trap-focus/index.mjs +2 -3
  427. package/es/directives/trap-focus/index.mjs.map +1 -1
  428. package/es/hooks/use-escape-keydown/index.mjs +6 -6
  429. package/es/hooks/use-escape-keydown/index.mjs.map +1 -1
  430. package/es/hooks/use-floating/index.d.ts +1 -1
  431. package/es/hooks/use-floating/index.mjs.map +1 -1
  432. package/es/hooks/use-lockscreen/index.mjs +9 -5
  433. package/es/hooks/use-lockscreen/index.mjs.map +1 -1
  434. package/es/hooks/use-model-toggle/index.d.ts +2 -0
  435. package/es/hooks/use-model-toggle/index.mjs +2 -1
  436. package/es/hooks/use-model-toggle/index.mjs.map +1 -1
  437. package/es/hooks/use-namespace/index.mjs +6 -2
  438. package/es/hooks/use-namespace/index.mjs.map +1 -1
  439. package/es/index.mjs +1 -1
  440. package/es/locale/lang/ko.d.ts +25 -0
  441. package/es/locale/lang/ko.mjs +28 -3
  442. package/es/locale/lang/ko.mjs.map +1 -1
  443. package/es/make-installer.mjs.map +1 -1
  444. package/es/utils/dom/aria.d.ts +2 -3
  445. package/es/utils/dom/aria.mjs.map +1 -1
  446. package/es/utils/dom/event.d.ts +0 -6
  447. package/es/utils/dom/event.mjs +1 -20
  448. package/es/utils/dom/event.mjs.map +1 -1
  449. package/es/utils/dom/index.mjs +1 -1
  450. package/es/utils/dom/scroll.d.ts +1 -1
  451. package/es/utils/dom/scroll.mjs +2 -2
  452. package/es/utils/dom/scroll.mjs.map +1 -1
  453. package/es/utils/index.mjs +1 -1
  454. package/es/version.d.ts +1 -1
  455. package/es/version.mjs +1 -1
  456. package/es/version.mjs.map +1 -1
  457. package/lib/components/carousel/index.d.ts +1 -0
  458. package/lib/components/carousel/src/carousel.vue.d.ts +1 -0
  459. package/lib/components/carousel/src/carousel2.js +8 -0
  460. package/lib/components/carousel/src/carousel2.js.map +1 -1
  461. package/lib/components/cascader/src/index.js +10 -10
  462. package/lib/components/cascader/src/index.js.map +1 -1
  463. package/lib/components/cascader-panel/src/index.js +1 -1
  464. package/lib/components/cascader-panel/src/index.js.map +1 -1
  465. package/lib/components/checkbox/index.d.ts +4 -4
  466. package/lib/components/checkbox/src/checkbox-group.js +1 -1
  467. package/lib/components/checkbox/src/checkbox-group.js.map +1 -1
  468. package/lib/components/checkbox/src/checkbox-group.vue.d.ts +10 -9
  469. package/lib/components/color-picker/index.d.ts +216 -0
  470. package/lib/components/color-picker/src/components/alpha-slider.js +10 -6
  471. package/lib/components/color-picker/src/components/alpha-slider.js.map +1 -1
  472. package/lib/components/color-picker/src/components/alpha-slider.vue.d.ts +18 -0
  473. package/lib/components/color-picker/src/components/hue-slider.js +10 -6
  474. package/lib/components/color-picker/src/components/hue-slider.js.map +1 -1
  475. package/lib/components/color-picker/src/components/hue-slider.vue.d.ts +18 -0
  476. package/lib/components/color-picker/src/components/predefine.js +20 -10
  477. package/lib/components/color-picker/src/components/predefine.js.map +1 -1
  478. package/lib/components/color-picker/src/components/predefine.vue.d.ts +18 -0
  479. package/lib/components/color-picker/src/components/sv-panel.js +18 -12
  480. package/lib/components/color-picker/src/components/sv-panel.js.map +1 -1
  481. package/lib/components/color-picker/src/components/sv-panel.vue.d.ts +18 -0
  482. package/lib/components/color-picker/src/draggable.js +15 -17
  483. package/lib/components/color-picker/src/draggable.js.map +1 -1
  484. package/lib/components/color-picker/src/index.js +0 -1
  485. package/lib/components/color-picker/src/index.js.map +1 -1
  486. package/lib/components/color-picker/src/index.vue.d.ts +108 -0
  487. package/lib/components/date-picker/src/date-picker-com/basic-date-table.js +21 -8
  488. package/lib/components/date-picker/src/date-picker-com/basic-date-table.js.map +1 -1
  489. package/lib/components/date-picker/src/date-picker-com/basic-date-table.vue.d.ts +5 -2
  490. package/lib/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +5 -2
  491. package/lib/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +5 -2
  492. package/lib/components/date-picker/src/panel-utils.d.ts +10 -4
  493. package/lib/components/descriptions/index.d.ts +82 -54
  494. package/lib/components/descriptions/index.js +4 -2
  495. package/lib/components/descriptions/index.js.map +1 -1
  496. package/lib/components/descriptions/src/description.d.ts +15 -0
  497. package/lib/components/descriptions/src/description.js +36 -0
  498. package/lib/components/descriptions/src/description.js.map +1 -0
  499. package/lib/components/descriptions/src/description.vue.d.ts +106 -0
  500. package/lib/components/descriptions/src/description2.js +131 -0
  501. package/lib/components/descriptions/src/description2.js.map +1 -0
  502. package/lib/components/descriptions/src/descriptions-cell.js +3 -3
  503. package/lib/components/descriptions/src/descriptions-cell.js.map +1 -1
  504. package/lib/components/descriptions/src/descriptions-row.d.ts +3 -0
  505. package/lib/components/descriptions/src/descriptions-row.js +7 -71
  506. package/lib/components/descriptions/src/descriptions-row.js.map +1 -1
  507. package/lib/components/descriptions/src/descriptions-row.vue.d.ts +28 -7
  508. package/lib/components/descriptions/src/descriptions-row2.js +73 -0
  509. package/lib/components/descriptions/src/descriptions-row2.js.map +1 -0
  510. package/lib/components/descriptions/src/token.d.ts +1 -1
  511. package/lib/components/descriptions/src/token.js +2 -2
  512. package/lib/components/descriptions/src/token.js.map +1 -1
  513. package/lib/components/dialog/src/use-dialog.js.map +1 -1
  514. package/lib/components/dropdown/src/useDropdown.js +3 -3
  515. package/lib/components/dropdown/src/useDropdown.js.map +1 -1
  516. package/lib/components/dropdown/style/css.d.ts +2 -1
  517. package/lib/components/dropdown/style/css.js +2 -1
  518. package/lib/components/dropdown/style/css.js.map +1 -1
  519. package/lib/components/dropdown/style/index.d.ts +2 -1
  520. package/lib/components/dropdown/style/index.js +2 -1
  521. package/lib/components/dropdown/style/index.js.map +1 -1
  522. package/lib/components/form/src/form-item2.js +1 -1
  523. package/lib/components/form/src/form-item2.js.map +1 -1
  524. package/lib/components/image/index.d.ts +4 -1
  525. package/lib/components/image/src/image.d.ts +1 -0
  526. package/lib/components/image/src/image.js +2 -1
  527. package/lib/components/image/src/image.js.map +1 -1
  528. package/lib/components/image/src/image.vue.d.ts +4 -1
  529. package/lib/components/image/src/image2.js +1 -0
  530. package/lib/components/image/src/image2.js.map +1 -1
  531. package/lib/components/index.js +2 -0
  532. package/lib/components/index.js.map +1 -1
  533. package/lib/components/menu/src/menu.js +13 -11
  534. package/lib/components/menu/src/menu.js.map +1 -1
  535. package/lib/components/message/src/method.js +3 -1
  536. package/lib/components/message/src/method.js.map +1 -1
  537. package/lib/components/message/style/css.d.ts +1 -0
  538. package/lib/components/message/style/css.js +1 -0
  539. package/lib/components/message/style/css.js.map +1 -1
  540. package/lib/components/message/style/index.d.ts +1 -0
  541. package/lib/components/message/style/index.js +1 -0
  542. package/lib/components/message/style/index.js.map +1 -1
  543. package/lib/components/message-box/src/index.js +2 -3
  544. package/lib/components/message-box/src/index.js.map +1 -1
  545. package/lib/components/notification/src/notify.js +1 -1
  546. package/lib/components/notification/src/notify.js.map +1 -1
  547. package/lib/components/popconfirm/index.d.ts +0 -1
  548. package/lib/components/popconfirm/src/popconfirm.vue.d.ts +0 -1
  549. package/lib/components/popconfirm/src/popconfirm2.js +2 -5
  550. package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
  551. package/lib/components/popover/index.d.ts +20 -0
  552. package/lib/components/popover/src/popover.d.ts +11 -5
  553. package/lib/components/popover/src/popover.js +3 -0
  554. package/lib/components/popover/src/popover.js.map +1 -1
  555. package/lib/components/popover/src/popover.vue.d.ts +20 -0
  556. package/lib/components/popover/src/popover2.js +6 -1
  557. package/lib/components/popover/src/popover2.js.map +1 -1
  558. package/lib/components/popper/src/content2.js +4 -4
  559. package/lib/components/popper/src/content2.js.map +1 -1
  560. package/lib/components/rate/src/rate2.js +2 -1
  561. package/lib/components/rate/src/rate2.js.map +1 -1
  562. package/lib/components/roving-focus-group/src/roving-focus-group-impl.js +2 -8
  563. package/lib/components/roving-focus-group/src/roving-focus-group-impl.js.map +1 -1
  564. package/lib/components/scrollbar/src/scrollbar2.js +3 -1
  565. package/lib/components/scrollbar/src/scrollbar2.js.map +1 -1
  566. package/lib/components/select/src/option.js +4 -4
  567. package/lib/components/select/src/option.js.map +1 -1
  568. package/lib/components/select/src/select.js +3 -4
  569. package/lib/components/select/src/select.js.map +1 -1
  570. package/lib/components/select/src/useSelect.js +0 -2
  571. package/lib/components/select/src/useSelect.js.map +1 -1
  572. package/lib/components/select-v2/src/select.js +4 -5
  573. package/lib/components/select-v2/src/select.js.map +1 -1
  574. package/lib/components/select-v2/src/useSelect.js +2 -1
  575. package/lib/components/select-v2/src/useSelect.js.map +1 -1
  576. package/lib/components/slider/index.d.ts +5 -0
  577. package/lib/components/slider/src/button.vue.d.ts +1 -0
  578. package/lib/components/slider/src/button2.js +11 -10
  579. package/lib/components/slider/src/button2.js.map +1 -1
  580. package/lib/components/slider/src/composables/use-slide.d.ts +4 -0
  581. package/lib/components/slider/src/composables/use-slider-button.d.ts +1 -0
  582. package/lib/components/slider/src/composables/use-slider-button.js +4 -1
  583. package/lib/components/slider/src/composables/use-slider-button.js.map +1 -1
  584. package/lib/components/slider/src/marker.js +1 -1
  585. package/lib/components/slider/src/marker.js.map +1 -1
  586. package/lib/components/slider/src/slider.vue.d.ts +5 -0
  587. package/lib/components/space/src/space.js +32 -24
  588. package/lib/components/space/src/space.js.map +1 -1
  589. package/lib/components/steps/src/item2.js +1 -1
  590. package/lib/components/steps/src/item2.js.map +1 -1
  591. package/lib/components/table/index.d.ts +23 -33
  592. package/lib/components/table/src/filter-panel.js +0 -1
  593. package/lib/components/table/src/filter-panel.js.map +1 -1
  594. package/lib/components/table/src/table/defaults.d.ts +2 -2
  595. package/lib/components/table/src/table/defaults.js +1 -3
  596. package/lib/components/table/src/table/defaults.js.map +1 -1
  597. package/lib/components/table/src/table/style-helper.d.ts +21 -31
  598. package/lib/components/table/src/table/style-helper.js +72 -96
  599. package/lib/components/table/src/table/style-helper.js.map +1 -1
  600. package/lib/components/table/src/table-header/event-helper.js +5 -9
  601. package/lib/components/table/src/table-header/event-helper.js.map +1 -1
  602. package/lib/components/table/src/table-layout.d.ts +1 -5
  603. package/lib/components/table/src/table-layout.js +3 -52
  604. package/lib/components/table/src/table-layout.js.map +1 -1
  605. package/lib/components/table/src/table.js +30 -34
  606. package/lib/components/table/src/table.js.map +1 -1
  607. package/lib/components/table/src/table.vue.d.ts +23 -33
  608. package/lib/components/table/src/util.d.ts +1 -1
  609. package/lib/components/table/src/util.js +8 -19
  610. package/lib/components/table/src/util.js.map +1 -1
  611. package/lib/components/table-v2/index.d.ts +1 -1
  612. package/lib/components/table-v2/src/components/header.d.ts +1 -1
  613. package/lib/components/table-v2/src/table-grid.d.ts +1 -1
  614. package/lib/components/table-v2/src/table-v2.d.ts +1 -1
  615. package/lib/components/tabs/src/tab-nav.js +5 -4
  616. package/lib/components/tabs/src/tab-nav.js.map +1 -1
  617. package/lib/components/time-picker/src/common/picker.js +6 -6
  618. package/lib/components/time-picker/src/common/picker.js.map +1 -1
  619. package/lib/components/tooltip/src/tooltip2.js +2 -2
  620. package/lib/components/tooltip/src/tooltip2.js.map +1 -1
  621. package/lib/components/transfer/index.d.ts +23 -35
  622. package/lib/components/transfer/src/transfer-panel.vue.d.ts +4 -4
  623. package/lib/components/transfer/src/transfer.d.ts +2 -1
  624. package/lib/components/transfer/src/transfer.js.map +1 -1
  625. package/lib/components/transfer/src/transfer.vue.d.ts +68 -81
  626. package/lib/components/tree/src/model/useDragNode.js.map +1 -1
  627. package/lib/components/tree/src/model/useKeydown.js +2 -6
  628. package/lib/components/tree/src/model/useKeydown.js.map +1 -1
  629. package/lib/components/tree/src/tree.type.d.ts +3 -2
  630. package/lib/components/upload/src/use-handlers.js +1 -1
  631. package/lib/components/upload/src/use-handlers.js.map +1 -1
  632. package/lib/components/virtual-list/src/builders/build-grid.js +1 -1
  633. package/lib/components/virtual-list/src/builders/build-grid.js.map +1 -1
  634. package/lib/components/virtual-list/src/components/dynamic-size-grid.js +1 -1
  635. package/lib/components/virtual-list/src/components/dynamic-size-grid.js.map +1 -1
  636. package/lib/directives/click-outside/index.js.map +1 -1
  637. package/lib/directives/index.d.ts +0 -1
  638. package/lib/directives/index.js +0 -2
  639. package/lib/directives/index.js.map +1 -1
  640. package/lib/directives/mousewheel/index.js.map +1 -1
  641. package/lib/directives/repeat-click/index.d.ts +2 -2
  642. package/lib/directives/repeat-click/index.js +13 -13
  643. package/lib/directives/repeat-click/index.js.map +1 -1
  644. package/lib/directives/trap-focus/index.d.ts +1 -1
  645. package/lib/directives/trap-focus/index.js +2 -3
  646. package/lib/directives/trap-focus/index.js.map +1 -1
  647. package/lib/hooks/use-escape-keydown/index.js +6 -6
  648. package/lib/hooks/use-escape-keydown/index.js.map +1 -1
  649. package/lib/hooks/use-floating/index.d.ts +1 -1
  650. package/lib/hooks/use-floating/index.js.map +1 -1
  651. package/lib/hooks/use-lockscreen/index.js +9 -5
  652. package/lib/hooks/use-lockscreen/index.js.map +1 -1
  653. package/lib/hooks/use-model-toggle/index.d.ts +2 -0
  654. package/lib/hooks/use-model-toggle/index.js +2 -1
  655. package/lib/hooks/use-model-toggle/index.js.map +1 -1
  656. package/lib/hooks/use-namespace/index.js +6 -2
  657. package/lib/hooks/use-namespace/index.js.map +1 -1
  658. package/lib/index.js +81 -81
  659. package/lib/locale/lang/ko.d.ts +25 -0
  660. package/lib/locale/lang/ko.js +28 -3
  661. package/lib/locale/lang/ko.js.map +1 -1
  662. package/lib/make-installer.js.map +1 -1
  663. package/lib/utils/dom/aria.d.ts +2 -3
  664. package/lib/utils/dom/aria.js.map +1 -1
  665. package/lib/utils/dom/event.d.ts +0 -6
  666. package/lib/utils/dom/event.js +0 -22
  667. package/lib/utils/dom/event.js.map +1 -1
  668. package/lib/utils/dom/index.js +0 -3
  669. package/lib/utils/dom/index.js.map +1 -1
  670. package/lib/utils/dom/scroll.d.ts +1 -1
  671. package/lib/utils/dom/scroll.js +2 -2
  672. package/lib/utils/dom/scroll.js.map +1 -1
  673. package/lib/utils/index.js +0 -3
  674. package/lib/utils/index.js.map +1 -1
  675. package/lib/version.d.ts +1 -1
  676. package/lib/version.js +1 -1
  677. package/lib/version.js.map +1 -1
  678. package/package.json +3 -3
  679. package/tags.json +1 -1
  680. package/theme-chalk/el-date-picker.css +1 -1
  681. package/theme-chalk/el-menu.css +1 -1
  682. package/theme-chalk/el-message-box.css +1 -1
  683. package/theme-chalk/el-message.css +1 -1
  684. package/theme-chalk/el-rate.css +1 -1
  685. package/theme-chalk/el-select-dropdown-v2.css +1 -1
  686. package/theme-chalk/el-select-dropdown.css +1 -1
  687. package/theme-chalk/el-select-v2.css +1 -1
  688. package/theme-chalk/el-select.css +1 -1
  689. package/theme-chalk/el-slider.css +1 -1
  690. package/theme-chalk/el-table-v2.css +1 -1
  691. package/theme-chalk/el-table.css +1 -1
  692. package/theme-chalk/el-tabs.css +1 -1
  693. package/theme-chalk/el-time-picker.css +1 -1
  694. package/theme-chalk/el-time-select.css +1 -1
  695. package/theme-chalk/index.css +1 -1
  696. package/theme-chalk/src/common/var.scss +1 -2
  697. package/theme-chalk/src/date-picker/picker.scss +4 -5
  698. package/theme-chalk/src/menu.scss +1 -0
  699. package/theme-chalk/src/message-box.scss +3 -1
  700. package/theme-chalk/src/message.scss +4 -4
  701. package/theme-chalk/src/rate.scss +1 -0
  702. package/theme-chalk/src/select-dropdown-v2.scss +3 -3
  703. package/theme-chalk/src/select-dropdown.scss +2 -2
  704. package/theme-chalk/src/slider.scss +2 -0
  705. package/theme-chalk/src/table-v2.scss +3 -0
  706. package/theme-chalk/src/table.scss +7 -1
  707. package/theme-chalk/src/tabs.scss +1 -1
  708. package/web-types.json +1 -1
  709. package/es/components/descriptions/src/index.mjs +0 -160
  710. package/es/components/descriptions/src/index.mjs.map +0 -1
  711. package/es/components/descriptions/src/index.vue.d.ts +0 -80
  712. package/es/directives/resize/index.d.ts +0 -3
  713. package/es/directives/resize/index.mjs +0 -18
  714. package/es/directives/resize/index.mjs.map +0 -1
  715. package/lib/components/descriptions/src/index.js +0 -164
  716. package/lib/components/descriptions/src/index.js.map +0 -1
  717. package/lib/components/descriptions/src/index.vue.d.ts +0 -80
  718. package/lib/directives/resize/index.d.ts +0 -3
  719. package/lib/directives/resize/index.js +0 -22
  720. package/lib/directives/resize/index.js.map +0 -1
@@ -0,0 +1,15 @@
1
+ import type Description from './description.vue';
2
+ export declare const descriptionProps: {
3
+ readonly border: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
4
+ readonly column: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 3, boolean>;
5
+ readonly direction: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "vertical" | "horizontal", unknown, "horizontal", boolean>;
6
+ readonly size: {
7
+ readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
8
+ readonly required: false;
9
+ readonly validator: ((val: unknown) => boolean) | undefined;
10
+ __epPropKey: true;
11
+ };
12
+ readonly title: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
13
+ readonly extra: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
14
+ };
15
+ export declare type DescriptionInstance = InstanceType<typeof Description>;
@@ -0,0 +1,32 @@
1
+ import '../../../utils/index.mjs';
2
+ import '../../../hooks/index.mjs';
3
+ import { buildProps } from '../../../utils/vue/props/runtime.mjs';
4
+ import { useSizeProp } from '../../../hooks/use-common-props/index.mjs';
5
+
6
+ const descriptionProps = buildProps({
7
+ border: {
8
+ type: Boolean,
9
+ default: false
10
+ },
11
+ column: {
12
+ type: Number,
13
+ default: 3
14
+ },
15
+ direction: {
16
+ type: String,
17
+ values: ["horizontal", "vertical"],
18
+ default: "horizontal"
19
+ },
20
+ size: useSizeProp,
21
+ title: {
22
+ type: String,
23
+ default: ""
24
+ },
25
+ extra: {
26
+ type: String,
27
+ default: ""
28
+ }
29
+ });
30
+
31
+ export { descriptionProps };
32
+ //# sourceMappingURL=description.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"description.mjs","sources":["../../../../../../packages/components/descriptions/src/description.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport { useSizeProp } from '@element-plus/hooks'\n\nimport type Description from './description.vue'\n\nexport const descriptionProps = buildProps({\n border: {\n type: Boolean,\n default: false,\n },\n column: {\n type: Number,\n default: 3,\n },\n direction: {\n type: String,\n values: ['horizontal', 'vertical'],\n default: 'horizontal',\n },\n size: useSizeProp,\n title: {\n type: String,\n default: '',\n },\n extra: {\n type: String,\n default: '',\n },\n} as const)\n\nexport type DescriptionInstance = InstanceType<typeof Description>\n"],"names":[],"mappings":";;;;;AAEY,MAAC,gBAAgB,GAAG,UAAU,CAAC;AAC3C,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,YAAY,EAAE,UAAU,CAAC;AACtC,IAAI,OAAO,EAAE,YAAY;AACzB,GAAG;AACH,EAAE,IAAI,EAAE,WAAW;AACnB,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,CAAC;;;;"}
@@ -0,0 +1,106 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ readonly border: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
3
+ readonly column: import("../../../utils").EpPropFinalized<NumberConstructor, unknown, unknown, 3, boolean>;
4
+ readonly direction: import("../../../utils").EpPropFinalized<StringConstructor, "vertical" | "horizontal", unknown, "horizontal", boolean>;
5
+ readonly size: {
6
+ readonly type: import("vue").PropType<import("../../../utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
7
+ readonly required: false;
8
+ readonly validator: ((val: unknown) => boolean) | undefined;
9
+ __epPropKey: true;
10
+ };
11
+ readonly title: import("../../../utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
12
+ readonly extra: import("../../../utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
13
+ }, {
14
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
15
+ readonly border: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
16
+ readonly column: import("../../../utils").EpPropFinalized<NumberConstructor, unknown, unknown, 3, boolean>;
17
+ readonly direction: import("../../../utils").EpPropFinalized<StringConstructor, "vertical" | "horizontal", unknown, "horizontal", boolean>;
18
+ readonly size: {
19
+ readonly type: import("vue").PropType<import("../../../utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
20
+ readonly required: false;
21
+ readonly validator: ((val: unknown) => boolean) | undefined;
22
+ __epPropKey: true;
23
+ };
24
+ readonly title: import("../../../utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
25
+ readonly extra: import("../../../utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
26
+ }>> & {
27
+ [x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
28
+ }>>;
29
+ ns: {
30
+ namespace: import("vue").ComputedRef<string>;
31
+ b: (blockSuffix?: string) => string;
32
+ e: (element?: string | undefined) => string;
33
+ m: (modifier?: string | undefined) => string;
34
+ be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
35
+ em: (element?: string | undefined, modifier?: string | undefined) => string;
36
+ bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
37
+ bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
38
+ is: {
39
+ (name: string, state: boolean | undefined): string;
40
+ (name: string): string;
41
+ };
42
+ cssVar: (object: Record<string, string>) => Record<string, string>;
43
+ cssVarName: (name: string) => string;
44
+ cssVarBlock: (object: Record<string, string>) => Record<string, string>;
45
+ cssVarBlockName: (name: string) => string;
46
+ };
47
+ descriptionsSize: import("vue").ComputedRef<"" | "default" | "small" | "large">;
48
+ slots: Readonly<{
49
+ [name: string]: import("vue").Slot | undefined;
50
+ }>;
51
+ descriptionKls: import("vue").ComputedRef<string[]>;
52
+ flattedChildren: (children: any) => never[];
53
+ filledNode: (node: any, span: any, count: any, isLast?: boolean) => any;
54
+ getRows: () => never[];
55
+ ElDescriptionsRow: import("vue").DefineComponent<{
56
+ readonly row: import("../../../utils").EpPropFinalized<ArrayConstructor, unknown, unknown, () => never[], boolean>;
57
+ }, {
58
+ descriptions: import("./descriptions.type").IDescriptionsInject;
59
+ ElDescriptionsCell: import("vue").DefineComponent<{
60
+ cell: {
61
+ type: ObjectConstructor;
62
+ };
63
+ tag: {
64
+ type: StringConstructor;
65
+ };
66
+ type: {
67
+ type: StringConstructor;
68
+ };
69
+ }, {
70
+ descriptions: import("./descriptions.type").IDescriptionsInject;
71
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
72
+ cell: {
73
+ type: ObjectConstructor;
74
+ };
75
+ tag: {
76
+ type: StringConstructor;
77
+ };
78
+ type: {
79
+ type: StringConstructor;
80
+ };
81
+ }>>, {}>;
82
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
83
+ readonly row: import("../../../utils").EpPropFinalized<ArrayConstructor, unknown, unknown, () => never[], boolean>;
84
+ }>>, {
85
+ readonly row: unknown[];
86
+ }>;
87
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
88
+ readonly border: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
89
+ readonly column: import("../../../utils").EpPropFinalized<NumberConstructor, unknown, unknown, 3, boolean>;
90
+ readonly direction: import("../../../utils").EpPropFinalized<StringConstructor, "vertical" | "horizontal", unknown, "horizontal", boolean>;
91
+ readonly size: {
92
+ readonly type: import("vue").PropType<import("../../../utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
93
+ readonly required: false;
94
+ readonly validator: ((val: unknown) => boolean) | undefined;
95
+ __epPropKey: true;
96
+ };
97
+ readonly title: import("../../../utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
98
+ readonly extra: import("../../../utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
99
+ }>>, {
100
+ readonly title: string;
101
+ readonly column: number;
102
+ readonly border: import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
103
+ readonly direction: import("../../../utils").EpPropMergeType<StringConstructor, "vertical" | "horizontal", unknown>;
104
+ readonly extra: string;
105
+ }>;
106
+ export default _default;
@@ -0,0 +1,127 @@
1
+ import { defineComponent, useSlots, provide, computed, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, renderSlot, createTextVNode, toDisplayString, createCommentVNode, Fragment, renderList, createBlock } from 'vue';
2
+ import '../../../hooks/index.mjs';
3
+ import ElDescriptionsRow from './descriptions-row2.mjs';
4
+ import { descriptionsKey } from './token.mjs';
5
+ import { descriptionProps } from './description.mjs';
6
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
7
+ import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
8
+ import { useSize } from '../../../hooks/use-common-props/index.mjs';
9
+
10
+ const __default__ = {
11
+ name: "ElDescriptions"
12
+ };
13
+ const _sfc_main = /* @__PURE__ */ defineComponent({
14
+ ...__default__,
15
+ props: descriptionProps,
16
+ setup(__props) {
17
+ const props = __props;
18
+ const ns = useNamespace("descriptions");
19
+ const descriptionsSize = useSize();
20
+ const slots = useSlots();
21
+ provide(descriptionsKey, props);
22
+ const descriptionKls = computed(() => [ns.b(), ns.m(descriptionsSize.value)]);
23
+ const flattedChildren = (children) => {
24
+ const temp = Array.isArray(children) ? children : [children];
25
+ const res = [];
26
+ temp.forEach((child) => {
27
+ if (Array.isArray(child.children)) {
28
+ res.push(...flattedChildren(child.children));
29
+ } else {
30
+ res.push(child);
31
+ }
32
+ });
33
+ return res;
34
+ };
35
+ const filledNode = (node, span, count, isLast = false) => {
36
+ if (!node.props) {
37
+ node.props = {};
38
+ }
39
+ if (span > count) {
40
+ node.props.span = count;
41
+ }
42
+ if (isLast) {
43
+ node.props.span = span;
44
+ }
45
+ return node;
46
+ };
47
+ const getRows = () => {
48
+ var _a;
49
+ const children = flattedChildren((_a = slots.default) == null ? void 0 : _a.call(slots)).filter((node) => {
50
+ var _a2;
51
+ return ((_a2 = node == null ? void 0 : node.type) == null ? void 0 : _a2.name) === "ElDescriptionsItem";
52
+ });
53
+ const rows = [];
54
+ let temp = [];
55
+ let count = props.column;
56
+ let totalSpan = 0;
57
+ children.forEach((node, index) => {
58
+ var _a2;
59
+ const span = ((_a2 = node.props) == null ? void 0 : _a2.span) || 1;
60
+ if (index < children.length - 1) {
61
+ totalSpan += span > count ? count : span;
62
+ }
63
+ if (index === children.length - 1) {
64
+ const lastSpan = props.column - totalSpan % props.column;
65
+ temp.push(filledNode(node, lastSpan, count, true));
66
+ rows.push(temp);
67
+ return;
68
+ }
69
+ if (span < count) {
70
+ count -= span;
71
+ temp.push(node);
72
+ } else {
73
+ temp.push(filledNode(node, span, count));
74
+ rows.push(temp);
75
+ count = props.column;
76
+ temp = [];
77
+ }
78
+ });
79
+ return rows;
80
+ };
81
+ return (_ctx, _cache) => {
82
+ return openBlock(), createElementBlock("div", {
83
+ class: normalizeClass(unref(descriptionKls))
84
+ }, [
85
+ _ctx.title || _ctx.extra || _ctx.$slots.title || _ctx.$slots.extra ? (openBlock(), createElementBlock("div", {
86
+ key: 0,
87
+ class: normalizeClass(unref(ns).e("header"))
88
+ }, [
89
+ createElementVNode("div", {
90
+ class: normalizeClass(unref(ns).e("title"))
91
+ }, [
92
+ renderSlot(_ctx.$slots, "title", {}, () => [
93
+ createTextVNode(toDisplayString(_ctx.title), 1)
94
+ ])
95
+ ], 2),
96
+ createElementVNode("div", {
97
+ class: normalizeClass(unref(ns).e("extra"))
98
+ }, [
99
+ renderSlot(_ctx.$slots, "extra", {}, () => [
100
+ createTextVNode(toDisplayString(_ctx.extra), 1)
101
+ ])
102
+ ], 2)
103
+ ], 2)) : createCommentVNode("v-if", true),
104
+ createElementVNode("div", {
105
+ class: normalizeClass(unref(ns).e("body"))
106
+ }, [
107
+ createElementVNode("table", {
108
+ class: normalizeClass([unref(ns).e("table"), unref(ns).is("bordered", _ctx.border)])
109
+ }, [
110
+ createElementVNode("tbody", null, [
111
+ (openBlock(true), createElementBlock(Fragment, null, renderList(getRows(), (row, index) => {
112
+ return openBlock(), createBlock(ElDescriptionsRow, {
113
+ key: index,
114
+ row
115
+ }, null, 8, ["row"]);
116
+ }), 128))
117
+ ])
118
+ ], 2)
119
+ ], 2)
120
+ ], 2);
121
+ };
122
+ }
123
+ });
124
+ var Descriptions = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/description.vue"]]);
125
+
126
+ export { Descriptions as default };
127
+ //# sourceMappingURL=description2.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"description2.mjs","sources":["../../../../../../packages/components/descriptions/src/description.vue"],"sourcesContent":["<template>\n <div :class=\"descriptionKls\">\n <div\n v-if=\"title || extra || $slots.title || $slots.extra\"\n :class=\"ns.e('header')\"\n >\n <div :class=\"ns.e('title')\">\n <slot name=\"title\">{{ title }}</slot>\n </div>\n <div :class=\"ns.e('extra')\">\n <slot name=\"extra\">{{ extra }}</slot>\n </div>\n </div>\n\n <div :class=\"ns.e('body')\">\n <table :class=\"[ns.e('table'), ns.is('bordered', border)]\">\n <tbody>\n <template v-for=\"(row, index) in getRows()\" :key=\"index\">\n <el-descriptions-row :row=\"row\" />\n </template>\n </tbody>\n </table>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\n// @ts-nocheck\nimport { computed, provide, useSlots } from 'vue'\nimport { useNamespace, useSize } from '@element-plus/hooks'\nimport ElDescriptionsRow from './descriptions-row.vue'\nimport { descriptionsKey } from './token'\nimport { descriptionProps } from './description'\n\ndefineOptions({\n name: 'ElDescriptions',\n})\n\nconst props = defineProps(descriptionProps)\n\nconst ns = useNamespace('descriptions')\n\nconst descriptionsSize = useSize()\n\nconst slots = useSlots()\n\nprovide(descriptionsKey, props)\n\nconst descriptionKls = computed(() => [ns.b(), ns.m(descriptionsSize.value)])\n\nconst flattedChildren = (children) => {\n const temp = Array.isArray(children) ? children : [children]\n const res = []\n temp.forEach((child) => {\n if (Array.isArray(child.children)) {\n res.push(...flattedChildren(child.children))\n } else {\n res.push(child)\n }\n })\n return res\n}\n\nconst filledNode = (node, span, count, isLast = false) => {\n if (!node.props) {\n node.props = {}\n }\n if (span > count) {\n node.props.span = count\n }\n if (isLast) {\n // set the last span\n node.props.span = span\n }\n return node\n}\n\nconst getRows = () => {\n const children = flattedChildren(slots.default?.()).filter(\n (node) => node?.type?.name === 'ElDescriptionsItem'\n )\n const rows = []\n let temp = []\n let count = props.column\n let totalSpan = 0 // all spans number of item\n\n children.forEach((node, index) => {\n const span = node.props?.span || 1\n\n if (index < children.length - 1) {\n totalSpan += span > count ? count : span\n }\n\n if (index === children.length - 1) {\n // calculate the last item span\n const lastSpan = props.column - (totalSpan % props.column)\n temp.push(filledNode(node, lastSpan, count, true))\n rows.push(temp)\n return\n }\n\n if (span < count) {\n count -= span\n temp.push(node)\n } else {\n temp.push(filledNode(node, span, count))\n rows.push(temp)\n count = props.column\n temp = []\n }\n })\n\n return rows\n}\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAwCA,IAAA,MAAA,EAAA,GAAA,aAAA,cAAA,CAAA,CAAA;AAEA,IAAA,MA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,CAAA,CAAA;AACA,UAAA,IAAA,CAAA,KAAA,IAAA,CAAA,CAAA;AAAA,UACA,OAAA;AACA,SAAA;AACA,QAAA,IAAA,YAAA,EAAA;AACA,UAAA,KAAA,IAAA,IAAA,CAAA;AACA,UAAA,IAAA,CAAA,IAAA,CAAA,IAAA,CAAA,CAAA;AAAA,SACA,MAAA;AAAA,UACA,IAAA,CAAA,IAAA,CAAA,UAAA,CAAA,IAAA,EAAA,IAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAEA,UAAA,IAAA,CAAA,IAAA,CAAA,IAAA,CAAA,CAAA;AAAA,UACA,KAAA,GAAA,KAAA,CAAA,MAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,12 +1,12 @@
1
1
  import { defineComponent, inject, h } from 'vue';
2
2
  import '../../../utils/index.mjs';
3
3
  import '../../../hooks/index.mjs';
4
- import { elDescriptionsKey } from './token.mjs';
4
+ import { descriptionsKey } from './token.mjs';
5
5
  import { getNormalizedProps } from '../../../utils/vue/vnode.mjs';
6
6
  import { addUnit } from '../../../utils/dom/style.mjs';
7
7
  import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
8
8
 
9
- var DescriptionsCell = defineComponent({
9
+ var ElDescriptionsCell = defineComponent({
10
10
  name: "ElDescriptionsCell",
11
11
  props: {
12
12
  cell: {
@@ -20,7 +20,7 @@ var DescriptionsCell = defineComponent({
20
20
  }
21
21
  },
22
22
  setup() {
23
- const descriptions = inject(elDescriptionsKey, {});
23
+ const descriptions = inject(descriptionsKey, {});
24
24
  return {
25
25
  descriptions
26
26
  };
@@ -86,5 +86,5 @@ var DescriptionsCell = defineComponent({
86
86
  }
87
87
  });
88
88
 
89
- export { DescriptionsCell as default };
89
+ export { ElDescriptionsCell as default };
90
90
  //# sourceMappingURL=descriptions-cell.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"descriptions-cell.mjs","sources":["../../../../../../packages/components/descriptions/src/descriptions-cell.ts"],"sourcesContent":["// @ts-nocheck\nimport { defineComponent, h, inject } from 'vue'\nimport { addUnit, getNormalizedProps } from '@element-plus/utils'\nimport { useNamespace } from '@element-plus/hooks'\nimport { elDescriptionsKey } from './token'\n\nimport type { VNode } from 'vue'\nimport type {\n IDescriptionsInject,\n IDescriptionsItemInject,\n} from './descriptions.type'\n\nexport default defineComponent({\n name: 'ElDescriptionsCell',\n props: {\n cell: {\n type: Object,\n },\n tag: {\n type: String,\n },\n type: {\n type: String,\n },\n },\n setup() {\n const descriptions = inject(elDescriptionsKey, {} as IDescriptionsInject)\n\n return {\n descriptions,\n }\n },\n render() {\n const item = getNormalizedProps(\n this.cell as VNode\n ) as IDescriptionsItemInject\n\n const { border, direction } = this.descriptions\n const isVertical = direction === 'vertical'\n const label = this.cell?.children?.label?.() || item.label\n const content = this.cell?.children?.default?.()\n const span = item.span\n const align = item.align ? `is-${item.align}` : ''\n const labelAlign = item.labelAlign ? `is-${item.labelAlign}` : '' || align\n const className = item.className\n const labelClassName = item.labelClassName\n const style = {\n width: addUnit(item.width),\n minWidth: addUnit(item.minWidth),\n }\n const ns = useNamespace('descriptions')\n\n switch (this.type) {\n case 'label':\n return h(\n this.tag,\n {\n style,\n class: [\n ns.e('cell'),\n ns.e('label'),\n ns.is('bordered-label', border),\n ns.is('vertical-label', isVertical),\n labelAlign,\n labelClassName,\n ],\n colSpan: isVertical ? span : 1,\n },\n label\n )\n case 'content':\n return h(\n this.tag,\n {\n style,\n class: [\n ns.e('cell'),\n ns.e('content'),\n ns.is('bordered-content', border),\n ns.is('vertical-content', isVertical),\n align,\n className,\n ],\n colSpan: isVertical ? span : span * 2 - 1,\n },\n content\n )\n default:\n return h(\n 'td',\n {\n style,\n class: [ns.e('cell'), align],\n colSpan: span,\n },\n [\n h(\n 'span',\n {\n class: [ns.e('label'), labelClassName],\n },\n label\n ),\n h(\n 'span',\n {\n class: [ns.e('content'), className],\n },\n content\n ),\n ]\n )\n }\n },\n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riptions/src/descriptions-cell.ts"],"sourcesContent":["// @ts-nocheck\nimport { defineComponent, h, inject } from 'vue'\nimport { addUnit, getNormalizedProps } from '@element-plus/utils'\nimport { useNamespace } from '@element-plus/hooks'\nimport { descriptionsKey } from './token'\n\nimport type { VNode } from 'vue'\nimport type {\n IDescriptionsInject,\n IDescriptionsItemInject,\n} from './descriptions.type'\n\nexport default defineComponent({\n name: 'ElDescriptionsCell',\n props: {\n cell: {\n type: Object,\n },\n tag: {\n type: String,\n },\n type: {\n type: String,\n },\n },\n setup() {\n const descriptions = inject(descriptionsKey, {} as IDescriptionsInject)\n\n return {\n descriptions,\n }\n },\n render() {\n const item = getNormalizedProps(\n this.cell as VNode\n ) as IDescriptionsItemInject\n\n const { border, direction } = this.descriptions\n const isVertical = direction === 'vertical'\n const label = this.cell?.children?.label?.() || item.label\n const content = this.cell?.children?.default?.()\n const span = item.span\n const align = item.align ? `is-${item.align}` : ''\n const labelAlign = item.labelAlign ? `is-${item.labelAlign}` : '' || align\n const className = item.className\n const labelClassName = item.labelClassName\n const style = {\n width: addUnit(item.width),\n minWidth: addUnit(item.minWidth),\n }\n const ns = useNamespace('descriptions')\n\n switch (this.type) {\n case 'label':\n return h(\n this.tag,\n {\n style,\n class: [\n ns.e('cell'),\n ns.e('label'),\n ns.is('bordered-label', border),\n ns.is('vertical-label', isVertical),\n labelAlign,\n labelClassName,\n ],\n colSpan: isVertical ? span : 1,\n },\n label\n )\n case 'content':\n return h(\n this.tag,\n {\n style,\n class: [\n ns.e('cell'),\n ns.e('content'),\n ns.is('bordered-content', border),\n ns.is('vertical-content', isVertical),\n align,\n className,\n ],\n colSpan: isVertical ? span : span * 2 - 1,\n },\n content\n )\n default:\n return h(\n 'td',\n {\n style,\n class: [ns.e('cell'), align],\n colSpan: span,\n },\n [\n h(\n 'span',\n {\n class: [ns.e('label'), labelClassName],\n },\n label\n ),\n h(\n 'span',\n {\n class: [ns.e('content'), className],\n },\n content\n ),\n ]\n )\n }\n },\n})\n"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-plus/es/utils").EpPropFinalized<ArrayConstructor, unknown, unknown, () => never[], boolean>;
3
+ };
@@ -1,76 +1,12 @@
1
- import { defineComponent, inject, resolveComponent, openBlock, createElementBlock, Fragment, createElementVNode, renderList, createBlock, createVNode } from 'vue';
2
- import DescriptionsCell from './descriptions-cell.mjs';
3
- import { elDescriptionsKey } from './token.mjs';
4
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
1
+ import '../../../utils/index.mjs';
2
+ import { buildProps } from '../../../utils/vue/props/runtime.mjs';
5
3
 
6
- const _sfc_main = defineComponent({
7
- name: "ElDescriptionsRow",
8
- components: {
9
- [DescriptionsCell.name]: DescriptionsCell
10
- },
11
- props: {
12
- row: {
13
- type: Array
14
- }
15
- },
16
- setup() {
17
- const descriptions = inject(elDescriptionsKey, {});
18
- return {
19
- descriptions
20
- };
4
+ const descriptionsRowProps = buildProps({
5
+ row: {
6
+ type: Array,
7
+ default: () => []
21
8
  }
22
9
  });
23
- const _hoisted_1 = { key: 1 };
24
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
25
- const _component_el_descriptions_cell = resolveComponent("el-descriptions-cell");
26
- return _ctx.descriptions.direction === "vertical" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
27
- createElementVNode("tr", null, [
28
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.row, (cell, index) => {
29
- return openBlock(), createBlock(_component_el_descriptions_cell, {
30
- key: `tr1-${index}`,
31
- cell,
32
- tag: "th",
33
- type: "label"
34
- }, null, 8, ["cell"]);
35
- }), 128))
36
- ]),
37
- createElementVNode("tr", null, [
38
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.row, (cell, index) => {
39
- return openBlock(), createBlock(_component_el_descriptions_cell, {
40
- key: `tr2-${index}`,
41
- cell,
42
- tag: "td",
43
- type: "content"
44
- }, null, 8, ["cell"]);
45
- }), 128))
46
- ])
47
- ], 64)) : (openBlock(), createElementBlock("tr", _hoisted_1, [
48
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.row, (cell, index) => {
49
- return openBlock(), createElementBlock(Fragment, {
50
- key: `tr3-${index}`
51
- }, [
52
- _ctx.descriptions.border ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
53
- createVNode(_component_el_descriptions_cell, {
54
- cell,
55
- tag: "td",
56
- type: "label"
57
- }, null, 8, ["cell"]),
58
- createVNode(_component_el_descriptions_cell, {
59
- cell,
60
- tag: "td",
61
- type: "content"
62
- }, null, 8, ["cell"])
63
- ], 64)) : (openBlock(), createBlock(_component_el_descriptions_cell, {
64
- key: 1,
65
- cell,
66
- tag: "td",
67
- type: "both"
68
- }, null, 8, ["cell"]))
69
- ], 64);
70
- }), 128))
71
- ]));
72
- }
73
- var DescriptionsRow = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/descriptions-row.vue"]]);
74
10
 
75
- export { DescriptionsRow as default };
11
+ export { descriptionsRowProps };
76
12
  //# sourceMappingURL=descriptions-row.mjs.map
@@ -1 +1 @@
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\">\n// @ts-nocheck\nimport { defineComponent, inject } from 'vue'\nimport DescriptionsCell from './descriptions-cell'\nimport { elDescriptionsKey } from './token'\n\nimport type { IDescriptionsInject } from './descriptions.type'\n\nexport default defineComponent({\n name: 'ElDescriptionsRow',\n components: {\n [DescriptionsCell.name]: DescriptionsCell,\n },\n props: {\n row: {\n type: Array,\n },\n },\n setup() {\n const descriptions = inject(elDescriptionsKey, {} as IDescriptionsInject)\n\n return {\n descriptions,\n }\n },\n})\n</script>\n"],"names":["_createElementBlock","_Fragment","_createElementVNode","_openBlock","_renderList","_createBlock","_createVNode"],"mappings":";;;;;AAgCA,MAAK,YAAa,eAAa,CAAA;AAAA,EAC7B,IAAM,EAAA,mBAAA;AAAA,EACN,UAAY,EAAA;AAAA,IACV,CAAC,iBAAiB,IAAO,GAAA,gBAAA;AAAA,GAC3B;AAAA,EACA,KAAO,EAAA;AAAA,IACL,GAAK,EAAA;AAAA,MACH,IAAM,EAAA,KAAA;AAAA,KACR;AAAA,GACF;AAAA,EACA,KAAQ,GAAA;AACN,IAAA,MAAM,YAAe,GAAA,MAAA,CAAO,iBAAmB,EAAA,EAAyB,CAAA,CAAA;AAExE,IAAO,OAAA;AAAA,MACL,YAAA;AAAA,KACF,CAAA;AAAA,GACF;AACF,CAAC,CAAA,CAAA;;;;SAhDiB,IAAa,CAAA,YAAA,CAAA,SAAA,KAAS,2BAAtCA,kBAWW,CAAAC,QAAA,EAAA,EAAA,GAAA,EAAA,CAAA,EAAA,EAAA;AAAA,IAVTC,kBAIK,CAAA,IAAA,EAAA,IAAA,EAAA;AAAA,OAAAC,SAAA,CAAA,IAAA,CAAA,EAHHH,kBAEW,CAAAC,QAAA,EAAA,IAAA,EAAAG,UAAA,CAFuB,IAAG,CAAA,GAAA,EAAA,CAAnB,MAAM,KAAK,KAAA;4BAC3BC,WAA2D,CAAA,+BAAA,EAAA;AAAA,UADT,GAAA,EAAA,CAAA,IAA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tC,IAAA;AAAA,YAAY,GAAI,EAAA,IAAA;AAAA,YAAK,IAAK,EAAA,SAAA;AAAA,WAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,MAAA,CAAA,CAAA;gCAEnDD,WAAiE,CAAA,+BAAA,EAAA;AAAA,UAAA,GAAA,EAAA,CAAA;AAAnC,UAAA,IAAA;AAAA,UAAY,GAAI,EAAA,IAAA;AAAA,UAAK,IAAK,EAAA,MAAA;AAAA,SAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,MAAA,CAAA,CAAA,CAAA;;;;;;;;;"}
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,13 +1,34 @@
1
1
  import type { IDescriptionsInject } from './descriptions.type';
2
2
  declare const _default: import("vue").DefineComponent<{
3
- row: {
4
- type: ArrayConstructor;
5
- };
3
+ readonly row: import("../../../utils").EpPropFinalized<ArrayConstructor, unknown, unknown, () => never[], boolean>;
6
4
  }, {
7
5
  descriptions: IDescriptionsInject;
6
+ ElDescriptionsCell: import("vue").DefineComponent<{
7
+ cell: {
8
+ type: ObjectConstructor;
9
+ };
10
+ tag: {
11
+ type: StringConstructor;
12
+ };
13
+ type: {
14
+ type: StringConstructor;
15
+ };
16
+ }, {
17
+ descriptions: IDescriptionsInject;
18
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
19
+ cell: {
20
+ type: ObjectConstructor;
21
+ };
22
+ tag: {
23
+ type: StringConstructor;
24
+ };
25
+ type: {
26
+ type: StringConstructor;
27
+ };
28
+ }>>, {}>;
8
29
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
9
- row: {
10
- type: ArrayConstructor;
11
- };
12
- }>>, {}>;
30
+ readonly row: import("../../../utils").EpPropFinalized<ArrayConstructor, unknown, unknown, () => never[], boolean>;
31
+ }>>, {
32
+ readonly row: unknown[];
33
+ }>;
13
34
  export default _default;
@@ -0,0 +1,69 @@
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';
6
+
7
+ const _hoisted_1 = { key: 1 };
8
+ const __default__ = {
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
+ };
64
+ }
65
+ });
66
+ var ElDescriptionsRow = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/descriptions-row.vue"]]);
67
+
68
+ export { ElDescriptionsRow as default };
69
+ //# sourceMappingURL=descriptions-row2.mjs.map
@@ -0,0 +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":";;;;;;;;;;;;;;AAwCA,IAAA,MAAA,YAAA,GAAA,MAAA,CAAA,eAAA,EAAA,EAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,3 +1,3 @@
1
1
  import type { InjectionKey } from 'vue';
2
2
  import type { IDescriptionsInject } from './descriptions.type';
3
- export declare const elDescriptionsKey: InjectionKey<IDescriptionsInject>;
3
+ export declare const descriptionsKey: InjectionKey<IDescriptionsInject>;
@@ -1,4 +1,4 @@
1
- const elDescriptionsKey = "elDescriptions";
1
+ const descriptionsKey = "elDescriptions";
2
2
 
3
- export { elDescriptionsKey };
3
+ export { descriptionsKey };
4
4
  //# sourceMappingURL=token.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"token.mjs","sources":["../../../../../../packages/components/descriptions/src/token.ts"],"sourcesContent":["import type { InjectionKey } from 'vue'\nimport type { IDescriptionsInject } from './descriptions.type'\n\nexport const elDescriptionsKey =\n 'elDescriptions' as any as InjectionKey<IDescriptionsInject>\n"],"names":[],"mappings":"AAAY,MAAC,iBAAiB,GAAG;;;;"}
1
+ {"version":3,"file":"token.mjs","sources":["../../../../../../packages/components/descriptions/src/token.ts"],"sourcesContent":["import type { InjectionKey } from 'vue'\nimport type { IDescriptionsInject } from './descriptions.type'\n\nexport const descriptionsKey =\n 'elDescriptions' as any as InjectionKey<IDescriptionsInject>\n"],"names":[],"mappings":"AAAY,MAAC,eAAe,GAAG;;;;"}