@element-plus/nightly 0.0.20220718 → 0.0.20220719

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 (306) hide show
  1. package/dist/index.full.js +255 -262
  2. package/dist/index.full.min.js +12 -12
  3. package/dist/index.full.min.js.map +1 -1
  4. package/dist/index.full.min.mjs +14 -14
  5. package/dist/index.full.min.mjs.map +1 -1
  6. package/dist/index.full.mjs +255 -263
  7. package/dist/locale/af.js +1 -1
  8. package/dist/locale/af.min.js +1 -1
  9. package/dist/locale/af.min.mjs +1 -1
  10. package/dist/locale/af.mjs +1 -1
  11. package/dist/locale/ar.js +1 -1
  12. package/dist/locale/ar.min.js +1 -1
  13. package/dist/locale/ar.min.mjs +1 -1
  14. package/dist/locale/ar.mjs +1 -1
  15. package/dist/locale/az.js +1 -1
  16. package/dist/locale/az.min.js +1 -1
  17. package/dist/locale/az.min.mjs +1 -1
  18. package/dist/locale/az.mjs +1 -1
  19. package/dist/locale/bg.js +1 -1
  20. package/dist/locale/bg.min.js +1 -1
  21. package/dist/locale/bg.min.mjs +1 -1
  22. package/dist/locale/bg.mjs +1 -1
  23. package/dist/locale/bn.js +1 -1
  24. package/dist/locale/bn.min.js +1 -1
  25. package/dist/locale/bn.min.mjs +1 -1
  26. package/dist/locale/bn.mjs +1 -1
  27. package/dist/locale/ca.js +1 -1
  28. package/dist/locale/ca.min.js +1 -1
  29. package/dist/locale/ca.min.mjs +1 -1
  30. package/dist/locale/ca.mjs +1 -1
  31. package/dist/locale/cs.js +1 -1
  32. package/dist/locale/cs.min.js +1 -1
  33. package/dist/locale/cs.min.mjs +1 -1
  34. package/dist/locale/cs.mjs +1 -1
  35. package/dist/locale/da.js +1 -1
  36. package/dist/locale/da.min.js +1 -1
  37. package/dist/locale/da.min.mjs +1 -1
  38. package/dist/locale/da.mjs +1 -1
  39. package/dist/locale/de.js +1 -1
  40. package/dist/locale/de.min.js +1 -1
  41. package/dist/locale/de.min.mjs +1 -1
  42. package/dist/locale/de.mjs +1 -1
  43. package/dist/locale/el.js +1 -1
  44. package/dist/locale/el.min.js +1 -1
  45. package/dist/locale/el.min.mjs +1 -1
  46. package/dist/locale/el.mjs +1 -1
  47. package/dist/locale/en.js +1 -1
  48. package/dist/locale/en.min.js +1 -1
  49. package/dist/locale/en.min.mjs +1 -1
  50. package/dist/locale/en.mjs +1 -1
  51. package/dist/locale/eo.js +1 -1
  52. package/dist/locale/eo.min.js +1 -1
  53. package/dist/locale/eo.min.mjs +1 -1
  54. package/dist/locale/eo.mjs +1 -1
  55. package/dist/locale/es.js +1 -1
  56. package/dist/locale/es.min.js +1 -1
  57. package/dist/locale/es.min.mjs +1 -1
  58. package/dist/locale/es.mjs +1 -1
  59. package/dist/locale/et.js +1 -1
  60. package/dist/locale/et.min.js +1 -1
  61. package/dist/locale/et.min.mjs +1 -1
  62. package/dist/locale/et.mjs +1 -1
  63. package/dist/locale/eu.js +1 -1
  64. package/dist/locale/eu.min.js +1 -1
  65. package/dist/locale/eu.min.mjs +1 -1
  66. package/dist/locale/eu.mjs +1 -1
  67. package/dist/locale/fa.js +1 -1
  68. package/dist/locale/fa.min.js +1 -1
  69. package/dist/locale/fa.min.mjs +1 -1
  70. package/dist/locale/fa.mjs +1 -1
  71. package/dist/locale/fi.js +1 -1
  72. package/dist/locale/fi.min.js +1 -1
  73. package/dist/locale/fi.min.mjs +1 -1
  74. package/dist/locale/fi.mjs +1 -1
  75. package/dist/locale/fr.js +1 -1
  76. package/dist/locale/fr.min.js +1 -1
  77. package/dist/locale/fr.min.mjs +1 -1
  78. package/dist/locale/fr.mjs +1 -1
  79. package/dist/locale/he.js +1 -1
  80. package/dist/locale/he.min.js +1 -1
  81. package/dist/locale/he.min.mjs +1 -1
  82. package/dist/locale/he.mjs +1 -1
  83. package/dist/locale/hr.js +1 -1
  84. package/dist/locale/hr.min.js +1 -1
  85. package/dist/locale/hr.min.mjs +1 -1
  86. package/dist/locale/hr.mjs +1 -1
  87. package/dist/locale/hu.js +1 -1
  88. package/dist/locale/hu.min.js +1 -1
  89. package/dist/locale/hu.min.mjs +1 -1
  90. package/dist/locale/hu.mjs +1 -1
  91. package/dist/locale/hy-am.js +1 -1
  92. package/dist/locale/hy-am.min.js +1 -1
  93. package/dist/locale/hy-am.min.mjs +1 -1
  94. package/dist/locale/hy-am.mjs +1 -1
  95. package/dist/locale/id.js +1 -1
  96. package/dist/locale/id.min.js +1 -1
  97. package/dist/locale/id.min.mjs +1 -1
  98. package/dist/locale/id.mjs +1 -1
  99. package/dist/locale/it.js +1 -1
  100. package/dist/locale/it.min.js +1 -1
  101. package/dist/locale/it.min.mjs +1 -1
  102. package/dist/locale/it.mjs +1 -1
  103. package/dist/locale/ja.js +1 -1
  104. package/dist/locale/ja.min.js +1 -1
  105. package/dist/locale/ja.min.mjs +1 -1
  106. package/dist/locale/ja.mjs +1 -1
  107. package/dist/locale/kk.js +1 -1
  108. package/dist/locale/kk.min.js +1 -1
  109. package/dist/locale/kk.min.mjs +1 -1
  110. package/dist/locale/kk.mjs +1 -1
  111. package/dist/locale/km.js +1 -1
  112. package/dist/locale/km.min.js +1 -1
  113. package/dist/locale/km.min.mjs +1 -1
  114. package/dist/locale/km.mjs +1 -1
  115. package/dist/locale/ko.js +1 -1
  116. package/dist/locale/ko.min.js +1 -1
  117. package/dist/locale/ko.min.mjs +1 -1
  118. package/dist/locale/ko.mjs +1 -1
  119. package/dist/locale/ku.js +1 -1
  120. package/dist/locale/ku.min.js +1 -1
  121. package/dist/locale/ku.min.mjs +1 -1
  122. package/dist/locale/ku.mjs +1 -1
  123. package/dist/locale/ky.js +1 -1
  124. package/dist/locale/ky.min.js +1 -1
  125. package/dist/locale/ky.min.mjs +1 -1
  126. package/dist/locale/ky.mjs +1 -1
  127. package/dist/locale/lt.js +1 -1
  128. package/dist/locale/lt.min.js +1 -1
  129. package/dist/locale/lt.min.mjs +1 -1
  130. package/dist/locale/lt.mjs +1 -1
  131. package/dist/locale/lv.js +1 -1
  132. package/dist/locale/lv.min.js +1 -1
  133. package/dist/locale/lv.min.mjs +1 -1
  134. package/dist/locale/lv.mjs +1 -1
  135. package/dist/locale/mg.js +1 -1
  136. package/dist/locale/mg.min.js +1 -1
  137. package/dist/locale/mg.min.mjs +1 -1
  138. package/dist/locale/mg.mjs +1 -1
  139. package/dist/locale/mn.js +1 -1
  140. package/dist/locale/mn.min.js +1 -1
  141. package/dist/locale/mn.min.mjs +1 -1
  142. package/dist/locale/mn.mjs +1 -1
  143. package/dist/locale/nb-no.js +1 -1
  144. package/dist/locale/nb-no.min.js +1 -1
  145. package/dist/locale/nb-no.min.mjs +1 -1
  146. package/dist/locale/nb-no.mjs +1 -1
  147. package/dist/locale/nl.js +1 -1
  148. package/dist/locale/nl.min.js +1 -1
  149. package/dist/locale/nl.min.mjs +1 -1
  150. package/dist/locale/nl.mjs +1 -1
  151. package/dist/locale/pa.js +1 -1
  152. package/dist/locale/pa.min.js +1 -1
  153. package/dist/locale/pa.min.mjs +1 -1
  154. package/dist/locale/pa.mjs +1 -1
  155. package/dist/locale/pl.js +1 -1
  156. package/dist/locale/pl.min.js +1 -1
  157. package/dist/locale/pl.min.mjs +1 -1
  158. package/dist/locale/pl.mjs +1 -1
  159. package/dist/locale/pt-br.js +1 -1
  160. package/dist/locale/pt-br.min.js +1 -1
  161. package/dist/locale/pt-br.min.mjs +1 -1
  162. package/dist/locale/pt-br.mjs +1 -1
  163. package/dist/locale/pt.js +1 -1
  164. package/dist/locale/pt.min.js +1 -1
  165. package/dist/locale/pt.min.mjs +1 -1
  166. package/dist/locale/pt.mjs +1 -1
  167. package/dist/locale/ro.js +1 -1
  168. package/dist/locale/ro.min.js +1 -1
  169. package/dist/locale/ro.min.mjs +1 -1
  170. package/dist/locale/ro.mjs +1 -1
  171. package/dist/locale/ru.js +1 -1
  172. package/dist/locale/ru.min.js +1 -1
  173. package/dist/locale/ru.min.mjs +1 -1
  174. package/dist/locale/ru.mjs +1 -1
  175. package/dist/locale/sk.js +1 -1
  176. package/dist/locale/sk.min.js +1 -1
  177. package/dist/locale/sk.min.mjs +1 -1
  178. package/dist/locale/sk.mjs +1 -1
  179. package/dist/locale/sl.js +1 -1
  180. package/dist/locale/sl.min.js +1 -1
  181. package/dist/locale/sl.min.mjs +1 -1
  182. package/dist/locale/sl.mjs +1 -1
  183. package/dist/locale/sr.js +1 -1
  184. package/dist/locale/sr.min.js +1 -1
  185. package/dist/locale/sr.min.mjs +1 -1
  186. package/dist/locale/sr.mjs +1 -1
  187. package/dist/locale/sv.js +1 -1
  188. package/dist/locale/sv.min.js +1 -1
  189. package/dist/locale/sv.min.mjs +1 -1
  190. package/dist/locale/sv.mjs +1 -1
  191. package/dist/locale/ta.js +1 -1
  192. package/dist/locale/ta.min.js +1 -1
  193. package/dist/locale/ta.min.mjs +1 -1
  194. package/dist/locale/ta.mjs +1 -1
  195. package/dist/locale/th.js +1 -1
  196. package/dist/locale/th.min.js +1 -1
  197. package/dist/locale/th.min.mjs +1 -1
  198. package/dist/locale/th.mjs +1 -1
  199. package/dist/locale/tk.js +1 -1
  200. package/dist/locale/tk.min.js +1 -1
  201. package/dist/locale/tk.min.mjs +1 -1
  202. package/dist/locale/tk.mjs +1 -1
  203. package/dist/locale/tr.js +1 -1
  204. package/dist/locale/tr.min.js +1 -1
  205. package/dist/locale/tr.min.mjs +1 -1
  206. package/dist/locale/tr.mjs +1 -1
  207. package/dist/locale/ug-cn.js +1 -1
  208. package/dist/locale/ug-cn.min.js +1 -1
  209. package/dist/locale/ug-cn.min.mjs +1 -1
  210. package/dist/locale/ug-cn.mjs +1 -1
  211. package/dist/locale/uk.js +1 -1
  212. package/dist/locale/uk.min.js +1 -1
  213. package/dist/locale/uk.min.mjs +1 -1
  214. package/dist/locale/uk.mjs +1 -1
  215. package/dist/locale/uz-uz.js +1 -1
  216. package/dist/locale/uz-uz.min.js +1 -1
  217. package/dist/locale/uz-uz.min.mjs +1 -1
  218. package/dist/locale/uz-uz.mjs +1 -1
  219. package/dist/locale/vi.js +1 -1
  220. package/dist/locale/vi.min.js +1 -1
  221. package/dist/locale/vi.min.mjs +1 -1
  222. package/dist/locale/vi.mjs +1 -1
  223. package/dist/locale/zh-cn.js +1 -1
  224. package/dist/locale/zh-cn.min.js +1 -1
  225. package/dist/locale/zh-cn.min.mjs +1 -1
  226. package/dist/locale/zh-cn.mjs +1 -1
  227. package/dist/locale/zh-tw.js +1 -1
  228. package/dist/locale/zh-tw.min.js +1 -1
  229. package/dist/locale/zh-tw.min.mjs +1 -1
  230. package/dist/locale/zh-tw.mjs +1 -1
  231. package/es/components/descriptions/index.d.ts +82 -54
  232. package/es/components/descriptions/index.mjs +2 -1
  233. package/es/components/descriptions/index.mjs.map +1 -1
  234. package/es/components/descriptions/src/description.d.ts +15 -0
  235. package/es/components/descriptions/src/description.mjs +32 -0
  236. package/es/components/descriptions/src/description.mjs.map +1 -0
  237. package/es/components/descriptions/src/description.vue.d.ts +106 -0
  238. package/es/components/descriptions/src/description2.mjs +127 -0
  239. package/es/components/descriptions/src/description2.mjs.map +1 -0
  240. package/es/components/descriptions/src/descriptions-cell.mjs +4 -4
  241. package/es/components/descriptions/src/descriptions-cell.mjs.map +1 -1
  242. package/es/components/descriptions/src/descriptions-row.d.ts +3 -0
  243. package/es/components/descriptions/src/descriptions-row.mjs +7 -71
  244. package/es/components/descriptions/src/descriptions-row.mjs.map +1 -1
  245. package/es/components/descriptions/src/descriptions-row.vue.d.ts +28 -7
  246. package/es/components/descriptions/src/descriptions-row2.mjs +69 -0
  247. package/es/components/descriptions/src/descriptions-row2.mjs.map +1 -0
  248. package/es/components/descriptions/src/token.d.ts +1 -1
  249. package/es/components/descriptions/src/token.mjs +2 -2
  250. package/es/components/descriptions/src/token.mjs.map +1 -1
  251. package/es/components/index.mjs +2 -1
  252. package/es/components/index.mjs.map +1 -1
  253. package/es/components/timeline/index.mjs +2 -2
  254. package/es/components/timeline/src/timeline-item.mjs +43 -70
  255. package/es/components/timeline/src/timeline-item.mjs.map +1 -1
  256. package/es/components/timeline/src/timeline-item2.mjs +70 -43
  257. package/es/components/timeline/src/timeline-item2.mjs.map +1 -1
  258. package/es/components/upload/src/use-handlers.mjs +1 -1
  259. package/es/components/upload/src/use-handlers.mjs.map +1 -1
  260. package/es/index.mjs +2 -1
  261. package/es/index.mjs.map +1 -1
  262. package/es/version.d.ts +1 -1
  263. package/es/version.mjs +1 -1
  264. package/es/version.mjs.map +1 -1
  265. package/lib/components/descriptions/index.d.ts +82 -54
  266. package/lib/components/descriptions/index.js +4 -2
  267. package/lib/components/descriptions/index.js.map +1 -1
  268. package/lib/components/descriptions/src/description.d.ts +15 -0
  269. package/lib/components/descriptions/src/description.js +36 -0
  270. package/lib/components/descriptions/src/description.js.map +1 -0
  271. package/lib/components/descriptions/src/description.vue.d.ts +106 -0
  272. package/lib/components/descriptions/src/description2.js +131 -0
  273. package/lib/components/descriptions/src/description2.js.map +1 -0
  274. package/lib/components/descriptions/src/descriptions-cell.js +3 -3
  275. package/lib/components/descriptions/src/descriptions-cell.js.map +1 -1
  276. package/lib/components/descriptions/src/descriptions-row.d.ts +3 -0
  277. package/lib/components/descriptions/src/descriptions-row.js +7 -71
  278. package/lib/components/descriptions/src/descriptions-row.js.map +1 -1
  279. package/lib/components/descriptions/src/descriptions-row.vue.d.ts +28 -7
  280. package/lib/components/descriptions/src/descriptions-row2.js +73 -0
  281. package/lib/components/descriptions/src/descriptions-row2.js.map +1 -0
  282. package/lib/components/descriptions/src/token.d.ts +1 -1
  283. package/lib/components/descriptions/src/token.js +2 -2
  284. package/lib/components/descriptions/src/token.js.map +1 -1
  285. package/lib/components/index.js +3 -1
  286. package/lib/components/index.js.map +1 -1
  287. package/lib/components/timeline/index.js +2 -2
  288. package/lib/components/timeline/src/timeline-item.js +43 -70
  289. package/lib/components/timeline/src/timeline-item.js.map +1 -1
  290. package/lib/components/timeline/src/timeline-item2.js +70 -43
  291. package/lib/components/timeline/src/timeline-item2.js.map +1 -1
  292. package/lib/components/upload/src/use-handlers.js +1 -1
  293. package/lib/components/upload/src/use-handlers.js.map +1 -1
  294. package/lib/index.js +3 -1
  295. package/lib/index.js.map +1 -1
  296. package/lib/version.d.ts +1 -1
  297. package/lib/version.js +1 -1
  298. package/lib/version.js.map +1 -1
  299. package/package.json +2 -2
  300. package/web-types.json +1 -1
  301. package/es/components/descriptions/src/index.mjs +0 -160
  302. package/es/components/descriptions/src/index.mjs.map +0 -1
  303. package/es/components/descriptions/src/index.vue.d.ts +0 -80
  304. package/lib/components/descriptions/src/index.js +0 -164
  305. package/lib/components/descriptions/src/index.js.map +0 -1
  306. package/lib/components/descriptions/src/index.vue.d.ts +0 -80
