element-plus 2.2.9 → 2.2.10

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 (577) hide show
  1. package/attributes.json +1 -1
  2. package/dist/index.css +1 -1
  3. package/dist/index.full.js +560 -658
  4. package/dist/index.full.min.js +15 -15
  5. package/dist/index.full.min.js.map +1 -1
  6. package/dist/index.full.min.mjs +15 -15
  7. package/dist/index.full.min.mjs.map +1 -1
  8. package/dist/index.full.mjs +559 -657
  9. package/dist/locale/af.js +1 -1
  10. package/dist/locale/af.min.js +1 -1
  11. package/dist/locale/af.min.mjs +1 -1
  12. package/dist/locale/af.mjs +1 -1
  13. package/dist/locale/ar.js +1 -1
  14. package/dist/locale/ar.min.js +1 -1
  15. package/dist/locale/ar.min.mjs +1 -1
  16. package/dist/locale/ar.mjs +1 -1
  17. package/dist/locale/az.js +1 -1
  18. package/dist/locale/az.min.js +1 -1
  19. package/dist/locale/az.min.mjs +1 -1
  20. package/dist/locale/az.mjs +1 -1
  21. package/dist/locale/bg.js +1 -1
  22. package/dist/locale/bg.min.js +1 -1
  23. package/dist/locale/bg.min.mjs +1 -1
  24. package/dist/locale/bg.mjs +1 -1
  25. package/dist/locale/bn.js +1 -1
  26. package/dist/locale/bn.min.js +1 -1
  27. package/dist/locale/bn.min.mjs +1 -1
  28. package/dist/locale/bn.mjs +1 -1
  29. package/dist/locale/ca.js +1 -1
  30. package/dist/locale/ca.min.js +1 -1
  31. package/dist/locale/ca.min.mjs +1 -1
  32. package/dist/locale/ca.mjs +1 -1
  33. package/dist/locale/cs.js +1 -1
  34. package/dist/locale/cs.min.js +1 -1
  35. package/dist/locale/cs.min.mjs +1 -1
  36. package/dist/locale/cs.mjs +1 -1
  37. package/dist/locale/da.js +1 -1
  38. package/dist/locale/da.min.js +1 -1
  39. package/dist/locale/da.min.mjs +1 -1
  40. package/dist/locale/da.mjs +1 -1
  41. package/dist/locale/de.js +1 -1
  42. package/dist/locale/de.min.js +1 -1
  43. package/dist/locale/de.min.mjs +1 -1
  44. package/dist/locale/de.mjs +1 -1
  45. package/dist/locale/el.js +1 -1
  46. package/dist/locale/el.min.js +1 -1
  47. package/dist/locale/el.min.mjs +1 -1
  48. package/dist/locale/el.mjs +1 -1
  49. package/dist/locale/en.js +1 -1
  50. package/dist/locale/en.min.js +1 -1
  51. package/dist/locale/en.min.mjs +1 -1
  52. package/dist/locale/en.mjs +1 -1
  53. package/dist/locale/eo.js +1 -1
  54. package/dist/locale/eo.min.js +1 -1
  55. package/dist/locale/eo.min.mjs +1 -1
  56. package/dist/locale/eo.mjs +1 -1
  57. package/dist/locale/es.js +1 -1
  58. package/dist/locale/es.min.js +1 -1
  59. package/dist/locale/es.min.mjs +1 -1
  60. package/dist/locale/es.mjs +1 -1
  61. package/dist/locale/et.js +1 -1
  62. package/dist/locale/et.min.js +1 -1
  63. package/dist/locale/et.min.mjs +1 -1
  64. package/dist/locale/et.mjs +1 -1
  65. package/dist/locale/eu.js +1 -1
  66. package/dist/locale/eu.min.js +1 -1
  67. package/dist/locale/eu.min.mjs +1 -1
  68. package/dist/locale/eu.mjs +1 -1
  69. package/dist/locale/fa.js +1 -1
  70. package/dist/locale/fa.min.js +1 -1
  71. package/dist/locale/fa.min.mjs +1 -1
  72. package/dist/locale/fa.mjs +1 -1
  73. package/dist/locale/fi.js +1 -1
  74. package/dist/locale/fi.min.js +1 -1
  75. package/dist/locale/fi.min.mjs +1 -1
  76. package/dist/locale/fi.mjs +1 -1
  77. package/dist/locale/fr.js +1 -1
  78. package/dist/locale/fr.min.js +1 -1
  79. package/dist/locale/fr.min.mjs +1 -1
  80. package/dist/locale/fr.mjs +1 -1
  81. package/dist/locale/he.js +1 -1
  82. package/dist/locale/he.min.js +1 -1
  83. package/dist/locale/he.min.mjs +1 -1
  84. package/dist/locale/he.mjs +1 -1
  85. package/dist/locale/hr.js +1 -1
  86. package/dist/locale/hr.min.js +1 -1
  87. package/dist/locale/hr.min.mjs +1 -1
  88. package/dist/locale/hr.mjs +1 -1
  89. package/dist/locale/hu.js +1 -1
  90. package/dist/locale/hu.min.js +1 -1
  91. package/dist/locale/hu.min.mjs +1 -1
  92. package/dist/locale/hu.mjs +1 -1
  93. package/dist/locale/hy-am.js +1 -1
  94. package/dist/locale/hy-am.min.js +1 -1
  95. package/dist/locale/hy-am.min.mjs +1 -1
  96. package/dist/locale/hy-am.mjs +1 -1
  97. package/dist/locale/id.js +1 -1
  98. package/dist/locale/id.min.js +1 -1
  99. package/dist/locale/id.min.mjs +1 -1
  100. package/dist/locale/id.mjs +1 -1
  101. package/dist/locale/it.js +1 -1
  102. package/dist/locale/it.min.js +1 -1
  103. package/dist/locale/it.min.mjs +1 -1
  104. package/dist/locale/it.mjs +1 -1
  105. package/dist/locale/ja.js +1 -1
  106. package/dist/locale/ja.min.js +1 -1
  107. package/dist/locale/ja.min.mjs +1 -1
  108. package/dist/locale/ja.mjs +1 -1
  109. package/dist/locale/kk.js +1 -1
  110. package/dist/locale/kk.min.js +1 -1
  111. package/dist/locale/kk.min.mjs +1 -1
  112. package/dist/locale/kk.mjs +1 -1
  113. package/dist/locale/km.js +1 -1
  114. package/dist/locale/km.min.js +1 -1
  115. package/dist/locale/km.min.mjs +1 -1
  116. package/dist/locale/km.mjs +1 -1
  117. package/dist/locale/ko.js +29 -4
  118. package/dist/locale/ko.min.js +1 -1
  119. package/dist/locale/ko.min.js.map +1 -1
  120. package/dist/locale/ko.min.mjs +1 -1
  121. package/dist/locale/ko.min.mjs.map +1 -1
  122. package/dist/locale/ko.mjs +29 -4
  123. package/dist/locale/ku.js +1 -1
  124. package/dist/locale/ku.min.js +1 -1
  125. package/dist/locale/ku.min.mjs +1 -1
  126. package/dist/locale/ku.mjs +1 -1
  127. package/dist/locale/ky.js +1 -1
  128. package/dist/locale/ky.min.js +1 -1
  129. package/dist/locale/ky.min.mjs +1 -1
  130. package/dist/locale/ky.mjs +1 -1
  131. package/dist/locale/lt.js +1 -1
  132. package/dist/locale/lt.min.js +1 -1
  133. package/dist/locale/lt.min.mjs +1 -1
  134. package/dist/locale/lt.mjs +1 -1
  135. package/dist/locale/lv.js +1 -1
  136. package/dist/locale/lv.min.js +1 -1
  137. package/dist/locale/lv.min.mjs +1 -1
  138. package/dist/locale/lv.mjs +1 -1
  139. package/dist/locale/mg.js +1 -1
  140. package/dist/locale/mg.min.js +1 -1
  141. package/dist/locale/mg.min.mjs +1 -1
  142. package/dist/locale/mg.mjs +1 -1
  143. package/dist/locale/mn.js +1 -1
  144. package/dist/locale/mn.min.js +1 -1
  145. package/dist/locale/mn.min.mjs +1 -1
  146. package/dist/locale/mn.mjs +1 -1
  147. package/dist/locale/nb-no.js +1 -1
  148. package/dist/locale/nb-no.min.js +1 -1
  149. package/dist/locale/nb-no.min.mjs +1 -1
  150. package/dist/locale/nb-no.mjs +1 -1
  151. package/dist/locale/nl.js +1 -1
  152. package/dist/locale/nl.min.js +1 -1
  153. package/dist/locale/nl.min.mjs +1 -1
  154. package/dist/locale/nl.mjs +1 -1
  155. package/dist/locale/pa.js +1 -1
  156. package/dist/locale/pa.min.js +1 -1
  157. package/dist/locale/pa.min.mjs +1 -1
  158. package/dist/locale/pa.mjs +1 -1
  159. package/dist/locale/pl.js +1 -1
  160. package/dist/locale/pl.min.js +1 -1
  161. package/dist/locale/pl.min.mjs +1 -1
  162. package/dist/locale/pl.mjs +1 -1
  163. package/dist/locale/pt-br.js +1 -1
  164. package/dist/locale/pt-br.min.js +1 -1
  165. package/dist/locale/pt-br.min.mjs +1 -1
  166. package/dist/locale/pt-br.mjs +1 -1
  167. package/dist/locale/pt.js +1 -1
  168. package/dist/locale/pt.min.js +1 -1
  169. package/dist/locale/pt.min.mjs +1 -1
  170. package/dist/locale/pt.mjs +1 -1
  171. package/dist/locale/ro.js +1 -1
  172. package/dist/locale/ro.min.js +1 -1
  173. package/dist/locale/ro.min.mjs +1 -1
  174. package/dist/locale/ro.mjs +1 -1
  175. package/dist/locale/ru.js +1 -1
  176. package/dist/locale/ru.min.js +1 -1
  177. package/dist/locale/ru.min.mjs +1 -1
  178. package/dist/locale/ru.mjs +1 -1
  179. package/dist/locale/sk.js +1 -1
  180. package/dist/locale/sk.min.js +1 -1
  181. package/dist/locale/sk.min.mjs +1 -1
  182. package/dist/locale/sk.mjs +1 -1
  183. package/dist/locale/sl.js +1 -1
  184. package/dist/locale/sl.min.js +1 -1
  185. package/dist/locale/sl.min.mjs +1 -1
  186. package/dist/locale/sl.mjs +1 -1
  187. package/dist/locale/sr.js +1 -1
  188. package/dist/locale/sr.min.js +1 -1
  189. package/dist/locale/sr.min.mjs +1 -1
  190. package/dist/locale/sr.mjs +1 -1
  191. package/dist/locale/sv.js +1 -1
  192. package/dist/locale/sv.min.js +1 -1
  193. package/dist/locale/sv.min.mjs +1 -1
  194. package/dist/locale/sv.mjs +1 -1
  195. package/dist/locale/ta.js +1 -1
  196. package/dist/locale/ta.min.js +1 -1
  197. package/dist/locale/ta.min.mjs +1 -1
  198. package/dist/locale/ta.mjs +1 -1
  199. package/dist/locale/th.js +1 -1
  200. package/dist/locale/th.min.js +1 -1
  201. package/dist/locale/th.min.mjs +1 -1
  202. package/dist/locale/th.mjs +1 -1
  203. package/dist/locale/tk.js +1 -1
  204. package/dist/locale/tk.min.js +1 -1
  205. package/dist/locale/tk.min.mjs +1 -1
  206. package/dist/locale/tk.mjs +1 -1
  207. package/dist/locale/tr.js +1 -1
  208. package/dist/locale/tr.min.js +1 -1
  209. package/dist/locale/tr.min.mjs +1 -1
  210. package/dist/locale/tr.mjs +1 -1
  211. package/dist/locale/ug-cn.js +1 -1
  212. package/dist/locale/ug-cn.min.js +1 -1
  213. package/dist/locale/ug-cn.min.mjs +1 -1
  214. package/dist/locale/ug-cn.mjs +1 -1
  215. package/dist/locale/uk.js +1 -1
  216. package/dist/locale/uk.min.js +1 -1
  217. package/dist/locale/uk.min.mjs +1 -1
  218. package/dist/locale/uk.mjs +1 -1
  219. package/dist/locale/uz-uz.js +1 -1
  220. package/dist/locale/uz-uz.min.js +1 -1
  221. package/dist/locale/uz-uz.min.mjs +1 -1
  222. package/dist/locale/uz-uz.mjs +1 -1
  223. package/dist/locale/vi.js +1 -1
  224. package/dist/locale/vi.min.js +1 -1
  225. package/dist/locale/vi.min.mjs +1 -1
  226. package/dist/locale/vi.mjs +1 -1
  227. package/dist/locale/zh-cn.js +1 -1
  228. package/dist/locale/zh-cn.min.js +1 -1
  229. package/dist/locale/zh-cn.min.mjs +1 -1
  230. package/dist/locale/zh-cn.mjs +1 -1
  231. package/dist/locale/zh-tw.js +1 -1
  232. package/dist/locale/zh-tw.min.js +1 -1
  233. package/dist/locale/zh-tw.min.mjs +1 -1
  234. package/dist/locale/zh-tw.mjs +1 -1
  235. package/es/components/backtop/index.mjs +2 -2
  236. package/es/components/backtop/src/backtop.mjs +100 -21
  237. package/es/components/backtop/src/backtop.mjs.map +1 -1
  238. package/es/components/backtop/src/backtop2.mjs +21 -100
  239. package/es/components/backtop/src/backtop2.mjs.map +1 -1
  240. package/es/components/cascader/src/index.mjs +10 -9
  241. package/es/components/cascader/src/index.mjs.map +1 -1
  242. package/es/components/color-picker/index.d.ts +216 -0
  243. package/es/components/color-picker/src/components/alpha-slider.mjs +10 -6
  244. package/es/components/color-picker/src/components/alpha-slider.mjs.map +1 -1
  245. package/es/components/color-picker/src/components/alpha-slider.vue.d.ts +18 -0
  246. package/es/components/color-picker/src/components/hue-slider.mjs +10 -6
  247. package/es/components/color-picker/src/components/hue-slider.mjs.map +1 -1
  248. package/es/components/color-picker/src/components/hue-slider.vue.d.ts +18 -0
  249. package/es/components/color-picker/src/components/predefine.mjs +21 -11
  250. package/es/components/color-picker/src/components/predefine.mjs.map +1 -1
  251. package/es/components/color-picker/src/components/predefine.vue.d.ts +18 -0
  252. package/es/components/color-picker/src/components/sv-panel.mjs +19 -13
  253. package/es/components/color-picker/src/components/sv-panel.mjs.map +1 -1
  254. package/es/components/color-picker/src/components/sv-panel.vue.d.ts +18 -0
  255. package/es/components/color-picker/src/index.vue.d.ts +108 -0
  256. package/es/components/date-picker/src/date-picker-com/basic-date-table.mjs +21 -8
  257. package/es/components/date-picker/src/date-picker-com/basic-date-table.mjs.map +1 -1
  258. package/es/components/date-picker/src/date-picker-com/basic-date-table.vue.d.ts +5 -2
  259. package/es/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +5 -2
  260. package/es/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +5 -2
  261. package/es/components/date-picker/src/panel-utils.d.ts +10 -4
  262. package/es/components/descriptions/index.d.ts +82 -54
  263. package/es/components/descriptions/index.mjs +2 -1
  264. package/es/components/descriptions/index.mjs.map +1 -1
  265. package/es/components/descriptions/src/description.d.ts +15 -0
  266. package/es/components/descriptions/src/description.mjs +32 -0
  267. package/es/components/descriptions/src/description.mjs.map +1 -0
  268. package/es/components/descriptions/src/description.vue.d.ts +106 -0
  269. package/es/components/descriptions/src/description2.mjs +127 -0
  270. package/es/components/descriptions/src/description2.mjs.map +1 -0
  271. package/es/components/descriptions/src/descriptions-cell.mjs +4 -4
  272. package/es/components/descriptions/src/descriptions-cell.mjs.map +1 -1
  273. package/es/components/descriptions/src/descriptions-row.d.ts +3 -0
  274. package/es/components/descriptions/src/descriptions-row.mjs +7 -71
  275. package/es/components/descriptions/src/descriptions-row.mjs.map +1 -1
  276. package/es/components/descriptions/src/descriptions-row.vue.d.ts +28 -7
  277. package/es/components/descriptions/src/descriptions-row2.mjs +69 -0
  278. package/es/components/descriptions/src/descriptions-row2.mjs.map +1 -0
  279. package/es/components/descriptions/src/token.d.ts +1 -1
  280. package/es/components/descriptions/src/token.mjs +2 -2
  281. package/es/components/descriptions/src/token.mjs.map +1 -1
  282. package/es/components/dialog/src/use-dialog.mjs.map +1 -1
  283. package/es/components/form/src/form-item2.mjs +1 -1
  284. package/es/components/form/src/form-item2.mjs.map +1 -1
  285. package/es/components/index.mjs +2 -1
  286. package/es/components/index.mjs.map +1 -1
  287. package/es/components/input-number/src/input-number2.mjs +3 -3
  288. package/es/components/menu/src/menu.mjs +16 -8
  289. package/es/components/menu/src/menu.mjs.map +1 -1
  290. package/es/components/message/src/method.mjs +3 -1
  291. package/es/components/message/src/method.mjs.map +1 -1
  292. package/es/components/message/style/css.d.ts +1 -0
  293. package/es/components/message/style/css.mjs +1 -0
  294. package/es/components/message/style/css.mjs.map +1 -1
  295. package/es/components/message/style/index.d.ts +1 -0
  296. package/es/components/message/style/index.mjs +1 -0
  297. package/es/components/message/style/index.mjs.map +1 -1
  298. package/es/components/popconfirm/index.d.ts +0 -1
  299. package/es/components/popconfirm/src/popconfirm.vue.d.ts +0 -1
  300. package/es/components/popconfirm/src/popconfirm2.mjs +2 -5
  301. package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
  302. package/es/components/popover/index.d.ts +20 -0
  303. package/es/components/popover/src/popover.d.ts +11 -5
  304. package/es/components/popover/src/popover.mjs +3 -0
  305. package/es/components/popover/src/popover.mjs.map +1 -1
  306. package/es/components/popover/src/popover.vue.d.ts +20 -0
  307. package/es/components/popover/src/popover2.mjs +7 -2
  308. package/es/components/popover/src/popover2.mjs.map +1 -1
  309. package/es/components/popper/src/content2.mjs +4 -4
  310. package/es/components/popper/src/content2.mjs.map +1 -1
  311. package/es/components/rate/src/rate2.mjs +2 -1
  312. package/es/components/rate/src/rate2.mjs.map +1 -1
  313. package/es/components/scrollbar/src/scrollbar2.mjs +3 -1
  314. package/es/components/scrollbar/src/scrollbar2.mjs.map +1 -1
  315. package/es/components/select/src/option.mjs +4 -4
  316. package/es/components/select/src/option.mjs.map +1 -1
  317. package/es/components/select/src/select.mjs +2 -2
  318. package/es/components/select/src/select.mjs.map +1 -1
  319. package/es/components/select/src/useSelect.mjs +0 -2
  320. package/es/components/select/src/useSelect.mjs.map +1 -1
  321. package/es/components/select-v2/src/useSelect.mjs +2 -1
  322. package/es/components/select-v2/src/useSelect.mjs.map +1 -1
  323. package/es/components/slider/src/composables/use-slider-button.mjs +3 -1
  324. package/es/components/slider/src/composables/use-slider-button.mjs.map +1 -1
  325. package/es/components/slider/src/marker.mjs +1 -1
  326. package/es/components/slider/src/marker.mjs.map +1 -1
  327. package/es/components/steps/src/item2.mjs +1 -1
  328. package/es/components/steps/src/item2.mjs.map +1 -1
  329. package/es/components/table/index.d.ts +23 -33
  330. package/es/components/table/src/table/defaults.d.ts +2 -2
  331. package/es/components/table/src/table/defaults.mjs.map +1 -1
  332. package/es/components/table/src/table/style-helper.d.ts +21 -31
  333. package/es/components/table/src/table/style-helper.mjs +68 -95
  334. package/es/components/table/src/table/style-helper.mjs.map +1 -1
  335. package/es/components/table/src/table-header/event-helper.mjs +5 -9
  336. package/es/components/table/src/table-header/event-helper.mjs.map +1 -1
  337. package/es/components/table/src/table-layout.d.ts +1 -5
  338. package/es/components/table/src/table-layout.mjs +3 -52
  339. package/es/components/table/src/table-layout.mjs.map +1 -1
  340. package/es/components/table/src/table.mjs +29 -34
  341. package/es/components/table/src/table.mjs.map +1 -1
  342. package/es/components/table/src/table.vue.d.ts +23 -33
  343. package/es/components/table/src/util.d.ts +1 -1
  344. package/es/components/table/src/util.mjs +8 -19
  345. package/es/components/table/src/util.mjs.map +1 -1
  346. package/es/components/table-v2/index.d.ts +1 -1
  347. package/es/components/table-v2/src/components/header.d.ts +1 -1
  348. package/es/components/table-v2/src/table-grid.d.ts +1 -1
  349. package/es/components/table-v2/src/table-v2.d.ts +1 -1
  350. package/es/components/tabs/src/tab-nav.mjs +5 -4
  351. package/es/components/tabs/src/tab-nav.mjs.map +1 -1
  352. package/es/components/time-picker/src/common/picker.mjs +0 -1
  353. package/es/components/time-picker/src/common/picker.mjs.map +1 -1
  354. package/es/components/time-picker/src/time-picker-com/basic-time-spinner.mjs +3 -3
  355. package/es/components/tooltip/src/tooltip2.mjs +2 -2
  356. package/es/components/tooltip/src/tooltip2.mjs.map +1 -1
  357. package/es/components/transfer/index.d.ts +3 -15
  358. package/es/components/transfer/src/transfer.d.ts +2 -1
  359. package/es/components/transfer/src/transfer.mjs.map +1 -1
  360. package/es/components/transfer/src/transfer.vue.d.ts +3 -16
  361. package/es/components/tree/src/model/useDragNode.mjs.map +1 -1
  362. package/es/components/tree/src/tree.type.d.ts +3 -2
  363. package/es/components/upload/src/use-handlers.mjs +1 -1
  364. package/es/components/upload/src/use-handlers.mjs.map +1 -1
  365. package/es/components/virtual-list/src/components/dynamic-size-grid.mjs +1 -1
  366. package/es/components/virtual-list/src/components/dynamic-size-grid.mjs.map +1 -1
  367. package/es/directives/click-outside/index.mjs.map +1 -1
  368. package/es/directives/index.d.ts +0 -1
  369. package/es/directives/index.mjs +0 -1
  370. package/es/directives/index.mjs.map +1 -1
  371. package/es/directives/repeat-click/index.d.ts +2 -2
  372. package/es/directives/repeat-click/index.mjs +13 -13
  373. package/es/directives/repeat-click/index.mjs.map +1 -1
  374. package/es/directives/trap-focus/index.d.ts +1 -1
  375. package/es/directives/trap-focus/index.mjs +2 -3
  376. package/es/directives/trap-focus/index.mjs.map +1 -1
  377. package/es/hooks/use-floating/index.d.ts +1 -1
  378. package/es/hooks/use-floating/index.mjs.map +1 -1
  379. package/es/hooks/use-model-toggle/index.d.ts +2 -0
  380. package/es/hooks/use-model-toggle/index.mjs +2 -1
  381. package/es/hooks/use-model-toggle/index.mjs.map +1 -1
  382. package/es/index.mjs +2 -2
  383. package/es/locale/lang/ko.d.ts +25 -0
  384. package/es/locale/lang/ko.mjs +28 -3
  385. package/es/locale/lang/ko.mjs.map +1 -1
  386. package/es/utils/dom/aria.d.ts +2 -3
  387. package/es/utils/dom/aria.mjs.map +1 -1
  388. package/es/version.d.ts +1 -1
  389. package/es/version.mjs +1 -1
  390. package/es/version.mjs.map +1 -1
  391. package/lib/components/backtop/index.js +2 -2
  392. package/lib/components/backtop/src/backtop.js +100 -22
  393. package/lib/components/backtop/src/backtop.js.map +1 -1
  394. package/lib/components/backtop/src/backtop2.js +22 -100
  395. package/lib/components/backtop/src/backtop2.js.map +1 -1
  396. package/lib/components/cascader/src/index.js +10 -9
  397. package/lib/components/cascader/src/index.js.map +1 -1
  398. package/lib/components/color-picker/index.d.ts +216 -0
  399. package/lib/components/color-picker/src/components/alpha-slider.js +10 -6
  400. package/lib/components/color-picker/src/components/alpha-slider.js.map +1 -1
  401. package/lib/components/color-picker/src/components/alpha-slider.vue.d.ts +18 -0
  402. package/lib/components/color-picker/src/components/hue-slider.js +10 -6
  403. package/lib/components/color-picker/src/components/hue-slider.js.map +1 -1
  404. package/lib/components/color-picker/src/components/hue-slider.vue.d.ts +18 -0
  405. package/lib/components/color-picker/src/components/predefine.js +20 -10
  406. package/lib/components/color-picker/src/components/predefine.js.map +1 -1
  407. package/lib/components/color-picker/src/components/predefine.vue.d.ts +18 -0
  408. package/lib/components/color-picker/src/components/sv-panel.js +18 -12
  409. package/lib/components/color-picker/src/components/sv-panel.js.map +1 -1
  410. package/lib/components/color-picker/src/components/sv-panel.vue.d.ts +18 -0
  411. package/lib/components/color-picker/src/index.vue.d.ts +108 -0
  412. package/lib/components/date-picker/src/date-picker-com/basic-date-table.js +21 -8
  413. package/lib/components/date-picker/src/date-picker-com/basic-date-table.js.map +1 -1
  414. package/lib/components/date-picker/src/date-picker-com/basic-date-table.vue.d.ts +5 -2
  415. package/lib/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +5 -2
  416. package/lib/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +5 -2
  417. package/lib/components/date-picker/src/panel-utils.d.ts +10 -4
  418. package/lib/components/descriptions/index.d.ts +82 -54
  419. package/lib/components/descriptions/index.js +4 -2
  420. package/lib/components/descriptions/index.js.map +1 -1
  421. package/lib/components/descriptions/src/description.d.ts +15 -0
  422. package/lib/components/descriptions/src/description.js +36 -0
  423. package/lib/components/descriptions/src/description.js.map +1 -0
  424. package/lib/components/descriptions/src/description.vue.d.ts +106 -0
  425. package/lib/components/descriptions/src/description2.js +131 -0
  426. package/lib/components/descriptions/src/description2.js.map +1 -0
  427. package/lib/components/descriptions/src/descriptions-cell.js +3 -3
  428. package/lib/components/descriptions/src/descriptions-cell.js.map +1 -1
  429. package/lib/components/descriptions/src/descriptions-row.d.ts +3 -0
  430. package/lib/components/descriptions/src/descriptions-row.js +7 -71
  431. package/lib/components/descriptions/src/descriptions-row.js.map +1 -1
  432. package/lib/components/descriptions/src/descriptions-row.vue.d.ts +28 -7
  433. package/lib/components/descriptions/src/descriptions-row2.js +73 -0
  434. package/lib/components/descriptions/src/descriptions-row2.js.map +1 -0
  435. package/lib/components/descriptions/src/token.d.ts +1 -1
  436. package/lib/components/descriptions/src/token.js +2 -2
  437. package/lib/components/descriptions/src/token.js.map +1 -1
  438. package/lib/components/dialog/src/use-dialog.js.map +1 -1
  439. package/lib/components/form/src/form-item2.js +1 -1
  440. package/lib/components/form/src/form-item2.js.map +1 -1
  441. package/lib/components/index.js +3 -1
  442. package/lib/components/index.js.map +1 -1
  443. package/lib/components/menu/src/menu.js +17 -9
  444. package/lib/components/menu/src/menu.js.map +1 -1
  445. package/lib/components/message/src/method.js +3 -1
  446. package/lib/components/message/src/method.js.map +1 -1
  447. package/lib/components/message/style/css.d.ts +1 -0
  448. package/lib/components/message/style/css.js +1 -0
  449. package/lib/components/message/style/css.js.map +1 -1
  450. package/lib/components/message/style/index.d.ts +1 -0
  451. package/lib/components/message/style/index.js +1 -0
  452. package/lib/components/message/style/index.js.map +1 -1
  453. package/lib/components/popconfirm/index.d.ts +0 -1
  454. package/lib/components/popconfirm/src/popconfirm.vue.d.ts +0 -1
  455. package/lib/components/popconfirm/src/popconfirm2.js +2 -5
  456. package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
  457. package/lib/components/popover/index.d.ts +20 -0
  458. package/lib/components/popover/src/popover.d.ts +11 -5
  459. package/lib/components/popover/src/popover.js +3 -0
  460. package/lib/components/popover/src/popover.js.map +1 -1
  461. package/lib/components/popover/src/popover.vue.d.ts +20 -0
  462. package/lib/components/popover/src/popover2.js +6 -1
  463. package/lib/components/popover/src/popover2.js.map +1 -1
  464. package/lib/components/popper/src/content2.js +4 -4
  465. package/lib/components/popper/src/content2.js.map +1 -1
  466. package/lib/components/rate/src/rate2.js +2 -1
  467. package/lib/components/rate/src/rate2.js.map +1 -1
  468. package/lib/components/scrollbar/src/scrollbar2.js +3 -1
  469. package/lib/components/scrollbar/src/scrollbar2.js.map +1 -1
  470. package/lib/components/select/src/option.js +4 -4
  471. package/lib/components/select/src/option.js.map +1 -1
  472. package/lib/components/select/src/select.js +2 -2
  473. package/lib/components/select/src/select.js.map +1 -1
  474. package/lib/components/select/src/useSelect.js +0 -2
  475. package/lib/components/select/src/useSelect.js.map +1 -1
  476. package/lib/components/select-v2/src/useSelect.js +2 -1
  477. package/lib/components/select-v2/src/useSelect.js.map +1 -1
  478. package/lib/components/slider/src/composables/use-slider-button.js +3 -1
  479. package/lib/components/slider/src/composables/use-slider-button.js.map +1 -1
  480. package/lib/components/slider/src/marker.js +1 -1
  481. package/lib/components/slider/src/marker.js.map +1 -1
  482. package/lib/components/steps/src/item2.js +1 -1
  483. package/lib/components/steps/src/item2.js.map +1 -1
  484. package/lib/components/table/index.d.ts +23 -33
  485. package/lib/components/table/src/table/defaults.d.ts +2 -2
  486. package/lib/components/table/src/table/defaults.js.map +1 -1
  487. package/lib/components/table/src/table/style-helper.d.ts +21 -31
  488. package/lib/components/table/src/table/style-helper.js +67 -94
  489. package/lib/components/table/src/table/style-helper.js.map +1 -1
  490. package/lib/components/table/src/table-header/event-helper.js +5 -9
  491. package/lib/components/table/src/table-header/event-helper.js.map +1 -1
  492. package/lib/components/table/src/table-layout.d.ts +1 -5
  493. package/lib/components/table/src/table-layout.js +3 -52
  494. package/lib/components/table/src/table-layout.js.map +1 -1
  495. package/lib/components/table/src/table.js +29 -34
  496. package/lib/components/table/src/table.js.map +1 -1
  497. package/lib/components/table/src/table.vue.d.ts +23 -33
  498. package/lib/components/table/src/util.d.ts +1 -1
  499. package/lib/components/table/src/util.js +8 -19
  500. package/lib/components/table/src/util.js.map +1 -1
  501. package/lib/components/table-v2/index.d.ts +1 -1
  502. package/lib/components/table-v2/src/components/header.d.ts +1 -1
  503. package/lib/components/table-v2/src/table-grid.d.ts +1 -1
  504. package/lib/components/table-v2/src/table-v2.d.ts +1 -1
  505. package/lib/components/tabs/src/tab-nav.js +5 -4
  506. package/lib/components/tabs/src/tab-nav.js.map +1 -1
  507. package/lib/components/time-picker/src/common/picker.js +0 -1
  508. package/lib/components/time-picker/src/common/picker.js.map +1 -1
  509. package/lib/components/tooltip/src/tooltip2.js +2 -2
  510. package/lib/components/tooltip/src/tooltip2.js.map +1 -1
  511. package/lib/components/transfer/index.d.ts +3 -15
  512. package/lib/components/transfer/src/transfer.d.ts +2 -1
  513. package/lib/components/transfer/src/transfer.js.map +1 -1
  514. package/lib/components/transfer/src/transfer.vue.d.ts +3 -16
  515. package/lib/components/tree/src/model/useDragNode.js.map +1 -1
  516. package/lib/components/tree/src/tree.type.d.ts +3 -2
  517. package/lib/components/upload/src/use-handlers.js +1 -1
  518. package/lib/components/upload/src/use-handlers.js.map +1 -1
  519. package/lib/components/virtual-list/src/components/dynamic-size-grid.js +1 -1
  520. package/lib/components/virtual-list/src/components/dynamic-size-grid.js.map +1 -1
  521. package/lib/directives/click-outside/index.js.map +1 -1
  522. package/lib/directives/index.d.ts +0 -1
  523. package/lib/directives/index.js +0 -2
  524. package/lib/directives/index.js.map +1 -1
  525. package/lib/directives/repeat-click/index.d.ts +2 -2
  526. package/lib/directives/repeat-click/index.js +13 -13
  527. package/lib/directives/repeat-click/index.js.map +1 -1
  528. package/lib/directives/trap-focus/index.d.ts +1 -1
  529. package/lib/directives/trap-focus/index.js +2 -3
  530. package/lib/directives/trap-focus/index.js.map +1 -1
  531. package/lib/hooks/use-floating/index.d.ts +1 -1
  532. package/lib/hooks/use-floating/index.js.map +1 -1
  533. package/lib/hooks/use-model-toggle/index.d.ts +2 -0
  534. package/lib/hooks/use-model-toggle/index.js +2 -1
  535. package/lib/hooks/use-model-toggle/index.js.map +1 -1
  536. package/lib/index.js +82 -82
  537. package/lib/locale/lang/ko.d.ts +25 -0
  538. package/lib/locale/lang/ko.js +28 -3
  539. package/lib/locale/lang/ko.js.map +1 -1
  540. package/lib/utils/dom/aria.d.ts +2 -3
  541. package/lib/utils/dom/aria.js.map +1 -1
  542. package/lib/version.d.ts +1 -1
  543. package/lib/version.js +1 -1
  544. package/lib/version.js.map +1 -1
  545. package/package.json +2 -2
  546. package/tags.json +1 -1
  547. package/theme-chalk/el-message-box.css +1 -1
  548. package/theme-chalk/el-message.css +1 -1
  549. package/theme-chalk/el-select-dropdown-v2.css +1 -1
  550. package/theme-chalk/el-select-dropdown.css +1 -1
  551. package/theme-chalk/el-select-v2.css +1 -1
  552. package/theme-chalk/el-select.css +1 -1
  553. package/theme-chalk/el-slider.css +1 -1
  554. package/theme-chalk/el-table.css +1 -1
  555. package/theme-chalk/el-tabs.css +1 -1
  556. package/theme-chalk/index.css +1 -1
  557. package/theme-chalk/src/common/var.scss +1 -1
  558. package/theme-chalk/src/message-box.scss +3 -1
  559. package/theme-chalk/src/message.scss +2 -1
  560. package/theme-chalk/src/select-dropdown-v2.scss +3 -3
  561. package/theme-chalk/src/select-dropdown.scss +2 -2
  562. package/theme-chalk/src/slider.scss +2 -0
  563. package/theme-chalk/src/table.scss +7 -1
  564. package/theme-chalk/src/tabs.scss +1 -1
  565. package/web-types.json +1 -1
  566. package/es/components/descriptions/src/index.mjs +0 -160
  567. package/es/components/descriptions/src/index.mjs.map +0 -1
  568. package/es/components/descriptions/src/index.vue.d.ts +0 -80
  569. package/es/directives/resize/index.d.ts +0 -3
  570. package/es/directives/resize/index.mjs +0 -18
  571. package/es/directives/resize/index.mjs.map +0 -1
  572. package/lib/components/descriptions/src/index.js +0 -164
  573. package/lib/components/descriptions/src/index.js.map +0 -1
  574. package/lib/components/descriptions/src/index.vue.d.ts +0 -80
  575. package/lib/directives/resize/index.d.ts +0 -3
  576. package/lib/directives/resize/index.js +0 -22
  577. package/lib/directives/resize/index.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../packages/components/descriptions/index.ts"],"sourcesContent":["import { withInstall, withNoopInstall } from '@element-plus/utils'\n\nimport Descriptions from './src/index.vue'\nimport DescriptionsItem from './src/description-item'\n\nexport const ElDescriptions = withInstall(Descriptions, {\n DescriptionsItem,\n})\nexport default ElDescriptions\n\nexport const ElDescriptionsItem = withNoopInstall(DescriptionsItem)\n"],"names":["withInstall","Descriptions","DescriptionsItem","withNoopInstall"],"mappings":";;;;;;;;;AAGY,MAAC,cAAc,GAAGA,mBAAW,CAACC,gBAAY,EAAE;AACxD,oBAAEC,0BAAgB;AAClB,CAAC,EAAE;AAES,MAAC,kBAAkB,GAAGC,uBAAe,CAACD,0BAAgB;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../../packages/components/descriptions/index.ts"],"sourcesContent":["import { withInstall, withNoopInstall } from '@element-plus/utils'\n\nimport Descriptions from './src/description.vue'\nimport DescriptionsItem from './src/description-item'\n\nexport const ElDescriptions = withInstall(Descriptions, {\n DescriptionsItem,\n})\n\nexport const ElDescriptionsItem = withNoopInstall(DescriptionsItem)\n\nexport default ElDescriptions\n\nexport * from './src/description'\n"],"names":["withInstall","Descriptions","DescriptionsItem","withNoopInstall"],"mappings":";;;;;;;;;;AAGY,MAAC,cAAc,GAAGA,mBAAW,CAACC,wBAAY,EAAE;AACxD,oBAAEC,0BAAgB;AAClB,CAAC,EAAE;AACS,MAAC,kBAAkB,GAAGC,uBAAe,CAACD,0BAAgB;;;;;;;"}
