element-plus 2.7.3 → 2.7.4

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 (427) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index.full.js +106 -301
  3. package/dist/index.full.min.js +14 -14
  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 +886 -1081
  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-eg.js +1 -1
  13. package/dist/locale/ar-eg.min.js +1 -1
  14. package/dist/locale/ar-eg.min.mjs +1 -1
  15. package/dist/locale/ar-eg.mjs +1 -1
  16. package/dist/locale/ar.js +1 -1
  17. package/dist/locale/ar.min.js +1 -1
  18. package/dist/locale/ar.min.mjs +1 -1
  19. package/dist/locale/ar.mjs +1 -1
  20. package/dist/locale/az.js +1 -1
  21. package/dist/locale/az.min.js +1 -1
  22. package/dist/locale/az.min.mjs +1 -1
  23. package/dist/locale/az.mjs +1 -1
  24. package/dist/locale/bg.js +1 -1
  25. package/dist/locale/bg.min.js +1 -1
  26. package/dist/locale/bg.min.mjs +1 -1
  27. package/dist/locale/bg.mjs +1 -1
  28. package/dist/locale/bn.js +1 -1
  29. package/dist/locale/bn.min.js +1 -1
  30. package/dist/locale/bn.min.mjs +1 -1
  31. package/dist/locale/bn.mjs +1 -1
  32. package/dist/locale/ca.js +1 -1
  33. package/dist/locale/ca.min.js +1 -1
  34. package/dist/locale/ca.min.mjs +1 -1
  35. package/dist/locale/ca.mjs +1 -1
  36. package/dist/locale/ckb.js +1 -1
  37. package/dist/locale/ckb.min.js +1 -1
  38. package/dist/locale/ckb.min.mjs +1 -1
  39. package/dist/locale/ckb.mjs +1 -1
  40. package/dist/locale/cs.js +1 -1
  41. package/dist/locale/cs.min.js +1 -1
  42. package/dist/locale/cs.min.mjs +1 -1
  43. package/dist/locale/cs.mjs +1 -1
  44. package/dist/locale/da.js +1 -1
  45. package/dist/locale/da.min.js +1 -1
  46. package/dist/locale/da.min.mjs +1 -1
  47. package/dist/locale/da.mjs +1 -1
  48. package/dist/locale/de.js +1 -1
  49. package/dist/locale/de.min.js +1 -1
  50. package/dist/locale/de.min.mjs +1 -1
  51. package/dist/locale/de.mjs +1 -1
  52. package/dist/locale/el.js +1 -1
  53. package/dist/locale/el.min.js +1 -1
  54. package/dist/locale/el.min.mjs +1 -1
  55. package/dist/locale/el.mjs +1 -1
  56. package/dist/locale/en.js +1 -1
  57. package/dist/locale/en.min.js +1 -1
  58. package/dist/locale/en.min.mjs +1 -1
  59. package/dist/locale/en.mjs +1 -1
  60. package/dist/locale/eo.js +1 -1
  61. package/dist/locale/eo.min.js +1 -1
  62. package/dist/locale/eo.min.mjs +1 -1
  63. package/dist/locale/eo.mjs +1 -1
  64. package/dist/locale/es.js +1 -1
  65. package/dist/locale/es.min.js +1 -1
  66. package/dist/locale/es.min.mjs +1 -1
  67. package/dist/locale/es.mjs +1 -1
  68. package/dist/locale/et.js +1 -1
  69. package/dist/locale/et.min.js +1 -1
  70. package/dist/locale/et.min.mjs +1 -1
  71. package/dist/locale/et.mjs +1 -1
  72. package/dist/locale/eu.js +1 -1
  73. package/dist/locale/eu.min.js +1 -1
  74. package/dist/locale/eu.min.mjs +1 -1
  75. package/dist/locale/eu.mjs +1 -1
  76. package/dist/locale/fa.js +1 -1
  77. package/dist/locale/fa.min.js +1 -1
  78. package/dist/locale/fa.min.mjs +1 -1
  79. package/dist/locale/fa.mjs +1 -1
  80. package/dist/locale/fi.js +1 -1
  81. package/dist/locale/fi.min.js +1 -1
  82. package/dist/locale/fi.min.mjs +1 -1
  83. package/dist/locale/fi.mjs +1 -1
  84. package/dist/locale/fr.js +1 -1
  85. package/dist/locale/fr.min.js +1 -1
  86. package/dist/locale/fr.min.mjs +1 -1
  87. package/dist/locale/fr.mjs +1 -1
  88. package/dist/locale/he.js +1 -1
  89. package/dist/locale/he.min.js +1 -1
  90. package/dist/locale/he.min.mjs +1 -1
  91. package/dist/locale/he.mjs +1 -1
  92. package/dist/locale/hr.js +1 -1
  93. package/dist/locale/hr.min.js +1 -1
  94. package/dist/locale/hr.min.mjs +1 -1
  95. package/dist/locale/hr.mjs +1 -1
  96. package/dist/locale/hu.js +1 -1
  97. package/dist/locale/hu.min.js +1 -1
  98. package/dist/locale/hu.min.mjs +1 -1
  99. package/dist/locale/hu.mjs +1 -1
  100. package/dist/locale/hy-am.js +1 -1
  101. package/dist/locale/hy-am.min.js +1 -1
  102. package/dist/locale/hy-am.min.mjs +1 -1
  103. package/dist/locale/hy-am.mjs +1 -1
  104. package/dist/locale/id.js +1 -1
  105. package/dist/locale/id.min.js +1 -1
  106. package/dist/locale/id.min.mjs +1 -1
  107. package/dist/locale/id.mjs +1 -1
  108. package/dist/locale/it.js +1 -1
  109. package/dist/locale/it.min.js +1 -1
  110. package/dist/locale/it.min.mjs +1 -1
  111. package/dist/locale/it.mjs +1 -1
  112. package/dist/locale/ja.js +1 -1
  113. package/dist/locale/ja.min.js +1 -1
  114. package/dist/locale/ja.min.mjs +1 -1
  115. package/dist/locale/ja.mjs +1 -1
  116. package/dist/locale/kk.js +1 -1
  117. package/dist/locale/kk.min.js +1 -1
  118. package/dist/locale/kk.min.mjs +1 -1
  119. package/dist/locale/kk.mjs +1 -1
  120. package/dist/locale/km.js +1 -1
  121. package/dist/locale/km.min.js +1 -1
  122. package/dist/locale/km.min.mjs +1 -1
  123. package/dist/locale/km.mjs +1 -1
  124. package/dist/locale/ko.js +1 -1
  125. package/dist/locale/ko.min.js +1 -1
  126. package/dist/locale/ko.min.mjs +1 -1
  127. package/dist/locale/ko.mjs +1 -1
  128. package/dist/locale/ku.js +1 -1
  129. package/dist/locale/ku.min.js +1 -1
  130. package/dist/locale/ku.min.mjs +1 -1
  131. package/dist/locale/ku.mjs +1 -1
  132. package/dist/locale/ky.js +1 -1
  133. package/dist/locale/ky.min.js +1 -1
  134. package/dist/locale/ky.min.mjs +1 -1
  135. package/dist/locale/ky.mjs +1 -1
  136. package/dist/locale/lt.js +1 -1
  137. package/dist/locale/lt.min.js +1 -1
  138. package/dist/locale/lt.min.mjs +1 -1
  139. package/dist/locale/lt.mjs +1 -1
  140. package/dist/locale/lv.js +1 -1
  141. package/dist/locale/lv.min.js +1 -1
  142. package/dist/locale/lv.min.mjs +1 -1
  143. package/dist/locale/lv.mjs +1 -1
  144. package/dist/locale/mg.js +1 -1
  145. package/dist/locale/mg.min.js +1 -1
  146. package/dist/locale/mg.min.mjs +1 -1
  147. package/dist/locale/mg.mjs +1 -1
  148. package/dist/locale/mn.js +1 -1
  149. package/dist/locale/mn.min.js +1 -1
  150. package/dist/locale/mn.min.mjs +1 -1
  151. package/dist/locale/mn.mjs +1 -1
  152. package/dist/locale/nb-no.js +1 -1
  153. package/dist/locale/nb-no.min.js +1 -1
  154. package/dist/locale/nb-no.min.mjs +1 -1
  155. package/dist/locale/nb-no.mjs +1 -1
  156. package/dist/locale/nl.js +1 -1
  157. package/dist/locale/nl.min.js +1 -1
  158. package/dist/locale/nl.min.mjs +1 -1
  159. package/dist/locale/nl.mjs +1 -1
  160. package/dist/locale/pa.js +1 -1
  161. package/dist/locale/pa.min.js +1 -1
  162. package/dist/locale/pa.min.mjs +1 -1
  163. package/dist/locale/pa.mjs +1 -1
  164. package/dist/locale/pl.js +1 -1
  165. package/dist/locale/pl.min.js +1 -1
  166. package/dist/locale/pl.min.mjs +1 -1
  167. package/dist/locale/pl.mjs +1 -1
  168. package/dist/locale/pt-br.js +1 -1
  169. package/dist/locale/pt-br.min.js +1 -1
  170. package/dist/locale/pt-br.min.mjs +1 -1
  171. package/dist/locale/pt-br.mjs +1 -1
  172. package/dist/locale/pt.js +1 -1
  173. package/dist/locale/pt.min.js +1 -1
  174. package/dist/locale/pt.min.mjs +1 -1
  175. package/dist/locale/pt.mjs +1 -1
  176. package/dist/locale/ro.js +1 -1
  177. package/dist/locale/ro.min.js +1 -1
  178. package/dist/locale/ro.min.mjs +1 -1
  179. package/dist/locale/ro.mjs +1 -1
  180. package/dist/locale/ru.js +1 -1
  181. package/dist/locale/ru.min.js +1 -1
  182. package/dist/locale/ru.min.mjs +1 -1
  183. package/dist/locale/ru.mjs +1 -1
  184. package/dist/locale/sk.js +1 -1
  185. package/dist/locale/sk.min.js +1 -1
  186. package/dist/locale/sk.min.mjs +1 -1
  187. package/dist/locale/sk.mjs +1 -1
  188. package/dist/locale/sl.js +1 -1
  189. package/dist/locale/sl.min.js +1 -1
  190. package/dist/locale/sl.min.mjs +1 -1
  191. package/dist/locale/sl.mjs +1 -1
  192. package/dist/locale/sr.js +1 -1
  193. package/dist/locale/sr.min.js +1 -1
  194. package/dist/locale/sr.min.mjs +1 -1
  195. package/dist/locale/sr.mjs +1 -1
  196. package/dist/locale/sv.js +1 -1
  197. package/dist/locale/sv.min.js +1 -1
  198. package/dist/locale/sv.min.mjs +1 -1
  199. package/dist/locale/sv.mjs +1 -1
  200. package/dist/locale/sw.js +1 -1
  201. package/dist/locale/sw.min.js +1 -1
  202. package/dist/locale/sw.min.mjs +1 -1
  203. package/dist/locale/sw.mjs +1 -1
  204. package/dist/locale/ta.js +1 -1
  205. package/dist/locale/ta.min.js +1 -1
  206. package/dist/locale/ta.min.mjs +1 -1
  207. package/dist/locale/ta.mjs +1 -1
  208. package/dist/locale/th.js +1 -1
  209. package/dist/locale/th.min.js +1 -1
  210. package/dist/locale/th.min.mjs +1 -1
  211. package/dist/locale/th.mjs +1 -1
  212. package/dist/locale/tk.js +1 -1
  213. package/dist/locale/tk.min.js +1 -1
  214. package/dist/locale/tk.min.mjs +1 -1
  215. package/dist/locale/tk.mjs +1 -1
  216. package/dist/locale/tr.js +1 -1
  217. package/dist/locale/tr.min.js +1 -1
  218. package/dist/locale/tr.min.mjs +1 -1
  219. package/dist/locale/tr.mjs +1 -1
  220. package/dist/locale/ug-cn.js +1 -1
  221. package/dist/locale/ug-cn.min.js +1 -1
  222. package/dist/locale/ug-cn.min.mjs +1 -1
  223. package/dist/locale/ug-cn.mjs +1 -1
  224. package/dist/locale/uk.js +1 -1
  225. package/dist/locale/uk.min.js +1 -1
  226. package/dist/locale/uk.min.mjs +1 -1
  227. package/dist/locale/uk.mjs +1 -1
  228. package/dist/locale/uz-uz.js +1 -1
  229. package/dist/locale/uz-uz.min.js +1 -1
  230. package/dist/locale/uz-uz.min.mjs +1 -1
  231. package/dist/locale/uz-uz.mjs +1 -1
  232. package/dist/locale/vi.js +1 -1
  233. package/dist/locale/vi.min.js +1 -1
  234. package/dist/locale/vi.min.mjs +1 -1
  235. package/dist/locale/vi.mjs +1 -1
  236. package/dist/locale/zh-cn.js +1 -1
  237. package/dist/locale/zh-cn.min.js +1 -1
  238. package/dist/locale/zh-cn.min.mjs +1 -1
  239. package/dist/locale/zh-cn.mjs +1 -1
  240. package/dist/locale/zh-tw.js +1 -1
  241. package/dist/locale/zh-tw.min.js +1 -1
  242. package/dist/locale/zh-tw.min.mjs +1 -1
  243. package/dist/locale/zh-tw.mjs +1 -1
  244. package/es/components/affix/index.mjs +2 -2
  245. package/es/components/affix/src/affix.mjs +117 -26
  246. package/es/components/affix/src/affix.mjs.map +1 -1
  247. package/es/components/affix/src/affix2.mjs +26 -117
  248. package/es/components/affix/src/affix2.mjs.map +1 -1
  249. package/es/components/cascader/index.mjs.map +1 -1
  250. package/es/components/cascader/src/cascader.mjs +1 -1
  251. package/es/components/cascader-panel/index.mjs.map +1 -1
  252. package/es/components/collapse-transition/index.mjs.map +1 -1
  253. package/es/components/color-picker/src/color-picker2.mjs +7 -6
  254. package/es/components/color-picker/src/color-picker2.mjs.map +1 -1
  255. package/es/components/date-picker/index.mjs.map +1 -1
  256. package/es/components/descriptions/src/description2.mjs +1 -1
  257. package/es/components/descriptions/src/descriptions-row.mjs +7 -64
  258. package/es/components/descriptions/src/descriptions-row.mjs.map +1 -1
  259. package/es/components/descriptions/src/descriptions-row2.mjs +64 -7
  260. package/es/components/descriptions/src/descriptions-row2.mjs.map +1 -1
  261. package/es/components/index.mjs +4 -4
  262. package/es/components/pagination/src/components/sizes.mjs +23 -69
  263. package/es/components/pagination/src/components/sizes.mjs.map +1 -1
  264. package/es/components/pagination/src/components/sizes2.mjs +69 -23
  265. package/es/components/pagination/src/components/sizes2.mjs.map +1 -1
  266. package/es/components/pagination/src/pagination.mjs +1 -1
  267. package/es/components/popper/src/content2.mjs +1 -1
  268. package/es/components/popper/src/content2.mjs.map +1 -1
  269. package/es/components/select/src/select.mjs +1 -1
  270. package/es/components/select/src/select2.mjs +26 -5
  271. package/es/components/select/src/select2.mjs.map +1 -1
  272. package/es/components/select/src/useSelect.mjs +2 -0
  273. package/es/components/select/src/useSelect.mjs.map +1 -1
  274. package/es/components/select-v2/index.mjs.map +1 -1
  275. package/es/components/select-v2/src/defaults.mjs +1 -1
  276. package/es/components/select-v2/src/group-item.mjs +3 -13
  277. package/es/components/select-v2/src/group-item.mjs.map +1 -1
  278. package/es/components/select-v2/src/select.mjs +26 -5
  279. package/es/components/select-v2/src/select.mjs.map +1 -1
  280. package/es/components/select-v2/src/useSelect.mjs +3 -2
  281. package/es/components/select-v2/src/useSelect.mjs.map +1 -1
  282. package/es/components/skeleton/index.mjs +4 -4
  283. package/es/components/skeleton/src/skeleton-item.mjs +18 -23
  284. package/es/components/skeleton/src/skeleton-item.mjs.map +1 -1
  285. package/es/components/skeleton/src/skeleton-item2.mjs +23 -18
  286. package/es/components/skeleton/src/skeleton-item2.mjs.map +1 -1
  287. package/es/components/skeleton/src/skeleton.mjs +49 -22
  288. package/es/components/skeleton/src/skeleton.mjs.map +1 -1
  289. package/es/components/skeleton/src/skeleton2.mjs +22 -49
  290. package/es/components/skeleton/src/skeleton2.mjs.map +1 -1
  291. package/es/components/table/src/table-body/events-helper.mjs +5 -3
  292. package/es/components/table/src/table-body/events-helper.mjs.map +1 -1
  293. package/es/components/tag/index.mjs +2 -2
  294. package/es/components/tag/src/tag.mjs +94 -29
  295. package/es/components/tag/src/tag.mjs.map +1 -1
  296. package/es/components/tag/src/tag2.mjs +29 -94
  297. package/es/components/tag/src/tag2.mjs.map +1 -1
  298. package/es/components/time-picker/index.mjs.map +1 -1
  299. package/es/components/time-picker/src/common/picker.vue.d.ts +1 -1
  300. package/es/components/time-picker/src/common/props.d.ts +1 -31
  301. package/es/components/time-picker/src/common/props.mjs.map +1 -1
  302. package/es/components/time-select/index.mjs.map +1 -1
  303. package/es/components/tooltip-v2/index.mjs +2 -2
  304. package/es/components/tooltip-v2/src/tooltip.mjs +73 -20
  305. package/es/components/tooltip-v2/src/tooltip.mjs.map +1 -1
  306. package/es/components/tooltip-v2/src/tooltip2.mjs +20 -73
  307. package/es/components/tooltip-v2/src/tooltip2.mjs.map +1 -1
  308. package/es/components/tour/src/mask.mjs +78 -19
  309. package/es/components/tour/src/mask.mjs.map +1 -1
  310. package/es/components/tour/src/mask2.mjs +19 -78
  311. package/es/components/tour/src/mask2.mjs.map +1 -1
  312. package/es/components/tour/src/tour2.mjs +1 -1
  313. package/es/components/transfer/src/composables/use-check.mjs +1 -1
  314. package/es/components/transfer/src/transfer-panel.mjs +128 -19
  315. package/es/components/transfer/src/transfer-panel.mjs.map +1 -1
  316. package/es/components/transfer/src/transfer-panel2.mjs +19 -128
  317. package/es/components/transfer/src/transfer-panel2.mjs.map +1 -1
  318. package/es/components/transfer/src/transfer2.mjs +1 -1
  319. package/es/components/tree/index.mjs.map +1 -1
  320. package/es/components/tree/src/tree.mjs +5 -2
  321. package/es/components/tree/src/tree.mjs.map +1 -1
  322. package/es/components/tree-select/index.mjs.map +1 -1
  323. package/es/components/virtual-list/src/hooks/use-wheel.mjs.map +1 -1
  324. package/es/hooks/use-lockscreen/index.mjs +1 -2
  325. package/es/hooks/use-lockscreen/index.mjs.map +1 -1
  326. package/es/index.mjs +4 -4
  327. package/es/version.d.ts +1 -1
  328. package/es/version.mjs +1 -1
  329. package/es/version.mjs.map +1 -1
  330. package/lib/components/affix/index.js +2 -2
  331. package/lib/components/affix/src/affix.js +117 -27
  332. package/lib/components/affix/src/affix.js.map +1 -1
  333. package/lib/components/affix/src/affix2.js +27 -117
  334. package/lib/components/affix/src/affix2.js.map +1 -1
  335. package/lib/components/cascader/index.js.map +1 -1
  336. package/lib/components/cascader/src/cascader.js +1 -1
  337. package/lib/components/cascader-panel/index.js.map +1 -1
  338. package/lib/components/collapse-transition/index.js.map +1 -1
  339. package/lib/components/color-picker/src/color-picker2.js +6 -5
  340. package/lib/components/color-picker/src/color-picker2.js.map +1 -1
  341. package/lib/components/date-picker/index.js.map +1 -1
  342. package/lib/components/descriptions/src/description2.js +1 -1
  343. package/lib/components/descriptions/src/descriptions-row.js +7 -64
  344. package/lib/components/descriptions/src/descriptions-row.js.map +1 -1
  345. package/lib/components/descriptions/src/descriptions-row2.js +64 -7
  346. package/lib/components/descriptions/src/descriptions-row2.js.map +1 -1
  347. package/lib/components/index.js +4 -4
  348. package/lib/components/pagination/src/components/sizes.js +23 -69
  349. package/lib/components/pagination/src/components/sizes.js.map +1 -1
  350. package/lib/components/pagination/src/components/sizes2.js +69 -23
  351. package/lib/components/pagination/src/components/sizes2.js.map +1 -1
  352. package/lib/components/pagination/src/pagination.js +1 -1
  353. package/lib/components/popper/src/content2.js +1 -1
  354. package/lib/components/popper/src/content2.js.map +1 -1
  355. package/lib/components/select/src/select.js +1 -1
  356. package/lib/components/select/src/select2.js +25 -4
  357. package/lib/components/select/src/select2.js.map +1 -1
  358. package/lib/components/select/src/useSelect.js +2 -0
  359. package/lib/components/select/src/useSelect.js.map +1 -1
  360. package/lib/components/select-v2/index.js.map +1 -1
  361. package/lib/components/select-v2/src/defaults.js +1 -1
  362. package/lib/components/select-v2/src/group-item.js +2 -12
  363. package/lib/components/select-v2/src/group-item.js.map +1 -1
  364. package/lib/components/select-v2/src/select.js +25 -4
  365. package/lib/components/select-v2/src/select.js.map +1 -1
  366. package/lib/components/select-v2/src/useSelect.js +3 -2
  367. package/lib/components/select-v2/src/useSelect.js.map +1 -1
  368. package/lib/components/skeleton/index.js +4 -4
  369. package/lib/components/skeleton/src/skeleton-item.js +18 -23
  370. package/lib/components/skeleton/src/skeleton-item.js.map +1 -1
  371. package/lib/components/skeleton/src/skeleton-item2.js +23 -18
  372. package/lib/components/skeleton/src/skeleton-item2.js.map +1 -1
  373. package/lib/components/skeleton/src/skeleton.js +49 -22
  374. package/lib/components/skeleton/src/skeleton.js.map +1 -1
  375. package/lib/components/skeleton/src/skeleton2.js +22 -49
  376. package/lib/components/skeleton/src/skeleton2.js.map +1 -1
  377. package/lib/components/table/src/table-body/events-helper.js +5 -3
  378. package/lib/components/table/src/table-body/events-helper.js.map +1 -1
  379. package/lib/components/tag/index.js +2 -2
  380. package/lib/components/tag/src/tag.js +94 -30
  381. package/lib/components/tag/src/tag.js.map +1 -1
  382. package/lib/components/tag/src/tag2.js +30 -94
  383. package/lib/components/tag/src/tag2.js.map +1 -1
  384. package/lib/components/time-picker/index.js.map +1 -1
  385. package/lib/components/time-picker/src/common/picker.vue.d.ts +1 -1
  386. package/lib/components/time-picker/src/common/props.d.ts +1 -31
  387. package/lib/components/time-picker/src/common/props.js.map +1 -1
  388. package/lib/components/time-select/index.js.map +1 -1
  389. package/lib/components/tooltip-v2/index.js +2 -2
  390. package/lib/components/tooltip-v2/src/tooltip.js +73 -20
  391. package/lib/components/tooltip-v2/src/tooltip.js.map +1 -1
  392. package/lib/components/tooltip-v2/src/tooltip2.js +20 -73
  393. package/lib/components/tooltip-v2/src/tooltip2.js.map +1 -1
  394. package/lib/components/tour/src/mask.js +78 -19
  395. package/lib/components/tour/src/mask.js.map +1 -1
  396. package/lib/components/tour/src/mask2.js +19 -78
  397. package/lib/components/tour/src/mask2.js.map +1 -1
  398. package/lib/components/tour/src/tour2.js +1 -1
  399. package/lib/components/transfer/src/composables/use-check.js +1 -1
  400. package/lib/components/transfer/src/transfer-panel.js +128 -21
  401. package/lib/components/transfer/src/transfer-panel.js.map +1 -1
  402. package/lib/components/transfer/src/transfer-panel2.js +21 -128
  403. package/lib/components/transfer/src/transfer-panel2.js.map +1 -1
  404. package/lib/components/transfer/src/transfer2.js +1 -1
  405. package/lib/components/tree/index.js.map +1 -1
  406. package/lib/components/tree/src/tree.js +4 -1
  407. package/lib/components/tree/src/tree.js.map +1 -1
  408. package/lib/components/tree-select/index.js.map +1 -1
  409. package/lib/components/virtual-list/src/hooks/use-wheel.js.map +1 -1
  410. package/lib/hooks/use-lockscreen/index.js +1 -2
  411. package/lib/hooks/use-lockscreen/index.js.map +1 -1
  412. package/lib/index.js +4 -4
  413. package/lib/version.d.ts +1 -1
  414. package/lib/version.js +1 -1
  415. package/lib/version.js.map +1 -1
  416. package/package.json +2 -2
  417. package/theme-chalk/el-dropdown.css +1 -1
  418. package/theme-chalk/el-option-group.css +1 -1
  419. package/theme-chalk/el-select-v2.css +1 -1
  420. package/theme-chalk/el-select.css +1 -1
  421. package/theme-chalk/el-tree-select.css +1 -1
  422. package/theme-chalk/index.css +1 -1
  423. package/theme-chalk/src/common/var.scss +1 -1
  424. package/theme-chalk/src/dropdown.scss +1 -0
  425. package/theme-chalk/src/option-group.scss +0 -25
  426. package/theme-chalk/src/tree-select.scss +5 -0
  427. package/web-types.json +1 -1