@@ -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,CAAA,EAHHH,sBAEW,CAAAC,YAAA,EAAA,IAAA,EAAAG,cAAA,CAFuB,IAAG,CAAA,GAAA,EAAA,CAAnB,MAAM,KAAK,KAAA;gCAC3BC,eAA2D,CAAA,+BAAA,EAAA;AAAA,UADT,GAAA,EAAA,CAAA,IAAA,EAAA,KAAA,CAAA,CAAA;AAAA,UAC3B,IAAA;AAAA,UAAY,GAAI,EAAA,IAAA;AAAA,UAAK,IAAK,EAAA,OAAA;AAAA,SAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,MAAA,CAAA,CAAA,CAAA;;;IAGrDH,sBAIK,CAAA,IAAA,EAAA,IAAA,EAAA;AAAA,OAAAC,aAAA,CAAA,IAAA,CAAA,EAHHH,sBAEW,CAAAC,YAAA,EAAA,IAAA,EAAAG,cAAA,CAFuB,IAAG,CAAA,GAAA,EAAA,CAAnB,MAAM,KAAK,KAAA;gCAC3BC,eAA6D,CAAA,+BAAA,EAAA;AAAA,UADX,GAAA,EAAA,CAAA,IAAA,EAAA,KAAA,CAAA,CAAA;AAAA,UAC3B,IAAA;AAAA,UAAY,GAAI,EAAA,IAAA;AAAA,UAAK,IAAK,EAAA,SAAA;AAAA,SAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,MAAA,CAAA,CAAA,CAAA;;;8BAIvDL,sBAQK,CAAA,IAAA,EAAA,UAAA,EAAA;AAAA,KAAAG,aAAA,CAAA,IAAA,CAAA,EAPHH,sBAMW,CAAAC,YAAA,EAAA,IAAA,EAAAG,cAAA,CANuB,IAAG,CAAA,GAAA,EAAA,CAAnB,MAAM,KAAK,KAAA;;AAAuB,QAAA,GAAA,EAAA,CAAA,IAAA,EAAA,KAAA,CAAA,CAAA;AAAA,OAAA,EAAA;AAClC,QAAA,IAAA,CAAA,YAAA,CAAa,2BAA7BJ,sBAGW,CAAAC,YAAA,EAAA,EAAA,GAAA,EAAA,CAAA,EAAA,EAAA;AAAA,UAFTK,eAA2D,CAAA,+BAAA,EAAA;AAAA,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;;;;"}
@@ -97,6 +97,7 @@ var col = require('./col/src/col.js');
97
97
  var collapse = require('./collapse/src/collapse.js');
