@element-plus/nightly 0.0.20220717 → 0.0.20220720

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 (370) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index.full.js +261 -267
  3. package/dist/index.full.min.js +12 -12
  4. package/dist/index.full.min.js.map +1 -1
  5. package/dist/index.full.min.mjs +14 -14
  6. package/dist/index.full.min.mjs.map +1 -1
  7. package/dist/index.full.mjs +261 -268
  8. package/dist/locale/af.js +1 -1
  9. package/dist/locale/af.min.js +1 -1
  10. package/dist/locale/af.min.mjs +1 -1
  11. package/dist/locale/af.mjs +1 -1
  12. package/dist/locale/ar.js +1 -1
  13. package/dist/locale/ar.min.js +1 -1
  14. package/dist/locale/ar.min.mjs +1 -1
  15. package/dist/locale/ar.mjs +1 -1
  16. package/dist/locale/az.js +1 -1
  17. package/dist/locale/az.min.js +1 -1
  18. package/dist/locale/az.min.mjs +1 -1
  19. package/dist/locale/az.mjs +1 -1
  20. package/dist/locale/bg.js +1 -1
  21. package/dist/locale/bg.min.js +1 -1
  22. package/dist/locale/bg.min.mjs +1 -1
  23. package/dist/locale/bg.mjs +1 -1
  24. package/dist/locale/bn.js +1 -1
  25. package/dist/locale/bn.min.js +1 -1
  26. package/dist/locale/bn.min.mjs +1 -1
  27. package/dist/locale/bn.mjs +1 -1
  28. package/dist/locale/ca.js +1 -1
  29. package/dist/locale/ca.min.js +1 -1
  30. package/dist/locale/ca.min.mjs +1 -1
  31. package/dist/locale/ca.mjs +1 -1
  32. package/dist/locale/cs.js +1 -1
  33. package/dist/locale/cs.min.js +1 -1
  34. package/dist/locale/cs.min.mjs +1 -1
  35. package/dist/locale/cs.mjs +1 -1
  36. package/dist/locale/da.js +1 -1
  37. package/dist/locale/da.min.js +1 -1
  38. package/dist/locale/da.min.mjs +1 -1
  39. package/dist/locale/da.mjs +1 -1
  40. package/dist/locale/de.js +1 -1
  41. package/dist/locale/de.min.js +1 -1
  42. package/dist/locale/de.min.mjs +1 -1
  43. package/dist/locale/de.mjs +1 -1
  44. package/dist/locale/el.js +1 -1
  45. package/dist/locale/el.min.js +1 -1
  46. package/dist/locale/el.min.mjs +1 -1
  47. package/dist/locale/el.mjs +1 -1
  48. package/dist/locale/en.js +1 -1
  49. package/dist/locale/en.min.js +1 -1
  50. package/dist/locale/en.min.mjs +1 -1
  51. package/dist/locale/en.mjs +1 -1
  52. package/dist/locale/eo.js +1 -1
  53. package/dist/locale/eo.min.js +1 -1
  54. package/dist/locale/eo.min.mjs +1 -1
  55. package/dist/locale/eo.mjs +1 -1
  56. package/dist/locale/es.js +1 -1
  57. package/dist/locale/es.min.js +1 -1
  58. package/dist/locale/es.min.mjs +1 -1
  59. package/dist/locale/es.mjs +1 -1
  60. package/dist/locale/et.js +1 -1
  61. package/dist/locale/et.min.js +1 -1
  62. package/dist/locale/et.min.mjs +1 -1
  63. package/dist/locale/et.mjs +1 -1
  64. package/dist/locale/eu.js +1 -1
  65. package/dist/locale/eu.min.js +1 -1
  66. package/dist/locale/eu.min.mjs +1 -1
  67. package/dist/locale/eu.mjs +1 -1
  68. package/dist/locale/fa.js +1 -1
  69. package/dist/locale/fa.min.js +1 -1
  70. package/dist/locale/fa.min.mjs +1 -1
  71. package/dist/locale/fa.mjs +1 -1
  72. package/dist/locale/fi.js +1 -1
  73. package/dist/locale/fi.min.js +1 -1
  74. package/dist/locale/fi.min.mjs +1 -1
  75. package/dist/locale/fi.mjs +1 -1
  76. package/dist/locale/fr.js +1 -1
  77. package/dist/locale/fr.min.js +1 -1
  78. package/dist/locale/fr.min.mjs +1 -1
  79. package/dist/locale/fr.mjs +1 -1
  80. package/dist/locale/he.js +1 -1
  81. package/dist/locale/he.min.js +1 -1
  82. package/dist/locale/he.min.mjs +1 -1
  83. package/dist/locale/he.mjs +1 -1
  84. package/dist/locale/hr.js +1 -1
  85. package/dist/locale/hr.min.js +1 -1
  86. package/dist/locale/hr.min.mjs +1 -1
  87. package/dist/locale/hr.mjs +1 -1
  88. package/dist/locale/hu.js +1 -1
  89. package/dist/locale/hu.min.js +1 -1
  90. package/dist/locale/hu.min.mjs +1 -1
  91. package/dist/locale/hu.mjs +1 -1
  92. package/dist/locale/hy-am.js +1 -1
  93. package/dist/locale/hy-am.min.js +1 -1
  94. package/dist/locale/hy-am.min.mjs +1 -1
  95. package/dist/locale/hy-am.mjs +1 -1
  96. package/dist/locale/id.js +1 -1
  97. package/dist/locale/id.min.js +1 -1
  98. package/dist/locale/id.min.mjs +1 -1
  99. package/dist/locale/id.mjs +1 -1
  100. package/dist/locale/it.js +1 -1
  101. package/dist/locale/it.min.js +1 -1
  102. package/dist/locale/it.min.mjs +1 -1
  103. package/dist/locale/it.mjs +1 -1
  104. package/dist/locale/ja.js +1 -1
  105. package/dist/locale/ja.min.js +1 -1
  106. package/dist/locale/ja.min.mjs +1 -1
  107. package/dist/locale/ja.mjs +1 -1
  108. package/dist/locale/kk.js +1 -1
  109. package/dist/locale/kk.min.js +1 -1
  110. package/dist/locale/kk.min.mjs +1 -1
  111. package/dist/locale/kk.mjs +1 -1
  112. package/dist/locale/km.js +1 -1
  113. package/dist/locale/km.min.js +1 -1
  114. package/dist/locale/km.min.mjs +1 -1
  115. package/dist/locale/km.mjs +1 -1
  116. package/dist/locale/ko.js +1 -1
  117. package/dist/locale/ko.min.js +1 -1
  118. package/dist/locale/ko.min.mjs +1 -1
  119. package/dist/locale/ko.mjs +1 -1
  120. package/dist/locale/ku.js +1 -1
  121. package/dist/locale/ku.min.js +1 -1
  122. package/dist/locale/ku.min.mjs +1 -1
  123. package/dist/locale/ku.mjs +1 -1
  124. package/dist/locale/ky.js +1 -1
  125. package/dist/locale/ky.min.js +1 -1
  126. package/dist/locale/ky.min.mjs +1 -1
  127. package/dist/locale/ky.mjs +1 -1
  128. package/dist/locale/lt.js +1 -1
  129. package/dist/locale/lt.min.js +1 -1
  130. package/dist/locale/lt.min.mjs +1 -1
  131. package/dist/locale/lt.mjs +1 -1
  132. package/dist/locale/lv.js +1 -1
  133. package/dist/locale/lv.min.js +1 -1
  134. package/dist/locale/lv.min.mjs +1 -1
  135. package/dist/locale/lv.mjs +1 -1
  136. package/dist/locale/mg.js +1 -1
  137. package/dist/locale/mg.min.js +1 -1
  138. package/dist/locale/mg.min.mjs +1 -1
  139. package/dist/locale/mg.mjs +1 -1
  140. package/dist/locale/mn.js +1 -1
  141. package/dist/locale/mn.min.js +1 -1
  142. package/dist/locale/mn.min.mjs +1 -1
  143. package/dist/locale/mn.mjs +1 -1
  144. package/dist/locale/nb-no.js +1 -1
  145. package/dist/locale/nb-no.min.js +1 -1
  146. package/dist/locale/nb-no.min.mjs +1 -1
  147. package/dist/locale/nb-no.mjs +1 -1
  148. package/dist/locale/nl.js +1 -1
  149. package/dist/locale/nl.min.js +1 -1
  150. package/dist/locale/nl.min.mjs +1 -1
  151. package/dist/locale/nl.mjs +1 -1
  152. package/dist/locale/pa.js +1 -1
  153. package/dist/locale/pa.min.js +1 -1
  154. package/dist/locale/pa.min.mjs +1 -1
  155. package/dist/locale/pa.mjs +1 -1
  156. package/dist/locale/pl.js +1 -1
  157. package/dist/locale/pl.min.js +1 -1
  158. package/dist/locale/pl.min.mjs +1 -1
  159. package/dist/locale/pl.mjs +1 -1
  160. package/dist/locale/pt-br.js +1 -1
  161. package/dist/locale/pt-br.min.js +1 -1
  162. package/dist/locale/pt-br.min.mjs +1 -1
  163. package/dist/locale/pt-br.mjs +1 -1
  164. package/dist/locale/pt.js +1 -1
  165. package/dist/locale/pt.min.js +1 -1
  166. package/dist/locale/pt.min.mjs +1 -1
  167. package/dist/locale/pt.mjs +1 -1
  168. package/dist/locale/ro.js +1 -1
  169. package/dist/locale/ro.min.js +1 -1
  170. package/dist/locale/ro.min.mjs +1 -1
  171. package/dist/locale/ro.mjs +1 -1
  172. package/dist/locale/ru.js +1 -1
  173. package/dist/locale/ru.min.js +1 -1
  174. package/dist/locale/ru.min.mjs +1 -1
  175. package/dist/locale/ru.mjs +1 -1
  176. package/dist/locale/sk.js +1 -1
  177. package/dist/locale/sk.min.js +1 -1
  178. package/dist/locale/sk.min.mjs +1 -1
  179. package/dist/locale/sk.mjs +1 -1
  180. package/dist/locale/sl.js +1 -1
  181. package/dist/locale/sl.min.js +1 -1
  182. package/dist/locale/sl.min.mjs +1 -1
  183. package/dist/locale/sl.mjs +1 -1
  184. package/dist/locale/sr.js +1 -1
  185. package/dist/locale/sr.min.js +1 -1
  186. package/dist/locale/sr.min.mjs +1 -1
  187. package/dist/locale/sr.mjs +1 -1
  188. package/dist/locale/sv.js +1 -1
  189. package/dist/locale/sv.min.js +1 -1
  190. package/dist/locale/sv.min.mjs +1 -1
  191. package/dist/locale/sv.mjs +1 -1
  192. package/dist/locale/ta.js +1 -1
  193. package/dist/locale/ta.min.js +1 -1
  194. package/dist/locale/ta.min.mjs +1 -1
  195. package/dist/locale/ta.mjs +1 -1
  196. package/dist/locale/th.js +1 -1
  197. package/dist/locale/th.min.js +1 -1
  198. package/dist/locale/th.min.mjs +1 -1
  199. package/dist/locale/th.mjs +1 -1
  200. package/dist/locale/tk.js +1 -1
  201. package/dist/locale/tk.min.js +1 -1
  202. package/dist/locale/tk.min.mjs +1 -1
  203. package/dist/locale/tk.mjs +1 -1
  204. package/dist/locale/tr.js +1 -1
  205. package/dist/locale/tr.min.js +1 -1
  206. package/dist/locale/tr.min.mjs +1 -1
  207. package/dist/locale/tr.mjs +1 -1
  208. package/dist/locale/ug-cn.js +1 -1
  209. package/dist/locale/ug-cn.min.js +1 -1
  210. package/dist/locale/ug-cn.min.mjs +1 -1
  211. package/dist/locale/ug-cn.mjs +1 -1
  212. package/dist/locale/uk.js +1 -1
  213. package/dist/locale/uk.min.js +1 -1
  214. package/dist/locale/uk.min.mjs +1 -1
  215. package/dist/locale/uk.mjs +1 -1
  216. package/dist/locale/uz-uz.js +1 -1
  217. package/dist/locale/uz-uz.min.js +1 -1
  218. package/dist/locale/uz-uz.min.mjs +1 -1
  219. package/dist/locale/uz-uz.mjs +1 -1
  220. package/dist/locale/vi.js +1 -1
  221. package/dist/locale/vi.min.js +1 -1
  222. package/dist/locale/vi.min.mjs +1 -1
  223. package/dist/locale/vi.mjs +1 -1
  224. package/dist/locale/zh-cn.js +1 -1
  225. package/dist/locale/zh-cn.min.js +1 -1
  226. package/dist/locale/zh-cn.min.mjs +1 -1
  227. package/dist/locale/zh-cn.mjs +1 -1
  228. package/dist/locale/zh-tw.js +1 -1
  229. package/dist/locale/zh-tw.min.js +1 -1
  230. package/dist/locale/zh-tw.min.mjs +1 -1
  231. package/dist/locale/zh-tw.mjs +1 -1
  232. package/es/components/cascader/src/index.mjs +1 -1
  233. package/es/components/descriptions/index.d.ts +82 -54
  234. package/es/components/descriptions/index.mjs +2 -1
  235. package/es/components/descriptions/index.mjs.map +1 -1
  236. package/es/components/descriptions/src/description.d.ts +15 -0
  237. package/es/components/descriptions/src/description.mjs +32 -0
  238. package/es/components/descriptions/src/description.mjs.map +1 -0
  239. package/es/components/descriptions/src/description.vue.d.ts +106 -0
  240. package/es/components/descriptions/src/description2.mjs +127 -0
  241. package/es/components/descriptions/src/description2.mjs.map +1 -0
  242. package/es/components/descriptions/src/descriptions-cell.mjs +4 -4
  243. package/es/components/descriptions/src/descriptions-cell.mjs.map +1 -1
  244. package/es/components/descriptions/src/descriptions-row.d.ts +3 -0
  245. package/es/components/descriptions/src/descriptions-row.mjs +7 -71
  246. package/es/components/descriptions/src/descriptions-row.mjs.map +1 -1
  247. package/es/components/descriptions/src/descriptions-row.vue.d.ts +28 -7
  248. package/es/components/descriptions/src/descriptions-row2.mjs +69 -0
  249. package/es/components/descriptions/src/descriptions-row2.mjs.map +1 -0
  250. package/es/components/descriptions/src/token.d.ts +1 -1
  251. package/es/components/descriptions/src/token.mjs +2 -2
  252. package/es/components/descriptions/src/token.mjs.map +1 -1
  253. package/es/components/dialog/src/use-dialog.mjs.map +1 -1
  254. package/es/components/index.mjs +5 -4
  255. package/es/components/index.mjs.map +1 -1
  256. package/es/components/message/style/css.d.ts +1 -0
  257. package/es/components/message/style/css.mjs +1 -0
  258. package/es/components/message/style/css.mjs.map +1 -1
  259. package/es/components/message/style/index.d.ts +1 -0
  260. package/es/components/message/style/index.mjs +1 -0
  261. package/es/components/message/style/index.mjs.map +1 -1
  262. package/es/components/popper/index.mjs +2 -2
  263. package/es/components/popper/src/trigger.mjs +120 -16
  264. package/es/components/popper/src/trigger.mjs.map +1 -1
  265. package/es/components/popper/src/trigger2.mjs +16 -120
  266. package/es/components/popper/src/trigger2.mjs.map +1 -1
  267. package/es/components/rate/src/rate2.mjs +2 -1
  268. package/es/components/rate/src/rate2.mjs.map +1 -1
  269. package/es/components/select/src/option.mjs +4 -4
  270. package/es/components/select/src/option.mjs.map +1 -1
  271. package/es/components/select/src/select.mjs +1 -1
  272. package/es/components/slider/src/button.mjs +21 -92
  273. package/es/components/slider/src/button.mjs.map +1 -1
  274. package/es/components/slider/src/button2.mjs +92 -21
  275. package/es/components/slider/src/button2.mjs.map +1 -1
  276. package/es/components/slider/src/slider2.mjs +1 -1
  277. package/es/components/steps/index.mjs +2 -2
  278. package/es/components/steps/src/item.mjs +20 -184
  279. package/es/components/steps/src/item.mjs.map +1 -1
  280. package/es/components/steps/src/item2.mjs +184 -20
  281. package/es/components/steps/src/item2.mjs.map +1 -1
  282. package/es/components/tag/index.mjs +2 -2
  283. package/es/components/tag/src/tag.mjs +33 -93
  284. package/es/components/tag/src/tag.mjs.map +1 -1
  285. package/es/components/tag/src/tag2.mjs +93 -33
  286. package/es/components/tag/src/tag2.mjs.map +1 -1
  287. package/es/components/tooltip/src/tooltip.mjs +1 -1
  288. package/es/components/tooltip/src/trigger.mjs +1 -1
  289. package/es/components/upload/src/use-handlers.mjs +1 -1
  290. package/es/components/upload/src/use-handlers.mjs.map +1 -1
  291. package/es/index.mjs +5 -4
  292. package/es/index.mjs.map +1 -1
  293. package/es/version.d.ts +1 -1
  294. package/es/version.mjs +1 -1
  295. package/es/version.mjs.map +1 -1
  296. package/lib/components/cascader/src/index.js +1 -1
  297. package/lib/components/descriptions/index.d.ts +82 -54
  298. package/lib/components/descriptions/index.js +4 -2
  299. package/lib/components/descriptions/index.js.map +1 -1
  300. package/lib/components/descriptions/src/description.d.ts +15 -0
  301. package/lib/components/descriptions/src/description.js +36 -0
  302. package/lib/components/descriptions/src/description.js.map +1 -0
  303. package/lib/components/descriptions/src/description.vue.d.ts +106 -0
  304. package/lib/components/descriptions/src/description2.js +131 -0
  305. package/lib/components/descriptions/src/description2.js.map +1 -0
  306. package/lib/components/descriptions/src/descriptions-cell.js +3 -3
  307. package/lib/components/descriptions/src/descriptions-cell.js.map +1 -1
  308. package/lib/components/descriptions/src/descriptions-row.d.ts +3 -0
  309. package/lib/components/descriptions/src/descriptions-row.js +7 -71
  310. package/lib/components/descriptions/src/descriptions-row.js.map +1 -1
  311. package/lib/components/descriptions/src/descriptions-row.vue.d.ts +28 -7
  312. package/lib/components/descriptions/src/descriptions-row2.js +73 -0
  313. package/lib/components/descriptions/src/descriptions-row2.js.map +1 -0
  314. package/lib/components/descriptions/src/token.d.ts +1 -1
  315. package/lib/components/descriptions/src/token.js +2 -2
  316. package/lib/components/descriptions/src/token.js.map +1 -1
  317. package/lib/components/dialog/src/use-dialog.js.map +1 -1
  318. package/lib/components/index.js +6 -4
  319. package/lib/components/index.js.map +1 -1
  320. package/lib/components/message/style/css.d.ts +1 -0
  321. package/lib/components/message/style/css.js +1 -0
  322. package/lib/components/message/style/css.js.map +1 -1
  323. package/lib/components/message/style/index.d.ts +1 -0
  324. package/lib/components/message/style/index.js +1 -0
  325. package/lib/components/message/style/index.js.map +1 -1
  326. package/lib/components/popper/index.js +2 -2
  327. package/lib/components/popper/src/trigger.js +120 -16
  328. package/lib/components/popper/src/trigger.js.map +1 -1
  329. package/lib/components/popper/src/trigger2.js +16 -120
  330. package/lib/components/popper/src/trigger2.js.map +1 -1
  331. package/lib/components/rate/src/rate2.js +2 -1
  332. package/lib/components/rate/src/rate2.js.map +1 -1
  333. package/lib/components/select/src/option.js +4 -4
  334. package/lib/components/select/src/option.js.map +1 -1
  335. package/lib/components/select/src/select.js +1 -1
  336. package/lib/components/slider/src/button.js +22 -92
  337. package/lib/components/slider/src/button.js.map +1 -1
  338. package/lib/components/slider/src/button2.js +92 -22
  339. package/lib/components/slider/src/button2.js.map +1 -1
  340. package/lib/components/slider/src/slider2.js +1 -1
  341. package/lib/components/steps/index.js +2 -2
  342. package/lib/components/steps/src/item.js +20 -184
  343. package/lib/components/steps/src/item.js.map +1 -1
  344. package/lib/components/steps/src/item2.js +184 -20
  345. package/lib/components/steps/src/item2.js.map +1 -1
  346. package/lib/components/tag/index.js +2 -2
  347. package/lib/components/tag/src/tag.js +34 -93
  348. package/lib/components/tag/src/tag.js.map +1 -1
  349. package/lib/components/tag/src/tag2.js +93 -34
  350. package/lib/components/tag/src/tag2.js.map +1 -1
  351. package/lib/components/tooltip/src/tooltip.js +1 -1
  352. package/lib/components/tooltip/src/trigger.js +1 -1
  353. package/lib/components/upload/src/use-handlers.js +1 -1
  354. package/lib/components/upload/src/use-handlers.js.map +1 -1
  355. package/lib/index.js +6 -4
  356. package/lib/index.js.map +1 -1
  357. package/lib/version.d.ts +1 -1
  358. package/lib/version.js +1 -1
  359. package/lib/version.js.map +1 -1
  360. package/package.json +2 -2
  361. package/theme-chalk/el-message-box.css +1 -1
  362. package/theme-chalk/index.css +1 -1
  363. package/theme-chalk/src/message-box.scss +3 -1
  364. package/web-types.json +1 -1
  365. package/es/components/descriptions/src/index.mjs +0 -160
  366. package/es/components/descriptions/src/index.mjs.map +0 -1
  367. package/es/components/descriptions/src/index.vue.d.ts +0 -80
  368. package/lib/components/descriptions/src/index.js +0 -164
  369. package/lib/components/descriptions/src/index.js.map +0 -1
  370. package/lib/components/descriptions/src/index.vue.d.ts +0 -80