@@ -3,7 +3,7 @@ import type { Options } from '@popperjs/core';
3
3
  import type { Dayjs } from 'dayjs';
4
4
  export declare type SingleOrRange<T> = T | [T, T];
5
5
  export declare type DateModelType = number | string | Date;
6
- export declare type ModelValueType = SingleOrRange<DateModelType>;
6
+ export declare type ModelValueType = SingleOrRange<DateModelType> | string[];
7
7
  export declare type DayOrDays = SingleOrRange<Dayjs>;
8
8
  export declare type DateOrDates = SingleOrRange<Date>;
9
9
  export declare type UserInput = SingleOrRange<string | null>;
@@ -15,18 +15,12 @@ export declare const timePickerDefaultProps: {
15
15
  readonly emptyValues: ArrayConstructor;
16
16
  readonly valueOnClear: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor, BooleanConstructor, FunctionConstructor], unknown, unknown, undefined, boolean>;
17
17
  readonly disabledDate: {
18
- /**
19
- * @description binding value, if it is an array, the length should be 2
20
- */
21
18
  readonly type: import("vue").PropType<Function>;
22
19
  readonly required: false;
23
20
  readonly validator: ((val: unknown) => boolean) | undefined;
24
21
  __epPropKey: true;
25
22
  };
26
23
  readonly cellClassName: {
27
- /**
28
- * @description binding value, if it is an array, the length should be 2
29
- */
30
24
  readonly type: import("vue").PropType<Function>;
31
25
  readonly required: false;
32
26
  readonly validator: ((val: unknown) => boolean) | undefined;
@@ -39,36 +33,24 @@ export declare const timePickerDefaultProps: {
39
33
  readonly validateEvent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
40
34
  readonly unlinkPanels: BooleanConstructor;
41
35
  readonly disabledHours: {
42
- /**
43
- * @description binding value, if it is an array, the length should be 2
44
- */
45
36
  readonly type: import("vue").PropType<import("../props/shared").GetDisabledHours>;
46
37
  readonly required: false;
47
38
  readonly validator: ((val: unknown) => boolean) | undefined;
48
39
  __epPropKey: true;
49
40
  };
50
41
  readonly disabledMinutes: {
51
- /**
52
- * @description binding value, if it is an array, the length should be 2
53
- */
54
42
  readonly type: import("vue").PropType<import("../props/shared").GetDisabledMinutes>;
55
43
  readonly required: false;
56
44
  readonly validator: ((val: unknown) => boolean) | undefined;
57
45
  __epPropKey: true;
58
46
  };
59
47
  readonly disabledSeconds: {
60
- /**
61
- * @description binding value, if it is an array, the length should be 2
62
- */
63
48
  readonly type: import("vue").PropType<import("../props/shared").GetDisabledSeconds>;
64
49
  readonly required: false;
65
50
  readonly validator: ((val: unknown) => boolean) | undefined;
66
51
  __epPropKey: true;
67
52
  };
68
53
  readonly id: {
69
- /**
70
- * @description binding value, if it is an array, the length should be 2
71
- */
72
54
  readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => SingleOrRange<string> & {}) | (() => SingleOrRange<string>) | ((new (...args: any[]) => SingleOrRange<string> & {}) | (() => SingleOrRange<string>))[], unknown, unknown>>;
73
55
  readonly required: false;
74
56
  readonly validator: ((val: unknown) => boolean) | undefined;
@@ -83,9 +65,6 @@ export declare const timePickerDefaultProps: {
83
65
  readonly type: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
84
66
  readonly clearable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
85
67
  readonly clearIcon: {
86
- /**
87
- * @description binding value, if it is an array, the length should be 2
88
- */
89
68
  readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>>;
90
69
  readonly required: false;
91
70
  readonly validator: ((val: unknown) => boolean) | undefined;
@@ -94,9 +73,6 @@ export declare const timePickerDefaultProps: {
94
73
  readonly editable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
95
74
  readonly prefixIcon: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown, "", boolean>;
96
75
  readonly size: {
97
- /**
98
- * @description binding value, if it is an array, the length should be 2
99
- */
100
76
  readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
101
77
  readonly required: false;
102
78
  readonly validator: ((val: unknown) => boolean) | undefined;
@@ -111,18 +87,12 @@ export declare const timePickerDefaultProps: {
111
87
  readonly startPlaceholder: StringConstructor;
112
88
  readonly endPlaceholder: StringConstructor;
113
89
  readonly defaultValue: {
114
- /**
115
- * @description binding value, if it is an array, the length should be 2
116
- */
117
90
  readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => SingleOrRange<Date>))[], unknown, unknown>>;
118
91
  readonly required: false;
119
92
  readonly validator: ((val: unknown) => boolean) | undefined;
120
93
  __epPropKey: true;
121
94
  };
122
95
  readonly defaultTime: {
123
- /**
124
- * @description binding value, if it is an array, the length should be 2
125
- */
126
96
  readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => SingleOrRange<Date>))[], unknown, unknown>>;
127
97
  readonly required: false;
128
98
  readonly validator: ((val: unknown) => boolean) | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"props.mjs","sources":["../../../../../../../packages/components/time-picker/src/common/props.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport {\n useAriaProps,\n useEmptyValuesProps,\n useSizeProp,\n} from '@element-plus/hooks'\nimport { CircleClose } from '@element-plus/icons-vue'\nimport { disabledTimeListsProps } from '../props/shared'\n\nimport type { Component, ExtractPropTypes } from 'vue'\nimport type { Options } from '@popperjs/core'\nimport type { Dayjs } from 'dayjs'\n\nexport type SingleOrRange<T> = T | [T, T]\nexport type DateModelType = number | string | Date\nexport type ModelValueType = SingleOrRange<DateModelType>\nexport type DayOrDays = SingleOrRange<Dayjs>\nexport type DateOrDates = SingleOrRange<Date>\nexport type UserInput = SingleOrRange<string | null>\nexport type GetDisabledHours = (role: string, comparingDate?: Dayjs) => number[]\nexport type GetDisabledMinutes = (\n hour: number,\n role: string,\n comparingDate?: Dayjs\n) => number[]\nexport type GetDisabledSeconds = (\n hour: number,\n minute: number,\n role: string,\n comparingDate?: Dayjs\n) => number[]\n\nexport const timePickerDefaultProps = buildProps({\n /**\n * @description same as `id` in native input\n */\n id: {\n type: definePropType<SingleOrRange<string>>([Array, String]),\n },\n /**\n * @description same as `name` in native input\n */\n name: {\n type: definePropType<SingleOrRange<string>>([Array, String]),\n default: '',\n },\n /**\n * @description custom class name for TimePicker's dropdown\n */\n popperClass: {\n type: String,\n default: '',\n },\n /**\n * @description format of the displayed value in the input box\n */\n format: String,\n /**\n * @description optional, format of binding value. If not specified, the binding value will be a Date object\n */\n valueFormat: String,\n /**\n * @description optional, format of the date displayed value in TimePicker's dropdown\n */\n dateFormat: String,\n /**\n * @description optional, format of the time displayed value in TimePicker's dropdown\n */\n timeFormat: String,\n /**\n * @description type of the picker\n */\n type: {\n type: String,\n default: '',\n },\n /**\n * @description whether to show clear button\n */\n clearable: {\n type: Boolean,\n default: true,\n },\n /**\n * @description Custom clear icon component\n */\n clearIcon: {\n type: definePropType<string | Component>([String, Object]),\n default: CircleClose,\n },\n /**\n * @description whether the input is editable\n */\n editable: {\n type: Boolean,\n default: true,\n },\n /**\n * @description Custom prefix icon component\n */\n prefixIcon: {\n type: definePropType<string | Component>([String, Object]),\n default: '',\n },\n /**\n * @description size of Input\n */\n size: useSizeProp,\n /**\n * @description whether TimePicker is read only\n */\n readonly: Boolean,\n /**\n * @description whether TimePicker is disabled\n */\n disabled: Boolean,\n /**\n * @description placeholder in non-range mode\n */\n placeholder: {\n type: String,\n default: '',\n },\n /**\n * @description [popper.js](https://popper.js.org/docs/v2/) parameters\n */\n popperOptions: {\n type: definePropType<Partial<Options>>(Object),\n default: () => ({}),\n },\n /**\n * @description binding value, if it is an array, the length should be 2\n */\n modelValue: {\n type: definePropType<ModelValueType>([Date, Array, String, Number]),\n default: '',\n },\n /**\n * @description range separator\n */\n rangeSeparator: {\n type: String,\n default: '-',\n },\n /**\n * @description placeholder for the start date in range mode\n */\n startPlaceholder: String,\n /**\n * @description placeholder for the end date in range mode\n */\n endPlaceholder: String,\n /**\n * @description optional, default date of the calendar\n */\n defaultValue: {\n type: definePropType<SingleOrRange<Date>>([Date, Array]),\n },\n /**\n * @description optional, the time value to use when selecting date range\n */\n defaultTime: {\n type: definePropType<SingleOrRange<Date>>([Date, Array]),\n },\n /**\n * @description whether to pick a time range\n */\n isRange: Boolean,\n ...disabledTimeListsProps,\n /**\n * @description a function determining if a date is disabled with that date as its parameter. Should return a Boolean\n */\n disabledDate: {\n type: Function,\n },\n /**\n * @description set custom className\n */\n cellClassName: {\n type: Function,\n },\n /**\n * @description an object array to set shortcut options\n */\n shortcuts: {\n type: Array,\n default: () => [],\n },\n /**\n * @description whether to pick time using arrow buttons\n */\n arrowControl: Boolean,\n /**\n * @deprecated same as `aria-label` in native input\n */\n label: {\n type: String,\n default: undefined,\n },\n /**\n * @description input tabindex\n */\n tabindex: {\n type: definePropType<string | number>([String, Number]),\n default: 0,\n },\n /**\n * @description whether to trigger form validation\n */\n validateEvent: {\n type: Boolean,\n default: true,\n },\n /**\n * @description unlink two date-panels in range-picker\n */\n unlinkPanels: Boolean,\n ...useEmptyValuesProps,\n ...useAriaProps(['ariaLabel']),\n} as const)\n\nexport type TimePickerDefaultProps = ExtractPropTypes<\n typeof timePickerDefaultProps\n>\n\nexport interface PickerOptions {\n isValidValue: (date: DayOrDays) => boolean\n handleKeydownInput: (event: KeyboardEvent) => void\n parseUserInput: (value: UserInput) => DayOrDays\n formatToString: (value: DayOrDays) => UserInput\n getRangeAvailableTime: (date: DayOrDays) => DayOrDays\n getDefaultValue: () => DayOrDays\n panelReady: boolean\n handleClear: () => void\n handleFocusPicker?: () => void\n}\n"],"names":[],"mappings":";;;;;;;;;AAQY,MAAC,sBAAsB,GAAG,UAAU,CAAC;AACjD,EAAE,EAAE,EAAE;AACN,IAAI,IAAI,EAAE,cAAc,C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Y,EAAE,OAAO;AACvB,EAAE,GAAG,mBAAmB;AACxB,EAAE,GAAG,YAAY,CAAC,CAAC,WAAW,CAAC,CAAC;AAChC,CAAC;;;;"}
1
+ {"version":3,"file":"props.mjs","sources":["../../../../../../../packages/components/time-picker/src/common/props.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport {\n useAriaProps,\n useEmptyValuesProps,\n useSizeProp,\n} from '@element-plus/hooks'\nimport { CircleClose } from '@element-plus/icons-vue'\nimport { disabledTimeListsProps } from '../props/shared'\n\nimport type { Component, ExtractPropTypes } from 'vue'\nimport type { Options } from '@popperjs/core'\nimport type { Dayjs } from 'dayjs'\n\nexport type SingleOrRange<T> = T | [T, T]\nexport type DateModelType = number | string | Date\nexport type ModelValueType = SingleOrRange<DateModelType> | string[]\nexport type DayOrDays = SingleOrRange<Dayjs>\nexport type DateOrDates = SingleOrRange<Date>\nexport type UserInput = SingleOrRange<string | null>\nexport type GetDisabledHours = (role: string, comparingDate?: Dayjs) => number[]\nexport type GetDisabledMinutes = (\n hour: number,\n role: string,\n comparingDate?: Dayjs\n) => number[]\nexport type GetDisabledSeconds = (\n hour: number,\n minute: number,\n role: string,\n comparingDate?: Dayjs\n) => number[]\n\nexport const timePickerDefaultProps = buildProps({\n /**\n * @description same as `id` in native input\n */\n id: {\n type: definePropType<SingleOrRange<string>>([Array, String]),\n },\n /**\n * @description same as `name` in native input\n */\n name: {\n type: definePropType<SingleOrRange<string>>([Array, String]),\n default: '',\n },\n /**\n * @description custom class name for TimePicker's dropdown\n */\n popperClass: {\n type: String,\n default: '',\n },\n /**\n * @description format of the displayed value in the input box\n */\n format: String,\n /**\n * @description optional, format of binding value. If not specified, the binding value will be a Date object\n */\n valueFormat: String,\n /**\n * @description optional, format of the date displayed value in TimePicker's dropdown\n */\n dateFormat: String,\n /**\n * @description optional, format of the time displayed value in TimePicker's dropdown\n */\n timeFormat: String,\n /**\n * @description type of the picker\n */\n type: {\n type: String,\n default: '',\n },\n /**\n * @description whether to show clear button\n */\n clearable: {\n type: Boolean,\n default: true,\n },\n /**\n * @description Custom clear icon component\n */\n clearIcon: {\n type: definePropType<string | Component>([String, Object]),\n default: CircleClose,\n },\n /**\n * @description whether the input is editable\n */\n editable: {\n type: Boolean,\n default: true,\n },\n /**\n * @description Custom prefix icon component\n */\n prefixIcon: {\n type: definePropType<string | Component>([String, Object]),\n default: '',\n },\n /**\n * @description size of Input\n */\n size: useSizeProp,\n /**\n * @description whether TimePicker is read only\n */\n readonly: Boolean,\n /**\n * @description whether TimePicker is disabled\n */\n disabled: Boolean,\n /**\n * @description placeholder in non-range mode\n */\n placeholder: {\n type: String,\n default: '',\n },\n /**\n * @description [popper.js](https://popper.js.org/docs/v2/) parameters\n */\n popperOptions: {\n type: definePropType<Partial<Options>>(Object),\n default: () => ({}),\n },\n /**\n * @description binding value, if it is an array, the length should be 2\n */\n modelValue: {\n type: definePropType<ModelValueType>([Date, Array, String, Number]),\n default: '',\n },\n /**\n * @description range separator\n */\n rangeSeparator: {\n type: String,\n default: '-',\n },\n /**\n * @description placeholder for the start date in range mode\n */\n startPlaceholder: String,\n /**\n * @description placeholder for the end date in range mode\n */\n endPlaceholder: String,\n /**\n * @description optional, default date of the calendar\n */\n defaultValue: {\n type: definePropType<SingleOrRange<Date>>([Date, Array]),\n },\n /**\n * @description optional, the time value to use when selecting date range\n */\n defaultTime: {\n type: definePropType<SingleOrRange<Date>>([Date, Array]),\n },\n /**\n * @description whether to pick a time range\n */\n isRange: Boolean,\n ...disabledTimeListsProps,\n /**\n * @description a function determining if a date is disabled with that date as its parameter. Should return a Boolean\n */\n disabledDate: {\n type: Function,\n },\n /**\n * @description set custom className\n */\n cellClassName: {\n type: Function,\n },\n /**\n * @description an object array to set shortcut options\n */\n shortcuts: {\n type: Array,\n default: () => [],\n },\n /**\n * @description whether to pick time using arrow buttons\n */\n arrowControl: Boolean,\n /**\n * @deprecated same as `aria-label` in native input\n */\n label: {\n type: String,\n default: undefined,\n },\n /**\n * @description input tabindex\n */\n tabindex: {\n type: definePropType<string | number>([String, Number]),\n default: 0,\n },\n /**\n * @description whether to trigger form validation\n */\n validateEvent: {\n type: Boolean,\n default: true,\n },\n /**\n * @description unlink two date-panels in range-picker\n */\n unlinkPanels: Boolean,\n ...useEmptyValuesProps,\n ...useAriaProps(['ariaLabel']),\n} as const)\n\nexport type TimePickerDefaultProps = ExtractPropTypes<\n typeof timePickerDefaultProps\n>\n\nexport interface PickerOptions {\n isValidValue: (date: DayOrDays) => boolean\n handleKeydownInput: (event: KeyboardEvent) => void\n parseUserInput: (value: UserInput) => DayOrDays\n formatToString: (value: DayOrDays) => UserInput\n getRangeAvailableTime: (date: DayOrDays) => DayOrDays\n getDefaultValue: () => DayOrDays\n panelReady: boolean\n handleClear: () => void\n handleFocusPicker?: () => void\n}\n"],"names":[],"mappings":";;;;;;;;;AAQY,MAAC,sBAAsB,GAAG,UAAU,CAAC;AACjD,EAAE,EAAE,EAAE;AACN,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;AACzC,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;AACzC,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE,MAAM;AAChB,EAAE,WAAW,EAAE,MAAM;AACrB,EAAE,UAAU,EAAE,MAAM;AACpB,EAAE,UAAU,EAAE,MAAM;AACpB,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,SAAS,E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,GAAG,sBAAsB;AAC3B,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,QAAQ;AAClB,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,QAAQ;AAClB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,KAAK;AACf,IAAI,OAAO,EAAE,MAAM,EAAE;AACrB,GAAG;AACH,EAAE,YAAY,EAAE,OAAO;AACvB,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,YAAY,EAAE,OAAO;AACvB,EAAE,GAAG,mBAAmB;AACxB,EAAE,GAAG,YAAY,CAAC,CAAC,WAAW,CAAC,CAAC;AAChC,CAAC;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../../packages/components/time-select/index.ts"],"sourcesContent":["import TimeSelect from './src/time-select.vue'\n\nimport type { App } from 'vue'\nimport type { SFCWithInstall } from '@element-plus/utils'\n\nTimeSelect.install = (app: App): void => {\n app.component(TimeSelect.name, TimeSelect)\n}\n\nconst _TimeSelect = TimeSelect as SFCWithInstall<typeof TimeSelect>\n\nexport default _TimeSelect\nexport const ElTimeSelect = _TimeSelect\n"],"names":[],"mappings":";;AACA,UAAU,CAAC,OAAO,GAAG,CAAC,GAAG,KAAK;AAC9B,EAAE,GAAG,CAAC,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;AAC7C,CAAC,CAAC;AACG,MAAC,WAAW,GAAG,WAAW;AAEnB,MAAC,YAAY,GAAG;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../packages/components/time-select/index.ts"],"sourcesContent":["import TimeSelect from './src/time-select.vue'\n\nimport type { App } from 'vue'\nimport type { SFCWithInstall } from '@element-plus/utils'\n\nTimeSelect.install = (app: App): void => {\n app.component(TimeSelect.name!, TimeSelect)\n}\n\nconst _TimeSelect = TimeSelect as SFCWithInstall<typeof TimeSelect>\n\nexport default _TimeSelect\nexport const ElTimeSelect = _TimeSelect\n"],"names":[],"mappings":";;AACA,UAAU,CAAC,OAAO,GAAG,CAAC,GAAG,KAAK;AAC9B,EAAE,GAAG,CAAC,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;AAC7C,CAAC,CAAC;AACG,MAAC,WAAW,GAAG,WAAW;AAEnB,MAAC,YAAY,GAAG;;;;"}
@@ -1,9 +1,9 @@
1
1
  import '../../utils/index.mjs';
2
- import TooltipV2 from './src/tooltip2.mjs';
2
+ import TooltipV2 from './src/tooltip.mjs';
3
3
  export { tooltipV2ArrowProps, tooltipV2ArrowSpecialProps } from './src/arrow.mjs';
4
4
  export { tooltipV2ContentProps } from './src/content.mjs';
5
5
  export { tooltipV2RootProps } from './src/root.mjs';
6
- export { tooltipV2Props } from './src/tooltip.mjs';
6
+ export { tooltipV2Props } from './src/tooltip2.mjs';
7
7
  export { tooltipV2TriggerProps } from './src/trigger.mjs';
8
8
  export { TOOLTIP_V2_OPEN, tooltipV2ContentKey, tooltipV2RootKey } from './src/constants.mjs';
9
9
  import { withInstall } from '../../utils/vue/install.mjs';
@@ -1,27 +1,80 @@
1
- import '../../../utils/index.mjs';
2
- import { tooltipV2RootProps } from './root.mjs';
3
- import { tooltipV2TriggerProps } from './trigger.mjs';
1
+ import { defineComponent, toRefs, reactive, openBlock, createBlock, normalizeProps, guardReactiveProps, withCtx, createVNode, mergeProps, renderSlot, Teleport, Transition, createCommentVNode, createElementBlock, Fragment } from 'vue';
2
+ import { pick } from 'lodash-unified';
4
3
  import { tooltipV2ArrowProps } from './arrow.mjs';
5
4
  import { tooltipV2ContentProps } from './content.mjs';
6
- import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
5
+ import { tooltipV2RootProps } from './root.mjs';
6
+ import { tooltipV2Props } from './tooltip2.mjs';
7
+ import { tooltipV2TriggerProps } from './trigger.mjs';
8
+ import TooltipV2Root from './root2.mjs';
9
+ import TooltipV2Arrow from './arrow2.mjs';
10
+ import TooltipV2Content from './content2.mjs';
11
+ import TooltipV2Trigger from './trigger2.mjs';
12
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
7
13
 
8
- const tooltipV2Props = buildProps({
9
- ...tooltipV2RootProps,
10
- ...tooltipV2ArrowProps,
11
- ...tooltipV2TriggerProps,
12
- ...tooltipV2ContentProps,
13
- alwaysOn: Boolean,
14
- fullTransition: Boolean,
15
- transitionProps: {
16
- type: definePropType(Object),
17
- default: null
18
- },
19
- teleported: Boolean,
20
- to: {
21
- type: definePropType(String),
22
- default: "body"
14
+ const __default__ = defineComponent({
15
+ name: "ElTooltipV2"
16
+ });
17
+ const _sfc_main = /* @__PURE__ */ defineComponent({
18
+ ...__default__,
19
+ props: tooltipV2Props,
20
+ setup(__props) {
21
+ const props = __props;
22
+ const refedProps = toRefs(props);
23
+ const arrowProps = reactive(pick(refedProps, Object.keys(tooltipV2ArrowProps)));
24
+ const contentProps = reactive(pick(refedProps, Object.keys(tooltipV2ContentProps)));
25
+ const rootProps = reactive(pick(refedProps, Object.keys(tooltipV2RootProps)));
26
+ const triggerProps = reactive(pick(refedProps, Object.keys(tooltipV2TriggerProps)));
27
+ return (_ctx, _cache) => {
28
+ return openBlock(), createBlock(TooltipV2Root, normalizeProps(guardReactiveProps(rootProps)), {
29
+ default: withCtx(({ open }) => [
30
+ createVNode(TooltipV2Trigger, mergeProps(triggerProps, { nowrap: "" }), {
31
+ default: withCtx(() => [
32
+ renderSlot(_ctx.$slots, "trigger")
33
+ ]),
34
+ _: 3
35
+ }, 16),
36
+ (openBlock(), createBlock(Teleport, {
37
+ to: _ctx.to,
38
+ disabled: !_ctx.teleported
39
+ }, [
40
+ _ctx.fullTransition ? (openBlock(), createBlock(Transition, normalizeProps(mergeProps({ key: 0 }, _ctx.transitionProps)), {
41
+ default: withCtx(() => [
42
+ _ctx.alwaysOn || open ? (openBlock(), createBlock(TooltipV2Content, normalizeProps(mergeProps({ key: 0 }, contentProps)), {
43
+ arrow: withCtx(({ style, side }) => [
44
+ _ctx.showArrow ? (openBlock(), createBlock(TooltipV2Arrow, mergeProps({ key: 0 }, arrowProps, {
45
+ style,
46
+ side
47
+ }), null, 16, ["style", "side"])) : createCommentVNode("v-if", true)
48
+ ]),
49
+ default: withCtx(() => [
50
+ renderSlot(_ctx.$slots, "default")
51
+ ]),
52
+ _: 3
53
+ }, 16)) : createCommentVNode("v-if", true)
54
+ ]),
55
+ _: 2
56
+ }, 1040)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
57
+ _ctx.alwaysOn || open ? (openBlock(), createBlock(TooltipV2Content, normalizeProps(mergeProps({ key: 0 }, contentProps)), {
58
+ arrow: withCtx(({ style, side }) => [
59
+ _ctx.showArrow ? (openBlock(), createBlock(TooltipV2Arrow, mergeProps({ key: 0 }, arrowProps, {
60
+ style,
61
+ side
62
+ }), null, 16, ["style", "side"])) : createCommentVNode("v-if", true)
63
+ ]),
64
+ default: withCtx(() => [
65
+ renderSlot(_ctx.$slots, "default")
66
+ ]),
67
+ _: 3
68
+ }, 16)) : createCommentVNode("v-if", true)
69
+ ], 64))
70
+ ], 8, ["to", "disabled"]))
71
+ ]),
72
+ _: 3
73
+ }, 16);
74
+ };
23
75
  }
24
76
  });
77
+ var TooltipV2 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "tooltip.vue"]]);
25
78
 
