element-plus 2.2.18 → 2.2.19

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 (533) hide show
  1. package/attributes.json +1 -1
  2. package/dist/index.css +1 -1
  3. package/dist/index.full.js +873 -858
  4. package/dist/index.full.min.js +20 -20
  5. package/dist/index.full.min.js.map +1 -1
  6. package/dist/index.full.min.mjs +21 -21
  7. package/dist/index.full.min.mjs.map +1 -1
  8. package/dist/index.full.mjs +874 -859
  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.js +1 -1
  14. package/dist/locale/ar.min.js +1 -1
  15. package/dist/locale/ar.min.mjs +1 -1
  16. package/dist/locale/ar.mjs +1 -1
  17. package/dist/locale/az.js +1 -1
  18. package/dist/locale/az.min.js +1 -1
  19. package/dist/locale/az.min.mjs +1 -1
  20. package/dist/locale/az.mjs +1 -1
  21. package/dist/locale/bg.js +1 -1
  22. package/dist/locale/bg.min.js +1 -1
  23. package/dist/locale/bg.min.mjs +1 -1
  24. package/dist/locale/bg.mjs +1 -1
  25. package/dist/locale/bn.js +1 -1
  26. package/dist/locale/bn.min.js +1 -1
  27. package/dist/locale/bn.min.mjs +1 -1
  28. package/dist/locale/bn.mjs +1 -1
  29. package/dist/locale/ca.js +1 -1
  30. package/dist/locale/ca.min.js +1 -1
  31. package/dist/locale/ca.min.mjs +1 -1
  32. package/dist/locale/ca.mjs +1 -1
  33. package/dist/locale/cs.js +1 -1
  34. package/dist/locale/cs.min.js +1 -1
  35. package/dist/locale/cs.min.mjs +1 -1
  36. package/dist/locale/cs.mjs +1 -1
  37. package/dist/locale/da.js +1 -1
  38. package/dist/locale/da.min.js +1 -1
  39. package/dist/locale/da.min.mjs +1 -1
  40. package/dist/locale/da.mjs +1 -1
  41. package/dist/locale/de.js +1 -1
  42. package/dist/locale/de.min.js +1 -1
  43. package/dist/locale/de.min.mjs +1 -1
  44. package/dist/locale/de.mjs +1 -1
  45. package/dist/locale/el.js +1 -1
  46. package/dist/locale/el.min.js +1 -1
  47. package/dist/locale/el.min.mjs +1 -1
  48. package/dist/locale/el.mjs +1 -1
  49. package/dist/locale/en.js +1 -1
  50. package/dist/locale/en.min.js +1 -1
  51. package/dist/locale/en.min.mjs +1 -1
  52. package/dist/locale/en.mjs +1 -1
  53. package/dist/locale/eo.js +1 -1
  54. package/dist/locale/eo.min.js +1 -1
  55. package/dist/locale/eo.min.mjs +1 -1
  56. package/dist/locale/eo.mjs +1 -1
  57. package/dist/locale/es.js +1 -1
  58. package/dist/locale/es.min.js +1 -1
  59. package/dist/locale/es.min.mjs +1 -1
  60. package/dist/locale/es.mjs +1 -1
  61. package/dist/locale/et.js +1 -1
  62. package/dist/locale/et.min.js +1 -1
  63. package/dist/locale/et.min.mjs +1 -1
  64. package/dist/locale/et.mjs +1 -1
  65. package/dist/locale/eu.js +1 -1
  66. package/dist/locale/eu.min.js +1 -1
  67. package/dist/locale/eu.min.mjs +1 -1
  68. package/dist/locale/eu.mjs +1 -1
  69. package/dist/locale/fa.js +1 -1
  70. package/dist/locale/fa.min.js +1 -1
  71. package/dist/locale/fa.min.mjs +1 -1
  72. package/dist/locale/fa.mjs +1 -1
  73. package/dist/locale/fi.js +1 -1
  74. package/dist/locale/fi.min.js +1 -1
  75. package/dist/locale/fi.min.mjs +1 -1
  76. package/dist/locale/fi.mjs +1 -1
  77. package/dist/locale/fr.js +1 -1
  78. package/dist/locale/fr.min.js +1 -1
  79. package/dist/locale/fr.min.mjs +1 -1
  80. package/dist/locale/fr.mjs +1 -1
  81. package/dist/locale/he.js +1 -1
  82. package/dist/locale/he.min.js +1 -1
  83. package/dist/locale/he.min.mjs +1 -1
  84. package/dist/locale/he.mjs +1 -1
  85. package/dist/locale/hr.js +1 -1
  86. package/dist/locale/hr.min.js +1 -1
  87. package/dist/locale/hr.min.mjs +1 -1
  88. package/dist/locale/hr.mjs +1 -1
  89. package/dist/locale/hu.js +1 -1
  90. package/dist/locale/hu.min.js +1 -1
  91. package/dist/locale/hu.min.mjs +1 -1
  92. package/dist/locale/hu.mjs +1 -1
  93. package/dist/locale/hy-am.js +1 -1
  94. package/dist/locale/hy-am.min.js +1 -1
  95. package/dist/locale/hy-am.min.mjs +1 -1
  96. package/dist/locale/hy-am.mjs +1 -1
  97. package/dist/locale/id.js +1 -1
  98. package/dist/locale/id.min.js +1 -1
  99. package/dist/locale/id.min.mjs +1 -1
  100. package/dist/locale/id.mjs +1 -1
  101. package/dist/locale/it.js +1 -1
  102. package/dist/locale/it.min.js +1 -1
  103. package/dist/locale/it.min.mjs +1 -1
  104. package/dist/locale/it.mjs +1 -1
  105. package/dist/locale/ja.js +1 -1
  106. package/dist/locale/ja.min.js +1 -1
  107. package/dist/locale/ja.min.mjs +1 -1
  108. package/dist/locale/ja.mjs +1 -1
  109. package/dist/locale/kk.js +1 -1
  110. package/dist/locale/kk.min.js +1 -1
  111. package/dist/locale/kk.min.mjs +1 -1
  112. package/dist/locale/kk.mjs +1 -1
  113. package/dist/locale/km.js +1 -1
  114. package/dist/locale/km.min.js +1 -1
  115. package/dist/locale/km.min.mjs +1 -1
  116. package/dist/locale/km.mjs +1 -1
  117. package/dist/locale/ko.js +1 -1
  118. package/dist/locale/ko.min.js +1 -1
  119. package/dist/locale/ko.min.mjs +1 -1
  120. package/dist/locale/ko.mjs +1 -1
  121. package/dist/locale/ku.js +1 -1
  122. package/dist/locale/ku.min.js +1 -1
  123. package/dist/locale/ku.min.mjs +1 -1
  124. package/dist/locale/ku.mjs +1 -1
  125. package/dist/locale/ky.js +1 -1
  126. package/dist/locale/ky.min.js +1 -1
  127. package/dist/locale/ky.min.mjs +1 -1
  128. package/dist/locale/ky.mjs +1 -1
  129. package/dist/locale/lt.js +1 -1
  130. package/dist/locale/lt.min.js +1 -1
  131. package/dist/locale/lt.min.mjs +1 -1
  132. package/dist/locale/lt.mjs +1 -1
  133. package/dist/locale/lv.js +1 -1
  134. package/dist/locale/lv.min.js +1 -1
  135. package/dist/locale/lv.min.mjs +1 -1
  136. package/dist/locale/lv.mjs +1 -1
  137. package/dist/locale/mg.js +1 -1
  138. package/dist/locale/mg.min.js +1 -1
  139. package/dist/locale/mg.min.mjs +1 -1
  140. package/dist/locale/mg.mjs +1 -1
  141. package/dist/locale/mn.js +1 -1
  142. package/dist/locale/mn.min.js +1 -1
  143. package/dist/locale/mn.min.mjs +1 -1
  144. package/dist/locale/mn.mjs +1 -1
  145. package/dist/locale/nb-no.js +1 -1
  146. package/dist/locale/nb-no.min.js +1 -1
  147. package/dist/locale/nb-no.min.mjs +1 -1
  148. package/dist/locale/nb-no.mjs +1 -1
  149. package/dist/locale/nl.js +1 -1
  150. package/dist/locale/nl.min.js +1 -1
  151. package/dist/locale/nl.min.mjs +1 -1
  152. package/dist/locale/nl.mjs +1 -1
  153. package/dist/locale/pa.js +1 -1
  154. package/dist/locale/pa.min.js +1 -1
  155. package/dist/locale/pa.min.mjs +1 -1
  156. package/dist/locale/pa.mjs +1 -1
  157. package/dist/locale/pl.js +1 -1
  158. package/dist/locale/pl.min.js +1 -1
  159. package/dist/locale/pl.min.mjs +1 -1
  160. package/dist/locale/pl.mjs +1 -1
  161. package/dist/locale/pt-br.js +1 -1
  162. package/dist/locale/pt-br.min.js +1 -1
  163. package/dist/locale/pt-br.min.mjs +1 -1
  164. package/dist/locale/pt-br.mjs +1 -1
  165. package/dist/locale/pt.js +1 -1
  166. package/dist/locale/pt.min.js +1 -1
  167. package/dist/locale/pt.min.mjs +1 -1
  168. package/dist/locale/pt.mjs +1 -1
  169. package/dist/locale/ro.js +1 -1
  170. package/dist/locale/ro.min.js +1 -1
  171. package/dist/locale/ro.min.mjs +1 -1
  172. package/dist/locale/ro.mjs +1 -1
  173. package/dist/locale/ru.js +1 -1
  174. package/dist/locale/ru.min.js +1 -1
  175. package/dist/locale/ru.min.mjs +1 -1
  176. package/dist/locale/ru.mjs +1 -1
  177. package/dist/locale/sk.js +1 -1
  178. package/dist/locale/sk.min.js +1 -1
  179. package/dist/locale/sk.min.mjs +1 -1
  180. package/dist/locale/sk.mjs +1 -1
  181. package/dist/locale/sl.js +1 -1
  182. package/dist/locale/sl.min.js +1 -1
  183. package/dist/locale/sl.min.mjs +1 -1
  184. package/dist/locale/sl.mjs +1 -1
  185. package/dist/locale/sr.js +1 -1
  186. package/dist/locale/sr.min.js +1 -1
  187. package/dist/locale/sr.min.mjs +1 -1
  188. package/dist/locale/sr.mjs +1 -1
  189. package/dist/locale/sv.js +1 -1
  190. package/dist/locale/sv.min.js +1 -1
  191. package/dist/locale/sv.min.mjs +1 -1
  192. package/dist/locale/sv.mjs +1 -1
  193. package/dist/locale/ta.js +1 -1
  194. package/dist/locale/ta.min.js +1 -1
  195. package/dist/locale/ta.min.mjs +1 -1
  196. package/dist/locale/ta.mjs +1 -1
  197. package/dist/locale/th.js +1 -1
  198. package/dist/locale/th.min.js +1 -1
  199. package/dist/locale/th.min.mjs +1 -1
  200. package/dist/locale/th.mjs +1 -1
  201. package/dist/locale/tk.js +1 -1
  202. package/dist/locale/tk.min.js +1 -1
  203. package/dist/locale/tk.min.mjs +1 -1
  204. package/dist/locale/tk.mjs +1 -1
  205. package/dist/locale/tr.js +1 -1
  206. package/dist/locale/tr.min.js +1 -1
  207. package/dist/locale/tr.min.mjs +1 -1
  208. package/dist/locale/tr.mjs +1 -1
  209. package/dist/locale/ug-cn.js +1 -1
  210. package/dist/locale/ug-cn.min.js +1 -1
  211. package/dist/locale/ug-cn.min.mjs +1 -1
  212. package/dist/locale/ug-cn.mjs +1 -1
  213. package/dist/locale/uk.js +1 -1
  214. package/dist/locale/uk.min.js +1 -1
  215. package/dist/locale/uk.min.mjs +1 -1
  216. package/dist/locale/uk.mjs +1 -1
  217. package/dist/locale/uz-uz.js +1 -1
  218. package/dist/locale/uz-uz.min.js +1 -1
  219. package/dist/locale/uz-uz.min.mjs +1 -1
  220. package/dist/locale/uz-uz.mjs +1 -1
  221. package/dist/locale/vi.js +1 -1
  222. package/dist/locale/vi.min.js +1 -1
  223. package/dist/locale/vi.min.mjs +1 -1
  224. package/dist/locale/vi.mjs +1 -1
  225. package/dist/locale/zh-cn.js +1 -1
  226. package/dist/locale/zh-cn.min.js +1 -1
  227. package/dist/locale/zh-cn.min.mjs +1 -1
  228. package/dist/locale/zh-cn.mjs +1 -1
  229. package/dist/locale/zh-tw.js +1 -1
  230. package/dist/locale/zh-tw.min.js +1 -1
  231. package/dist/locale/zh-tw.min.mjs +1 -1
  232. package/dist/locale/zh-tw.mjs +1 -1
  233. package/es/components/autocomplete/index.d.ts +53 -45
  234. package/es/components/autocomplete/src/autocomplete.d.ts +1 -3
  235. package/es/components/autocomplete/src/autocomplete.mjs.map +1 -1
  236. package/es/components/autocomplete/src/autocomplete.vue.d.ts +53 -45
  237. package/es/components/backtop/index.d.ts +2 -6
  238. package/es/components/backtop/index.mjs.map +1 -1
  239. package/es/components/backtop/src/backtop.d.ts +0 -2
  240. package/es/components/backtop/src/backtop.mjs.map +1 -1
  241. package/es/components/backtop/src/backtop.vue.d.ts +5 -10
  242. package/es/components/backtop/src/backtop2.mjs +6 -52
  243. package/es/components/backtop/src/backtop2.mjs.map +1 -1
  244. package/es/components/backtop/src/instance.d.ts +2 -0
  245. package/es/components/backtop/src/instance.mjs +2 -0
  246. package/es/components/backtop/src/instance.mjs.map +1 -0
  247. package/es/components/backtop/src/use-backtop.d.ts +6 -0
  248. package/es/components/backtop/src/use-backtop.mjs +58 -0
  249. package/es/components/backtop/src/use-backtop.mjs.map +1 -0
  250. package/es/components/button/index.d.ts +4 -10
  251. package/es/components/button/index.mjs.map +1 -1
  252. package/es/components/button/src/button-group.d.ts +0 -2
  253. package/es/components/button/src/button-group.mjs.map +1 -1
  254. package/es/components/button/src/button.d.ts +0 -2
  255. package/es/components/button/src/button.mjs.map +1 -1
  256. package/es/components/button/src/button.vue.d.ts +3 -10
  257. package/es/components/button/src/button2.mjs +5 -46
  258. package/es/components/button/src/button2.mjs.map +1 -1
  259. package/es/components/button/src/instance.d.ts +4 -0
  260. package/es/components/button/src/instance.mjs +2 -0
  261. package/es/components/button/src/instance.mjs.map +1 -0
  262. package/es/components/button/src/use-button.d.ts +10 -0
  263. package/es/components/button/src/use-button.mjs +59 -0
  264. package/es/components/button/src/use-button.mjs.map +1 -0
  265. package/es/components/calendar/index.d.ts +39 -58
  266. package/es/components/calendar/index.mjs.map +1 -1
  267. package/es/components/calendar/src/calendar.d.ts +0 -2
  268. package/es/components/calendar/src/calendar.mjs.map +1 -1
  269. package/es/components/calendar/src/calendar.vue.d.ts +101 -125
  270. package/es/components/calendar/src/calendar2.mjs +19 -134
  271. package/es/components/calendar/src/calendar2.mjs.map +1 -1
  272. package/es/components/calendar/src/date-table.d.ts +0 -2
  273. package/es/components/calendar/src/date-table.mjs.map +1 -1
  274. package/es/components/calendar/src/date-table.vue.d.ts +26 -31
  275. package/es/components/calendar/src/date-table2.mjs +14 -82
  276. package/es/components/calendar/src/date-table2.mjs.map +1 -1
  277. package/es/components/calendar/src/instance.d.ts +5 -0
  278. package/es/components/calendar/src/instance.mjs +2 -0
  279. package/es/components/calendar/src/instance.mjs.map +1 -0
  280. package/es/components/calendar/src/use-calendar.d.ts +14 -0
  281. package/es/components/calendar/src/use-calendar.mjs +140 -0
  282. package/es/components/calendar/src/use-calendar.mjs.map +1 -0
  283. package/es/components/calendar/src/use-date-table.d.ts +18 -0
  284. package/es/components/calendar/src/use-date-table.mjs +96 -0
  285. package/es/components/calendar/src/use-date-table.mjs.map +1 -0
  286. package/es/components/cascader/index.d.ts +62 -44
  287. package/es/components/cascader/src/index.mjs +2 -2
  288. package/es/components/cascader/src/index.mjs.map +1 -1
  289. package/es/components/cascader/src/index.vue.d.ts +31 -22
  290. package/es/components/cascader-panel/src/index.mjs +5 -3
  291. package/es/components/cascader-panel/src/index.mjs.map +1 -1
  292. package/es/components/color-picker/index.d.ts +21 -21
  293. package/es/components/color-picker/index.mjs +2 -2
  294. package/es/components/color-picker/src/color-picker.mjs +38 -317
  295. package/es/components/color-picker/src/color-picker.mjs.map +1 -1
  296. package/es/components/color-picker/src/color-picker.vue.d.ts +21 -21
  297. package/es/components/color-picker/src/color-picker2.mjs +317 -38
  298. package/es/components/color-picker/src/color-picker2.mjs.map +1 -1
  299. package/es/components/color-picker/src/components/predefine.mjs +1 -1
  300. package/es/components/date-picker/src/composables/use-range-picker.d.ts +1 -1
  301. package/es/components/date-picker/src/date-picker-com/basic-date-table.vue.d.ts +6 -6
  302. package/es/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +45 -45
  303. package/es/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +47 -47
  304. package/es/components/date-picker/src/date-picker-com/panel-month-range.vue.d.ts +3 -3
  305. package/es/components/date-picker/src/panel-utils.d.ts +95 -95
  306. package/es/components/dialog/index.d.ts +1 -0
  307. package/es/components/dialog/src/dialog.vue.d.ts +1 -0
  308. package/es/components/dialog/src/dialog2.mjs +4 -2
  309. package/es/components/dialog/src/dialog2.mjs.map +1 -1
  310. package/es/components/dialog/src/use-dialog.d.ts +1 -0
  311. package/es/components/dialog/src/use-dialog.mjs +7 -0
  312. package/es/components/dialog/src/use-dialog.mjs.map +1 -1
  313. package/es/components/drawer/index.d.ts +1 -0
  314. package/es/components/drawer/src/drawer.vue.d.ts +1 -0
  315. package/es/components/index.mjs +1 -1
  316. package/es/components/input/index.d.ts +18 -11
  317. package/es/components/input/src/input.d.ts +6 -1
  318. package/es/components/input/src/input.mjs +1 -2
  319. package/es/components/input/src/input.mjs.map +1 -1
  320. package/es/components/input/src/input.vue.d.ts +18 -11
  321. package/es/components/input/src/input2.mjs +5 -32
  322. package/es/components/input/src/input2.mjs.map +1 -1
  323. package/es/components/input-number/index.d.ts +49 -33
  324. package/es/components/input-number/src/input-number.vue.d.ts +49 -33
  325. package/es/components/message-box/src/message-box.type.d.ts +2 -0
  326. package/es/components/message-box/src/messageBox.mjs +20 -3
  327. package/es/components/message-box/src/messageBox.mjs.map +1 -1
  328. package/es/components/pagination/src/components/jumper.vue.d.ts +18 -11
  329. package/es/components/popconfirm/index.d.ts +3 -10
  330. package/es/components/popconfirm/src/popconfirm.vue.d.ts +3 -10
  331. package/es/components/skeleton/index.d.ts +1 -1
  332. package/es/components/skeleton/src/skeleton.vue.d.ts +1 -1
  333. package/es/components/slider/index.d.ts +49 -33
  334. package/es/components/slider/src/slider.vue.d.ts +49 -33
  335. package/es/components/switch/src/switch2.mjs +15 -34
  336. package/es/components/switch/src/switch2.mjs.map +1 -1
  337. package/es/components/table/src/table/style-helper.mjs +1 -1
  338. package/es/components/table/src/table/style-helper.mjs.map +1 -1
  339. package/es/components/table/src/table-body/render-helper.mjs +1 -1
  340. package/es/components/table/src/table-body/render-helper.mjs.map +1 -1
  341. package/es/components/table/src/table-body/styles-helper.d.ts +1 -1
  342. package/es/components/table/src/table-body/styles-helper.mjs +2 -2
  343. package/es/components/table/src/table-body/styles-helper.mjs.map +1 -1
  344. package/es/components/table/src/util.d.ts +1 -1
  345. package/es/components/table/src/util.mjs +3 -3
  346. package/es/components/table/src/util.mjs.map +1 -1
  347. package/es/components/table-v2/src/composables/use-styles.d.ts +1 -0
  348. package/es/components/table-v2/src/composables/use-styles.mjs +2 -1
  349. package/es/components/table-v2/src/composables/use-styles.mjs.map +1 -1
  350. package/es/components/table-v2/src/use-table.mjs +3 -2
  351. package/es/components/table-v2/src/use-table.mjs.map +1 -1
  352. package/es/components/time-picker/src/common/picker.mjs +2 -0
  353. package/es/components/time-picker/src/common/picker.mjs.map +1 -1
  354. package/es/components/time-picker/src/common/picker.vue.d.ts +18 -11
  355. package/es/components/time-picker/src/composables/use-time-picker.d.ts +2 -2
  356. package/es/components/time-picker/src/time-picker-com/basic-time-spinner.vue.d.ts +5 -5
  357. package/es/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts +17 -17
  358. package/es/components/time-picker/src/time-picker-com/panel-time-range.vue.d.ts +17 -17
  359. package/es/components/transfer/index.d.ts +93 -65
  360. package/es/components/transfer/src/transfer-panel.vue.d.ts +18 -11
  361. package/es/components/transfer/src/transfer.vue.d.ts +93 -65
  362. package/es/components/tree-v2/index.d.ts +868 -3
  363. package/es/components/tree-v2/src/composables/useCheck.d.ts +2 -1
  364. package/es/components/tree-v2/src/composables/useCheck.mjs.map +1 -1
  365. package/es/components/tree-v2/src/composables/useTree.d.ts +6 -3
  366. package/es/components/tree-v2/src/composables/useTree.mjs +1 -1
  367. package/es/components/tree-v2/src/composables/useTree.mjs.map +1 -1
  368. package/es/components/tree-v2/src/tree-node.mjs +63 -78
  369. package/es/components/tree-v2/src/tree-node.mjs.map +1 -1
  370. package/es/components/tree-v2/src/tree-node.vue.d.ts +566 -3
  371. package/es/components/tree-v2/src/tree.mjs +62 -75
  372. package/es/components/tree-v2/src/tree.mjs.map +1 -1
  373. package/es/components/tree-v2/src/tree.vue.d.ts +868 -3
  374. package/es/components/tree-v2/src/types.d.ts +1 -1
  375. package/es/components/tree-v2/src/virtual-tree.d.ts +3 -2
  376. package/es/components/tree-v2/src/virtual-tree.mjs.map +1 -1
  377. package/es/index.mjs +1 -1
  378. package/es/version.d.ts +1 -1
  379. package/es/version.mjs +1 -1
  380. package/es/version.mjs.map +1 -1
  381. package/lib/components/autocomplete/index.d.ts +53 -45
  382. package/lib/components/autocomplete/src/autocomplete.d.ts +1 -3
  383. package/lib/components/autocomplete/src/autocomplete.js.map +1 -1
  384. package/lib/components/autocomplete/src/autocomplete.vue.d.ts +53 -45
  385. package/lib/components/backtop/index.d.ts +2 -6
  386. package/lib/components/backtop/index.js.map +1 -1
  387. package/lib/components/backtop/src/backtop.d.ts +0 -2
  388. package/lib/components/backtop/src/backtop.js.map +1 -1
  389. package/lib/components/backtop/src/backtop.vue.d.ts +5 -10
  390. package/lib/components/backtop/src/backtop2.js +5 -51
  391. package/lib/components/backtop/src/backtop2.js.map +1 -1
  392. package/lib/components/backtop/src/instance.d.ts +2 -0
  393. package/lib/components/backtop/src/instance.js +3 -0
  394. package/lib/components/backtop/src/instance.js.map +1 -0
  395. package/lib/components/backtop/src/use-backtop.d.ts +6 -0
  396. package/lib/components/backtop/src/use-backtop.js +62 -0
  397. package/lib/components/backtop/src/use-backtop.js.map +1 -0
  398. package/lib/components/button/index.d.ts +4 -10
  399. package/lib/components/button/index.js.map +1 -1
  400. package/lib/components/button/src/button-group.d.ts +0 -2
  401. package/lib/components/button/src/button-group.js.map +1 -1
  402. package/lib/components/button/src/button.d.ts +0 -2
  403. package/lib/components/button/src/button.js.map +1 -1
  404. package/lib/components/button/src/button.vue.d.ts +3 -10
  405. package/lib/components/button/src/button2.js +8 -49
  406. package/lib/components/button/src/button2.js.map +1 -1
  407. package/lib/components/button/src/instance.d.ts +4 -0
  408. package/lib/components/button/src/instance.js +3 -0
  409. package/lib/components/button/src/instance.js.map +1 -0
  410. package/lib/components/button/src/use-button.d.ts +10 -0
  411. package/lib/components/button/src/use-button.js +63 -0
  412. package/lib/components/button/src/use-button.js.map +1 -0
  413. package/lib/components/calendar/index.d.ts +39 -58
  414. package/lib/components/calendar/index.js.map +1 -1
  415. package/lib/components/calendar/src/calendar.d.ts +0 -2
  416. package/lib/components/calendar/src/calendar.js.map +1 -1
  417. package/lib/components/calendar/src/calendar.vue.d.ts +101 -125
  418. package/lib/components/calendar/src/calendar2.js +23 -142
  419. package/lib/components/calendar/src/calendar2.js.map +1 -1
  420. package/lib/components/calendar/src/date-table.d.ts +0 -2
  421. package/lib/components/calendar/src/date-table.js.map +1 -1
  422. package/lib/components/calendar/src/date-table.vue.d.ts +26 -31
  423. package/lib/components/calendar/src/date-table2.js +15 -88
  424. package/lib/components/calendar/src/date-table2.js.map +1 -1
  425. package/lib/components/calendar/src/instance.d.ts +5 -0
  426. package/lib/components/calendar/src/instance.js +3 -0
  427. package/lib/components/calendar/src/instance.js.map +1 -0
  428. package/lib/components/calendar/src/use-calendar.d.ts +14 -0
  429. package/lib/components/calendar/src/use-calendar.js +148 -0
  430. package/lib/components/calendar/src/use-calendar.js.map +1 -0
  431. package/lib/components/calendar/src/use-date-table.d.ts +18 -0
  432. package/lib/components/calendar/src/use-date-table.js +105 -0
  433. package/lib/components/calendar/src/use-date-table.js.map +1 -0
  434. package/lib/components/cascader/index.d.ts +62 -44
  435. package/lib/components/cascader/src/index.js +1 -1
  436. package/lib/components/cascader/src/index.js.map +1 -1
  437. package/lib/components/cascader/src/index.vue.d.ts +31 -22
  438. package/lib/components/cascader-panel/src/index.js +4 -2
  439. package/lib/components/cascader-panel/src/index.js.map +1 -1
  440. package/lib/components/color-picker/index.d.ts +21 -21
  441. package/lib/components/color-picker/index.js +2 -2
  442. package/lib/components/color-picker/src/color-picker.js +38 -315
  443. package/lib/components/color-picker/src/color-picker.js.map +1 -1
  444. package/lib/components/color-picker/src/color-picker.vue.d.ts +21 -21
  445. package/lib/components/color-picker/src/color-picker2.js +315 -38
  446. package/lib/components/color-picker/src/color-picker2.js.map +1 -1
  447. package/lib/components/color-picker/src/components/predefine.js +1 -1
  448. package/lib/components/date-picker/src/composables/use-range-picker.d.ts +1 -1
  449. package/lib/components/date-picker/src/date-picker-com/basic-date-table.vue.d.ts +6 -6
  450. package/lib/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +45 -45
  451. package/lib/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +47 -47
  452. package/lib/components/date-picker/src/date-picker-com/panel-month-range.vue.d.ts +3 -3
  453. package/lib/components/date-picker/src/panel-utils.d.ts +95 -95
  454. package/lib/components/dialog/index.d.ts +1 -0
  455. package/lib/components/dialog/src/dialog.vue.d.ts +1 -0
  456. package/lib/components/dialog/src/dialog2.js +4 -2
  457. package/lib/components/dialog/src/dialog2.js.map +1 -1
  458. package/lib/components/dialog/src/use-dialog.d.ts +1 -0
  459. package/lib/components/dialog/src/use-dialog.js +7 -0
  460. package/lib/components/dialog/src/use-dialog.js.map +1 -1
  461. package/lib/components/drawer/index.d.ts +1 -0
  462. package/lib/components/drawer/src/drawer.vue.d.ts +1 -0
  463. package/lib/components/index.js +1 -1
  464. package/lib/components/input/index.d.ts +18 -11
  465. package/lib/components/input/src/input.d.ts +6 -1
  466. package/lib/components/input/src/input.js +1 -2
  467. package/lib/components/input/src/input.js.map +1 -1
  468. package/lib/components/input/src/input.vue.d.ts +18 -11
  469. package/lib/components/input/src/input2.js +4 -31
  470. package/lib/components/input/src/input2.js.map +1 -1
  471. package/lib/components/input-number/index.d.ts +49 -33
  472. package/lib/components/input-number/src/input-number.vue.d.ts +49 -33
  473. package/lib/components/message-box/src/message-box.type.d.ts +2 -0
  474. package/lib/components/message-box/src/messageBox.js +18 -1
  475. package/lib/components/message-box/src/messageBox.js.map +1 -1
  476. package/lib/components/pagination/src/components/jumper.vue.d.ts +18 -11
  477. package/lib/components/popconfirm/index.d.ts +3 -10
  478. package/lib/components/popconfirm/src/popconfirm.vue.d.ts +3 -10
  479. package/lib/components/skeleton/index.d.ts +1 -1
  480. package/lib/components/skeleton/src/skeleton.vue.d.ts +1 -1
  481. package/lib/components/slider/index.d.ts +49 -33
  482. package/lib/components/slider/src/slider.vue.d.ts +49 -33
  483. package/lib/components/switch/src/switch2.js +14 -33
  484. package/lib/components/switch/src/switch2.js.map +1 -1
  485. package/lib/components/table/src/table/style-helper.js +1 -1
  486. package/lib/components/table/src/table/style-helper.js.map +1 -1
  487. package/lib/components/table/src/table-body/render-helper.js +1 -1
  488. package/lib/components/table/src/table-body/render-helper.js.map +1 -1
  489. package/lib/components/table/src/table-body/styles-helper.d.ts +1 -1
  490. package/lib/components/table/src/table-body/styles-helper.js +2 -2
  491. package/lib/components/table/src/table-body/styles-helper.js.map +1 -1
  492. package/lib/components/table/src/util.d.ts +1 -1
  493. package/lib/components/table/src/util.js +3 -3
  494. package/lib/components/table/src/util.js.map +1 -1
  495. package/lib/components/table-v2/src/composables/use-styles.d.ts +1 -0
  496. package/lib/components/table-v2/src/composables/use-styles.js +2 -1
  497. package/lib/components/table-v2/src/composables/use-styles.js.map +1 -1
  498. package/lib/components/table-v2/src/use-table.js +3 -2
  499. package/lib/components/table-v2/src/use-table.js.map +1 -1
  500. package/lib/components/time-picker/src/common/picker.js +2 -0
  501. package/lib/components/time-picker/src/common/picker.js.map +1 -1
  502. package/lib/components/time-picker/src/common/picker.vue.d.ts +18 -11
  503. package/lib/components/time-picker/src/composables/use-time-picker.d.ts +2 -2
  504. package/lib/components/time-picker/src/time-picker-com/basic-time-spinner.vue.d.ts +5 -5
  505. package/lib/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts +17 -17
  506. package/lib/components/time-picker/src/time-picker-com/panel-time-range.vue.d.ts +17 -17
  507. package/lib/components/transfer/index.d.ts +93 -65
  508. package/lib/components/transfer/src/transfer-panel.vue.d.ts +18 -11
  509. package/lib/components/transfer/src/transfer.vue.d.ts +93 -65
  510. package/lib/components/tree-v2/index.d.ts +868 -3
  511. package/lib/components/tree-v2/src/composables/useCheck.d.ts +2 -1
  512. package/lib/components/tree-v2/src/composables/useCheck.js.map +1 -1
  513. package/lib/components/tree-v2/src/composables/useTree.d.ts +6 -3
  514. package/lib/components/tree-v2/src/composables/useTree.js +1 -1
  515. package/lib/components/tree-v2/src/composables/useTree.js.map +1 -1
  516. package/lib/components/tree-v2/src/tree-node.js +66 -81
  517. package/lib/components/tree-v2/src/tree-node.js.map +1 -1
  518. package/lib/components/tree-v2/src/tree-node.vue.d.ts +566 -3
  519. package/lib/components/tree-v2/src/tree.js +61 -74
  520. package/lib/components/tree-v2/src/tree.js.map +1 -1
  521. package/lib/components/tree-v2/src/tree.vue.d.ts +868 -3
  522. package/lib/components/tree-v2/src/types.d.ts +1 -1
  523. package/lib/components/tree-v2/src/virtual-tree.d.ts +3 -2
  524. package/lib/components/tree-v2/src/virtual-tree.js.map +1 -1
  525. package/lib/index.js +1 -1
  526. package/lib/version.d.ts +1 -1
  527. package/lib/version.js +1 -1
  528. package/lib/version.js.map +1 -1
  529. package/package.json +2 -2
  530. package/theme-chalk/el-switch.css +1 -1
  531. package/theme-chalk/index.css +1 -1
  532. package/theme-chalk/src/switch.scss +37 -41
  533. package/web-types.json +1 -1
