@element-plus/nightly 0.0.20240714 → 0.0.20240716

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 (399) hide show
  1. package/attributes.json +1 -1
  2. package/dist/index.css +1 -1
  3. package/dist/index.full.js +8 -4
  4. package/dist/index.full.min.js +3 -3
  5. package/dist/index.full.min.js.map +1 -1
  6. package/dist/index.full.min.mjs +3 -3
  7. package/dist/index.full.min.mjs.map +1 -1
  8. package/dist/index.full.mjs +8 -4
  9. package/dist/locale/af.js +1 -1
  10. package/dist/locale/af.min.js +1 -1
  11. package/dist/locale/af.min.mjs +1 -1
  12. package/dist/locale/af.mjs +1 -1
  13. package/dist/locale/ar-eg.js +1 -1
  14. package/dist/locale/ar-eg.min.js +1 -1
  15. package/dist/locale/ar-eg.min.mjs +1 -1
  16. package/dist/locale/ar-eg.mjs +1 -1
  17. package/dist/locale/ar.js +1 -1
  18. package/dist/locale/ar.min.js +1 -1
  19. package/dist/locale/ar.min.mjs +1 -1
  20. package/dist/locale/ar.mjs +1 -1
  21. package/dist/locale/az.js +1 -1
  22. package/dist/locale/az.min.js +1 -1
  23. package/dist/locale/az.min.mjs +1 -1
  24. package/dist/locale/az.mjs +1 -1
  25. package/dist/locale/bg.js +1 -1
  26. package/dist/locale/bg.min.js +1 -1
  27. package/dist/locale/bg.min.mjs +1 -1
  28. package/dist/locale/bg.mjs +1 -1
  29. package/dist/locale/bn.js +1 -1
  30. package/dist/locale/bn.min.js +1 -1
  31. package/dist/locale/bn.min.mjs +1 -1
  32. package/dist/locale/bn.mjs +1 -1
  33. package/dist/locale/ca.js +1 -1
  34. package/dist/locale/ca.min.js +1 -1
  35. package/dist/locale/ca.min.mjs +1 -1
  36. package/dist/locale/ca.mjs +1 -1
  37. package/dist/locale/ckb.js +1 -1
  38. package/dist/locale/ckb.min.js +1 -1
  39. package/dist/locale/ckb.min.mjs +1 -1
  40. package/dist/locale/ckb.mjs +1 -1
  41. package/dist/locale/cs.js +1 -1
  42. package/dist/locale/cs.min.js +1 -1
  43. package/dist/locale/cs.min.mjs +1 -1
  44. package/dist/locale/cs.mjs +1 -1
  45. package/dist/locale/da.js +1 -1
  46. package/dist/locale/da.min.js +1 -1
  47. package/dist/locale/da.min.mjs +1 -1
  48. package/dist/locale/da.mjs +1 -1
  49. package/dist/locale/de.js +1 -1
  50. package/dist/locale/de.min.js +1 -1
  51. package/dist/locale/de.min.mjs +1 -1
  52. package/dist/locale/de.mjs +1 -1
  53. package/dist/locale/el.js +1 -1
  54. package/dist/locale/el.min.js +1 -1
  55. package/dist/locale/el.min.mjs +1 -1
  56. package/dist/locale/el.mjs +1 -1
  57. package/dist/locale/en.js +1 -1
  58. package/dist/locale/en.min.js +1 -1
  59. package/dist/locale/en.min.mjs +1 -1
  60. package/dist/locale/en.mjs +1 -1
  61. package/dist/locale/eo.js +1 -1
  62. package/dist/locale/eo.min.js +1 -1
  63. package/dist/locale/eo.min.mjs +1 -1
  64. package/dist/locale/eo.mjs +1 -1
  65. package/dist/locale/es.js +1 -1
  66. package/dist/locale/es.min.js +1 -1
  67. package/dist/locale/es.min.mjs +1 -1
  68. package/dist/locale/es.mjs +1 -1
  69. package/dist/locale/et.js +1 -1
  70. package/dist/locale/et.min.js +1 -1
  71. package/dist/locale/et.min.mjs +1 -1
  72. package/dist/locale/et.mjs +1 -1
  73. package/dist/locale/eu.js +1 -1
  74. package/dist/locale/eu.min.js +1 -1
  75. package/dist/locale/eu.min.mjs +1 -1
  76. package/dist/locale/eu.mjs +1 -1
  77. package/dist/locale/fa.js +1 -1
  78. package/dist/locale/fa.min.js +1 -1
  79. package/dist/locale/fa.min.mjs +1 -1
  80. package/dist/locale/fa.mjs +1 -1
  81. package/dist/locale/fi.js +1 -1
  82. package/dist/locale/fi.min.js +1 -1
  83. package/dist/locale/fi.min.mjs +1 -1
  84. package/dist/locale/fi.mjs +1 -1
  85. package/dist/locale/fr.js +1 -1
  86. package/dist/locale/fr.min.js +1 -1
  87. package/dist/locale/fr.min.mjs +1 -1
  88. package/dist/locale/fr.mjs +1 -1
  89. package/dist/locale/he.js +1 -1
  90. package/dist/locale/he.min.js +1 -1
  91. package/dist/locale/he.min.mjs +1 -1
  92. package/dist/locale/he.mjs +1 -1
  93. package/dist/locale/hr.js +1 -1
  94. package/dist/locale/hr.min.js +1 -1
  95. package/dist/locale/hr.min.mjs +1 -1
  96. package/dist/locale/hr.mjs +1 -1
  97. package/dist/locale/hu.js +1 -1
  98. package/dist/locale/hu.min.js +1 -1
  99. package/dist/locale/hu.min.mjs +1 -1
  100. package/dist/locale/hu.mjs +1 -1
  101. package/dist/locale/hy-am.js +1 -1
  102. package/dist/locale/hy-am.min.js +1 -1
  103. package/dist/locale/hy-am.min.mjs +1 -1
  104. package/dist/locale/hy-am.mjs +1 -1
  105. package/dist/locale/id.js +1 -1
  106. package/dist/locale/id.min.js +1 -1
  107. package/dist/locale/id.min.mjs +1 -1
  108. package/dist/locale/id.mjs +1 -1
  109. package/dist/locale/it.js +1 -1
  110. package/dist/locale/it.min.js +1 -1
  111. package/dist/locale/it.min.mjs +1 -1
  112. package/dist/locale/it.mjs +1 -1
  113. package/dist/locale/ja.js +1 -1
  114. package/dist/locale/ja.min.js +1 -1
  115. package/dist/locale/ja.min.mjs +1 -1
  116. package/dist/locale/ja.mjs +1 -1
  117. package/dist/locale/kk.js +1 -1
  118. package/dist/locale/kk.min.js +1 -1
  119. package/dist/locale/kk.min.mjs +1 -1
  120. package/dist/locale/kk.mjs +1 -1
  121. package/dist/locale/km.js +1 -1
  122. package/dist/locale/km.min.js +1 -1
  123. package/dist/locale/km.min.mjs +1 -1
  124. package/dist/locale/km.mjs +1 -1
  125. package/dist/locale/ko.js +1 -1
  126. package/dist/locale/ko.min.js +1 -1
  127. package/dist/locale/ko.min.mjs +1 -1
  128. package/dist/locale/ko.mjs +1 -1
  129. package/dist/locale/ku.js +1 -1
  130. package/dist/locale/ku.min.js +1 -1
  131. package/dist/locale/ku.min.mjs +1 -1
  132. package/dist/locale/ku.mjs +1 -1
  133. package/dist/locale/ky.js +1 -1
  134. package/dist/locale/ky.min.js +1 -1
  135. package/dist/locale/ky.min.mjs +1 -1
  136. package/dist/locale/ky.mjs +1 -1
  137. package/dist/locale/lt.js +1 -1
  138. package/dist/locale/lt.min.js +1 -1
  139. package/dist/locale/lt.min.mjs +1 -1
  140. package/dist/locale/lt.mjs +1 -1
  141. package/dist/locale/lv.js +1 -1
  142. package/dist/locale/lv.min.js +1 -1
  143. package/dist/locale/lv.min.mjs +1 -1
  144. package/dist/locale/lv.mjs +1 -1
  145. package/dist/locale/mg.js +1 -1
  146. package/dist/locale/mg.min.js +1 -1
  147. package/dist/locale/mg.min.mjs +1 -1
  148. package/dist/locale/mg.mjs +1 -1
  149. package/dist/locale/mn.js +1 -1
  150. package/dist/locale/mn.min.js +1 -1
  151. package/dist/locale/mn.min.mjs +1 -1
  152. package/dist/locale/mn.mjs +1 -1
  153. package/dist/locale/nb-no.js +1 -1
  154. package/dist/locale/nb-no.min.js +1 -1
  155. package/dist/locale/nb-no.min.mjs +1 -1
  156. package/dist/locale/nb-no.mjs +1 -1
  157. package/dist/locale/nl.js +1 -1
  158. package/dist/locale/nl.min.js +1 -1
  159. package/dist/locale/nl.min.mjs +1 -1
  160. package/dist/locale/nl.mjs +1 -1
  161. package/dist/locale/pa.js +1 -1
  162. package/dist/locale/pa.min.js +1 -1
  163. package/dist/locale/pa.min.mjs +1 -1
  164. package/dist/locale/pa.mjs +1 -1
  165. package/dist/locale/pl.js +1 -1
  166. package/dist/locale/pl.min.js +1 -1
  167. package/dist/locale/pl.min.mjs +1 -1
  168. package/dist/locale/pl.mjs +1 -1
  169. package/dist/locale/pt-br.js +1 -1
  170. package/dist/locale/pt-br.min.js +1 -1
  171. package/dist/locale/pt-br.min.mjs +1 -1
  172. package/dist/locale/pt-br.mjs +1 -1
  173. package/dist/locale/pt.js +1 -1
  174. package/dist/locale/pt.min.js +1 -1
  175. package/dist/locale/pt.min.mjs +1 -1
  176. package/dist/locale/pt.mjs +1 -1
  177. package/dist/locale/ro.js +1 -1
  178. package/dist/locale/ro.min.js +1 -1
  179. package/dist/locale/ro.min.mjs +1 -1
  180. package/dist/locale/ro.mjs +1 -1
  181. package/dist/locale/ru.js +1 -1
  182. package/dist/locale/ru.min.js +1 -1
  183. package/dist/locale/ru.min.mjs +1 -1
  184. package/dist/locale/ru.mjs +1 -1
  185. package/dist/locale/sk.js +1 -1
  186. package/dist/locale/sk.min.js +1 -1
  187. package/dist/locale/sk.min.mjs +1 -1
  188. package/dist/locale/sk.mjs +1 -1
  189. package/dist/locale/sl.js +1 -1
  190. package/dist/locale/sl.min.js +1 -1
  191. package/dist/locale/sl.min.mjs +1 -1
  192. package/dist/locale/sl.mjs +1 -1
  193. package/dist/locale/sr.js +1 -1
  194. package/dist/locale/sr.min.js +1 -1
  195. package/dist/locale/sr.min.mjs +1 -1
  196. package/dist/locale/sr.mjs +1 -1
  197. package/dist/locale/sv.js +1 -1
  198. package/dist/locale/sv.min.js +1 -1
  199. package/dist/locale/sv.min.mjs +1 -1
  200. package/dist/locale/sv.mjs +1 -1
  201. package/dist/locale/sw.js +1 -1
  202. package/dist/locale/sw.min.js +1 -1
  203. package/dist/locale/sw.min.mjs +1 -1
  204. package/dist/locale/sw.mjs +1 -1
  205. package/dist/locale/ta.js +1 -1
  206. package/dist/locale/ta.min.js +1 -1
  207. package/dist/locale/ta.min.mjs +1 -1
  208. package/dist/locale/ta.mjs +1 -1
  209. package/dist/locale/th.js +1 -1
  210. package/dist/locale/th.min.js +1 -1
  211. package/dist/locale/th.min.mjs +1 -1
  212. package/dist/locale/th.mjs +1 -1
  213. package/dist/locale/tk.js +1 -1
  214. package/dist/locale/tk.min.js +1 -1
  215. package/dist/locale/tk.min.mjs +1 -1
  216. package/dist/locale/tk.mjs +1 -1
  217. package/dist/locale/tr.js +1 -1
  218. package/dist/locale/tr.min.js +1 -1
  219. package/dist/locale/tr.min.mjs +1 -1
  220. package/dist/locale/tr.mjs +1 -1
  221. package/dist/locale/ug-cn.js +1 -1
  222. package/dist/locale/ug-cn.min.js +1 -1
  223. package/dist/locale/ug-cn.min.mjs +1 -1
  224. package/dist/locale/ug-cn.mjs +1 -1
  225. package/dist/locale/uk.js +1 -1
  226. package/dist/locale/uk.min.js +1 -1
  227. package/dist/locale/uk.min.mjs +1 -1
  228. package/dist/locale/uk.mjs +1 -1
  229. package/dist/locale/uz-uz.js +1 -1
  230. package/dist/locale/uz-uz.min.js +1 -1
  231. package/dist/locale/uz-uz.min.mjs +1 -1
  232. package/dist/locale/uz-uz.mjs +1 -1
  233. package/dist/locale/vi.js +1 -1
  234. package/dist/locale/vi.min.js +1 -1
  235. package/dist/locale/vi.min.mjs +1 -1
  236. package/dist/locale/vi.mjs +1 -1
  237. package/dist/locale/zh-cn.js +1 -1
  238. package/dist/locale/zh-cn.min.js +1 -1
  239. package/dist/locale/zh-cn.min.mjs +1 -1
  240. package/dist/locale/zh-cn.mjs +1 -1
  241. package/dist/locale/zh-tw.js +1 -1
  242. package/dist/locale/zh-tw.min.js +1 -1
  243. package/dist/locale/zh-tw.min.mjs +1 -1
  244. package/dist/locale/zh-tw.mjs +1 -1
  245. package/es/components/affix/index.mjs +2 -2
  246. package/es/components/affix/src/affix.mjs +117 -26
  247. package/es/components/affix/src/affix.mjs.map +1 -1
  248. package/es/components/affix/src/affix2.mjs +26 -117
  249. package/es/components/affix/src/affix2.mjs.map +1 -1
  250. package/es/components/cascader/index.d.ts +8 -0
  251. package/es/components/cascader/src/cascader.d.ts +1 -0
  252. package/es/components/cascader/src/cascader.mjs +4 -0
  253. package/es/components/cascader/src/cascader.mjs.map +1 -1
  254. package/es/components/cascader/src/cascader.vue.d.ts +4 -0
  255. package/es/components/cascader/src/cascader2.mjs +2 -2
  256. package/es/components/cascader/src/cascader2.mjs.map +1 -1
  257. package/es/components/countdown/index.mjs +2 -2
  258. package/es/components/countdown/src/countdown.mjs +23 -74
  259. package/es/components/countdown/src/countdown.mjs.map +1 -1
  260. package/es/components/countdown/src/countdown2.mjs +74 -23
  261. package/es/components/countdown/src/countdown2.mjs.map +1 -1
  262. package/es/components/descriptions/index.mjs +2 -2
  263. package/es/components/descriptions/src/description.mjs +25 -112
  264. package/es/components/descriptions/src/description.mjs.map +1 -1
  265. package/es/components/descriptions/src/description2.mjs +112 -25
  266. package/es/components/descriptions/src/description2.mjs.map +1 -1
  267. package/es/components/dropdown/index.mjs +2 -2
  268. package/es/components/dropdown/src/dropdown-item-impl.mjs +1 -1
  269. package/es/components/dropdown/src/dropdown-item.mjs +1 -1
  270. package/es/components/dropdown/src/dropdown-menu.mjs +1 -1
  271. package/es/components/dropdown/src/dropdown.mjs +306 -97
  272. package/es/components/dropdown/src/dropdown.mjs.map +1 -1
  273. package/es/components/dropdown/src/dropdown2.mjs +97 -306
  274. package/es/components/dropdown/src/dropdown2.mjs.map +1 -1
  275. package/es/components/index.mjs +5 -5
  276. package/es/components/pagination/src/components/jumper.mjs +9 -60
  277. package/es/components/pagination/src/components/jumper.mjs.map +1 -1
  278. package/es/components/pagination/src/components/jumper2.mjs +60 -9
  279. package/es/components/pagination/src/components/jumper2.mjs.map +1 -1
  280. package/es/components/pagination/src/components/prev.mjs +18 -38
  281. package/es/components/pagination/src/components/prev.mjs.map +1 -1
  282. package/es/components/pagination/src/components/prev2.mjs +38 -18
  283. package/es/components/pagination/src/components/prev2.mjs.map +1 -1
  284. package/es/components/pagination/src/pagination.mjs +2 -2
  285. package/es/components/popover/src/popover.mjs +1 -1
  286. package/es/components/tour/index.mjs +1 -1
  287. package/es/components/tour/src/content.mjs +69 -44
  288. package/es/components/tour/src/content.mjs.map +1 -1
  289. package/es/components/tour/src/content2.mjs +44 -69
  290. package/es/components/tour/src/content2.mjs.map +1 -1
  291. package/es/components/tour/src/step.mjs +1 -1
  292. package/es/components/tour/src/tour.mjs +1 -1
  293. package/es/components/tour/src/tour2.mjs +1 -1
  294. package/es/index.mjs +5 -5
  295. package/es/version.d.ts +1 -1
  296. package/es/version.mjs +1 -1
  297. package/es/version.mjs.map +1 -1
  298. package/lib/components/affix/index.js +2 -2
  299. package/lib/components/affix/src/affix.js +117 -27
  300. package/lib/components/affix/src/affix.js.map +1 -1
  301. package/lib/components/affix/src/affix2.js +27 -117
  302. package/lib/components/affix/src/affix2.js.map +1 -1
  303. package/lib/components/cascader/index.d.ts +8 -0
  304. package/lib/components/cascader/src/cascader.d.ts +1 -0
  305. package/lib/components/cascader/src/cascader.js +4 -0
  306. package/lib/components/cascader/src/cascader.js.map +1 -1
  307. package/lib/components/cascader/src/cascader.vue.d.ts +4 -0
  308. package/lib/components/cascader/src/cascader2.js +2 -2
  309. package/lib/components/cascader/src/cascader2.js.map +1 -1
  310. package/lib/components/countdown/index.js +2 -2
  311. package/lib/components/countdown/src/countdown.js +24 -74
  312. package/lib/components/countdown/src/countdown.js.map +1 -1
  313. package/lib/components/countdown/src/countdown2.js +74 -24
  314. package/lib/components/countdown/src/countdown2.js.map +1 -1
  315. package/lib/components/descriptions/index.js +2 -2
  316. package/lib/components/descriptions/src/description.js +25 -112
  317. package/lib/components/descriptions/src/description.js.map +1 -1
  318. package/lib/components/descriptions/src/description2.js +112 -25
  319. package/lib/components/descriptions/src/description2.js.map +1 -1
  320. package/lib/components/dropdown/index.js +2 -2
  321. package/lib/components/dropdown/src/dropdown-item-impl.js +1 -1
  322. package/lib/components/dropdown/src/dropdown-item.js +1 -1
  323. package/lib/components/dropdown/src/dropdown-menu.js +1 -1
  324. package/lib/components/dropdown/src/dropdown.js +306 -106
  325. package/lib/components/dropdown/src/dropdown.js.map +1 -1
  326. package/lib/components/dropdown/src/dropdown2.js +106 -306
  327. package/lib/components/dropdown/src/dropdown2.js.map +1 -1
  328. package/lib/components/index.js +5 -5
  329. package/lib/components/pagination/src/components/jumper.js +9 -60
  330. package/lib/components/pagination/src/components/jumper.js.map +1 -1
  331. package/lib/components/pagination/src/components/jumper2.js +60 -9
  332. package/lib/components/pagination/src/components/jumper2.js.map +1 -1
  333. package/lib/components/pagination/src/components/prev.js +19 -38
  334. package/lib/components/pagination/src/components/prev.js.map +1 -1
  335. package/lib/components/pagination/src/components/prev2.js +38 -19
  336. package/lib/components/pagination/src/components/prev2.js.map +1 -1
  337. package/lib/components/pagination/src/pagination.js +2 -2
  338. package/lib/components/popover/src/popover.js +1 -1
  339. package/lib/components/tour/index.js +1 -1
  340. package/lib/components/tour/src/content.js +69 -47
  341. package/lib/components/tour/src/content.js.map +1 -1
  342. package/lib/components/tour/src/content2.js +47 -69
  343. package/lib/components/tour/src/content2.js.map +1 -1
  344. package/lib/components/tour/src/step.js +1 -1
  345. package/lib/components/tour/src/tour.js +1 -1
  346. package/lib/components/tour/src/tour2.js +1 -1
  347. package/lib/index.js +5 -5
  348. package/lib/version.d.ts +1 -1
  349. package/lib/version.js +1 -1
  350. package/lib/version.js.map +1 -1
  351. package/package.json +2 -2
  352. package/tags.json +1 -1
  353. package/theme-chalk/base.css +1 -1
  354. package/theme-chalk/el-anchor-link.css +1 -1
  355. package/theme-chalk/el-autocomplete.css +1 -1
  356. package/theme-chalk/el-badge.css +1 -1
  357. package/theme-chalk/el-button-group.css +1 -1
  358. package/theme-chalk/el-button.css +1 -1
  359. package/theme-chalk/el-card.css +1 -1
  360. package/theme-chalk/el-cascader-panel.css +1 -1
  361. package/theme-chalk/el-cascader.css +1 -1
  362. package/theme-chalk/el-checkbox-button.css +1 -1
  363. package/theme-chalk/el-checkbox.css +1 -1
  364. package/theme-chalk/el-date-picker.css +1 -1
  365. package/theme-chalk/el-dialog.css +1 -1
  366. package/theme-chalk/el-dropdown.css +1 -1
  367. package/theme-chalk/el-empty.css +1 -1
  368. package/theme-chalk/el-icon.css +1 -1
  369. package/theme-chalk/el-image-viewer.css +1 -1
  370. package/theme-chalk/el-input-number.css +1 -1
  371. package/theme-chalk/el-input.css +1 -1
  372. package/theme-chalk/el-link.css +1 -1
  373. package/theme-chalk/el-loading.css +1 -1
  374. package/theme-chalk/el-message-box.css +1 -1
  375. package/theme-chalk/el-message.css +1 -1
  376. package/theme-chalk/el-pagination.css +1 -1
  377. package/theme-chalk/el-popper.css +1 -1
  378. package/theme-chalk/el-progress.css +1 -1
  379. package/theme-chalk/el-radio-button.css +1 -1
  380. package/theme-chalk/el-radio.css +1 -1
  381. package/theme-chalk/el-select-v2.css +1 -1
  382. package/theme-chalk/el-select.css +1 -1
  383. package/theme-chalk/el-skeleton.css +1 -1
  384. package/theme-chalk/el-slider.css +1 -1
  385. package/theme-chalk/el-spinner.css +1 -1
  386. package/theme-chalk/el-step.css +1 -1
  387. package/theme-chalk/el-switch.css +1 -1
  388. package/theme-chalk/el-table-v2.css +1 -1
  389. package/theme-chalk/el-table.css +1 -1
  390. package/theme-chalk/el-tabs.css +1 -1
  391. package/theme-chalk/el-time-picker.css +1 -1
  392. package/theme-chalk/el-time-select.css +1 -1
  393. package/theme-chalk/el-tooltip-v2.css +1 -1
  394. package/theme-chalk/el-upload.css +1 -1
  395. package/theme-chalk/el-var.css +1 -1
  396. package/theme-chalk/el-virtual-list.css +1 -1
  397. package/theme-chalk/index.css +1 -1
  398. package/theme-chalk/src/radio-button.scss +26 -22
  399. package/web-types.json +1 -1
