@element-plus/nightly 0.0.20240125 → 0.0.20240128

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 (415) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index.full.js +6 -8
  3. package/dist/index.full.min.js +8 -8
  4. package/dist/index.full.min.js.map +1 -1
  5. package/dist/index.full.min.mjs +8 -8
  6. package/dist/index.full.min.mjs.map +1 -1
  7. package/dist/index.full.mjs +6 -8
  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/icon/index.mjs +2 -2
  245. package/es/components/icon/src/icon.mjs +36 -8
  246. package/es/components/icon/src/icon.mjs.map +1 -1
  247. package/es/components/icon/src/icon2.mjs +8 -36
  248. package/es/components/icon/src/icon2.mjs.map +1 -1
  249. package/es/components/index.mjs +9 -9
  250. package/es/components/input/index.mjs +2 -2
  251. package/es/components/input/src/input.mjs +115 -454
  252. package/es/components/input/src/input.mjs.map +1 -1
  253. package/es/components/input/src/input2.mjs +454 -115
  254. package/es/components/input/src/input2.mjs.map +1 -1
  255. package/es/components/menu/index.mjs +2 -2
  256. package/es/components/menu/src/menu-item-group.mjs +35 -4
  257. package/es/components/menu/src/menu-item-group.mjs.map +1 -1
  258. package/es/components/menu/src/menu-item-group2.mjs +4 -35
  259. package/es/components/menu/src/menu-item-group2.mjs.map +1 -1
  260. package/es/components/message-box/src/index.mjs +4 -2
  261. package/es/components/message-box/src/index.mjs.map +1 -1
  262. package/es/components/message-box/src/index.vue.d.ts +1855 -2
  263. package/es/components/message-box/src/message-box.type.d.ts +2 -0
  264. package/es/components/page-header/index.mjs +2 -2
  265. package/es/components/page-header/src/page-header.mjs +103 -17
  266. package/es/components/page-header/src/page-header.mjs.map +1 -1
  267. package/es/components/page-header/src/page-header2.mjs +17 -103
  268. package/es/components/page-header/src/page-header2.mjs.map +1 -1
  269. package/es/components/pagination/src/components/total.mjs +28 -7
  270. package/es/components/pagination/src/components/total.mjs.map +1 -1
  271. package/es/components/pagination/src/components/total2.mjs +7 -28
  272. package/es/components/pagination/src/components/total2.mjs.map +1 -1
  273. package/es/components/pagination/src/pagination.mjs +1 -1
  274. package/es/components/radio/index.mjs +2 -2
  275. package/es/components/radio/src/radio-button.mjs +66 -9
  276. package/es/components/radio/src/radio-button.mjs.map +1 -1
  277. package/es/components/radio/src/radio-button2.mjs +9 -66
  278. package/es/components/radio/src/radio-button2.mjs.map +1 -1
  279. package/es/components/result/index.mjs +2 -2
  280. package/es/components/result/src/result.mjs +63 -29
  281. package/es/components/result/src/result.mjs.map +1 -1
  282. package/es/components/result/src/result2.mjs +29 -63
  283. package/es/components/result/src/result2.mjs.map +1 -1
  284. package/es/components/scrollbar/index.mjs +1 -1
  285. package/es/components/scrollbar/src/bar2.mjs +1 -1
  286. package/es/components/scrollbar/src/thumb.mjs +130 -11
  287. package/es/components/scrollbar/src/thumb.mjs.map +1 -1
  288. package/es/components/scrollbar/src/thumb2.mjs +11 -130
  289. package/es/components/scrollbar/src/thumb2.mjs.map +1 -1
  290. package/es/components/select/src/useSelect.mjs +0 -2
  291. package/es/components/select/src/useSelect.mjs.map +1 -1
  292. package/es/components/select-v2/src/useSelect.mjs +0 -2
  293. package/es/components/select-v2/src/useSelect.mjs.map +1 -1
  294. package/es/components/slider/src/button.mjs +93 -21
  295. package/es/components/slider/src/button.mjs.map +1 -1
  296. package/es/components/slider/src/button2.mjs +21 -93
  297. package/es/components/slider/src/button2.mjs.map +1 -1
  298. package/es/components/slider/src/slider2.mjs +1 -1
  299. package/es/components/steps/index.mjs +2 -2
  300. package/es/components/steps/src/steps.mjs +39 -36
  301. package/es/components/steps/src/steps.mjs.map +1 -1
  302. package/es/components/steps/src/steps2.mjs +36 -39
  303. package/es/components/steps/src/steps2.mjs.map +1 -1
  304. package/es/components/tour/src/content.mjs +63 -44
  305. package/es/components/tour/src/content.mjs.map +1 -1
  306. package/es/components/tour/src/content2.mjs +44 -63
  307. package/es/components/tour/src/content2.mjs.map +1 -1
  308. package/es/components/tour/src/step.mjs +1 -1
  309. package/es/components/tour/src/tour.mjs +1 -1
  310. package/es/components/tour/src/tour2.mjs +1 -1
  311. package/es/components/transfer/index.mjs +2 -2
  312. package/es/components/transfer/src/composables/use-check.mjs +1 -1
  313. package/es/components/transfer/src/composables/use-checked-change.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/transfer.mjs +69 -160
  319. package/es/components/transfer/src/transfer.mjs.map +1 -1
  320. package/es/components/transfer/src/transfer2.mjs +160 -69
  321. package/es/components/transfer/src/transfer2.mjs.map +1 -1
  322. package/es/index.mjs +9 -9
  323. package/es/version.d.ts +1 -1
  324. package/es/version.mjs +1 -1
  325. package/es/version.mjs.map +1 -1
  326. package/lib/components/icon/index.js +2 -2
  327. package/lib/components/icon/src/icon.js +36 -8
  328. package/lib/components/icon/src/icon.js.map +1 -1
  329. package/lib/components/icon/src/icon2.js +8 -36
  330. package/lib/components/icon/src/icon2.js.map +1 -1
  331. package/lib/components/index.js +9 -9
  332. package/lib/components/input/index.js +2 -2
  333. package/lib/components/input/src/input.js +115 -453
  334. package/lib/components/input/src/input.js.map +1 -1
  335. package/lib/components/input/src/input2.js +453 -115
  336. package/lib/components/input/src/input2.js.map +1 -1
  337. package/lib/components/menu/index.js +2 -2
  338. package/lib/components/menu/src/menu-item-group.js +35 -4
  339. package/lib/components/menu/src/menu-item-group.js.map +1 -1
  340. package/lib/components/menu/src/menu-item-group2.js +4 -35
  341. package/lib/components/menu/src/menu-item-group2.js.map +1 -1
  342. package/lib/components/message-box/src/index.js +4 -2
  343. package/lib/components/message-box/src/index.js.map +1 -1
  344. package/lib/components/message-box/src/index.vue.d.ts +1855 -2
  345. package/lib/components/message-box/src/message-box.type.d.ts +2 -0
  346. package/lib/components/page-header/index.js +2 -2
  347. package/lib/components/page-header/src/page-header.js +103 -18
  348. package/lib/components/page-header/src/page-header.js.map +1 -1
  349. package/lib/components/page-header/src/page-header2.js +18 -103
  350. package/lib/components/page-header/src/page-header2.js.map +1 -1
  351. package/lib/components/pagination/src/components/total.js +28 -7
  352. package/lib/components/pagination/src/components/total.js.map +1 -1
  353. package/lib/components/pagination/src/components/total2.js +7 -28
  354. package/lib/components/pagination/src/components/total2.js.map +1 -1
  355. package/lib/components/pagination/src/pagination.js +1 -1
  356. package/lib/components/radio/index.js +2 -2
  357. package/lib/components/radio/src/radio-button.js +66 -9
  358. package/lib/components/radio/src/radio-button.js.map +1 -1
  359. package/lib/components/radio/src/radio-button2.js +9 -66
  360. package/lib/components/radio/src/radio-button2.js.map +1 -1
  361. package/lib/components/result/index.js +2 -2
  362. package/lib/components/result/src/result.js +63 -31
  363. package/lib/components/result/src/result.js.map +1 -1
  364. package/lib/components/result/src/result2.js +31 -63
  365. package/lib/components/result/src/result2.js.map +1 -1
  366. package/lib/components/scrollbar/index.js +1 -1
  367. package/lib/components/scrollbar/src/bar2.js +1 -1
  368. package/lib/components/scrollbar/src/thumb.js +130 -11
  369. package/lib/components/scrollbar/src/thumb.js.map +1 -1
  370. package/lib/components/scrollbar/src/thumb2.js +11 -130
  371. package/lib/components/scrollbar/src/thumb2.js.map +1 -1
  372. package/lib/components/select/src/useSelect.js +0 -2
  373. package/lib/components/select/src/useSelect.js.map +1 -1
  374. package/lib/components/select-v2/src/useSelect.js +0 -2
  375. package/lib/components/select-v2/src/useSelect.js.map +1 -1
  376. package/lib/components/slider/src/button.js +93 -22
  377. package/lib/components/slider/src/button.js.map +1 -1
  378. package/lib/components/slider/src/button2.js +22 -93
  379. package/lib/components/slider/src/button2.js.map +1 -1
  380. package/lib/components/slider/src/slider2.js +1 -1
  381. package/lib/components/steps/index.js +2 -2
  382. package/lib/components/steps/src/steps.js +39 -37
  383. package/lib/components/steps/src/steps.js.map +1 -1
  384. package/lib/components/steps/src/steps2.js +37 -39
  385. package/lib/components/steps/src/steps2.js.map +1 -1
  386. package/lib/components/tour/src/content.js +63 -45
  387. package/lib/components/tour/src/content.js.map +1 -1
  388. package/lib/components/tour/src/content2.js +45 -63
  389. package/lib/components/tour/src/content2.js.map +1 -1
  390. package/lib/components/tour/src/step.js +1 -1
  391. package/lib/components/tour/src/tour.js +1 -1
  392. package/lib/components/tour/src/tour2.js +1 -1
  393. package/lib/components/transfer/index.js +2 -2
  394. package/lib/components/transfer/src/composables/use-check.js +1 -1
  395. package/lib/components/transfer/src/composables/use-checked-change.js +1 -1
  396. package/lib/components/transfer/src/transfer-panel.js +128 -21
  397. package/lib/components/transfer/src/transfer-panel.js.map +1 -1
  398. package/lib/components/transfer/src/transfer-panel2.js +21 -128
  399. package/lib/components/transfer/src/transfer-panel2.js.map +1 -1
  400. package/lib/components/transfer/src/transfer.js +73 -160
  401. package/lib/components/transfer/src/transfer.js.map +1 -1
  402. package/lib/components/transfer/src/transfer2.js +160 -73
  403. package/lib/components/transfer/src/transfer2.js.map +1 -1
  404. package/lib/index.js +9 -9
  405. package/lib/version.d.ts +1 -1
  406. package/lib/version.js +1 -1
  407. package/lib/version.js.map +1 -1
  408. package/package.json +2 -2
  409. package/theme-chalk/el-dialog.css +1 -1
  410. package/theme-chalk/el-message-box.css +1 -1
  411. package/theme-chalk/index.css +1 -1
  412. package/theme-chalk/src/common/var.scss +3 -1
  413. package/theme-chalk/src/dialog.scss +1 -0
  414. package/theme-chalk/src/message-box.scss +29 -65
  415. package/web-types.json +1 -1
