@element-plus/nightly 0.0.20240107 → 0.0.20240108

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 (419) hide show
  1. package/attributes.json +1 -1
  2. package/dist/index.css +1 -1
  3. package/dist/index.full.js +16 -4
  4. package/dist/index.full.min.js +11 -11
  5. package/dist/index.full.min.js.map +1 -1
  6. package/dist/index.full.min.mjs +12 -12
  7. package/dist/index.full.min.mjs.map +1 -1
  8. package/dist/index.full.mjs +16 -4
  9. package/dist/locale/af.js +1 -1
  10. package/dist/locale/af.min.js +1 -1
  11. package/dist/locale/af.min.mjs +1 -1
  12. package/dist/locale/af.mjs +1 -1
  13. package/dist/locale/ar-eg.js +1 -1
  14. package/dist/locale/ar-eg.min.js +1 -1
  15. package/dist/locale/ar-eg.min.mjs +1 -1
  16. package/dist/locale/ar-eg.mjs +1 -1
  17. package/dist/locale/ar.js +1 -1
  18. package/dist/locale/ar.min.js +1 -1
  19. package/dist/locale/ar.min.mjs +1 -1
  20. package/dist/locale/ar.mjs +1 -1
  21. package/dist/locale/az.js +1 -1
  22. package/dist/locale/az.min.js +1 -1
  23. package/dist/locale/az.min.mjs +1 -1
  24. package/dist/locale/az.mjs +1 -1
  25. package/dist/locale/bg.js +1 -1
  26. package/dist/locale/bg.min.js +1 -1
  27. package/dist/locale/bg.min.mjs +1 -1
  28. package/dist/locale/bg.mjs +1 -1
  29. package/dist/locale/bn.js +1 -1
  30. package/dist/locale/bn.min.js +1 -1
  31. package/dist/locale/bn.min.mjs +1 -1
  32. package/dist/locale/bn.mjs +1 -1
  33. package/dist/locale/ca.js +1 -1
  34. package/dist/locale/ca.min.js +1 -1
  35. package/dist/locale/ca.min.mjs +1 -1
  36. package/dist/locale/ca.mjs +1 -1
  37. package/dist/locale/ckb.js +1 -1
  38. package/dist/locale/ckb.min.js +1 -1
  39. package/dist/locale/ckb.min.mjs +1 -1
  40. package/dist/locale/ckb.mjs +1 -1
  41. package/dist/locale/cs.js +1 -1
  42. package/dist/locale/cs.min.js +1 -1
  43. package/dist/locale/cs.min.mjs +1 -1
  44. package/dist/locale/cs.mjs +1 -1
  45. package/dist/locale/da.js +1 -1
  46. package/dist/locale/da.min.js +1 -1
  47. package/dist/locale/da.min.mjs +1 -1
  48. package/dist/locale/da.mjs +1 -1
  49. package/dist/locale/de.js +1 -1
  50. package/dist/locale/de.min.js +1 -1
  51. package/dist/locale/de.min.mjs +1 -1
  52. package/dist/locale/de.mjs +1 -1
  53. package/dist/locale/el.js +1 -1
  54. package/dist/locale/el.min.js +1 -1
  55. package/dist/locale/el.min.mjs +1 -1
  56. package/dist/locale/el.mjs +1 -1
  57. package/dist/locale/en.js +1 -1
  58. package/dist/locale/en.min.js +1 -1
  59. package/dist/locale/en.min.mjs +1 -1
  60. package/dist/locale/en.mjs +1 -1
  61. package/dist/locale/eo.js +1 -1
  62. package/dist/locale/eo.min.js +1 -1
  63. package/dist/locale/eo.min.mjs +1 -1
  64. package/dist/locale/eo.mjs +1 -1
  65. package/dist/locale/es.js +1 -1
  66. package/dist/locale/es.min.js +1 -1
  67. package/dist/locale/es.min.mjs +1 -1
  68. package/dist/locale/es.mjs +1 -1
  69. package/dist/locale/et.js +1 -1
  70. package/dist/locale/et.min.js +1 -1
  71. package/dist/locale/et.min.mjs +1 -1
  72. package/dist/locale/et.mjs +1 -1
  73. package/dist/locale/eu.js +1 -1
  74. package/dist/locale/eu.min.js +1 -1
  75. package/dist/locale/eu.min.mjs +1 -1
  76. package/dist/locale/eu.mjs +1 -1
  77. package/dist/locale/fa.js +1 -1
  78. package/dist/locale/fa.min.js +1 -1
  79. package/dist/locale/fa.min.mjs +1 -1
  80. package/dist/locale/fa.mjs +1 -1
  81. package/dist/locale/fi.js +1 -1
  82. package/dist/locale/fi.min.js +1 -1
  83. package/dist/locale/fi.min.mjs +1 -1
  84. package/dist/locale/fi.mjs +1 -1
  85. package/dist/locale/fr.js +1 -1
  86. package/dist/locale/fr.min.js +1 -1
  87. package/dist/locale/fr.min.mjs +1 -1
  88. package/dist/locale/fr.mjs +1 -1
  89. package/dist/locale/he.js +1 -1
  90. package/dist/locale/he.min.js +1 -1
  91. package/dist/locale/he.min.mjs +1 -1
  92. package/dist/locale/he.mjs +1 -1
  93. package/dist/locale/hr.js +1 -1
  94. package/dist/locale/hr.min.js +1 -1
  95. package/dist/locale/hr.min.mjs +1 -1
  96. package/dist/locale/hr.mjs +1 -1
  97. package/dist/locale/hu.js +1 -1
  98. package/dist/locale/hu.min.js +1 -1
  99. package/dist/locale/hu.min.mjs +1 -1
  100. package/dist/locale/hu.mjs +1 -1
  101. package/dist/locale/hy-am.js +1 -1
  102. package/dist/locale/hy-am.min.js +1 -1
  103. package/dist/locale/hy-am.min.mjs +1 -1
  104. package/dist/locale/hy-am.mjs +1 -1
  105. package/dist/locale/id.js +1 -1
  106. package/dist/locale/id.min.js +1 -1
  107. package/dist/locale/id.min.mjs +1 -1
  108. package/dist/locale/id.mjs +1 -1
  109. package/dist/locale/it.js +1 -1
  110. package/dist/locale/it.min.js +1 -1
  111. package/dist/locale/it.min.mjs +1 -1
  112. package/dist/locale/it.mjs +1 -1
  113. package/dist/locale/ja.js +1 -1
  114. package/dist/locale/ja.min.js +1 -1
  115. package/dist/locale/ja.min.mjs +1 -1
  116. package/dist/locale/ja.mjs +1 -1
  117. package/dist/locale/kk.js +1 -1
  118. package/dist/locale/kk.min.js +1 -1
  119. package/dist/locale/kk.min.mjs +1 -1
  120. package/dist/locale/kk.mjs +1 -1
  121. package/dist/locale/km.js +1 -1
  122. package/dist/locale/km.min.js +1 -1
  123. package/dist/locale/km.min.mjs +1 -1
  124. package/dist/locale/km.mjs +1 -1
  125. package/dist/locale/ko.js +1 -1
  126. package/dist/locale/ko.min.js +1 -1
  127. package/dist/locale/ko.min.mjs +1 -1
  128. package/dist/locale/ko.mjs +1 -1
  129. package/dist/locale/ku.js +1 -1
  130. package/dist/locale/ku.min.js +1 -1
  131. package/dist/locale/ku.min.mjs +1 -1
  132. package/dist/locale/ku.mjs +1 -1
  133. package/dist/locale/ky.js +1 -1
  134. package/dist/locale/ky.min.js +1 -1
  135. package/dist/locale/ky.min.mjs +1 -1
  136. package/dist/locale/ky.mjs +1 -1
  137. package/dist/locale/lt.js +1 -1
  138. package/dist/locale/lt.min.js +1 -1
  139. package/dist/locale/lt.min.mjs +1 -1
  140. package/dist/locale/lt.mjs +1 -1
  141. package/dist/locale/lv.js +1 -1
  142. package/dist/locale/lv.min.js +1 -1
  143. package/dist/locale/lv.min.mjs +1 -1
  144. package/dist/locale/lv.mjs +1 -1
  145. package/dist/locale/mg.js +1 -1
  146. package/dist/locale/mg.min.js +1 -1
  147. package/dist/locale/mg.min.mjs +1 -1
  148. package/dist/locale/mg.mjs +1 -1
  149. package/dist/locale/mn.js +1 -1
  150. package/dist/locale/mn.min.js +1 -1
  151. package/dist/locale/mn.min.mjs +1 -1
  152. package/dist/locale/mn.mjs +1 -1
  153. package/dist/locale/nb-no.js +1 -1
  154. package/dist/locale/nb-no.min.js +1 -1
  155. package/dist/locale/nb-no.min.mjs +1 -1
  156. package/dist/locale/nb-no.mjs +1 -1
  157. package/dist/locale/nl.js +1 -1
  158. package/dist/locale/nl.min.js +1 -1
  159. package/dist/locale/nl.min.mjs +1 -1
  160. package/dist/locale/nl.mjs +1 -1
  161. package/dist/locale/pa.js +1 -1
  162. package/dist/locale/pa.min.js +1 -1
  163. package/dist/locale/pa.min.mjs +1 -1
  164. package/dist/locale/pa.mjs +1 -1
  165. package/dist/locale/pl.js +1 -1
  166. package/dist/locale/pl.min.js +1 -1
  167. package/dist/locale/pl.min.mjs +1 -1
  168. package/dist/locale/pl.mjs +1 -1
  169. package/dist/locale/pt-br.js +1 -1
  170. package/dist/locale/pt-br.min.js +1 -1
  171. package/dist/locale/pt-br.min.mjs +1 -1
  172. package/dist/locale/pt-br.mjs +1 -1
  173. package/dist/locale/pt.js +1 -1
  174. package/dist/locale/pt.min.js +1 -1
  175. package/dist/locale/pt.min.mjs +1 -1
  176. package/dist/locale/pt.mjs +1 -1
  177. package/dist/locale/ro.js +1 -1
  178. package/dist/locale/ro.min.js +1 -1
  179. package/dist/locale/ro.min.mjs +1 -1
  180. package/dist/locale/ro.mjs +1 -1
  181. package/dist/locale/ru.js +1 -1
  182. package/dist/locale/ru.min.js +1 -1
  183. package/dist/locale/ru.min.mjs +1 -1
  184. package/dist/locale/ru.mjs +1 -1
  185. package/dist/locale/sk.js +1 -1
  186. package/dist/locale/sk.min.js +1 -1
  187. package/dist/locale/sk.min.mjs +1 -1
  188. package/dist/locale/sk.mjs +1 -1
  189. package/dist/locale/sl.js +1 -1
  190. package/dist/locale/sl.min.js +1 -1
  191. package/dist/locale/sl.min.mjs +1 -1
  192. package/dist/locale/sl.mjs +1 -1
  193. package/dist/locale/sr.js +1 -1
  194. package/dist/locale/sr.min.js +1 -1
  195. package/dist/locale/sr.min.mjs +1 -1
  196. package/dist/locale/sr.mjs +1 -1
  197. package/dist/locale/sv.js +1 -1
  198. package/dist/locale/sv.min.js +1 -1
  199. package/dist/locale/sv.min.mjs +1 -1
  200. package/dist/locale/sv.mjs +1 -1
  201. package/dist/locale/sw.js +1 -1
  202. package/dist/locale/sw.min.js +1 -1
  203. package/dist/locale/sw.min.mjs +1 -1
  204. package/dist/locale/sw.mjs +1 -1
  205. package/dist/locale/ta.js +1 -1
  206. package/dist/locale/ta.min.js +1 -1
  207. package/dist/locale/ta.min.mjs +1 -1
  208. package/dist/locale/ta.mjs +1 -1
  209. package/dist/locale/th.js +1 -1
  210. package/dist/locale/th.min.js +1 -1
  211. package/dist/locale/th.min.mjs +1 -1
  212. package/dist/locale/th.mjs +1 -1
  213. package/dist/locale/tk.js +1 -1
  214. package/dist/locale/tk.min.js +1 -1
  215. package/dist/locale/tk.min.mjs +1 -1
  216. package/dist/locale/tk.mjs +1 -1
  217. package/dist/locale/tr.js +1 -1
  218. package/dist/locale/tr.min.js +1 -1
  219. package/dist/locale/tr.min.mjs +1 -1
  220. package/dist/locale/tr.mjs +1 -1
  221. package/dist/locale/ug-cn.js +1 -1
  222. package/dist/locale/ug-cn.min.js +1 -1
  223. package/dist/locale/ug-cn.min.mjs +1 -1
  224. package/dist/locale/ug-cn.mjs +1 -1
  225. package/dist/locale/uk.js +1 -1
  226. package/dist/locale/uk.min.js +1 -1
  227. package/dist/locale/uk.min.mjs +1 -1
  228. package/dist/locale/uk.mjs +1 -1
  229. package/dist/locale/uz-uz.js +1 -1
  230. package/dist/locale/uz-uz.min.js +1 -1
  231. package/dist/locale/uz-uz.min.mjs +1 -1
  232. package/dist/locale/uz-uz.mjs +1 -1
  233. package/dist/locale/vi.js +1 -1
  234. package/dist/locale/vi.min.js +1 -1
  235. package/dist/locale/vi.min.mjs +1 -1
  236. package/dist/locale/vi.mjs +1 -1
  237. package/dist/locale/zh-cn.js +1 -1
  238. package/dist/locale/zh-cn.min.js +1 -1
  239. package/dist/locale/zh-cn.min.mjs +1 -1
  240. package/dist/locale/zh-cn.mjs +1 -1
  241. package/dist/locale/zh-tw.js +1 -1
  242. package/dist/locale/zh-tw.min.js +1 -1
  243. package/dist/locale/zh-tw.min.mjs +1 -1
  244. package/dist/locale/zh-tw.mjs +1 -1
  245. package/es/components/badge/index.mjs +2 -2
  246. package/es/components/badge/src/badge.mjs +55 -17
  247. package/es/components/badge/src/badge.mjs.map +1 -1
  248. package/es/components/badge/src/badge2.mjs +17 -55
  249. package/es/components/badge/src/badge2.mjs.map +1 -1
  250. package/es/components/cascader/index.mjs +2 -2
  251. package/es/components/cascader/src/cascader.mjs +65 -626
  252. package/es/components/cascader/src/cascader.mjs.map +1 -1
  253. package/es/components/cascader/src/cascader2.mjs +626 -65
  254. package/es/components/cascader/src/cascader2.mjs.map +1 -1
  255. package/es/components/checkbox/index.d.ts +18 -18
  256. package/es/components/checkbox/src/checkbox-button.vue.d.ts +6 -6
  257. package/es/components/checkbox/src/checkbox.d.ts +2 -2
  258. package/es/components/checkbox/src/checkbox.vue.d.ts +6 -6
  259. package/es/components/collapse/index.mjs +4 -4
  260. package/es/components/collapse/src/collapse-item.mjs +14 -91
  261. package/es/components/collapse/src/collapse-item.mjs.map +1 -1
  262. package/es/components/collapse/src/collapse-item2.mjs +91 -14
  263. package/es/components/collapse/src/collapse-item2.mjs.map +1 -1
  264. package/es/components/collapse/src/collapse.mjs +18 -28
  265. package/es/components/collapse/src/collapse.mjs.map +1 -1
  266. package/es/components/collapse/src/collapse2.mjs +28 -18
  267. package/es/components/collapse/src/collapse2.mjs.map +1 -1
  268. package/es/components/dialog/index.d.ts +1 -1
  269. package/es/components/dialog/src/dialog-content.vue.d.ts +1 -1
  270. package/es/components/dialog/src/dialog.vue.d.ts +1 -1
  271. package/es/components/dropdown/index.d.ts +2 -2
  272. package/es/components/dropdown/src/dropdown-item-impl.vue.d.ts +1 -1
  273. package/es/components/dropdown/src/dropdown-menu.vue.d.ts +1 -1
  274. package/es/components/empty/index.mjs +2 -2
  275. package/es/components/empty/src/empty.mjs +55 -11
  276. package/es/components/empty/src/empty.mjs.map +1 -1
  277. package/es/components/empty/src/empty2.mjs +11 -55
  278. package/es/components/empty/src/empty2.mjs.map +1 -1
  279. package/es/components/image/index.d.ts +10 -0
  280. package/es/components/image/src/image.d.ts +1 -0
  281. package/es/components/image/src/image.mjs +4 -0
  282. package/es/components/image/src/image.mjs.map +1 -1
  283. package/es/components/image/src/image.vue.d.ts +10 -0
  284. package/es/components/image/src/image2.mjs +3 -1
  285. package/es/components/image/src/image2.mjs.map +1 -1
  286. package/es/components/image-viewer/index.d.ts +5 -0
  287. package/es/components/image-viewer/src/image-viewer.d.ts +1 -0
  288. package/es/components/image-viewer/src/image-viewer.mjs +4 -0
  289. package/es/components/image-viewer/src/image-viewer.mjs.map +1 -1
  290. package/es/components/image-viewer/src/image-viewer.vue.d.ts +5 -0
  291. package/es/components/image-viewer/src/image-viewer2.mjs +3 -1
  292. package/es/components/image-viewer/src/image-viewer2.mjs.map +1 -1
  293. package/es/components/index.mjs +5 -5
  294. package/es/components/pagination/src/components/sizes.vue.d.ts +6 -6
  295. package/es/components/radio/index.d.ts +12 -12
  296. package/es/components/radio/src/radio-button.d.ts +1 -1
  297. package/es/components/radio/src/radio-button.vue.d.ts +4 -4
  298. package/es/components/radio/src/radio.d.ts +2 -2
  299. package/es/components/radio/src/radio.vue.d.ts +4 -4
  300. package/es/components/select/index.d.ts +6 -6
  301. package/es/components/select/src/option.vue.d.ts +2 -2
  302. package/es/components/select/src/select.vue.d.ts +2 -2
  303. package/es/components/time-picker/src/common/picker.vue.d.ts +1 -1
  304. package/es/components/time-select/index.d.ts +20 -20
  305. package/es/components/time-select/src/time-select.vue.d.ts +10 -10
  306. package/es/components/tooltip-v2/index.mjs +1 -1
  307. package/es/components/tooltip-v2/src/arrow.mjs +37 -22
  308. package/es/components/tooltip-v2/src/arrow.mjs.map +1 -1
  309. package/es/components/tooltip-v2/src/arrow2.mjs +22 -37
  310. package/es/components/tooltip-v2/src/arrow2.mjs.map +1 -1
  311. package/es/components/tooltip-v2/src/tooltip.mjs +1 -1
  312. package/es/components/tooltip-v2/src/tooltip2.mjs +2 -2
  313. package/es/components/tour/src/mask.mjs +78 -19
  314. package/es/components/tour/src/mask.mjs.map +1 -1
  315. package/es/components/tour/src/mask2.mjs +19 -78
  316. package/es/components/tour/src/mask2.mjs.map +1 -1
  317. package/es/components/tour/src/tour2.mjs +1 -1
  318. package/es/components/transfer/index.d.ts +60 -60
  319. package/es/components/transfer/src/transfer-panel.vue.d.ts +12 -12
  320. package/es/components/transfer/src/transfer.vue.d.ts +60 -60
  321. package/es/components/tree-select/src/tree-select-option.d.ts +8 -8
  322. package/es/components/tree-v2/index.d.ts +12 -12
  323. package/es/components/tree-v2/src/tree-node.vue.d.ts +12 -12
  324. package/es/components/tree-v2/src/tree.vue.d.ts +12 -12
  325. package/es/index.mjs +5 -5
  326. package/es/version.d.ts +1 -1
  327. package/es/version.mjs +1 -1
  328. package/es/version.mjs.map +1 -1
  329. package/global.d.ts +2 -0
  330. package/lib/components/badge/index.js +2 -2
  331. package/lib/components/badge/src/badge.js +55 -17
  332. package/lib/components/badge/src/badge.js.map +1 -1
  333. package/lib/components/badge/src/badge2.js +17 -55
  334. package/lib/components/badge/src/badge2.js.map +1 -1
  335. package/lib/components/cascader/index.js +2 -2
  336. package/lib/components/cascader/src/cascader.js +66 -626
  337. package/lib/components/cascader/src/cascader.js.map +1 -1
  338. package/lib/components/cascader/src/cascader2.js +626 -66
  339. package/lib/components/cascader/src/cascader2.js.map +1 -1
  340. package/lib/components/checkbox/index.d.ts +18 -18
  341. package/lib/components/checkbox/src/checkbox-button.vue.d.ts +6 -6
  342. package/lib/components/checkbox/src/checkbox.d.ts +2 -2
  343. package/lib/components/checkbox/src/checkbox.vue.d.ts +6 -6
  344. package/lib/components/collapse/index.js +4 -4
  345. package/lib/components/collapse/src/collapse-item.js +14 -91
  346. package/lib/components/collapse/src/collapse-item.js.map +1 -1
  347. package/lib/components/collapse/src/collapse-item2.js +91 -14
  348. package/lib/components/collapse/src/collapse-item2.js.map +1 -1
  349. package/lib/components/collapse/src/collapse.js +20 -28
  350. package/lib/components/collapse/src/collapse.js.map +1 -1
  351. package/lib/components/collapse/src/collapse2.js +28 -20
  352. package/lib/components/collapse/src/collapse2.js.map +1 -1
  353. package/lib/components/dialog/index.d.ts +1 -1
  354. package/lib/components/dialog/src/dialog-content.vue.d.ts +1 -1
  355. package/lib/components/dialog/src/dialog.vue.d.ts +1 -1
  356. package/lib/components/dropdown/index.d.ts +2 -2
  357. package/lib/components/dropdown/src/dropdown-item-impl.vue.d.ts +1 -1
  358. package/lib/components/dropdown/src/dropdown-menu.vue.d.ts +1 -1
  359. package/lib/components/empty/index.js +2 -2
  360. package/lib/components/empty/src/empty.js +55 -11
  361. package/lib/components/empty/src/empty.js.map +1 -1
  362. package/lib/components/empty/src/empty2.js +11 -55
  363. package/lib/components/empty/src/empty2.js.map +1 -1
  364. package/lib/components/image/index.d.ts +10 -0
  365. package/lib/components/image/src/image.d.ts +1 -0
  366. package/lib/components/image/src/image.js +4 -0
  367. package/lib/components/image/src/image.js.map +1 -1
  368. package/lib/components/image/src/image.vue.d.ts +10 -0
  369. package/lib/components/image/src/image2.js +3 -1
  370. package/lib/components/image/src/image2.js.map +1 -1
  371. package/lib/components/image-viewer/index.d.ts +5 -0
  372. package/lib/components/image-viewer/src/image-viewer.d.ts +1 -0
  373. package/lib/components/image-viewer/src/image-viewer.js +4 -0
  374. package/lib/components/image-viewer/src/image-viewer.js.map +1 -1
  375. package/lib/components/image-viewer/src/image-viewer.vue.d.ts +5 -0
  376. package/lib/components/image-viewer/src/image-viewer2.js +3 -1
  377. package/lib/components/image-viewer/src/image-viewer2.js.map +1 -1
  378. package/lib/components/index.js +5 -5
  379. package/lib/components/pagination/src/components/sizes.vue.d.ts +6 -6
  380. package/lib/components/radio/index.d.ts +12 -12
  381. package/lib/components/radio/src/radio-button.d.ts +1 -1
  382. package/lib/components/radio/src/radio-button.vue.d.ts +4 -4
  383. package/lib/components/radio/src/radio.d.ts +2 -2
  384. package/lib/components/radio/src/radio.vue.d.ts +4 -4
  385. package/lib/components/select/index.d.ts +6 -6
  386. package/lib/components/select/src/option.vue.d.ts +2 -2
  387. package/lib/components/select/src/select.vue.d.ts +2 -2
  388. package/lib/components/time-picker/src/common/picker.vue.d.ts +1 -1
  389. package/lib/components/time-select/index.d.ts +20 -20
  390. package/lib/components/time-select/src/time-select.vue.d.ts +10 -10
  391. package/lib/components/tooltip-v2/index.js +1 -1
  392. package/lib/components/tooltip-v2/src/arrow.js +37 -23
  393. package/lib/components/tooltip-v2/src/arrow.js.map +1 -1
  394. package/lib/components/tooltip-v2/src/arrow2.js +23 -37
  395. package/lib/components/tooltip-v2/src/arrow2.js.map +1 -1
  396. package/lib/components/tooltip-v2/src/tooltip.js +1 -1
  397. package/lib/components/tooltip-v2/src/tooltip2.js +2 -2
  398. package/lib/components/tour/src/mask.js +78 -19
  399. package/lib/components/tour/src/mask.js.map +1 -1
  400. package/lib/components/tour/src/mask2.js +19 -78
  401. package/lib/components/tour/src/mask2.js.map +1 -1
  402. package/lib/components/tour/src/tour2.js +1 -1
  403. package/lib/components/transfer/index.d.ts +60 -60
  404. package/lib/components/transfer/src/transfer-panel.vue.d.ts +12 -12
  405. package/lib/components/transfer/src/transfer.vue.d.ts +60 -60
  406. package/lib/components/tree-select/src/tree-select-option.d.ts +8 -8
  407. package/lib/components/tree-v2/index.d.ts +12 -12
  408. package/lib/components/tree-v2/src/tree-node.vue.d.ts +12 -12
  409. package/lib/components/tree-v2/src/tree.vue.d.ts +12 -12
  410. package/lib/index.js +5 -5
  411. package/lib/version.d.ts +1 -1
  412. package/lib/version.js +1 -1
  413. package/lib/version.js.map +1 -1
  414. package/package.json +2 -2
  415. package/tags.json +1 -1
  416. package/theme-chalk/el-table.css +1 -1
  417. package/theme-chalk/index.css +1 -1
  418. package/theme-chalk/src/table.scss +5 -7
  419. package/web-types.json +1 -1