98
98
  var collapseItem = require('./collapse/src/collapse-item.js');
99
99
  var configProvider = require('./config-provider/src/config-provider.js');
100
+ var description = require('./descriptions/src/description.js');
100
101
  var useDialog = require('./dialog/src/use-dialog.js');
101
102
  var dialog = require('./dialog/src/dialog.js');
102
103
  var divider = require('./divider/src/divider.js');
@@ -163,7 +164,7 @@ var constants$1 = require('./time-picker/src/constants.js');
163
164
  var props = require('./time-picker/src/common/props.js');
164
165
  var picker = require('./time-picker/src/common/picker.js');
165
166
  var panelTimePick = require('./time-picker/src/time-picker-com/panel-time-pick.js');
166
- var timelineItem = require('./timeline/src/timeline-item2.js');
167
+ var timelineItem = require('./timeline/src/timeline-item.js');
167
168
  var tooltip = require('./tooltip/src/tooltip.js');
168
169
  var tokens$1 = require('./tooltip/src/tokens.js');
169
170
  var transfer = require('./transfer/src/transfer.js');
@@ -330,6 +331,7 @@ exports.emitChangeFn = collapse.emitChangeFn;
330
331
  exports.collapseItemProps = collapseItem.collapseItemProps;
331
332
  exports.configProviderProps = configProvider.configProviderProps;
