@element-plus/nightly 0.0.20261010 → 0.0.20261012

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 (719) hide show
  1. package/attributes.json +1 -1
  2. package/dist/index.css +1 -1
  3. package/dist/index.full.js +209 -39
  4. package/dist/index.full.min.js +8 -8
  5. package/dist/index.full.min.js.map +1 -1
  6. package/dist/index.full.min.mjs +9 -9
  7. package/dist/index.full.min.mjs.map +1 -1
  8. package/dist/index.full.mjs +209 -39
  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/gl.js +1 -1
  90. package/dist/locale/gl.min.js +1 -1
  91. package/dist/locale/gl.min.mjs +1 -1
  92. package/dist/locale/gl.mjs +1 -1
  93. package/dist/locale/he.js +1 -1
  94. package/dist/locale/he.min.js +1 -1
  95. package/dist/locale/he.min.mjs +1 -1
  96. package/dist/locale/he.mjs +1 -1
  97. package/dist/locale/hi.js +1 -1
  98. package/dist/locale/hi.min.js +1 -1
  99. package/dist/locale/hi.min.mjs +1 -1
  100. package/dist/locale/hi.mjs +1 -1
  101. package/dist/locale/hr.js +1 -1
  102. package/dist/locale/hr.min.js +1 -1
  103. package/dist/locale/hr.min.mjs +1 -1
  104. package/dist/locale/hr.mjs +1 -1
  105. package/dist/locale/hu.js +1 -1
  106. package/dist/locale/hu.min.js +1 -1
  107. package/dist/locale/hu.min.mjs +1 -1
  108. package/dist/locale/hu.mjs +1 -1
  109. package/dist/locale/hy-am.js +1 -1
  110. package/dist/locale/hy-am.min.js +1 -1
  111. package/dist/locale/hy-am.min.mjs +1 -1
  112. package/dist/locale/hy-am.mjs +1 -1
  113. package/dist/locale/id.js +1 -1
  114. package/dist/locale/id.min.js +1 -1
  115. package/dist/locale/id.min.mjs +1 -1
  116. package/dist/locale/id.mjs +1 -1
  117. package/dist/locale/it.js +1 -1
  118. package/dist/locale/it.min.js +1 -1
  119. package/dist/locale/it.min.mjs +1 -1
  120. package/dist/locale/it.mjs +1 -1
  121. package/dist/locale/ja.js +1 -1
  122. package/dist/locale/ja.min.js +1 -1
  123. package/dist/locale/ja.min.mjs +1 -1
  124. package/dist/locale/ja.mjs +1 -1
  125. package/dist/locale/kk.js +1 -1
  126. package/dist/locale/kk.min.js +1 -1
  127. package/dist/locale/kk.min.mjs +1 -1
  128. package/dist/locale/kk.mjs +1 -1
  129. package/dist/locale/km.js +1 -1
  130. package/dist/locale/km.min.js +1 -1
  131. package/dist/locale/km.min.mjs +1 -1
  132. package/dist/locale/km.mjs +1 -1
  133. package/dist/locale/ko.js +1 -1
  134. package/dist/locale/ko.min.js +1 -1
  135. package/dist/locale/ko.min.mjs +1 -1
  136. package/dist/locale/ko.mjs +1 -1
  137. package/dist/locale/ku.js +1 -1
  138. package/dist/locale/ku.min.js +1 -1
  139. package/dist/locale/ku.min.mjs +1 -1
  140. package/dist/locale/ku.mjs +1 -1
  141. package/dist/locale/ky.js +1 -1
  142. package/dist/locale/ky.min.js +1 -1
  143. package/dist/locale/ky.min.mjs +1 -1
  144. package/dist/locale/ky.mjs +1 -1
  145. package/dist/locale/lo.js +1 -1
  146. package/dist/locale/lo.min.js +1 -1
  147. package/dist/locale/lo.min.mjs +1 -1
  148. package/dist/locale/lo.mjs +1 -1
  149. package/dist/locale/lt.js +1 -1
  150. package/dist/locale/lt.min.js +1 -1
  151. package/dist/locale/lt.min.mjs +1 -1
  152. package/dist/locale/lt.mjs +1 -1
  153. package/dist/locale/lv.js +1 -1
  154. package/dist/locale/lv.min.js +1 -1
  155. package/dist/locale/lv.min.mjs +1 -1
  156. package/dist/locale/lv.mjs +1 -1
  157. package/dist/locale/mg.js +1 -1
  158. package/dist/locale/mg.min.js +1 -1
  159. package/dist/locale/mg.min.mjs +1 -1
  160. package/dist/locale/mg.mjs +1 -1
  161. package/dist/locale/mn.js +1 -1
  162. package/dist/locale/mn.min.js +1 -1
  163. package/dist/locale/mn.min.mjs +1 -1
  164. package/dist/locale/mn.mjs +1 -1
  165. package/dist/locale/ms.js +1 -1
  166. package/dist/locale/ms.min.js +1 -1
  167. package/dist/locale/ms.min.mjs +1 -1
  168. package/dist/locale/ms.mjs +1 -1
  169. package/dist/locale/my.js +1 -1
  170. package/dist/locale/my.min.js +1 -1
  171. package/dist/locale/my.min.mjs +1 -1
  172. package/dist/locale/my.mjs +1 -1
  173. package/dist/locale/nb-no.js +1 -1
  174. package/dist/locale/nb-no.min.js +1 -1
  175. package/dist/locale/nb-no.min.mjs +1 -1
  176. package/dist/locale/nb-no.mjs +1 -1
  177. package/dist/locale/nl.js +1 -1
  178. package/dist/locale/nl.min.js +1 -1
  179. package/dist/locale/nl.min.mjs +1 -1
  180. package/dist/locale/nl.mjs +1 -1
  181. package/dist/locale/no.js +1 -1
  182. package/dist/locale/no.min.js +1 -1
  183. package/dist/locale/no.min.mjs +1 -1
  184. package/dist/locale/no.mjs +1 -1
  185. package/dist/locale/pa.js +1 -1
  186. package/dist/locale/pa.min.js +1 -1
  187. package/dist/locale/pa.min.mjs +1 -1
  188. package/dist/locale/pa.mjs +1 -1
  189. package/dist/locale/pl.js +1 -1
  190. package/dist/locale/pl.min.js +1 -1
  191. package/dist/locale/pl.min.mjs +1 -1
  192. package/dist/locale/pl.mjs +1 -1
  193. package/dist/locale/pt-br.js +1 -1
  194. package/dist/locale/pt-br.min.js +1 -1
  195. package/dist/locale/pt-br.min.mjs +1 -1
  196. package/dist/locale/pt-br.mjs +1 -1
  197. package/dist/locale/pt.js +1 -1
  198. package/dist/locale/pt.min.js +1 -1
  199. package/dist/locale/pt.min.mjs +1 -1
  200. package/dist/locale/pt.mjs +1 -1
  201. package/dist/locale/ro.js +1 -1
  202. package/dist/locale/ro.min.js +1 -1
  203. package/dist/locale/ro.min.mjs +1 -1
  204. package/dist/locale/ro.mjs +1 -1
  205. package/dist/locale/ru.js +1 -1
  206. package/dist/locale/ru.min.js +1 -1
  207. package/dist/locale/ru.min.mjs +1 -1
  208. package/dist/locale/ru.mjs +1 -1
  209. package/dist/locale/sk.js +1 -1
  210. package/dist/locale/sk.min.js +1 -1
  211. package/dist/locale/sk.min.mjs +1 -1
  212. package/dist/locale/sk.mjs +1 -1
  213. package/dist/locale/sl.js +1 -1
  214. package/dist/locale/sl.min.js +1 -1
  215. package/dist/locale/sl.min.mjs +1 -1
  216. package/dist/locale/sl.mjs +1 -1
  217. package/dist/locale/sr.js +1 -1
  218. package/dist/locale/sr.min.js +1 -1
  219. package/dist/locale/sr.min.mjs +1 -1
  220. package/dist/locale/sr.mjs +1 -1
  221. package/dist/locale/sv.js +1 -1
  222. package/dist/locale/sv.min.js +1 -1
  223. package/dist/locale/sv.min.mjs +1 -1
  224. package/dist/locale/sv.mjs +1 -1
  225. package/dist/locale/sw.js +1 -1
  226. package/dist/locale/sw.min.js +1 -1
  227. package/dist/locale/sw.min.mjs +1 -1
  228. package/dist/locale/sw.mjs +1 -1
  229. package/dist/locale/ta.js +1 -1
  230. package/dist/locale/ta.min.js +1 -1
  231. package/dist/locale/ta.min.mjs +1 -1
  232. package/dist/locale/ta.mjs +1 -1
  233. package/dist/locale/te.js +1 -1
  234. package/dist/locale/te.min.js +1 -1
  235. package/dist/locale/te.min.mjs +1 -1
  236. package/dist/locale/te.mjs +1 -1
  237. package/dist/locale/th.js +1 -1
  238. package/dist/locale/th.min.js +1 -1
  239. package/dist/locale/th.min.mjs +1 -1
  240. package/dist/locale/th.mjs +1 -1
  241. package/dist/locale/tk.js +1 -1
  242. package/dist/locale/tk.min.js +1 -1
  243. package/dist/locale/tk.min.mjs +1 -1
  244. package/dist/locale/tk.mjs +1 -1
  245. package/dist/locale/tr.js +1 -1
  246. package/dist/locale/tr.min.js +1 -1
  247. package/dist/locale/tr.min.mjs +1 -1
  248. package/dist/locale/tr.mjs +1 -1
  249. package/dist/locale/ug-cn.js +1 -1
  250. package/dist/locale/ug-cn.min.js +1 -1
  251. package/dist/locale/ug-cn.min.mjs +1 -1
  252. package/dist/locale/ug-cn.mjs +1 -1
  253. package/dist/locale/uk.js +1 -1
  254. package/dist/locale/uk.min.js +1 -1
  255. package/dist/locale/uk.min.mjs +1 -1
  256. package/dist/locale/uk.mjs +1 -1
  257. package/dist/locale/uz-uz.js +1 -1
  258. package/dist/locale/uz-uz.min.js +1 -1
  259. package/dist/locale/uz-uz.min.mjs +1 -1
  260. package/dist/locale/uz-uz.mjs +1 -1
  261. package/dist/locale/vi.js +1 -1
  262. package/dist/locale/vi.min.js +1 -1
  263. package/dist/locale/vi.min.mjs +1 -1
  264. package/dist/locale/vi.mjs +1 -1
  265. package/dist/locale/zh-cn.js +1 -1
  266. package/dist/locale/zh-cn.min.js +1 -1
  267. package/dist/locale/zh-cn.min.mjs +1 -1
  268. package/dist/locale/zh-cn.mjs +1 -1
  269. package/dist/locale/zh-hk.js +1 -1
  270. package/dist/locale/zh-hk.min.js +1 -1
  271. package/dist/locale/zh-hk.min.mjs +1 -1
  272. package/dist/locale/zh-hk.mjs +1 -1
  273. package/dist/locale/zh-mo.js +1 -1
  274. package/dist/locale/zh-mo.min.js +1 -1
  275. package/dist/locale/zh-mo.min.mjs +1 -1
  276. package/dist/locale/zh-mo.mjs +1 -1
  277. package/dist/locale/zh-tw.js +1 -1
  278. package/dist/locale/zh-tw.min.js +1 -1
  279. package/dist/locale/zh-tw.min.mjs +1 -1
  280. package/dist/locale/zh-tw.mjs +1 -1
  281. package/es/component.mjs +3 -3
  282. package/es/components/affix/src/affix.d.ts +1 -1
  283. package/es/components/affix/src/affix.vue.d.ts +3 -3
  284. package/es/components/alert/src/alert.d.ts +2 -2
  285. package/es/components/alert/src/alert.vue.d.ts +2 -2
  286. package/es/components/anchor/src/anchor.vue.d.ts +1 -1
  287. package/es/components/autocomplete/src/autocomplete.d.ts +2 -2
  288. package/es/components/autocomplete/src/autocomplete.vue.d.ts +3 -3
  289. package/es/components/avatar/src/avatar-group.d.ts +1 -1
  290. package/es/components/avatar/src/avatar.d.ts +1 -1
  291. package/es/components/backtop/src/backtop.vue.d.ts +1 -1
  292. package/es/components/badge/src/badge.d.ts +1 -1
  293. package/es/components/badge/src/badge.vue.d.ts +1 -1
  294. package/es/components/button/src/button-group.d.ts +1 -1
  295. package/es/components/button/src/button-group.vue.d.ts +1 -1
  296. package/es/components/button/src/button.d.ts +1 -1
  297. package/es/components/button/src/button.vue.d.ts +3 -3
  298. package/es/components/button/src/use-button.d.ts +1 -1
  299. package/es/components/card/src/card.vue.d.ts +3 -3
  300. package/es/components/carousel/src/carousel.d.ts +1 -1
  301. package/es/components/carousel/src/carousel.vue.d.ts +3 -3
  302. package/es/components/cascader/src/cascader.d.ts +3 -3
  303. package/es/components/cascader/src/cascader.vue.d.ts +15 -15
  304. package/es/components/cascader/src/cascader.vue_vue_type_script_setup_true_lang.mjs +2 -2
  305. package/es/components/cascader-panel/src/index.vue.d.ts +1 -1
  306. package/es/components/cascader-panel/src/index.vue_vue_type_script_setup_true_lang.mjs +1 -1
  307. package/es/components/cascader-panel/src/menu.vue.d.ts +1 -1
  308. package/es/components/check-tag/src/check-tag.d.ts +1 -1
  309. package/es/components/check-tag/src/check-tag.vue.d.ts +1 -1
  310. package/es/components/checkbox/src/checkbox-button.vue.d.ts +3 -3
  311. package/es/components/checkbox/src/checkbox-group.vue.d.ts +3 -3
  312. package/es/components/checkbox/src/checkbox.d.ts +2 -2
  313. package/es/components/checkbox/src/checkbox.vue.d.ts +3 -3
  314. package/es/components/col/src/col.vue.d.ts +2 -2
  315. package/es/components/collapse/src/collapse.d.ts +1 -1
  316. package/es/components/color-picker/src/color-picker.vue.d.ts +10 -10
  317. package/es/components/color-picker/src/color-picker.vue_vue_type_script_setup_true_lang.mjs +1 -1
  318. package/es/components/color-picker-panel/src/color-picker-panel.vue.d.ts +1 -1
  319. package/es/components/config-provider/src/config-provider.d.ts +2 -2
  320. package/es/components/countdown/src/countdown.vue_vue_type_script_setup_true_lang.mjs +1 -1
  321. package/es/components/date-picker/src/date-picker.d.ts +16 -16
  322. package/es/components/date-picker/src/props.d.ts +3 -3
  323. package/es/components/date-picker-panel/src/composables/use-basic-date-table.d.ts +1 -1
  324. package/es/components/date-picker-panel/src/date-picker-com/panel-date-pick.vue.d.ts +3 -3
  325. package/es/components/date-picker-panel/src/date-picker-com/panel-date-pick.vue_vue_type_script_setup_true_lang.mjs +1 -1
  326. package/es/components/date-picker-panel/src/date-picker-com/panel-date-range.vue.d.ts +2 -2
  327. package/es/components/date-picker-panel/src/date-picker-com/panel-date-range.vue_vue_type_script_setup_true_lang.mjs +1 -1
  328. package/es/components/date-picker-panel/src/date-picker-panel.d.ts +7 -7
  329. package/es/components/date-picker-panel/src/panel-utils.d.ts +9 -9
  330. package/es/components/date-picker-panel/src/props/date-picker-panel.d.ts +2 -2
  331. package/es/components/date-picker-panel/src/props/panel-date-pick.d.ts +1 -1
  332. package/es/components/date-picker-panel/src/props/panel-date-range.d.ts +1 -1
  333. package/es/components/date-picker-panel/src/props/shared.d.ts +1 -1
  334. package/es/components/descriptions/src/description-item.d.ts +9 -9
  335. package/es/components/dialog/src/dialog-content.vue.d.ts +2 -2
  336. package/es/components/dialog/src/dialog.vue.d.ts +7 -7
  337. package/es/components/divider/src/divider.d.ts +1 -1
  338. package/es/components/divider/src/divider.vue.d.ts +2 -2
  339. package/es/components/drawer/src/drawer.vue.d.ts +8 -8
  340. package/es/components/dropdown/src/dropdown-item-impl.vue.d.ts +1 -1
  341. package/es/components/dropdown/src/dropdown-item.vue.d.ts +2 -2
  342. package/es/components/dropdown/src/dropdown-menu.vue.d.ts +1 -1
  343. package/es/components/dropdown/src/dropdown.d.ts +4 -4
  344. package/es/components/dropdown/src/dropdown.vue.d.ts +68 -65
  345. package/es/components/form/src/form-item.d.ts +2 -2
  346. package/es/components/form/src/form-item.vue.d.ts +2 -2
  347. package/es/components/form/src/form.d.ts +2 -2
  348. package/es/components/form/src/form.vue.d.ts +2 -2
  349. package/es/components/image/src/image.vue.d.ts +6 -6
  350. package/es/components/image-viewer/src/image-viewer.vue.d.ts +3 -3
  351. package/es/components/index.mjs +6 -6
  352. package/es/components/input/src/input.d.ts +1 -1
  353. package/es/components/input/src/input.vue.d.ts +7 -7
  354. package/es/components/input-number/src/input-number.d.ts +1 -1
  355. package/es/components/input-number/src/input-number.vue.d.ts +8 -8
  356. package/es/components/input-number/src/input-number.vue_vue_type_script_setup_true_lang.mjs +1 -1
  357. package/es/components/input-otp/src/input-otp.vue.d.ts +1 -1
  358. package/es/components/input-tag/src/input-tag.d.ts +2 -2
  359. package/es/components/input-tag/src/input-tag.vue.d.ts +12 -12
  360. package/es/components/link/src/link.d.ts +1 -1
  361. package/es/components/link/src/link.vue.d.ts +2 -2
  362. package/es/components/mention/src/mention.d.ts +2 -2
  363. package/es/components/mention/src/mention.vue.d.ts +3 -3
  364. package/es/components/menu/src/menu.d.ts +9 -9
  365. package/es/components/menu/src/menu.mjs +1 -1
  366. package/es/components/menu/src/sub-menu.d.ts +1 -1
  367. package/es/components/menu/src/utils/menu-item.mjs +1 -1
  368. package/es/components/menu/src/utils/submenu.mjs +1 -1
  369. package/es/components/message/src/instance.d.ts +1 -1
  370. package/es/components/message/src/message.d.ts +2 -2
  371. package/es/components/message/src/message.vue.d.ts +8 -8
  372. package/es/components/message-box/src/index.vue.d.ts +34 -34
  373. package/es/components/message-box/src/index.vue_vue_type_script_lang.mjs +1 -1
  374. package/es/components/notification/src/notification.d.ts +1 -1
  375. package/es/components/notification/src/notification.vue.d.ts +7 -7
  376. package/es/components/page-header/src/page-header.vue.d.ts +1 -1
  377. package/es/components/pagination/src/components/sizes.vue.d.ts +1 -1
  378. package/es/components/pagination/src/pagination.d.ts +3 -3
  379. package/es/components/popconfirm/src/popconfirm.d.ts +2 -2
  380. package/es/components/popconfirm/src/popconfirm.vue.d.ts +3 -3
  381. package/es/components/popover/src/popover.d.ts +47 -47
  382. package/es/components/popover/src/popover.vue.d.ts +8 -8
  383. package/es/components/popper/src/composables/use-content.d.ts +2 -2
  384. package/es/components/popper/src/content.vue.d.ts +5 -5
  385. package/es/components/popper/src/popper.d.ts +2 -2
  386. package/es/components/popper/src/popper.vue.d.ts +1 -1
  387. package/es/components/progress/src/progress.vue.d.ts +3 -3
  388. package/es/components/radio/src/radio-button.vue.d.ts +1 -1
  389. package/es/components/radio/src/radio-group.vue.d.ts +4 -4
  390. package/es/components/radio/src/radio.vue.d.ts +1 -1
  391. package/es/components/rate/src/rate.vue.d.ts +2 -2
  392. package/es/components/result/src/result.d.ts +1 -1
  393. package/es/components/result/src/result.vue.d.ts +1 -1
  394. package/es/components/row/src/row.d.ts +2 -2
  395. package/es/components/row/src/row.vue.d.ts +1 -1
  396. package/es/components/scrollbar/src/mask-utils.d.ts +5 -0
  397. package/es/components/scrollbar/src/mask-utils.mjs +34 -0
  398. package/es/components/scrollbar/src/mask-utils.mjs.map +1 -0
  399. package/es/components/scrollbar/src/mask.mjs +7 -0
  400. package/es/components/scrollbar/src/mask.mjs.map +1 -0
  401. package/es/components/scrollbar/src/mask.vue.d.ts +14 -0
  402. package/es/components/scrollbar/src/mask.vue_vue_type_script_setup_true_lang.mjs +113 -0
  403. package/es/components/scrollbar/src/mask.vue_vue_type_script_setup_true_lang.mjs.map +1 -0
  404. package/es/components/scrollbar/src/scrollbar.d.ts +6 -0
  405. package/es/components/scrollbar/src/scrollbar.mjs +15 -0
  406. package/es/components/scrollbar/src/scrollbar.mjs.map +1 -1
  407. package/es/components/scrollbar/src/scrollbar.vue.d.ts +3 -2
  408. package/es/components/scrollbar/src/scrollbar.vue_vue_type_script_setup_true_lang.mjs +56 -38
  409. package/es/components/scrollbar/src/scrollbar.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  410. package/es/components/scrollbar/src/scrollbar2.mjs.map +1 -1
  411. package/es/components/segmented/index.d.ts +1 -1
  412. package/es/components/select/src/option.d.ts +1 -1
  413. package/es/components/select/src/option.vue.d.ts +2 -2
  414. package/es/components/select/src/select.d.ts +4 -4
  415. package/es/components/select/src/select.vue.d.ts +82 -79
  416. package/es/components/select/src/select.vue_vue_type_script_lang.mjs +1 -1
  417. package/es/components/select/src/useSelect.d.ts +6 -6
  418. package/es/components/select-v2/src/defaults.d.ts +3 -3
  419. package/es/components/select-v2/src/select.vue.d.ts +66 -66
  420. package/es/components/select-v2/src/select.vue_vue_type_script_lang.mjs +1 -1
  421. package/es/components/select-v2/src/useSelect.d.ts +1 -1
  422. package/es/components/skeleton/src/skeleton-item.d.ts +1 -1
  423. package/es/components/skeleton/src/skeleton-item.vue.d.ts +1 -1
  424. package/es/components/slider/src/button.vue.d.ts +1 -1
  425. package/es/components/slider/src/slider.vue.d.ts +5 -5
  426. package/es/components/splitter/src/split-bar.vue.d.ts +1 -1
  427. package/es/components/statistic/src/statistic.vue.d.ts +1 -1
  428. package/es/components/steps/src/item.d.ts +1 -1
  429. package/es/components/steps/src/item.vue.d.ts +2 -2
  430. package/es/components/steps/src/steps.d.ts +2 -2
  431. package/es/components/switch/src/switch.vue.d.ts +2 -2
  432. package/es/components/table/src/filter-panel.vue.d.ts +55 -52
  433. package/es/components/table/src/table-footer/index.d.ts +1 -1
  434. package/es/components/table/src/table-header/index.d.ts +10 -10
  435. package/es/components/table/src/table.vue.d.ts +3 -3
  436. package/es/components/table/src/table.vue_vue_type_script_setup_true_lang.mjs +1 -1
  437. package/es/components/table-v2/src/components/row.d.ts +1 -1
  438. package/es/components/table-v2/src/table-grid.d.ts +2 -2
  439. package/es/components/table-v2/src/table-v2.d.ts +2 -2
  440. package/es/components/tabs/src/tab-pane.vue.d.ts +1 -1
  441. package/es/components/tabs/src/tabs.d.ts +5 -5
  442. package/es/components/tag/src/tag.d.ts +2 -2
  443. package/es/components/tag/src/tag.vue.d.ts +2 -2
  444. package/es/components/text/src/text.d.ts +1 -1
  445. package/es/components/text/src/text.vue.d.ts +2 -2
  446. package/es/components/time-picker/src/common/picker.vue.d.ts +15 -15
  447. package/es/components/time-picker/src/common/props.d.ts +2 -2
  448. package/es/components/time-picker/src/time-picker-com/basic-time-spinner.vue_vue_type_script_setup_true_lang.mjs +1 -1
  449. package/es/components/time-picker/src/time-picker.d.ts +13 -13
  450. package/es/components/time-select/src/time-select.vue.d.ts +7 -7
  451. package/es/components/timeline/src/timeline-item.d.ts +2 -2
  452. package/es/components/timeline/src/timeline-item.vue.d.ts +2 -2
  453. package/es/components/tooltip/src/content.vue.d.ts +4 -4
  454. package/es/components/tooltip/src/tooltip.d.ts +2 -2
  455. package/es/components/tooltip/src/tooltip.vue.d.ts +10 -10
  456. package/es/components/tooltip/src/trigger.d.ts +1 -1
  457. package/es/components/tour/src/content.d.ts +1 -1
  458. package/es/components/tour/src/content.vue.d.ts +1 -1
  459. package/es/components/tour/src/mask.vue.d.ts +1 -1
  460. package/es/components/tour/src/step.d.ts +1 -1
  461. package/es/components/tour/src/step.vue.d.ts +2 -2
  462. package/es/components/tour/src/tour.d.ts +1 -1
  463. package/es/components/tour/src/tour.vue.d.ts +5 -5
  464. package/es/components/tree/src/tree-node.vue.d.ts +10 -10
  465. package/es/components/tree/src/tree.vue.d.ts +15 -15
  466. package/es/components/tree-select/src/tree-select-option.d.ts +2 -2
  467. package/es/components/tree-select/src/tree-select.vue.d.ts +35 -35
  468. package/es/components/tree-v2/src/composables/useTree.d.ts +8 -8
  469. package/es/components/tree-v2/src/tree.vue.d.ts +3 -3
  470. package/es/components/upload/src/upload-content.vue.d.ts +1 -1
  471. package/es/components/upload/src/upload.vue.d.ts +1 -1
  472. package/es/components/virtual-list/src/builders/build-grid.d.ts +2 -2
  473. package/es/components/virtual-list/src/builders/build-list.d.ts +4 -4
  474. package/es/components/virtual-list/src/components/dynamic-size-grid.d.ts +2 -2
  475. package/es/components/virtual-list/src/components/dynamic-size-list.d.ts +4 -4
  476. package/es/components/virtual-list/src/components/fixed-size-grid.d.ts +2 -2
  477. package/es/components/virtual-list/src/components/fixed-size-list.d.ts +4 -4
  478. package/es/constants/index.mjs +2 -2
  479. package/es/directives/trap-focus/index.mjs +1 -1
  480. package/es/hooks/use-floating/index.d.ts +8 -8
  481. package/es/hooks/use-popper/index.d.ts +2 -2
  482. package/es/index.mjs +13 -13
  483. package/es/plugin.mjs +1 -1
  484. package/es/utils/vue/size.d.ts +1 -1
  485. package/es/utils/vue/vnode.d.ts +4 -4
  486. package/es/version.d.ts +1 -1
  487. package/es/version.mjs +1 -1
  488. package/es/version.mjs.map +1 -1
  489. package/lib/component.js +109 -109
  490. package/lib/components/affix/src/affix.d.ts +1 -1
  491. package/lib/components/affix/src/affix.vue.d.ts +3 -3
  492. package/lib/components/alert/src/alert.d.ts +2 -2
  493. package/lib/components/alert/src/alert.vue.d.ts +2 -2
  494. package/lib/components/anchor/src/anchor.vue.d.ts +1 -1
  495. package/lib/components/autocomplete/src/autocomplete.d.ts +2 -2
  496. package/lib/components/autocomplete/src/autocomplete.vue.d.ts +3 -3
  497. package/lib/components/avatar/src/avatar-group.d.ts +1 -1
  498. package/lib/components/avatar/src/avatar.d.ts +1 -1
  499. package/lib/components/backtop/src/backtop.vue.d.ts +1 -1
  500. package/lib/components/badge/src/badge.d.ts +1 -1
  501. package/lib/components/badge/src/badge.vue.d.ts +1 -1
  502. package/lib/components/button/src/button-group.d.ts +1 -1
  503. package/lib/components/button/src/button-group.vue.d.ts +1 -1
  504. package/lib/components/button/src/button.d.ts +1 -1
  505. package/lib/components/button/src/button.vue.d.ts +3 -3
  506. package/lib/components/button/src/use-button.d.ts +1 -1
  507. package/lib/components/card/src/card.vue.d.ts +3 -3
  508. package/lib/components/carousel/src/carousel.d.ts +1 -1
  509. package/lib/components/carousel/src/carousel.vue.d.ts +3 -3
  510. package/lib/components/cascader/src/cascader.d.ts +3 -3
  511. package/lib/components/cascader/src/cascader.vue.d.ts +15 -15
  512. package/lib/components/cascader/src/cascader.vue_vue_type_script_setup_true_lang.js +40 -40
  513. package/lib/components/cascader/src/cascader.vue_vue_type_script_setup_true_lang.js.map +1 -1
  514. package/lib/components/cascader-panel/src/index.vue.d.ts +1 -1
  515. package/lib/components/cascader-panel/src/index.vue_vue_type_script_setup_true_lang.js +12 -12
  516. package/lib/components/cascader-panel/src/index.vue_vue_type_script_setup_true_lang.js.map +1 -1
  517. package/lib/components/cascader-panel/src/menu.vue.d.ts +1 -1
  518. package/lib/components/check-tag/src/check-tag.d.ts +1 -1
  519. package/lib/components/check-tag/src/check-tag.vue.d.ts +1 -1
  520. package/lib/components/checkbox/src/checkbox-button.vue.d.ts +3 -3
  521. package/lib/components/checkbox/src/checkbox-group.vue.d.ts +3 -3
  522. package/lib/components/checkbox/src/checkbox.d.ts +2 -2
  523. package/lib/components/checkbox/src/checkbox.vue.d.ts +3 -3
  524. package/lib/components/col/src/col.vue.d.ts +2 -2
  525. package/lib/components/collapse/src/collapse.d.ts +1 -1
  526. package/lib/components/color-picker/src/color-picker.vue.d.ts +10 -10
  527. package/lib/components/color-picker/src/color-picker.vue_vue_type_script_setup_true_lang.js +18 -18
  528. package/lib/components/color-picker/src/color-picker.vue_vue_type_script_setup_true_lang.js.map +1 -1
  529. package/lib/components/color-picker-panel/src/color-picker-panel.vue.d.ts +1 -1
  530. package/lib/components/config-provider/src/config-provider.d.ts +2 -2
  531. package/lib/components/countdown/src/countdown.vue_vue_type_script_setup_true_lang.js +1 -1
  532. package/lib/components/date-picker/src/date-picker.d.ts +16 -16
  533. package/lib/components/date-picker/src/props.d.ts +3 -3
  534. package/lib/components/date-picker-panel/src/composables/use-basic-date-table.d.ts +1 -1
  535. package/lib/components/date-picker-panel/src/date-picker-com/panel-date-pick.vue.d.ts +3 -3
  536. package/lib/components/date-picker-panel/src/date-picker-com/panel-date-pick.vue_vue_type_script_setup_true_lang.js +18 -18
  537. package/lib/components/date-picker-panel/src/date-picker-com/panel-date-pick.vue_vue_type_script_setup_true_lang.js.map +1 -1
  538. package/lib/components/date-picker-panel/src/date-picker-com/panel-date-range.vue.d.ts +2 -2
  539. package/lib/components/date-picker-panel/src/date-picker-com/panel-date-range.vue_vue_type_script_setup_true_lang.js +23 -23
  540. package/lib/components/date-picker-panel/src/date-picker-com/panel-date-range.vue_vue_type_script_setup_true_lang.js.map +1 -1
  541. package/lib/components/date-picker-panel/src/date-picker-panel.d.ts +7 -7
  542. package/lib/components/date-picker-panel/src/panel-utils.d.ts +9 -9
  543. package/lib/components/date-picker-panel/src/props/date-picker-panel.d.ts +2 -2
  544. package/lib/components/date-picker-panel/src/props/panel-date-pick.d.ts +1 -1
  545. package/lib/components/date-picker-panel/src/props/panel-date-range.d.ts +1 -1
  546. package/lib/components/date-picker-panel/src/props/shared.d.ts +1 -1
  547. package/lib/components/descriptions/src/description-item.d.ts +9 -9
  548. package/lib/components/dialog/src/dialog-content.vue.d.ts +2 -2
  549. package/lib/components/dialog/src/dialog.vue.d.ts +7 -7
  550. package/lib/components/divider/src/divider.d.ts +1 -1
  551. package/lib/components/divider/src/divider.vue.d.ts +2 -2
  552. package/lib/components/drawer/src/drawer.vue.d.ts +8 -8
  553. package/lib/components/dropdown/src/dropdown-item-impl.vue.d.ts +1 -1
  554. package/lib/components/dropdown/src/dropdown-item.vue.d.ts +2 -2
  555. package/lib/components/dropdown/src/dropdown-menu.vue.d.ts +1 -1
  556. package/lib/components/dropdown/src/dropdown.d.ts +4 -4
  557. package/lib/components/dropdown/src/dropdown.vue.d.ts +68 -65
  558. package/lib/components/form/src/form-item.d.ts +2 -2
  559. package/lib/components/form/src/form-item.vue.d.ts +2 -2
  560. package/lib/components/form/src/form.d.ts +2 -2
  561. package/lib/components/form/src/form.vue.d.ts +2 -2
  562. package/lib/components/image/src/image.vue.d.ts +6 -6
  563. package/lib/components/image-viewer/src/image-viewer.vue.d.ts +3 -3
  564. package/lib/components/index.js +125 -125
  565. package/lib/components/input/src/input.d.ts +1 -1
  566. package/lib/components/input/src/input.vue.d.ts +7 -7
  567. package/lib/components/input-number/src/input-number.d.ts +1 -1
  568. package/lib/components/input-number/src/input-number.vue.d.ts +8 -8
  569. package/lib/components/input-number/src/input-number.vue_vue_type_script_setup_true_lang.js +12 -12
  570. package/lib/components/input-number/src/input-number.vue_vue_type_script_setup_true_lang.js.map +1 -1
  571. package/lib/components/input-otp/src/input-otp.vue.d.ts +1 -1
  572. package/lib/components/input-tag/src/input-tag.d.ts +2 -2
  573. package/lib/components/input-tag/src/input-tag.vue.d.ts +12 -12
  574. package/lib/components/link/src/link.d.ts +1 -1
  575. package/lib/components/link/src/link.vue.d.ts +2 -2
  576. package/lib/components/mention/src/mention.d.ts +2 -2
  577. package/lib/components/mention/src/mention.vue.d.ts +3 -3
  578. package/lib/components/menu/src/menu.d.ts +9 -9
  579. package/lib/components/menu/src/menu.js +7 -7
  580. package/lib/components/menu/src/menu.js.map +1 -1
  581. package/lib/components/menu/src/sub-menu.d.ts +1 -1
  582. package/lib/components/menu/src/utils/menu-item.js +11 -11
  583. package/lib/components/menu/src/utils/menu-item.js.map +1 -1
  584. package/lib/components/menu/src/utils/submenu.js +9 -9
  585. package/lib/components/menu/src/utils/submenu.js.map +1 -1
  586. package/lib/components/message/src/instance.d.ts +1 -1
  587. package/lib/components/message/src/message.d.ts +2 -2
  588. package/lib/components/message/src/message.vue.d.ts +8 -8
  589. package/lib/components/message-box/src/index.vue.d.ts +34 -34
  590. package/lib/components/message-box/src/index.vue_vue_type_script_lang.js +19 -19
  591. package/lib/components/message-box/src/index.vue_vue_type_script_lang.js.map +1 -1
  592. package/lib/components/notification/src/notification.d.ts +1 -1
  593. package/lib/components/notification/src/notification.vue.d.ts +7 -7
  594. package/lib/components/page-header/src/page-header.vue.d.ts +1 -1
  595. package/lib/components/pagination/src/components/sizes.vue.d.ts +1 -1
  596. package/lib/components/pagination/src/pagination.d.ts +3 -3
  597. package/lib/components/popconfirm/src/popconfirm.d.ts +2 -2
  598. package/lib/components/popconfirm/src/popconfirm.vue.d.ts +3 -3
  599. package/lib/components/popover/src/popover.d.ts +47 -47
  600. package/lib/components/popover/src/popover.vue.d.ts +8 -8
  601. package/lib/components/popper/src/composables/use-content.d.ts +2 -2
  602. package/lib/components/popper/src/content.vue.d.ts +5 -5
  603. package/lib/components/popper/src/popper.d.ts +2 -2
  604. package/lib/components/popper/src/popper.vue.d.ts +1 -1
  605. package/lib/components/progress/src/progress.vue.d.ts +3 -3
  606. package/lib/components/radio/src/radio-button.vue.d.ts +1 -1
  607. package/lib/components/radio/src/radio-group.vue.d.ts +4 -4
  608. package/lib/components/radio/src/radio.vue.d.ts +1 -1
  609. package/lib/components/rate/src/rate.vue.d.ts +2 -2
  610. package/lib/components/result/src/result.d.ts +1 -1
  611. package/lib/components/result/src/result.vue.d.ts +1 -1
  612. package/lib/components/row/src/row.d.ts +2 -2
  613. package/lib/components/row/src/row.vue.d.ts +1 -1
  614. package/lib/components/scrollbar/src/mask-utils.d.ts +5 -0
  615. package/lib/components/scrollbar/src/mask-utils.js +35 -0
  616. package/lib/components/scrollbar/src/mask-utils.js.map +1 -0
  617. package/lib/components/scrollbar/src/mask.js +10 -0
  618. package/lib/components/scrollbar/src/mask.js.map +1 -0
  619. package/lib/components/scrollbar/src/mask.vue.d.ts +14 -0
  620. package/lib/components/scrollbar/src/mask.vue_vue_type_script_setup_true_lang.js +113 -0
  621. package/lib/components/scrollbar/src/mask.vue_vue_type_script_setup_true_lang.js.map +1 -0
  622. package/lib/components/scrollbar/src/scrollbar.d.ts +6 -0
  623. package/lib/components/scrollbar/src/scrollbar.js +15 -0
  624. package/lib/components/scrollbar/src/scrollbar.js.map +1 -1
  625. package/lib/components/scrollbar/src/scrollbar.vue.d.ts +3 -2
  626. package/lib/components/scrollbar/src/scrollbar.vue_vue_type_script_setup_true_lang.js +55 -37
  627. package/lib/components/scrollbar/src/scrollbar.vue_vue_type_script_setup_true_lang.js.map +1 -1
  628. package/lib/components/scrollbar/src/scrollbar2.js.map +1 -1
  629. package/lib/components/segmented/index.d.ts +1 -1
  630. package/lib/components/select/src/option.d.ts +1 -1
  631. package/lib/components/select/src/option.vue.d.ts +2 -2
  632. package/lib/components/select/src/select.d.ts +4 -4
  633. package/lib/components/select/src/select.vue.d.ts +82 -79
  634. package/lib/components/select/src/select.vue_vue_type_script_lang.js +10 -10
  635. package/lib/components/select/src/select.vue_vue_type_script_lang.js.map +1 -1
  636. package/lib/components/select/src/useSelect.d.ts +6 -6
  637. package/lib/components/select-v2/src/defaults.d.ts +3 -3
  638. package/lib/components/select-v2/src/select.vue.d.ts +66 -66
  639. package/lib/components/select-v2/src/select.vue_vue_type_script_lang.js +10 -10
  640. package/lib/components/select-v2/src/select.vue_vue_type_script_lang.js.map +1 -1
  641. package/lib/components/select-v2/src/useSelect.d.ts +1 -1
  642. package/lib/components/skeleton/src/skeleton-item.d.ts +1 -1
  643. package/lib/components/skeleton/src/skeleton-item.vue.d.ts +1 -1
  644. package/lib/components/slider/src/button.vue.d.ts +1 -1
  645. package/lib/components/slider/src/slider.vue.d.ts +5 -5
  646. package/lib/components/splitter/src/split-bar.vue.d.ts +1 -1
  647. package/lib/components/statistic/src/statistic.vue.d.ts +1 -1
  648. package/lib/components/steps/src/item.d.ts +1 -1
  649. package/lib/components/steps/src/item.vue.d.ts +2 -2
  650. package/lib/components/steps/src/steps.d.ts +2 -2
  651. package/lib/components/switch/src/switch.vue.d.ts +2 -2
  652. package/lib/components/table/src/filter-panel.vue.d.ts +55 -52
  653. package/lib/components/table/src/table-footer/index.d.ts +1 -1
  654. package/lib/components/table/src/table-header/index.d.ts +10 -10
  655. package/lib/components/table/src/table.vue.d.ts +3 -3
  656. package/lib/components/table/src/table.vue_vue_type_script_setup_true_lang.js +9 -9
  657. package/lib/components/table/src/table.vue_vue_type_script_setup_true_lang.js.map +1 -1
  658. package/lib/components/table-v2/src/components/row.d.ts +1 -1
  659. package/lib/components/table-v2/src/table-grid.d.ts +2 -2
  660. package/lib/components/table-v2/src/table-v2.d.ts +2 -2
  661. package/lib/components/tabs/src/tab-pane.vue.d.ts +1 -1
  662. package/lib/components/tabs/src/tabs.d.ts +5 -5
  663. package/lib/components/tag/src/tag.d.ts +2 -2
  664. package/lib/components/tag/src/tag.vue.d.ts +2 -2
  665. package/lib/components/text/src/text.d.ts +1 -1
  666. package/lib/components/text/src/text.vue.d.ts +2 -2
  667. package/lib/components/time-picker/src/common/picker.vue.d.ts +15 -15
  668. package/lib/components/time-picker/src/common/props.d.ts +2 -2
  669. package/lib/components/time-picker/src/time-picker-com/basic-time-spinner.vue_vue_type_script_setup_true_lang.js +10 -10
  670. package/lib/components/time-picker/src/time-picker-com/basic-time-spinner.vue_vue_type_script_setup_true_lang.js.map +1 -1
  671. package/lib/components/time-picker/src/time-picker.d.ts +13 -13
  672. package/lib/components/time-select/src/time-select.vue.d.ts +7 -7
  673. package/lib/components/timeline/src/timeline-item.d.ts +2 -2
  674. package/lib/components/timeline/src/timeline-item.vue.d.ts +2 -2
  675. package/lib/components/tooltip/src/content.vue.d.ts +4 -4
  676. package/lib/components/tooltip/src/tooltip.d.ts +2 -2
  677. package/lib/components/tooltip/src/tooltip.vue.d.ts +10 -10
  678. package/lib/components/tooltip/src/trigger.d.ts +1 -1
  679. package/lib/components/tour/src/content.d.ts +1 -1
  680. package/lib/components/tour/src/content.vue.d.ts +1 -1
  681. package/lib/components/tour/src/mask.vue.d.ts +1 -1
  682. package/lib/components/tour/src/step.d.ts +1 -1
  683. package/lib/components/tour/src/step.vue.d.ts +2 -2
  684. package/lib/components/tour/src/tour.d.ts +1 -1
  685. package/lib/components/tour/src/tour.vue.d.ts +5 -5
  686. package/lib/components/tree/src/tree-node.vue.d.ts +10 -10
  687. package/lib/components/tree/src/tree.vue.d.ts +15 -15
  688. package/lib/components/tree-select/src/tree-select-option.d.ts +2 -2
  689. package/lib/components/tree-select/src/tree-select.vue.d.ts +35 -35
  690. package/lib/components/tree-v2/src/composables/useTree.d.ts +8 -8
  691. package/lib/components/tree-v2/src/tree.vue.d.ts +3 -3
  692. package/lib/components/upload/src/upload-content.vue.d.ts +1 -1
  693. package/lib/components/upload/src/upload.vue.d.ts +1 -1
  694. package/lib/components/virtual-list/src/builders/build-grid.d.ts +2 -2
  695. package/lib/components/virtual-list/src/builders/build-list.d.ts +4 -4
  696. package/lib/components/virtual-list/src/components/dynamic-size-grid.d.ts +2 -2
  697. package/lib/components/virtual-list/src/components/dynamic-size-list.d.ts +4 -4
  698. package/lib/components/virtual-list/src/components/fixed-size-grid.d.ts +2 -2
  699. package/lib/components/virtual-list/src/components/fixed-size-list.d.ts +4 -4
  700. package/lib/constants/index.js +2 -2
  701. package/lib/directives/trap-focus/index.js +5 -5
  702. package/lib/directives/trap-focus/index.js.map +1 -1
  703. package/lib/hooks/use-floating/index.d.ts +8 -8
  704. package/lib/hooks/use-popper/index.d.ts +2 -2
  705. package/lib/index.js +269 -269
  706. package/lib/plugin.js +12 -12
  707. package/lib/plugin.js.map +1 -1
  708. package/lib/utils/vue/size.d.ts +1 -1
  709. package/lib/utils/vue/vnode.d.ts +4 -4
  710. package/lib/version.d.ts +1 -1
  711. package/lib/version.js +1 -1
  712. package/lib/version.js.map +1 -1
  713. package/package.json +3 -3
  714. package/tags.json +1 -1
  715. package/theme-chalk/el-scrollbar.css +1 -1
  716. package/theme-chalk/index.css +1 -1
  717. package/theme-chalk/src/common/var.scss +8 -0
  718. package/theme-chalk/src/scrollbar.scss +65 -0
  719. package/web-types.json +1 -1