@@ -48,13 +48,9 @@ declare const _default: import("vue").DefineComponent<{
48
48
  onFocus?: ((evt: FocusEvent) => any) | undefined;
49
49
  onBlur?: ((evt: FocusEvent) => any) | undefined;
50
50
  onClear?: (() => any) | undefined;
51
- onSelect?: ((item: {
52
- value: any;
53
- }) => any) | undefined;
51
+ onSelect?: ((item: Record<string, any>) => any) | undefined;
54
52
  }>>;
55
- emit: ((event: "update:modelValue", value: string) => void) & ((event: "change", value: string) => void) & ((event: "input", value: string) => void) & ((event: "focus", evt: FocusEvent) => void) & ((event: "blur", evt: FocusEvent) => void) & ((event: "clear") => void) & ((event: "select", item: {
56
- value: any;
57
- }) => void);
53
+ emit: ((event: "update:modelValue", value: string) => void) & ((event: "change", value: string) => void) & ((event: "input", value: string) => void) & ((event: "focus", evt: FocusEvent) => void) & ((event: "blur", evt: FocusEvent) => void) & ((event: "clear") => void) & ((event: "select", item: Record<string, any>) => void);
58
54
  attrs: import("vue").ComputedRef<Record<string, unknown>>;
59
55
  rawAttrs: {
60
56
  [x: string]: unknown;
@@ -90,7 +86,6 @@ declare const _default: import("vue").DefineComponent<{
90
86
  readonly id: string;
91
87
  readonly autosize: import("element-plus/es/components/input").InputAutoSize;
92
88
  readonly autocomplete: string;
93
- readonly form: string;
94
89
  readonly readonly: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
95
90
  readonly clearable: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
96
91
  readonly showPassword: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
@@ -135,7 +130,12 @@ declare const _default: import("vue").DefineComponent<{
135
130
  readonly validator: ((val: unknown) => boolean) | undefined;
136
131
  __epPropKey: true;
137
132
  };
138
- readonly form: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
133
+ readonly form: {
134
+ readonly type: import("vue").PropType<string>;
135
+ readonly required: false;
136
+ readonly validator: ((val: unknown) => boolean) | undefined;
137
+ __epPropKey: true;
138
+ };
139
139
  readonly readonly: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
140
140
  readonly clearable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
141
141
  readonly showPassword: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
@@ -170,7 +170,7 @@ declare const _default: import("vue").DefineComponent<{
170
170
  onCompositionstart?: ((evt: CompositionEvent) => any) | undefined;
171
171
  onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined;
172
172
  onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
173
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "disabled" | "label" | "modelValue" | "validateEvent" | "id" | "autosize" | "autocomplete" | "form" | "readonly" | "clearable" | "showPassword" | "showWordLimit" | "containerRole" | "tabindex" | "inputStyle">;
173
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "disabled" | "label" | "modelValue" | "validateEvent" | "id" | "autosize" | "autocomplete" | "readonly" | "clearable" | "showPassword" | "showWordLimit" | "containerRole" | "tabindex" | "inputStyle">;
174
174
  $attrs: {
175
175
  [x: string]: unknown;
176
176
  };
@@ -221,7 +221,12 @@ declare const _default: import("vue").DefineComponent<{
221
221
  readonly validator: ((val: unknown) => boolean) | undefined;
222
222
  __epPropKey: true;
223
223
  };
224
- readonly form: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
224
+ readonly form: {
225
+ readonly type: import("vue").PropType<string>;
226
+ readonly required: false;
227
+ readonly validator: ((val: unknown) => boolean) | undefined;
228
+ __epPropKey: true;
229
+ };
225
230
  readonly readonly: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
226
231
  readonly clearable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
227
232
  readonly showPassword: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
@@ -257,10 +262,6 @@ declare const _default: import("vue").DefineComponent<{
257
262
  onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined;
258
263
  onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
259
264
  }, {
260
- PENDANT_MAP: {
261
- readonly suffix: "append";
262
- readonly prefix: "prepend";
263
- };
264
265
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
265
266
  readonly id: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
266
267
  readonly size: {
@@ -298,7 +299,12 @@ declare const _default: import("vue").DefineComponent<{
298
299
  readonly validator: ((val: unknown) => boolean) | undefined;
299
300
  __epPropKey: true;
300
301
  };
301
- readonly form: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
302
+ readonly form: {
303
+ readonly type: import("vue").PropType<string>;
304
+ readonly required: false;
305
+ readonly validator: ((val: unknown) => boolean) | undefined;
306
+ __epPropKey: true;
307
+ };
302
308
  readonly readonly: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
303
309
  readonly clearable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
304
310
  readonly showPassword: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
@@ -335,7 +341,6 @@ declare const _default: import("vue").DefineComponent<{
335
341
  onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
336
342
  }>>;
337
343
  emit: ((event: "update:modelValue", value: string) => void) & ((event: "change", value: string) => void) & ((event: "input", value: string) => void) & ((event: "focus", evt: FocusEvent) => void) & ((event: "blur", evt: FocusEvent) => void) & ((event: "clear") => void) & ((event: "mouseleave", evt: MouseEvent) => void) & ((event: "mouseenter", evt: MouseEvent) => void) & ((event: "keydown", evt: Event | KeyboardEvent) => void) & ((event: "compositionstart", evt: CompositionEvent) => void) & ((event: "compositionupdate", evt: CompositionEvent) => void) & ((event: "compositionend", evt: CompositionEvent) => void);
338
- instance: import("vue").ComponentInternalInstance;
339
344
  rawAttrs: {
340
345
  [x: string]: unknown;
341
346
  };
@@ -411,8 +416,6 @@ declare const _default: import("vue").DefineComponent<{
411
416
  setCursor: () => void;
412
417
  resizeTextarea: () => void;
413
418
  setNativeInputValue: () => void;
414
- calcIconOffset: (place: "suffix" | "prefix") => void;
415
- updateIconOffset: () => void;
416
419
  handleInput: (event: Event) => Promise<void>;
417
420
  handleChange: (event: Event) => void;
418
421
  handleCompositionStart: (event: CompositionEvent) => void;
@@ -515,7 +518,6 @@ declare const _default: import("vue").DefineComponent<{
515
518
  readonly id: string;
516
519
  readonly autosize: import("element-plus/es/components/input").InputAutoSize;
517
520
  readonly autocomplete: string;
518
- readonly form: string;
519
521
  readonly readonly: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
520
522
  readonly clearable: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
521
523
  readonly showPassword: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
@@ -580,7 +582,12 @@ declare const _default: import("vue").DefineComponent<{
580
582
  readonly validator: ((val: unknown) => boolean) | undefined;
581
583
  __epPropKey: true;
582
584
  };
583
- readonly form: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
585
+ readonly form: {
586
+ readonly type: import("vue").PropType<string>;
587
+ readonly required: false;
588
+ readonly validator: ((val: unknown) => boolean) | undefined;
589
+ __epPropKey: true;
590
+ };
584
591
  readonly readonly: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
585
592
  readonly clearable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
586
593
  readonly showPassword: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
@@ -616,10 +623,6 @@ declare const _default: import("vue").DefineComponent<{
616
623
  onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined;
617
624
  onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
618
625
  } & import("vue").ShallowUnwrapRef<{
619
- PENDANT_MAP: {
620
- readonly suffix: "append";
621
- readonly prefix: "prepend";
622
- };
623
626
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
624
627
  readonly id: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
625
628
  readonly size: {
@@ -657,7 +660,12 @@ declare const _default: import("vue").DefineComponent<{
657
660
  readonly validator: ((val: unknown) => boolean) | undefined;
658
661
  __epPropKey: true;
659
662
  };
660
- readonly form: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
663
+ readonly form: {
664
+ readonly type: import("vue").PropType<string>;
665
+ readonly required: false;
666
+ readonly validator: ((val: unknown) => boolean) | undefined;
667
+ __epPropKey: true;
668
+ };
661
669
  readonly readonly: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
662
670
  readonly clearable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
663
671
  readonly showPassword: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
@@ -694,7 +702,6 @@ declare const _default: import("vue").DefineComponent<{
694
702
  onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
695
703
  }>>;
696
704
  emit: ((event: "update:modelValue", value: string) => void) & ((event: "change", value: string) => void) & ((event: "input", value: string) => void) & ((event: "focus", evt: FocusEvent) => void) & ((event: "blur", evt: FocusEvent) => void) & ((event: "clear") => void) & ((event: "mouseleave", evt: MouseEvent) => void) & ((event: "mouseenter", evt: MouseEvent) => void) & ((event: "keydown", evt: Event | KeyboardEvent) => void) & ((event: "compositionstart", evt: CompositionEvent) => void) & ((event: "compositionupdate", evt: CompositionEvent) => void) & ((event: "compositionend", evt: CompositionEvent) => void);
697
- instance: import("vue").ComponentInternalInstance;
698
705
  rawAttrs: {
699
706
  [x: string]: unknown;
700
707
  };
@@ -770,8 +777,6 @@ declare const _default: import("vue").DefineComponent<{
770
777
  setCursor: () => void;
771
778
  resizeTextarea: () => void;
772
779
  setNativeInputValue: () => void;
773
- calcIconOffset: (place: "suffix" | "prefix") => void;
774
- updateIconOffset: () => void;
775
780
  handleInput: (event: Event) => Promise<void>;
776
781
  handleChange: (event: Event) => void;
777
782
  handleCompositionStart: (event: CompositionEvent) => void;
@@ -6989,7 +6994,12 @@ declare const _default: import("vue").DefineComponent<{
6989
6994
  readonly validator: ((val: unknown) => boolean) | undefined;
6990
6995
  __epPropKey: true;
6991
6996
  };
6992
- readonly form: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
6997
+ readonly form: {
6998
+ readonly type: import("vue").PropType<string>;
6999
+ readonly required: false;
7000
+ readonly validator: ((val: unknown) => boolean) | undefined;
7001
+ __epPropKey: true;
7002
+ };
6993
7003
  readonly readonly: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
6994
7004
  readonly clearable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
6995
7005
  readonly showPassword: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
@@ -7012,10 +7022,6 @@ declare const _default: import("vue").DefineComponent<{
7012
7022
  readonly validateEvent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
7013
7023
  readonly inputStyle: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => StyleValue & {}) | (() => StyleValue) | ((new (...args: any[]) => StyleValue & {}) | (() => StyleValue))[], unknown, unknown, () => import("element-plus/es/utils").Mutable<{}>, boolean>;
7014
7024
  }, {
7015
- PENDANT_MAP: {
7016
- readonly suffix: "append";
7017
- readonly prefix: "prepend";
7018
- };
7019
7025
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
7020
7026
  readonly id: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
7021
7027
  readonly size: {
@@ -7053,7 +7059,12 @@ declare const _default: import("vue").DefineComponent<{
7053
7059
  readonly validator: ((val: unknown) => boolean) | undefined;
7054
7060
  __epPropKey: true;
7055
7061
  };
7056
- readonly form: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
7062
+ readonly form: {
7063
+ readonly type: import("vue").PropType<string>;
7064
+ readonly required: false;
7065
+ readonly validator: ((val: unknown) => boolean) | undefined;
7066
+ __epPropKey: true;
7067
+ };
7057
7068
  readonly readonly: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
7058
7069
  readonly clearable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
7059
7070
  readonly showPassword: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
@@ -7090,7 +7101,6 @@ declare const _default: import("vue").DefineComponent<{
7090
7101
  onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
7091
7102
  }>>;
7092
7103
  emit: ((event: "update:modelValue", value: string) => void) & ((event: "change", value: string) => void) & ((event: "input", value: string) => void) & ((event: "focus", evt: FocusEvent) => void) & ((event: "blur", evt: FocusEvent) => void) & ((event: "clear") => void) & ((event: "mouseleave", evt: MouseEvent) => void) & ((event: "mouseenter", evt: MouseEvent) => void) & ((event: "keydown", evt: Event | KeyboardEvent) => void) & ((event: "compositionstart", evt: CompositionEvent) => void) & ((event: "compositionupdate", evt: CompositionEvent) => void) & ((event: "compositionend", evt: CompositionEvent) => void);
7093
- instance: import("vue").ComponentInternalInstance;
7094
7104
  rawAttrs: {
7095
7105
  [x: string]: unknown;
7096
7106
  };
@@ -7166,8 +7176,6 @@ declare const _default: import("vue").DefineComponent<{
7166
7176
  setCursor: () => void;
7167
7177
  resizeTextarea: () => void;
7168
7178
  setNativeInputValue: () => void;
7169
- calcIconOffset: (place: "suffix" | "prefix") => void;
7170
- updateIconOffset: () => void;
7171
7179
  handleInput: (event: Event) => Promise<void>;
7172
7180
  handleChange: (event: Event) => void;
7173
7181
  handleCompositionStart: (event: CompositionEvent) => void;
@@ -7298,7 +7306,12 @@ declare const _default: import("vue").DefineComponent<{
7298
7306
  readonly validator: ((val: unknown) => boolean) | undefined;
7299
7307
  __epPropKey: true;
7300
7308
  };
7301
- readonly form: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
7309
+ readonly form: {
7310
+ readonly type: import("vue").PropType<string>;
7311
+ readonly required: false;
7312
+ readonly validator: ((val: unknown) => boolean) | undefined;
7313
+ __epPropKey: true;
7314
+ };
7302
7315
  readonly readonly: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
7303
7316
  readonly clearable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
7304
7317
  readonly showPassword: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
@@ -7342,7 +7355,6 @@ declare const _default: import("vue").DefineComponent<{
7342
7355
  readonly id: string;
7343
7356
  readonly autosize: import("element-plus/es/components/input").InputAutoSize;
7344
7357
  readonly autocomplete: string;
7345
- readonly form: string;
7346
7358
  readonly readonly: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
7347
7359
  readonly clearable: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
7348
7360
  readonly showPassword: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
@@ -11120,9 +11132,7 @@ declare const _default: import("vue").DefineComponent<{
11120
11132
  focus: (evt: FocusEvent) => boolean;
11121
11133
  blur: (evt: FocusEvent) => boolean;
11122
11134
  clear: () => boolean;
11123
- select: (item: {
11124
- value: any;
11125
- }) => boolean;
11135
+ select: (item: Record<string, any>) => boolean;
11126
11136
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
11127
11137
  readonly valueKey: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "value", boolean>;
11128
11138
  readonly modelValue: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
@@ -11149,9 +11159,7 @@ declare const _default: import("vue").DefineComponent<{
11149
11159
  onFocus?: ((evt: FocusEvent) => any) | undefined;
11150
11160
  onBlur?: ((evt: FocusEvent) => any) | undefined;
11151
11161
  onClear?: (() => any) | undefined;
11152
- onSelect?: ((item: {
11153
- value: any;
11154
- }) => any) | undefined;
11162
+ onSelect?: ((item: Record<string, any>) => any) | undefined;
11155
11163
  }, {
11156
11164
  readonly modelValue: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
11157
11165
  readonly debounce: number;
@@ -56,17 +56,12 @@ export declare const ElBacktop: import("element-plus/es/utils").SFCWithInstall<i
56
56
  cssVarBlock: (object: Record<string, string>) => Record<string, string>;
57
57
  cssVarBlockName: (name: string) => string;
58
58
  };
59
- el: import("vue").ShallowRef<HTMLElement | undefined>;
60
- container: import("vue").ShallowRef<HTMLElement | Document | undefined>;
59
+ handleClick: (event: MouseEvent) => void;
61
60
  visible: import("vue").Ref<boolean>;
62
61
  backTopStyle: import("vue").ComputedRef<{
63
62
  right: string;
64
63
  bottom: string;
65
64
  }>;
66
- scrollToTop: () => void;
67
- handleScroll: () => void;
68
- handleClick: (event: MouseEvent) => void;
69
- handleScrollThrottled: () => void;
70
65
  ElIcon: import("element-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
71
66
  readonly size: {
72
67
  readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
@@ -160,3 +155,4 @@ export declare const ElBacktop: import("element-plus/es/utils").SFCWithInstall<i
160
155
  }>> & Record<string, any>;
161
156
  export default ElBacktop;
162
157
  export * from './src/backtop';
158
+ export type { BacktopInstance } from './src/instance';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../packages/components/backtop/index.ts"],"sourcesContent":["import { withInstall } from '@element-plus/utils'\n\nimport Backtop from './src/backtop.vue'\n\nexport const ElBacktop = withInstall(Backtop)\nexport default ElBacktop\n\nexport * from './src/backtop'\n"],"names":["withInstall","Backtop"],"mappings":";;;;;;;;;AAEY,MAAC,SAAS,GAAGA,mBAAW,CAACC,oBAAO;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../../packages/components/backtop/index.ts"],"sourcesContent":["import { withInstall } from '@element-plus/utils'\n\nimport Backtop from './src/backtop.vue'\n\nexport const ElBacktop = withInstall(Backtop)\nexport default ElBacktop\n\nexport * from './src/backtop'\nexport type { BacktopInstance } from './src/instance'\n"],"names":["withInstall","Backtop"],"mappings":";;;;;;;;;AAEY,MAAC,SAAS,GAAGA,mBAAW,CAACC,oBAAO;;;;;;;"}
@@ -1,5 +1,4 @@
1
1
  import type { ExtractPropTypes } from 'vue';
2
- import type Backtop from './backtop.vue';
3
2
  export declare const backtopProps: {
4
3
  readonly visibilityHeight: {
5
4
  readonly type: NumberConstructor;
@@ -23,4 +22,3 @@ export declare const backtopEmits: {
23
22
  click: (evt: MouseEvent) => boolean;
24
23
  };
25
24
  export declare type BacktopEmits = typeof backtopEmits;
26
- export declare type BacktopInstance = InstanceType<typeof Backtop>;
@@ -1 +1 @@
1
- {"version":3,"file":"backtop.js","sources":["../../../../../../packages/components/backtop/src/backtop.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\nimport type Backtop from './backtop.vue'\n\nexport const backtopProps = {\n visibilityHeight: {\n type: Number,\n default: 200,\n },\n target: {\n type: String,\n default: '',\n },\n right: {\n type: Number,\n default: 40,\n },\n bottom: {\n type: Number,\n default: 40,\n },\n} as const\nexport type BacktopProps = ExtractPropTypes<typeof backtopProps>\n\nexport const backtopEmits = {\n click: (evt: MouseEvent) => evt instanceof MouseEvent,\n}\nexport type BacktopEmits = typeof backtopEmits\n\nexport type BacktopInstance = InstanceType<typeof Backtop>\n"],"names":[],"mappings":";;;;AAAY,MAAC,YAAY,GAAG;AAC5B,EAAE,gBAAgB,EAAE;AACpB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE;AACU,MAAC,YAAY,GAAG;AAC5B,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC3C;;;;;"}
1
+ {"version":3,"file":"backtop.js","sources":["../../../../../../packages/components/backtop/src/backtop.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\n\nexport const backtopProps = {\n visibilityHeight: {\n type: Number,\n default: 200,\n },\n target: {\n type: String,\n default: '',\n },\n right: {\n type: Number,\n default: 40,\n },\n bottom: {\n type: Number,\n default: 40,\n },\n} as const\nexport type BacktopProps = ExtractPropTypes<typeof backtopProps>\n\nexport const backtopEmits = {\n click: (evt: MouseEvent) => evt instanceof MouseEvent,\n}\nexport type BacktopEmits = typeof backtopEmits\n"],"names":[],"mappings":";;;;AAAY,MAAC,YAAY,GAAG;AAC5B,EAAE,gBAAgB,EAAE;AACpB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE;AACU,MAAC,YAAY,GAAG;AAC5B,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC3C;;;;;"}
@@ -56,20 +56,15 @@ declare const _default: import("vue").DefineComponent<{
56
56
  cssVarBlock: (object: Record<string, string>) => Record<string, string>;
57
57
  cssVarBlockName: (name: string) => string;
58
58
  };
59
- el: import("vue").ShallowRef<HTMLElement | undefined>;
60
- container: import("vue").ShallowRef<HTMLElement | Document | undefined>;
59
+ handleClick: (event: MouseEvent) => void;
61
60
  visible: import("vue").Ref<boolean>;
62
61
  backTopStyle: import("vue").ComputedRef<{
63
62
  right: string;
64
63
  bottom: string;
65
64
  }>;
66
- scrollToTop: () => void;
67
- handleScroll: () => void;
68
- handleClick: (event: MouseEvent) => void;
69
- handleScrollThrottled: () => void;
70
- ElIcon: import("element-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
65
+ ElIcon: import("../../../utils").SFCWithInstall<import("vue").DefineComponent<{
71
66
  readonly size: {
72
- readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
67
+ readonly type: import("vue").PropType<import("../../../utils").EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
73
68
  readonly required: false;
74
69
  readonly validator: ((val: unknown) => boolean) | undefined;
75
70
  __epPropKey: true;
@@ -83,7 +78,7 @@ declare const _default: import("vue").DefineComponent<{
83
78
  }, {
84
79
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
85
80
  readonly size: {
86
- readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
81
+ readonly type: import("vue").PropType<import("../../../utils").EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
87
82
  readonly required: false;
88
83
  readonly validator: ((val: unknown) => boolean) | undefined;
89
84
  __epPropKey: true;
@@ -118,7 +113,7 @@ declare const _default: import("vue").DefineComponent<{
118
113
  style: import("vue").ComputedRef<import("vue").CSSProperties>;
119
114
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
120
115
  readonly size: {
121
- readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
116
+ readonly type: import("vue").PropType<import("../../../utils").EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
122
117
  readonly required: false;
123
118
  readonly validator: ((val: unknown) => boolean) | undefined;
124
119
  __epPropKey: true;
@@ -3,18 +3,14 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var vue = require('vue');
6
- var core = require('@vueuse/core');
7
6
  var index$1 = require('../../icon/index.js');
8
- require('../../../utils/index.js');
9
7
  var iconsVue = require('@element-plus/icons-vue');
10
8
  require('../../../hooks/index.js');
11
9
  var backtop = require('./backtop.js');
10
+ var useBacktop = require('./use-backtop.js');
12
11
  var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
13
12
  var index = require('../../../hooks/use-namespace/index.js');
14
- var animation = require('../../../utils/animation.js');
15
- var error = require('../../../utils/error.js');
16
13
 
17
- const _hoisted_1 = ["onClick"];
18
14
  const COMPONENT_NAME = "ElBacktop";
19
15
  const __default__ = vue.defineComponent({
20
16
  name: COMPONENT_NAME
@@ -26,63 +22,21 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
26
22
  setup(__props, { emit }) {
27
23
  const props = __props;
28
24
  const ns = index.useNamespace("backtop");
29
- const el = vue.shallowRef();
30
- const container = vue.shallowRef();
31
- const visible = vue.ref(false);
25
+ const { handleClick, visible } = useBacktop.useBackTop(props, emit, COMPONENT_NAME);
32
26
  const backTopStyle = vue.computed(() => ({
33
27
  right: `${props.right}px`,
34
28
  bottom: `${props.bottom}px`
35
29
  }));
36
- const scrollToTop = () => {
37
- if (!el.value)
38
- return;
39
- const beginTime = Date.now();
40
- const beginValue = el.value.scrollTop;
41
- const frameFunc = () => {
42
- if (!el.value)
43
- return;
44
- const progress = (Date.now() - beginTime) / 500;
45
- if (progress < 1) {
46
- el.value.scrollTop = beginValue * (1 - animation.easeInOutCubic(progress));
47
- requestAnimationFrame(frameFunc);
48
- } else {
49
- el.value.scrollTop = 0;
50
- }
51
- };
52
- requestAnimationFrame(frameFunc);
53
- };
54
- const handleScroll = () => {
55
- if (el.value)
56
- visible.value = el.value.scrollTop >= props.visibilityHeight;
57
- };
58
- const handleClick = (event) => {
59
- scrollToTop();
60
- emit("click", event);
61
- };
62
- const handleScrollThrottled = core.useThrottleFn(handleScroll, 300, true);
63
- core.useEventListener(container, "scroll", handleScrollThrottled);
64
- vue.onMounted(() => {
65
- var _a;
66
- container.value = document;
67
- el.value = document.documentElement;
68
- if (props.target) {
69
- el.value = (_a = document.querySelector(props.target)) != null ? _a : void 0;
70
- if (!el.value) {
71
- error.throwError(COMPONENT_NAME, `target is not existed: ${props.target}`);
72
- }
73
- container.value = el.value;
74
- }
75
- });
76
30
  return (_ctx, _cache) => {
77
31
  return vue.openBlock(), vue.createBlock(vue.Transition, {
78
32
  name: `${vue.unref(ns).namespace.value}-fade-in`
79
33
  }, {
80
34
  default: vue.withCtx(() => [
81
- visible.value ? (vue.openBlock(), vue.createElementBlock("div", {
35
+ vue.unref(visible) ? (vue.openBlock(), vue.createElementBlock("div", {
82
36
  key: 0,
83
37
  style: vue.normalizeStyle(vue.unref(backTopStyle)),
84
38
  class: vue.normalizeClass(vue.unref(ns).b()),
85
- onClick: vue.withModifiers(handleClick, ["stop"])
39
+ onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => vue.unref(handleClick) && vue.unref(handleClick)(...args), ["stop"]))
86
40
  }, [
87
41
  vue.renderSlot(_ctx.$slots, "default", {}, () => [
88
42
  vue.createVNode(vue.unref(index$1.ElIcon), {
@@ -94,7 +48,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
94
48
  _: 1
95
49
  }, 8, ["class"])
96
50
  ])
97
- ], 14, _hoisted_1)) : vue.createCommentVNode("v-if", true)
51
+ ], 6)) : vue.createCommentVNode("v-if", true)
98
52
  ]),
99
53
  _: 3
100
54
  }, 8, ["name"]);
@@ -1 +1 @@
1
- {"version":3,"file":"backtop2.js","sources":["../../../../../../packages/components/backtop/src/backtop.vue"],"sourcesContent":["<template>\n <transition :name=\"`${ns.namespace.value}-fade-in`\">\n <div\n v-if=\"visible\"\n :style=\"backTopStyle\"\n :class=\"ns.b()\"\n @click.stop=\"handleClick\"\n >\n <slot>\n <el-icon :class=\"ns.e('icon')\"><caret-top /></el-icon>\n </slot>\n </div>\n </transition>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, onMounted, ref, shallowRef } from 'vue'\nimport { useEventListener, useThrottleFn } from '@vueuse/core'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { easeInOutCubic, throwError } from '@element-plus/utils'\nimport { CaretTop } from '@element-plus/icons-vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { backtopEmits, backtopProps } from './backtop'\n\nconst COMPONENT_NAME = 'ElBacktop'\ndefineOptions({\n name: COMPONENT_NAME,\n})\n\nconst props = defineProps(backtopProps)\nconst emit = defineEmits(backtopEmits)\n\nconst ns = useNamespace('backtop')\nconst el = shallowRef<HTMLElement>()\nconst container = shallowRef<Document | HTMLElement>()\nconst visible = ref(false)\n\nconst backTopStyle = computed(() => ({\n right: `${props.right}px`,\n bottom: `${props.bottom}px`,\n}))\n\nconst scrollToTop = () => {\n // TODO: use https://developer.mozilla.org/en-US/docs/Web/API/Window/scrollTo, with behavior: 'smooth'\n\n if (!el.value) return\n const beginTime = Date.now()\n const beginValue = el.value.scrollTop\n const frameFunc = () => {\n if (!el.value) return\n const progress = (Date.now() - beginTime) / 500\n if (progress < 1) {\n el.value.scrollTop = beginValue * (1 - easeInOutCubic(progress))\n requestAnimationFrame(frameFunc)\n } else {\n el.value.scrollTop = 0\n }\n }\n requestAnimationFrame(frameFunc)\n}\nconst handleScroll = () => {\n if (el.value) visible.value = el.value.scrollTop >= props.visibilityHeight\n}\nconst handleClick = (event: MouseEvent) => {\n scrollToTop()\n emit('click', event)\n}\n\nconst handleScrollThrottled = useThrottleFn(handleScroll, 300, true)\n\nuseEventListener(container, 'scroll', handleScrollThrottled)\nonMounted(() => {\n container.value = document\n el.value = document.documentElement\n\n if (props.target) {\n el.value = document.querySelector<HTMLElement>(props.target) ?? undefined\n if (!el.value) {\n throwError(COMPONENT_NAME, `target is not existed: ${props.target}`)\n }\n container.value = el.value\n }\n})\n</script>\n"],"names":["useNamespace","shallowRef","ref","computed","easeInOutCubic","useThrottleFn","useEventListener","onMounted","throwError"],"mappings":";;;;;;;;;;;;;;;;;;uCAyBc,CAAA;AAAA,EACZ,IAAM,EAAA,cAAA;AACR;;;;;;;AAKA,IAAM,MAAA,EAAA,GAAKA,mBAAa,SAAS,CAAA,CAAA;AACjC,IAAA,MAAM,KAAKC,cAAwB,EAAA,CAAA;AACnC,IAAA,MAAM,YAAYA,cAAmC,EAAA,CAAA;AACrD,IAAM,MAAA,OAAA,GAAUC,QAAI,KAAK,CAAA,CAAA;AAEzB,IAAM,MAAA,YAAA,GAAeC,aAAS,OAAO;AAAA,MACnC,KAAA,EAAO,GAAG,KAAM,CAAA,KAAA,CAAA,EAAA,CAAA;AAAA,MAChB,MAAA,EAAQ,GAAG,KAAM,CAAA,MAAA,CAAA,EAAA,CAAA;AAAA,KACjB,CAAA,CAAA,CAAA;AAEF,IAAA,MAAM,cAAc,MAAM;AAGxB,MAAA,IAAI,CAAC,EAAG,CAAA,KAAA;AAAO,QAAA,OAAA;AACf,MAAM,MAAA,SAAA,GAAY,KAAK,GAAI,EAAA,CAAA;AAC3B,MAAM,MAAA,UAAA,GAAa,GAAG,KAAM,CAAA,SAAA,CAAA;AAC5B,MAAA,MAAM,YAAY,MAAM;AACtB,QAAA,IAAI,CAAC,EAAG,CAAA,KAAA;AAAO,UAAA,OAAA;AACf,QAAA,MAAM,QAAY,GAAA,CAAA,IAAA,CAAK,GAAI,EAAA,GAAI,SAAa,IAAA,GAAA,CAAA;AAC5C,QAAA,IAAI,WAAW,CAAG,EAAA;AAChB,UAAA,EAAA,CAAG,KAAM,CAAA,SAAA,GAAY,UAAc,IAAA,CAAA,GAAIC,yBAAe,QAAQ,CAAA,CAAA,CAAA;AAC9D,UAAA,qBAAA,CAAsB,SAAS,CAAA,CAAA;AAAA,SAC1B,MAAA;AACL,UAAA,EAAA,CAAG,MAAM,SAAY,GAAA,CAAA,CAAA;AAAA,SACvB;AAAA,OACF,CAAA;AACA,MAAA,qBAAA,CAAsB,SAAS,CAAA,CAAA;AAAA,KACjC,CAAA;AACA,IAAA,MAAM,eAAe,MAAM;AACzB,MAAA,IAAI,EAAG,CAAA,KAAA;AAAO,QAAA,OAAA,CAAQ,KAAQ,GAAA,EAAA,CAAG,KAAM,CAAA,SAAA,IAAa,KAAM,CAAA,gBAAA,CAAA;AAAA,KAC5D,CAAA;AACA,IAAM,MAAA,WAAA,GAAc,CAAC,KAAsB,KAAA;AACzC,MAAY,WAAA,EAAA,CAAA;AACZ,MAAA,IAAA,CAAK,SAAS,KAAK,CAAA,CAAA;AAAA,KACrB,CAAA;AAEA,IAAA,MAAM,qBAAwB,GAAAC,kBAAA,CAAc,YAAc,EAAA,GAAA,EAAK,IAAI,CAAA,CAAA;AAEnE,IAAiBC,qBAAA,CAAA,SAAA,EAAW,UAAU,qBAAqB,CAAA,CAAA;AAC3D,IAAAC,aAAA,CAAU,MAAM;AACd,MAAA,IAAA,EAAA,CAAA;AACA,MAAA,eAAoB,GAAA,QAAA,CAAA;AAEpB,MAAA,EAAA,CAAA,QAAkB,QAAA,CAAA,eAAA,CAAA;AAChB,MAAA,IAAA,KAAW,CAAA,MAAA,EAAA;AACX,QAAI,EAAA,CAAA,KAAI,GAAO,CAAA,EAAA,GAAA,QAAA,CAAA,aAAA,CAAA,KAAA,CAAA,MAAA,CAAA,KAAA,IAAA,GAAA,EAAA,GAAA,KAAA,CAAA,CAAA;AACb,QAAW,IAAA,CAAA,EAAA,CAAA,KAAA,EAAA;AAAwD,UACrEC,gBAAA,CAAA,cAAA,EAAA,CAAA,uBAAA,EAAA,KAAA,CAAA,MAAA,CAAA,CAAA,CAAA,CAAA;AACA,SAAA;AAAqB,QACvB,SAAA,CAAA,KAAA,GAAA,EAAA,CAAA,KAAA,CAAA;AAAA,OACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"backtop2.js","sources":["../../../../../../packages/components/backtop/src/backtop.vue"],"sourcesContent":["<template>\n <transition :name=\"`${ns.namespace.value}-fade-in`\">\n <div\n v-if=\"visible\"\n :style=\"backTopStyle\"\n :class=\"ns.b()\"\n @click.stop=\"handleClick\"\n >\n <slot>\n <el-icon :class=\"ns.e('icon')\"><caret-top /></el-icon>\n </slot>\n </div>\n </transition>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { CaretTop } from '@element-plus/icons-vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { backtopEmits, backtopProps } from './backtop'\nimport { useBackTop } from './use-backtop'\n\nconst COMPONENT_NAME = 'ElBacktop'\n\ndefineOptions({\n name: COMPONENT_NAME,\n})\n\nconst props = defineProps(backtopProps)\nconst emit = defineEmits(backtopEmits)\n\nconst ns = useNamespace('backtop')\n\nconst { handleClick, visible } = useBackTop(props, emit, COMPONENT_NAME)\n\nconst backTopStyle = computed(() => ({\n right: `${props.right}px`,\n bottom: `${props.bottom}px`,\n}))\n</script>\n"],"names":["useNamespace","useBackTop","computed"],"mappings":";;;;;;;;;;;;;;uCAyBc,CAAA;AAAA,EACZ,IAAM,EAAA,cAAA;AACR;;;;;;;AAKA,IAAM,MAAA,EAAA,GAAKA,mBAAa,SAAS,CAAA,CAAA;AAEjC,IAAA,MAAM,EAAE,WAAa,EAAA,OAAA,EAAA,GAAYC,qBAAW,CAAA,KAAA,EAAO,MAAM,cAAc,CAAA,CAAA;AAEvE,IAAM,MAAA,YAAA,GAAeC,aAAS,OAAO;AAAA,MACnC,KAAA,EAAO,GAAG,KAAM,CAAA,KAAA,CAAA,EAAA,CAAA;AAAA,MAChB,MAAA,EAAQ,GAAG,KAAM,CAAA,MAAA,CAAA,EAAA,CAAA;AAAA,KACjB,CAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,2 @@
1
+ import type Backtop from './backtop.vue';
2
+ export declare type BacktopInstance = InstanceType<typeof Backtop>;
@@ -0,0 +1,3 @@
1
+ 'use strict';
2
+
3
+ //# sourceMappingURL=instance.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instance.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
@@ -0,0 +1,6 @@
1
+ import type { SetupContext } from 'vue';
2
+ import type { BacktopEmits, BacktopProps } from './backtop';
3
+ export declare const useBackTop: (props: BacktopProps, emit: SetupContext<BacktopEmits>['emit'], componentName: string) => {
4
+ visible: import("vue").Ref<boolean>;
5
+ handleClick: (event: MouseEvent) => void;
6
+ };
@@ -0,0 +1,62 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var vue = require('vue');
6
+ var core = require('@vueuse/core');
7
+ require('../../../utils/index.js');
8
+ var animation = require('../../../utils/animation.js');
9
+ var error = require('../../../utils/error.js');
10
+
11
+ const useBackTop = (props, emit, componentName) => {
12
+ const el = vue.shallowRef();
13
+ const container = vue.shallowRef();
14
+ const visible = vue.ref(false);
15
+ const scrollToTop = () => {
16
+ if (!el.value)
17
+ return;
18
+ const beginTime = Date.now();
19
+ const beginValue = el.value.scrollTop;
20
+ const frameFunc = () => {
21
+ if (!el.value)
22
+ return;
23
+ const progress = (Date.now() - beginTime) / 500;
24
+ if (progress < 1) {
25
+ el.value.scrollTop = beginValue * (1 - animation.easeInOutCubic(progress));
26
+ requestAnimationFrame(frameFunc);
27
+ } else {
28
+ el.value.scrollTop = 0;
29
+ }
30
+ };
31
+ requestAnimationFrame(frameFunc);
32
+ };
33
+ const handleScroll = () => {
34
+ if (el.value)
35
+ visible.value = el.value.scrollTop >= props.visibilityHeight;
36
+ };
37
+ const handleClick = (event) => {
38
+ scrollToTop();
39
+ emit("click", event);
40
+ };
41
+ const handleScrollThrottled = core.useThrottleFn(handleScroll, 300, true);
42
+ core.useEventListener(container, "scroll", handleScrollThrottled);
43
+ vue.onMounted(() => {
44
+ var _a;
45
+ container.value = document;
46
+ el.value = document.documentElement;
47
+ if (props.target) {
48
+ el.value = (_a = document.querySelector(props.target)) != null ? _a : void 0;
49
+ if (!el.value) {
50
+ error.throwError(componentName, `target does not exist: ${props.target}`);
51
+ }
52
+ container.value = el.value;
53
+ }
54
+ });
55
+ return {
56
+ visible,
57
+ handleClick
58
+ };
59
+ };
60
+
61
+ exports.useBackTop = useBackTop;
62
+ //# sourceMappingURL=use-backtop.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-backtop.js","sources":["../../../../../../packages/components/backtop/src/use-backtop.ts"],"sourcesContent":["import { onMounted, ref, shallowRef } from 'vue'\nimport { useEventListener, useThrottleFn } from '@vueuse/core'\nimport { easeInOutCubic, throwError } from '@element-plus/utils'\n\nimport type { SetupContext } from 'vue'\nimport type { BacktopEmits, BacktopProps } from './backtop'\n\nexport const useBackTop = (\n props: BacktopProps,\n emit: SetupContext<BacktopEmits>['emit'],\n componentName: string\n) => {\n const el = shallowRef<HTMLElement>()\n const container = shallowRef<Document | HTMLElement>()\n const visible = ref(false)\n\n const scrollToTop = () => {\n // TODO: use https://developer.mozilla.org/en-US/docs/Web/API/Window/scrollTo, with behavior: 'smooth'\n\n if (!el.value) return\n const beginTime = Date.now()\n const beginValue = el.value.scrollTop\n const frameFunc = () => {\n if (!el.value) return\n const progress = (Date.now() - beginTime) / 500\n if (progress < 1) {\n el.value.scrollTop = beginValue * (1 - easeInOutCubic(progress))\n requestAnimationFrame(frameFunc)\n } else {\n el.value.scrollTop = 0\n }\n }\n requestAnimationFrame(frameFunc)\n }\n const handleScroll = () => {\n if (el.value) visible.value = el.value.scrollTop >= props.visibilityHeight\n }\n\n const handleClick = (event: MouseEvent) => {\n scrollToTop()\n emit('click', event)\n }\n\n const handleScrollThrottled = useThrottleFn(handleScroll, 300, true)\n\n useEventListener(container, 'scroll', handleScrollThrottled)\n onMounted(() => {\n container.value = document\n el.value = document.documentElement\n\n if (props.target) {\n el.value = document.querySelector<HTMLElement>(props.target) ?? undefined\n if (!el.value) {\n throwError(componentName, `target does not exist: ${props.target}`)\n }\n container.value = el.value\n }\n })\n\n return {\n visible,\n handleClick,\n }\n}\n"],"names":["shallowRef","ref","easeInOutCubic","useThrottleFn","useEventListener","onMounted","throwError"],"mappings":";;;;;;;;;;AAGY,MAAC,UAAU,GAAG,CAAC,KAAK,EAAE,IAAI,EAAE,aAAa,KAAK;AAC1D,EAAE,MAAM,EAAE,GAAGA,cAAU,EAAE,CAAC;AAC1B,EAAE,MAAM,SAAS,GAAGA,cAAU,EAAE,CAAC;AACjC,EAAE,MAAM,OAAO,GAAGC,OAAG,CAAC,KAAK,CAAC,CAAC;AAC7B,EAAE,MAAM,WAAW,GAAG,MAAM;AAC5B,IAAI,IAAI,CAAC,EAAE,CAAC,KAAK;AACjB,MAAM,OAAO;AACb,IAAI,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;AACjC,IAAI,MAAM,UAAU,GAAG,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC;AAC1C,IAAI,MAAM,SAAS,GAAG,MAAM;AAC5B,MAAM,IAAI,CAAC,EAAE,CAAC,KAAK;AACnB,QAAQ,OAAO;AACf,MAAM,MAAM,QAAQ,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,SAAS,IAAI,GAAG,CAAC;AACtD,MAAM,IAAI,QAAQ,GAAG,CAAC,EAAE;AACxB,QAAQ,EAAE,CAAC,KAAK,CAAC,SAAS,GAAG,UAAU,IAAI,CAAC,GAAGC,wBAAc,CAAC,QAAQ,CAAC,CAAC,CAAC;AACzE,QAAQ,qBAAqB,CAAC,SAAS,CAAC,CAAC;AACzC,OAAO,MAAM;AACb,QAAQ,EAAE,CAAC,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC;AAC/B,OAAO;AACP,KAAK,CAAC;AACN,IAAI,qBAAqB,CAAC,SAAS,CAAC,CAAC;AACrC,GAAG,CAAC;AACJ,EAAE,MAAM,YAAY,GAAG,MAAM;AAC7B,IAAI,IAAI,EAAE,CAAC,KAAK;AAChB,MAAM,OAAO,CAAC,KAAK,GAAG,EAAE,CAAC,KAAK,CAAC,SAAS,IAAI,KAAK,CAAC,gBAAgB,CAAC;AACnE,GAAG,CAAC;AACJ,EAAE,MAAM,WAAW,GAAG,CAAC,KAAK,KAAK;AACjC,IAAI,WAAW,EAAE,CAAC;AAClB,IAAI,IAAI,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;AACzB,GAAG,CAAC;AACJ,EAAE,MAAM,qBAAqB,GAAGC,kBAAa,CAAC,YAAY,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;AACvE,EAAEC,qBAAgB,CAAC,SAAS,EAAE,QAAQ,EAAE,qBAAqB,CAAC,CAAC;AAC/D,EAAEC,aAAS,CAAC,MAAM;AAClB,IAAI,IAAI,EAAE,CAAC;AACX,IAAI,SAAS,CAAC,KAAK,GAAG,QAAQ,CAAC;AAC/B,IAAI,EAAE,CAAC,KAAK,GAAG,QAAQ,CAAC,eAAe,CAAC;AACxC,IAAI,IAAI,KAAK,CAAC,MAAM,EAAE;AACtB,MAAM,EAAE,CAAC,KAAK,GAAG,CAAC,EAAE,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,IAAI,GAAG,EAAE,GAAG,KAAK,CAAC,CAAC;AACnF,MAAM,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE;AACrB,QAAQC,gBAAU,CAAC,aAAa,EAAE,CAAC,uBAAuB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AAC5E,OAAO;AACP,MAAM,SAAS,CAAC,KAAK,GAAG,EAAE,CAAC,KAAK,CAAC;AACjC,KAAK;AACL,GAAG,CAAC,CAAC;AACL,EAAE,OAAO;AACT,IAAI,OAAO;AACX,IAAI,WAAW;AACf,GAAG,CAAC;AACJ;;;;"}
@@ -59,11 +59,7 @@ export declare const ElButton: import("element-plus/es/utils").SFCWithInstall<im
59
59
  onClick?: ((evt: MouseEvent) => any) | undefined;
60
60
  }>>;
61
61
  emit: (event: "click", evt: MouseEvent) => void;
62
- slots: Readonly<{
63
- [name: string]: import("vue").Slot | undefined;
64
- }>;
65
- buttonGroupContext: import("../..").ButtonGroupContext | undefined;
66
- globalConfig: import("vue").Ref<import("./src/button").ButtonConfigContext | undefined>;
62
+ buttonStyle: import("vue").ComputedRef<Record<string, string>>;
67
63
  ns: {
68
64
  namespace: import("vue").Ref<string>;
69
65
  b: (blockSuffix?: string) => string;
@@ -82,14 +78,11 @@ export declare const ElButton: import("element-plus/es/utils").SFCWithInstall<im
82
78
  cssVarBlock: (object: Record<string, string>) => Record<string, string>;
83
79
  cssVarBlockName: (name: string) => string;
84
80
  };
85
- form: import("../..").FormContext | undefined;
86
- _size: import("vue").ComputedRef<"" | "default" | "small" | "large">;
87
- _disabled: import("vue").ComputedRef<boolean>;
88
81
  _ref: import("vue").Ref<HTMLButtonElement | undefined>;
82
+ _size: import("vue").ComputedRef<"" | "default" | "small" | "large">;
89
83
  _type: import("vue").ComputedRef<"" | "default" | "primary" | "success" | "warning" | "info" | "danger" | "text">;
90
- autoInsertSpace: import("vue").ComputedRef<import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
84
+ _disabled: import("vue").ComputedRef<boolean>;
91
85
  shouldAddSpace: import("vue").ComputedRef<boolean>;
92
- buttonStyle: import("vue").ComputedRef<Record<string, string>>;
93
86
  handleClick: (evt: MouseEvent) => void;
94
87
  ElIcon: import("element-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
95
88
  readonly size: {
@@ -303,3 +296,4 @@ export declare const ElButtonGroup: import("element-plus/es/utils").SFCWithInsta
303
296
  }>>;
304
297
  export default ElButton;
305
298
  export * from './src/button';
299
+ export type { ButtonInstance, ButtonGroupInstance } from './src/instance';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../packages/components/button/index.ts"],"sourcesContent":["import { withInstall, withNoopInstall } from '@element-plus/utils'\nimport Button from './src/button.vue'\nimport ButtonGroup from './src/button-group.vue'\n\nexport const ElButton = withInstall(Button, {\n ButtonGroup,\n})\nexport const ElButtonGroup = withNoopInstall(ButtonGroup)\nexport default ElButton\n\nexport * from './src/button'\n"],"names":["withInstall","Button","ButtonGroup","withNoopInstall"],"mappings":";;;;;;;;;;AAGY,MAAC,QAAQ,GAAGA,mBAAW,CAACC,mBAAM,EAAE;AAC5C,eAAEC,sBAAW;AACb,CAAC,EAAE;AACS,MAAC,aAAa,GAAGC,uBAAe,CAACD,sBAAW;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../../packages/components/button/index.ts"],"sourcesContent":["import { withInstall, withNoopInstall } from '@element-plus/utils'\nimport Button from './src/button.vue'\nimport ButtonGroup from './src/button-group.vue'\n\nexport const ElButton = withInstall(Button, {\n ButtonGroup,\n})\nexport const ElButtonGroup = withNoopInstall(ButtonGroup)\nexport default ElButton\n\nexport * from './src/button'\nexport type { ButtonInstance, ButtonGroupInstance } from './src/instance'\n"],"names":["withInstall","Button","ButtonGroup","withNoopInstall"],"mappings":";;;;;;;;;;AAGY,MAAC,QAAQ,GAAGA,mBAAW,CAACC,mBAAM,EAAE;AAC5C,eAAEC,sBAAW;AACb,CAAC,EAAE;AACS,MAAC,aAAa,GAAGC,uBAAe,CAACD,sBAAW;;;;;;;;;;"}
@@ -1,5 +1,4 @@
1
1
  import type { ExtractPropTypes } from 'vue';
2
- import type buttonGroup from './button-group.vue';
3
2
  export declare const buttonGroupProps: {
4
3
  readonly size: {
5
4
  readonly type: import("vue").PropType<import("../../../utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
@@ -10,4 +9,3 @@ export declare const buttonGroupProps: {
10
9
  readonly type: import("../../../utils").EpPropFinalized<StringConstructor, "" | "default" | "primary" | "success" | "warning" | "info" | "danger" | "text", unknown, "", boolean>;
11
10
  };
12
11
  export declare type ButtonGroupProps = ExtractPropTypes<typeof buttonGroupProps>;
13
- export declare type ButtonGroupInstance = InstanceType<typeof buttonGroup>;