package/es/index.mjs CHANGED
@@ -6,7 +6,7 @@ import './directives/index.mjs';
6
6
  import './hooks/index.mjs';
7
7
  export { makeInstaller } from './make-installer.mjs';
8
8
  export { default as dayjs } from 'dayjs';
9
- export { affixEmits, affixProps } from './components/affix/src/affix.mjs';
9
+ export { affixEmits, affixProps } from './components/affix/src/affix2.mjs';
10
10
  export { ElAffix } from './components/affix/index.mjs';
11
11
  export { alertEffects, alertEmits, alertProps } from './components/alert/src/alert.mjs';
12
12
  export { ElAlert } from './components/alert/index.mjs';
@@ -59,12 +59,12 @@ export { configProviderContextKey } from './components/config-provider/src/const
59
59
  export { provideGlobalConfig, useGlobalComponentSettings, useGlobalConfig } from './components/config-provider/src/hooks/use-global-config.mjs';
60
60
  export { ElConfigProvider } from './components/config-provider/index.mjs';
61
61
  export { ElAside, ElContainer, ElFooter, ElHeader, ElMain } from './components/container/index.mjs';
62
- export { countdownEmits, countdownProps } from './components/countdown/src/countdown2.mjs';
62
+ export { countdownEmits, countdownProps } from './components/countdown/src/countdown.mjs';
63
63
  export { ElCountdown } from './components/countdown/index.mjs';