@@ -22,7 +22,7 @@ interface PopperProps {
22
22
  * @deprecated Removed after 3.0.0, Use `PopperProps` instead.
23
23
  */
24
24
  declare const popperProps: {
25
- readonly role: EpPropFinalized<StringConstructor, "dialog" | "listbox" | "grid" | "menu" | "tooltip" | "group" | "navigation" | "tree", unknown, "tooltip", boolean>;
25
+ readonly role: EpPropFinalized<StringConstructor, "listbox" | "grid" | "menu" | "tooltip" | "dialog" | "group" | "navigation" | "tree", unknown, "tooltip", boolean>;
26
26
  };
27
27
  /**
28
28
  * @deprecated Removed after 3.0.0, Use `PopperProps` instead.
@@ -31,7 +31,7 @@ type PopperPropsPublic = ExtractPublicPropTypes<typeof popperProps>;
31
31
  type PopperInstance = InstanceType<typeof _default> & unknown;
32
32
  /** @deprecated use `popperProps` instead, and it will be deprecated in the next major version */
33
33
  declare const usePopperProps: {
34
- readonly role: EpPropFinalized<StringConstructor, "dialog" | "listbox" | "grid" | "menu" | "tooltip" | "group" | "navigation" | "tree", unknown, "tooltip", boolean>;
34
+ readonly role: EpPropFinalized<StringConstructor, "listbox" | "grid" | "menu" | "tooltip" | "dialog" | "group" | "navigation" | "tree", unknown, "tooltip", boolean>;
35
35
  };
36
36
  /** @deprecated use `PopperProps` instead, and it will be deprecated in the next major version */
37
37
  type UsePopperProps = PopperProps;
@@ -8,7 +8,7 @@ type __VLS_Slots = {} & {
8
8
  default?: (props: typeof __VLS_1) => any;
9
9
  };
10
10
  declare const __VLS_base: _$vue.DefineComponent<PopperProps, ElPopperInjectionContext, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<PopperProps> & Readonly<{}>, {
11
- role: "dialog" | "listbox" | "grid" | "menu" | "tooltip" | "group" | "navigation" | "tree";
11
+ role: "listbox" | "grid" | "menu" | "tooltip" | "dialog" | "group" | "navigation" | "tree";
12
12
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
13
13
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
14
14
  declare const _default: typeof __VLS_export;
@@ -15,13 +15,13 @@ type __VLS_Slots = {} & {
15
15
  declare const __VLS_base: _$vue.DefineComponent<ProgressProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<ProgressProps> & Readonly<{}>, {
16
16
  type: "circle" | "line" | "dashboard";
17
17
  color: string | ProgressColor[] | ProgressFn;
18
+ format: ProgressFn;
19
+ width: number;
18
20
  strokeLinecap: NonNullable<"inherit" | "round" | "butt" | "square" | undefined>;
19
21
  strokeWidth: number;
20
- width: number;
21
- format: ProgressFn;
22
+ duration: number;
22
23
  percentage: number;
23
24
  status: "" | "success" | "warning" | "exception";
24
- duration: number;
25
25
  showText: boolean;
26
26
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
27
27
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -7,9 +7,9 @@ type __VLS_Slots = {} & {
7
7
  default?: (props: typeof __VLS_1) => any;
8
8
  };
9
9
  declare const __VLS_base: _$vue.DefineComponent<RadioButtonProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<RadioButtonProps> & Readonly<{}>, {
10
- disabled: boolean;
11
10
  modelValue: string | number | boolean;
12
11
  name: string;
12
+ disabled: boolean;
13
13
  value: string | number | boolean;
14
14
  label: string | number | boolean;
15
15
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
@@ -13,14 +13,14 @@ declare const __VLS_base: _$vue.DefineComponent<RadioGroupProps, {}, {}, {}, {},
13
13
  "onUpdate:modelValue"?: ((val: string | number | boolean | undefined) => any) | undefined;
14
14
  onChange?: ((val: string | number | boolean | undefined) => any) | undefined;
15
15
  }>, {
16
+ props: radioOptionProp;
16
17
  type: "button" | "radio";
17
18
  fill: string;
18
- props: radioOptionProp;
19
- id: string;
20
- disabled: boolean;
21
19
  modelValue: string | number | boolean;
22
- validateEvent: boolean;
23
20
  name: string;
21
+ disabled: boolean;
22
+ id: string;
23
+ validateEvent: boolean;
24
24
  textColor: string;
25
25
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
26
26
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -13,9 +13,9 @@ declare const __VLS_base: _$vue.DefineComponent<RadioProps, {}, {}, {}, {}, _$vu
13
13
  "onUpdate:modelValue"?: ((val: string | number | boolean | undefined) => any) | undefined;
14
14
  onChange?: ((val: string | number | boolean | undefined) => any) | undefined;
15
15
  }>, {
16
- disabled: boolean;
17
16
  modelValue: string | number | boolean;
18
17
  name: string;
18
+ disabled: boolean;
19
19
  value: string | number | boolean;
20
20
  border: boolean;
21
21
  label: string | number | boolean;
@@ -15,9 +15,9 @@ declare const __VLS_export: _$vue.DefineComponent<RateProps, {
15
15
  "onUpdate:modelValue"?: ((value: number) => any) | undefined;
16
16
  onChange?: ((value: number) => any) | undefined;
17
17
  }>, {
18
- id: string;
19
- disabled: boolean;
20
18
  modelValue: number;
19
+ disabled: boolean;
20
+ id: string;
21
21
  max: number;
22
22
  textColor: string;
23
23
  lowThreshold: number;
@@ -31,7 +31,7 @@ interface ResultProps {
31
31
  declare const resultProps: {
32
32
  readonly title: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
33
33
  readonly subTitle: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
34
- readonly icon: EpPropFinalized<StringConstructor, "primary" | "success" | "warning" | "error" | "info", unknown, "info", boolean>;
34
+ readonly icon: EpPropFinalized<StringConstructor, "error" | "success" | "primary" | "warning" | "info", unknown, "info", boolean>;
35
35
  };
36
36
  /**
37
37
  * @deprecated Removed after 3.0.0, Use `ResultProps` instead.
@@ -14,7 +14,7 @@ type __VLS_Slots = {} & {
14
14
  };
15
15
  declare const __VLS_base: _$vue.DefineComponent<ResultProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<ResultProps> & Readonly<{}>, {
16
16
  title: string;
17
- icon: "primary" | "success" | "warning" | "error" | "info";
17
+ icon: "error" | "success" | "primary" | "warning" | "info";
18
18
  subTitle: string;
19
19
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
20
20
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -30,9 +30,9 @@ interface RowProps {
30
30
  declare const rowProps: {
31
31
  readonly tag: EpPropFinalized<StringConstructor, unknown, unknown, "div", boolean>;
32
32
  readonly gutter: EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
33
- readonly justify: EpPropFinalized<StringConstructor, "center" | "space-around" | "space-between" | "space-evenly" | "end" | "start", unknown, "start", boolean>;
33
+ readonly justify: EpPropFinalized<StringConstructor, "space-around" | "space-between" | "space-evenly" | "center" | "end" | "start", unknown, "start", boolean>;
34
34
  readonly align: {
35
- readonly type: _$vue.PropType<EpPropMergeType<StringConstructor, "top" | "bottom" | "middle", unknown>>;
35
+ readonly type: _$vue.PropType<EpPropMergeType<StringConstructor, "middle" | "bottom" | "top", unknown>>;
36
36
  readonly required: false;
37
37
  readonly validator: ((val: unknown) => boolean) | undefined;
38
38
  __epPropKey: true;
@@ -7,8 +7,8 @@ type __VLS_Slots = {} & {
7
7
  default?: (props: typeof __VLS_7) => any;
8
8
  };
9
9
  declare const __VLS_base: _$vue.DefineComponent<RowProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<RowProps> & Readonly<{}>, {
10
- justify: "center" | "space-around" | "space-between" | "space-evenly" | "end" | "start";
11
10
  tag: string;
11
+ justify: "space-around" | "space-between" | "space-evenly" | "center" | "end" | "start";
12
12
  gutter: number;
13
13
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
14
14
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -0,0 +1,5 @@
1
+ //#region ../../packages/components/scrollbar/src/mask-utils.d.ts
2
+ type RTLOffsetType = 'negative' | 'positive-descending' | 'positive-ascending';
3
+ declare function getRTLOffsetType(recalculate?: boolean): RTLOffsetType;
4
+ //#endregion
5
+ export { getRTLOffsetType };
@@ -0,0 +1,34 @@
1
+ import { isClient } from "../../../utils/browser.mjs";
2
+ //#region ../../packages/components/scrollbar/src/mask-utils.ts
3
+ let cachedRTLResult = null;
4
+ function getRTLOffsetType(recalculate = false) {
5
+ if (!isClient) return "negative";
6
+ if (cachedRTLResult === null || recalculate) {
7
+ const outerDiv = document.createElement("div");
8
+ const outerStyle = outerDiv.style;
9
+ outerStyle.width = "50px";
10
+ outerStyle.height = "50px";
11
+ outerStyle.overflow = "scroll";
12
+ outerStyle.direction = "rtl";
13
+ outerStyle.position = "absolute";
14
+ outerStyle.visibility = "hidden";
15
+ outerStyle.top = "-9999px";
16
+ const innerDiv = document.createElement("div");
17
+ const innerStyle = innerDiv.style;
18
+ innerStyle.width = "100px";
19
+ innerStyle.height = "100px";
20
+ outerDiv.appendChild(innerDiv);
21
+ document.body.appendChild(outerDiv);
22
+ if (outerDiv.scrollLeft > 0) cachedRTLResult = "positive-descending";
23
+ else {
24
+ outerDiv.scrollLeft = 1;
25
+ cachedRTLResult = outerDiv.scrollLeft === 0 ? "negative" : "positive-ascending";
26
+ }
27
+ document.body.removeChild(outerDiv);
28
+ }
29
+ return cachedRTLResult;
30
+ }
31
+ //#endregion
32
+ export { getRTLOffsetType };
33
+
34
+ //# sourceMappingURL=mask-utils.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mask-utils.mjs","names":[],"sources":["../../../../../../packages/components/scrollbar/src/mask-utils.ts"],"sourcesContent":["import { isClient } from '@element-plus/utils'\n\ntype RTLOffsetType = 'negative' | 'positive-descending' | 'positive-ascending'\n\nlet cachedRTLResult: RTLOffsetType | null = null\n\nexport function getRTLOffsetType(recalculate = false): RTLOffsetType {\n if (!isClient) return 'negative'\n if (cachedRTLResult === null || recalculate) {\n const outerDiv = document.createElement('div')\n const outerStyle = outerDiv.style\n outerStyle.width = '50px'\n outerStyle.height = '50px'\n outerStyle.overflow = 'scroll'\n outerStyle.direction = 'rtl'\n outerStyle.position = 'absolute'\n outerStyle.visibility = 'hidden'\n outerStyle.top = '-9999px'\n\n const innerDiv = document.createElement('div')\n const innerStyle = innerDiv.style\n innerStyle.width = '100px'\n innerStyle.height = '100px'\n\n outerDiv.appendChild(innerDiv)\n document.body.appendChild(outerDiv)\n\n if (outerDiv.scrollLeft > 0) {\n cachedRTLResult = 'positive-descending'\n } else {\n outerDiv.scrollLeft = 1\n cachedRTLResult =\n outerDiv.scrollLeft === 0 ? 'negative' : 'positive-ascending'\n }\n\n document.body.removeChild(outerDiv)\n }\n\n return cachedRTLResult\n}\n"],"mappings":";;AAIA,IAAI,kBAAwC;AAE5C,SAAgB,iBAAiB,cAAc,OAAsB;CACnE,IAAI,CAAC,UAAU,OAAO;CACtB,IAAI,oBAAoB,QAAQ,aAAa;EAC3C,MAAM,WAAW,SAAS,cAAc,KAAK;EAC7C,MAAM,aAAa,SAAS;EAC5B,WAAW,QAAQ;EACnB,WAAW,SAAS;EACpB,WAAW,WAAW;EACtB,WAAW,YAAY;EACvB,WAAW,WAAW;EACtB,WAAW,aAAa;EACxB,WAAW,MAAM;EAEjB,MAAM,WAAW,SAAS,cAAc,KAAK;EAC7C,MAAM,aAAa,SAAS;EAC5B,WAAW,QAAQ;EACnB,WAAW,SAAS;EAEpB,SAAS,YAAY,QAAQ;EAC7B,SAAS,KAAK,YAAY,QAAQ;EAElC,IAAI,SAAS,aAAa,GACxB,kBAAkB;OACb;GACL,SAAS,aAAa;GACtB,kBACE,SAAS,eAAe,IAAI,aAAa;EAC7C;EAEA,SAAS,KAAK,YAAY,QAAQ;CACpC;CAEA,OAAO;AACT"}
@@ -0,0 +1,7 @@
1
+ import mask_vue_vue_type_script_setup_true_lang_default from "./mask.vue_vue_type_script_setup_true_lang.mjs";
2
+ //#region ../../packages/components/scrollbar/src/mask.vue
3
+ var mask_default = mask_vue_vue_type_script_setup_true_lang_default;
4
+ //#endregion
5
+ export { mask_default as default };
6
+
7
+ //# sourceMappingURL=mask.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mask.mjs","names":[],"sources":["../../../../../../packages/components/scrollbar/src/mask.vue"],"sourcesContent":["<template>\n <div :class=\"ns.e('mask')\" aria-hidden=\"true\">\n <transition v-for=\"edge in edges\" :key=\"edge\" :name=\"ns.b('mask-fade')\">\n <div\n v-if=\"mask === true || mask === edge\"\n v-show=\"visible[edge]\"\n :class=\"ns.e(`${edge}-mask`)\"\n :style=\"styles[edge]\"\n aria-hidden=\"true\"\n />\n </transition>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { inject, shallowReactive, shallowRef } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { getStyle } from '@element-plus/utils'\nimport { scrollbarContextKey } from './constants'\nimport { getRTLOffsetType } from './mask-utils'\n\nimport type { CSSProperties } from 'vue'\nimport type { ScrollbarDirection, ScrollbarProps } from './scrollbar'\n\ndefineProps<{\n mask: ScrollbarProps['mask']\n}>()\n\nconst ns = useNamespace('scrollbar')\nconst scrollbar = inject(scrollbarContextKey)!\nconst edges = ['top', 'bottom', 'left', 'right'] as const\nconst visible = shallowReactive({\n top: false,\n bottom: false,\n left: false,\n right: false,\n})\nconst styles = shallowRef<Partial<Record<ScrollbarDirection, CSSProperties>>>(\n {}\n)\n\nconst handleScroll = () => {\n const wrap = scrollbar.wrapElement\n if (!wrap) return\n\n const {\n clientHeight,\n scrollHeight,\n scrollTop,\n clientWidth,\n scrollWidth,\n scrollLeft,\n } = wrap\n // Scroll offsets may be fractional, whereas scroll and client sizes are rounded.\n const maxTop = scrollHeight - clientHeight\n const maxLeft = scrollWidth - clientWidth\n const hasVerticalOverflow = clientHeight > 0 && maxTop > 1\n const hasHorizontalOverflow = clientWidth > 0 && maxLeft > 1\n let left = scrollLeft\n if (hasHorizontalOverflow && getStyle(wrap, 'direction') === 'rtl') {\n // Normalize the browser's RTL offset to the distance from the physical left.\n switch (getRTLOffsetType()) {\n case 'negative':\n left = maxLeft + scrollLeft\n break\n case 'positive-ascending':\n left = maxLeft - scrollLeft\n break\n }\n }\n\n visible.top = hasVerticalOverflow && scrollTop > 1\n visible.bottom = hasVerticalOverflow && maxTop - scrollTop > 1\n visible.left = hasHorizontalOverflow && left > 1\n visible.right = hasHorizontalOverflow && maxLeft - left > 1\n}\n\nconst update = () => {\n const { wrapElement: wrap, scrollbarElement } = scrollbar\n if (!wrap || !scrollbarElement) return\n\n // Align with the viewport, excluding native scrollbars and any wrap border.\n const {\n offsetLeft,\n offsetTop,\n clientLeft,\n clientTop,\n clientWidth,\n clientHeight,\n } = wrap\n const left = offsetLeft + clientLeft\n const top = offsetTop + clientTop\n const verticalStyle = {\n left: `${left}px`,\n width: `${clientWidth}px`,\n maxHeight: `${clientHeight}px`,\n }\n const horizontalStyle = {\n top: `${top}px`,\n height: `${clientHeight}px`,\n maxWidth: `${clientWidth}px`,\n }\n styles.value = {\n top: { ...verticalStyle, top: `${top}px` },\n bottom: {\n ...verticalStyle,\n bottom: `${scrollbarElement.clientHeight - top - clientHeight}px`,\n },\n left: { ...horizontalStyle, left: `${left}px` },\n right: {\n ...horizontalStyle,\n right: `${scrollbarElement.clientWidth - left - clientWidth}px`,\n },\n }\n handleScroll()\n}\n\ndefineExpose({ update, handleScroll })\n</script>\n"],"mappings":""}
@@ -0,0 +1,14 @@
1
+ import { ScrollbarProps } from "./scrollbar.js";
2
+ import * as _$vue from "vue";
3
+
4
+ //#region ../../packages/components/scrollbar/src/mask.vue.d.ts
5
+ type __VLS_Props = {
6
+ mask: ScrollbarProps['mask'];
7
+ };
8
+ declare const __VLS_export: _$vue.DefineComponent<__VLS_Props, {
9
+ update: () => void;
10
+ handleScroll: () => void;
11
+ }, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
12
+ declare const _default: typeof __VLS_export;
13
+ //#endregion
14
+ export { _default as default };
@@ -0,0 +1,113 @@
1
+ import { getStyle } from "../../../utils/dom/style.mjs";
2
+ import { useNamespace } from "../../../hooks/use-namespace/index.mjs";
3
+ import { scrollbarContextKey } from "./constants.mjs";
4
+ import { getRTLOffsetType } from "./mask-utils.mjs";
5
+ import { Fragment, Transition, createCommentVNode, createElementBlock, createVNode, defineComponent, inject, normalizeClass, normalizeStyle, openBlock, renderList, shallowReactive, shallowRef, unref, vShow, withCtx, withDirectives } from "vue";
6
+ //#region ../../packages/components/scrollbar/src/mask.vue?vue&type=script&setup=true&lang.ts
7
+ var mask_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
8
+ __name: "mask",
9
+ props: { mask: {
10
+ type: [Boolean, String],
11
+ required: true
12
+ } },
13
+ setup(__props, { expose: __expose }) {
14
+ const ns = useNamespace("scrollbar");
15
+ const scrollbar = inject(scrollbarContextKey);
16
+ const edges = [
17
+ "top",
18
+ "bottom",
19
+ "left",
20
+ "right"
21
+ ];
22
+ const visible = shallowReactive({
23
+ top: false,
24
+ bottom: false,
25
+ left: false,
26
+ right: false
27
+ });
28
+ const styles = shallowRef({});
29
+ const handleScroll = () => {
30
+ const wrap = scrollbar.wrapElement;
31
+ if (!wrap) return;
32
+ const { clientHeight, scrollHeight, scrollTop, clientWidth, scrollWidth, scrollLeft } = wrap;
33
+ const maxTop = scrollHeight - clientHeight;
34
+ const maxLeft = scrollWidth - clientWidth;
35
+ const hasVerticalOverflow = clientHeight > 0 && maxTop > 1;
36
+ const hasHorizontalOverflow = clientWidth > 0 && maxLeft > 1;
37
+ let left = scrollLeft;
38
+ if (hasHorizontalOverflow && getStyle(wrap, "direction") === "rtl") switch (getRTLOffsetType()) {
39
+ case "negative":
40
+ left = maxLeft + scrollLeft;
41
+ break;
42
+ case "positive-ascending": left = maxLeft - scrollLeft;
43
+ }
44
+ visible.top = hasVerticalOverflow && scrollTop > 1;
45
+ visible.bottom = hasVerticalOverflow && maxTop - scrollTop > 1;
46
+ visible.left = hasHorizontalOverflow && left > 1;
47
+ visible.right = hasHorizontalOverflow && maxLeft - left > 1;
48
+ };
49
+ const update = () => {
50
+ const { wrapElement: wrap, scrollbarElement } = scrollbar;
51
+ if (!wrap || !scrollbarElement) return;
52
+ const { offsetLeft, offsetTop, clientLeft, clientTop, clientWidth, clientHeight } = wrap;
53
+ const left = offsetLeft + clientLeft;
54
+ const top = offsetTop + clientTop;
55
+ const verticalStyle = {
56
+ left: `${left}px`,
57
+ width: `${clientWidth}px`,
58
+ maxHeight: `${clientHeight}px`
59
+ };
60
+ const horizontalStyle = {
61
+ top: `${top}px`,
62
+ height: `${clientHeight}px`,
63
+ maxWidth: `${clientWidth}px`
64
+ };
65
+ styles.value = {
66
+ top: {
67
+ ...verticalStyle,
68
+ top: `${top}px`
69
+ },
70
+ bottom: {
71
+ ...verticalStyle,
72
+ bottom: `${scrollbarElement.clientHeight - top - clientHeight}px`
73
+ },
74
+ left: {
75
+ ...horizontalStyle,
76
+ left: `${left}px`
77
+ },
78
+ right: {
79
+ ...horizontalStyle,
80
+ right: `${scrollbarElement.clientWidth - left - clientWidth}px`
81
+ }
82
+ };
83
+ handleScroll();
84
+ };
85
+ __expose({
86
+ update,
87
+ handleScroll
88
+ });
89
+ return (_ctx, _cache) => {
90
+ return openBlock(), createElementBlock("div", {
91
+ class: normalizeClass(unref(ns).e("mask")),
92
+ "aria-hidden": "true"
93
+ }, [(openBlock(), createElementBlock(Fragment, null, renderList(edges, (edge) => {
94
+ return createVNode(Transition, {
95
+ key: edge,
96
+ name: unref(ns).b("mask-fade")
97
+ }, {
98
+ default: withCtx(() => [__props.mask === true || __props.mask === edge ? withDirectives((openBlock(), createElementBlock("div", {
99
+ key: 0,
100
+ class: normalizeClass(unref(ns).e(`${edge}-mask`)),
101
+ style: normalizeStyle(styles.value[edge]),
102
+ "aria-hidden": "true"
103
+ }, null, 6)), [[vShow, unref(visible)[edge]]]) : createCommentVNode("v-if", true)]),
104
+ _: 2
105
+ }, 1032, ["name"]);
106
+ }), 64))], 2);
107
+ };
108
+ }
109
+ });
110
+ //#endregion
111
+ export { mask_vue_vue_type_script_setup_true_lang_default as default };
112
+
113
+ //# sourceMappingURL=mask.vue_vue_type_script_setup_true_lang.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mask.vue_vue_type_script_setup_true_lang.mjs","names":[],"sources":["../../../../../../packages/components/scrollbar/src/mask.vue"],"sourcesContent":["<template>\n <div :class=\"ns.e('mask')\" aria-hidden=\"true\">\n <transition v-for=\"edge in edges\" :key=\"edge\" :name=\"ns.b('mask-fade')\">\n <div\n v-if=\"mask === true || mask === edge\"\n v-show=\"visible[edge]\"\n :class=\"ns.e(`${edge}-mask`)\"\n :style=\"styles[edge]\"\n aria-hidden=\"true\"\n />\n </transition>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { inject, shallowReactive, shallowRef } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { getStyle } from '@element-plus/utils'\nimport { scrollbarContextKey } from './constants'\nimport { getRTLOffsetType } from './mask-utils'\n\nimport type { CSSProperties } from 'vue'\nimport type { ScrollbarDirection, ScrollbarProps } from './scrollbar'\n\ndefineProps<{\n mask: ScrollbarProps['mask']\n}>()\n\nconst ns = useNamespace('scrollbar')\nconst scrollbar = inject(scrollbarContextKey)!\nconst edges = ['top', 'bottom', 'left', 'right'] as const\nconst visible = shallowReactive({\n top: false,\n bottom: false,\n left: false,\n right: false,\n})\nconst styles = shallowRef<Partial<Record<ScrollbarDirection, CSSProperties>>>(\n {}\n)\n\nconst handleScroll = () => {\n const wrap = scrollbar.wrapElement\n if (!wrap) return\n\n const {\n clientHeight,\n scrollHeight,\n scrollTop,\n clientWidth,\n scrollWidth,\n scrollLeft,\n } = wrap\n // Scroll offsets may be fractional, whereas scroll and client sizes are rounded.\n const maxTop = scrollHeight - clientHeight\n const maxLeft = scrollWidth - clientWidth\n const hasVerticalOverflow = clientHeight > 0 && maxTop > 1\n const hasHorizontalOverflow = clientWidth > 0 && maxLeft > 1\n let left = scrollLeft\n if (hasHorizontalOverflow && getStyle(wrap, 'direction') === 'rtl') {\n // Normalize the browser's RTL offset to the distance from the physical left.\n switch (getRTLOffsetType()) {\n case 'negative':\n left = maxLeft + scrollLeft\n break\n case 'positive-ascending':\n left = maxLeft - scrollLeft\n break\n }\n }\n\n visible.top = hasVerticalOverflow && scrollTop > 1\n visible.bottom = hasVerticalOverflow && maxTop - scrollTop > 1\n visible.left = hasHorizontalOverflow && left > 1\n visible.right = hasHorizontalOverflow && maxLeft - left > 1\n}\n\nconst update = () => {\n const { wrapElement: wrap, scrollbarElement } = scrollbar\n if (!wrap || !scrollbarElement) return\n\n // Align with the viewport, excluding native scrollbars and any wrap border.\n const {\n offsetLeft,\n offsetTop,\n clientLeft,\n clientTop,\n clientWidth,\n clientHeight,\n } = wrap\n const left = offsetLeft + clientLeft\n const top = offsetTop + clientTop\n const verticalStyle = {\n left: `${left}px`,\n width: `${clientWidth}px`,\n maxHeight: `${clientHeight}px`,\n }\n const horizontalStyle = {\n top: `${top}px`,\n height: `${clientHeight}px`,\n maxWidth: `${clientWidth}px`,\n }\n styles.value = {\n top: { ...verticalStyle, top: `${top}px` },\n bottom: {\n ...verticalStyle,\n bottom: `${scrollbarElement.clientHeight - top - clientHeight}px`,\n },\n left: { ...horizontalStyle, left: `${left}px` },\n right: {\n ...horizontalStyle,\n right: `${scrollbarElement.clientWidth - left - clientWidth}px`,\n },\n }\n handleScroll()\n}\n\ndefineExpose({ update, handleScroll })\n</script>\n"],"mappings":";;;;;;;;;;;;;EA4BA,MAAM,KAAK,aAAa,WAAW;EACnC,MAAM,YAAY,OAAO,mBAAmB;EAC5C,MAAM,QAAQ;GAAC;GAAO;GAAU;GAAQ;EAAO;EAC/C,MAAM,UAAU,gBAAgB;GAC9B,KAAK;GACL,QAAQ;GACR,MAAM;GACN,OAAO;EACT,CAAC;EACD,MAAM,SAAS,WACb,CAAC,CACH;EAEA,MAAM,qBAAqB;GACzB,MAAM,OAAO,UAAU;GACvB,IAAI,CAAC,MAAM;GAEX,MAAM,EACJ,cACA,cACA,WACA,aACA,aACA,eACE;GAEJ,MAAM,SAAS,eAAe;GAC9B,MAAM,UAAU,cAAc;GAC9B,MAAM,sBAAsB,eAAe,KAAK,SAAS;GACzD,MAAM,wBAAwB,cAAc,KAAK,UAAU;GAC3D,IAAI,OAAO;GACX,IAAI,yBAAyB,SAAS,MAAM,WAAW,MAAM,OAE3D,QAAQ,iBAAiB,GAAzB;IACE,KAAK;KACH,OAAO,UAAU;KACjB;IACF,KAAK,sBACH,OAAO,UAAU;GAErB;GAGF,QAAQ,MAAM,uBAAuB,YAAY;GACjD,QAAQ,SAAS,uBAAuB,SAAS,YAAY;GAC7D,QAAQ,OAAO,yBAAyB,OAAO;GAC/C,QAAQ,QAAQ,yBAAyB,UAAU,OAAO;EAC5D;EAEA,MAAM,eAAe;GACnB,MAAM,EAAE,aAAa,MAAM,qBAAqB;GAChD,IAAI,CAAC,QAAQ,CAAC,kBAAkB;GAGhC,MAAM,EACJ,YACA,WACA,YACA,WACA,aACA,iBACE;GACJ,MAAM,OAAO,aAAa;GAC1B,MAAM,MAAM,YAAY;GACxB,MAAM,gBAAgB;IACpB,MAAM,GAAG,KAAK;IACd,OAAO,GAAG,YAAY;IACtB,WAAW,GAAG,aAAa;GAC7B;GACA,MAAM,kBAAkB;IACtB,KAAK,GAAG,IAAI;IACZ,QAAQ,GAAG,aAAa;IACxB,UAAU,GAAG,YAAY;GAC3B;GACA,OAAO,QAAQ;IACb,KAAK;KAAE,GAAG;KAAe,KAAK,GAAG,IAAI;IAAI;IACzC,QAAQ;KACN,GAAG;KACH,QAAQ,GAAG,iBAAiB,eAAe,MAAM,aAAa;IAChE;IACA,MAAM;KAAE,GAAG;KAAiB,MAAM,GAAG,KAAK;IAAI;IAC9C,OAAO;KACL,GAAG;KACH,OAAO,GAAG,iBAAiB,cAAc,OAAO,YAAY;IAC9D;GACF;GACA,aAAa;EACf;EAEA,SAAa;GAAE;GAAQ;EAAa,CAAC;;GApHnC,OAAA,UAAA,GAAA,mBAUM,OAAA;IAVA,OAAK,eAAE,MAAA,EAAA,CAAE,CAAC,EAAC,MAAA,CAAA;IAAU,eAAY;GACrC,GAAA,EAAA,UAAA,GAAA,mBAQa,UAAA,MAAA,WARc,QAAR,SAAI;IAAvB,OAAA,YAQa,YAAA;KARsB,KAAK;KAAO,MAAM,MAAA,EAAA,CAAE,CAAC,EAAC,WAAA;;KACvD,SAAA,cAME,CALM,QAAA,SAAI,QAAa,QAAA,SAAS,OADlC,gBAAA,UAAA,GAAA,mBAME,OAAA;;MAHC,OAAK,eAAE,MAAA,EAAA,CAAE,CAAC,EAAC,GAAI,KAAI,MAAA,CAAA;MACnB,OAAK,eAAE,OAAA,MAAO,KAAI;MACnB,eAAY;KAHJ,GAAA,MAAA,CAAA,IAAA,CAAA,CAAA,OAAA,MAAA,OAAA,CAAO,CAAC,KAAI,CAAA,CAAA,IAAA,mBAAA,QAAA,IAAA,CAAA,CAAA"}
@@ -58,6 +58,11 @@ interface ScrollbarProps {
58
58
  * @description always show
59
59
  */
60
60
  always?: boolean;
61
+ /**
62
+ * @description show gradient masks at all edges or at the specified edge while more content can be scrolled to
63
+ * @default false
64
+ */
65
+ mask?: boolean | ScrollbarDirection;
61
66
  /**
62
67
  * @description minimum size of scrollbar
63
68
  * @default 20
@@ -107,6 +112,7 @@ declare const scrollbarProps: {
107
112
  readonly noresize: BooleanConstructor;
108
113
  readonly tag: EpPropFinalized<StringConstructor, unknown, unknown, "div", boolean>;
109
114
  readonly always: BooleanConstructor;
115
+ readonly mask: EpPropFinalized<readonly [BooleanConstructor, StringConstructor], boolean | "right" | "left" | "bottom" | "top", unknown, false, boolean>;
110
116
  readonly minSize: EpPropFinalized<NumberConstructor, unknown, unknown, 20, boolean>;
111
117
  readonly tabindex: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, undefined, boolean>;
112
118
  readonly id: StringConstructor;
@@ -95,6 +95,21 @@ const scrollbarProps = buildProps({
95
95
  */
96
96
  always: Boolean,
97
97
  /**
98
+ * @description show gradient masks at all edges or at the specified edge while more content can be scrolled to
99
+ */
100
+ mask: {
101
+ type: [Boolean, String],
102
+ values: [
103
+ true,
104
+ false,
105
+ "top",
106
+ "bottom",
107
+ "left",
108
+ "right"
109
+ ],
110
+ default: false
111
+ },
112
+ /**
98
113
  * @description minimum size of scrollbar
99
114
  */
100
115
  minSize: {
@@ -1 +1 @@
1
- {"version":3,"file":"scrollbar.mjs","names":[],"sources":["../../../../../../packages/components/scrollbar/src/scrollbar.ts"],"sourcesContent":["import { buildProps, definePropType, isNumber } from '@element-plus/utils'\nimport { useAriaProps } from '@element-plus/hooks'\n\nimport type { ClassValue } from '@element-plus/utils'\nimport type { ExtractPublicPropTypes, StyleValue } from 'vue'\nimport type Scrollbar from './scrollbar.vue'\n\nexport interface ScrollbarProps {\n /**\n * @description trigger distance(px)\n * @default 0\n */\n distance?: number\n /**\n * @description height of scrollbar\n * @default ''\n */\n height?: number | string\n /**\n * @description max height of scrollbar\n * @default ''\n */\n maxHeight?: number | string\n /**\n * @description whether to use the native scrollbar\n */\n native?: boolean\n /**\n * @description style of wrap\n * @default ''\n */\n wrapStyle?: StyleValue\n /**\n * @description class of wrap\n * @default ''\n */\n wrapClass?: ClassValue\n /**\n * @description class of view\n * @default ''\n */\n viewClass?: ClassValue\n /**\n * @description style of view\n * @default ''\n */\n viewStyle?: StyleValue\n /**\n * @description do not respond to container size changes, if the container size does not change, it is better to set it to optimize performance\n */\n noresize?: boolean\n /**\n * @description element tag of the view\n * @default 'div'\n */\n tag?: keyof HTMLElementTagNameMap | (string & {})\n /**\n * @description always show\n */\n always?: boolean\n /**\n * @description minimum size of scrollbar\n * @default 20\n */\n minSize?: number\n /**\n * @description Wrap tabindex\n * @default undefined\n */\n tabindex?: number | string\n /**\n * @description id of view\n */\n id?: string\n /**\n * @description role of view\n */\n role?: string\n /**\n * @description native `aria-label` attribute\n */\n ariaLabel?: string\n /**\n * @description native `aria-orientation` attribute\n */\n ariaOrientation?: 'horizontal' | 'vertical' | 'undefined'\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `ScrollbarProps` instead.\n */\nexport const scrollbarProps = buildProps({\n /**\n * @description trigger distance(px)\n */\n distance: {\n type: Number,\n default: 0,\n },\n /**\n * @description height of scrollbar\n */\n height: {\n type: [String, Number],\n default: '',\n },\n /**\n * @description max height of scrollbar\n */\n maxHeight: {\n type: [String, Number],\n default: '',\n },\n /**\n * @description whether to use the native scrollbar\n */\n native: Boolean,\n /**\n * @description style of wrap\n */\n wrapStyle: {\n type: definePropType<StyleValue>([String, Object, Array, Boolean]),\n default: '',\n },\n /**\n * @description class of wrap\n */\n wrapClass: {\n type: definePropType<ClassValue>([String, Array, Object, Boolean]),\n default: '',\n },\n /**\n * @description class of view\n */\n viewClass: {\n type: definePropType<ClassValue>([String, Array, Object, Boolean]),\n default: '',\n },\n /**\n * @description style of view\n */\n viewStyle: {\n type: definePropType<StyleValue>([String, Object, Array, Boolean]),\n default: '',\n },\n /**\n * @description do not respond to container size changes, if the container size does not change, it is better to set it to optimize performance\n */\n noresize: Boolean, // 如果 container 尺寸不会发生变化,最好设置它可以优化性能\n /**\n * @description element tag of the view\n */\n tag: {\n type: String,\n default: 'div',\n },\n /**\n * @description always show\n */\n always: Boolean,\n /**\n * @description minimum size of scrollbar\n */\n minSize: {\n type: Number,\n default: 20,\n },\n /**\n * @description Wrap tabindex\n */\n tabindex: {\n type: [String, Number],\n default: undefined,\n },\n /**\n * @description id of view\n */\n id: String,\n /**\n * @description role of view\n */\n role: String,\n ...useAriaProps(['ariaLabel', 'ariaOrientation']),\n} as const)\n\n/**\n * @deprecated Removed after 3.0.0, Use `ScrollbarProps` instead.\n */\nexport type ScrollbarPropsPublic = ExtractPublicPropTypes<typeof scrollbarProps>\n\nexport const scrollbarEmits = {\n 'end-reached': (direction: ScrollbarDirection) =>\n ['left', 'right', 'top', 'bottom'].includes(direction),\n scroll: ({\n scrollTop,\n scrollLeft,\n }: {\n scrollTop: number\n scrollLeft: number\n }) => [scrollTop, scrollLeft].every(isNumber),\n}\nexport type ScrollbarEmits = typeof scrollbarEmits\nexport type ScrollbarDirection = 'top' | 'bottom' | 'left' | 'right'\n\nexport type ScrollbarInstance = InstanceType<typeof Scrollbar> & unknown\n"],"mappings":";;;;;;;AA2FA,MAAa,iBAAiB,WAAW;;;;CAIvC,UAAU;EACR,MAAM;EACN,SAAS;CACX;;;;CAIA,QAAQ;EACN,MAAM,CAAC,QAAQ,MAAM;EACrB,SAAS;CACX;;;;CAIA,WAAW;EACT,MAAM,CAAC,QAAQ,MAAM;EACrB,SAAS;CACX;;;;CAIA,QAAQ;;;;CAIR,WAAW;EACT,MAAM,eAA2B;GAAC;GAAQ;GAAQ;GAAO;EAAO,CAAC;EACjE,SAAS;CACX;;;;CAIA,WAAW;EACT,MAAM,eAA2B;GAAC;GAAQ;GAAO;GAAQ;EAAO,CAAC;EACjE,SAAS;CACX;;;;CAIA,WAAW;EACT,MAAM,eAA2B;GAAC;GAAQ;GAAO;GAAQ;EAAO,CAAC;EACjE,SAAS;CACX;;;;CAIA,WAAW;EACT,MAAM,eAA2B;GAAC;GAAQ;GAAQ;GAAO;EAAO,CAAC;EACjE,SAAS;CACX;;;;CAIA,UAAU;;;;CAIV,KAAK;EACH,MAAM;EACN,SAAS;CACX;;;;CAIA,QAAQ;;;;CAIR,SAAS;EACP,MAAM;EACN,SAAS;CACX;;;;CAIA,UAAU;EACR,MAAM,CAAC,QAAQ,MAAM;EACrB,SAAS,KAAA;CACX;;;;CAIA,IAAI;;;;CAIJ,MAAM;CACN,GAAG,aAAa,CAAC,aAAa,iBAAiB,CAAC;AAClD,CAAU;AAOV,MAAa,iBAAiB;CAC5B,gBAAgB,cACd;EAAC;EAAQ;EAAS;EAAO;CAAQ,CAAC,CAAC,SAAS,SAAS;CACvD,SAAS,EACP,WACA,iBAII,CAAC,WAAW,UAAU,CAAC,CAAC,MAAM,QAAQ;AAC9C"}
1
+ {"version":3,"file":"scrollbar.mjs","names":[],"sources":["../../../../../../packages/components/scrollbar/src/scrollbar.ts"],"sourcesContent":["import { buildProps, definePropType, isNumber } from '@element-plus/utils'\nimport { useAriaProps } from '@element-plus/hooks'\n\nimport type { ClassValue } from '@element-plus/utils'\nimport type { ExtractPublicPropTypes, StyleValue } from 'vue'\nimport type Scrollbar from './scrollbar.vue'\n\nexport interface ScrollbarProps {\n /**\n * @description trigger distance(px)\n * @default 0\n */\n distance?: number\n /**\n * @description height of scrollbar\n * @default ''\n */\n height?: number | string\n /**\n * @description max height of scrollbar\n * @default ''\n */\n maxHeight?: number | string\n /**\n * @description whether to use the native scrollbar\n */\n native?: boolean\n /**\n * @description style of wrap\n * @default ''\n */\n wrapStyle?: StyleValue\n /**\n * @description class of wrap\n * @default ''\n */\n wrapClass?: ClassValue\n /**\n * @description class of view\n * @default ''\n */\n viewClass?: ClassValue\n /**\n * @description style of view\n * @default ''\n */\n viewStyle?: StyleValue\n /**\n * @description do not respond to container size changes, if the container size does not change, it is better to set it to optimize performance\n */\n noresize?: boolean\n /**\n * @description element tag of the view\n * @default 'div'\n */\n tag?: keyof HTMLElementTagNameMap | (string & {})\n /**\n * @description always show\n */\n always?: boolean\n /**\n * @description show gradient masks at all edges or at the specified edge while more content can be scrolled to\n * @default false\n */\n mask?: boolean | ScrollbarDirection\n /**\n * @description minimum size of scrollbar\n * @default 20\n */\n minSize?: number\n /**\n * @description Wrap tabindex\n * @default undefined\n */\n tabindex?: number | string\n /**\n * @description id of view\n */\n id?: string\n /**\n * @description role of view\n */\n role?: string\n /**\n * @description native `aria-label` attribute\n */\n ariaLabel?: string\n /**\n * @description native `aria-orientation` attribute\n */\n ariaOrientation?: 'horizontal' | 'vertical' | 'undefined'\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `ScrollbarProps` instead.\n */\nexport const scrollbarProps = buildProps({\n /**\n * @description trigger distance(px)\n */\n distance: {\n type: Number,\n default: 0,\n },\n /**\n * @description height of scrollbar\n */\n height: {\n type: [String, Number],\n default: '',\n },\n /**\n * @description max height of scrollbar\n */\n maxHeight: {\n type: [String, Number],\n default: '',\n },\n /**\n * @description whether to use the native scrollbar\n */\n native: Boolean,\n /**\n * @description style of wrap\n */\n wrapStyle: {\n type: definePropType<StyleValue>([String, Object, Array, Boolean]),\n default: '',\n },\n /**\n * @description class of wrap\n */\n wrapClass: {\n type: definePropType<ClassValue>([String, Array, Object, Boolean]),\n default: '',\n },\n /**\n * @description class of view\n */\n viewClass: {\n type: definePropType<ClassValue>([String, Array, Object, Boolean]),\n default: '',\n },\n /**\n * @description style of view\n */\n viewStyle: {\n type: definePropType<StyleValue>([String, Object, Array, Boolean]),\n default: '',\n },\n /**\n * @description do not respond to container size changes, if the container size does not change, it is better to set it to optimize performance\n */\n noresize: Boolean, // 如果 container 尺寸不会发生变化,最好设置它可以优化性能\n /**\n * @description element tag of the view\n */\n tag: {\n type: String,\n default: 'div',\n },\n /**\n * @description always show\n */\n always: Boolean,\n /**\n * @description show gradient masks at all edges or at the specified edge while more content can be scrolled to\n */\n mask: {\n type: [Boolean, String],\n values: [true, false, 'top', 'bottom', 'left', 'right'],\n default: false,\n },\n /**\n * @description minimum size of scrollbar\n */\n minSize: {\n type: Number,\n default: 20,\n },\n /**\n * @description Wrap tabindex\n */\n tabindex: {\n type: [String, Number],\n default: undefined,\n },\n /**\n * @description id of view\n */\n id: String,\n /**\n * @description role of view\n */\n role: String,\n ...useAriaProps(['ariaLabel', 'ariaOrientation']),\n} as const)\n\n/**\n * @deprecated Removed after 3.0.0, Use `ScrollbarProps` instead.\n */\nexport type ScrollbarPropsPublic = ExtractPublicPropTypes<typeof scrollbarProps>\n\nexport const scrollbarEmits = {\n 'end-reached': (direction: ScrollbarDirection) =>\n ['left', 'right', 'top', 'bottom'].includes(direction),\n scroll: ({\n scrollTop,\n scrollLeft,\n }: {\n scrollTop: number\n scrollLeft: number\n }) => [scrollTop, scrollLeft].every(isNumber),\n}\nexport type ScrollbarEmits = typeof scrollbarEmits\nexport type ScrollbarDirection = 'top' | 'bottom' | 'left' | 'right'\n\nexport type ScrollbarInstance = InstanceType<typeof Scrollbar> & unknown\n"],"mappings":";;;;;;;AAgGA,MAAa,iBAAiB,WAAW;;;;CAIvC,UAAU;EACR,MAAM;EACN,SAAS;CACX;;;;CAIA,QAAQ;EACN,MAAM,CAAC,QAAQ,MAAM;EACrB,SAAS;CACX;;;;CAIA,WAAW;EACT,MAAM,CAAC,QAAQ,MAAM;EACrB,SAAS;CACX;;;;CAIA,QAAQ;;;;CAIR,WAAW;EACT,MAAM,eAA2B;GAAC;GAAQ;GAAQ;GAAO;EAAO,CAAC;EACjE,SAAS;CACX;;;;CAIA,WAAW;EACT,MAAM,eAA2B;GAAC;GAAQ;GAAO;GAAQ;EAAO,CAAC;EACjE,SAAS;CACX;;;;CAIA,WAAW;EACT,MAAM,eAA2B;GAAC;GAAQ;GAAO;GAAQ;EAAO,CAAC;EACjE,SAAS;CACX;;;;CAIA,WAAW;EACT,MAAM,eAA2B;GAAC;GAAQ;GAAQ;GAAO;EAAO,CAAC;EACjE,SAAS;CACX;;;;CAIA,UAAU;;;;CAIV,KAAK;EACH,MAAM;EACN,SAAS;CACX;;;;CAIA,QAAQ;;;;CAIR,MAAM;EACJ,MAAM,CAAC,SAAS,MAAM;EACtB,QAAQ;GAAC;GAAM;GAAO;GAAO;GAAU;GAAQ;EAAO;EACtD,SAAS;CACX;;;;CAIA,SAAS;EACP,MAAM;EACN,SAAS;CACX;;;;CAIA,UAAU;EACR,MAAM,CAAC,QAAQ,MAAM;EACrB,SAAS,KAAA;CACX;;;;CAIA,IAAI;;;;CAIJ,MAAM;CACN,GAAG,aAAa,CAAC,aAAa,iBAAiB,CAAC;AAClD,CAAU;AAOV,MAAa,iBAAiB;CAC5B,gBAAgB,cACd;EAAC;EAAQ;EAAS;EAAO;CAAQ,CAAC,CAAC,SAAS,SAAS;CACvD,SAAS,EACP,WACA,iBAII,CAAC,WAAW,UAAU,CAAC,CAAC,MAAM,QAAQ;AAC9C"}
@@ -30,15 +30,16 @@ declare const __VLS_base: _$vue.DefineComponent<ScrollbarProps, {
30
30
  }) => any) | undefined;
31
31
  "onEnd-reached"?: ((direction: ScrollbarDirection) => any) | undefined;
32
32
  }>, {
33
+ tag: (string & {}) | keyof HTMLElementTagNameMap;
33
34
  tabindex: string | number;
34
35
  height: string | number;
35
- maxHeight: string | number;
36
- tag: (string & {}) | keyof HTMLElementTagNameMap;
37
36
  distance: number;
37
+ maxHeight: string | number;
38
38
  wrapStyle: string | false | CSSProperties | StyleValue[] | null;
39
39
  wrapClass: string | false | Record<string, any> | ClassValue[] | null;
40
40
  viewClass: string | false | Record<string, any> | ClassValue[] | null;
41
41
  viewStyle: string | false | CSSProperties | StyleValue[] | null;
42
+ mask: boolean | ScrollbarDirection;
42
43
  minSize: number;
43
44
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
44
45
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -6,8 +6,9 @@ import { useNamespace } from "../../../hooks/use-namespace/index.mjs";
6
6
  import { scrollbarEmits, scrollbarProps } from "./scrollbar.mjs";
7
7
  import { scrollbarContextKey } from "./constants.mjs";
8
8
  import bar_default from "./bar2.mjs";
9
+ import mask_default from "./mask.mjs";
9
10
  import { useEventListener, useResizeObserver } from "@vueuse/core";
10
- import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, nextTick, normalizeClass, normalizeStyle, onActivated, onMounted, onUpdated, openBlock, provide, reactive, ref, renderSlot, resolveDynamicComponent, unref, watch, withCtx } from "vue";
11
+ import { Transition, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, nextTick, normalizeClass, normalizeStyle, onActivated, onMounted, onUpdated, openBlock, provide, reactive, ref, renderSlot, resolveDynamicComponent, unref, watch, withCtx } from "vue";
11
12
  //#region ../../packages/components/scrollbar/src/scrollbar.vue?vue&type=script&setup=true&lang.ts
12
13
  const _hoisted_1 = ["tabindex"];
13
14
  const COMPONENT_NAME = "ElScrollbar";
@@ -37,6 +38,7 @@ var scrollbar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ define
37
38
  const wrapRef = ref();
38
39
  const resizeRef = ref();
39
40
  const barRef = ref();
41
+ const maskRef = ref();
40
42
  const wrapStyle = computed(() => {
41
43
  const style = {};
42
44
  const height = addUnit(props.height);
@@ -75,6 +77,7 @@ var scrollbar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ define
75
77
  const handleScroll = () => {
76
78
  if (wrapRef.value) {
77
79
  barRef.value?.handleScroll(wrapRef.value);
80
+ maskRef.value?.handleScroll();
78
81
  const prevTop = wrapScrollTop;
79
82
  const prevLeft = wrapScrollLeft;
80
83
  wrapScrollTop = wrapRef.value.scrollTop;
@@ -118,6 +121,7 @@ var scrollbar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ define
118
121
  };
119
122
  const update = () => {
120
123
  barRef.value?.update();
124
+ maskRef.value?.update();
121
125
  distanceScrollState[direction] = false;
122
126
  if (wrapRef.value) barRef.value?.handleScroll(wrapRef.value);
123
127
  };
@@ -128,6 +132,7 @@ var scrollbar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ define
128
132
  if (!wrapRef.value) return;
129
133
  barRef.value?.update();
130
134
  barRef.value?.handleScroll(wrapRef.value);
135
+ maskRef.value?.update();
131
136
  });
132
137
  };
133
138
  watch(() => props.noresize, (noresize) => {
@@ -142,7 +147,7 @@ var scrollbar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ define
142
147
  }
143
148
  }, { immediate: true });
144
149
  watch(() => [props.maxHeight, props.height], () => {
145
- if (!props.native) nextTick(() => {
150
+ if (!props.native || props.mask) nextTick(() => {
146
151
  update();
147
152
  });
148
153
  });
@@ -154,10 +159,11 @@ var scrollbar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ define
154
159
  if (wrapRef.value) {
155
160
  wrapRef.value.scrollTop = wrapScrollTop;
156
161
  wrapRef.value.scrollLeft = wrapScrollLeft;
162
+ maskRef.value?.update();
157
163
  }
158
164
  });
159
165
  onMounted(() => {
160
- if (!props.native) nextTick(() => {
166
+ if (!props.native || props.mask) nextTick(() => {
161
167
  update();
162
168
  });
163
169
  });
@@ -181,41 +187,53 @@ var scrollbar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ define
181
187
  ref_key: "scrollbarRef",
182
188
  ref: scrollbarRef,
183
189
  class: normalizeClass(unref(ns).b())
184
- }, [createElementVNode("div", {
185
- ref_key: "wrapRef",
186
- ref: wrapRef,
187
- class: normalizeClass(wrapKls.value),
188
- style: normalizeStyle(wrapStyle.value),
189
- tabindex: __props.tabindex,
190
- onScroll: handleScroll,
191
- onTransitionend: updateBar,
192
- onAnimationend: updateBar
193
- }, [(openBlock(), createBlock(resolveDynamicComponent(__props.tag), {
194
- id: __props.id,
195
- ref_key: "resizeRef",
196
- ref: resizeRef,
197
- class: normalizeClass(resizeKls.value),
198
- style: normalizeStyle(__props.viewStyle),
199
- role: __props.role,
200
- "aria-label": __props.ariaLabel,
201
- "aria-orientation": __props.ariaOrientation
202
- }, {
203
- default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
204
- _: 3
205
- }, 8, [
206
- "id",
207
- "class",
208
- "style",
209
- "role",
210
- "aria-label",
211
- "aria-orientation"
212
- ]))], 46, _hoisted_1), !__props.native ? (openBlock(), createBlock(bar_default, {
213
- key: 0,
214
- ref_key: "barRef",
215
- ref: barRef,
216
- always: __props.always,
217
- "min-size": __props.minSize
218
- }, null, 8, ["always", "min-size"])) : createCommentVNode("v-if", true)], 2);
190
+ }, [
191
+ createElementVNode("div", {
192
+ ref_key: "wrapRef",
193
+ ref: wrapRef,
194
+ class: normalizeClass(wrapKls.value),
195
+ style: normalizeStyle(wrapStyle.value),
196
+ tabindex: __props.tabindex,
197
+ onScroll: handleScroll,
198
+ onTransitionend: updateBar,
199
+ onAnimationend: updateBar
200
+ }, [(openBlock(), createBlock(resolveDynamicComponent(__props.tag), {
201
+ id: __props.id,
202
+ ref_key: "resizeRef",
203
+ ref: resizeRef,
204
+ class: normalizeClass(resizeKls.value),
205
+ style: normalizeStyle(__props.viewStyle),
206
+ role: __props.role,
207
+ "aria-label": __props.ariaLabel,
208
+ "aria-orientation": __props.ariaOrientation
209
+ }, {
210
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
211
+ _: 3
212
+ }, 8, [
213
+ "id",
214
+ "class",
215
+ "style",
216
+ "role",
217
+ "aria-label",
218
+ "aria-orientation"
219
+ ]))], 46, _hoisted_1),
220
+ createVNode(Transition, { name: unref(ns).b("mask-fade") }, {
221
+ default: withCtx(() => [__props.mask ? (openBlock(), createBlock(mask_default, {
222
+ key: 0,
223
+ ref_key: "maskRef",
224
+ ref: maskRef,
225
+ mask: __props.mask
226
+ }, null, 8, ["mask"])) : createCommentVNode("v-if", true)]),
227
+ _: 1
228
+ }, 8, ["name"]),
229
+ !__props.native ? (openBlock(), createBlock(bar_default, {
230
+ key: 0,
231
+ ref_key: "barRef",
232
+ ref: barRef,
233
+ always: __props.always,
234
+ "min-size": __props.minSize
235
+ }, null, 8, ["always", "min-size"])) : createCommentVNode("v-if", true)
236
+ ], 2);
219
237
  };
220
238
  }
221
239
  });