@@ -2,28 +2,192 @@
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
+ require('../../../hooks/index.js');
7
+ var index$1 = require('../../icon/index.js');
8
+ var iconsVue = require('@element-plus/icons-vue');
9
+ var item = require('./item.js');
10
+ var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
11
+ var index = require('../../../hooks/use-namespace/index.js');
8
12
 
9
- const stepProps = runtime.buildProps({
10
- title: {
11
- type: String,
12
- default: ""
13
- },
14
- icon: {
15
- type: icon.iconPropType
16
- },
17
- description: {
18
- type: String,
19
- default: ""
20
- },
21
- status: {
22
- type: String,
23
- values: ["", "wait", "process", "finish", "error", "success"],
24
- default: ""
13
+ const __default__ = {
14
+ name: "ElStep"
15
+ };
16
+ const _sfc_main = vue.defineComponent({
17
+ ...__default__,
18
+ props: item.stepProps,
19
+ setup(__props) {
20
+ const props = __props;
21
+ const ns = index.useNamespace("step");
22
+ const index$2 = vue.ref(-1);
23
+ const lineStyle = vue.ref({});
24
+ const internalStatus = vue.ref("");
25
+ const parent = vue.inject("ElSteps");
26
+ const currentInstance = vue.getCurrentInstance();
27
+ vue.onMounted(() => {
28
+ vue.watch([
29
+ () => parent.props.active,
30
+ () => parent.props.processStatus,
31
+ () => parent.props.finishStatus
32
+ ], ([active]) => {
33
+ updateStatus(active);
34
+ }, { immediate: true });
35
+ });
36
+ vue.onBeforeUnmount(() => {
37
+ parent.steps.value = parent.steps.value.filter((instance) => instance.uid !== (currentInstance == null ? void 0 : currentInstance.uid));
38
+ });
39
+ const currentStatus = vue.computed(() => {
40
+ return props.status || internalStatus.value;
41
+ });
42
+ const prevStatus = vue.computed(() => {
43
+ const prevStep = parent.steps.value[index$2.value - 1];
44
+ return prevStep ? prevStep.currentStatus : "wait";
45
+ });
46
+ const isCenter = vue.computed(() => {
47
+ return parent.props.alignCenter;
48
+ });
49
+ const isVertical = vue.computed(() => {
50
+ return parent.props.direction === "vertical";
51
+ });
52
+ const isSimple = vue.computed(() => {
53
+ return parent.props.simple;
54
+ });
55
+ const stepsCount = vue.computed(() => {
56
+ return parent.steps.value.length;
57
+ });
58
+ const isLast = vue.computed(() => {
59
+ var _a;
60
+ return ((_a = parent.steps.value[stepsCount.value - 1]) == null ? void 0 : _a.uid) === (currentInstance == null ? void 0 : currentInstance.uid);
61
+ });
62
+ const space = vue.computed(() => {
63
+ return isSimple.value ? "" : parent.props.space;
64
+ });
65
+ const style = vue.computed(() => {
66
+ const style2 = {
67
+ flexBasis: typeof space.value === "number" ? `${space.value}px` : space.value ? space.value : `${100 / (stepsCount.value - (isCenter.value ? 0 : 1))}%`
68
+ };
69
+ if (isVertical.value)
70
+ return style2;
71
+ if (isLast.value) {
72
+ style2.maxWidth = `${100 / stepsCount.value}%`;
73
+ }
74
+ return style2;
75
+ });
76
+ const setIndex = (val) => {
77
+ index$2.value = val;
78
+ };
79
+ const calcProgress = (status) => {
80
+ let step = 100;
81
+ const style2 = {};
82
+ style2.transitionDelay = `${150 * index$2.value}ms`;
83
+ if (status === parent.props.processStatus) {
84
+ step = 0;
85
+ } else if (status === "wait") {
86
+ step = 0;
87
+ style2.transitionDelay = `${-150 * index$2.value}ms`;
88
+ }
89
+ style2.borderWidth = step && !isSimple.value ? "1px" : 0;
90
+ style2[parent.props.direction === "vertical" ? "height" : "width"] = `${step}%`;
91
+ lineStyle.value = style2;
92
+ };
93
+ const updateStatus = (activeIndex) => {
94
+ if (activeIndex > index$2.value) {
95
+ internalStatus.value = parent.props.finishStatus;
96
+ } else if (activeIndex === index$2.value && prevStatus.value !== "error") {
97
+ internalStatus.value = parent.props.processStatus;
98
+ } else {
99
+ internalStatus.value = "wait";
100
+ }
101
+ const prevChild = parent.steps.value[stepsCount.value - 1];
102
+ if (prevChild)
103
+ prevChild.calcProgress(internalStatus.value);
104
+ };
105
+ const stepItemState = vue.reactive({
106
+ uid: vue.computed(() => currentInstance == null ? void 0 : currentInstance.uid),
107
+ currentStatus,
108
+ setIndex,
109
+ calcProgress
110
+ });
111
+ parent.steps.value = [...parent.steps.value, stepItemState];
112
+ return (_ctx, _cache) => {
113
+ return vue.openBlock(), vue.createElementBlock("div", {
114
+ style: vue.normalizeStyle(vue.unref(style)),
115
+ class: vue.normalizeClass([
116
+ vue.unref(ns).b(),
117
+ vue.unref(ns).is(vue.unref(isSimple) ? "simple" : vue.unref(parent).props.direction),
118
+ vue.unref(ns).is("flex", vue.unref(isLast) && !vue.unref(space) && !vue.unref(isCenter)),
119
+ vue.unref(ns).is("center", vue.unref(isCenter) && !vue.unref(isVertical) && !vue.unref(isSimple))
120
+ ])
121
+ }, [
122
+ vue.createCommentVNode(" icon & line "),
123
+ vue.createElementVNode("div", {
124
+ class: vue.normalizeClass([vue.unref(ns).e("head"), vue.unref(ns).is(vue.unref(currentStatus))])
125
+ }, [
126
+ !vue.unref(isSimple) ? (vue.openBlock(), vue.createElementBlock("div", {
127
+ key: 0,
128
+ class: vue.normalizeClass(vue.unref(ns).e("line"))
129
+ }, [
130
+ vue.createElementVNode("i", {
131
+ class: vue.normalizeClass(vue.unref(ns).e("line-inner")),
132
+ style: vue.normalizeStyle(lineStyle.value)
133
+ }, null, 6)
134
+ ], 2)) : vue.createCommentVNode("v-if", true),
135
+ vue.createElementVNode("div", {
136
+ class: vue.normalizeClass([vue.unref(ns).e("icon"), vue.unref(ns).is(_ctx.icon || _ctx.$slots.icon ? "icon" : "text")])
137
+ }, [
138
+ vue.unref(currentStatus) !== "success" && vue.unref(currentStatus) !== "error" ? vue.renderSlot(_ctx.$slots, "icon", { key: 0 }, () => [
139
+ _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), {
140
+ key: 0,
141
+ class: vue.normalizeClass(vue.unref(ns).e("icon-inner"))
142
+ }, {
143
+ default: vue.withCtx(() => [
144
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.icon)))
145
+ ]),
146
+ _: 1
147
+ }, 8, ["class"])) : vue.createCommentVNode("v-if", true),
148
+ !_ctx.icon && !vue.unref(isSimple) ? (vue.openBlock(), vue.createElementBlock("div", {
149
+ key: 1,
150
+ class: vue.normalizeClass(vue.unref(ns).e("icon-inner"))
151
+ }, vue.toDisplayString(index$2.value + 1), 3)) : vue.createCommentVNode("v-if", true)
152
+ ]) : (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), {
153
+ key: 1,
154
+ class: vue.normalizeClass([vue.unref(ns).e("icon-inner"), vue.unref(ns).is("status")])
155
+ }, {
156
+ default: vue.withCtx(() => [
157
+ vue.unref(currentStatus) === "success" ? (vue.openBlock(), vue.createBlock(vue.unref(iconsVue.Check), { key: 0 })) : (vue.openBlock(), vue.createBlock(vue.unref(iconsVue.Close), { key: 1 }))
158
+ ]),
159
+ _: 1
160
+ }, 8, ["class"]))
161
+ ], 2)
162
+ ], 2),
163
+ vue.createCommentVNode(" title & description "),
164
+ vue.createElementVNode("div", {
165
+ class: vue.normalizeClass(vue.unref(ns).e("main"))
166
+ }, [
167
+ vue.createElementVNode("div", {
168
+ class: vue.normalizeClass([vue.unref(ns).e("title"), vue.unref(ns).is(vue.unref(currentStatus))])
169
+ }, [
170
+ vue.renderSlot(_ctx.$slots, "title", {}, () => [
171
+ vue.createTextVNode(vue.toDisplayString(_ctx.title), 1)
172
+ ])
173
+ ], 2),
174
+ vue.unref(isSimple) ? (vue.openBlock(), vue.createElementBlock("div", {
175
+ key: 0,
176
+ class: vue.normalizeClass(vue.unref(ns).e("arrow"))
177
+ }, null, 2)) : (vue.openBlock(), vue.createElementBlock("div", {
178
+ key: 1,
179
+ class: vue.normalizeClass([vue.unref(ns).e("description"), vue.unref(ns).is(vue.unref(currentStatus))])
180
+ }, [
181
+ vue.renderSlot(_ctx.$slots, "description", {}, () => [
182
+ vue.createTextVNode(vue.toDisplayString(_ctx.description), 1)
183
+ ])
184
+ ], 2))
185
+ ], 2)
186
+ ], 6);
187
+ };
25
188
  }