@@ -1,26 +1,98 @@
1
- import { placements } from '@popperjs/core';
2
- import '../../../utils/index.mjs';
3
- import '../../../constants/index.mjs';
4
- import { buildProps } from '../../../utils/vue/props/runtime.mjs';
5
- import { UPDATE_MODEL_EVENT } from '../../../constants/event.mjs';
6
- import { isNumber } from '../../../utils/types.mjs';
1
+ import { defineComponent, reactive, toRefs, openBlock, createElementBlock, normalizeClass, unref, normalizeStyle, createVNode, withCtx, createElementVNode, toDisplayString } from 'vue';
2
+ import { ElTooltip } from '../../tooltip/index.mjs';
3
+ import '../../../hooks/index.mjs';
4
+ import './composables/index.mjs';
5
+ import { sliderButtonProps, sliderButtonEmits } from './button2.mjs';
6
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
7
+ import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
8
+ import { useSliderButton } from './composables/use-slider-button.mjs';
7
9
 
8
- const sliderButtonProps = buildProps({
9
- modelValue: {
10
- type: Number,
11
- default: 0
12
- },
13
- vertical: Boolean,
14
- tooltipClass: String,
15
- placement: {
16
- type: String,
17
- values: placements,
18
- default: "top"
10
+ const _hoisted_1 = ["tabindex"];
11
+ const __default__ = defineComponent({
12
+ name: "ElSliderButton"
13
+ });
14
+ const _sfc_main = /* @__PURE__ */ defineComponent({
15
+ ...__default__,
16
+ props: sliderButtonProps,
17
+ emits: sliderButtonEmits,
18
+ setup(__props, { expose, emit }) {
19
+ const props = __props;
20
+ const ns = useNamespace("slider");
21
+ const initData = reactive({
22
+ hovering: false,
23
+ dragging: false,
24
+ isClick: false,
25
+ startX: 0,
26
+ currentX: 0,
27
+ startY: 0,
28
+ currentY: 0,
29
+ startPosition: 0,
30
+ newPosition: 0,
31
+ oldValue: props.modelValue
32
+ });
33
+ const {
34
+ disabled,
35
+ button,
36
+ tooltip,
37
+ showTooltip,
38
+ tooltipVisible,
39
+ wrapperStyle,
40
+ formatValue,
41
+ handleMouseEnter,
42
+ handleMouseLeave,
43
+ onButtonDown,
44
+ onKeyDown,
45
+ setPosition
46
+ } = useSliderButton(props, initData, emit);
47
+ const { hovering, dragging } = toRefs(initData);
48
+ expose({
49
+ onButtonDown,
50
+ onKeyDown,
51
+ setPosition,
52
+ hovering,
53
+ dragging
54
+ });
55
+ return (_ctx, _cache) => {
56
+ return openBlock(), createElementBlock("div", {
57
+ ref_key: "button",
58
+ ref: button,
59
+ class: normalizeClass([unref(ns).e("button-wrapper"), { hover: unref(hovering), dragging: unref(dragging) }]),
60
+ style: normalizeStyle(unref(wrapperStyle)),
61
+ tabindex: unref(disabled) ? -1 : 0,
62
+ onMouseenter: _cache[0] || (_cache[0] = (...args) => unref(handleMouseEnter) && unref(handleMouseEnter)(...args)),
63
+ onMouseleave: _cache[1] || (_cache[1] = (...args) => unref(handleMouseLeave) && unref(handleMouseLeave)(...args)),
64
+ onMousedown: _cache[2] || (_cache[2] = (...args) => unref(onButtonDown) && unref(onButtonDown)(...args)),
65
+ onTouchstart: _cache[3] || (_cache[3] = (...args) => unref(onButtonDown) && unref(onButtonDown)(...args)),
66
+ onFocus: _cache[4] || (_cache[4] = (...args) => unref(handleMouseEnter) && unref(handleMouseEnter)(...args)),
67
+ onBlur: _cache[5] || (_cache[5] = (...args) => unref(handleMouseLeave) && unref(handleMouseLeave)(...args)),
68
+ onKeydown: _cache[6] || (_cache[6] = (...args) => unref(onKeyDown) && unref(onKeyDown)(...args))
69
+ }, [
70
+ createVNode(unref(ElTooltip), {
71
+ ref_key: "tooltip",
72
+ ref: tooltip,
73
+ visible: unref(tooltipVisible),
74
+ placement: _ctx.placement,
75
+ "fallback-placements": ["top", "bottom", "right", "left"],
76
+ "stop-popper-mouse-event": false,
77
+ "popper-class": _ctx.tooltipClass,
78
+ disabled: !unref(showTooltip),
79
+ persistent: ""
80
+ }, {
81
+ content: withCtx(() => [
82
+ createElementVNode("span", null, toDisplayString(unref(formatValue)), 1)
83
+ ]),
84
+ default: withCtx(() => [
85
+ createElementVNode("div", {
86
+ class: normalizeClass([unref(ns).e("button"), { hover: unref(hovering), dragging: unref(dragging) }])
87
+ }, null, 2)
88
+ ]),
89
+ _: 1
90
+ }, 8, ["visible", "placement", "popper-class", "disabled"])
91
+ ], 46, _hoisted_1);
92
+ };
19
93
  }
20
94
  });
21
- const sliderButtonEmits = {
22
- [UPDATE_MODEL_EVENT]: (value) => isNumber(value)
23
- };
95
+ var SliderButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "button.vue"]]);
24
96
 