332
333
  exports.messageConfig = configProvider.messageConfig;
334
+ exports.descriptionProps = description.descriptionProps;
333
335
  exports.useDialog = useDialog.useDialog;
334
336
  exports.dialogEmits = dialog.dialogEmits;
335
337
  exports.dialogProps = dialog.dialogProps;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -4,8 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  require('../../utils/index.js');
6
6
  var timeline = require('./src/timeline.js');
7
- var timelineItem$1 = require('./src/timeline-item.js');
8
- var timelineItem = require('./src/timeline-item2.js');
7
+ var timelineItem$1 = require('./src/timeline-item2.js');
8
+ var timelineItem = require('./src/timeline-item.js');
9
9
  var install = require('../../utils/vue/install.js');
10
10
 
11
11
  const ElTimeline = install.withInstall(timeline["default"], {
@@ -2,78 +2,51 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var vue = require('vue');
6
- var index$1 = require('../../icon/index.js');
7
- require('../../../hooks/index.js');
8
- var timelineItem = require('./timeline-item2.js');
9
- var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
10
- var index = require('../../../hooks/use-namespace/index.js');
5
+ require('../../../utils/index.js');
6
+ var runtime = require('../../../utils/vue/props/runtime.js');
7
+ var icon = require('../../../utils/vue/icon.js');
11
8
 
12
- const __default__ = {
13
- name: "ElTimelineItem"
14
- };
15
- const _sfc_main = /* @__PURE__ */ vue.defineComponent({
16
- ...__default__,
17
- props: timelineItem.timelineItemProps,
18
- setup(__props) {
19
- const ns = index.useNamespace("timeline-item");
20
- return (_ctx, _cache) => {
21
- return vue.openBlock(), vue.createElementBlock("li", {
22
- class: vue.normalizeClass([vue.unref(ns).b(), { [vue.unref(ns).e("center")]: _ctx.center }])
23
- }, [
24
- vue.createElementVNode("div", {
25
- class: vue.normalizeClass(vue.unref(ns).e("tail"))
26
- }, null, 2),
27
- !_ctx.$slots.dot ? (vue.openBlock(), vue.createElementBlock("div", {
28
- key: 0,
29
- class: vue.normalizeClass([
30
- vue.unref(ns).e("node"),
31
- vue.unref(ns).em("node", _ctx.size || ""),
32
- vue.unref(ns).em("node", _ctx.type || ""),
33
- vue.unref(ns).is("hollow", _ctx.hollow)
34
- ]),
35
- style: vue.normalizeStyle({
36
- backgroundColor: _ctx.color
37
- })
38
- }, [
39
- _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), {
40
- key: 0,
41
- class: vue.normalizeClass(vue.unref(ns).e("icon"))
42
- }, {
43
- default: vue.withCtx(() => [
44
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.icon)))
45
- ]),
46
- _: 1
47
- }, 8, ["class"])) : vue.createCommentVNode("v-if", true)
48
- ], 6)) : vue.createCommentVNode("v-if", true),
49
- _ctx.$slots.dot ? (vue.openBlock(), vue.createElementBlock("div", {
50
- key: 1,
51
- class: vue.normalizeClass(vue.unref(ns).e("dot"))
52
- }, [
53
- vue.renderSlot(_ctx.$slots, "dot")
54
- ], 2)) : vue.createCommentVNode("v-if", true),
55
- vue.createElementVNode("div", {
56
- class: vue.normalizeClass(vue.unref(ns).e("wrapper"))
57
- }, [
58
- !_ctx.hideTimestamp && _ctx.placement === "top" ? (vue.openBlock(), vue.createElementBlock("div", {
59
- key: 0,
60
- class: vue.normalizeClass([vue.unref(ns).e("timestamp"), vue.unref(ns).is("top")])
61
- }, vue.toDisplayString(_ctx.timestamp), 3)) : vue.createCommentVNode("v-if", true),
62
- vue.createElementVNode("div", {
63
- class: vue.normalizeClass(vue.unref(ns).e("content"))
64
- }, [
65
- vue.renderSlot(_ctx.$slots, "default")
66
- ], 2),
67
- !_ctx.hideTimestamp && _ctx.placement === "bottom" ? (vue.openBlock(), vue.createElementBlock("div", {
68
- key: 1,
69
- class: vue.normalizeClass([vue.unref(ns).e("timestamp"), vue.unref(ns).is("bottom")])
70
- }, vue.toDisplayString(_ctx.timestamp), 3)) : vue.createCommentVNode("v-if", true)
71
- ], 2)
72
- ], 2);
73
- };
9
+ const timelineItemProps = runtime.buildProps({
10
+ timestamp: {
11
+ type: String,
12
+ default: ""
13
+ },
14
+ hideTimestamp: {
15
+ type: Boolean,
16
+ default: false
17
+ },
18
+ center: {
19
+ type: Boolean,
20
+ default: false
21
+ },
22
+ placement: {
23
+ type: String,
24
+ values: ["top", "bottom"],
25
+ default: "bottom"
26
+ },
27
+ type: {
28
+ type: String,
29
+ values: ["primary", "success", "warning", "danger", "info"],
30
+ default: ""
31
+ },
32
+ color: {
33
+ type: String,
34
+ default: ""
35
+ },
36
+ size: {
37
+ type: String,
38
+ values: ["normal", "large"],
39
+ default: "normal"
40
+ },
41
+ icon: {
42
+ type: icon.iconPropType,
43
+ default: ""
44
+ },
45
+ hollow: {
46
+ type: Boolean,
47
+ default: false
74
48
  }
75
49
  });