64
64
  export { ROOT_PICKER_INJECTION_KEY } from './components/date-picker/src/constants.mjs';
65
65
  export { datePickerProps } from './components/date-picker/src/props/date-picker.mjs';
66
66
  export { ElDatePicker } from './components/date-picker/index.mjs';
67
- export { descriptionProps } from './components/descriptions/src/description2.mjs';
67
+ export { descriptionProps } from './components/descriptions/src/description.mjs';
68
68
  export { descriptionItemProps } from './components/descriptions/src/description-item.mjs';
69
69
  export { ElDescriptions, ElDescriptionsItem } from './components/descriptions/index.mjs';
70
70
  export { useDialog } from './components/dialog/src/use-dialog.mjs';
@@ -75,7 +75,7 @@ export { dividerProps } from './components/divider/src/divider2.mjs';
75
75
  export { ElDivider } from './components/divider/index.mjs';
76
76
  export { drawerEmits, drawerProps } from './components/drawer/src/drawer.mjs';
77
77
  export { ElDrawer } from './components/drawer/index.mjs';
78
- export { DROPDOWN_COLLECTION_INJECTION_KEY, DROPDOWN_COLLECTION_ITEM_INJECTION_KEY, ElCollection, ElCollectionItem, FIRST_KEYS, FIRST_LAST_KEYS, LAST_KEYS, dropdownItemProps, dropdownMenuProps, dropdownProps } from './components/dropdown/src/dropdown.mjs';
78
+ export { DROPDOWN_COLLECTION_INJECTION_KEY, DROPDOWN_COLLECTION_ITEM_INJECTION_KEY, ElCollection, ElCollectionItem, FIRST_KEYS, FIRST_LAST_KEYS, LAST_KEYS, dropdownItemProps, dropdownMenuProps, dropdownProps } from './components/dropdown/src/dropdown2.mjs';
79
79
  export { DROPDOWN_INJECTION_KEY } from './components/dropdown/src/tokens.mjs';
80
80
  export { ElDropdown, ElDropdownItem, ElDropdownMenu } from './components/dropdown/index.mjs';
81
81
  export { emptyProps } from './components/empty/src/empty.mjs';
@@ -213,7 +213,7 @@ export { watermarkProps } from './components/watermark/src/watermark.mjs';
213
213
  export { ElWatermark } from './components/watermark/index.mjs';
214
214
  export { tourEmits, tourProps } from './components/tour/src/tour.mjs';
215
215
  export { tourStepEmits, tourStepProps } from './components/tour/src/step.mjs';
216
- export { tourContentEmits, tourContentProps, tourPlacements, tourStrategies } from './components/tour/src/content.mjs';
216
+ export { tourContentEmits, tourContentProps, tourPlacements, tourStrategies } from './components/tour/src/content2.mjs';
217
217
  export { ElTour, ElTourStep } from './components/tour/index.mjs';
218
218
  export { anchorEmits, anchorProps } from './components/anchor/src/anchor.mjs';
219
219
  export { ElAnchor, ElAnchorLink } from './components/anchor/index.mjs';
package/es/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const version = "0.0.20240714";
1
+ export declare const version = "0.0.20240716";
package/es/version.mjs CHANGED
@@ -1,4 +1,4 @@
1
- const version = "0.0.20240714";
1
+ const version = "0.0.20240716";
2
2
 
3
3
  export { version };
4
4
  //# sourceMappingURL=version.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.mjs","sources":["../../../packages/element-plus/version.ts"],"sourcesContent":["export const version = '0.0.20240714'\n"],"names":[],"mappings":"AAAY,MAAC,OAAO,GAAG;;;;"}
1
+ {"version":3,"file":"version.mjs","sources":["../../../packages/element-plus/version.ts"],"sourcesContent":["export const version = '0.0.20240716'\n"],"names":[],"mappings":"AAAY,MAAC,OAAO,GAAG;;;;"}
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  require('../../utils/index.js');
6
- var affix$1 = require('./src/affix2.js');
7
- var affix = require('./src/affix.js');
6
+ var affix$1 = require('./src/affix.js');
7
+ var affix = require('./src/affix2.js');
8
8
  var install = require('../../utils/vue/install.js');