@@ -1,33 +1,23 @@
1
- import { defineComponent, openBlock, createElementBlock, normalizeClass, unref, renderSlot } from 'vue';
2
- import { collapseProps, collapseEmits } from './collapse2.mjs';
3
- import { useCollapse, useCollapseDOM } from './use-collapse.mjs';
4
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
1
+ import '../../../utils/index.mjs';
2
+ import '../../../constants/index.mjs';
3
+ import { isNumber } from '../../../utils/types.mjs';
4
+ import { isString, isArray } from '@vue/shared';
5
+ import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
6
+ import { mutable } from '../../../utils/typescript.mjs';
7
+ import { UPDATE_MODEL_EVENT, CHANGE_EVENT } from '../../../constants/event.mjs';
5
8
 
6
- const __default__ = defineComponent({
7
- name: "ElCollapse"
8
- });
9
- const _sfc_main = /* @__PURE__ */ defineComponent({
10
- ...__default__,
11
- props: collapseProps,
12
- emits: collapseEmits,
13
- setup(__props, { expose, emit }) {
14
- const props = __props;
15
- const { activeNames, setActiveNames } = useCollapse(props, emit);
16
- const { rootKls } = useCollapseDOM();
17
- expose({
18
- activeNames,
19
- setActiveNames
20
- });
21
- return (_ctx, _cache) => {
22
- return openBlock(), createElementBlock("div", {
23
- class: normalizeClass(unref(rootKls))
24
- }, [
25
- renderSlot(_ctx.$slots, "default")
26
- ], 2);
27
- };
9
+ const emitChangeFn = (value) => isNumber(value) || isString(value) || isArray(value);
10
+ const collapseProps = buildProps({
11
+ accordion: Boolean,
12
+ modelValue: {
13
+ type: definePropType([Array, String, Number]),
14
+ default: () => mutable([])
28
15
  }
29
16
  });
30
- var Collapse = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "collapse.vue"]]);
17
+ const collapseEmits = {
18
+ [UPDATE_MODEL_EVENT]: emitChangeFn,
19
+ [CHANGE_EVENT]: emitChangeFn
20
+ };
31
21
 