26
- export { tooltipV2Props };
79
+ export { TooltipV2 as default };
27
80
  //# sourceMappingURL=tooltip.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"tooltip.mjs","sources":["../../../../../../packages/components/tooltip-v2/src/tooltip.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport { tooltipV2RootProps } from './root'\nimport { tooltipV2TriggerProps } from './trigger'\nimport { tooltipV2ArrowProps } from './arrow'\nimport { tooltipV2ContentProps } from './content'\n\nimport type { ExtractPropTypes, TeleportProps, TransitionProps } from 'vue'\n\nexport const tooltipV2Props = buildProps({\n ...tooltipV2RootProps,\n ...tooltipV2ArrowProps,\n ...tooltipV2TriggerProps,\n ...tooltipV2ContentProps,\n alwaysOn: Boolean,\n fullTransition: Boolean,\n transitionProps: {\n type: definePropType<TransitionProps | null>(Object),\n default: null,\n },\n teleported: Boolean,\n to: {\n type: definePropType<TeleportProps['to']>(String),\n default: 'body',\n },\n} as const)\n\nexport type TooltipV2Props = ExtractPropTypes<typeof tooltipV2Props>\n"],"names":[],"mappings":";;;;;;;AAKY,MAAC,cAAc,GAAG,UAAU,CAAC;AACzC,EAAE,GAAG,kBAAkB;AACvB,EAAE,GAAG,mBAAmB;AACxB,EAAE,GAAG,qBAAqB;AAC1B,EAAE,GAAG,qBAAqB;AAC1B,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,cAAc,EAAE,OAAO;AACzB,EAAE,eAAe,EAAE;AACnB,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,UAAU,EAAE,OAAO;AACrB,EAAE,EAAE,EAAE;AACN,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,IAAI,OAAO,EAAE,MAAM;AACnB,GAAG;AACH,CAAC;;;;"}