76
- var TimelineItem = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/timeline/src/timeline-item.vue"]]);
77
50
 
78
- exports["default"] = TimelineItem;
51
+ exports.timelineItemProps = timelineItemProps;
79
52
  //# sourceMappingURL=timeline-item.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"timeline-item.js","sources":["../../../../../../packages/components/timeline/src/timeline-item.vue"],"sourcesContent":["<template>\n <li :class=\"[ns.b(), { [ns.e('center')]: center }]\">\n <div :class=\"ns.e('tail')\" />\n <div\n v-if=\"!$slots.dot\"\n :class=\"[\n ns.e('node'),\n ns.em('node', size || ''),\n ns.em('node', type || ''),\n ns.is('hollow', hollow),\n ]\"\n :style=\"{\n backgroundColor: color,\n }\"\n >\n <el-icon v-if=\"icon\" :class=\"ns.e('icon')\">\n <component :is=\"icon\" />\n </el-icon>\n </div>\n <div v-if=\"$slots.dot\" :class=\"ns.e('dot')\">\n <slot name=\"dot\" />\n </div>\n\n <div :class=\"ns.e('wrapper')\">\n <div\n v-if=\"!hideTimestamp && placement === 'top'\"\n :class=\"[ns.e('timestamp'), ns.is('top')]\"\n >\n {{ timestamp }}\n </div>\n\n <div :class=\"ns.e('content')\">\n <slot />\n </div>\n\n <div\n v-if=\"!hideTimestamp && placement === 'bottom'\"\n :class=\"[ns.e('timestamp'), ns.is('bottom')]\"\n >\n {{ timestamp }}\n </div>\n </div>\n </li>\n</template>\n\n<script lang=\"ts\" setup>\nimport { ElIcon } from '@element-plus/components/icon'\nimport { useNamespace } from '@element-plus/hooks'\nimport { timelineItemProps } from './timeline-item'\n\ndefineOptions({\n name: 'ElTimelineItem',\n})\n\ndefineProps(timelineItemProps)\n\nconst ns = useNamespace('timeline-item')\n</script>\n"],"names":["useNamespace"],"mappings":";;;;;;;;;;;;;;;;;;AAwDA,IAAA,MAAA,EAAA,GAAAA,mBAAA,eAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"timeline-item.js","sources":["../../../../../../packages/components/timeline/src/timeline-item.ts"],"sourcesContent":["import { buildProps, iconPropType } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\nimport type TimelineItem from './timeline-item.vue'\n\nexport const timelineItemProps = buildProps({\n timestamp: {\n type: String,\n default: '',\n },\n hideTimestamp: {\n type: Boolean,\n default: false,\n },\n center: {\n type: Boolean,\n default: false,\n },\n placement: {\n type: String,\n values: ['top', 'bottom'],\n default: 'bottom',\n },\n type: {\n type: String,\n values: ['primary', 'success', 'warning', 'danger', 'info'],\n default: '',\n },\n color: {\n type: String,\n default: '',\n },\n size: {\n type: String,\n values: ['normal', 'large'],\n default: 'normal',\n },\n icon: {\n type: iconPropType,\n default: '',\n },\n hollow: {\n type: Boolean,\n default: false,\n },\n} as const)\nexport type TimelineItemProps = ExtractPropTypes<typeof timelineItemProps>\n\nexport type TimelineItemInstance = InstanceType<typeof TimelineItem>\n"],"names":["buildProps","iconPropType"],"mappings":";;;;;;;;AACY,MAAC,iBAAiB,GAAGA,kBAAU,CAAC;AAC5C,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC;AAC7B,IAAI,OAAO,EAAE,QAAQ;AACrB,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,CAAC;AAC/D,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC;AAC/B,IAAI,OAAO,EAAE,QAAQ;AACrB,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAEC,iBAAY;AACtB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,CAAC;;;;"}