32
- export { Collapse as default };
22
+ export { collapseEmits, collapseProps, emitChangeFn };
33
23
  //# sourceMappingURL=collapse.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"collapse.mjs","sources":["../../../../../../packages/components/collapse/src/collapse.vue"],"sourcesContent":["<template>\n <div :class=\"rootKls\">\n <slot />\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { collapseEmits, collapseProps } from './collapse'\nimport { useCollapse, useCollapseDOM } from './use-collapse'\n\ndefineOptions({\n name: 'ElCollapse',\n})\nconst props = defineProps(collapseProps)\nconst emit = defineEmits(collapseEmits)\n\nconst { activeNames, setActiveNames } = useCollapse(props, emit)\n\nconst { rootKls } = useCollapseDOM()\n\ndefineExpose({\n /** @description active names */\n activeNames,\n /** @description set active names */\n setActiveNames,\n})\n</script>\n"],"names":[],"mappings":";;;;;mCAUc,CAAA;AAAA,EACZ,IAAM,EAAA,YAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAIA,IAAA,MAAM,EAAE,WAAA,EAAa,cAAmB,EAAA,GAAA,WAAA,CAAY,OAAO,IAAI,CAAA,CAAA;AAE/D,IAAM,MAAA,EAAE,YAAY,cAAe,EAAA,CAAA;AAEnC,IAAa,MAAA,CAAA;AAAA,MAEX,WAAA;AAAA,MAEA,cAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"collapse.mjs","sources":["../../../../../../packages/components/collapse/src/collapse.ts"],"sourcesContent":["import {\n buildProps,\n definePropType,\n isArray,\n isNumber,\n isString,\n mutable,\n} from '@element-plus/utils'\nimport { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport type { ExtractPropTypes } from 'vue'\nimport type { Arrayable } from '@element-plus/utils'\n\nexport type CollapseActiveName = string | number\nexport type CollapseModelValue = Arrayable<CollapseActiveName>\n\nexport const emitChangeFn = (value: CollapseModelValue) =>\n isNumber(value) || isString(value) || isArray(value)\n\nexport const collapseProps = buildProps({\n /**\n * @description whether to activate accordion mode\n */\n accordion: Boolean,\n /**\n * @description currently active panel, the type is `string` in accordion mode, otherwise it is `array`\n */\n modelValue: {\n type: definePropType<CollapseModelValue>([Array, String, Number]),\n default: () => mutable([] as const),\n },\n} as const)\nexport type CollapseProps = ExtractPropTypes<typeof collapseProps>\n\nexport const collapseEmits = {\n [UPDATE_MODEL_EVENT]: emitChangeFn,\n [CHANGE_EVENT]: emitChangeFn,\n}\nexport type CollapseEmits = typeof collapseEmits\n"],"names":[],"mappings":";;;;;;;;AASY,MAAC,YAAY,GAAG,CAAC,KAAK,KAAK,QAAQ,CAAC,KAAK,CAAC,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,OAAO,CAAC,KAAK,EAAE;AAChF,MAAC,aAAa,GAAG,UAAU,CAAC;AACxC,EAAE,SAAS,EAAE,OAAO;AACpB,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AACjD,IAAI,OAAO,EAAE,MAAM,OAAO,CAAC,EAAE,CAAC;AAC9B,GAAG;AACH,CAAC,EAAE;AACS,MAAC,aAAa,GAAG;AAC7B,EAAE,CAAC,kBAAkB,GAAG,YAAY;AACpC,EAAE,CAAC,YAAY,GAAG,YAAY;AAC9B;;;;"}