9
9
 
10
10
  const ElAffix = install.withInstall(affix$1["default"]);
@@ -2,36 +2,126 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var vue = require('vue');
6
+ var core = require('@vueuse/core');
5
7
  require('../../../utils/index.js');
6
- require('../../../constants/index.js');
7
- var runtime = require('../../../utils/vue/props/runtime.js');
8
- var types = require('../../../utils/types.js');
9
- var event = require('../../../constants/event.js');
8
+ require('../../../hooks/index.js');
9
+ var affix = require('./affix2.js');
10
+ var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
11
+ var index = require('../../../hooks/use-namespace/index.js');
12
+ var style = require('../../../utils/dom/style.js');
13
+ var error = require('../../../utils/error.js');
14
+ var scroll = require('../../../utils/dom/scroll.js');
10
15
 
11
- const affixProps = runtime.buildProps({
12
- zIndex: {
13
- type: runtime.definePropType([Number, String]),
14
- default: 100
15
- },
16
- target: {
17
- type: String,
18
- default: ""
19
- },
20
- offset: {
21
- type: Number,
22
- default: 0
23
- },
24
- position: {
25
- type: String,
26
- values: ["top", "bottom"],
27
- default: "top"
16
+ const COMPONENT_NAME = "ElAffix";
17
+ const __default__ = vue.defineComponent({
18
+ name: COMPONENT_NAME
19
+ });
20
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
21
+ ...__default__,
22
+ props: affix.affixProps,
23
+ emits: affix.affixEmits,
24
+ setup(__props, { expose, emit }) {
25
+ const props = __props;
26
+ const ns = index.useNamespace("affix");
27
+ const target = vue.shallowRef();
28
+ const root = vue.shallowRef();
29
+ const scrollContainer = vue.shallowRef();
30
+ const { height: windowHeight } = core.useWindowSize();
31
+ const {
32
+ height: rootHeight,
33
+ width: rootWidth,
34
+ top: rootTop,
35
+ bottom: rootBottom,
36
+ update: updateRoot
37
+ } = core.useElementBounding(root, { windowScroll: false });
38
+ const targetRect = core.useElementBounding(target);
39
+ const fixed = vue.ref(false);
40
+ const scrollTop = vue.ref(0);
41
+ const transform = vue.ref(0);
42
+ const rootStyle = vue.computed(() => {
43
+ return {
44
+ height: fixed.value ? `${rootHeight.value}px` : "",
45
+ width: fixed.value ? `${rootWidth.value}px` : ""
46
+ };
47
+ });
48
+ const affixStyle = vue.computed(() => {
49
+ if (!fixed.value)
50
+ return {};
51
+ const offset = props.offset ? style.addUnit(props.offset) : 0;
52
+ return {
53
+ height: `${rootHeight.value}px`,
54
+ width: `${rootWidth.value}px`,
55
+ top: props.position === "top" ? offset : "",
56
+ bottom: props.position === "bottom" ? offset : "",
57
+ transform: transform.value ? `translateY(${transform.value}px)` : "",
58
+ zIndex: props.zIndex
59
+ };
60
+ });
61
+ const update = () => {
62
+ if (!scrollContainer.value)
63
+ return;
64
+ scrollTop.value = scrollContainer.value instanceof Window ? document.documentElement.scrollTop : scrollContainer.value.scrollTop || 0;
65
+ if (props.position === "top") {
66
+ if (props.target) {
67
+ const difference = targetRect.bottom.value - props.offset - rootHeight.value;
68
+ fixed.value = props.offset > rootTop.value && targetRect.bottom.value > 0;
69
+ transform.value = difference < 0 ? difference : 0;
70
+ } else {
71
+ fixed.value = props.offset > rootTop.value;
72
+ }
73
+ } else if (props.target) {
74
+ const difference = windowHeight.value - targetRect.top.value - props.offset - rootHeight.value;
75
+ fixed.value = windowHeight.value - props.offset < rootBottom.value && windowHeight.value > targetRect.top.value;
76
+ transform.value = difference < 0 ? -difference : 0;
77
+ } else {
78
+ fixed.value = windowHeight.value - props.offset < rootBottom.value;
79
+ }
80
+ };
81
+ const handleScroll = () => {
82
+ updateRoot();
83
+ emit("scroll", {
84
+ scrollTop: scrollTop.value,
85
+ fixed: fixed.value
86
+ });
87
+ };
88
+ vue.watch(fixed, (val) => emit("change", val));
89
+ vue.onMounted(() => {
90
+ var _a;
91
+ if (props.target) {
92
+ target.value = (_a = document.querySelector(props.target)) != null ? _a : void 0;
93
+ if (!target.value)
94
+ error.throwError(COMPONENT_NAME, `Target does not exist: ${props.target}`);
95
+ } else {
96
+ target.value = document.documentElement;
97
+ }
98
+ scrollContainer.value = scroll.getScrollContainer(root.value, true);
99
+ updateRoot();
100
+ });
101
+ core.useEventListener(scrollContainer, "scroll", handleScroll);
102
+ vue.watchEffect(update);
103
+ expose({
104
+ update,
105
+ updateRoot
106
+ });
107
+ return (_ctx, _cache) => {
108
+ return vue.openBlock(), vue.createElementBlock("div", {
109
+ ref_key: "root",
110
+ ref: root,
111
+ class: vue.normalizeClass(vue.unref(ns).b()),
112
+ style: vue.normalizeStyle(vue.unref(rootStyle))
113
+ }, [
114
+ vue.createElementVNode("div", {
115
+ class: vue.normalizeClass({ [vue.unref(ns).m("fixed")]: fixed.value }),
116
+ style: vue.normalizeStyle(vue.unref(affixStyle))
117
+ }, [
118
+ vue.renderSlot(_ctx.$slots, "default")
119
+ ], 6)
120
+ ], 6);
121
+ };
28
122
  }
29
123
  });
30
- const affixEmits = {
31
- scroll: ({ scrollTop, fixed }) => types.isNumber(scrollTop) && types.isBoolean(fixed),
32
- [event.CHANGE_EVENT]: (fixed) => types.isBoolean(fixed)
33
- };
124
+ var Affix = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "affix.vue"]]);
34
125
 
35
- exports.affixEmits = affixEmits;
36
- exports.affixProps = affixProps;
126
+ exports["default"] = Affix;
37
127
  //# sourceMappingURL=affix.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"affix.js","sources":["../../../../../../packages/components/affix/src/affix.ts"],"sourcesContent":["import {\n buildProps,\n definePropType,\n isBoolean,\n isNumber,\n} from '@element-plus/utils'\nimport { CHANGE_EVENT } from '@element-plus/constants'\nimport type { ExtractPropTypes } from 'vue'\nimport type { ZIndexProperty } from 'csstype'\nimport type Affix from './affix.vue'\n\nexport const affixProps = buildProps({\n /**\n * @description affix element zIndex value\n * */\n zIndex: {\n type: definePropType<ZIndexProperty>([Number, String]),\n default: 100,\n },\n /**\n * @description target container. (CSS selector)\n */\n target: {\n type: String,\n default: '',\n },\n /**\n * @description offset distance\n * */\n offset: {\n type: Number,\n default: 0,\n },\n /**\n * @description position of affix\n * */\n position: {\n type: String,\n values: ['top', 'bottom'],\n default: 'top',\n },\n} as const)\nexport type AffixProps = ExtractPropTypes<typeof affixProps>\n\nexport const affixEmits = {\n scroll: ({ scrollTop, fixed }: { scrollTop: number; fixed: boolean }) =>\n isNumber(scrollTop) && isBoolean(fixed),\n [CHANGE_EVENT]: (fixed: boolean) => isBoolean(fixed),\n}\nexport type AffixEmits = typeof affixEmits\n\nexport type AffixInstance = InstanceType<typeof Affix>\n"],"names":["buildProps","definePropType","isNumber","isBoolean","CHANGE_EVENT"],"mappings":";;;;;;;;;;AAOY,MAAC,UAAU,GAAGA,kBAAU,CAAC;AACrC,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAEC,sBAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC;AAC7B,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,UAAU,GAAG;AAC1B,EAAE,MAAM,EAAE,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,KAAKC,cAAQ,CAAC,SAAS,CAAC,IAAIC,eAAS,CAAC,KAAK,CAAC;AAC3E,EAAE,CAACC,kBAAY,GAAG,CAAC,KAAK,KAAKD,eAAS,CAAC,KAAK,CAAC;AAC7C;;;;;"}