26
189
  });
190
+ var Step = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/steps/src/item.vue"]]);
27
191
 
28
- exports.stepProps = stepProps;
192
+ exports["default"] = Step;
29
193
  //# sourceMappingURL=item2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"item2.js","sources":["../../../../../../packages/components/steps/src/item.ts"],"sourcesContent":["import { buildProps, iconPropType } from '@element-plus/utils'\nimport type Step from './item.vue'\nimport type { ExtractPropTypes } from 'vue'\n\nexport const stepProps = buildProps({\n title: {\n type: String,\n default: '',\n },\n icon: {\n type: iconPropType,\n },\n description: {\n type: String,\n default: '',\n },\n status: {\n type: String,\n values: ['', 'wait', 'process', 'finish', 'error', 'success'],\n default: '',\n },\n} as const)\n\nexport type StepProps = ExtractPropTypes<typeof stepProps>\n\nexport type StepInstance = InstanceType<typeof Step>\n"],"names":["buildProps","iconPropType"],"mappings":";;;;;;;;AACY,MAAC,SAAS,GAAGA,kBAAU,CAAC;AACpC,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAEC,iBAAY;AACtB,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,CAAC;AACjE,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,CAAC;;;;"}
1
+ {"version":3,"file":"item2.js","sources":["../../../../../../packages/components/steps/src/item.vue"],"sourcesContent":["<template>\n <div\n :style=\"style\"\n :class=\"[\n ns.b(),\n ns.is(isSimple ? 'simple' : parent.props.direction),\n ns.is('flex', isLast && !space && !isCenter),\n ns.is('center', isCenter && !isVertical && !isSimple),\n ]\"\n >\n <!-- icon & line -->\n <div :class=\"[ns.e('head'), ns.is(currentStatus)]\">\n <div v-if=\"!isSimple\" :class=\"ns.e('line')\">\n <i :class=\"ns.e('line-inner')\" :style=\"lineStyle\" />\n </div>\n\n <div\n :class=\"[ns.e('icon'), ns.is(icon || $slots.icon ? 'icon' : 'text')]\"\n >\n <slot\n v-if=\"currentStatus !== 'success' && currentStatus !== 'error'\"\n name=\"icon\"\n >\n <el-icon v-if=\"icon\" :class=\"ns.e('icon-inner')\">\n <component :is=\"icon\" />\n </el-icon>\n <div v-if=\"!icon && !isSimple\" :class=\"ns.e('icon-inner')\">\n {{ index + 1 }}\n </div>\n </slot>\n <el-icon v-else :class=\"[ns.e('icon-inner'), ns.is('status')]\">\n <Check v-if=\"currentStatus === 'success'\" />\n <Close v-else />\n </el-icon>\n </div>\n </div>\n <!-- title & description -->\n <div :class=\"ns.e('main')\">\n <div :class=\"[ns.e('title'), ns.is(currentStatus)]\">\n <slot name=\"title\">{{ title }}</slot>\n </div>\n <div v-if=\"isSimple\" :class=\"ns.e('arrow')\" />\n <div v-else :class=\"[ns.e('description'), ns.is(currentStatus)]\">\n <slot name=\"description\">{{ description }}</slot>\n </div>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport {\n computed,\n getCurrentInstance,\n inject,\n onBeforeUnmount,\n onMounted,\n reactive,\n ref,\n watch,\n} from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { Check, Close } from '@element-plus/icons-vue'\nimport { stepProps } from './item'\n\nimport type { CSSProperties, Ref } from 'vue'\n\nexport interface IStepsProps {\n space: number | string\n active: number\n direction: string\n alignCenter: boolean\n simple: boolean\n finishStatus: string\n processStatus: string\n}\n\nexport interface StepItemState {\n uid: number | undefined\n currentStatus: string\n setIndex: (val: number) => void\n calcProgress: (status: string) => void\n}\n\nexport interface IStepsInject {\n props: IStepsProps\n steps: Ref<StepItemState[]>\n}\n\ndefineOptions({\n name: 'ElStep',\n})\n\nconst props = defineProps(stepProps)\nconst ns = useNamespace('step')\nconst index = ref(-1)\nconst lineStyle = ref({})\nconst internalStatus = ref('')\nconst parent = inject('ElSteps') as IStepsInject\nconst currentInstance = getCurrentInstance()\n\nonMounted(() => {\n watch(\n [\n () => parent.props.active,\n () => parent.props.processStatus,\n () => parent.props.finishStatus,\n ],\n ([active]) => {\n updateStatus(active)\n },\n { immediate: true }\n )\n})\n\nonBeforeUnmount(() => {\n parent.steps.value = parent.steps.value.filter(\n (instance) => instance.uid !== currentInstance?.uid\n )\n})\n\nconst currentStatus = computed(() => {\n return props.status || internalStatus.value\n})\n\nconst prevStatus = computed(() => {\n const prevStep = parent.steps.value[index.value - 1]\n return prevStep ? prevStep.currentStatus : 'wait'\n})\n\nconst isCenter = computed(() => {\n return parent.props.alignCenter\n})\n\nconst isVertical = computed(() => {\n return parent.props.direction === 'vertical'\n})\n\nconst isSimple = computed(() => {\n return parent.props.simple\n})\n\nconst stepsCount = computed(() => {\n return parent.steps.value.length\n})\n\nconst isLast = computed(() => {\n return parent.steps.value[stepsCount.value - 1]?.uid === currentInstance?.uid\n})\n\nconst space = computed(() => {\n return isSimple.value ? '' : parent.props.space\n})\n\nconst style = computed(() => {\n const style: CSSProperties = {\n flexBasis:\n typeof space.value === 'number'\n ? `${space.value}px`\n : space.value\n ? space.value\n : `${100 / (stepsCount.value - (isCenter.value ? 0 : 1))}%`,\n }\n if (isVertical.value) return style\n if (isLast.value) {\n style.maxWidth = `${100 / stepsCount.value}%`\n }\n return style\n})\n\nconst setIndex = (val: number) => {\n index.value = val\n}\n\nconst calcProgress = (status: string) => {\n let step = 100\n const style: CSSProperties = {}\n style.transitionDelay = `${150 * index.value}ms`\n if (status === parent.props.processStatus) {\n step = 0\n } else if (status === 'wait') {\n step = 0\n style.transitionDelay = `${-150 * index.value}ms`\n }\n style.borderWidth = step && !isSimple.value ? '1px' : 0\n style[parent.props.direction === 'vertical' ? 'height' : 'width'] = `${step}%`\n lineStyle.value = style\n}\n\nconst updateStatus = (activeIndex: number) => {\n if (activeIndex > index.value) {\n internalStatus.value = parent.props.finishStatus\n } else if (activeIndex === index.value && prevStatus.value !== 'error') {\n internalStatus.value = parent.props.processStatus\n } else {\n internalStatus.value = 'wait'\n }\n const prevChild = parent.steps.value[stepsCount.value - 1]\n if (prevChild) prevChild.calcProgress(internalStatus.value)\n}\n\nconst stepItemState = reactive({\n uid: computed(() => currentInstance?.uid),\n currentStatus,\n setIndex,\n calcProgress,\n})\n\nparent.steps.value = [...parent.steps.value, stepItemState]\n</script>\n"],"names":["useNamespace","index","ref","inject","getCurrentInstance","onMounted","watch","onBeforeUnmount","computed","reactive"],"mappings":"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"}
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  require('../../utils/index.js');
6
- var tag$1 = require('./src/tag.js');
7
- var tag = require('./src/tag2.js');
6
+ var tag$1 = require('./src/tag2.js');
7
+ var tag = require('./src/tag.js');
8
8
  var install = require('../../utils/vue/install.js');