@@ -1,23 +1,33 @@
1
- import '../../../utils/index.mjs';
2
- import '../../../constants/index.mjs';
3
- import { isNumber } from '../../../utils/types.mjs';
4
- import { isString, isArray } from '@vue/shared';
5
- import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
6
- import { mutable } from '../../../utils/typescript.mjs';
7
- import { UPDATE_MODEL_EVENT, CHANGE_EVENT } from '../../../constants/event.mjs';
1
+ import { defineComponent, openBlock, createElementBlock, normalizeClass, unref, renderSlot } from 'vue';
2
+ import { collapseProps, collapseEmits } from './collapse.mjs';
3
+ import { useCollapse, useCollapseDOM } from './use-collapse.mjs';
4
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
8
5
 
9
- const emitChangeFn = (value) => isNumber(value) || isString(value) || isArray(value);
10
- const collapseProps = buildProps({
11
- accordion: Boolean,
12
- modelValue: {
13
- type: definePropType([Array, String, Number]),
14
- default: () => mutable([])
6
+ const __default__ = defineComponent({
7
+ name: "ElCollapse"
8
+ });
9
+ const _sfc_main = /* @__PURE__ */ defineComponent({
10
+ ...__default__,
11
+ props: collapseProps,
12
+ emits: collapseEmits,
13
+ setup(__props, { expose, emit }) {
14
+ const props = __props;
15
+ const { activeNames, setActiveNames } = useCollapse(props, emit);
16
+ const { rootKls } = useCollapseDOM();
17
+ expose({
18
+ activeNames,
19
+ setActiveNames
20
+ });
21
+ return (_ctx, _cache) => {
22
+ return openBlock(), createElementBlock("div", {
23
+ class: normalizeClass(unref(rootKls))
24
+ }, [
25
+ renderSlot(_ctx.$slots, "default")
26
+ ], 2);
27
+ };
15
28
  }
16
29
  });
17
- const collapseEmits = {
18
- [UPDATE_MODEL_EVENT]: emitChangeFn,
19
- [CHANGE_EVENT]: emitChangeFn
20
- };
30
+ var Collapse = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "collapse.vue"]]);
21
31
 
22
- export { collapseEmits, collapseProps, emitChangeFn };
32
+ export { Collapse as default };
23
33
  //# sourceMappingURL=collapse2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"collapse2.mjs","sources":["../../../../../../packages/components/collapse/src/collapse.ts"],"sourcesContent":["import {\n buildProps,\n definePropType,\n isArray,\n isNumber,\n isString,\n mutable,\n} from '@element-plus/utils'\nimport { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport type { ExtractPropTypes } from 'vue'\nimport type { Arrayable } from '@element-plus/utils'\n\nexport type CollapseActiveName = string | number\nexport type CollapseModelValue = Arrayable<CollapseActiveName>\n\nexport const emitChangeFn = (value: CollapseModelValue) =>\n isNumber(value) || isString(value) || isArray(value)\n\nexport const collapseProps = buildProps({\n /**\n * @description whether to activate accordion mode\n */\n accordion: Boolean,\n /**\n * @description currently active panel, the type is `string` in accordion mode, otherwise it is `array`\n */\n modelValue: {\n type: definePropType<CollapseModelValue>([Array, String, Number]),\n default: () => mutable([] as const),\n },\n} as const)\nexport type CollapseProps = ExtractPropTypes<typeof collapseProps>\n\nexport const collapseEmits = {\n [UPDATE_MODEL_EVENT]: emitChangeFn,\n [CHANGE_EVENT]: emitChangeFn,\n}\nexport type CollapseEmits = typeof collapseEmits\n"],"names":[],"mappings":";;;;;;;;AASY,MAAC,YAAY,GAAG,CAAC,KAAK,KAAK,QAAQ,CAAC,KAAK,CAAC,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,OAAO,CAAC,KAAK,EAAE;AAChF,MAAC,aAAa,GAAG,UAAU,CAAC;AACxC,EAAE,SAAS,EAAE,OAAO;AACpB,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AACjD,IAAI,OAAO,EAAE,MAAM,OAAO,CAAC,EAAE,CAAC;AAC9B,GAAG;AACH,CAAC,EAAE;AACS,MAAC,aAAa,GAAG;AAC7B,EAAE,CAAC,kBAAkB,GAAG,YAAY;AACpC,EAAE,CAAC,YAAY,GAAG,YAAY;AAC9B;;;;"}
1
+ {"version":3,"file":"collapse2.mjs","sources":["../../../../../../packages/components/collapse/src/collapse.vue"],"sourcesContent":["<template>\n <div :class=\"rootKls\">\n <slot />\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { collapseEmits, collapseProps } from './collapse'\nimport { useCollapse, useCollapseDOM } from './use-collapse'\n\ndefineOptions({\n name: 'ElCollapse',\n})\nconst props = defineProps(collapseProps)\nconst emit = defineEmits(collapseEmits)\n\nconst { activeNames, setActiveNames } = useCollapse(props, emit)\n\nconst { rootKls } = useCollapseDOM()\n\ndefineExpose({\n /** @description active names */\n activeNames,\n /** @description set active names */\n setActiveNames,\n})\n</script>\n"],"names":[],"mappings":";;;;;mCAUc,CAAA;AAAA,EACZ,IAAM,EAAA,YAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAIA,IAAA,MAAM,EAAE,WAAA,EAAa,cAAmB,EAAA,GAAA,WAAA,CAAY,OAAO,IAAI,CAAA,CAAA;AAE/D,IAAM,MAAA,EAAE,YAAY,cAAe,EAAA,CAAA;AAEnC,IAAa,MAAA,CAAA;AAAA,MAEX,WAAA;AAAA,MAEA,cAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;"}
@@ -290,7 +290,7 @@ export declare const ElDialog: import("@element-plus/nightly/es/utils").SFCWithI
290
290
  dialogKls: import("vue").ComputedRef<(string | {
291
291
  [x: string]: boolean;
292
292
  })[]>;
293
- composedDialogRef: (el: Element | import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null) => void;
293
+ composedDialogRef: (el: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | Element | null) => void;
294
294
  draggable: import("vue").ComputedRef<boolean>;