1
+ {"version":3,"file":"tooltip.mjs","sources":["../../../../../../packages/components/tooltip-v2/src/tooltip.vue"],"sourcesContent":["<template>\n <tooltip-v2-root v-bind=\"rootProps\">\n <template #default=\"{ open }\">\n <tooltip-v2-trigger v-bind=\"triggerProps\" nowrap>\n <slot name=\"trigger\" />\n </tooltip-v2-trigger>\n <teleport :to=\"to\" :disabled=\"!teleported\">\n <template v-if=\"fullTransition\">\n <transition v-bind=\"transitionProps\">\n <tooltip-v2-content v-if=\"alwaysOn || open\" v-bind=\"contentProps\">\n <slot />\n <template #arrow=\"{ style, side }\">\n <tooltip-v2-arrow\n v-if=\"showArrow\"\n v-bind=\"arrowProps\"\n :style=\"style\"\n :side=\"side\"\n />\n </template>\n </tooltip-v2-content>\n </transition>\n </template>\n <template v-else>\n <tooltip-v2-content v-if=\"alwaysOn || open\" v-bind=\"contentProps\">\n <slot />\n <template #arrow=\"{ style, side }\">\n <tooltip-v2-arrow\n v-if=\"showArrow\"\n v-bind=\"arrowProps\"\n :style=\"style\"\n :side=\"side\"\n />\n </template>\n </tooltip-v2-content>\n </template>\n </teleport>\n </template>\n </tooltip-v2-root>\n</template>\n\n<script setup lang=\"ts\">\n// @ts-nocheck\nimport { reactive, toRefs } from 'vue'\nimport { pick } from 'lodash-unified'\nimport { tooltipV2ArrowProps } from './arrow'\nimport { tooltipV2ContentProps } from './content'\nimport { tooltipV2RootProps } from './root'\nimport { tooltipV2Props } from './tooltip'\nimport { tooltipV2TriggerProps } from './trigger'\nimport TooltipV2Root from './root.vue'\nimport TooltipV2Arrow from './arrow.vue'\nimport TooltipV2Content from './content.vue'\nimport TooltipV2Trigger from './trigger.vue'\n\ndefineOptions({\n name: 'ElTooltipV2',\n})\n\nconst props = defineProps(tooltipV2Props)\n\nconst refedProps = toRefs(props)\n\nconst arrowProps = reactive(pick(refedProps, Object.keys(tooltipV2ArrowProps)))\n\nconst contentProps = reactive(\n pick(refedProps, Object.keys(tooltipV2ContentProps))\n)\n\nconst rootProps = reactive(pick(refedProps, Object.keys(tooltipV2RootProps)))\n\nconst triggerProps = reactive(\n pick(refedProps, Object.keys(tooltipV2TriggerProps))\n)\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;mCAsDc,CAAA;AAAA,EACZ,IAAM,EAAA,aAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAIA,IAAM,MAAA,UAAA,GAAa,OAAO,KAAK,CAAA,CAAA;AAE/B,IAAM,MAAA,UAAA,GAAa,SAAS,IAAK,CAAA,UAAA,EAAY,OAAO,IAAK,CAAA,mBAAmB,CAAC,CAAC,CAAA,CAAA;AAE9E,IAAM,MAAA,YAAA,GAAe,SACnB,IAAK,CAAA,UAAA,EAAY,OAAO,IAAK,CAAA,qBAAqB,CAAC,CACrD,CAAA,CAAA;AAEA,IAAM,MAAA,SAAA,GAAY,SAAS,IAAK,CAAA,UAAA,EAAY,OAAO,IAAK,CAAA,kBAAkB,CAAC,CAAC,CAAA,CAAA;AAE5E,IAAM,MAAA,YAAA,GAAe,SACnB,IAAK,CAAA,UAAA,EAAY,OAAO,IAAK,CAAA,qBAAqB,CAAC,CACrD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,80 +1,27 @@
1
- import { defineComponent, toRefs, reactive, openBlock, createBlock, normalizeProps, guardReactiveProps, withCtx, createVNode, mergeProps, renderSlot, Teleport, Transition, createCommentVNode, createElementBlock, Fragment } from 'vue';
2
- import { pick } from 'lodash-unified';
3
- import { tooltipV2ArrowProps } from './arrow.mjs';
4
- import { tooltipV2ContentProps } from './content.mjs';
1
+ import '../../../utils/index.mjs';
5
2
  import { tooltipV2RootProps } from './root.mjs';
6
- import { tooltipV2Props } from './tooltip.mjs';
7
3
  import { tooltipV2TriggerProps } from './trigger.mjs';
8
- import TooltipV2Root from './root2.mjs';
9
- import TooltipV2Arrow from './arrow2.mjs';
10
- import TooltipV2Content from './content2.mjs';
11
- import TooltipV2Trigger from './trigger2.mjs';
12
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
4
+ import { tooltipV2ArrowProps } from './arrow.mjs';
5
+ import { tooltipV2ContentProps } from './content.mjs';
6
+ import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
13
7
 
14
- const __default__ = defineComponent({
15
- name: "ElTooltipV2"
16
- });
17
- const _sfc_main = /* @__PURE__ */ defineComponent({
18
- ...__default__,
19
- props: tooltipV2Props,
20
- setup(__props) {
21
- const props = __props;
22
- const refedProps = toRefs(props);
23
- const arrowProps = reactive(pick(refedProps, Object.keys(tooltipV2ArrowProps)));
24
- const contentProps = reactive(pick(refedProps, Object.keys(tooltipV2ContentProps)));
25
- const rootProps = reactive(pick(refedProps, Object.keys(tooltipV2RootProps)));
26
- const triggerProps = reactive(pick(refedProps, Object.keys(tooltipV2TriggerProps)));
27
- return (_ctx, _cache) => {
28
- return openBlock(), createBlock(TooltipV2Root, normalizeProps(guardReactiveProps(rootProps)), {
29
- default: withCtx(({ open }) => [
30
- createVNode(TooltipV2Trigger, mergeProps(triggerProps, { nowrap: "" }), {
31
- default: withCtx(() => [
32
- renderSlot(_ctx.$slots, "trigger")
33
- ]),
34
- _: 3
35
- }, 16),
36
- (openBlock(), createBlock(Teleport, {
37
- to: _ctx.to,
38
- disabled: !_ctx.teleported
39
- }, [
40
- _ctx.fullTransition ? (openBlock(), createBlock(Transition, normalizeProps(mergeProps({ key: 0 }, _ctx.transitionProps)), {
41
- default: withCtx(() => [
42
- _ctx.alwaysOn || open ? (openBlock(), createBlock(TooltipV2Content, normalizeProps(mergeProps({ key: 0 }, contentProps)), {
43
- arrow: withCtx(({ style, side }) => [
44
- _ctx.showArrow ? (openBlock(), createBlock(TooltipV2Arrow, mergeProps({ key: 0 }, arrowProps, {
45
- style,
46
- side
47
- }), null, 16, ["style", "side"])) : createCommentVNode("v-if", true)
48
- ]),
49
- default: withCtx(() => [
50
- renderSlot(_ctx.$slots, "default")
51
- ]),
52
- _: 3
53
- }, 16)) : createCommentVNode("v-if", true)
54
- ]),
55
- _: 2
56
- }, 1040)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
57
- _ctx.alwaysOn || open ? (openBlock(), createBlock(TooltipV2Content, normalizeProps(mergeProps({ key: 0 }, contentProps)), {
58
- arrow: withCtx(({ style, side }) => [
59
- _ctx.showArrow ? (openBlock(), createBlock(TooltipV2Arrow, mergeProps({ key: 0 }, arrowProps, {
60
- style,
61
- side
62
- }), null, 16, ["style", "side"])) : createCommentVNode("v-if", true)
63
- ]),
64
- default: withCtx(() => [
65
- renderSlot(_ctx.$slots, "default")
66
- ]),
67
- _: 3
68
- }, 16)) : createCommentVNode("v-if", true)
69
- ], 64))
70
- ], 8, ["to", "disabled"]))
71
- ]),
72
- _: 3
73
- }, 16);
74
- };
8
+ const tooltipV2Props = buildProps({
9
+ ...tooltipV2RootProps,
10
+ ...tooltipV2ArrowProps,
11
+ ...tooltipV2TriggerProps,
12
+ ...tooltipV2ContentProps,
13
+ alwaysOn: Boolean,
14
+ fullTransition: Boolean,
15
+ transitionProps: {
16
+ type: definePropType(Object),
17
+ default: null
18
+ },
19
+ teleported: Boolean,
20
+ to: {
21
+ type: definePropType(String),
22
+ default: "body"
75
23
  }
76
24
  });
77
- var TooltipV2 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "tooltip.vue"]]);
78
25
 