@@ -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,36 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ require('../../../utils/index.js');
6
+ require('../../../hooks/index.js');
7
+ var runtime = require('../../../utils/vue/props/runtime.js');
8
+ var index = require('../../../hooks/use-common-props/index.js');
9
+
10
+ const descriptionProps = runtime.buildProps({
11
+ border: {
12
+ type: Boolean,
13
+ default: false
14
+ },
15
+ column: {
16
+ type: Number,
17
+ default: 3
18
+ },
19
+ direction: {
20
+ type: String,
21
+ values: ["horizontal", "vertical"],
22
+ default: "horizontal"
23
+ },
24
+ size: index.useSizeProp,
25
+ title: {
26
+ type: String,
27
+ default: ""
28
+ },
29
+ extra: {
30
+ type: String,
31
+ default: ""
32
+ }
33
+ });
34
+
35
+ exports.descriptionProps = descriptionProps;
36
+ //# sourceMappingURL=description.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"description.js","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":["buildProps","useSizeProp"],"mappings":";;;;;;;;;AAEY,MAAC,gBAAgB,GAAGA,kBAAU,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,EAAEC,iBAAW;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,131 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var vue = require('vue');
6
+ require('../../../hooks/index.js');
7
+ var descriptionsRow = require('./descriptions-row2.js');
8
+ var token = require('./token.js');
9
+ var description = require('./description.js');
10
+ var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
11
+ var index = require('../../../hooks/use-namespace/index.js');
12
+ var index$1 = require('../../../hooks/use-common-props/index.js');
13
+
14
+ const __default__ = {
15
+ name: "ElDescriptions"
16
+ };
17
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
18
+ ...__default__,
19
+ props: description.descriptionProps,
20
+ setup(__props) {
21
+ const props = __props;
22
+ const ns = index.useNamespace("descriptions");
23
+ const descriptionsSize = index$1.useSize();
24
+ const slots = vue.useSlots();
25
+ vue.provide(token.descriptionsKey, props);
26
+ const descriptionKls = vue.computed(() => [ns.b(), ns.m(descriptionsSize.value)]);
27
+ const flattedChildren = (children) => {
28
+ const temp = Array.isArray(children) ? children : [children];
29
+ const res = [];
30
+ temp.forEach((child) => {
31
+ if (Array.isArray(child.children)) {
32
+ res.push(...flattedChildren(child.children));
33
+ } else {
34
+ res.push(child);
35
+ }
36
+ });
37
+ return res;
38
+ };
39
+ const filledNode = (node, span, count, isLast = false) => {
40
+ if (!node.props) {
41
+ node.props = {};
42
+ }
43
+ if (span > count) {
44
+ node.props.span = count;
45
+ }
46
+ if (isLast) {
47
+ node.props.span = span;
48
+ }
49
+ return node;
50
+ };
51
+ const getRows = () => {
52
+ var _a;
53
+ const children = flattedChildren((_a = slots.default) == null ? void 0 : _a.call(slots)).filter((node) => {
54
+ var _a2;
55
+ return ((_a2 = node == null ? void 0 : node.type) == null ? void 0 : _a2.name) === "ElDescriptionsItem";
56
+ });
57
+ const rows = [];
58
+ let temp = [];
59
+ let count = props.column;
60
+ let totalSpan = 0;
61
+ children.forEach((node, index) => {
62
+ var _a2;
63
+ const span = ((_a2 = node.props) == null ? void 0 : _a2.span) || 1;
64
+ if (index < children.length - 1) {
65
+ totalSpan += span > count ? count : span;
66
+ }
67
+ if (index === children.length - 1) {
68
+ const lastSpan = props.column - totalSpan % props.column;
69
+ temp.push(filledNode(node, lastSpan, count, true));
70
+ rows.push(temp);
71
+ return;
72
+ }
73
+ if (span < count) {
74
+ count -= span;
75
+ temp.push(node);
76
+ } else {
77
+ temp.push(filledNode(node, span, count));
78
+ rows.push(temp);
79
+ count = props.column;
80
+ temp = [];
81
+ }
82
+ });
83
+ return rows;
84
+ };
85
+ return (_ctx, _cache) => {
86
+ return vue.openBlock(), vue.createElementBlock("div", {
87
+ class: vue.normalizeClass(vue.unref(descriptionKls))
88
+ }, [
89
+ _ctx.title || _ctx.extra || _ctx.$slots.title || _ctx.$slots.extra ? (vue.openBlock(), vue.createElementBlock("div", {
90
+ key: 0,
91
+ class: vue.normalizeClass(vue.unref(ns).e("header"))
92
+ }, [
93
+ vue.createElementVNode("div", {
94
+ class: vue.normalizeClass(vue.unref(ns).e("title"))
95
+ }, [
96
+ vue.renderSlot(_ctx.$slots, "title", {}, () => [
97
+ vue.createTextVNode(vue.toDisplayString(_ctx.title), 1)
98
+ ])
99
+ ], 2),
100
+ vue.createElementVNode("div", {
101
+ class: vue.normalizeClass(vue.unref(ns).e("extra"))
102
+ }, [
103
+ vue.renderSlot(_ctx.$slots, "extra", {}, () => [
104
+ vue.createTextVNode(vue.toDisplayString(_ctx.extra), 1)
105
+ ])
106
+ ], 2)
107
+ ], 2)) : vue.createCommentVNode("v-if", true),
108
+ vue.createElementVNode("div", {
109
+ class: vue.normalizeClass(vue.unref(ns).e("body"))
110
+ }, [
111
+ vue.createElementVNode("table", {
112
+ class: vue.normalizeClass([vue.unref(ns).e("table"), vue.unref(ns).is("bordered", _ctx.border)])
113
+ }, [
114
+ vue.createElementVNode("tbody", null, [
115
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(getRows(), (row, index) => {
116
+ return vue.openBlock(), vue.createBlock(descriptionsRow["default"], {
117
+ key: index,
118
+ row
119
+ }, null, 8, ["row"]);
120
+ }), 128))
121
+ ])
122
+ ], 2)
123
+ ], 2)
124
+ ], 2);
125
+ };
126
+ }
127
+ });
128
+ var Descriptions = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/description.vue"]]);
129
+
130
+ exports["default"] = Descriptions;
131
+ //# sourceMappingURL=description2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"description2.js","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":["useNamespace","useSize","useSlots","provide","descriptionsKey","computed"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAwCA,IAAA,MAAA,EAAA,GAAAA,mBAAA,cAAA,CAAA,CAAA;AAEA,IAAA,MAAA,mBAAAC,eAAA,EAA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A,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -10,7 +10,7 @@ var vnode = require('../../../utils/vue/vnode.js');
10
10
  var style = require('../../../utils/dom/style.js');