@@ -2,51 +2,78 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('../../../utils/index.js');
6
- var runtime = require('../../../utils/vue/props/runtime.js');
7
- var icon = require('../../../utils/vue/icon.js');
5
+ var vue = require('vue');
6
+ var index$1 = require('../../icon/index.js');
7
+ require('../../../hooks/index.js');
8
+ var timelineItem = require('./timeline-item.js');
9
+ var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
10
+ var index = require('../../../hooks/use-namespace/index.js');
8
11
 
9
- const timelineItemProps = runtime.buildProps({
10
- timestamp: {
11
- type: String,
12
- default: ""
13
- },
14
- hideTimestamp: {
15
- type: Boolean,
16
- default: false
17
- },
18
- center: {
19
- type: Boolean,
20
- default: false
21
- },
22
- placement: {
23
- type: String,
24
- values: ["top", "bottom"],
25
- default: "bottom"
26
- },
27
- type: {
28
- type: String,
29
- values: ["primary", "success", "warning", "danger", "info"],
30
- default: ""
31
- },
32
- color: {
33
- type: String,
34
- default: ""
35
- },
36
- size: {
37
- type: String,
38
- values: ["normal", "large"],
39
- default: "normal"
40
- },
41
- icon: {
42
- type: icon.iconPropType,
43
- default: ""
44
- },
45
- hollow: {
46
- type: Boolean,
47
- default: false
12
+ const __default__ = {
13
+ name: "ElTimelineItem"
14
+ };
15
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
16
+ ...__default__,
17
+ props: timelineItem.timelineItemProps,
18
+ setup(__props) {
19
+ const ns = index.useNamespace("timeline-item");
20
+ return (_ctx, _cache) => {
21
+ return vue.openBlock(), vue.createElementBlock("li", {
22
+ class: vue.normalizeClass([vue.unref(ns).b(), { [vue.unref(ns).e("center")]: _ctx.center }])
23
+ }, [
24
+ vue.createElementVNode("div", {
25
+ class: vue.normalizeClass(vue.unref(ns).e("tail"))
26
+ }, null, 2),
27
+ !_ctx.$slots.dot ? (vue.openBlock(), vue.createElementBlock("div", {
28
+ key: 0,
29
+ class: vue.normalizeClass([
30
+ vue.unref(ns).e("node"),
31
+ vue.unref(ns).em("node", _ctx.size || ""),
32
+ vue.unref(ns).em("node", _ctx.type || ""),
33
+ vue.unref(ns).is("hollow", _ctx.hollow)
34
+ ]),
35
+ style: vue.normalizeStyle({
36
+ backgroundColor: _ctx.color
37
+ })
38
+ }, [
39
+ _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), {
40
+ key: 0,
41
+ class: vue.normalizeClass(vue.unref(ns).e("icon"))
42
+ }, {
43
+ default: vue.withCtx(() => [
44
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.icon)))
45
+ ]),
46
+ _: 1
47
+ }, 8, ["class"])) : vue.createCommentVNode("v-if", true)
48
+ ], 6)) : vue.createCommentVNode("v-if", true),
49
+ _ctx.$slots.dot ? (vue.openBlock(), vue.createElementBlock("div", {
50
+ key: 1,
51
+ class: vue.normalizeClass(vue.unref(ns).e("dot"))
52
+ }, [
53
+ vue.renderSlot(_ctx.$slots, "dot")
54
+ ], 2)) : vue.createCommentVNode("v-if", true),
55
+ vue.createElementVNode("div", {
56
+ class: vue.normalizeClass(vue.unref(ns).e("wrapper"))
57
+ }, [
58
+ !_ctx.hideTimestamp && _ctx.placement === "top" ? (vue.openBlock(), vue.createElementBlock("div", {
59
+ key: 0,
60
+ class: vue.normalizeClass([vue.unref(ns).e("timestamp"), vue.unref(ns).is("top")])
61
+ }, vue.toDisplayString(_ctx.timestamp), 3)) : vue.createCommentVNode("v-if", true),
62
+ vue.createElementVNode("div", {
63
+ class: vue.normalizeClass(vue.unref(ns).e("content"))
64
+ }, [
65
+ vue.renderSlot(_ctx.$slots, "default")
66
+ ], 2),
67
+ !_ctx.hideTimestamp && _ctx.placement === "bottom" ? (vue.openBlock(), vue.createElementBlock("div", {
68
+ key: 1,
69
+ class: vue.normalizeClass([vue.unref(ns).e("timestamp"), vue.unref(ns).is("bottom")])
70
+ }, vue.toDisplayString(_ctx.timestamp), 3)) : vue.createCommentVNode("v-if", true)
71
+ ], 2)
72
+ ], 2);
73
+ };
48
74
  }