79
- export { TooltipV2 as default };
26
+ export { tooltipV2Props };
80
27
  //# sourceMappingURL=tooltip2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"tooltip2.mjs","sources":["../../../../../../packages/components/tooltip-v2/src/tooltip.vue"],"sourcesContent":["<template>\n <tooltip-v2-root v-bind=\"rootProps\">\n <template #default=\"{ open }\">\n <tooltip-v2-trigger v-bind=\"triggerProps\" nowrap>\n <slot name=\"trigger\" />\n </tooltip-v2-trigger>\n <teleport :to=\"to\" :disabled=\"!teleported\">\n <template v-if=\"fullTransition\">\n <transition v-bind=\"transitionProps\">\n <tooltip-v2-content v-if=\"alwaysOn || open\" v-bind=\"contentProps\">\n <slot />\n <template #arrow=\"{ style, side }\">\n <tooltip-v2-arrow\n v-if=\"showArrow\"\n v-bind=\"arrowProps\"\n :style=\"style\"\n :side=\"side\"\n />\n </template>\n </tooltip-v2-content>\n </transition>\n </template>\n <template v-else>\n <tooltip-v2-content v-if=\"alwaysOn || open\" v-bind=\"contentProps\">\n <slot />\n <template #arrow=\"{ style, side }\">\n <tooltip-v2-arrow\n v-if=\"showArrow\"\n v-bind=\"arrowProps\"\n :style=\"style\"\n :side=\"side\"\n />\n </template>\n </tooltip-v2-content>\n </template>\n </teleport>\n </template>\n </tooltip-v2-root>\n</template>\n\n<script setup lang=\"ts\">\n// @ts-nocheck\nimport { reactive, toRefs } from 'vue'\nimport { pick } from 'lodash-unified'\nimport { tooltipV2ArrowProps } from './arrow'\nimport { tooltipV2ContentProps } from './content'\nimport { tooltipV2RootProps } from './root'\nimport { tooltipV2Props } from './tooltip'\nimport { tooltipV2TriggerProps } from './trigger'\nimport TooltipV2Root from './root.vue'\nimport TooltipV2Arrow from './arrow.vue'\nimport TooltipV2Content from './content.vue'\nimport TooltipV2Trigger from './trigger.vue'\n\ndefineOptions({\n name: 'ElTooltipV2',\n})\n\nconst props = defineProps(tooltipV2Props)\n\nconst refedProps = toRefs(props)\n\nconst arrowProps = reactive(pick(refedProps, Object.keys(tooltipV2ArrowProps)))\n\nconst contentProps = reactive(\n pick(refedProps, Object.keys(tooltipV2ContentProps))\n)\n\nconst rootProps = reactive(pick(refedProps, Object.keys(tooltipV2RootProps)))\n\nconst triggerProps = reactive(\n pick(refedProps, Object.keys(tooltipV2TriggerProps))\n)\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;mCAsDc,CAAA;AAAA,EACZ,IAAM,EAAA,aAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAIA,IAAM,MAAA,UAAA,GAAa,OAAO,KAAK,CAAA,CAAA;AAE/B,IAAM,MAAA,UAAA,GAAa,SAAS,IAAK,CAAA,UAAA,EAAY,OAAO,IAAK,CAAA,mBAAmB,CAAC,CAAC,CAAA,CAAA;AAE9E,IAAM,MAAA,YAAA,GAAe,SACnB,IAAK,CAAA,UAAA,EAAY,OAAO,IAAK,CAAA,qBAAqB,CAAC,CACrD,CAAA,CAAA;AAEA,IAAM,MAAA,SAAA,GAAY,SAAS,IAAK,CAAA,UAAA,EAAY,OAAO,IAAK,CAAA,kBAAkB,CAAC,CAAC,CAAA,CAAA;AAE5E,IAAM,MAAA,YAAA,GAAe,SACnB,IAAK,CAAA,UAAA,EAAY,OAAO,IAAK,CAAA,qBAAqB,CAAC,CACrD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"tooltip2.mjs","sources":["../../../../../../packages/components/tooltip-v2/src/tooltip.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport { tooltipV2RootProps } from './root'\nimport { tooltipV2TriggerProps } from './trigger'\nimport { tooltipV2ArrowProps } from './arrow'\nimport { tooltipV2ContentProps } from './content'\n\nimport type { ExtractPropTypes, TeleportProps, TransitionProps } from 'vue'\n\nexport const tooltipV2Props = buildProps({\n ...tooltipV2RootProps,\n ...tooltipV2ArrowProps,\n ...tooltipV2TriggerProps,\n ...tooltipV2ContentProps,\n alwaysOn: Boolean,\n fullTransition: Boolean,\n transitionProps: {\n type: definePropType<TransitionProps | null>(Object),\n default: null,\n },\n teleported: Boolean,\n to: {\n type: definePropType<TeleportProps['to']>(String),\n default: 'body',\n },\n} as const)\n\nexport type TooltipV2Props = ExtractPropTypes<typeof tooltipV2Props>\n"],"names":[],"mappings":";;;;;;;AAKY,MAAC,cAAc,GAAG,UAAU,CAAC;AACzC,EAAE,GAAG,kBAAkB;AACvB,EAAE,GAAG,mBAAmB;AACxB,EAAE,GAAG,qBAAqB;AAC1B,EAAE,GAAG,qBAAqB;AAC1B,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,cAAc,EAAE,OAAO;AACzB,EAAE,eAAe,EAAE;AACnB,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,UAAU,EAAE,OAAO;AACrB,EAAE,EAAE,EAAE;AACN,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,IAAI,OAAO,EAAE,MAAM;AACnB,GAAG;AACH,CAAC;;;;"}