9
9
 
10
10
  const ElTag = install.withInstall(tag$1["default"]);
@@ -2,100 +2,41 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var vue = require('vue');
6
- var index$2 = require('../../icon/index.js');
7
- var iconsVue = require('@element-plus/icons-vue');
8
- require('../../../hooks/index.js');
9
- var tag = require('./tag2.js');
10
- var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
11
- var index = require('../../../hooks/use-common-props/index.js');
12
- var index$1 = require('../../../hooks/use-namespace/index.js');
5
+ require('../../../utils/index.js');
6
+ require('../../../constants/index.js');
7
+ var runtime = require('../../../utils/vue/props/runtime.js');
8
+ var size = require('../../../constants/size.js');
13
9
 
14
- const __default__ = {
15
- name: "ElTag"
16
- };
17
- const _sfc_main = /* @__PURE__ */ vue.defineComponent({
18
- ...__default__,
19
- props: tag.tagProps,
20
- emits: tag.tagEmits,
21
- setup(__props, { emit }) {
22
- const props = __props;
23
- const tagSize = index.useSize();
24
- const ns = index$1.useNamespace("tag");
25
- const classes = vue.computed(() => {
26
- const { type, hit, effect, closable, round } = props;
27
- return [
28
- ns.b(),
29
- ns.is("closable", closable),
30
- ns.m(type),
31
- ns.m(tagSize.value),
32
- ns.m(effect),
33
- ns.is("hit", hit),
34
- ns.is("round", round)
35
- ];
36
- });
37
- const handleClose = (event) => {
38
- emit("close", event);
39
- };
40
- const handleClick = (event) => {
41
- emit("click", event);
42
- };
43
- return (_ctx, _cache) => {
44
- return _ctx.disableTransitions ? (vue.openBlock(), vue.createElementBlock("span", {
45
- key: 0,
46
- class: vue.normalizeClass(vue.unref(classes)),
47
- style: vue.normalizeStyle({ backgroundColor: _ctx.color }),
48
- onClick: handleClick
49
- }, [
50
- vue.createElementVNode("span", {
51
- class: vue.normalizeClass(vue.unref(ns).e("content"))
52
- }, [
53
- vue.renderSlot(_ctx.$slots, "default")
54
- ], 2),
55
- _ctx.closable ? (vue.openBlock(), vue.createBlock(vue.unref(index$2.ElIcon), {
56
- key: 0,
57
- class: vue.normalizeClass(vue.unref(ns).e("close")),
58
- onClick: vue.withModifiers(handleClose, ["stop"])
59
- }, {
60
- default: vue.withCtx(() => [
61
- vue.createVNode(vue.unref(iconsVue.Close))
62
- ]),
63
- _: 1
64
- }, 8, ["class", "onClick"])) : vue.createCommentVNode("v-if", true)
65
- ], 6)) : (vue.openBlock(), vue.createBlock(vue.Transition, {
66
- key: 1,
67
- name: `${vue.unref(ns).namespace.value}-zoom-in-center`,
68
- appear: ""
69
- }, {
70
- default: vue.withCtx(() => [
71
- vue.createElementVNode("span", {
72
- class: vue.normalizeClass(vue.unref(classes)),
73
- style: vue.normalizeStyle({ backgroundColor: _ctx.color }),
74
- onClick: handleClick
75
- }, [
76
- vue.createElementVNode("span", {
77
- class: vue.normalizeClass(vue.unref(ns).e("content"))
78
- }, [
79
- vue.renderSlot(_ctx.$slots, "default")
80
- ], 2),
81
- _ctx.closable ? (vue.openBlock(), vue.createBlock(vue.unref(index$2.ElIcon), {
82
- key: 0,
83
- class: vue.normalizeClass(vue.unref(ns).e("close")),
84
- onClick: vue.withModifiers(handleClose, ["stop"])
85
- }, {
86
- default: vue.withCtx(() => [
87
- vue.createVNode(vue.unref(iconsVue.Close))
88
- ]),
89
- _: 1
90
- }, 8, ["class", "onClick"])) : vue.createCommentVNode("v-if", true)
91
- ], 6)
92
- ]),
93
- _: 3
94
- }, 8, ["name"]));
95
- };
96
- }
10
+ const tagProps = runtime.buildProps({
11
+ closable: Boolean,
12
+ type: {
13
+ type: String,
14
+ values: ["success", "info", "warning", "danger", ""],
15
+ default: ""
16
+ },
17
+ hit: Boolean,
18
+ disableTransitions: Boolean,
19
+ color: {
20
+ type: String,
21
+ default: ""
22
+ },
23
+ size: {
24
+ type: String,
25
+ values: size.componentSizes,
26
+ default: ""
27
+ },
28
+ effect: {
29
+ type: String,
30
+ values: ["dark", "light", "plain"],
31
+ default: "light"
32
+ },
33
+ round: Boolean
97
34
  });
98
- var Tag = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);
35
+ const tagEmits = {
36
+ close: (evt) => evt instanceof MouseEvent,
37
+ click: (evt) => evt instanceof MouseEvent
38
+ };
99
39
 
100
- exports["default"] = Tag;
40
+ exports.tagEmits = tagEmits;
41
+ exports.tagProps = tagProps;
101
42
  //# sourceMappingURL=tag.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tag.js","sources":["../../../../../../packages/components/tag/src/tag.vue"],"sourcesContent":["<template>\n <span\n v-if=\"disableTransitions\"\n :class=\"classes\"\n :style=\"{ backgroundColor: color }\"\n @click=\"handleClick\"\n >\n <span :class=\"ns.e('content')\">\n <slot />\n </span>\n <el-icon v-if=\"closable\" :class=\"ns.e('close')\" @click.stop=\"handleClose\">\n <Close />\n </el-icon>\n </span>\n <transition v-else :name=\"`${ns.namespace.value}-zoom-in-center`\" appear>\n <span\n :class=\"classes\"\n :style=\"{ backgroundColor: color }\"\n @click=\"handleClick\"\n >\n <span :class=\"ns.e('content')\">\n <slot />\n </span>\n <el-icon v-if=\"closable\" :class=\"ns.e('close')\" @click.stop=\"handleClose\">\n <Close />\n </el-icon>\n </span>\n </transition>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport ElIcon from '@element-plus/components/icon'\nimport { Close } from '@element-plus/icons-vue'\n\nimport { useNamespace, useSize } from '@element-plus/hooks'\nimport { tagEmits, tagProps } from './tag'\n\ndefineOptions({\n name: 'ElTag',\n})\nconst props = defineProps(tagProps)\nconst emit = defineEmits(tagEmits)\n\nconst tagSize = useSize()\nconst ns = useNamespace('tag')\nconst classes = computed(() => {\n const { type, hit, effect, closable, round } = props\n return [\n ns.b(),\n ns.is('closable', closable),\n ns.m(type),\n ns.m(tagSize.value),\n ns.m(effect),\n ns.is('hit', hit),\n ns.is('round', round),\n ]\n})\n\n// methods\nconst handleClose = (event: MouseEvent) => {\n emit('close', event)\n}\n\nconst handleClick = (event: MouseEvent) => {\n emit('click', event)\n}\n</script>\n"],"names":["useSize","useNamespace","computed"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AA4CA,IAAA,MAAA,UAAAA,aAAA,EAAA,CAAA;AACA,IAAA,MAAA,EAAA,GAAAC,qBAAA,KAAA,CAAA,CAAA;AACA,IAAA,MAAA,OAAA,GAAAC,aAAA,MAAA;AACA,MAAA,MAAA,EAAA,IAAA,EAAA,GAAA,EAAA,MAAA,EAAA,UAAA,KAAA,EAAA,GAAA,KAAA,CAAA;AACA,MAAA,OAAA;AAAA,QACA,GAAA,CAAA,EAAA;AAAA,QACA,EAAA,CAAA,EAAA,CAAA,UAAA,EAAA,QAAA,CAAA;AAAA,QACA,EAAA,CAAA,EAAA,IAAA,CAAA;AAAA,QACA,EAAA,CAAA,CAAA,CAAA,OAAA,CAAA,KAAA,CAAA;AAAA,QACA,EAAA,CAAA,EAAA,MAAA,CAAA;AAAA,QACA,EAAA,CAAA,EAAA,CAAA,KAAA,EAAA,GAAA,CAAA;AAAA,QACA,EAAA,CAAA,EAAA,CAAA,OAAA,EAAA,KAAA,CAAA;AAAA,OACA,CAAA;AAAA,KACA,CAAA,CAAA;AAGA,IAAA,MAAA,WAAA,GAAA,CAAA,KAAA,KAAA;AACA,MAAA,IAAA,CAAA,SAAA,KAAA,CAAA,CAAA;AAAA,KACA,CAAA;AAEA,IAAA,MAAA,WAAA,GAAA,CAAA,KAAA,KAAA;AACA,MAAA,IAAA,CAAA,SAAA,KAAA,CAAA,CAAA;AAAA,KACA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"tag.js","sources":["../../../../../../packages/components/tag/src/tag.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport { componentSizes } from '@element-plus/constants'\nimport type Tag from './tag.vue'\n\nimport type { ExtractPropTypes } from 'vue'\n\nexport const tagProps = buildProps({\n closable: Boolean,\n type: {\n type: String,\n values: ['success', 'info', 'warning', 'danger', ''],\n default: '',\n },\n hit: Boolean,\n disableTransitions: Boolean,\n color: {\n type: String,\n default: '',\n },\n size: {\n type: String,\n values: componentSizes,\n default: '',\n },\n effect: {\n type: String,\n values: ['dark', 'light', 'plain'],\n default: 'light',\n },\n round: Boolean,\n} as const)\nexport type TagProps = ExtractPropTypes<typeof tagProps>\n\nexport const tagEmits = {\n close: (evt: MouseEvent) => evt instanceof MouseEvent,\n click: (evt: MouseEvent) => evt instanceof MouseEvent,\n}\nexport type TagEmits = typeof tagEmits\n\nexport type TagInstance = InstanceType<typeof Tag>\n"],"names":["buildProps","componentSizes"],"mappings":";;;;;;;;;AAEY,MAAC,QAAQ,GAAGA,kBAAU,CAAC;AACnC,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,CAAC;AACxD,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,GAAG,EAAE,OAAO;AACd,EAAE,kBAAkB,EAAE,OAAO;AAC7B,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,EAAEC,mBAAc;AAC1B,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC;AACtC,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,EAAE,KAAK,EAAE,OAAO;AAChB,CAAC,EAAE;AACS,MAAC,QAAQ,GAAG;AACxB,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC3C,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC3C;;;;;"}
@@ -2,41 +2,100 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('../../../utils/index.js');
6
- require('../../../constants/index.js');
7
- var runtime = require('../../../utils/vue/props/runtime.js');
8
- var size = require('../../../constants/size.js');
5
+ var vue = require('vue');
6
+ var index$2 = require('../../icon/index.js');
7
+ var iconsVue = require('@element-plus/icons-vue');
8
+ require('../../../hooks/index.js');
9
+ var tag = require('./tag.js');
10
+ var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
11
+ var index = require('../../../hooks/use-common-props/index.js');
12
+ var index$1 = require('../../../hooks/use-namespace/index.js');
9
13
 
10
- const tagProps = runtime.buildProps({
11
- closable: Boolean,
12
- type: {
13
- type: String,
14
- values: ["success", "info", "warning", "danger", ""],
15
- default: ""
16
- },
17
- hit: Boolean,
18
- disableTransitions: Boolean,
19
- color: {
20
- type: String,
21
- default: ""
22
- },
23
- size: {
24
- type: String,
25
- values: size.componentSizes,
26
- default: ""
27
- },
28
- effect: {
29
- type: String,
30
- values: ["dark", "light", "plain"],
31
- default: "light"
32
- },
33
- round: Boolean
34
- });
35
- const tagEmits = {
36
- close: (evt) => evt instanceof MouseEvent,
37
- click: (evt) => evt instanceof MouseEvent
14
+ const __default__ = {
15
+ name: "ElTag"
38
16
  };
17
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
18
+ ...__default__,
19
+ props: tag.tagProps,
20
+ emits: tag.tagEmits,
21
+ setup(__props, { emit }) {
22
+ const props = __props;
23
+ const tagSize = index.useSize();
24
+ const ns = index$1.useNamespace("tag");
25
+ const classes = vue.computed(() => {
26
+ const { type, hit, effect, closable, round } = props;
27
+ return [
28
+ ns.b(),
29
+ ns.is("closable", closable),
30
+ ns.m(type),
31
+ ns.m(tagSize.value),
32
+ ns.m(effect),
33
+ ns.is("hit", hit),
34
+ ns.is("round", round)
35
+ ];
36
+ });
37
+ const handleClose = (event) => {
38
+ emit("close", event);
39
+ };
40
+ const handleClick = (event) => {
41
+ emit("click", event);
42
+ };
43
+ return (_ctx, _cache) => {
44
+ return _ctx.disableTransitions ? (vue.openBlock(), vue.createElementBlock("span", {
45
+ key: 0,
46
+ class: vue.normalizeClass(vue.unref(classes)),
47
+ style: vue.normalizeStyle({ backgroundColor: _ctx.color }),
48
+ onClick: handleClick
49
+ }, [
50
+ vue.createElementVNode("span", {
51
+ class: vue.normalizeClass(vue.unref(ns).e("content"))
52
+ }, [
53
+ vue.renderSlot(_ctx.$slots, "default")
54
+ ], 2),
55
+ _ctx.closable ? (vue.openBlock(), vue.createBlock(vue.unref(index$2.ElIcon), {
56
+ key: 0,
57
+ class: vue.normalizeClass(vue.unref(ns).e("close")),
58
+ onClick: vue.withModifiers(handleClose, ["stop"])
59
+ }, {
60
+ default: vue.withCtx(() => [
61
+ vue.createVNode(vue.unref(iconsVue.Close))
62
+ ]),
63
+ _: 1
64
+ }, 8, ["class", "onClick"])) : vue.createCommentVNode("v-if", true)
65
+ ], 6)) : (vue.openBlock(), vue.createBlock(vue.Transition, {
66
+ key: 1,
67
+ name: `${vue.unref(ns).namespace.value}-zoom-in-center`,
68
+ appear: ""
69
+ }, {
70
+ default: vue.withCtx(() => [
71
+ vue.createElementVNode("span", {
72
+ class: vue.normalizeClass(vue.unref(classes)),
73
+ style: vue.normalizeStyle({ backgroundColor: _ctx.color }),
74
+ onClick: handleClick
75
+ }, [
76
+ vue.createElementVNode("span", {
77
+ class: vue.normalizeClass(vue.unref(ns).e("content"))
78
+ }, [
79
+ vue.renderSlot(_ctx.$slots, "default")
80
+ ], 2),
81
+ _ctx.closable ? (vue.openBlock(), vue.createBlock(vue.unref(index$2.ElIcon), {
82
+ key: 0,
83
+ class: vue.normalizeClass(vue.unref(ns).e("close")),
84
+ onClick: vue.withModifiers(handleClose, ["stop"])
85
+ }, {
86
+ default: vue.withCtx(() => [
87
+ vue.createVNode(vue.unref(iconsVue.Close))
88
+ ]),
89
+ _: 1
90
+ }, 8, ["class", "onClick"])) : vue.createCommentVNode("v-if", true)
91
+ ], 6)
92
+ ]),
93
+ _: 3
94
+ }, 8, ["name"]));
95
+ };
96
+ }
97
+ });
98
+ var Tag = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);
39
99
 