25
- export { sliderButtonEmits, sliderButtonProps };
97
+ export { SliderButton as default };
26
98
  //# sourceMappingURL=button.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"button.mjs","sources":["../../../../../../packages/components/slider/src/button.ts"],"sourcesContent":["import { placements } from '@popperjs/core'\nimport { buildProps, isNumber } from '@element-plus/utils'\nimport { UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport type { ExtractPropTypes, Ref } from 'vue'\nimport type Button from './button.vue'\n\nexport const sliderButtonProps = buildProps({\n modelValue: {\n type: Number,\n default: 0,\n },\n vertical: Boolean,\n tooltipClass: String,\n placement: {\n type: String,\n values: placements,\n default: 'top',\n },\n} as const)\nexport type SliderButtonProps = ExtractPropTypes<typeof sliderButtonProps>\n\nexport const sliderButtonEmits = {\n [UPDATE_MODEL_EVENT]: (value: number) => isNumber(value),\n}\nexport type SliderButtonEmits = typeof sliderButtonEmits\n\nexport type SliderButtonInstance = InstanceType<typeof Button>\n\nexport type ButtonRefs = Record<\n 'firstButton' | 'secondButton',\n Ref<SliderButtonInstance | undefined>\n>\n\nexport interface SliderButtonInitData {\n hovering: boolean\n dragging: boolean\n isClick: boolean\n startX: number\n currentX: number\n startY: number\n currentY: number\n startPosition: number\n newPosition: number\n oldValue: number\n}\n"],"names":[],"mappings":";;;;;;;AAGY,MAAC,iBAAiB,GAAG,UAAU,CAAC;AAC5C,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,YAAY,EAAE,MAAM;AACtB,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,UAAU;AACtB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,iBAAiB,GAAG;AACjC,EAAE,CAAC,kBAAkB,GAAG,CAAC,KAAK,KAAK,QAAQ,CAAC,KAAK,CAAC;AAClD;;;;"}