11
11
  var index = require('../../../hooks/use-namespace/index.js');
12
12
 
13
- var DescriptionsCell = vue.defineComponent({
13
+ var ElDescriptionsCell = vue.defineComponent({
14
14
  name: "ElDescriptionsCell",
15
15
  props: {
16
16
  cell: {
@@ -24,7 +24,7 @@ var DescriptionsCell = vue.defineComponent({
24
24
  }
25
25
  },
26
26
  setup() {
27
- const descriptions = vue.inject(token.elDescriptionsKey, {});
27
+ const descriptions = vue.inject(token.descriptionsKey, {});
28
28
  return {
29
29
  descriptions
30
30
  };
@@ -90,5 +90,5 @@ var DescriptionsCell = vue.defineComponent({
90
90
  }
91
91
  });
92
92
 
93
- exports["default"] = DescriptionsCell;
93
+ exports["default"] = ElDescriptionsCell;
94
94
  //# sourceMappingURL=descriptions-cell.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"descriptions-cell.js","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})\n"],"names":["defineComponent","inject","elDescriptionsKey","getNormalizedProps","style","addUnit","useNamespace","h"],"mappings":";;;;;;;;;;;;AAIA,uBAAeA,mBAAe,CAAC;AAC/B,EAAE,IAAI,EAAE,oBAAoB;AAC5B,E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KAAK,CAAC,CAAC;AAClB,MAAM,KAAK,SAAS;AACpB,QAAQ,OAAOG,KAAC,CAAC,IAAI,CAAC,GAAG,EAAE;AAC3B,iBAAUH,OAAK;AACf,UAAU,KAAK,EAAE;AACjB,YAAY,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC;AACxB,YAAY,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;AAC3B,YAAY,EAAE,CAAC,EAAE,CAAC,kBAAkB,EAAE,MAAM,CAAC;AAC7C,YAAY,EAAE,CAAC,EAAE,CAAC,kBAAkB,EAAE,UAAU,CAAC;AACjD,YAAY,KAAK;AACjB,YAAY,SAAS;AACrB,WAAW;AACX,UAAU,OAAO,EAAE,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC;AACnD,SAAS,EAAE,OAAO,CAAC,CAAC;AACpB,MAAM;AACN,QAAQ,OAAOG,KAAC,CAAC,IAAI,EAAE;AACvB,iBAAUH,OAAK;AACf,UAAU,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,CAAC;AACtC,UAAU,OAAO,EAAE,IAAI;AACvB,SAAS,EAAE;AACX,UAAUG,KAAC,CAAC,MAAM,EAAE;AACpB,YAAY,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,cAAc,CAAC;AAClD,WAAW,EAAE,KAAK,CAAC;AACnB,UAAUA,KAAC,CAAC,MAAM,EAAE;AACpB,YAAY,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE,SAAS,CAAC;AAC/C,WAAW,EAAE,OAAO,CAAC;AACrB,SAAS,CAAC,CAAC;AACX,KAAK;AACL,GAAG;AACH,CAAC,CAAC;;;;"}
1
+ {"version":3,"file":"descriptions-cell.js","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 { 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"],"names":["defineComponent","inject","descriptionsKey","getNormalizedProps","style","addUnit","useNamespace","h"],"mappings":";;;;;;;;;;;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import("element-plus/es/utils").EpPropFinalized<ArrayConstructor, unknown, unknown, () => never[], boolean>;
3
+ };
@@ -2,79 +2,15 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var vue = require('vue');
6
- var descriptionsCell = require('./descriptions-cell.js');
7
- var token = require('./token.js');
8
- var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
5
+ require('../../../utils/index.js');
6
+ var runtime = require('../../../utils/vue/props/runtime.js');
9
7
 
10
- const _sfc_main = vue.defineComponent({
11
- name: "ElDescriptionsRow",
12
- components: {
13
- [descriptionsCell["default"].name]: descriptionsCell["default"]
14
- },
15
- props: {
16
- row: {
17
- type: Array
18
- }
19
- },
20
- setup() {
21
- const descriptions = vue.inject(token.elDescriptionsKey, {});
22
- return {
23
- descriptions
24
- };
8
+ const descriptionsRowProps = runtime.buildProps({
9
+ row: {
10
+ type: Array,
11
+ default: () => []
25
12
  }
26
13
  });
27
- const _hoisted_1 = { key: 1 };
28
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
29
- const _component_el_descriptions_cell = vue.resolveComponent("el-descriptions-cell");
30
- return _ctx.descriptions.direction === "vertical" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
31
- vue.createElementVNode("tr", null, [
32
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.row, (cell, index) => {
33
- return vue.openBlock(), vue.createBlock(_component_el_descriptions_cell, {
34
- key: `tr1-${index}`,
35
- cell,
36
- tag: "th",
37
- type: "label"
38
- }, null, 8, ["cell"]);
39
- }), 128))
40
- ]),
41
- vue.createElementVNode("tr", null, [
42
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.row, (cell, index) => {
43
- return vue.openBlock(), vue.createBlock(_component_el_descriptions_cell, {
44
- key: `tr2-${index}`,
45
- cell,
46
- tag: "td",
47
- type: "content"
48
- }, null, 8, ["cell"]);
49
- }), 128))
50
- ])
51
- ], 64)) : (vue.openBlock(), vue.createElementBlock("tr", _hoisted_1, [
52
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.row, (cell, index) => {
53
- return vue.openBlock(), vue.createElementBlock(vue.Fragment, {
54
- key: `tr3-${index}`
55
- }, [
56
- _ctx.descriptions.border ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
57
- vue.createVNode(_component_el_descriptions_cell, {
58
- cell,
59
- tag: "td",
60
- type: "label"
61
- }, null, 8, ["cell"]),
62
- vue.createVNode(_component_el_descriptions_cell, {
63
- cell,
64
- tag: "td",
65
- type: "content"
66
- }, null, 8, ["cell"])
67
- ], 64)) : (vue.openBlock(), vue.createBlock(_component_el_descriptions_cell, {
68
- key: 1,
69
- cell,
70
- tag: "td",
71
- type: "both"
72
- }, null, 8, ["cell"]))
73
- ], 64);
74
- }), 128))
75
- ]));
76
- }
77
- var DescriptionsRow = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/descriptions-row.vue"]]);
78
14
 