40
- exports.tagEmits = tagEmits;
41
- exports.tagProps = tagProps;
100
+ exports["default"] = Tag;
42
101
  //# sourceMappingURL=tag2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tag2.js","sources":["../../../../../../packages/components/tag/src/tag.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport { componentSizes } from '@element-plus/constants'\nimport type Tag from './tag.vue'\n\nimport type { ExtractPropTypes } from 'vue'\n\nexport const tagProps = buildProps({\n closable: Boolean,\n type: {\n type: String,\n values: ['success', 'info', 'warning', 'danger', ''],\n default: '',\n },\n hit: Boolean,\n disableTransitions: Boolean,\n color: {\n type: String,\n default: '',\n },\n size: {\n type: String,\n values: componentSizes,\n default: '',\n },\n effect: {\n type: String,\n values: ['dark', 'light', 'plain'],\n default: 'light',\n },\n round: Boolean,\n} as const)\nexport type TagProps = ExtractPropTypes<typeof tagProps>\n\nexport const tagEmits = {\n close: (evt: MouseEvent) => evt instanceof MouseEvent,\n click: (evt: MouseEvent) => evt instanceof MouseEvent,\n}\nexport type TagEmits = typeof tagEmits\n\nexport type TagInstance = InstanceType<typeof Tag>\n"],"names":["buildProps","componentSizes"],"mappings":";;;;;;;;;AAEY,MAAC,QAAQ,GAAGA,kBAAU,CAAC;AACnC,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,CAAC;AACxD,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,GAAG,EAAE,OAAO;AACd,EAAE,kBAAkB,EAAE,OAAO;AAC7B,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,EAAEC,mBAAc;AAC1B,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC;AACtC,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,EAAE,KAAK,EAAE,OAAO;AAChB,CAAC,EAAE;AACS,MAAC,QAAQ,GAAG;AACxB,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC3C,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC3C;;;;;"}