1
+ {"version":3,"file":"button.mjs","sources":["../../../../../../packages/components/slider/src/button.vue"],"sourcesContent":["<template>\n <div\n ref=\"button\"\n :class=\"[ns.e('button-wrapper'), { hover: hovering, dragging }]\"\n :style=\"wrapperStyle\"\n :tabindex=\"disabled ? -1 : 0\"\n @mouseenter=\"handleMouseEnter\"\n @mouseleave=\"handleMouseLeave\"\n @mousedown=\"onButtonDown\"\n @touchstart=\"onButtonDown\"\n @focus=\"handleMouseEnter\"\n @blur=\"handleMouseLeave\"\n @keydown=\"onKeyDown\"\n >\n <el-tooltip\n ref=\"tooltip\"\n :visible=\"tooltipVisible\"\n :placement=\"placement\"\n :fallback-placements=\"['top', 'bottom', 'right', 'left']\"\n :stop-popper-mouse-event=\"false\"\n :popper-class=\"tooltipClass\"\n :disabled=\"!showTooltip\"\n persistent\n >\n <template #content>\n <span>{{ formatValue }}</span>\n </template>\n <div :class=\"[ns.e('button'), { hover: hovering, dragging }]\" />\n </el-tooltip>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { reactive, toRefs } from 'vue'\nimport { ElTooltip } from '@element-plus/components/tooltip'\nimport { useNamespace } from '@element-plus/hooks'\nimport { useSliderButton } from './composables'\nimport { sliderButtonEmits, sliderButtonProps } from './button'\nimport type { SliderButtonInitData } from './button'\n\ndefineOptions({\n name: 'ElSliderButton',\n})\n\nconst props = defineProps(sliderButtonProps)\nconst emit = defineEmits(sliderButtonEmits)\n\nconst ns = useNamespace('slider')\n\nconst initData = reactive<SliderButtonInitData>({\n hovering: false,\n dragging: false,\n isClick: false,\n startX: 0,\n currentX: 0,\n startY: 0,\n currentY: 0,\n startPosition: 0,\n newPosition: 0,\n oldValue: props.modelValue,\n})\n\nconst {\n disabled,\n button,\n tooltip,\n showTooltip,\n tooltipVisible,\n wrapperStyle,\n formatValue,\n handleMouseEnter,\n handleMouseLeave,\n onButtonDown,\n onKeyDown,\n setPosition,\n} = useSliderButton(props, initData, emit)\n\nconst { hovering, dragging } = toRefs(initData)\n\ndefineExpose({\n onButtonDown,\n onKeyDown,\n setPosition,\n hovering,\n dragging,\n})\n</script>\n"],"names":[],"mappings":";;;;;;;;;;mCAwCc,CAAA;AAAA,EACZ,IAAM,EAAA,gBAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAKA,IAAM,MAAA,EAAA,GAAK,aAAa,QAAQ,CAAA,CAAA;AAEhC,IAAA,MAAM,WAAW,QAA+B,CAAA;AAAA,MAC9C,QAAU,EAAA,KAAA;AAAA,MACV,QAAU,EAAA,KAAA;AAAA,MACV,OAAS,EAAA,KAAA;AAAA,MACT,MAAQ,EAAA,CAAA;AAAA,MACR,QAAU,EAAA,CAAA;AAAA,MACV,MAAQ,EAAA,CAAA;AAAA,MACR,QAAU,EAAA,CAAA;AAAA,MACV,aAAe,EAAA,CAAA;AAAA,MACf,WAAa,EAAA,CAAA;AAAA,MACb,UAAU,KAAM,CAAA,UAAA;AAAA,KACjB,CAAA,CAAA;AAED,IAAM,MAAA;AAAA,MACJ,QAAA;AAAA,MACA,MAAA;AAAA,MACA,OAAA;AAAA,MACA,WAAA;AAAA,MACA,cAAA;AAAA,MACA,YAAA;AAAA,MACA,WAAA;AAAA,MACA,gBAAA;AAAA,MACA,gBAAA;AAAA,MACA,YAAA;AAAA,MACA,SAAA;AAAA,MACA,WAAA;AAAA,KACE,GAAA,eAAA,CAAgB,KAAO,EAAA,QAAA,EAAU,IAAI,CAAA,CAAA;AAEzC,IAAA,MAAM,EAAE,QAAA,EAAU,QAAa,EAAA,GAAA,MAAA,CAAO,QAAQ,CAAA,CAAA;AAE9C,IAAa,MAAA,CAAA;AAAA,MACX,YAAA;AAAA,MACA,SAAA;AAAA,MACA,WAAA;AAAA,MACA,QAAA;AAAA,MACA,QAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,98 +1,26 @@
1
- import { defineComponent, reactive, toRefs, openBlock, createElementBlock, normalizeClass, unref, normalizeStyle, createVNode, withCtx, createElementVNode, toDisplayString } from 'vue';
2
- import { ElTooltip } from '../../tooltip/index.mjs';
3
- import '../../../hooks/index.mjs';
4
- import './composables/index.mjs';
5
- import { sliderButtonProps, sliderButtonEmits } from './button.mjs';
6
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
7
- import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
8
- import { useSliderButton } from './composables/use-slider-button.mjs';
1
+ import { placements } from '@popperjs/core';
2
+ import '../../../utils/index.mjs';
3
+ import '../../../constants/index.mjs';
4
+ import { buildProps } from '../../../utils/vue/props/runtime.mjs';
5
+ import { UPDATE_MODEL_EVENT } from '../../../constants/event.mjs';
6
+ import { isNumber } from '../../../utils/types.mjs';
9
7
 
10
- const _hoisted_1 = ["tabindex"];
11
- const __default__ = defineComponent({
12
- name: "ElSliderButton"
13
- });
14
- const _sfc_main = /* @__PURE__ */ defineComponent({
15
- ...__default__,
16
- props: sliderButtonProps,
17
- emits: sliderButtonEmits,
18
- setup(__props, { expose, emit }) {
19
- const props = __props;
20
- const ns = useNamespace("slider");
21
- const initData = reactive({
22
- hovering: false,
23
- dragging: false,
24
- isClick: false,
25
- startX: 0,
26
- currentX: 0,
27
- startY: 0,
28
- currentY: 0,
29
- startPosition: 0,
30
- newPosition: 0,
31
- oldValue: props.modelValue
32
- });
33
- const {
34
- disabled,
35
- button,
36
- tooltip,
37
- showTooltip,
38
- tooltipVisible,
39
- wrapperStyle,
40
- formatValue,
41
- handleMouseEnter,
42
- handleMouseLeave,
43
- onButtonDown,
44
- onKeyDown,
45
- setPosition
46
- } = useSliderButton(props, initData, emit);
47
- const { hovering, dragging } = toRefs(initData);
48
- expose({
49
- onButtonDown,
50
- onKeyDown,
51
- setPosition,
52
- hovering,
53
- dragging
54
- });
55
- return (_ctx, _cache) => {
56
- return openBlock(), createElementBlock("div", {
57
- ref_key: "button",
58
- ref: button,
59
- class: normalizeClass([unref(ns).e("button-wrapper"), { hover: unref(hovering), dragging: unref(dragging) }]),
60
- style: normalizeStyle(unref(wrapperStyle)),
61
- tabindex: unref(disabled) ? -1 : 0,
62
- onMouseenter: _cache[0] || (_cache[0] = (...args) => unref(handleMouseEnter) && unref(handleMouseEnter)(...args)),
63
- onMouseleave: _cache[1] || (_cache[1] = (...args) => unref(handleMouseLeave) && unref(handleMouseLeave)(...args)),
64
- onMousedown: _cache[2] || (_cache[2] = (...args) => unref(onButtonDown) && unref(onButtonDown)(...args)),
65
- onTouchstart: _cache[3] || (_cache[3] = (...args) => unref(onButtonDown) && unref(onButtonDown)(...args)),
66
- onFocus: _cache[4] || (_cache[4] = (...args) => unref(handleMouseEnter) && unref(handleMouseEnter)(...args)),
67
- onBlur: _cache[5] || (_cache[5] = (...args) => unref(handleMouseLeave) && unref(handleMouseLeave)(...args)),
68
- onKeydown: _cache[6] || (_cache[6] = (...args) => unref(onKeyDown) && unref(onKeyDown)(...args))
69
- }, [
70
- createVNode(unref(ElTooltip), {
71
- ref_key: "tooltip",
72
- ref: tooltip,
73
- visible: unref(tooltipVisible),
74
- placement: _ctx.placement,
75
- "fallback-placements": ["top", "bottom", "right", "left"],
76
- "stop-popper-mouse-event": false,
77
- "popper-class": _ctx.tooltipClass,
78
- disabled: !unref(showTooltip),
79
- persistent: ""
80
- }, {
81
- content: withCtx(() => [
82
- createElementVNode("span", null, toDisplayString(unref(formatValue)), 1)
83
- ]),
84
- default: withCtx(() => [
85
- createElementVNode("div", {
86
- class: normalizeClass([unref(ns).e("button"), { hover: unref(hovering), dragging: unref(dragging) }])
87
- }, null, 2)
88
- ]),
89
- _: 1
90
- }, 8, ["visible", "placement", "popper-class", "disabled"])
91
- ], 46, _hoisted_1);
92
- };
8
+ const sliderButtonProps = buildProps({
9
+ modelValue: {
10
+ type: Number,
11
+ default: 0
12
+ },
13
+ vertical: Boolean,
14
+ tooltipClass: String,
15
+ placement: {
16
+ type: String,
17
+ values: placements,
18
+ default: "top"
93
19
  }
94
20
  });
95
- var SliderButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "button.vue"]]);
21
+ const sliderButtonEmits = {
22
+ [UPDATE_MODEL_EVENT]: (value) => isNumber(value)
23
+ };
96
24
 
97
- export { SliderButton as default };
25
+ export { sliderButtonEmits, sliderButtonProps };
98
26
  //# sourceMappingURL=button2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"button2.mjs","sources":["../../../../../../packages/components/slider/src/button.vue"],"sourcesContent":["<template>\n <div\n ref=\"button\"\n :class=\"[ns.e('button-wrapper'), { hover: hovering, dragging }]\"\n :style=\"wrapperStyle\"\n :tabindex=\"disabled ? -1 : 0\"\n @mouseenter=\"handleMouseEnter\"\n @mouseleave=\"handleMouseLeave\"\n @mousedown=\"onButtonDown\"\n @touchstart=\"onButtonDown\"\n @focus=\"handleMouseEnter\"\n @blur=\"handleMouseLeave\"\n @keydown=\"onKeyDown\"\n >\n <el-tooltip\n ref=\"tooltip\"\n :visible=\"tooltipVisible\"\n :placement=\"placement\"\n :fallback-placements=\"['top', 'bottom', 'right', 'left']\"\n :stop-popper-mouse-event=\"false\"\n :popper-class=\"tooltipClass\"\n :disabled=\"!showTooltip\"\n persistent\n >\n <template #content>\n <span>{{ formatValue }}</span>\n </template>\n <div :class=\"[ns.e('button'), { hover: hovering, dragging }]\" />\n </el-tooltip>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { reactive, toRefs } from 'vue'\nimport { ElTooltip } from '@element-plus/components/tooltip'\nimport { useNamespace } from '@element-plus/hooks'\nimport { useSliderButton } from './composables'\nimport { sliderButtonEmits, sliderButtonProps } from './button'\nimport type { SliderButtonInitData } from './button'\n\ndefineOptions({\n name: 'ElSliderButton',\n})\n\nconst props = defineProps(sliderButtonProps)\nconst emit = defineEmits(sliderButtonEmits)\n\nconst ns = useNamespace('slider')\n\nconst initData = reactive<SliderButtonInitData>({\n hovering: false,\n dragging: false,\n isClick: false,\n startX: 0,\n currentX: 0,\n startY: 0,\n currentY: 0,\n startPosition: 0,\n newPosition: 0,\n oldValue: props.modelValue,\n})\n\nconst {\n disabled,\n button,\n tooltip,\n showTooltip,\n tooltipVisible,\n wrapperStyle,\n formatValue,\n handleMouseEnter,\n handleMouseLeave,\n onButtonDown,\n onKeyDown,\n setPosition,\n} = useSliderButton(props, initData, emit)\n\nconst { hovering, dragging } = toRefs(initData)\n\ndefineExpose({\n onButtonDown,\n onKeyDown,\n setPosition,\n hovering,\n dragging,\n})\n</script>\n"],"names":[],"mappings":";;;;;;;;;;mCAwCc,CAAA;AAAA,EACZ,IAAM,EAAA,gBAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAKA,IAAM,MAAA,EAAA,GAAK,aAAa,QAAQ,CAAA,CAAA;AAEhC,IAAA,MAAM,WAAW,QAA+B,CAAA;AAAA,MAC9C,QAAU,EAAA,KAAA;AAAA,MACV,QAAU,EAAA,KAAA;AAAA,MACV,OAAS,EAAA,KAAA;AAAA,MACT,MAAQ,EAAA,CAAA;AAAA,MACR,QAAU,EAAA,CAAA;AAAA,MACV,MAAQ,EAAA,CAAA;AAAA,MACR,QAAU,EAAA,CAAA;AAAA,MACV,aAAe,EAAA,CAAA;AAAA,MACf,WAAa,EAAA,CAAA;AAAA,MACb,UAAU,KAAM,CAAA,UAAA;AAAA,KACjB,CAAA,CAAA;AAED,IAAM,MAAA;AAAA,MACJ,QAAA;AAAA,MACA,MAAA;AAAA,MACA,OAAA;AAAA,MACA,WAAA;AAAA,MACA,cAAA;AAAA,MACA,YAAA;AAAA,MACA,WAAA;AAAA,MACA,gBAAA;AAAA,MACA,gBAAA;AAAA,MACA,YAAA;AAAA,MACA,SAAA;AAAA,MACA,WAAA;AAAA,KACE,GAAA,eAAA,CAAgB,KAAO,EAAA,QAAA,EAAU,IAAI,CAAA,CAAA;AAEzC,IAAA,MAAM,EAAE,QAAA,EAAU,QAAa,EAAA,GAAA,MAAA,CAAO,QAAQ,CAAA,CAAA;AAE9C,IAAa,MAAA,CAAA;AAAA,MACX,YAAA;AAAA,MACA,SAAA;AAAA,MACA,WAAA;AAAA,MACA,QAAA;AAAA,MACA,QAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"button2.mjs","sources":["../../../../../../packages/components/slider/src/button.ts"],"sourcesContent":["import { placements } from '@popperjs/core'\nimport { buildProps, isNumber } from '@element-plus/utils'\nimport { UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport type { ExtractPropTypes, Ref } from 'vue'\nimport type Button from './button.vue'\n\nexport const sliderButtonProps = buildProps({\n modelValue: {\n type: Number,\n default: 0,\n },\n vertical: Boolean,\n tooltipClass: String,\n placement: {\n type: String,\n values: placements,\n default: 'top',\n },\n} as const)\nexport type SliderButtonProps = ExtractPropTypes<typeof sliderButtonProps>\n\nexport const sliderButtonEmits = {\n [UPDATE_MODEL_EVENT]: (value: number) => isNumber(value),\n}\nexport type SliderButtonEmits = typeof sliderButtonEmits\n\nexport type SliderButtonInstance = InstanceType<typeof Button>\n\nexport type ButtonRefs = Record<\n 'firstButton' | 'secondButton',\n Ref<SliderButtonInstance | undefined>\n>\n\nexport interface SliderButtonInitData {\n hovering: boolean\n dragging: boolean\n isClick: boolean\n startX: number\n currentX: number\n startY: number\n currentY: number\n startPosition: number\n newPosition: number\n oldValue: number\n}\n"],"names":[],"mappings":";;;;;;;AAGY,MAAC,iBAAiB,GAAG,UAAU,CAAC;AAC5C,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,YAAY,EAAE,MAAM;AACtB,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,UAAU;AACtB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,iBAAiB,GAAG;AACjC,EAAE,CAAC,kBAAkB,GAAG,CAAC,KAAK,KAAK,QAAQ,CAAC,KAAK,CAAC;AAClD;;;;"}
@@ -4,7 +4,7 @@ import '../../form/index.mjs';
4
4
  import '../../../hooks/index.mjs';
5
5
  import { sliderContextKey } from './constants.mjs';
6
6
  import { sliderProps, sliderEmits } from './slider.mjs';
7
- import SliderButton from './button2.mjs';
7
+ import SliderButton from './button.mjs';
8
8
  import SliderMarker from './marker.mjs';
9
9
  import './composables/index.mjs';
10
10
  import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
@@ -1,8 +1,8 @@
1
1
  import '../../utils/index.mjs';
2
- import Steps from './src/steps2.mjs';
2
+ import Steps from './src/steps.mjs';
3
3
  import Step from './src/item2.mjs';
4
4
  export { stepProps } from './src/item.mjs';
5
- export { stepsEmits, stepsProps } from './src/steps.mjs';
5
+ export { stepsEmits, stepsProps } from './src/steps2.mjs';
6
6
  import { withInstall, withNoopInstall } from '../../utils/vue/install.mjs';
7
7
 
8
8
  const ElSteps = withInstall(Steps, {
@@ -1,43 +1,46 @@
1
+ import { defineComponent, getCurrentInstance, watch, provide, openBlock, createElementBlock, normalizeClass, unref, renderSlot } from 'vue';
1
2
  import '../../../constants/index.mjs';
2
- import '../../../utils/index.mjs';
3
- import { buildProps } from '../../../utils/vue/props/runtime.mjs';
3
+ import '../../../hooks/index.mjs';
4
+ import { stepsProps, stepsEmits } from './steps2.mjs';
5
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
6
+ import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
7
+ import { useOrderedChildren } from '../../../hooks/use-ordered-children/index.mjs';
4
8
  import { CHANGE_EVENT } from '../../../constants/event.mjs';
5
- import { isNumber } from '../../../utils/types.mjs';
6
9
 
7
- const stepsProps = buildProps({
8
- space: {
9
- type: [Number, String],
10
- default: ""
11
- },
12
- active: {
13
- type: Number,
14
- default: 0
15
- },
16
- direction: {
17
- type: String,
18
- default: "horizontal",
19
- values: ["horizontal", "vertical"]
20
- },
21
- alignCenter: {
22
- type: Boolean
23
- },
24
- simple: {
25
- type: Boolean
26
- },
27
- finishStatus: {
28
- type: String,
29
- values: ["wait", "process", "finish", "error", "success"],
30
- default: "finish"
31
- },
32
- processStatus: {
33
- type: String,
34
- values: ["wait", "process", "finish", "error", "success"],
35
- default: "process"
10
+ const __default__ = defineComponent({
11
+ name: "ElSteps"
12
+ });
13
+ const _sfc_main = /* @__PURE__ */ defineComponent({
14
+ ...__default__,
15
+ props: stepsProps,
16
+ emits: stepsEmits,
17
+ setup(__props, { emit }) {
18
+ const props = __props;
19
+ const ns = useNamespace("steps");
20
+ const {
21
+ children: steps,
22
+ addChild: addStep,
23
+ removeChild: removeStep
24
+ } = useOrderedChildren(getCurrentInstance(), "ElStep");
25
+ watch(steps, () => {
26
+ steps.value.forEach((instance, index) => {
27
+ instance.setIndex(index);
28
+ });
29
+ });
30
+ provide("ElSteps", { props, steps, addStep, removeStep });
31
+ watch(() => props.active, (newVal, oldVal) => {
32
+ emit(CHANGE_EVENT, newVal, oldVal);
33
+ });
34
+ return (_ctx, _cache) => {
35
+ return openBlock(), createElementBlock("div", {
36
+ class: normalizeClass([unref(ns).b(), unref(ns).m(_ctx.simple ? "simple" : _ctx.direction)])
37
+ }, [
38
+ renderSlot(_ctx.$slots, "default")
39
+ ], 2);
40
+ };
36
41
  }
37
42
  });
38
- const stepsEmits = {
39
- [CHANGE_EVENT]: (newVal, oldVal) => [newVal, oldVal].every(isNumber)
40
- };
43
+ var Steps = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "steps.vue"]]);
41
44
 
42
- export { stepsEmits, stepsProps };
45
+ export { Steps as default };
43
46
  //# sourceMappingURL=steps.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"steps.mjs","sources":["../../../../../../packages/components/steps/src/steps.ts"],"sourcesContent":["import { CHANGE_EVENT } from '@element-plus/constants'\nimport { buildProps, isNumber } from '@element-plus/utils'\nimport type Steps from './steps.vue'\nimport type { ExtractPropTypes } from 'vue'\n\nexport const stepsProps = buildProps({\n /**\n * @description the spacing of each step, will be responsive if omitted. Supports percentage.\n */\n space: {\n type: [Number, String],\n default: '',\n },\n /**\n * @description current activation step\n */\n active: {\n type: Number,\n default: 0,\n },\n /**\n * @description display direction\n */\n direction: {\n type: String,\n default: 'horizontal',\n values: ['horizontal', 'vertical'],\n },\n /**\n * @description center title and description\n */\n alignCenter: {\n type: Boolean,\n },\n /**\n * @description whether to apply simple theme\n */\n simple: {\n type: Boolean,\n },\n /**\n * @description status of end step\n */\n finishStatus: {\n type: String,\n values: ['wait', 'process', 'finish', 'error', 'success'],\n default: 'finish',\n },\n /**\n * @description status of current step\n */\n processStatus: {\n type: String,\n values: ['wait', 'process', 'finish', 'error', 'success'],\n default: 'process',\n },\n} as const)\nexport type StepsProps = ExtractPropTypes<typeof stepsProps>\n\nexport const stepsEmits = {\n [CHANGE_EVENT]: (newVal: number, oldVal: number) =>\n [newVal, oldVal].every(isNumber),\n}\nexport type StepsEmits = typeof stepsEmits\n\nexport type StepsInstance = InstanceType<typeof Steps>\n"],"names":[],"mappings":";;;;;;AAEY,MAAC,UAAU,GAAG,UAAU,CAAC;AACrC,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,YAAY;AACzB,IAAI,MAAM,EAAE,CAAC,YAAY,EAAE,UAAU,CAAC;AACtC,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,OAAO;AACjB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,OAAO;AACjB,GAAG;AACH,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,CAAC;AAC7D,IAAI,OAAO,EAAE,QAAQ;AACrB,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,CAAC;AAC7D,IAAI,OAAO,EAAE,SAAS;AACtB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,UAAU,GAAG;AAC1B,EAAE,CAAC,YAAY,GAAG,CAAC,MAAM,EAAE,MAAM,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC;AACtE;;;;"}
1
+ {"version":3,"file":"steps.mjs","sources":["../../../../../../packages/components/steps/src/steps.vue"],"sourcesContent":["<template>\n <div :class=\"[ns.b(), ns.m(simple ? 'simple' : direction)]\">\n <slot />\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { getCurrentInstance, provide, watch } from 'vue'\nimport { CHANGE_EVENT } from '@element-plus/constants'\nimport { useNamespace, useOrderedChildren } from '@element-plus/hooks'\nimport { stepsEmits, stepsProps } from './steps'\n\nimport type { StepItemState } from './item.vue'\n\ndefineOptions({\n name: 'ElSteps',\n})\n\nconst props = defineProps(stepsProps)\nconst emit = defineEmits(stepsEmits)\n\nconst ns = useNamespace('steps')\nconst {\n children: steps,\n addChild: addStep,\n removeChild: removeStep,\n} = useOrderedChildren<StepItemState>(getCurrentInstance()!, 'ElStep')\n\nwatch(steps, () => {\n steps.value.forEach((instance: StepItemState, index: number) => {\n instance.setIndex(index)\n })\n})\n\nprovide('ElSteps', { props, steps, addStep, removeStep })\n\nwatch(\n () => props.active,\n (newVal: number, oldVal: number) => {\n emit(CHANGE_EVENT, newVal, oldVal)\n }\n)\n</script>\n"],"names":[],"mappings":";;;;;;;;;mCAcc,CAAA;AAAA,EACZ,IAAM,EAAA,SAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAKA,IAAM,MAAA,EAAA,GAAK,aAAa,OAAO,CAAA,CAAA;AAC/B,IAAM,MAAA;AAAA,MACJ,QAAU,EAAA,KAAA;AAAA,MACV,QAAU,EAAA,OAAA;AAAA,MACV,WAAa,EAAA,UAAA;AAAA,KACX,GAAA,kBAAA,CAAkC,kBAAmB,EAAA,EAAI,QAAQ,CAAA,CAAA;AAErE,IAAA,KAAA,CAAM,OAAO,MAAM;AACjB,MAAA,KAAA,CAAM,KAAM,CAAA,OAAA,CAAQ,CAAC,QAAA,EAAyB,KAAkB,KAAA;AAC9D,QAAA,QAAA,CAAS,SAAS,KAAK,CAAA,CAAA;AAAA,OACxB,CAAA,CAAA;AAAA,KACF,CAAA,CAAA;AAED,IAAA,OAAA,CAAQ,WAAW,EAAE,KAAA,EAAO,KAAO,EAAA,OAAA,EAAS,YAAY,CAAA,CAAA;AAExD,IAAA,KAAA,CACE,MAAM,KAAA,CAAM,MACZ,EAAA,CAAC,QAAgB,MAAmB,KAAA;AAClC,MAAK,IAAA,CAAA,YAAA,EAAc,QAAQ,MAAM,CAAA,CAAA;AAAA,KAErC,CAAA,CAAA;;;;;;;;;;;;;;"}
@@ -1,46 +1,43 @@
1
- import { defineComponent, getCurrentInstance, watch, provide, openBlock, createElementBlock, normalizeClass, unref, renderSlot } from 'vue';
2
1
  import '../../../constants/index.mjs';
3
- import '../../../hooks/index.mjs';
4
- import { stepsProps, stepsEmits } from './steps.mjs';
5
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
6
- import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
7
- import { useOrderedChildren } from '../../../hooks/use-ordered-children/index.mjs';
2
+ import '../../../utils/index.mjs';
3
+ import { buildProps } from '../../../utils/vue/props/runtime.mjs';
8
4
  import { CHANGE_EVENT } from '../../../constants/event.mjs';
5
+ import { isNumber } from '../../../utils/types.mjs';
9
6
 
10
- const __default__ = defineComponent({
11
- name: "ElSteps"
12
- });
13
- const _sfc_main = /* @__PURE__ */ defineComponent({
14
- ...__default__,
15
- props: stepsProps,
16
- emits: stepsEmits,
17
- setup(__props, { emit }) {
18
- const props = __props;
19
- const ns = useNamespace("steps");
20
- const {
21
- children: steps,
22
- addChild: addStep,
23
- removeChild: removeStep
24
- } = useOrderedChildren(getCurrentInstance(), "ElStep");
25
- watch(steps, () => {
26
- steps.value.forEach((instance, index) => {
27
- instance.setIndex(index);
28
- });
29
- });
30
- provide("ElSteps", { props, steps, addStep, removeStep });
31
- watch(() => props.active, (newVal, oldVal) => {
32
- emit(CHANGE_EVENT, newVal, oldVal);
33
- });
34
- return (_ctx, _cache) => {
35
- return openBlock(), createElementBlock("div", {
36
- class: normalizeClass([unref(ns).b(), unref(ns).m(_ctx.simple ? "simple" : _ctx.direction)])
37
- }, [
38
- renderSlot(_ctx.$slots, "default")
39
- ], 2);
40
- };
7
+ const stepsProps = buildProps({
8
+ space: {
9
+ type: [Number, String],
10
+ default: ""
11
+ },
12
+ active: {
13
+ type: Number,
14
+ default: 0
15
+ },
16
+ direction: {
17
+ type: String,
18
+ default: "horizontal",
19
+ values: ["horizontal", "vertical"]
20
+ },
21
+ alignCenter: {
22
+ type: Boolean
23
+ },
24
+ simple: {
25
+ type: Boolean
26
+ },
27
+ finishStatus: {
28
+ type: String,
29
+ values: ["wait", "process", "finish", "error", "success"],
30
+ default: "finish"
31
+ },
32
+ processStatus: {
33
+ type: String,
34
+ values: ["wait", "process", "finish", "error", "success"],
35
+ default: "process"
41
36
  }
42
37
  });
43
- var Steps = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "steps.vue"]]);
38
+ const stepsEmits = {
39
+ [CHANGE_EVENT]: (newVal, oldVal) => [newVal, oldVal].every(isNumber)
40
+ };
44
41
 
45
- export { Steps as default };
42
+ export { stepsEmits, stepsProps };
46
43
  //# sourceMappingURL=steps2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"steps2.mjs","sources":["../../../../../../packages/components/steps/src/steps.vue"],"sourcesContent":["<template>\n <div :class=\"[ns.b(), ns.m(simple ? 'simple' : direction)]\">\n <slot />\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { getCurrentInstance, provide, watch } from 'vue'\nimport { CHANGE_EVENT } from '@element-plus/constants'\nimport { useNamespace, useOrderedChildren } from '@element-plus/hooks'\nimport { stepsEmits, stepsProps } from './steps'\n\nimport type { StepItemState } from './item.vue'\n\ndefineOptions({\n name: 'ElSteps',\n})\n\nconst props = defineProps(stepsProps)\nconst emit = defineEmits(stepsEmits)\n\nconst ns = useNamespace('steps')\nconst {\n children: steps,\n addChild: addStep,\n removeChild: removeStep,\n} = useOrderedChildren<StepItemState>(getCurrentInstance()!, 'ElStep')\n\nwatch(steps, () => {\n steps.value.forEach((instance: StepItemState, index: number) => {\n instance.setIndex(index)\n })\n})\n\nprovide('ElSteps', { props, steps, addStep, removeStep })\n\nwatch(\n () => props.active,\n (newVal: number, oldVal: number) => {\n emit(CHANGE_EVENT, newVal, oldVal)\n }\n)\n</script>\n"],"names":[],"mappings":";;;;;;;;;mCAcc,CAAA;AAAA,EACZ,IAAM,EAAA,SAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAKA,IAAM,MAAA,EAAA,GAAK,aAAa,OAAO,CAAA,CAAA;AAC/B,IAAM,MAAA;AAAA,MACJ,QAAU,EAAA,KAAA;AAAA,MACV,QAAU,EAAA,OAAA;AAAA,MACV,WAAa,EAAA,UAAA;AAAA,KACX,GAAA,kBAAA,CAAkC,kBAAmB,EAAA,EAAI,QAAQ,CAAA,CAAA;AAErE,IAAA,KAAA,CAAM,OAAO,MAAM;AACjB,MAAA,KAAA,CAAM,KAAM,CAAA,OAAA,CAAQ,CAAC,QAAA,EAAyB,KAAkB,KAAA;AAC9D,QAAA,QAAA,CAAS,SAAS,KAAK,CAAA,CAAA;AAAA,OACxB,CAAA,CAAA;AAAA,KACF,CAAA,CAAA;AAED,IAAA,OAAA,CAAQ,WAAW,EAAE,KAAA,EAAO,KAAO,EAAA,OAAA,EAAS,YAAY,CAAA,CAAA;AAExD,IAAA,KAAA,CACE,MAAM,KAAA,CAAM,MACZ,EAAA,CAAC,QAAgB,MAAmB,KAAA;AAClC,MAAK,IAAA,CAAA,YAAA,EAAc,QAAQ,MAAM,CAAA,CAAA;AAAA,KAErC,CAAA,CAAA;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"steps2.mjs","sources":["../../../../../../packages/components/steps/src/steps.ts"],"sourcesContent":["import { CHANGE_EVENT } from '@element-plus/constants'\nimport { buildProps, isNumber } from '@element-plus/utils'\nimport type Steps from './steps.vue'\nimport type { ExtractPropTypes } from 'vue'\n\nexport const stepsProps = buildProps({\n /**\n * @description the spacing of each step, will be responsive if omitted. Supports percentage.\n */\n space: {\n type: [Number, String],\n default: '',\n },\n /**\n * @description current activation step\n */\n active: {\n type: Number,\n default: 0,\n },\n /**\n * @description display direction\n */\n direction: {\n type: String,\n default: 'horizontal',\n values: ['horizontal', 'vertical'],\n },\n /**\n * @description center title and description\n */\n alignCenter: {\n type: Boolean,\n },\n /**\n * @description whether to apply simple theme\n */\n simple: {\n type: Boolean,\n },\n /**\n * @description status of end step\n */\n finishStatus: {\n type: String,\n values: ['wait', 'process', 'finish', 'error', 'success'],\n default: 'finish',\n },\n /**\n * @description status of current step\n */\n processStatus: {\n type: String,\n values: ['wait', 'process', 'finish', 'error', 'success'],\n default: 'process',\n },\n} as const)\nexport type StepsProps = ExtractPropTypes<typeof stepsProps>\n\nexport const stepsEmits = {\n [CHANGE_EVENT]: (newVal: number, oldVal: number) =>\n [newVal, oldVal].every(isNumber),\n}\nexport type StepsEmits = typeof stepsEmits\n\nexport type StepsInstance = InstanceType<typeof Steps>\n"],"names":[],"mappings":";;;;;;AAEY,MAAC,UAAU,GAAG,UAAU,CAAC;AACrC,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,YAAY;AACzB,IAAI,MAAM,EAAE,CAAC,YAAY,EAAE,UAAU,CAAC;AACtC,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,OAAO;AACjB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,OAAO;AACjB,GAAG;AACH,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,CAAC;AAC7D,IAAI,OAAO,EAAE,QAAQ;AACrB,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,CAAC;AAC7D,IAAI,OAAO,EAAE,SAAS;AACtB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,UAAU,GAAG;AAC1B,EAAE,CAAC,YAAY,GAAG,CAAC,MAAM,EAAE,MAAM,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC;AACtE;;;;"}
@@ -1,49 +1,68 @@
1
- import '../../../utils/index.mjs';
2
- import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
1
+ import { defineComponent, ref, watch, toRef, computed, inject, openBlock, createElementBlock, normalizeStyle, unref, normalizeClass, createVNode, withCtx, renderSlot, createCommentVNode } from 'vue';
2
+ import '../../focus-trap/index.mjs';
3
+ import { tourContentProps, tourContentEmits } from './content2.mjs';
4
+ import { useFloating, tourKey } from './helper.mjs';
5
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
6
+ import ElFocusTrap from '../../focus-trap/src/focus-trap.mjs';
3
7
 
4
- const tourStrategies = ["absolute", "fixed"];
5
- const tourPlacements = [
6
- "top-start",
7
- "top-end",
8
- "top",
9
- "bottom-start",
10
- "bottom-end",
11
- "bottom",
12
- "left-start",
13
- "left-end",
14
- "left",
15
- "right-start",
16
- "right-end",
17
- "right"
18
- ];
19
- const tourContentProps = buildProps({
20
- placement: {
21
- type: definePropType(String),
22
- values: tourPlacements,
23
- default: "bottom"
24
- },
25
- reference: {
26
- type: definePropType(Object),
27
- default: null
28
- },
29
- strategy: {
30
- type: definePropType(String),
31
- values: tourStrategies,
32
- default: "absolute"
33
- },
34
- offset: {
35
- type: Number,
36
- default: 10
37
- },
38
- showArrow: Boolean,
39
- zIndex: {
40
- type: Number,
41
- default: 2001
8
+ const _hoisted_1 = ["data-side"];
9
+ const __default__ = defineComponent({
10
+ name: "ElTourContent"
11
+ });
12
+ const _sfc_main = /* @__PURE__ */ defineComponent({
13
+ ...__default__,
14
+ props: tourContentProps,
15
+ emits: tourContentEmits,
16
+ setup(__props, { emit }) {
17
+ const props = __props;
18
+ const placement = ref(props.placement);
19
+ const strategy = ref(props.strategy);
20
+ const contentRef = ref(null);
21
+ const arrowRef = ref(null);
22
+ watch(() => props.placement, () => {
23
+ placement.value = props.placement;
24
+ });
25
+ const { contentStyle, arrowStyle } = useFloating(toRef(props, "reference"), contentRef, arrowRef, placement, strategy, toRef(props, "offset"), toRef(props, "zIndex"), toRef(props, "showArrow"));
26
+ const side = computed(() => {
27
+ return placement.value.split("-")[0];
28
+ });
29
+ const { ns } = inject(tourKey);
30
+ const onCloseRequested = () => {
31
+ emit("close");
32
+ };
33
+ return (_ctx, _cache) => {
34
+ return openBlock(), createElementBlock("div", {
35
+ ref_key: "contentRef",
36
+ ref: contentRef,
37
+ style: normalizeStyle(unref(contentStyle)),
38
+ class: normalizeClass(unref(ns).e("content")),
39
+ "data-side": unref(side),
40
+ tabindex: "-1"
41
+ }, [
42
+ createVNode(unref(ElFocusTrap), {
43
+ loop: "",
44
+ trapped: "",
45
+ "focus-start-el": "container",
46
+ "focus-trap-el": contentRef.value || void 0,
47
+ onReleaseRequested: onCloseRequested
48
+ }, {
49
+ default: withCtx(() => [
50
+ renderSlot(_ctx.$slots, "default")
51
+ ]),
52
+ _: 3
53
+ }, 8, ["focus-trap-el"]),
54
+ _ctx.showArrow ? (openBlock(), createElementBlock("span", {
55
+ key: 0,
56
+ ref_key: "arrowRef",
57
+ ref: arrowRef,
58
+ style: normalizeStyle(unref(arrowStyle)),
59
+ class: normalizeClass(unref(ns).e("arrow"))
60
+ }, null, 6)) : createCommentVNode("v-if", true)
61
+ ], 14, _hoisted_1);
62
+ };
42
63
  }
43
64
  });
44
- const tourContentEmits = {
45
- close: () => true
46
- };
65
+ var ElTourContent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "content.vue"]]);
47
66
 
48
- export { tourContentEmits, tourContentProps };
67
+ export { ElTourContent as default };
49
68
  //# sourceMappingURL=content.mjs.map