49
75
  });
76
+ var TimelineItem = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/timeline/src/timeline-item.vue"]]);
50
77
 
51
- exports.timelineItemProps = timelineItemProps;
78
+ exports["default"] = TimelineItem;
52
79
  //# sourceMappingURL=timeline-item2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"timeline-item2.js","sources":["../../../../../../packages/components/timeline/src/timeline-item.ts"],"sourcesContent":["import { buildProps, iconPropType } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\nimport type TimelineItem from './timeline-item.vue'\n\nexport const timelineItemProps = buildProps({\n timestamp: {\n type: String,\n default: '',\n },\n hideTimestamp: {\n type: Boolean,\n default: false,\n },\n center: {\n type: Boolean,\n default: false,\n },\n placement: {\n type: String,\n values: ['top', 'bottom'],\n default: 'bottom',\n },\n type: {\n type: String,\n values: ['primary', 'success', 'warning', 'danger', 'info'],\n default: '',\n },\n color: {\n type: String,\n default: '',\n },\n size: {\n type: String,\n values: ['normal', 'large'],\n default: 'normal',\n },\n icon: {\n type: iconPropType,\n default: '',\n },\n hollow: {\n type: Boolean,\n default: false,\n },\n} as const)\nexport type TimelineItemProps = ExtractPropTypes<typeof timelineItemProps>\n\nexport type TimelineItemInstance = InstanceType<typeof TimelineItem>\n"],"names":["buildProps","iconPropType"],"mappings":";;;;;;;;AACY,MAAC,iBAAiB,GAAGA,kBAAU,CAAC;AAC5C,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC;AAC7B,IAAI,OAAO,EAAE,QAAQ;AACrB,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,CAAC;AAC/D,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC;AAC/B,IAAI,OAAO,EAAE,QAAQ;AACrB,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAEC,iBAAY;AACtB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,CAAC;;;;"}