@@ -1,24 +1,83 @@
1
- import '../../../utils/index.mjs';
2
- import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
1
+ import { defineComponent, inject, computed, toRef, openBlock, createElementBlock, mergeProps, unref, createElementVNode, normalizeClass, normalizeStyle, createCommentVNode } from 'vue';
2
+ import '../../../hooks/index.mjs';
3
+ import { maskProps } from './mask2.mjs';
4
+ import { tourKey } from './helper.mjs';
5
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
6
+ import { useLockscreen } from '../../../hooks/use-lockscreen/index.mjs';
3
7
 
4
- const maskProps = buildProps({
5
- zIndex: {
6
- type: Number,
7
- default: 1001
8
- },
9
- visible: Boolean,
10
- fill: {
11
- type: String,
12
- default: "rgba(0,0,0,0.5)"
13
- },
14
- pos: {
15
- type: definePropType(Object)
16
- },
17
- targetAreaClickable: {
18
- type: Boolean,
19
- default: true
8
+ const _hoisted_1 = { style: {
9
+ width: "100%",
10
+ height: "100%"
11
+ } };
12
+ const _hoisted_2 = ["d"];
13
+ const __default__ = defineComponent({
14
+ name: "ElTourMask",
15
+ inheritAttrs: false
16
+ });
17
+ const _sfc_main = /* @__PURE__ */ defineComponent({
18
+ ...__default__,
19
+ props: maskProps,
20
+ setup(__props) {
21
+ const props = __props;
22
+ const { ns } = inject(tourKey);
23
+ const radius = computed(() => {
24
+ var _a, _b;
25
+ return (_b = (_a = props.pos) == null ? void 0 : _a.radius) != null ? _b : 2;
26
+ });
27
+ const roundInfo = computed(() => {
28
+ const v = radius.value;
29
+ const baseInfo = `a${v},${v} 0 0 1`;
30
+ return {
31
+ topRight: `${baseInfo} ${v},${v}`,
32
+ bottomRight: `${baseInfo} ${-v},${v}`,
33
+ bottomLeft: `${baseInfo} ${-v},${-v}`,
34
+ topLeft: `${baseInfo} ${v},${-v}`
35
+ };
36
+ });
37
+ const path = computed(() => {
38
+ const width = window.innerWidth;
39
+ const height = window.innerHeight;
40
+ const info = roundInfo.value;
41
+ const _path = `M${width},0 L0,0 L0,${height} L${width},${height} L${width},0 Z`;
42
+ const _radius = radius.value;
43
+ return props.pos ? `${_path} M${props.pos.left + _radius},${props.pos.top} h${props.pos.width - _radius * 2} ${info.topRight} v${props.pos.height - _radius * 2} ${info.bottomRight} h${-props.pos.width + _radius * 2} ${info.bottomLeft} v${-props.pos.height + _radius * 2} ${info.topLeft} z` : _path;
44
+ });
45
+ const pathStyle = computed(() => {
46
+ return {
47
+ fill: props.fill,
48
+ pointerEvents: "auto",
49
+ cursor: "auto"
50
+ };
51
+ });
52
+ useLockscreen(toRef(props, "visible"), {
53
+ ns
54
+ });
55
+ return (_ctx, _cache) => {
56
+ return _ctx.visible ? (openBlock(), createElementBlock("div", mergeProps({
57
+ key: 0,
58
+ class: unref(ns).e("mask"),
59
+ style: {
60
+ position: "fixed",
61
+ left: 0,
62
+ right: 0,
63
+ top: 0,
64
+ bottom: 0,
65
+ zIndex: _ctx.zIndex,
66
+ pointerEvents: _ctx.pos && _ctx.targetAreaClickable ? "none" : "auto"
67
+ }
68
+ }, _ctx.$attrs), [
69
+ (openBlock(), createElementBlock("svg", _hoisted_1, [
70
+ createElementVNode("path", {
71
+ class: normalizeClass(unref(ns).e("hollow")),
72
+ style: normalizeStyle(unref(pathStyle)),
73
+ d: unref(path)
74
+ }, null, 14, _hoisted_2)
75
+ ]))
76
+ ], 16)) : createCommentVNode("v-if", true);
77
+ };
20
78
  }
21
79
  });
80
+ var ElTourMask = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "mask.vue"]]);
22
81
 