295
295
  ElIcon: import("@element-plus/nightly/es/utils").SFCWithInstall<import("vue").DefineComponent<{
296
296
  readonly size: {
@@ -60,7 +60,7 @@ declare const _default: import("vue").DefineComponent<{
60
60
  dialogKls: import("vue").ComputedRef<(string | {
61
61
  [x: string]: boolean;
62
62
  })[]>;
63
- composedDialogRef: (el: Element | import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null) => void;
63
+ composedDialogRef: (el: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | Element | null) => void;
64
64
  draggable: import("vue").ComputedRef<boolean>;
65
65
  ElIcon: import("@element-plus/nightly/es/utils").SFCWithInstall<import("vue").DefineComponent<{
66
66
  readonly size: {
@@ -290,7 +290,7 @@ declare const _default: import("vue").DefineComponent<{
290
290
  dialogKls: import("vue").ComputedRef<(string | {
291
291
  [x: string]: boolean;
292
292
  })[]>;
293
- composedDialogRef: (el: Element | import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null) => void;
293
+ composedDialogRef: (el: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | Element | null) => void;
294
294
  draggable: import("vue").ComputedRef<boolean>;
295
295
  ElIcon: import("../../../utils").SFCWithInstall<import("vue").DefineComponent<{
296
296
  readonly size: {
@@ -6419,7 +6419,7 @@ export declare const ElDropdown: import("@element-plus/nightly/es/utils").SFCWit
6419
6419
  dropdownKls: import("vue").ComputedRef<string[]>;
6420
6420
  role: import("vue").ComputedRef<string>;
6421
6421
  triggerId: import("vue").ComputedRef<string>;
6422
- dropdownListWrapperRef: (el: Element | import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null) => void;
6422
+ dropdownListWrapperRef: (el: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | Element | null) => void;
6423
6423
  handleKeydown: (e: KeyboardEvent) => void;
6424
6424
  onBlur: (e: Event) => void;
6425
6425
  onFocus: (e: FocusEvent) => void;
@@ -6494,7 +6494,7 @@ export declare const ElDropdownMenu: import("@element-plus/nightly/es/utils").SF
6494
6494
  dropdownKls: import("vue").ComputedRef<string[]>;
6495
6495
  role: import("vue").ComputedRef<string>;
6496
6496
  triggerId: import("vue").ComputedRef<string>;
6497
- dropdownListWrapperRef: (el: Element | import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null) => void;
6497
+ dropdownListWrapperRef: (el: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | Element | null) => void;
6498
6498
  handleKeydown: (e: KeyboardEvent) => void;
6499
6499
  onBlur: (e: Event) => void;
6500
6500
  onFocus: (e: FocusEvent) => void;
@@ -28,7 +28,7 @@ declare const _default: import("vue").DefineComponent<{
28
28
  cssVarBlock: (object: Record<string, string>) => Record<string, string>;
29
29
  cssVarBlockName: (name: string) => string;
30
30
  };
31
- itemRef: (el: Element | import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null) => void;
31
+ itemRef: (el: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | Element | null) => void;
32
32
  dataset: {
33
33
  "data-el-collection-item": string;
34
34
  };
@@ -12,7 +12,7 @@ declare const _default: import("vue").DefineComponent<{
12
12
  dropdownKls: import("vue").ComputedRef<string[]>;
13
13
  role: import("vue").ComputedRef<string>;
14
14
  triggerId: import("vue").ComputedRef<string>;
15
- dropdownListWrapperRef: (el: Element | import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null) => void;
15
+ dropdownListWrapperRef: (el: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | Element | null) => void;
16
16
  handleKeydown: (e: KeyboardEvent) => void;
17
17
  onBlur: (e: Event) => void;
18
18
  onFocus: (e: FocusEvent) => void;
@@ -1,6 +1,6 @@
1
1
  import '../../utils/index.mjs';
2
- import Empty from './src/empty2.mjs';
3
- export { emptyProps } from './src/empty.mjs';
2
+ import Empty from './src/empty.mjs';
3
+ export { emptyProps } from './src/empty2.mjs';
4
4
  import { withInstall } from '../../utils/vue/install.mjs';
5
5
 
6
6
  const ElEmpty = withInstall(Empty);
@@ -1,17 +1,61 @@
1
+ import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, normalizeStyle, renderSlot, createVNode, toDisplayString, createCommentVNode } from 'vue';
2
+ import '../../../hooks/index.mjs';
1
3
  import '../../../utils/index.mjs';
2
- import { buildProps } from '../../../utils/vue/props/runtime.mjs';
4
+ import ImgEmpty from './img-empty.mjs';
5
+ import { emptyProps } from './empty2.mjs';
6
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
7
+ import { useLocale } from '../../../hooks/use-locale/index.mjs';
8
+ import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
9
+ import { addUnit } from '../../../utils/dom/style.mjs';
3
10
 
4
- const emptyProps = buildProps({
5
- image: {
6
- type: String,
7
- default: ""
8
- },
9
- imageSize: Number,
10
- description: {
11
- type: String,
12
- default: ""
11
+ const _hoisted_1 = ["src"];
12
+ const _hoisted_2 = { key: 1 };
13
+ const __default__ = defineComponent({
14
+ name: "ElEmpty"
15
+ });
16
+ const _sfc_main = /* @__PURE__ */ defineComponent({
17
+ ...__default__,
18
+ props: emptyProps,
19
+ setup(__props) {
20
+ const props = __props;
21
+ const { t } = useLocale();
22
+ const ns = useNamespace("empty");
23
+ const emptyDescription = computed(() => props.description || t("el.table.emptyText"));
24
+ const imageStyle = computed(() => ({
25
+ width: addUnit(props.imageSize)
26
+ }));
27
+ return (_ctx, _cache) => {
28
+ return openBlock(), createElementBlock("div", {
29
+ class: normalizeClass(unref(ns).b())
30
+ }, [
31
+ createElementVNode("div", {
32
+ class: normalizeClass(unref(ns).e("image")),
33
+ style: normalizeStyle(unref(imageStyle))
34
+ }, [
35
+ _ctx.image ? (openBlock(), createElementBlock("img", {
36
+ key: 0,
37
+ src: _ctx.image,
38
+ ondragstart: "return false"
39
+ }, null, 8, _hoisted_1)) : renderSlot(_ctx.$slots, "image", { key: 1 }, () => [
40
+ createVNode(ImgEmpty)
41
+ ])
42
+ ], 6),
43
+ createElementVNode("div", {
44
+ class: normalizeClass(unref(ns).e("description"))
45
+ }, [
46
+ _ctx.$slots.description ? renderSlot(_ctx.$slots, "description", { key: 0 }) : (openBlock(), createElementBlock("p", _hoisted_2, toDisplayString(unref(emptyDescription)), 1))
47
+ ], 2),
48
+ _ctx.$slots.default ? (openBlock(), createElementBlock("div", {
49
+ key: 0,
50
+ class: normalizeClass(unref(ns).e("bottom"))
51
+ }, [
52
+ renderSlot(_ctx.$slots, "default")
53
+ ], 2)) : createCommentVNode("v-if", true)
54
+ ], 2);
55
+ };
13
56
  }
14
57
  });
58
+ var Empty = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "empty.vue"]]);
15
59
 
16
- export { emptyProps };
60
+ export { Empty as default };
17
61
  //# sourceMappingURL=empty.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"empty.mjs","sources":["../../../../../../packages/components/empty/src/empty.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\n\nexport const emptyProps = buildProps({\n /**\n * @description image URL of empty\n */\n image: {\n type: String,\n default: '',\n },\n /**\n * @description image size (width) of empty\n */\n imageSize: Number,\n /**\n * @description description of empty\n */\n description: {\n type: String,\n default: '',\n },\n} as const)\n\nexport type EmptyProps = ExtractPropTypes<typeof emptyProps>\n"],"names":[],"mappings":";;;AACY,MAAC,UAAU,GAAG,UAAU,CAAC;AACrC,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,SAAS,EAAE,MAAM;AACnB,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,CAAC;;;;"}
1
+ {"version":3,"file":"empty.mjs","sources":["../../../../../../packages/components/empty/src/empty.vue"],"sourcesContent":["<template>\n <div :class=\"ns.b()\">\n <div :class=\"ns.e('image')\" :style=\"imageStyle\">\n <img v-if=\"image\" :src=\"image\" ondragstart=\"return false\" />\n <slot v-else name=\"image\">\n <img-empty />\n </slot>\n </div>\n <div :class=\"ns.e('description')\">\n <slot v-if=\"$slots.description\" name=\"description\" />\n <p v-else>{{ emptyDescription }}</p>\n </div>\n <div v-if=\"$slots.default\" :class=\"ns.e('bottom')\">\n <slot />\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport { addUnit } from '@element-plus/utils'\nimport ImgEmpty from './img-empty.vue'\nimport { emptyProps } from './empty'\n\nimport type { CSSProperties } from 'vue'\n\ndefineOptions({\n name: 'ElEmpty',\n})\n\nconst props = defineProps(emptyProps)\n\nconst { t } = useLocale()\nconst ns = useNamespace('empty')\nconst emptyDescription = computed(\n () => props.description || t('el.table.emptyText')\n)\nconst imageStyle = computed<CSSProperties>(() => ({\n width: addUnit(props.imageSize),\n}))\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;mCA2Bc,CAAA;AAAA,EACZ,IAAM,EAAA,SAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAIA,IAAM,MAAA,EAAE,MAAM,SAAU,EAAA,CAAA;AACxB,IAAM,MAAA,EAAA,GAAK,aAAa,OAAO,CAAA,CAAA;AAC/B,IAAA,MAAM,mBAAmB,QACvB,CAAA,MAAM,MAAM,WAAe,IAAA,CAAA,CAAE,oBAAoB,CACnD,CAAA,CAAA;AACA,IAAM,MAAA,UAAA,GAAa,SAAwB,OAAO;AAAA,MAChD,KAAA,EAAO,OAAQ,CAAA,KAAA,CAAM,SAAS,CAAA;AAAA,KAC9B,CAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,61 +1,17 @@
1
- import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, normalizeStyle, renderSlot, createVNode, toDisplayString, createCommentVNode } from 'vue';
2
- import '../../../hooks/index.mjs';
3
1
  import '../../../utils/index.mjs';
4
- import ImgEmpty from './img-empty.mjs';
5
- import { emptyProps } from './empty.mjs';
6
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
7
- import { useLocale } from '../../../hooks/use-locale/index.mjs';
8
- import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
9
- import { addUnit } from '../../../utils/dom/style.mjs';
2
+ import { buildProps } from '../../../utils/vue/props/runtime.mjs';
10
3
 
11
- const _hoisted_1 = ["src"];
12
- const _hoisted_2 = { key: 1 };
13
- const __default__ = defineComponent({
14
- name: "ElEmpty"
15
- });
16
- const _sfc_main = /* @__PURE__ */ defineComponent({
17
- ...__default__,
18
- props: emptyProps,
19
- setup(__props) {
20
- const props = __props;
21
- const { t } = useLocale();
22
- const ns = useNamespace("empty");
23
- const emptyDescription = computed(() => props.description || t("el.table.emptyText"));
24
- const imageStyle = computed(() => ({
25
- width: addUnit(props.imageSize)
26
- }));
27
- return (_ctx, _cache) => {
28
- return openBlock(), createElementBlock("div", {
29
- class: normalizeClass(unref(ns).b())
30
- }, [
31
- createElementVNode("div", {
32
- class: normalizeClass(unref(ns).e("image")),
33
- style: normalizeStyle(unref(imageStyle))
34
- }, [
35
- _ctx.image ? (openBlock(), createElementBlock("img", {
36
- key: 0,
37
- src: _ctx.image,
38
- ondragstart: "return false"
39
- }, null, 8, _hoisted_1)) : renderSlot(_ctx.$slots, "image", { key: 1 }, () => [
40
- createVNode(ImgEmpty)
41
- ])
42
- ], 6),
43
- createElementVNode("div", {
44
- class: normalizeClass(unref(ns).e("description"))
45
- }, [
46
- _ctx.$slots.description ? renderSlot(_ctx.$slots, "description", { key: 0 }) : (openBlock(), createElementBlock("p", _hoisted_2, toDisplayString(unref(emptyDescription)), 1))
47
- ], 2),
48
- _ctx.$slots.default ? (openBlock(), createElementBlock("div", {
49
- key: 0,
50
- class: normalizeClass(unref(ns).e("bottom"))
51
- }, [
52
- renderSlot(_ctx.$slots, "default")
53
- ], 2)) : createCommentVNode("v-if", true)
54
- ], 2);
55
- };
4
+ const emptyProps = buildProps({
5
+ image: {
6
+ type: String,
7
+ default: ""
8
+ },
9
+ imageSize: Number,
10
+ description: {
11
+ type: String,
12
+ default: ""
56
13
  }
57
14
  });
58
- var Empty = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "empty.vue"]]);
59
15
 
60
- export { Empty as default };
16
+ export { emptyProps };
61
17
  //# sourceMappingURL=empty2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"empty2.mjs","sources":["../../../../../../packages/components/empty/src/empty.vue"],"sourcesContent":["<template>\n <div :class=\"ns.b()\">\n <div :class=\"ns.e('image')\" :style=\"imageStyle\">\n <img v-if=\"image\" :src=\"image\" ondragstart=\"return false\" />\n <slot v-else name=\"image\">\n <img-empty />\n </slot>\n </div>\n <div :class=\"ns.e('description')\">\n <slot v-if=\"$slots.description\" name=\"description\" />\n <p v-else>{{ emptyDescription }}</p>\n </div>\n <div v-if=\"$slots.default\" :class=\"ns.e('bottom')\">\n <slot />\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport { addUnit } from '@element-plus/utils'\nimport ImgEmpty from './img-empty.vue'\nimport { emptyProps } from './empty'\n\nimport type { CSSProperties } from 'vue'\n\ndefineOptions({\n name: 'ElEmpty',\n})\n\nconst props = defineProps(emptyProps)\n\nconst { t } = useLocale()\nconst ns = useNamespace('empty')\nconst emptyDescription = computed(\n () => props.description || t('el.table.emptyText')\n)\nconst imageStyle = computed<CSSProperties>(() => ({\n width: addUnit(props.imageSize),\n}))\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;mCA2Bc,CAAA;AAAA,EACZ,IAAM,EAAA,SAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAIA,IAAM,MAAA,EAAE,MAAM,SAAU,EAAA,CAAA;AACxB,IAAM,MAAA,EAAA,GAAK,aAAa,OAAO,CAAA,CAAA;AAC/B,IAAA,MAAM,mBAAmB,QACvB,CAAA,MAAM,MAAM,WAAe,IAAA,CAAA,CAAE,oBAAoB,CACnD,CAAA,CAAA;AACA,IAAM,MAAA,UAAA,GAAa,SAAwB,OAAO;AAAA,MAChD,KAAA,EAAO,OAAQ,CAAA,KAAA,CAAM,SAAS,CAAA;AAAA,KAC9B,CAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"empty2.mjs","sources":["../../../../../../packages/components/empty/src/empty.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\n\nexport const emptyProps = buildProps({\n /**\n * @description image URL of empty\n */\n image: {\n type: String,\n default: '',\n },\n /**\n * @description image size (width) of empty\n */\n imageSize: Number,\n /**\n * @description description of empty\n */\n description: {\n type: String,\n default: '',\n },\n} as const)\n\nexport type EmptyProps = ExtractPropTypes<typeof emptyProps>\n"],"names":[],"mappings":";;;AACY,MAAC,UAAU,GAAG,UAAU,CAAC;AACrC,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,SAAS,EAAE,MAAM;AACnB,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,CAAC;;;;"}
@@ -29,6 +29,7 @@ export declare const ElImage: import("@element-plus/nightly/es/utils").SFCWithIn
29
29
  readonly zoomRate: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 1.2, boolean>;
30
30
  readonly minScale: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0.2, boolean>;
31
31
  readonly maxScale: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 7, boolean>;
32
+ readonly crossorigin: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => ("" | "anonymous" | "use-credentials") & {}) | (() => "" | "anonymous" | "use-credentials") | ((new (...args: any[]) => ("" | "anonymous" | "use-credentials") & {}) | (() => "" | "anonymous" | "use-credentials"))[], unknown, unknown, "anonymous", boolean>;
32
33
  }, {
33
34
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
34
35
  readonly hideOnClickModal: BooleanConstructor;
@@ -61,6 +62,7 @@ export declare const ElImage: import("@element-plus/nightly/es/utils").SFCWithIn
61
62
  readonly zoomRate: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 1.2, boolean>;
62
63
  readonly minScale: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0.2, boolean>;
63
64
  readonly maxScale: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 7, boolean>;
65
+ readonly crossorigin: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => ("" | "anonymous" | "use-credentials") & {}) | (() => "" | "anonymous" | "use-credentials") | ((new (...args: any[]) => ("" | "anonymous" | "use-credentials") & {}) | (() => "" | "anonymous" | "use-credentials"))[], unknown, unknown, "anonymous", boolean>;
64
66
  }>> & {
65
67
  onClose?: (() => any) | undefined;
66
68
  onShow?: (() => any) | undefined;
@@ -94,6 +96,7 @@ export declare const ElImage: import("@element-plus/nightly/es/utils").SFCWithIn
94
96
  };
95
97
  attrs: import("vue").ComputedRef<Record<string, unknown>>;
96
98
  imageSrc: import("vue").Ref<string | undefined>;
99
+ crossorigin: import("vue").Ref<string>;
97
100
  hasLoadError: import("vue").Ref<boolean>;
98
101
  isLoading: import("vue").Ref<boolean>;
99
102
  showViewer: import("vue").Ref<boolean>;
@@ -135,6 +138,7 @@ export declare const ElImage: import("@element-plus/nightly/es/utils").SFCWithIn
135
138
  readonly zoomRate: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 1.2, boolean>;
136
139
  readonly minScale: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0.2, boolean>;
137
140
  readonly maxScale: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 7, boolean>;
141
+ readonly crossorigin: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => ("" | "anonymous" | "use-credentials") & {}) | (() => "" | "anonymous" | "use-credentials") | ((new (...args: any[]) => ("" | "anonymous" | "use-credentials") & {}) | (() => "" | "anonymous" | "use-credentials"))[], unknown, unknown, "anonymous", boolean>;
138
142
  }, {
139
143
  modes: Record<"CONTAIN" | "ORIGINAL", import("..").ImageViewerMode>;
140
144
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
@@ -153,6 +157,7 @@ export declare const ElImage: import("@element-plus/nightly/es/utils").SFCWithIn
153
157
  readonly zoomRate: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 1.2, boolean>;
154
158
  readonly minScale: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0.2, boolean>;
155
159
  readonly maxScale: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 7, boolean>;
160
+ readonly crossorigin: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => ("" | "anonymous" | "use-credentials") & {}) | (() => "" | "anonymous" | "use-credentials") | ((new (...args: any[]) => ("" | "anonymous" | "use-credentials") & {}) | (() => "" | "anonymous" | "use-credentials"))[], unknown, unknown, "anonymous", boolean>;
156
161
  }>> & {
157
162
  onClose?: (() => any) | undefined;
158
163
  onSwitch?: ((index: number) => any) | undefined;
@@ -183,6 +188,7 @@ export declare const ElImage: import("@element-plus/nightly/es/utils").SFCWithIn
183
188
  imgRefs: import("vue").Ref<HTMLImageElement[]>;
184
189
  scopeEventListener: import("vue").EffectScope;
185
190
  loading: import("vue").Ref<boolean>;
191
+ crossorigin: import("vue").Ref<string>;
186
192
  activeIndex: import("vue").Ref<number>;
187
193
  mode: import("vue").ShallowRef<import("..").ImageViewerMode>;
188
194
  transform: import("vue").Ref<{
@@ -302,6 +308,7 @@ export declare const ElImage: import("@element-plus/nightly/es/utils").SFCWithIn
302
308
  readonly zoomRate: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 1.2, boolean>;
303
309
  readonly minScale: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0.2, boolean>;
304
310
  readonly maxScale: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 7, boolean>;
311
+ readonly crossorigin: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => ("" | "anonymous" | "use-credentials") & {}) | (() => "" | "anonymous" | "use-credentials") | ((new (...args: any[]) => ("" | "anonymous" | "use-credentials") & {}) | (() => "" | "anonymous" | "use-credentials"))[], unknown, unknown, "anonymous", boolean>;
305
312
  }>> & {
306
313
  onClose?: (() => any) | undefined;
307
314
  onSwitch?: ((index: number) => any) | undefined;
@@ -314,6 +321,7 @@ export declare const ElImage: import("@element-plus/nightly/es/utils").SFCWithIn
314
321
  readonly zoomRate: number;
315
322
  readonly minScale: number;
316
323
  readonly maxScale: number;
324
+ readonly crossorigin: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => ("" | "anonymous" | "use-credentials") & {}) | (() => "" | "anonymous" | "use-credentials") | ((new (...args: any[]) => ("" | "anonymous" | "use-credentials") & {}) | (() => "" | "anonymous" | "use-credentials"))[], unknown, unknown>;
317
325
  readonly hideOnClickModal: boolean;
318
326
  readonly urlList: string[];
319
327
  }>> & Record<string, any>;
@@ -354,6 +362,7 @@ export declare const ElImage: import("@element-plus/nightly/es/utils").SFCWithIn
354
362
  readonly zoomRate: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 1.2, boolean>;
355
363
  readonly minScale: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0.2, boolean>;
356
364
  readonly maxScale: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 7, boolean>;
365
+ readonly crossorigin: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => ("" | "anonymous" | "use-credentials") & {}) | (() => "" | "anonymous" | "use-credentials") | ((new (...args: any[]) => ("" | "anonymous" | "use-credentials") & {}) | (() => "" | "anonymous" | "use-credentials"))[], unknown, unknown, "anonymous", boolean>;
357
366
  }>> & {
358
367
  onClose?: (() => any) | undefined;
359
368
  onShow?: (() => any) | undefined;
@@ -371,6 +380,7 @@ export declare const ElImage: import("@element-plus/nightly/es/utils").SFCWithIn
371
380
  readonly zoomRate: number;
372
381
  readonly minScale: number;
373
382
  readonly maxScale: number;
383
+ readonly crossorigin: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => ("" | "anonymous" | "use-credentials") & {}) | (() => "" | "anonymous" | "use-credentials") | ((new (...args: any[]) => ("" | "anonymous" | "use-credentials") & {}) | (() => "" | "anonymous" | "use-credentials"))[], unknown, unknown>;
374
384
  readonly hideOnClickModal: boolean;