1
+ {"version":3,"file":"timeline-item2.js","sources":["../../../../../../packages/components/timeline/src/timeline-item.vue"],"sourcesContent":["<template>\n <li :class=\"[ns.b(), { [ns.e('center')]: center }]\">\n <div :class=\"ns.e('tail')\" />\n <div\n v-if=\"!$slots.dot\"\n :class=\"[\n ns.e('node'),\n ns.em('node', size || ''),\n ns.em('node', type || ''),\n ns.is('hollow', hollow),\n ]\"\n :style=\"{\n backgroundColor: color,\n }\"\n >\n <el-icon v-if=\"icon\" :class=\"ns.e('icon')\">\n <component :is=\"icon\" />\n </el-icon>\n </div>\n <div v-if=\"$slots.dot\" :class=\"ns.e('dot')\">\n <slot name=\"dot\" />\n </div>\n\n <div :class=\"ns.e('wrapper')\">\n <div\n v-if=\"!hideTimestamp && placement === 'top'\"\n :class=\"[ns.e('timestamp'), ns.is('top')]\"\n >\n {{ timestamp }}\n </div>\n\n <div :class=\"ns.e('content')\">\n <slot />\n </div>\n\n <div\n v-if=\"!hideTimestamp && placement === 'bottom'\"\n :class=\"[ns.e('timestamp'), ns.is('bottom')]\"\n >\n {{ timestamp }}\n </div>\n </div>\n </li>\n</template>\n\n<script lang=\"ts\" setup>\nimport { ElIcon } from '@element-plus/components/icon'\nimport { useNamespace } from '@element-plus/hooks'\nimport { timelineItemProps } from './timeline-item'\n\ndefineOptions({\n name: 'ElTimelineItem',\n})\n\ndefineProps(timelineItemProps)\n\nconst ns = useNamespace('timeline-item')\n</script>\n"],"names":["useNamespace"],"mappings":";;;;;;;;;;;;;;;;;;AAwDA,IAAA,MAAA,EAAA,GAAAA,mBAAA,eAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -69,7 +69,7 @@ const useHandlers = (props, uploadRef) => {
69
69
  props.onError(err, uploadFile, uploadFiles.value);
70
70
  }
71
71
  }
72
- uploadFiles.value.push(uploadFile);
72
+ uploadFiles.value = [...uploadFiles.value, uploadFile];
73
73
  props.onChange(uploadFile, uploadFiles.value);
74
74
  };
75
75
  const handleRemove = async (file) => {