79
- exports["default"] = DescriptionsRow;
15
+ exports.descriptionsRowProps = descriptionsRowProps;
80
16
  //# sourceMappingURL=descriptions-row.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"descriptions-row.js","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":["defineComponent","DescriptionsCell","inject","elDescriptionsKey","_createElementBlock","_Fragment","_createElementVNode","_openBlock","_renderList","_createBlock","_createVNode"],"mappings":";;;;;;;;;AAgCA,MAAK,YAAaA,mBAAa,CAAA;AAAA,EAC7B,IAAM,EAAA,mBAAA;AAAA,EACN,UAAY,EAAA;AAAA,IACV,CAACC,4BAAiB,IAAO,GAAAA,2BAAA;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,GAAAC,UAAA,CAAOC,uBAAmB,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,+BAAtCC,sBAWW,CAAAC,YAAA,EAAA,EAAA,GAAA,EAAA,CAAA,EAAA,EAAA;AAAA,IAVTC,sBAIK,CAAA,IAAA,EAAA,IAAA,EAAA;AAAA,OAAAC,aAAA,CAAA,IAAA,C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,YAApC,IAAA;AAAA,YAAY,GAAI,EAAA,IAAA;AAAA,YAAK,IAAK,EAAA,OAAA;AAAA,WAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,MAAA,CAAA,CAAA;UACjDA,eAA6D,CAAA,+BAAA,EAAA;AAAA,YAAtC,IAAA;AAAA,YAAY,GAAI,EAAA,IAAA;AAAA,YAAK,IAAK,EAAA,SAAA;AAAA,WAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,MAAA,CAAA,CAAA;oCAEnDD,eAAiE,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.js","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":["buildProps"],"mappings":";;;;;;;AACY,MAAC,oBAAoB,GAAGA,kBAAU,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,73 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var vue = require('vue');