1
+ {"version":3,"file":"tag2.js","sources":["../../../../../../packages/components/tag/src/tag.vue"],"sourcesContent":["<template>\n <span\n v-if=\"disableTransitions\"\n :class=\"classes\"\n :style=\"{ backgroundColor: color }\"\n @click=\"handleClick\"\n >\n <span :class=\"ns.e('content')\">\n <slot />\n </span>\n <el-icon v-if=\"closable\" :class=\"ns.e('close')\" @click.stop=\"handleClose\">\n <Close />\n </el-icon>\n </span>\n <transition v-else :name=\"`${ns.namespace.value}-zoom-in-center`\" appear>\n <span\n :class=\"classes\"\n :style=\"{ backgroundColor: color }\"\n @click=\"handleClick\"\n >\n <span :class=\"ns.e('content')\">\n <slot />\n </span>\n <el-icon v-if=\"closable\" :class=\"ns.e('close')\" @click.stop=\"handleClose\">\n <Close />\n </el-icon>\n </span>\n </transition>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport ElIcon from '@element-plus/components/icon'\nimport { Close } from '@element-plus/icons-vue'\n\nimport { useNamespace, useSize } from '@element-plus/hooks'\nimport { tagEmits, tagProps } from './tag'\n\ndefineOptions({\n name: 'ElTag',\n})\nconst props = defineProps(tagProps)\nconst emit = defineEmits(tagEmits)\n\nconst tagSize = useSize()\nconst ns = useNamespace('tag')\nconst classes = computed(() => {\n const { type, hit, effect, closable, round } = props\n return [\n ns.b(),\n ns.is('closable', closable),\n ns.m(type),\n ns.m(tagSize.value),\n ns.m(effect),\n ns.is('hit', hit),\n ns.is('round', round),\n ]\n})\n\n// methods\nconst handleClose = (event: MouseEvent) => {\n emit('close', event)\n}\n\nconst handleClick = (event: MouseEvent) => {\n emit('click', event)\n}\n</script>\n"],"names":["useSize","useNamespace","computed"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AA4CA,IAAA,MAAA,UAAAA,aAAA,EAAA,CAAA;AACA,IAAA,MAAA,EAAA,GAAAC,qBAAA,KAAA,CAAA,CAAA;AACA,IAAA,MAAA,OAAA,GAAAC,aAAA,MAAA;AACA,MAAA,MAAA,EAAA,IAAA,EAAA,GAAA,EAAA,MAAA,EAAA,UAAA,KAAA,EAAA,GAAA,KAAA,CAAA;AACA,MAAA,OAAA;AAAA,QACA,GAAA,CAAA,EAAA;AAAA,QACA,EAAA,CAAA,EAAA,CAAA,UAAA,EAAA,QAAA,CAAA;AAAA,QACA,EAAA,CAAA,EAAA,IAAA,CAAA;AAAA,QACA,EAAA,CAAA,CAAA,CAAA,OAAA,CAAA,KAAA,CAAA;AAAA,QACA,EAAA,CAAA,EAAA,MAAA,CAAA;AAAA,QACA,EAAA,CAAA,EAAA,CAAA,KAAA,EAAA,GAAA,CAAA;AAAA,QACA,EAAA,CAAA,EAAA,CAAA,OAAA,EAAA,KAAA,CAAA;AAAA,OACA,CAAA;AAAA,KACA,CAAA,CAAA;AAGA,IAAA,MAAA,WAAA,GAAA,CAAA,KAAA,KAAA;AACA,MAAA,IAAA,CAAA,SAAA,KAAA,CAAA,CAAA;AAAA,KACA,CAAA;AAEA,IAAA,MAAA,WAAA,GAAA,CAAA,KAAA,KAAA;AACA,MAAA,IAAA,CAAA,SAAA,KAAA,CAAA,CAAA;AAAA,KACA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -11,7 +11,7 @@ var runtime = require('../../../utils/vue/props/runtime.js');
11
11
  var index$1 = require('../../../hooks/use-delayed-toggle/index.js');
12
12
  var content = require('../../popper/src/content.js');
13
13
  var index$2 = require('../../../hooks/use-popper-container/index.js');
14
- var trigger = require('../../popper/src/trigger.js');
14
+ var trigger = require('../../popper/src/trigger2.js');
15
15
  var aria = require('../../../constants/aria.js');
16
16
 
17
17
  const triggers = ["hover", "focus", "click", "contextmenu"];
@@ -10,7 +10,7 @@ var tokens = require('./tokens.js');
10
10
  var tooltip = require('./tooltip.js');
11
11
  var utils = require('./utils.js');
12
12
  var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
13
- var trigger = require('../../popper/src/trigger2.js');
13
+ var trigger = require('../../popper/src/trigger.js');
14
14
  var index = require('../../../hooks/use-namespace/index.js');
15
15
  var event = require('../../../utils/dom/event.js');
16
16
 
@@ -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) => {