23
- export { maskProps };
82
+ export { ElTourMask as default };
24
83
  //# sourceMappingURL=mask.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"mask.mjs","sources":["../../../../../../packages/components/tour/src/mask.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\nimport type { PosInfo } from './types'\n\nexport const maskProps = buildProps({\n /**\n * @description mask's zIndex\n */\n zIndex: {\n type: Number,\n default: 1001,\n },\n /**\n * @description whether to show the mask\n */\n visible: Boolean,\n /**\n * @description mask's fill\n */\n fill: {\n type: String,\n default: 'rgba(0,0,0,0.5)',\n },\n /***\n * @description mask's transparent space position\n */\n pos: {\n type: definePropType<PosInfo | null>(Object),\n },\n /**\n * @description whether the target element can be clickable, when using mask\n */\n targetAreaClickable: {\n type: Boolean,\n default: true,\n },\n})\n\nexport type MaskProps = ExtractPropTypes<typeof maskProps>\n"],"names":[],"mappings":";;;AACY,MAAC,SAAS,GAAG,UAAU,CAAC;AACpC,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,OAAO,EAAE,OAAO;AAClB,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,iBAAiB;AAC9B,GAAG;AACH,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,mBAAmB,EAAE;AACvB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,CAAC;;;;"}
1
+ {"version":3,"file":"mask.mjs","sources":["../../../../../../packages/components/tour/src/mask.vue"],"sourcesContent":["<template>\n <div\n v-if=\"visible\"\n :class=\"ns.e('mask')\"\n :style=\"({\n position: 'fixed',\n left: 0,\n right: 0,\n top: 0,\n bottom: 0,\n zIndex,\n pointerEvents: pos && targetAreaClickable ? 'none' : 'auto',\n } as any)\"\n v-bind=\"$attrs\"\n >\n <svg\n :style=\"{\n width: '100%',\n height: '100%',\n }\"\n >\n <path :class=\"ns.e('hollow')\" :style=\"pathStyle\" :d=\"path\" />\n </svg>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, inject, toRef } from 'vue'\nimport { useLockscreen } from '@element-plus/hooks'\nimport { maskProps } from './mask'\nimport { tourKey } from './helper'\nimport type { CSSProperties } from 'vue'\n\ndefineOptions({\n name: 'ElTourMask',\n inheritAttrs: false,\n})\n\nconst props = defineProps(maskProps)\n\nconst { ns } = inject(tourKey)!\nconst radius = computed(() => props.pos?.radius ?? 2)\nconst roundInfo = computed(() => {\n const v = radius.value\n const baseInfo = `a${v},${v} 0 0 1`\n return {\n topRight: `${baseInfo} ${v},${v}`,\n bottomRight: `${baseInfo} ${-v},${v}`,\n bottomLeft: `${baseInfo} ${-v},${-v}`,\n topLeft: `${baseInfo} ${v},${-v}`,\n }\n})\n\nconst path = computed(() => {\n const width = window.innerWidth\n const height = window.innerHeight\n const info = roundInfo.value\n const _path = `M${width},0 L0,0 L0,${height} L${width},${height} L${width},0 Z`\n const _radius = radius.value\n return props.pos\n ? `${_path} M${props.pos.left + _radius},${props.pos.top} h${\n props.pos.width - _radius * 2\n } ${info.topRight} v${props.pos.height - _radius * 2} ${\n info.bottomRight\n } h${-props.pos.width + _radius * 2} ${info.bottomLeft} v${\n -props.pos.height + _radius * 2\n } ${info.topLeft} z`\n : _path\n})\n\nconst pathStyle = computed<CSSProperties>(() => {\n return {\n fill: props.fill,\n pointerEvents: 'auto',\n cursor: 'auto',\n }\n})\n\nuseLockscreen(toRef(props, 'visible'), {\n ns,\n})\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;mCAiCc,CAAA;AAAA,EACZ,IAAM,EAAA,YAAA;AAAA,EACN,YAAc,EAAA,KAAA;AAChB,CAAA,CAAA,CAAA;;;;;;AAIA,IAAM,MAAA,EAAE,EAAO,EAAA,GAAA,MAAA,CAAO,OAAO,CAAA,CAAA;AAC7B,IAAA,MAAM,SAAS,QAAS,CAAA,MAAM;AAC9B,MAAM,IAAA,EAAA,EAAA,EAAA,CAAA;AACJ,MAAA,UAAU,GAAO,CAAA,EAAA,GAAA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