6
+ var descriptionsCell = require('./descriptions-cell.js');
7
+ var token = require('./token.js');
8
+ var descriptionsRow = require('./descriptions-row.js');
9
+ var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
10
+
11
+ const _hoisted_1 = { key: 1 };
12
+ const __default__ = {
13
+ name: "ElDescriptionsRow"
14
+ };
15
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
16
+ ...__default__,
17
+ props: descriptionsRow.descriptionsRowProps,
18
+ setup(__props) {
19
+ const descriptions = vue.inject(token.descriptionsKey, {});
20
+ return (_ctx, _cache) => {
21
+ return vue.unref(descriptions).direction === "vertical" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
22
+ vue.createElementVNode("tr", null, [
23
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.row, (cell, index) => {
24
+ return vue.openBlock(), vue.createBlock(vue.unref(descriptionsCell["default"]), {
25
+ key: `tr1-${index}`,
26
+ cell,
27
+ tag: "th",
28
+ type: "label"
29
+ }, null, 8, ["cell"]);
30
+ }), 128))
31
+ ]),
32
+ vue.createElementVNode("tr", null, [
33
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.row, (cell, index) => {
34
+ return vue.openBlock(), vue.createBlock(vue.unref(descriptionsCell["default"]), {
35
+ key: `tr2-${index}`,
36
+ cell,
37
+ tag: "td",
38
+ type: "content"
39
+ }, null, 8, ["cell"]);
40
+ }), 128))
41
+ ])
42
+ ], 64)) : (vue.openBlock(), vue.createElementBlock("tr", _hoisted_1, [
43
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.row, (cell, index) => {
44
+ return vue.openBlock(), vue.createElementBlock(vue.Fragment, {
45
+ key: `tr3-${index}`
46
+ }, [
47
+ vue.unref(descriptions).border ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
48
+ vue.createVNode(vue.unref(descriptionsCell["default"]), {
49
+ cell,
50
+ tag: "td",
51
+ type: "label"
52
+ }, null, 8, ["cell"]),
53
+ vue.createVNode(vue.unref(descriptionsCell["default"]), {
54
+ cell,
55
+ tag: "td",
56
+ type: "content"
57
+ }, null, 8, ["cell"])
58
+ ], 64)) : (vue.openBlock(), vue.createBlock(vue.unref(descriptionsCell["default"]), {
59
+ key: 1,
60
+ cell,
61
+ tag: "td",
62
+ type: "both"
63
+ }, null, 8, ["cell"]))
64
+ ], 64);
65
+ }), 128))
66
+ ]));
67
+ };
68
+ }
69
+ });
70
+ var ElDescriptionsRow = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/descriptions-row.vue"]]);
71
+
72
+ exports["default"] = ElDescriptionsRow;
73
+ //# sourceMappingURL=descriptions-row2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"descriptions-row2.js","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":["inject","descriptionsKey"],"mappings":";;;;;;;;;;;;;;;;;;AAwCA,IAAA,MAAA,YAAA,GAAAA,UAAA,CAAAC,qBAAA,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>;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const elDescriptionsKey = "elDescriptions";
5
+ const descriptionsKey = "elDescriptions";
6
6
 
7
- exports.elDescriptionsKey = elDescriptionsKey;
7
+ exports.descriptionsKey = descriptionsKey;
8
8
  //# sourceMappingURL=token.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"token.js","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.js","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;;;;"}