375
385
  readonly previewTeleported: boolean;
376
386
  }>> & Record<string, any>;
@@ -30,6 +30,7 @@ export declare const imageProps: {
30
30
  readonly zoomRate: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 1.2, boolean>;
31
31
  readonly minScale: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0.2, boolean>;
32
32
  readonly maxScale: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 7, boolean>;
33
+ readonly crossorigin: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => ("" | "anonymous" | "use-credentials") & {}) | (() => "" | "anonymous" | "use-credentials") | ((new (...args: any[]) => ("" | "anonymous" | "use-credentials") & {}) | (() => "" | "anonymous" | "use-credentials"))[], unknown, unknown, "anonymous", boolean>;
33
34
  };
34
35
  export declare type ImageProps = ExtractPropTypes<typeof imageProps>;
35
36
  export declare const imageEmits: {
@@ -53,6 +53,10 @@ const imageProps = buildProps({
53
53
  maxScale: {
54
54
  type: Number,
55
55
  default: 7
56
+ },
57
+ crossorigin: {
58
+ type: definePropType(String),
59
+ default: "anonymous"
56
60
  }
57
61
  });
58
62
  const imageEmits = {
@@ -1 +1 @@
1
- {"version":3,"file":"image.mjs","sources":["../../../../../../packages/components/image/src/image.ts"],"sourcesContent":["import {\n buildProps,\n definePropType,\n isNumber,\n mutable,\n} from '@element-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\n\nexport const imageProps = buildProps({\n /**\n * @description when enabling preview, use this flag to control whether clicking on backdrop can exit preview mode.\n */\n hideOnClickModal: Boolean,\n /**\n * @description image source, same as native.\n */\n src: {\n type: String,\n default: '',\n },\n /**\n * @description indicate how the image should be resized to fit its container, same as [object-fit](https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit).\n */\n fit: {\n type: String,\n values: ['', 'contain', 'cover', 'fill', 'none', 'scale-down'],\n default: '',\n },\n /**\n * @description Indicates how the browser should load the image, same as [native](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attr-loading)\n */\n loading: {\n type: String,\n values: ['eager', 'lazy'],\n },\n /**\n * @description whether to use lazy load.\n */\n lazy: Boolean,\n /**\n * @description the container to add scroll listener when using lazy load.\n */\n scrollContainer: {\n type: definePropType<string | HTMLElement | undefined>([String, Object]),\n },\n /**\n * @description allow big image preview.\n */\n previewSrcList: {\n type: definePropType<string[]>(Array),\n default: () => mutable([] as const),\n },\n /**\n * @description whether to append image-viewer to body. A nested parent element attribute transform should have this attribute set to `true`.\n */\n previewTeleported: Boolean,\n /**\n * @description set image preview z-index.\n */\n zIndex: {\n type: Number,\n },\n /**\n * @description initial preview image index, less than the length of `url-list`.\n */\n initialIndex: {\n type: Number,\n default: 0,\n },\n /**\n * @description whether the viewer preview is infinite.\n */\n infinite: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether the image-viewer can be closed by pressing ESC.\n */\n closeOnPressEscape: {\n type: Boolean,\n default: true,\n },\n /**\n * @description the zoom rate of the image viewer zoom event\n */\n zoomRate: {\n type: Number,\n default: 1.2,\n },\n /**\n * @description the min scale of the image viewer zoom event.\n */\n minScale: {\n type: Number,\n default: 0.2,\n },\n /**\n * @description the max scale of the image viewer zoom event.\n */\n maxScale: {\n type: Number,\n default: 7,\n },\n} as const)\nexport type ImageProps = ExtractPropTypes<typeof imageProps>\n\nexport const imageEmits = {\n load: (evt: Event) => evt instanceof Event,\n error: (evt: Event) => evt instanceof Event,\n switch: (val: number) => isNumber(val),\n close: () => true,\n show: () => true,\n}\nexport type ImageEmits = typeof imageEmits\n"],"names":[],"mappings":";;;;;AAMY,MAAC,UAAU,GAAG,UAAU,CAAC;AACrC,EAAE,gBAAgB,EAAE,OAAO;AAC3B,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,CAAC;AAClE,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;AAC7B,GAAG;AACH,EAAE,IAAI,EAAE,OAAO;AACf,EAAE,eAAe,EAAE;AACnB,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,GAAG;AACH,EAAE,cAAc,EAAE;AAClB,IAAI,IAAI,EAAE,cAAc,CAAC,KAAK,CAAC;AAC/B,IAAI,OAAO,EAAE,MAAM,OAAO,CAAC,EAAE,CAAC;AAC9B,GAAG;AACH,EAAE,iBAAiB,EAAE,OAAO;AAC5B,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,GAAG;AACH,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,kBAAkB,EAAE;AACtB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,CAAC,EAAE;AACS,MAAC,UAAU,GAAG;AAC1B,EAAE,IAAI,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,KAAK;AACrC,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,KAAK;AACtC,EAAE,MAAM,EAAE,CAAC,GAAG,KAAK,QAAQ,CAAC,GAAG,CAAC;AAChC,EAAE,KAAK,EAAE,MAAM,IAAI;AACnB,EAAE,IAAI,EAAE,MAAM,IAAI;AAClB;;;;"}
1
+ {"version":3,"file":"image.mjs","sources":["../../../../../../packages/components/image/src/image.ts"],"sourcesContent":["import {\n buildProps,\n definePropType,\n isNumber,\n mutable,\n} from '@element-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\n\nexport const imageProps = buildProps({\n /**\n * @description when enabling preview, use this flag to control whether clicking on backdrop can exit preview mode.\n */\n hideOnClickModal: Boolean,\n /**\n * @description image source, same as native.\n */\n src: {\n type: String,\n default: '',\n },\n /**\n * @description indicate how the image should be resized to fit its container, same as [object-fit](https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit).\n */\n fit: {\n type: String,\n values: ['', 'contain', 'cover', 'fill', 'none', 'scale-down'],\n default: '',\n },\n /**\n * @description Indicates how the browser should load the image, same as [native](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attr-loading)\n */\n loading: {\n type: String,\n values: ['eager', 'lazy'],\n },\n /**\n * @description whether to use lazy load.\n */\n lazy: Boolean,\n /**\n * @description the container to add scroll listener when using lazy load.\n */\n scrollContainer: {\n type: definePropType<string | HTMLElement | undefined>([String, Object]),\n },\n /**\n * @description allow big image preview.\n */\n previewSrcList: {\n type: definePropType<string[]>(Array),\n default: () => mutable([] as const),\n },\n /**\n * @description whether to append image-viewer to body. A nested parent element attribute transform should have this attribute set to `true`.\n */\n previewTeleported: Boolean,\n /**\n * @description set image preview z-index.\n */\n zIndex: {\n type: Number,\n },\n /**\n * @description initial preview image index, less than the length of `url-list`.\n */\n initialIndex: {\n type: Number,\n default: 0,\n },\n /**\n * @description whether the viewer preview is infinite.\n */\n infinite: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether the image-viewer can be closed by pressing ESC.\n */\n closeOnPressEscape: {\n type: Boolean,\n default: true,\n },\n /**\n * @description the zoom rate of the image viewer zoom event\n */\n zoomRate: {\n type: Number,\n default: 1.2,\n },\n /**\n * @description the min scale of the image viewer zoom event.\n */\n minScale: {\n type: Number,\n default: 0.2,\n },\n /**\n * @description the max scale of the image viewer zoom event.\n */\n maxScale: {\n type: Number,\n default: 7,\n },\n /**\n * @description set HTML attribute: crossorigin.\n */\n crossorigin: {\n type: definePropType<'anonymous' | 'use-credentials' | ''>(String),\n default: 'anonymous',\n },\n} as const)\nexport type ImageProps = ExtractPropTypes<typeof imageProps>\n\nexport const imageEmits = {\n load: (evt: Event) => evt instanceof Event,\n error: (evt: Event) => evt instanceof Event,\n switch: (val: number) => isNumber(val),\n close: () => true,\n show: () => true,\n}\nexport type ImageEmits = typeof imageEmits\n"],"names":[],"mappings":";;;;;AAMY,MAAC,UAAU,GAAG,UAAU,CAAC;AACrC,EAAE,gBAAgB,EAAE,OAAO;AAC3B,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,CAAC;AAClE,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;AAC7B,GAAG;AACH,EAAE,IAAI,EAAE,OAAO;AACf,EAAE,eAAe,EAAE;AACnB,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,GAAG;AACH,EAAE,cAAc,EAAE;AAClB,IAAI,IAAI,EAAE,cAAc,CAAC,KAAK,CAAC;AAC/B,IAAI,OAAO,EAAE,MAAM,OAAO,CAAC,EAAE,CAAC;AAC9B,GAAG;AACH,EAAE,iBAAiB,EAAE,OAAO;AAC5B,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,GAAG;AACH,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,kBAAkB,EAAE;AACtB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,IAAI,OAAO,EAAE,WAAW;AACxB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,UAAU,GAAG;AAC1B,EAAE,IAAI,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,KAAK;AACrC,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,KAAK;AACtC,EAAE,MAAM,EAAE,CAAC,GAAG,KAAK,QAAQ,CAAC,GAAG,CAAC;AAChC,EAAE,KAAK,EAAE,MAAM,IAAI;AACnB,EAAE,IAAI,EAAE,MAAM,IAAI;AAClB;;;;"}
@@ -30,6 +30,7 @@ declare const _default: import("vue").DefineComponent<{
30
30
  readonly zoomRate: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 1.2, boolean>;
31
31
  readonly minScale: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0.2, boolean>;
32
32
  readonly maxScale: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 7, boolean>;
33
+ readonly crossorigin: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => ("" | "anonymous" | "use-credentials") & {}) | (() => "" | "anonymous" | "use-credentials") | ((new (...args: any[]) => ("" | "anonymous" | "use-credentials") & {}) | (() => "" | "anonymous" | "use-credentials"))[], unknown, unknown, "anonymous", boolean>;
33
34
  }, {
34
35
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
35
36
  readonly hideOnClickModal: BooleanConstructor;
@@ -62,6 +63,7 @@ declare const _default: import("vue").DefineComponent<{
62
63
  readonly zoomRate: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 1.2, boolean>;
63
64
  readonly minScale: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0.2, boolean>;
64
65
  readonly maxScale: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 7, boolean>;
66
+ readonly crossorigin: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => ("" | "anonymous" | "use-credentials") & {}) | (() => "" | "anonymous" | "use-credentials") | ((new (...args: any[]) => ("" | "anonymous" | "use-credentials") & {}) | (() => "" | "anonymous" | "use-credentials"))[], unknown, unknown, "anonymous", boolean>;
65
67
  }>> & {
66
68
  onClose?: (() => any) | undefined;
67
69
  onShow?: (() => any) | undefined;
@@ -95,6 +97,7 @@ declare const _default: import("vue").DefineComponent<{
95
97
  };
96
98
  attrs: import("vue").ComputedRef<Record<string, unknown>>;
97
99
  imageSrc: import("vue").Ref<string | undefined>;
100
+ crossorigin: import("vue").Ref<string>;
98
101
  hasLoadError: import("vue").Ref<boolean>;
99
102
  isLoading: import("vue").Ref<boolean>;
100
103
  showViewer: import("vue").Ref<boolean>;
@@ -136,6 +139,7 @@ declare const _default: import("vue").DefineComponent<{
136
139
  readonly zoomRate: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 1.2, boolean>;
137
140
  readonly minScale: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0.2, boolean>;
138
141
  readonly maxScale: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 7, boolean>;
142
+ readonly crossorigin: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => ("" | "anonymous" | "use-credentials") & {}) | (() => "" | "anonymous" | "use-credentials") | ((new (...args: any[]) => ("" | "anonymous" | "use-credentials") & {}) | (() => "" | "anonymous" | "use-credentials"))[], unknown, unknown, "anonymous", boolean>;
139
143
  }, {
140
144
  modes: Record<"CONTAIN" | "ORIGINAL", import("@element-plus/nightly/es/components/image-viewer").ImageViewerMode>;
141
145
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
@@ -154,6 +158,7 @@ declare const _default: import("vue").DefineComponent<{
154
158
  readonly zoomRate: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 1.2, boolean>;
155
159
  readonly minScale: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0.2, boolean>;
156
160
  readonly maxScale: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 7, boolean>;
161
+ readonly crossorigin: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => ("" | "anonymous" | "use-credentials") & {}) | (() => "" | "anonymous" | "use-credentials") | ((new (...args: any[]) => ("" | "anonymous" | "use-credentials") & {}) | (() => "" | "anonymous" | "use-credentials"))[], unknown, unknown, "anonymous", boolean>;
157
162
  }>> & {
158
163
  onClose?: (() => any) | undefined;
159
164
  onSwitch?: ((index: number) => any) | undefined;
@@ -184,6 +189,7 @@ declare const _default: import("vue").DefineComponent<{
184
189
  imgRefs: import("vue").Ref<HTMLImageElement[]>;
185
190
  scopeEventListener: import("vue").EffectScope;
186
191
  loading: import("vue").Ref<boolean>;
192
+ crossorigin: import("vue").Ref<string>;
187
193
  activeIndex: import("vue").Ref<number>;
188
194
  mode: import("vue").ShallowRef<import("@element-plus/nightly/es/components/image-viewer").ImageViewerMode>;
189
195
  transform: import("vue").Ref<{
@@ -303,6 +309,7 @@ declare const _default: import("vue").DefineComponent<{
303
309
  readonly zoomRate: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 1.2, boolean>;
304
310
  readonly minScale: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0.2, boolean>;
305
311
  readonly maxScale: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 7, boolean>;
312
+ readonly crossorigin: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => ("" | "anonymous" | "use-credentials") & {}) | (() => "" | "anonymous" | "use-credentials") | ((new (...args: any[]) => ("" | "anonymous" | "use-credentials") & {}) | (() => "" | "anonymous" | "use-credentials"))[], unknown, unknown, "anonymous", boolean>;
306
313
  }>> & {
307
314
  onClose?: (() => any) | undefined;
308
315
  onSwitch?: ((index: number) => any) | undefined;
@@ -315,6 +322,7 @@ declare const _default: import("vue").DefineComponent<{
315
322
  readonly zoomRate: number;
316
323
  readonly minScale: number;
317
324
  readonly maxScale: number;
325
+ readonly crossorigin: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => ("" | "anonymous" | "use-credentials") & {}) | (() => "" | "anonymous" | "use-credentials") | ((new (...args: any[]) => ("" | "anonymous" | "use-credentials") & {}) | (() => "" | "anonymous" | "use-credentials"))[], unknown, unknown>;
318
326
  readonly hideOnClickModal: boolean;
319
327
  readonly urlList: string[];
320
328
  }>> & Record<string, any>;
@@ -355,6 +363,7 @@ declare const _default: import("vue").DefineComponent<{
355
363
  readonly zoomRate: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 1.2, boolean>;
356
364
  readonly minScale: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0.2, boolean>;
357
365
  readonly maxScale: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 7, boolean>;
366
+ readonly crossorigin: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => ("" | "anonymous" | "use-credentials") & {}) | (() => "" | "anonymous" | "use-credentials") | ((new (...args: any[]) => ("" | "anonymous" | "use-credentials") & {}) | (() => "" | "anonymous" | "use-credentials"))[], unknown, unknown, "anonymous", boolean>;
358
367
  }>> & {
359
368
  onClose?: (() => any) | undefined;
360
369
  onShow?: (() => any) | undefined;
@@ -372,6 +381,7 @@ declare const _default: import("vue").DefineComponent<{
372
381
  readonly zoomRate: number;
373
382
  readonly minScale: number;
374
383
  readonly maxScale: number;
384
+ readonly crossorigin: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => ("" | "anonymous" | "use-credentials") & {}) | (() => "" | "anonymous" | "use-credentials") | ((new (...args: any[]) => ("" | "anonymous" | "use-credentials") & {}) | (() => "" | "anonymous" | "use-credentials"))[], unknown, unknown>;
375
385
  readonly hideOnClickModal: boolean;
376
386
  readonly previewTeleported: boolean;
377
387
  }>;