1
+ {"version":3,"file":"affix.js","sources":["../../../../../../packages/components/affix/src/affix.vue"],"sourcesContent":["<template>\n <div ref=\"root\" :class=\"ns.b()\" :style=\"rootStyle\">\n <div :class=\"{ [ns.m('fixed')]: fixed }\" :style=\"affixStyle\">\n <slot />\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, onMounted, ref, shallowRef, watch, watchEffect } from 'vue'\nimport {\n useElementBounding,\n useEventListener,\n useWindowSize,\n} from '@vueuse/core'\nimport { addUnit, getScrollContainer, throwError } from '@element-plus/utils'\nimport { useNamespace } from '@element-plus/hooks'\nimport { affixEmits, affixProps } from './affix'\nimport type { CSSProperties } from 'vue'\n\nconst COMPONENT_NAME = 'ElAffix'\ndefineOptions({\n name: COMPONENT_NAME,\n})\n\nconst props = defineProps(affixProps)\nconst emit = defineEmits(affixEmits)\n\nconst ns = useNamespace('affix')\n\nconst target = shallowRef<HTMLElement>()\nconst root = shallowRef<HTMLDivElement>()\nconst scrollContainer = shallowRef<HTMLElement | Window>()\nconst { height: windowHeight } = useWindowSize()\nconst {\n height: rootHeight,\n width: rootWidth,\n top: rootTop,\n bottom: rootBottom,\n update: updateRoot,\n} = useElementBounding(root, { windowScroll: false })\nconst targetRect = useElementBounding(target)\n\nconst fixed = ref(false)\nconst scrollTop = ref(0)\nconst transform = ref(0)\n\nconst rootStyle = computed<CSSProperties>(() => {\n return {\n height: fixed.value ? `${rootHeight.value}px` : '',\n width: fixed.value ? `${rootWidth.value}px` : '',\n }\n})\n\nconst affixStyle = computed<CSSProperties>(() => {\n if (!fixed.value) return {}\n\n const offset = props.offset ? addUnit(props.offset) : 0\n return {\n height: `${rootHeight.value}px`,\n width: `${rootWidth.value}px`,\n top: props.position === 'top' ? offset : '',\n bottom: props.position === 'bottom' ? offset : '',\n transform: transform.value ? `translateY(${transform.value}px)` : '',\n zIndex: props.zIndex,\n }\n})\n\nconst update = () => {\n if (!scrollContainer.value) return\n\n scrollTop.value =\n scrollContainer.value instanceof Window\n ? document.documentElement.scrollTop\n : scrollContainer.value.scrollTop || 0\n\n if (props.position === 'top') {\n if (props.target) {\n const difference =\n targetRect.bottom.value - props.offset - rootHeight.value\n fixed.value = props.offset > rootTop.value && targetRect.bottom.value > 0\n transform.value = difference < 0 ? difference : 0\n } else {\n fixed.value = props.offset > rootTop.value\n }\n } else if (props.target) {\n const difference =\n windowHeight.value -\n targetRect.top.value -\n props.offset -\n rootHeight.value\n fixed.value =\n windowHeight.value - props.offset < rootBottom.value &&\n windowHeight.value > targetRect.top.value\n transform.value = difference < 0 ? -difference : 0\n } else {\n fixed.value = windowHeight.value - props.offset < rootBottom.value\n }\n}\n\nconst handleScroll = () => {\n updateRoot()\n emit('scroll', {\n scrollTop: scrollTop.value,\n fixed: fixed.value,\n })\n}\n\nwatch(fixed, (val) => emit('change', val))\n\nonMounted(() => {\n if (props.target) {\n target.value =\n document.querySelector<HTMLElement>(props.target) ?? undefined\n if (!target.value)\n throwError(COMPONENT_NAME, `Target does not exist: ${props.target}`)\n } else {\n target.value = document.documentElement\n }\n scrollContainer.value = getScrollContainer(root.value!, true)\n updateRoot()\n})\n\nuseEventListener(scrollContainer, 'scroll', handleScroll)\nwatchEffect(update)\n\ndefineExpose({\n /** @description update affix status */\n update,\n /** @description update rootRect info */\n updateRoot,\n})\n</script>\n"],"names":["useNamespace","shallowRef","useWindowSize","useElementBounding","ref","computed","addUnit","watch","onMounted","throwError","getScrollContainer","useEventListener","watchEffect"],"mappings":";;;;;;;;;;;;;;;;uCAqBc,CAAA;AAAA,EACZ,IAAM,EAAA,cAAA;AACR;;;;;;;AAKA,IAAM,MAAA,EAAA,GAAKA,mBAAa,OAAO,CAAA,CAAA;AAE/B,IAAA,MAAM,SAASC,cAAwB,EAAA,CAAA;AACvC,IAAA,MAAM,OAAOA,cAA2B,EAAA,CAAA;AACxC,IAAA,MAAM,kBAAkBA,cAAiC,EAAA,CAAA;AACzD,IAAM,MAAA,EAAE,MAAQ,EAAA,YAAA,EAAA,GAAiBC,kBAAc,EAAA,CAAA;AAC/C,IAAM,MAAA;AAAA,MACJ,MAAQ,EAAA,UAAA;AAAA,MACR,KAAO,EAAA,SAAA;AAAA,MACP,GAAK,EAAA,OAAA;AAAA,MACL,MAAQ,EAAA,UAAA;AAAA,MACR,MAAQ,EAAA,UAAA;AAAA,KAAA,GACNC,uBAAmB,CAAA,IAAA,EAAM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,MACD,UAAA;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -2,126 +2,36 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var vue = require('vue');
6
- var core = require('@vueuse/core');
7
5
  require('../../../utils/index.js');
8
- require('../../../hooks/index.js');
9
- var affix = require('./affix.js');
10
- var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
11
- var index = require('../../../hooks/use-namespace/index.js');
12
- var style = require('../../../utils/dom/style.js');
13
- var error = require('../../../utils/error.js');
14
- var scroll = require('../../../utils/dom/scroll.js');
6
+ require('../../../constants/index.js');
7
+ var runtime = require('../../../utils/vue/props/runtime.js');
8
+ var types = require('../../../utils/types.js');
9
+ var event = require('../../../constants/event.js');
15
10
 
16
- const COMPONENT_NAME = "ElAffix";
17
- const __default__ = vue.defineComponent({
18
- name: COMPONENT_NAME
19
- });
20
- const _sfc_main = /* @__PURE__ */ vue.defineComponent({
21
- ...__default__,
22
- props: affix.affixProps,
23
- emits: affix.affixEmits,
24
- setup(__props, { expose, emit }) {
25
- const props = __props;
26
- const ns = index.useNamespace("affix");
27
- const target = vue.shallowRef();
28
- const root = vue.shallowRef();
29
- const scrollContainer = vue.shallowRef();
30
- const { height: windowHeight } = core.useWindowSize();
31
- const {
32
- height: rootHeight,
33
- width: rootWidth,
34
- top: rootTop,
35
- bottom: rootBottom,
36
- update: updateRoot
37
- } = core.useElementBounding(root, { windowScroll: false });
38
- const targetRect = core.useElementBounding(target);
39
- const fixed = vue.ref(false);
40
- const scrollTop = vue.ref(0);
41
- const transform = vue.ref(0);
42
- const rootStyle = vue.computed(() => {
43
- return {
44
- height: fixed.value ? `${rootHeight.value}px` : "",
45
- width: fixed.value ? `${rootWidth.value}px` : ""
46
- };
47
- });
48
- const affixStyle = vue.computed(() => {
49
- if (!fixed.value)
50
- return {};
51
- const offset = props.offset ? style.addUnit(props.offset) : 0;
52
- return {
53
- height: `${rootHeight.value}px`,
54
- width: `${rootWidth.value}px`,
55
- top: props.position === "top" ? offset : "",
56
- bottom: props.position === "bottom" ? offset : "",
57
- transform: transform.value ? `translateY(${transform.value}px)` : "",
58
- zIndex: props.zIndex
59
- };
60
- });
61
- const update = () => {
62
- if (!scrollContainer.value)
63
- return;
64
- scrollTop.value = scrollContainer.value instanceof Window ? document.documentElement.scrollTop : scrollContainer.value.scrollTop || 0;
65
- if (props.position === "top") {
66
- if (props.target) {
67
- const difference = targetRect.bottom.value - props.offset - rootHeight.value;
68
- fixed.value = props.offset > rootTop.value && targetRect.bottom.value > 0;
69
- transform.value = difference < 0 ? difference : 0;
70
- } else {
71
- fixed.value = props.offset > rootTop.value;
72
- }
73
- } else if (props.target) {
74
- const difference = windowHeight.value - targetRect.top.value - props.offset - rootHeight.value;
75
- fixed.value = windowHeight.value - props.offset < rootBottom.value && windowHeight.value > targetRect.top.value;
76
- transform.value = difference < 0 ? -difference : 0;
77
- } else {
78
- fixed.value = windowHeight.value - props.offset < rootBottom.value;
79
- }
80
- };
81
- const handleScroll = () => {
82
- updateRoot();
83
- emit("scroll", {
84
- scrollTop: scrollTop.value,
85
- fixed: fixed.value
86
- });
87
- };
88
- vue.watch(fixed, (val) => emit("change", val));
89
- vue.onMounted(() => {
90
- var _a;
91
- if (props.target) {
92
- target.value = (_a = document.querySelector(props.target)) != null ? _a : void 0;
93
- if (!target.value)
94
- error.throwError(COMPONENT_NAME, `Target does not exist: ${props.target}`);
95
- } else {
96
- target.value = document.documentElement;
97
- }
98
- scrollContainer.value = scroll.getScrollContainer(root.value, true);
99
- updateRoot();
100
- });
101
- core.useEventListener(scrollContainer, "scroll", handleScroll);
102
- vue.watchEffect(update);
103
- expose({
104
- update,
105
- updateRoot
106
- });
107
- return (_ctx, _cache) => {
108
- return vue.openBlock(), vue.createElementBlock("div", {
109
- ref_key: "root",
110
- ref: root,
111
- class: vue.normalizeClass(vue.unref(ns).b()),
112
- style: vue.normalizeStyle(vue.unref(rootStyle))
113
- }, [
114
- vue.createElementVNode("div", {
115
- class: vue.normalizeClass({ [vue.unref(ns).m("fixed")]: fixed.value }),
116
- style: vue.normalizeStyle(vue.unref(affixStyle))
117
- }, [
118
- vue.renderSlot(_ctx.$slots, "default")
119
- ], 6)
120
- ], 6);
121
- };
11
+ const affixProps = runtime.buildProps({
12
+ zIndex: {
13
+ type: runtime.definePropType([Number, String]),
14
+ default: 100
15
+ },
16
+ target: {
17
+ type: String,
18
+ default: ""
19
+ },
20
+ offset: {
21
+ type: Number,
22
+ default: 0
23
+ },
24
+ position: {
25
+ type: String,
26
+ values: ["top", "bottom"],
27
+ default: "top"
122
28
  }
123
29
  });
124
- var Affix = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "affix.vue"]]);
30
+ const affixEmits = {
31
+ scroll: ({ scrollTop, fixed }) => types.isNumber(scrollTop) && types.isBoolean(fixed),
32
+ [event.CHANGE_EVENT]: (fixed) => types.isBoolean(fixed)
33
+ };
125
34
 
126
- exports["default"] = Affix;
35
+ exports.affixEmits = affixEmits;
36
+ exports.affixProps = affixProps;
127
37
  //# sourceMappingURL=affix2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"affix2.js","sources":["../../../../../../packages/components/affix/src/affix.vue"],"sourcesContent":["<template>\n <div ref=\"root\" :class=\"ns.b()\" :style=\"rootStyle\">\n <div :class=\"{ [ns.m('fixed')]: fixed }\" :style=\"affixStyle\">\n <slot />\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, onMounted, ref, shallowRef, watch, watchEffect } from 'vue'\nimport {\n useElementBounding,\n useEventListener,\n useWindowSize,\n} from '@vueuse/core'\nimport { addUnit, getScrollContainer, throwError } from '@element-plus/utils'\nimport { useNamespace } from '@element-plus/hooks'\nimport { affixEmits, affixProps } from './affix'\nimport type { CSSProperties } from 'vue'\n\nconst COMPONENT_NAME = 'ElAffix'\ndefineOptions({\n name: COMPONENT_NAME,\n})\n\nconst props = defineProps(affixProps)\nconst emit = defineEmits(affixEmits)\n\nconst ns = useNamespace('affix')\n\nconst target = shallowRef<HTMLElement>()\nconst root = shallowRef<HTMLDivElement>()\nconst scrollContainer = shallowRef<HTMLElement | Window>()\nconst { height: windowHeight } = useWindowSize()\nconst {\n height: rootHeight,\n width: rootWidth,\n top: rootTop,\n bottom: rootBottom,\n update: updateRoot,\n} = useElementBounding(root, { windowScroll: false })\nconst targetRect = useElementBounding(target)\n\nconst fixed = ref(false)\nconst scrollTop = ref(0)\nconst transform = ref(0)\n\nconst rootStyle = computed<CSSProperties>(() => {\n return {\n height: fixed.value ? `${rootHeight.value}px` : '',\n width: fixed.value ? `${rootWidth.value}px` : '',\n }\n})\n\nconst affixStyle = computed<CSSProperties>(() => {\n if (!fixed.value) return {}\n\n const offset = props.offset ? addUnit(props.offset) : 0\n return {\n height: `${rootHeight.value}px`,\n width: `${rootWidth.value}px`,\n top: props.position === 'top' ? offset : '',\n bottom: props.position === 'bottom' ? offset : '',\n transform: transform.value ? `translateY(${transform.value}px)` : '',\n zIndex: props.zIndex,\n }\n})\n\nconst update = () => {\n if (!scrollContainer.value) return\n\n scrollTop.value =\n scrollContainer.value instanceof Window\n ? document.documentElement.scrollTop\n : scrollContainer.value.scrollTop || 0\n\n if (props.position === 'top') {\n if (props.target) {\n const difference =\n targetRect.bottom.value - props.offset - rootHeight.value\n fixed.value = props.offset > rootTop.value && targetRect.bottom.value > 0\n transform.value = difference < 0 ? difference : 0\n } else {\n fixed.value = props.offset > rootTop.value\n }\n } else if (props.target) {\n const difference =\n windowHeight.value -\n targetRect.top.value -\n props.offset -\n rootHeight.value\n fixed.value =\n windowHeight.value - props.offset < rootBottom.value &&\n windowHeight.value > targetRect.top.value\n transform.value = difference < 0 ? -difference : 0\n } else {\n fixed.value = windowHeight.value - props.offset < rootBottom.value\n }\n}\n\nconst handleScroll = () => {\n updateRoot()\n emit('scroll', {\n scrollTop: scrollTop.value,\n fixed: fixed.value,\n })\n}\n\nwatch(fixed, (val) => emit('change', val))\n\nonMounted(() => {\n if (props.target) {\n target.value =\n document.querySelector<HTMLElement>(props.target) ?? undefined\n if (!target.value)\n throwError(COMPONENT_NAME, `Target does not exist: ${props.target}`)\n } else {\n target.value = document.documentElement\n }\n scrollContainer.value = getScrollContainer(root.value!, true)\n updateRoot()\n})\n\nuseEventListener(scrollContainer, 'scroll', handleScroll)\nwatchEffect(update)\n\ndefineExpose({\n /** @description update affix status */\n update,\n /** @description update rootRect info */\n updateRoot,\n})\n</script>\n"],"names":["useNamespace","shallowRef","useWindowSize","useElementBounding","ref","computed","addUnit","watch","onMounted","throwError","getScrollContainer","useEventListener","watchEffect"],"mappings":";;;;;;;;;;;;;;;;uCAqBc,CAAA;AAAA,EACZ,IAAM,EAAA,cAAA;AACR;;;;;;;AAKA,IAAM,MAAA,EAAA,GAAKA,mBAAa,OAAO,CAAA,CAAA;AAE/B,IAAA,MAAM,SAASC,cAAwB,EAAA,CAAA;AACvC,IAAA,MAAM,OAAOA,cAA2B,EAAA,CAAA;AACxC,IAAA,MAAM,kBAAkBA,cAAiC,EAAA,CAAA;AACzD,IAAM,MAAA,EAAE,MAAQ,EAAA,YAAA,EAAA,GAAiBC,kBAAc,EAAA,CAAA;AAC/C,IAAM,MAAA;AAAA,MACJ,MAAQ,EAAA,UAAA;AAAA,MACR,KAAO,EAAA,SAAA;AAAA,MACP,GAAK,EAAA,OAAA;AAAA,MACL,MAAQ,EAAA,UAAA;AAAA,MACR,MAAQ,EAAA,UAAA;AAAA,KAAA,GACNC,uBAAmB,CAAA,IAAA,EAAM,EAAE,YAAA,EAAc,OAAO,CAAA,CAAA;AACpD,IAAM,MAAA,UAAA,GAAaA,wBAAmB,MAAM,CAAA,CAAA;AAE5C,IAAM,MAAA,KAAA,GAAQC,QAAI,KAAK,CAAA,CAAA;AACvB,IAAM,MAAA,SAAA,GAAYA,QAAI,CAAC,CAAA,CAAA;AACvB,IAAM,MAAA,SAAA,GAAYA,QAAI,CAAC,CAAA,CAAA;AAEvB,IAAM,MAAA,SAAA,GAAYC,a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AO,KAAM,CAAA,KAAA;AAAA,OACd,CAAA,CAAA;AAAA,KACH,CAAA;AAEA,IAAAC,SAAA,CAAM,OAAO,CAAC,GAAA,KAAQ,IAAK,CAAA,QAAA,EAAU,GAAG,CAAC,CAAA,CAAA;AAEzC,IAAAC,aAAA,CAAU,MAAM;AACd,MAAA,IAAI;AACF,MAAA,IAAA,KAAO,CACL,MAAA,EAAA;AACF,QAAA,MAAY,CAAA,KAAA,GAAA,CAAA,EAAA,GAAA,QAAA,CAAA,aAAA,CAAA,KAAA,CAAA,MAAA,CAAA,KAAA,IAAA,GAAA,EAAA,GAAA,KAAA,CAAA,CAAA;AACV,QAAW,IAAA,CAAA,MAAA,CAAA,KAAA;AAAwD,UAChEC,gBAAA,CAAA,cAAA,EAAA,CAAA,uBAAA,EAAA,KAAA,CAAA,MAAA,CAAA,CAAA,CAAA,CAAA;AACL,OAAA,MAAA;AAAwB,QAC1B,MAAA,CAAA,KAAA,GAAA,QAAA,CAAA,eAAA,CAAA;AACA,OAAA;AACA,MAAW,eAAA,CAAA,KAAA,GAAAC,yBAAA,CAAA,IAAA,CAAA,KAAA,EAAA,IAAA,CAAA,CAAA;AAAA,MACZ,UAAA,EAAA,CAAA;AAED,KAAiB,CAAA,CAAA;AACjB,IAAAC,qBAAkB,CAAA,eAAA,EAAA,QAAA,EAAA,YAAA,CAAA,CAAA;AAElB,IAAaC,eAAA,CAAA,MAAA,CAAA,CAAA;AAAA,IAEX,MAAA,CAAA;AAAA,MAEA,MAAA;AAAA,MACD,UAAA;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"affix2.js","sources":["../../../../../../packages/components/affix/src/affix.ts"],"sourcesContent":["import {\n buildProps,\n definePropType,\n isBoolean,\n isNumber,\n} from '@element-plus/utils'\nimport { CHANGE_EVENT } from '@element-plus/constants'\nimport type { ExtractPropTypes } from 'vue'\nimport type { ZIndexProperty } from 'csstype'\nimport type Affix from './affix.vue'\n\nexport const affixProps = buildProps({\n /**\n * @description affix element zIndex value\n * */\n zIndex: {\n type: definePropType<ZIndexProperty>([Number, String]),\n default: 100,\n },\n /**\n * @description target container. (CSS selector)\n */\n target: {\n type: String,\n default: '',\n },\n /**\n * @description offset distance\n * */\n offset: {\n type: Number,\n default: 0,\n },\n /**\n * @description position of affix\n * */\n position: {\n type: String,\n values: ['top', 'bottom'],\n default: 'top',\n },\n} as const)\nexport type AffixProps = ExtractPropTypes<typeof affixProps>\n\nexport const affixEmits = {\n scroll: ({ scrollTop, fixed }: { scrollTop: number; fixed: boolean }) =>\n isNumber(scrollTop) && isBoolean(fixed),\n [CHANGE_EVENT]: (fixed: boolean) => isBoolean(fixed),\n}\nexport type AffixEmits = typeof affixEmits\n\nexport type AffixInstance = InstanceType<typeof Affix>\n"],"names":["buildProps","definePropType","isNumber","isBoolean","CHANGE_EVENT"],"mappings":";;;;;;;;;;AAOY,MAAC,UAAU,GAAGA,kBAAU,CAAC;AACrC,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAEC,sBAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC;AAC7B,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,UAAU,GAAG;AAC1B,EAAE,MAAM,EAAE,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,KAAKC,cAAQ,CAAC,SAAS,CAAC,IAAIC,eAAS,CAAC,KAAK,CAAC;AAC3E,EAAE,CAACC,kBAAY,GAAG,CAAC,KAAK,KAAKD,eAAS,CAAC,KAAK,CAAC;AAC7C;;;;;"}
@@ -46,6 +46,7 @@ declare const _Cascader: SFCWithInstall<import("vue").DefineComponent<{
46
46
  __epPropKey: true;
47
47
  };
48
48
  validateEvent: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
49
+ persistent: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
49
50
  modelValue: {
50
51
  readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => import("../cascader-panel/src/node").CascaderValue & {}) | (() => import("../cascader-panel/src/node").CascaderValue) | ((new (...args: any[]) => import("../cascader-panel/src/node").CascaderValue & {}) | (() => import("../cascader-panel/src/node").CascaderValue))[], unknown, unknown>>;
51
52
  readonly required: false;
@@ -104,6 +105,7 @@ declare const _Cascader: SFCWithInstall<import("vue").DefineComponent<{
104
105
  __epPropKey: true;
105
106
  };
106
107
  validateEvent: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
108
+ persistent: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
107
109
  modelValue: {
108
110
  readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => import("../cascader-panel/src/node").CascaderValue & {}) | (() => import("../cascader-panel/src/node").CascaderValue) | ((new (...args: any[]) => import("../cascader-panel/src/node").CascaderValue & {}) | (() => import("../cascader-panel/src/node").CascaderValue))[], unknown, unknown>>;
109
111
  readonly required: false;
@@ -13617,6 +13619,7 @@ declare const _Cascader: SFCWithInstall<import("vue").DefineComponent<{
13617
13619
  __epPropKey: true;
13618
13620
  };
13619
13621
  validateEvent: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
13622
+ persistent: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
13620
13623
  modelValue: {
13621
13624
  readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => import("../cascader-panel/src/node").CascaderValue & {}) | (() => import("../cascader-panel/src/node").CascaderValue) | ((new (...args: any[]) => import("../cascader-panel/src/node").CascaderValue & {}) | (() => import("../cascader-panel/src/node").CascaderValue))[], unknown, unknown>>;
13622
13625
  readonly required: false;
@@ -13639,6 +13642,7 @@ declare const _Cascader: SFCWithInstall<import("vue").DefineComponent<{
13639
13642
  debounce: number;
13640
13643
  popperClass: string;
13641
13644
  teleported: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
13645
+ persistent: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
13642
13646
  disabled: boolean;
13643
13647
  clearable: boolean;
13644
13648
  validateEvent: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
@@ -13702,6 +13706,7 @@ export declare const ElCascader: SFCWithInstall<import("vue").DefineComponent<{
13702
13706
  __epPropKey: true;
13703
13707
  };
13704
13708
  validateEvent: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
13709
+ persistent: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
13705
13710
  modelValue: {
13706
13711
  readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => import("../cascader-panel/src/node").CascaderValue & {}) | (() => import("../cascader-panel/src/node").CascaderValue) | ((new (...args: any[]) => import("../cascader-panel/src/node").CascaderValue & {}) | (() => import("../cascader-panel/src/node").CascaderValue))[], unknown, unknown>>;
13707
13712
  readonly required: false;
@@ -13760,6 +13765,7 @@ export declare const ElCascader: SFCWithInstall<import("vue").DefineComponent<{
13760
13765
  __epPropKey: true;
13761
13766
  };
13762
13767
  validateEvent: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
13768
+ persistent: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
13763
13769
  modelValue: {
13764
13770
  readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => import("../cascader-panel/src/node").CascaderValue & {}) | (() => import("../cascader-panel/src/node").CascaderValue) | ((new (...args: any[]) => import("../cascader-panel/src/node").CascaderValue & {}) | (() => import("../cascader-panel/src/node").CascaderValue))[], unknown, unknown>>;
13765
13771
  readonly required: false;
@@ -27273,6 +27279,7 @@ export declare const ElCascader: SFCWithInstall<import("vue").DefineComponent<{
27273
27279
  __epPropKey: true;
27274
27280
  };
27275
27281
  validateEvent: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
27282
+ persistent: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
27276
27283
  modelValue: {
27277
27284
  readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => import("../cascader-panel/src/node").CascaderValue & {}) | (() => import("../cascader-panel/src/node").CascaderValue) | ((new (...args: any[]) => import("../cascader-panel/src/node").CascaderValue & {}) | (() => import("../cascader-panel/src/node").CascaderValue))[], unknown, unknown>>;
27278
27285
  readonly required: false;
@@ -27295,6 +27302,7 @@ export declare const ElCascader: SFCWithInstall<import("vue").DefineComponent<{
27295
27302
  debounce: number;
27296
27303
  popperClass: string;
27297
27304
  teleported: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
27305
+ persistent: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
27298
27306
  disabled: boolean;
27299
27307
  clearable: boolean;
27300
27308
  validateEvent: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
@@ -46,6 +46,7 @@ export declare const cascaderProps: {
46
46
  __epPropKey: true;
47
47
  };
48
48
  validateEvent: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
49
+ persistent: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
49
50
  modelValue: {
50
51
  readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => import("../../cascader-panel/src/node").CascaderValue & {}) | (() => import("../../cascader-panel/src/node").CascaderValue) | ((new (...args: any[]) => import("../../cascader-panel/src/node").CascaderValue & {}) | (() => import("../../cascader-panel/src/node").CascaderValue))[], unknown, unknown>>;
51
52
  readonly required: false;
@@ -63,6 +63,10 @@ const cascaderProps = runtime.buildProps({
63
63
  type: Boolean,
64
64
  default: true
65
65
  },
66
+ persistent: {
67
+ type: Boolean,
68
+ default: true
69
+ },
66
70
  ...index$1.useEmptyValuesProps
67
71
  });
68
72
  const cascaderEmits = {
@@ -1 +1 @@
1
- {"version":3,"file":"cascader.js","sources":["../../../../../../packages/components/cascader/src/cascader.ts"],"sourcesContent":["import { CommonProps } from '@element-plus/components/cascader-panel'\nimport { buildProps, definePropType, isBoolean } from '@element-plus/utils'\nimport { useEmptyValuesProps, useSizeProp } from '@element-plus/hooks'\nimport { useTooltipContentProps } from '@element-plus/components/tooltip'\nimport { tagProps } from '@element-plus/components/tag'\nimport { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport type {\n CascaderNode,\n CascaderValue,\n} from '@element-plus/components/cascader-panel'\n\nexport const cascaderProps = buildProps({\n ...CommonProps,\n /**\n * @description size of input\n */\n size: useSizeProp,\n /**\n * @description placeholder of input\n */\n placeholder: String,\n /**\n * @description whether Cascader is disabled\n */\n disabled: Boolean,\n /**\n * @description whether selected value can be cleared\n */\n clearable: Boolean,\n /**\n * @description whether the options can be searched\n */\n filterable: Boolean,\n /**\n * @description customize search logic, the first parameter is `node`, the second is `keyword`, and need return a boolean value indicating whether it hits.\n */\n filterMethod: {\n type: definePropType<(node: CascaderNode, keyword: string) => boolean>(\n Function\n ),\n default: (node: CascaderNode, keyword: string) =>\n node.text.includes(keyword),\n },\n /**\n * @description option label separator\n */\n separator: {\n type: String,\n default: ' / ',\n },\n /**\n * @description whether to display all levels of the selected value in the input\n */\n showAllLevels: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether to collapse tags in multiple selection mode\n */\n collapseTags: Boolean,\n /**\n * @description The max tags number to be shown. To use this, collapse-tags must be true\n */\n maxCollapseTags: {\n type: Number,\n default: 1,\n },\n /**\n * @description native input id\n */\n collapseTagsTooltip: {\n type: Boolean,\n default: false,\n },\n /**\n * @description debounce delay when typing filter keyword, in milliseconds\n */\n debounce: {\n type: Number,\n default: 300,\n },\n /**\n * @description hook function before filtering with the value to be filtered as its parameter. If `false` is returned or a `Promise` is returned and then is rejected, filtering will be aborted\n */\n beforeFilter: {\n type: definePropType<(value: string) => boolean | Promise<any>>(Function),\n default: () => true,\n },\n /**\n * @description custom class name for Cascader's dropdown\n */\n popperClass: {\n type: String,\n default: '',\n },\n /**\n * @description whether cascader popup is teleported\n */\n teleported: useTooltipContentProps.teleported,\n /**\n * @description tag type\n */\n // eslint-disable-next-line vue/require-prop-types\n tagType: { ...tagProps.type, default: 'info' },\n /**\n * @description whether to trigger form validation\n */\n validateEvent: {\n type: Boolean,\n default: true,\n },\n ...useEmptyValuesProps,\n})\n\nexport const cascaderEmits = {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n [UPDATE_MODEL_EVENT]: (_: CascaderValue) => true,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n [CHANGE_EVENT]: (_: CascaderValue) => true,\n focus: (evt: FocusEvent) => evt instanceof FocusEvent,\n blur: (evt: FocusEvent) => evt instanceof FocusEvent,\n clear: () => true,\n visibleChange: (val: boolean) => isBoolean(val),\n expandChange: (val: CascaderValue) => !!val,\n removeTag: (val: CascaderNode['valueByOption']) => !!val,\n}\n\n// Type name is taken(cascader-panel/src/node), needs discussion\n// export type CascaderProps = ExtractPropTypes<typeof cascaderProps>\n\nexport type CascaderEmits = typeof cascaderEmits\n"],"names":["buildProps","CommonProps","useSizeProp","definePropType","useTooltipContentProps","tagProps","useEmptyValuesProps","UPDATE_MODEL_EVENT","CHANGE_EVENT","isBoolean"],"mappings":";;;;;;;;;;;;;;;;;;;AAMY,MAAC,aAAa,GAAGA,kBAAU,CAAC;AACxC,EAAE,GAAGC,kBAAW;AAChB,EAAE,IAAI,EAAEC,iBAAW;AACnB,EAAE,WAAW,EAAE,MAAM;AACrB,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,SAAS,EAAE,OAAO;AACpB,EAAE,UAAU,EAAE,OAAO;AACrB,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAEC,sBAAc,CAAC,QAAQ,CAAC;AAClC,IAAI,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC;AAC3D,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,YAAY,EAAE,OAAO;AACvB,EAAE,eAAe,EAAE;AACnB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,mBAAmB,EAAE;AACvB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAEA,sBAAc,CAAC,QAAQ,CAAC;AAClC,IAAI,OAAO,EAAE,MAAM,IAAI;AACvB,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,UAAU,EAAEC,8BAAsB,CAAC,UAAU;AAC/C,EAAE,OAAO,EAAE,EAAE,GAAGC,YAAQ,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE;AAChD,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,GAAGC,2BAAmB;AACxB,CAAC,EAAE;AACS,MAAC,aAAa,GAAG;AAC7B,EAAE,CAACC,wBAAkB,GAAG,CAAC,CAAC,KAAK,IAAI;AACnC,EAAE,CAACC,kBAAY,GAAG,CAAC,CAAC,KAAK,IAAI;AAC7B,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC3C,EAAE,IAAI,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC1C,EAAE,KAAK,EAAE,MAAM,IAAI;AACnB,EAAE,aAAa,EAAE,CAAC,GAAG,KAAKC,eAAS,CAAC,GAAG,CAAC;AACxC,EAAE,YAAY,EAAE,CAAC,GAAG,KAAK,CAAC,CAAC,GAAG;AAC9B,EAAE,SAAS,EAAE,CAAC,GAAG,KAAK,CAAC,CAAC,GAAG;AAC3B;;;;;"}
1
+ {"version":3,"file":"cascader.js","sources":["../../../../../../packages/components/cascader/src/cascader.ts"],"sourcesContent":["import { CommonProps } from '@element-plus/components/cascader-panel'\nimport { buildProps, definePropType, isBoolean } from '@element-plus/utils'\nimport { useEmptyValuesProps, useSizeProp } from '@element-plus/hooks'\nimport { useTooltipContentProps } from '@element-plus/components/tooltip'\nimport { tagProps } from '@element-plus/components/tag'\nimport { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport type {\n CascaderNode,\n CascaderValue,\n} from '@element-plus/components/cascader-panel'\n\nexport const cascaderProps = buildProps({\n ...CommonProps,\n /**\n * @description size of input\n */\n size: useSizeProp,\n /**\n * @description placeholder of input\n */\n placeholder: String,\n /**\n * @description whether Cascader is disabled\n */\n disabled: Boolean,\n /**\n * @description whether selected value can be cleared\n */\n clearable: Boolean,\n /**\n * @description whether the options can be searched\n */\n filterable: Boolean,\n /**\n * @description customize search logic, the first parameter is `node`, the second is `keyword`, and need return a boolean value indicating whether it hits.\n */\n filterMethod: {\n type: definePropType<(node: CascaderNode, keyword: string) => boolean>(\n Function\n ),\n default: (node: CascaderNode, keyword: string) =>\n node.text.includes(keyword),\n },\n /**\n * @description option label separator\n */\n separator: {\n type: String,\n default: ' / ',\n },\n /**\n * @description whether to display all levels of the selected value in the input\n */\n showAllLevels: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether to collapse tags in multiple selection mode\n */\n collapseTags: Boolean,\n /**\n * @description The max tags number to be shown. To use this, collapse-tags must be true\n */\n maxCollapseTags: {\n type: Number,\n default: 1,\n },\n /**\n * @description native input id\n */\n collapseTagsTooltip: {\n type: Boolean,\n default: false,\n },\n /**\n * @description debounce delay when typing filter keyword, in milliseconds\n */\n debounce: {\n type: Number,\n default: 300,\n },\n /**\n * @description hook function before filtering with the value to be filtered as its parameter. If `false` is returned or a `Promise` is returned and then is rejected, filtering will be aborted\n */\n beforeFilter: {\n type: definePropType<(value: string) => boolean | Promise<any>>(Function),\n default: () => true,\n },\n /**\n * @description custom class name for Cascader's dropdown\n */\n popperClass: {\n type: String,\n default: '',\n },\n /**\n * @description whether cascader popup is teleported\n */\n teleported: useTooltipContentProps.teleported,\n /**\n * @description tag type\n */\n // eslint-disable-next-line vue/require-prop-types\n tagType: { ...tagProps.type, default: 'info' },\n /**\n * @description whether to trigger form validation\n */\n validateEvent: {\n type: Boolean,\n default: true,\n },\n /**\n * @description when dropdown is inactive and `persistent` is `false`, dropdown will be destroyed\n */\n persistent: {\n type: Boolean,\n default: true,\n },\n ...useEmptyValuesProps,\n})\n\nexport const cascaderEmits = {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n [UPDATE_MODEL_EVENT]: (_: CascaderValue) => true,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n [CHANGE_EVENT]: (_: CascaderValue) => true,\n focus: (evt: FocusEvent) => evt instanceof FocusEvent,\n blur: (evt: FocusEvent) => evt instanceof FocusEvent,\n clear: () => true,\n visibleChange: (val: boolean) => isBoolean(val),\n expandChange: (val: CascaderValue) => !!val,\n removeTag: (val: CascaderNode['valueByOption']) => !!val,\n}\n\n// Type name is taken(cascader-panel/src/node), needs discussion\n// export type CascaderProps = ExtractPropTypes<typeof cascaderProps>\n\nexport type CascaderEmits = typeof cascaderEmits\n"],"names":["buildProps","CommonProps","useSizeProp","definePropType","useTooltipContentProps","tagProps","useEmptyValuesProps","UPDATE_MODEL_EVENT","CHANGE_EVENT","isBoolean"],"mappings":";;;;;;;;;;;;;;;;;;;AAMY,MAAC,aAAa,GAAGA,kBAAU,CAAC;AACxC,EAAE,GAAGC,kBAAW;AAChB,EAAE,IAAI,EAAEC,iBAAW;AACnB,EAAE,WAAW,EAAE,MAAM;AACrB,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,SAAS,EAAE,OAAO;AACpB,EAAE,UAAU,EAAE,OAAO;AACrB,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAEC,sBAAc,CAAC,QAAQ,CAAC;AAClC,IAAI,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC;AAC3D,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,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aAAa,EAAE,CAAC,GAAG,KAAKC,eAAS,CAAC,GAAG,CAAC;AACxC,EAAE,YAAY,EAAE,CAAC,GAAG,KAAK,CAAC,CAAC,GAAG;AAC9B,EAAE,SAAS,EAAE,CAAC,GAAG,KAAK,CAAC,CAAC,GAAG;AAC3B;;;;;"}
@@ -49,6 +49,7 @@ declare const _default: import("vue").DefineComponent<{
49
49
  __epPropKey: true;
50
50
  };
51
51
  validateEvent: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
52
+ persistent: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
52
53
  modelValue: {
53
54
  readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => import("../../cascader-panel/src/node").CascaderValue & {}) | (() => import("../../cascader-panel/src/node").CascaderValue) | ((new (...args: any[]) => import("../../cascader-panel/src/node").CascaderValue & {}) | (() => import("../../cascader-panel/src/node").CascaderValue))[], unknown, unknown>>;
54
55
  readonly required: false;
@@ -107,6 +108,7 @@ declare const _default: import("vue").DefineComponent<{
107
108
  __epPropKey: true;
108
109
  };
109
110
  validateEvent: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
111
+ persistent: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
110
112
  modelValue: {
111
113
  readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => import("../../cascader-panel/src/node").CascaderValue & {}) | (() => import("../../cascader-panel/src/node").CascaderValue) | ((new (...args: any[]) => import("../../cascader-panel/src/node").CascaderValue & {}) | (() => import("../../cascader-panel/src/node").CascaderValue))[], unknown, unknown>>;
112
114
  readonly required: false;
@@ -13620,6 +13622,7 @@ declare const _default: import("vue").DefineComponent<{
13620
13622
  __epPropKey: true;
13621
13623
  };
13622
13624
  validateEvent: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
13625
+ persistent: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
13623
13626
  modelValue: {
13624
13627
  readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => import("../../cascader-panel/src/node").CascaderValue & {}) | (() => import("../../cascader-panel/src/node").CascaderValue) | ((new (...args: any[]) => import("../../cascader-panel/src/node").CascaderValue & {}) | (() => import("../../cascader-panel/src/node").CascaderValue))[], unknown, unknown>>;
13625
13628
  readonly required: false;
@@ -13642,6 +13645,7 @@ declare const _default: import("vue").DefineComponent<{
13642
13645
  debounce: number;
13643
13646
  popperClass: string;
13644
13647
  teleported: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
13648
+ persistent: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
13645
13649
  disabled: boolean;
13646
13650
  clearable: boolean;
13647
13651
  validateEvent: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;