@element-plus/nightly 0.0.20240226 → 0.0.20240228

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 (874) hide show
  1. package/attributes.json +1 -1
  2. package/dist/index.css +1 -1
  3. package/dist/index.full.js +1194 -856
  4. package/dist/index.full.min.js +24 -24
  5. package/dist/index.full.min.js.map +1 -1
  6. package/dist/index.full.min.mjs +25 -25
  7. package/dist/index.full.min.mjs.map +1 -1
  8. package/dist/index.full.mjs +1192 -858
  9. package/dist/locale/af.js +1 -1
  10. package/dist/locale/af.min.js +1 -1
  11. package/dist/locale/af.min.mjs +1 -1
  12. package/dist/locale/af.mjs +1 -1
  13. package/dist/locale/ar-eg.js +1 -1
  14. package/dist/locale/ar-eg.min.js +1 -1
  15. package/dist/locale/ar-eg.min.mjs +1 -1
  16. package/dist/locale/ar-eg.mjs +1 -1
  17. package/dist/locale/ar.js +1 -1
  18. package/dist/locale/ar.min.js +1 -1
  19. package/dist/locale/ar.min.mjs +1 -1
  20. package/dist/locale/ar.mjs +1 -1
  21. package/dist/locale/az.js +1 -1
  22. package/dist/locale/az.min.js +1 -1
  23. package/dist/locale/az.min.mjs +1 -1
  24. package/dist/locale/az.mjs +1 -1
  25. package/dist/locale/bg.js +1 -1
  26. package/dist/locale/bg.min.js +1 -1
  27. package/dist/locale/bg.min.mjs +1 -1
  28. package/dist/locale/bg.mjs +1 -1
  29. package/dist/locale/bn.js +1 -1
  30. package/dist/locale/bn.min.js +1 -1
  31. package/dist/locale/bn.min.mjs +1 -1
  32. package/dist/locale/bn.mjs +1 -1
  33. package/dist/locale/ca.js +1 -1
  34. package/dist/locale/ca.min.js +1 -1
  35. package/dist/locale/ca.min.mjs +1 -1
  36. package/dist/locale/ca.mjs +1 -1
  37. package/dist/locale/ckb.js +1 -1
  38. package/dist/locale/ckb.min.js +1 -1
  39. package/dist/locale/ckb.min.mjs +1 -1
  40. package/dist/locale/ckb.mjs +1 -1
  41. package/dist/locale/cs.js +1 -1
  42. package/dist/locale/cs.min.js +1 -1
  43. package/dist/locale/cs.min.mjs +1 -1
  44. package/dist/locale/cs.mjs +1 -1
  45. package/dist/locale/da.js +1 -1
  46. package/dist/locale/da.min.js +1 -1
  47. package/dist/locale/da.min.mjs +1 -1
  48. package/dist/locale/da.mjs +1 -1
  49. package/dist/locale/de.js +1 -1
  50. package/dist/locale/de.min.js +1 -1
  51. package/dist/locale/de.min.mjs +1 -1
  52. package/dist/locale/de.mjs +1 -1
  53. package/dist/locale/el.js +1 -1
  54. package/dist/locale/el.min.js +1 -1
  55. package/dist/locale/el.min.mjs +1 -1
  56. package/dist/locale/el.mjs +1 -1
  57. package/dist/locale/en.js +1 -1
  58. package/dist/locale/en.min.js +1 -1
  59. package/dist/locale/en.min.mjs +1 -1
  60. package/dist/locale/en.mjs +1 -1
  61. package/dist/locale/eo.js +1 -1
  62. package/dist/locale/eo.min.js +1 -1
  63. package/dist/locale/eo.min.mjs +1 -1
  64. package/dist/locale/eo.mjs +1 -1
  65. package/dist/locale/es.js +1 -1
  66. package/dist/locale/es.min.js +1 -1
  67. package/dist/locale/es.min.mjs +1 -1
  68. package/dist/locale/es.mjs +1 -1
  69. package/dist/locale/et.js +1 -1
  70. package/dist/locale/et.min.js +1 -1
  71. package/dist/locale/et.min.mjs +1 -1
  72. package/dist/locale/et.mjs +1 -1
  73. package/dist/locale/eu.js +1 -1
  74. package/dist/locale/eu.min.js +1 -1
  75. package/dist/locale/eu.min.mjs +1 -1
  76. package/dist/locale/eu.mjs +1 -1
  77. package/dist/locale/fa.js +1 -1
  78. package/dist/locale/fa.min.js +1 -1
  79. package/dist/locale/fa.min.mjs +1 -1
  80. package/dist/locale/fa.mjs +1 -1
  81. package/dist/locale/fi.js +1 -1
  82. package/dist/locale/fi.min.js +1 -1
  83. package/dist/locale/fi.min.mjs +1 -1
  84. package/dist/locale/fi.mjs +1 -1
  85. package/dist/locale/fr.js +1 -1
  86. package/dist/locale/fr.min.js +1 -1
  87. package/dist/locale/fr.min.mjs +1 -1
  88. package/dist/locale/fr.mjs +1 -1
  89. package/dist/locale/he.js +1 -1
  90. package/dist/locale/he.min.js +1 -1
  91. package/dist/locale/he.min.mjs +1 -1
  92. package/dist/locale/he.mjs +1 -1
  93. package/dist/locale/hr.js +1 -1
  94. package/dist/locale/hr.min.js +1 -1
  95. package/dist/locale/hr.min.mjs +1 -1
  96. package/dist/locale/hr.mjs +1 -1
  97. package/dist/locale/hu.js +1 -1
  98. package/dist/locale/hu.min.js +1 -1
  99. package/dist/locale/hu.min.mjs +1 -1
  100. package/dist/locale/hu.mjs +1 -1
  101. package/dist/locale/hy-am.js +1 -1
  102. package/dist/locale/hy-am.min.js +1 -1
  103. package/dist/locale/hy-am.min.mjs +1 -1
  104. package/dist/locale/hy-am.mjs +1 -1
  105. package/dist/locale/id.js +1 -1
  106. package/dist/locale/id.min.js +1 -1
  107. package/dist/locale/id.min.mjs +1 -1
  108. package/dist/locale/id.mjs +1 -1
  109. package/dist/locale/it.js +1 -1
  110. package/dist/locale/it.min.js +1 -1
  111. package/dist/locale/it.min.mjs +1 -1
  112. package/dist/locale/it.mjs +1 -1
  113. package/dist/locale/ja.js +1 -1
  114. package/dist/locale/ja.min.js +1 -1
  115. package/dist/locale/ja.min.mjs +1 -1
  116. package/dist/locale/ja.mjs +1 -1
  117. package/dist/locale/kk.js +1 -1
  118. package/dist/locale/kk.min.js +1 -1
  119. package/dist/locale/kk.min.mjs +1 -1
  120. package/dist/locale/kk.mjs +1 -1
  121. package/dist/locale/km.js +1 -1
  122. package/dist/locale/km.min.js +1 -1
  123. package/dist/locale/km.min.mjs +1 -1
  124. package/dist/locale/km.mjs +1 -1
  125. package/dist/locale/ko.js +1 -1
  126. package/dist/locale/ko.min.js +1 -1
  127. package/dist/locale/ko.min.mjs +1 -1
  128. package/dist/locale/ko.mjs +1 -1
  129. package/dist/locale/ku.js +1 -1
  130. package/dist/locale/ku.min.js +1 -1
  131. package/dist/locale/ku.min.mjs +1 -1
  132. package/dist/locale/ku.mjs +1 -1
  133. package/dist/locale/ky.js +1 -1
  134. package/dist/locale/ky.min.js +1 -1
  135. package/dist/locale/ky.min.mjs +1 -1
  136. package/dist/locale/ky.mjs +1 -1
  137. package/dist/locale/lt.js +1 -1
  138. package/dist/locale/lt.min.js +1 -1
  139. package/dist/locale/lt.min.mjs +1 -1
  140. package/dist/locale/lt.mjs +1 -1
  141. package/dist/locale/lv.js +1 -1
  142. package/dist/locale/lv.min.js +1 -1
  143. package/dist/locale/lv.min.mjs +1 -1
  144. package/dist/locale/lv.mjs +1 -1
  145. package/dist/locale/mg.js +1 -1
  146. package/dist/locale/mg.min.js +1 -1
  147. package/dist/locale/mg.min.mjs +1 -1
  148. package/dist/locale/mg.mjs +1 -1
  149. package/dist/locale/mn.js +1 -1
  150. package/dist/locale/mn.min.js +1 -1
  151. package/dist/locale/mn.min.mjs +1 -1
  152. package/dist/locale/mn.mjs +1 -1
  153. package/dist/locale/nb-no.js +1 -1
  154. package/dist/locale/nb-no.min.js +1 -1
  155. package/dist/locale/nb-no.min.mjs +1 -1
  156. package/dist/locale/nb-no.mjs +1 -1
  157. package/dist/locale/nl.js +1 -1
  158. package/dist/locale/nl.min.js +1 -1
  159. package/dist/locale/nl.min.mjs +1 -1
  160. package/dist/locale/nl.mjs +1 -1
  161. package/dist/locale/pa.js +1 -1
  162. package/dist/locale/pa.min.js +1 -1
  163. package/dist/locale/pa.min.mjs +1 -1
  164. package/dist/locale/pa.mjs +1 -1
  165. package/dist/locale/pl.js +1 -1
  166. package/dist/locale/pl.min.js +1 -1
  167. package/dist/locale/pl.min.mjs +1 -1
  168. package/dist/locale/pl.mjs +1 -1
  169. package/dist/locale/pt-br.js +1 -1
  170. package/dist/locale/pt-br.min.js +1 -1
  171. package/dist/locale/pt-br.min.mjs +1 -1
  172. package/dist/locale/pt-br.mjs +1 -1
  173. package/dist/locale/pt.js +1 -1
  174. package/dist/locale/pt.min.js +1 -1
  175. package/dist/locale/pt.min.mjs +1 -1
  176. package/dist/locale/pt.mjs +1 -1
  177. package/dist/locale/ro.js +1 -1
  178. package/dist/locale/ro.min.js +1 -1
  179. package/dist/locale/ro.min.mjs +1 -1
  180. package/dist/locale/ro.mjs +1 -1
  181. package/dist/locale/ru.js +1 -1
  182. package/dist/locale/ru.min.js +1 -1
  183. package/dist/locale/ru.min.mjs +1 -1
  184. package/dist/locale/ru.mjs +1 -1
  185. package/dist/locale/sk.js +1 -1
  186. package/dist/locale/sk.min.js +1 -1
  187. package/dist/locale/sk.min.mjs +1 -1
  188. package/dist/locale/sk.mjs +1 -1
  189. package/dist/locale/sl.js +1 -1
  190. package/dist/locale/sl.min.js +1 -1
  191. package/dist/locale/sl.min.mjs +1 -1
  192. package/dist/locale/sl.mjs +1 -1
  193. package/dist/locale/sr.js +1 -1
  194. package/dist/locale/sr.min.js +1 -1
  195. package/dist/locale/sr.min.mjs +1 -1
  196. package/dist/locale/sr.mjs +1 -1
  197. package/dist/locale/sv.js +1 -1
  198. package/dist/locale/sv.min.js +1 -1
  199. package/dist/locale/sv.min.mjs +1 -1
  200. package/dist/locale/sv.mjs +1 -1
  201. package/dist/locale/sw.js +1 -1
  202. package/dist/locale/sw.min.js +1 -1
  203. package/dist/locale/sw.min.mjs +1 -1
  204. package/dist/locale/sw.mjs +1 -1
  205. package/dist/locale/ta.js +1 -1
  206. package/dist/locale/ta.min.js +1 -1
  207. package/dist/locale/ta.min.mjs +1 -1
  208. package/dist/locale/ta.mjs +1 -1
  209. package/dist/locale/th.js +1 -1
  210. package/dist/locale/th.min.js +1 -1
  211. package/dist/locale/th.min.mjs +1 -1
  212. package/dist/locale/th.mjs +1 -1
  213. package/dist/locale/tk.js +1 -1
  214. package/dist/locale/tk.min.js +1 -1
  215. package/dist/locale/tk.min.mjs +1 -1
  216. package/dist/locale/tk.mjs +1 -1
  217. package/dist/locale/tr.js +1 -1
  218. package/dist/locale/tr.min.js +1 -1
  219. package/dist/locale/tr.min.mjs +1 -1
  220. package/dist/locale/tr.mjs +1 -1
  221. package/dist/locale/ug-cn.js +1 -1
  222. package/dist/locale/ug-cn.min.js +1 -1
  223. package/dist/locale/ug-cn.min.mjs +1 -1
  224. package/dist/locale/ug-cn.mjs +1 -1
  225. package/dist/locale/uk.js +1 -1
  226. package/dist/locale/uk.min.js +1 -1
  227. package/dist/locale/uk.min.mjs +1 -1
  228. package/dist/locale/uk.mjs +1 -1
  229. package/dist/locale/uz-uz.js +1 -1
  230. package/dist/locale/uz-uz.min.js +1 -1
  231. package/dist/locale/uz-uz.min.mjs +1 -1
  232. package/dist/locale/uz-uz.mjs +1 -1
  233. package/dist/locale/vi.js +1 -1
  234. package/dist/locale/vi.min.js +1 -1
  235. package/dist/locale/vi.min.mjs +1 -1
  236. package/dist/locale/vi.mjs +1 -1
  237. package/dist/locale/zh-cn.js +1 -1
  238. package/dist/locale/zh-cn.min.js +1 -1
  239. package/dist/locale/zh-cn.min.mjs +1 -1
  240. package/dist/locale/zh-cn.mjs +1 -1
  241. package/dist/locale/zh-tw.js +1 -1
  242. package/dist/locale/zh-tw.min.js +1 -1
  243. package/dist/locale/zh-tw.min.mjs +1 -1
  244. package/dist/locale/zh-tw.mjs +1 -1
  245. package/es/component.mjs +4 -1
  246. package/es/component.mjs.map +1 -1
  247. package/es/components/anchor/index.d.ts +196 -0
  248. package/es/components/anchor/index.mjs +13 -0
  249. package/es/components/anchor/index.mjs.map +1 -0
  250. package/es/components/anchor/src/anchor-link.d.ts +6 -0
  251. package/es/components/anchor/src/anchor-link.mjs +10 -0
  252. package/es/components/anchor/src/anchor-link.mjs.map +1 -0
  253. package/es/components/anchor/src/anchor-link.vue.d.ts +41 -0
  254. package/es/components/anchor/src/anchor-link2.mjs +86 -0
  255. package/es/components/anchor/src/anchor-link2.mjs.map +1 -0
  256. package/es/components/anchor/src/anchor.d.ts +23 -0
  257. package/es/components/anchor/src/anchor.mjs +196 -0
  258. package/es/components/anchor/src/anchor.mjs.map +1 -0
  259. package/es/components/anchor/src/anchor.vue.d.ts +115 -0
  260. package/es/components/anchor/src/anchor2.mjs +44 -0
  261. package/es/components/anchor/src/anchor2.mjs.map +1 -0
  262. package/es/components/anchor/src/constants.d.ts +15 -0
  263. package/es/components/anchor/src/constants.mjs +4 -0
  264. package/es/components/anchor/src/constants.mjs.map +1 -0
  265. package/es/components/anchor/style/css.d.ts +2 -0
  266. package/es/components/anchor/style/css.mjs +3 -0
  267. package/es/components/anchor/style/css.mjs.map +1 -0
  268. package/es/components/anchor/style/index.d.ts +2 -0
  269. package/es/components/anchor/style/index.mjs +3 -0
  270. package/es/components/anchor/style/index.mjs.map +1 -0
  271. package/es/components/anchor-link/style/css.d.ts +2 -0
  272. package/es/components/anchor-link/style/css.mjs +3 -0
  273. package/es/components/anchor-link/style/css.mjs.map +1 -0
  274. package/es/components/anchor-link/style/index.d.ts +2 -0
  275. package/es/components/anchor-link/style/index.mjs +3 -0
  276. package/es/components/anchor-link/style/index.mjs.map +1 -0
  277. package/es/components/autocomplete/index.d.ts +23 -23
  278. package/es/components/autocomplete/src/autocomplete.vue.d.ts +23 -23
  279. package/es/components/avatar/index.mjs +2 -2
  280. package/es/components/avatar/src/avatar.mjs +67 -32
  281. package/es/components/avatar/src/avatar.mjs.map +1 -1
  282. package/es/components/avatar/src/avatar2.mjs +32 -67
  283. package/es/components/avatar/src/avatar2.mjs.map +1 -1
  284. package/es/components/backtop/index.mjs +2 -2
  285. package/es/components/backtop/src/backtop.mjs +21 -54
  286. package/es/components/backtop/src/backtop.mjs.map +1 -1
  287. package/es/components/backtop/src/backtop2.mjs +54 -21
  288. package/es/components/backtop/src/backtop2.mjs.map +1 -1
  289. package/es/components/badge/index.d.ts +4 -0
  290. package/es/components/badge/src/badge.d.ts +1 -0
  291. package/es/components/badge/src/badge.mjs +4 -0
  292. package/es/components/badge/src/badge.mjs.map +1 -1
  293. package/es/components/badge/src/badge.vue.d.ts +4 -0
  294. package/es/components/badge/src/badge2.mjs +4 -1
  295. package/es/components/badge/src/badge2.mjs.map +1 -1
  296. package/es/components/calendar/index.mjs +2 -2
  297. package/es/components/calendar/src/calendar.mjs +131 -18
  298. package/es/components/calendar/src/calendar.mjs.map +1 -1
  299. package/es/components/calendar/src/calendar2.mjs +18 -131
  300. package/es/components/calendar/src/calendar2.mjs.map +1 -1
  301. package/es/components/calendar/src/use-calendar.mjs +1 -11
  302. package/es/components/calendar/src/use-calendar.mjs.map +1 -1
  303. package/es/components/carousel/index.d.ts +9 -9
  304. package/es/components/carousel/index.mjs +2 -2
  305. package/es/components/carousel/src/carousel-item.mjs +70 -8
  306. package/es/components/carousel/src/carousel-item.mjs.map +1 -1
  307. package/es/components/carousel/src/carousel-item2.mjs +8 -70
  308. package/es/components/carousel/src/carousel-item2.mjs.map +1 -1
  309. package/es/components/carousel/src/carousel.d.ts +2 -2
  310. package/es/components/carousel/src/carousel.vue.d.ts +9 -9
  311. package/es/components/cascader/index.d.ts +56 -56
  312. package/es/components/cascader/index.mjs +2 -2
  313. package/es/components/cascader/src/cascader.mjs +626 -65
  314. package/es/components/cascader/src/cascader.mjs.map +1 -1
  315. package/es/components/cascader/src/cascader.vue.d.ts +28 -28
  316. package/es/components/cascader/src/cascader2.mjs +65 -626
  317. package/es/components/cascader/src/cascader2.mjs.map +1 -1
  318. package/es/components/checkbox/index.d.ts +120 -0
  319. package/es/components/checkbox/src/checkbox-button.mjs +5 -4
  320. package/es/components/checkbox/src/checkbox-button.mjs.map +1 -1
  321. package/es/components/checkbox/src/checkbox-button.vue.d.ts +40 -0
  322. package/es/components/checkbox/src/checkbox.d.ts +24 -1
  323. package/es/components/checkbox/src/checkbox.mjs +12 -0
  324. package/es/components/checkbox/src/checkbox.mjs.map +1 -1
  325. package/es/components/checkbox/src/checkbox.vue.d.ts +40 -0
  326. package/es/components/checkbox/src/checkbox2.mjs +5 -4
  327. package/es/components/checkbox/src/checkbox2.mjs.map +1 -1
  328. package/es/components/checkbox/src/composables/use-checkbox-event.mjs +2 -2
  329. package/es/components/checkbox/src/composables/use-checkbox-event.mjs.map +1 -1
  330. package/es/components/checkbox/src/composables/use-checkbox-status.d.ts +1 -0
  331. package/es/components/checkbox/src/composables/use-checkbox-status.mjs +15 -8
  332. package/es/components/checkbox/src/composables/use-checkbox-status.mjs.map +1 -1
  333. package/es/components/checkbox/src/composables/use-checkbox.d.ts +1 -0
  334. package/es/components/checkbox/src/composables/use-checkbox.mjs +40 -13
  335. package/es/components/checkbox/src/composables/use-checkbox.mjs.map +1 -1
  336. package/es/components/color-picker/index.d.ts +15 -15
  337. package/es/components/color-picker/src/color-picker.vue.d.ts +15 -15
  338. package/es/components/countdown/index.mjs +2 -2
  339. package/es/components/countdown/src/countdown.mjs +23 -74
  340. package/es/components/countdown/src/countdown.mjs.map +1 -1
  341. package/es/components/countdown/src/countdown2.mjs +74 -23
  342. package/es/components/countdown/src/countdown2.mjs.map +1 -1
  343. package/es/components/date-picker/src/composables/use-basic-date-table.mjs +1 -1
  344. package/es/components/date-picker/src/composables/use-basic-date-table.mjs.map +1 -1
  345. package/es/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +31 -31
  346. package/es/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +31 -31
  347. package/es/components/date-picker/src/panel-utils.d.ts +62 -62
  348. package/es/components/descriptions/index.d.ts +4 -4
  349. package/es/components/descriptions/src/description.d.ts +1 -1
  350. package/es/components/descriptions/src/description.vue.d.ts +4 -4
  351. package/es/components/dialog/index.d.ts +3 -3
  352. package/es/components/dialog/src/dialog.vue.d.ts +3 -3
  353. package/es/components/divider/index.d.ts +8 -8
  354. package/es/components/divider/src/divider.d.ts +2 -2
  355. package/es/components/divider/src/divider.vue.d.ts +8 -8
  356. package/es/components/drawer/index.d.ts +4 -4
  357. package/es/components/drawer/src/drawer.vue.d.ts +4 -4
  358. package/es/components/dropdown/index.d.ts +10 -10
  359. package/es/components/dropdown/src/dropdown-item.vue.d.ts +1 -1
  360. package/es/components/dropdown/src/dropdown.vue.d.ts +8 -8
  361. package/es/components/focus-trap/src/focus-trap.vue.d.ts +3 -3
  362. package/es/components/form/index.d.ts +9 -9
  363. package/es/components/form/src/form.d.ts +2 -2
  364. package/es/components/form/src/form.vue.d.ts +9 -9
  365. package/es/components/image-viewer/index.mjs +2 -2
  366. package/es/components/image-viewer/src/image-viewer.mjs +45 -401
  367. package/es/components/image-viewer/src/image-viewer.mjs.map +1 -1
  368. package/es/components/image-viewer/src/image-viewer2.mjs +401 -45
  369. package/es/components/image-viewer/src/image-viewer2.mjs.map +1 -1
  370. package/es/components/index.d.ts +1 -0
  371. package/es/components/index.mjs +11 -9
  372. package/es/components/index.mjs.map +1 -1
  373. package/es/components/input/index.d.ts +3 -3
  374. package/es/components/input/src/input.d.ts +1 -1
  375. package/es/components/input/src/input.vue.d.ts +3 -3
  376. package/es/components/input-number/index.d.ts +8 -8
  377. package/es/components/input-number/src/input-number.vue.d.ts +8 -8
  378. package/es/components/input-number/src/input-number2.mjs +4 -2
  379. package/es/components/input-number/src/input-number2.mjs.map +1 -1
  380. package/es/components/link/index.d.ts +1 -1
  381. package/es/components/link/src/link.vue.d.ts +1 -1
  382. package/es/components/menu/index.d.ts +6 -12
  383. package/es/components/menu/src/menu.d.ts +8 -8
  384. package/es/components/menu/src/sub-menu.d.ts +0 -4
  385. package/es/components/menu/src/sub-menu.mjs +2 -15
  386. package/es/components/menu/src/sub-menu.mjs.map +1 -1
  387. package/es/components/message/src/message.vue.d.ts +5 -1
  388. package/es/components/message-box/src/index.vue.d.ts +1 -1
  389. package/es/components/notification/src/notification.vue.d.ts +2 -2
  390. package/es/components/page-header/index.d.ts +8 -8
  391. package/es/components/page-header/src/page-header.vue.d.ts +8 -8
  392. package/es/components/pagination/src/components/jumper.vue.d.ts +3 -3
  393. package/es/components/pagination/src/components/sizes.vue.d.ts +16 -19
  394. package/es/components/popconfirm/index.d.ts +12 -12
  395. package/es/components/popconfirm/src/popconfirm.vue.d.ts +12 -12
  396. package/es/components/popover/index.d.ts +12 -12
  397. package/es/components/popover/src/popover.vue.d.ts +12 -12
  398. package/es/components/popper/src/composables/use-content.d.ts +1 -1
  399. package/es/components/popper/src/composables/use-focus-trap.d.ts +1 -1
  400. package/es/components/popper/src/content.vue.d.ts +4 -4
  401. package/es/components/popper/src/utils.d.ts +1 -1
  402. package/es/components/progress/index.d.ts +1 -1
  403. package/es/components/progress/src/progress.vue.d.ts +1 -1
  404. package/es/components/radio/index.d.ts +77 -54
  405. package/es/components/radio/src/radio-button.d.ts +4 -2
  406. package/es/components/radio/src/radio-button.mjs +1 -5
  407. package/es/components/radio/src/radio-button.mjs.map +1 -1
  408. package/es/components/radio/src/radio-button.vue.d.ts +16 -7
  409. package/es/components/radio/src/radio-button2.mjs +4 -4
  410. package/es/components/radio/src/radio-button2.mjs.map +1 -1
  411. package/es/components/radio/src/radio-group.d.ts +3 -3
  412. package/es/components/radio/src/radio-group.mjs +1 -1
  413. package/es/components/radio/src/radio-group.mjs.map +1 -1
  414. package/es/components/radio/src/radio-group.vue.d.ts +10 -10
  415. package/es/components/radio/src/radio.d.ts +10 -6
  416. package/es/components/radio/src/radio.mjs +13 -9
  417. package/es/components/radio/src/radio.mjs.map +1 -1
  418. package/es/components/radio/src/radio.vue.d.ts +23 -18
  419. package/es/components/radio/src/radio2.mjs +4 -4
  420. package/es/components/radio/src/radio2.mjs.map +1 -1
  421. package/es/components/radio/src/use-radio.d.ts +4 -5
  422. package/es/components/radio/src/use-radio.mjs +21 -3
  423. package/es/components/radio/src/use-radio.mjs.map +1 -1
  424. package/es/components/roving-focus-group/src/roving-focus-group-impl.vue.d.ts +2 -2
  425. package/es/components/roving-focus-group/src/roving-focus-group.d.ts +1 -1
  426. package/es/components/scrollbar/index.d.ts +3 -3
  427. package/es/components/scrollbar/src/scrollbar.d.ts +1 -1
  428. package/es/components/scrollbar/src/scrollbar.vue.d.ts +3 -3
  429. package/es/components/select/index.d.ts +16 -19
  430. package/es/components/select/src/select.d.ts +0 -1
  431. package/es/components/select/src/select.mjs +0 -4
  432. package/es/components/select/src/select.mjs.map +1 -1
  433. package/es/components/select/src/select.vue.d.ts +16 -19
  434. package/es/components/select/src/useSelect.d.ts +16 -16
  435. package/es/components/select/src/useSelect.mjs +3 -19
  436. package/es/components/select/src/useSelect.mjs.map +1 -1
  437. package/es/components/select-v2/index.d.ts +32 -32
  438. package/es/components/select-v2/src/select-dropdown.mjs +5 -10
  439. package/es/components/select-v2/src/select-dropdown.mjs.map +1 -1
  440. package/es/components/select-v2/src/select.vue.d.ts +16 -16
  441. package/es/components/select-v2/src/useSelect.d.ts +16 -16
  442. package/es/components/select-v2/src/useSelect.mjs +1 -9
  443. package/es/components/select-v2/src/useSelect.mjs.map +1 -1
  444. package/es/components/slider/index.d.ts +36 -36
  445. package/es/components/slider/src/button.vue.d.ts +5 -5
  446. package/es/components/slider/src/composables/use-slide.d.ts +22 -22
  447. package/es/components/slider/src/slider.vue.d.ts +36 -36
  448. package/es/components/space/index.d.ts +3 -3
  449. package/es/components/space/src/space.d.ts +4 -4
  450. package/es/components/steps/index.d.ts +5 -5
  451. package/es/components/steps/src/steps.d.ts +1 -1
  452. package/es/components/steps/src/steps.vue.d.ts +5 -5
  453. package/es/components/switch/index.d.ts +0 -19
  454. package/es/components/switch/index.mjs +2 -2
  455. package/es/components/switch/src/switch.d.ts +0 -4
  456. package/es/components/switch/src/switch.mjs +234 -98
  457. package/es/components/switch/src/switch.mjs.map +1 -1
  458. package/es/components/switch/src/switch.vue.d.ts +0 -19
  459. package/es/components/switch/src/switch2.mjs +82 -268
  460. package/es/components/switch/src/switch2.mjs.map +1 -1
  461. package/es/components/table/src/filter-panel.vue.d.ts +8 -8
  462. package/es/components/table-v2/src/composables/use-styles.mjs +1 -1
  463. package/es/components/table-v2/src/composables/use-styles.mjs.map +1 -1
  464. package/es/components/tabs/index.d.ts +3 -15
  465. package/es/components/tabs/src/tabs.d.ts +4 -22
  466. package/es/components/tabs/src/tabs.mjs +7 -29
  467. package/es/components/tabs/src/tabs.mjs.map +1 -1
  468. package/es/components/teleport/index.d.ts +1 -1
  469. package/es/components/teleport/src/teleport.vue.d.ts +1 -1
  470. package/es/components/time-picker/src/common/picker.vue.d.ts +15 -15
  471. package/es/components/time-picker/src/time-picker-com/basic-time-spinner.vue.d.ts +23 -23
  472. package/es/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts +28 -28
  473. package/es/components/time-picker/src/time-picker-com/panel-time-range.vue.d.ts +28 -28
  474. package/es/components/time-select/index.d.ts +64 -76
  475. package/es/components/time-select/src/time-select.vue.d.ts +32 -38
  476. package/es/components/tooltip/index.d.ts +4 -4
  477. package/es/components/tooltip/src/content.vue.d.ts +4 -4
  478. package/es/components/tooltip/src/tooltip.vue.d.ts +4 -4
  479. package/es/components/tooltip-v2/index.d.ts +20 -20
  480. package/es/components/tooltip-v2/index.mjs +1 -1
  481. package/es/components/tooltip-v2/src/content.d.ts +1 -1
  482. package/es/components/tooltip-v2/src/content.vue.d.ts +7 -7
  483. package/es/components/tooltip-v2/src/tooltip.d.ts +1 -1
  484. package/es/components/tooltip-v2/src/tooltip.mjs +1 -1
  485. package/es/components/tooltip-v2/src/tooltip.vue.d.ts +20 -20
  486. package/es/components/tooltip-v2/src/tooltip2.mjs +2 -2
  487. package/es/components/tooltip-v2/src/trigger.mjs +12 -89
  488. package/es/components/tooltip-v2/src/trigger.mjs.map +1 -1
  489. package/es/components/tooltip-v2/src/trigger2.mjs +89 -12
  490. package/es/components/tooltip-v2/src/trigger2.mjs.map +1 -1
  491. package/es/components/tour/index.d.ts +32 -31
  492. package/es/components/tour/index.mjs +2 -2
  493. package/es/components/tour/src/content.d.ts +1 -1
  494. package/es/components/tour/src/content.vue.d.ts +9 -8
  495. package/es/components/tour/src/content2.mjs +7 -1
  496. package/es/components/tour/src/content2.mjs.map +1 -1
  497. package/es/components/tour/src/helper.mjs +5 -1
  498. package/es/components/tour/src/helper.mjs.map +1 -1
  499. package/es/components/tour/src/step.d.ts +2 -2
  500. package/es/components/tour/src/step.vue.d.ts +7 -7
  501. package/es/components/tour/src/tour.d.ts +2 -2
  502. package/es/components/tour/src/tour.mjs +152 -69
  503. package/es/components/tour/src/tour.mjs.map +1 -1
  504. package/es/components/tour/src/tour.vue.d.ts +18 -17
  505. package/es/components/tour/src/tour2.mjs +69 -152
  506. package/es/components/tour/src/tour2.mjs.map +1 -1
  507. package/es/components/transfer/index.d.ts +415 -15
  508. package/es/components/transfer/src/transfer-panel.vue.d.ts +83 -3
  509. package/es/components/transfer/src/transfer.vue.d.ts +415 -15
  510. package/es/components/tree-v2/index.d.ts +84 -4
  511. package/es/components/tree-v2/src/tree-node.vue.d.ts +80 -0
  512. package/es/components/tree-v2/src/tree.vue.d.ts +84 -4
  513. package/es/components/upload/index.d.ts +1 -1
  514. package/es/components/upload/src/upload-list.vue.d.ts +1 -1
  515. package/es/components/upload/src/upload.vue.d.ts +1 -1
  516. package/es/components/virtual-list/src/builders/build-grid.d.ts +1 -1
  517. package/es/components/virtual-list/src/builders/build-list.d.ts +4 -4
  518. package/es/components/virtual-list/src/components/dynamic-size-grid.d.ts +1 -1
  519. package/es/components/virtual-list/src/components/dynamic-size-list.d.ts +4 -4
  520. package/es/components/virtual-list/src/components/fixed-size-grid.d.ts +1 -1
  521. package/es/components/virtual-list/src/components/fixed-size-list.d.ts +4 -4
  522. package/es/components/virtual-list/src/components/scrollbar.d.ts +3 -3
  523. package/es/components/virtual-list/src/props.d.ts +2 -2
  524. package/es/components/watermark/index.d.ts +1 -1
  525. package/es/components/watermark/src/watermark.vue.d.ts +1 -1
  526. package/es/hooks/use-floating/index.d.ts +2 -2
  527. package/es/hooks/use-popper/index.d.ts +1 -1
  528. package/es/index.mjs +11 -9
  529. package/es/index.mjs.map +1 -1
  530. package/es/utils/dom/element.d.ts +3 -0
  531. package/es/utils/dom/element.mjs +16 -0
  532. package/es/utils/dom/element.mjs.map +1 -0
  533. package/es/utils/dom/index.d.ts +1 -0
  534. package/es/utils/dom/index.mjs +2 -1
  535. package/es/utils/dom/index.mjs.map +1 -1
  536. package/es/utils/dom/scroll.d.ts +3 -0
  537. package/es/utils/dom/scroll.mjs +35 -1
  538. package/es/utils/dom/scroll.mjs.map +1 -1
  539. package/es/utils/easings.d.ts +1 -0
  540. package/es/utils/easings.mjs +11 -0
  541. package/es/utils/easings.mjs.map +1 -0
  542. package/es/utils/index.d.ts +2 -0
  543. package/es/utils/index.mjs +5 -2
  544. package/es/utils/index.mjs.map +1 -1
  545. package/es/utils/throttleByRaf.d.ts +4 -0
  546. package/es/utils/throttleByRaf.mjs +22 -0
  547. package/es/utils/throttleByRaf.mjs.map +1 -0
  548. package/es/utils/types.d.ts +1 -0
  549. package/es/utils/types.mjs +4 -1
  550. package/es/utils/types.mjs.map +1 -1
  551. package/es/utils/vue/vnode.d.ts +6 -6
  552. package/es/version.d.ts +1 -1
  553. package/es/version.mjs +1 -1
  554. package/es/version.mjs.map +1 -1
  555. package/lib/component.js +4 -1
  556. package/lib/component.js.map +1 -1
  557. package/lib/components/anchor/index.d.ts +196 -0
  558. package/lib/components/anchor/index.js +21 -0
  559. package/lib/components/anchor/index.js.map +1 -0
  560. package/lib/components/anchor/src/anchor-link.d.ts +6 -0
  561. package/lib/components/anchor/src/anchor-link.js +14 -0
  562. package/lib/components/anchor/src/anchor-link.js.map +1 -0
  563. package/lib/components/anchor/src/anchor-link.vue.d.ts +41 -0
  564. package/lib/components/anchor/src/anchor-link2.js +90 -0
  565. package/lib/components/anchor/src/anchor-link2.js.map +1 -0
  566. package/lib/components/anchor/src/anchor.d.ts +23 -0
  567. package/lib/components/anchor/src/anchor.js +200 -0
  568. package/lib/components/anchor/src/anchor.js.map +1 -0
  569. package/lib/components/anchor/src/anchor.vue.d.ts +115 -0
  570. package/lib/components/anchor/src/anchor2.js +49 -0
  571. package/lib/components/anchor/src/anchor2.js.map +1 -0
  572. package/lib/components/anchor/src/constants.d.ts +15 -0
  573. package/lib/components/anchor/src/constants.js +8 -0
  574. package/lib/components/anchor/src/constants.js.map +1 -0
  575. package/lib/components/anchor/style/css.d.ts +2 -0
  576. package/lib/components/anchor/style/css.js +6 -0
  577. package/lib/components/anchor/style/css.js.map +1 -0
  578. package/lib/components/anchor/style/index.d.ts +2 -0
  579. package/lib/components/anchor/style/index.js +6 -0
  580. package/lib/components/anchor/style/index.js.map +1 -0
  581. package/lib/components/anchor-link/style/css.d.ts +2 -0
  582. package/lib/components/anchor-link/style/css.js +6 -0
  583. package/lib/components/anchor-link/style/css.js.map +1 -0
  584. package/lib/components/anchor-link/style/index.d.ts +2 -0
  585. package/lib/components/anchor-link/style/index.js +6 -0
  586. package/lib/components/anchor-link/style/index.js.map +1 -0
  587. package/lib/components/autocomplete/index.d.ts +23 -23
  588. package/lib/components/autocomplete/src/autocomplete.vue.d.ts +23 -23
  589. package/lib/components/avatar/index.js +2 -2
  590. package/lib/components/avatar/src/avatar.js +67 -33
  591. package/lib/components/avatar/src/avatar.js.map +1 -1
  592. package/lib/components/avatar/src/avatar2.js +33 -67
  593. package/lib/components/avatar/src/avatar2.js.map +1 -1
  594. package/lib/components/backtop/index.js +2 -2
  595. package/lib/components/backtop/src/backtop.js +22 -54
  596. package/lib/components/backtop/src/backtop.js.map +1 -1
  597. package/lib/components/backtop/src/backtop2.js +54 -22
  598. package/lib/components/backtop/src/backtop2.js.map +1 -1
  599. package/lib/components/badge/index.d.ts +4 -0
  600. package/lib/components/badge/src/badge.d.ts +1 -0
  601. package/lib/components/badge/src/badge.js +4 -0
  602. package/lib/components/badge/src/badge.js.map +1 -1
  603. package/lib/components/badge/src/badge.vue.d.ts +4 -0
  604. package/lib/components/badge/src/badge2.js +4 -1
  605. package/lib/components/badge/src/badge2.js.map +1 -1
  606. package/lib/components/calendar/index.js +2 -2
  607. package/lib/components/calendar/src/calendar.js +131 -19
  608. package/lib/components/calendar/src/calendar.js.map +1 -1
  609. package/lib/components/calendar/src/calendar2.js +19 -131
  610. package/lib/components/calendar/src/calendar2.js.map +1 -1
  611. package/lib/components/calendar/src/use-calendar.js +0 -10
  612. package/lib/components/calendar/src/use-calendar.js.map +1 -1
  613. package/lib/components/carousel/index.d.ts +9 -9
  614. package/lib/components/carousel/index.js +2 -2
  615. package/lib/components/carousel/src/carousel-item.js +70 -8
  616. package/lib/components/carousel/src/carousel-item.js.map +1 -1
  617. package/lib/components/carousel/src/carousel-item2.js +8 -70
  618. package/lib/components/carousel/src/carousel-item2.js.map +1 -1
  619. package/lib/components/carousel/src/carousel.d.ts +2 -2
  620. package/lib/components/carousel/src/carousel.vue.d.ts +9 -9
  621. package/lib/components/cascader/index.d.ts +56 -56
  622. package/lib/components/cascader/index.js +2 -2
  623. package/lib/components/cascader/src/cascader.js +626 -66
  624. package/lib/components/cascader/src/cascader.js.map +1 -1
  625. package/lib/components/cascader/src/cascader.vue.d.ts +28 -28
  626. package/lib/components/cascader/src/cascader2.js +66 -626
  627. package/lib/components/cascader/src/cascader2.js.map +1 -1
  628. package/lib/components/checkbox/index.d.ts +120 -0
  629. package/lib/components/checkbox/src/checkbox-button.js +5 -4
  630. package/lib/components/checkbox/src/checkbox-button.js.map +1 -1
  631. package/lib/components/checkbox/src/checkbox-button.vue.d.ts +40 -0
  632. package/lib/components/checkbox/src/checkbox.d.ts +24 -1
  633. package/lib/components/checkbox/src/checkbox.js +12 -0
  634. package/lib/components/checkbox/src/checkbox.js.map +1 -1
  635. package/lib/components/checkbox/src/checkbox.vue.d.ts +40 -0
  636. package/lib/components/checkbox/src/checkbox2.js +5 -4
  637. package/lib/components/checkbox/src/checkbox2.js.map +1 -1
  638. package/lib/components/checkbox/src/composables/use-checkbox-event.js +2 -2
  639. package/lib/components/checkbox/src/composables/use-checkbox-event.js.map +1 -1
  640. package/lib/components/checkbox/src/composables/use-checkbox-status.d.ts +1 -0
  641. package/lib/components/checkbox/src/composables/use-checkbox-status.js +13 -6
  642. package/lib/components/checkbox/src/composables/use-checkbox-status.js.map +1 -1
  643. package/lib/components/checkbox/src/composables/use-checkbox.d.ts +1 -0
  644. package/lib/components/checkbox/src/composables/use-checkbox.js +40 -13
  645. package/lib/components/checkbox/src/composables/use-checkbox.js.map +1 -1
  646. package/lib/components/color-picker/index.d.ts +15 -15
  647. package/lib/components/color-picker/src/color-picker.vue.d.ts +15 -15
  648. package/lib/components/countdown/index.js +2 -2
  649. package/lib/components/countdown/src/countdown.js +24 -74
  650. package/lib/components/countdown/src/countdown.js.map +1 -1
  651. package/lib/components/countdown/src/countdown2.js +74 -24
  652. package/lib/components/countdown/src/countdown2.js.map +1 -1
  653. package/lib/components/date-picker/src/composables/use-basic-date-table.js +1 -1
  654. package/lib/components/date-picker/src/composables/use-basic-date-table.js.map +1 -1
  655. package/lib/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +31 -31
  656. package/lib/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +31 -31
  657. package/lib/components/date-picker/src/panel-utils.d.ts +62 -62
  658. package/lib/components/descriptions/index.d.ts +4 -4
  659. package/lib/components/descriptions/src/description.d.ts +1 -1
  660. package/lib/components/descriptions/src/description.vue.d.ts +4 -4
  661. package/lib/components/dialog/index.d.ts +3 -3
  662. package/lib/components/dialog/src/dialog.vue.d.ts +3 -3
  663. package/lib/components/divider/index.d.ts +8 -8
  664. package/lib/components/divider/src/divider.d.ts +2 -2
  665. package/lib/components/divider/src/divider.vue.d.ts +8 -8
  666. package/lib/components/drawer/index.d.ts +4 -4
  667. package/lib/components/drawer/src/drawer.vue.d.ts +4 -4
  668. package/lib/components/dropdown/index.d.ts +10 -10
  669. package/lib/components/dropdown/src/dropdown-item.vue.d.ts +1 -1
  670. package/lib/components/dropdown/src/dropdown.vue.d.ts +8 -8
  671. package/lib/components/focus-trap/src/focus-trap.vue.d.ts +3 -3
  672. package/lib/components/form/index.d.ts +9 -9
  673. package/lib/components/form/src/form.d.ts +2 -2
  674. package/lib/components/form/src/form.vue.d.ts +9 -9
  675. package/lib/components/image-viewer/index.js +2 -2
  676. package/lib/components/image-viewer/src/image-viewer.js +46 -401
  677. package/lib/components/image-viewer/src/image-viewer.js.map +1 -1
  678. package/lib/components/image-viewer/src/image-viewer2.js +401 -46
  679. package/lib/components/image-viewer/src/image-viewer2.js.map +1 -1
  680. package/lib/components/index.d.ts +1 -0
  681. package/lib/components/index.js +28 -22
  682. package/lib/components/index.js.map +1 -1
  683. package/lib/components/input/index.d.ts +3 -3
  684. package/lib/components/input/src/input.d.ts +1 -1
  685. package/lib/components/input/src/input.vue.d.ts +3 -3
  686. package/lib/components/input-number/index.d.ts +8 -8
  687. package/lib/components/input-number/src/input-number.vue.d.ts +8 -8
  688. package/lib/components/input-number/src/input-number2.js +4 -2
  689. package/lib/components/input-number/src/input-number2.js.map +1 -1
  690. package/lib/components/link/index.d.ts +1 -1
  691. package/lib/components/link/src/link.vue.d.ts +1 -1
  692. package/lib/components/menu/index.d.ts +6 -12
  693. package/lib/components/menu/src/menu.d.ts +8 -8
  694. package/lib/components/menu/src/sub-menu.d.ts +0 -4
  695. package/lib/components/menu/src/sub-menu.js +10 -23
  696. package/lib/components/menu/src/sub-menu.js.map +1 -1
  697. package/lib/components/message/src/message.vue.d.ts +5 -1
  698. package/lib/components/message-box/src/index.vue.d.ts +1 -1
  699. package/lib/components/notification/src/notification.vue.d.ts +2 -2
  700. package/lib/components/page-header/index.d.ts +8 -8
  701. package/lib/components/page-header/src/page-header.vue.d.ts +8 -8
  702. package/lib/components/pagination/src/components/jumper.vue.d.ts +3 -3
  703. package/lib/components/pagination/src/components/sizes.vue.d.ts +16 -19
  704. package/lib/components/popconfirm/index.d.ts +12 -12
  705. package/lib/components/popconfirm/src/popconfirm.vue.d.ts +12 -12
  706. package/lib/components/popover/index.d.ts +12 -12
  707. package/lib/components/popover/src/popover.vue.d.ts +12 -12
  708. package/lib/components/popper/src/composables/use-content.d.ts +1 -1
  709. package/lib/components/popper/src/composables/use-focus-trap.d.ts +1 -1
  710. package/lib/components/popper/src/content.vue.d.ts +4 -4
  711. package/lib/components/popper/src/utils.d.ts +1 -1
  712. package/lib/components/progress/index.d.ts +1 -1
  713. package/lib/components/progress/src/progress.vue.d.ts +1 -1
  714. package/lib/components/radio/index.d.ts +77 -54
  715. package/lib/components/radio/src/radio-button.d.ts +4 -2
  716. package/lib/components/radio/src/radio-button.js +1 -5
  717. package/lib/components/radio/src/radio-button.js.map +1 -1
  718. package/lib/components/radio/src/radio-button.vue.d.ts +16 -7
  719. package/lib/components/radio/src/radio-button2.js +4 -4
  720. package/lib/components/radio/src/radio-button2.js.map +1 -1
  721. package/lib/components/radio/src/radio-group.d.ts +3 -3
  722. package/lib/components/radio/src/radio-group.js +1 -1
  723. package/lib/components/radio/src/radio-group.js.map +1 -1
  724. package/lib/components/radio/src/radio-group.vue.d.ts +10 -10
  725. package/lib/components/radio/src/radio.d.ts +10 -6
  726. package/lib/components/radio/src/radio.js +13 -9
  727. package/lib/components/radio/src/radio.js.map +1 -1
  728. package/lib/components/radio/src/radio.vue.d.ts +23 -18
  729. package/lib/components/radio/src/radio2.js +4 -4
  730. package/lib/components/radio/src/radio2.js.map +1 -1
  731. package/lib/components/radio/src/use-radio.d.ts +4 -5
  732. package/lib/components/radio/src/use-radio.js +21 -3
  733. package/lib/components/radio/src/use-radio.js.map +1 -1
  734. package/lib/components/roving-focus-group/src/roving-focus-group-impl.vue.d.ts +2 -2
  735. package/lib/components/roving-focus-group/src/roving-focus-group.d.ts +1 -1
  736. package/lib/components/scrollbar/index.d.ts +3 -3
  737. package/lib/components/scrollbar/src/scrollbar.d.ts +1 -1
  738. package/lib/components/scrollbar/src/scrollbar.vue.d.ts +3 -3
  739. package/lib/components/select/index.d.ts +16 -19
  740. package/lib/components/select/src/select.d.ts +0 -1
  741. package/lib/components/select/src/select.js +0 -4
  742. package/lib/components/select/src/select.js.map +1 -1
  743. package/lib/components/select/src/select.vue.d.ts +16 -19
  744. package/lib/components/select/src/useSelect.d.ts +16 -16
  745. package/lib/components/select/src/useSelect.js +4 -20
  746. package/lib/components/select/src/useSelect.js.map +1 -1
  747. package/lib/components/select-v2/index.d.ts +32 -32
  748. package/lib/components/select-v2/src/select-dropdown.js +5 -10
  749. package/lib/components/select-v2/src/select-dropdown.js.map +1 -1
  750. package/lib/components/select-v2/src/select.vue.d.ts +16 -16
  751. package/lib/components/select-v2/src/useSelect.d.ts +16 -16
  752. package/lib/components/select-v2/src/useSelect.js +1 -9
  753. package/lib/components/select-v2/src/useSelect.js.map +1 -1
  754. package/lib/components/slider/index.d.ts +36 -36
  755. package/lib/components/slider/src/button.vue.d.ts +5 -5
  756. package/lib/components/slider/src/composables/use-slide.d.ts +22 -22
  757. package/lib/components/slider/src/slider.vue.d.ts +36 -36
  758. package/lib/components/space/index.d.ts +3 -3
  759. package/lib/components/space/src/space.d.ts +4 -4
  760. package/lib/components/steps/index.d.ts +5 -5
  761. package/lib/components/steps/src/steps.d.ts +1 -1
  762. package/lib/components/steps/src/steps.vue.d.ts +5 -5
  763. package/lib/components/switch/index.d.ts +0 -19
  764. package/lib/components/switch/index.js +2 -2
  765. package/lib/components/switch/src/switch.d.ts +0 -4
  766. package/lib/components/switch/src/switch.js +233 -98
  767. package/lib/components/switch/src/switch.js.map +1 -1
  768. package/lib/components/switch/src/switch.vue.d.ts +0 -19
  769. package/lib/components/switch/src/switch2.js +82 -267
  770. package/lib/components/switch/src/switch2.js.map +1 -1
  771. package/lib/components/table/src/filter-panel.vue.d.ts +8 -8
  772. package/lib/components/table-v2/src/composables/use-styles.js +1 -1
  773. package/lib/components/table-v2/src/composables/use-styles.js.map +1 -1
  774. package/lib/components/tabs/index.d.ts +3 -15
  775. package/lib/components/tabs/src/tabs.d.ts +4 -22
  776. package/lib/components/tabs/src/tabs.js +7 -29
  777. package/lib/components/tabs/src/tabs.js.map +1 -1
  778. package/lib/components/teleport/index.d.ts +1 -1
  779. package/lib/components/teleport/src/teleport.vue.d.ts +1 -1
  780. package/lib/components/time-picker/src/common/picker.vue.d.ts +15 -15
  781. package/lib/components/time-picker/src/time-picker-com/basic-time-spinner.vue.d.ts +23 -23
  782. package/lib/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts +28 -28
  783. package/lib/components/time-picker/src/time-picker-com/panel-time-range.vue.d.ts +28 -28
  784. package/lib/components/time-select/index.d.ts +64 -76
  785. package/lib/components/time-select/src/time-select.vue.d.ts +32 -38
  786. package/lib/components/tooltip/index.d.ts +4 -4
  787. package/lib/components/tooltip/src/content.vue.d.ts +4 -4
  788. package/lib/components/tooltip/src/tooltip.vue.d.ts +4 -4
  789. package/lib/components/tooltip-v2/index.d.ts +20 -20
  790. package/lib/components/tooltip-v2/index.js +1 -1
  791. package/lib/components/tooltip-v2/src/content.d.ts +1 -1
  792. package/lib/components/tooltip-v2/src/content.vue.d.ts +7 -7
  793. package/lib/components/tooltip-v2/src/tooltip.d.ts +1 -1
  794. package/lib/components/tooltip-v2/src/tooltip.js +1 -1
  795. package/lib/components/tooltip-v2/src/tooltip.vue.d.ts +20 -20
  796. package/lib/components/tooltip-v2/src/tooltip2.js +2 -2
  797. package/lib/components/tooltip-v2/src/trigger.js +12 -89
  798. package/lib/components/tooltip-v2/src/trigger.js.map +1 -1
  799. package/lib/components/tooltip-v2/src/trigger2.js +89 -12
  800. package/lib/components/tooltip-v2/src/trigger2.js.map +1 -1
  801. package/lib/components/tour/index.d.ts +32 -31
  802. package/lib/components/tour/index.js +2 -2
  803. package/lib/components/tour/src/content.d.ts +1 -1
  804. package/lib/components/tour/src/content.vue.d.ts +9 -8
  805. package/lib/components/tour/src/content2.js +7 -1
  806. package/lib/components/tour/src/content2.js.map +1 -1
  807. package/lib/components/tour/src/helper.js +5 -1
  808. package/lib/components/tour/src/helper.js.map +1 -1
  809. package/lib/components/tour/src/step.d.ts +2 -2
  810. package/lib/components/tour/src/step.vue.d.ts +7 -7
  811. package/lib/components/tour/src/tour.d.ts +2 -2
  812. package/lib/components/tour/src/tour.js +151 -69
  813. package/lib/components/tour/src/tour.js.map +1 -1
  814. package/lib/components/tour/src/tour.vue.d.ts +18 -17
  815. package/lib/components/tour/src/tour2.js +69 -151
  816. package/lib/components/tour/src/tour2.js.map +1 -1
  817. package/lib/components/transfer/index.d.ts +415 -15
  818. package/lib/components/transfer/src/transfer-panel.vue.d.ts +83 -3
  819. package/lib/components/transfer/src/transfer.vue.d.ts +415 -15
  820. package/lib/components/tree-v2/index.d.ts +84 -4
  821. package/lib/components/tree-v2/src/tree-node.vue.d.ts +80 -0
  822. package/lib/components/tree-v2/src/tree.vue.d.ts +84 -4
  823. package/lib/components/upload/index.d.ts +1 -1
  824. package/lib/components/upload/src/upload-list.vue.d.ts +1 -1
  825. package/lib/components/upload/src/upload.vue.d.ts +1 -1
  826. package/lib/components/virtual-list/src/builders/build-grid.d.ts +1 -1
  827. package/lib/components/virtual-list/src/builders/build-list.d.ts +4 -4
  828. package/lib/components/virtual-list/src/components/dynamic-size-grid.d.ts +1 -1
  829. package/lib/components/virtual-list/src/components/dynamic-size-list.d.ts +4 -4
  830. package/lib/components/virtual-list/src/components/fixed-size-grid.d.ts +1 -1
  831. package/lib/components/virtual-list/src/components/fixed-size-list.d.ts +4 -4
  832. package/lib/components/virtual-list/src/components/scrollbar.d.ts +3 -3
  833. package/lib/components/virtual-list/src/props.d.ts +2 -2
  834. package/lib/components/watermark/index.d.ts +1 -1
  835. package/lib/components/watermark/src/watermark.vue.d.ts +1 -1
  836. package/lib/hooks/use-floating/index.d.ts +2 -2
  837. package/lib/hooks/use-popper/index.d.ts +1 -1
  838. package/lib/index.js +119 -113
  839. package/lib/index.js.map +1 -1
  840. package/lib/utils/dom/element.d.ts +3 -0
  841. package/lib/utils/dom/element.js +20 -0
  842. package/lib/utils/dom/element.js.map +1 -0
  843. package/lib/utils/dom/index.d.ts +1 -0
  844. package/lib/utils/dom/index.js +5 -0
  845. package/lib/utils/dom/index.js.map +1 -1
  846. package/lib/utils/dom/scroll.d.ts +3 -0
  847. package/lib/utils/dom/scroll.js +37 -0
  848. package/lib/utils/dom/scroll.js.map +1 -1
  849. package/lib/utils/easings.d.ts +1 -0
  850. package/lib/utils/easings.js +15 -0
  851. package/lib/utils/easings.js.map +1 -0
  852. package/lib/utils/index.d.ts +2 -0
  853. package/lib/utils/index.js +10 -0
  854. package/lib/utils/index.js.map +1 -1
  855. package/lib/utils/throttleByRaf.d.ts +4 -0
  856. package/lib/utils/throttleByRaf.js +26 -0
  857. package/lib/utils/throttleByRaf.js.map +1 -0
  858. package/lib/utils/types.d.ts +1 -0
  859. package/lib/utils/types.js +4 -0
  860. package/lib/utils/types.js.map +1 -1
  861. package/lib/utils/vue/vnode.d.ts +6 -6
  862. package/lib/version.d.ts +1 -1
  863. package/lib/version.js +1 -1
  864. package/lib/version.js.map +1 -1
  865. package/package.json +2 -2
  866. package/tags.json +1 -1
  867. package/theme-chalk/el-anchor-link.css +1 -0
  868. package/theme-chalk/el-anchor.css +1 -0
  869. package/theme-chalk/index.css +1 -1
  870. package/theme-chalk/src/anchor-link.scss +42 -0
  871. package/theme-chalk/src/anchor.scss +93 -0
  872. package/theme-chalk/src/common/var.scss +16 -0
  873. package/theme-chalk/src/index.scss +2 -0
  874. package/web-types.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"checkbox.mjs","sources":["../../../../../../packages/components/checkbox/src/checkbox.ts"],"sourcesContent":["import { UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { useSizeProp } from '@element-plus/hooks'\nimport { isBoolean, isNumber, isString } from '@element-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type Checkbox from './checkbox.vue'\n\nexport type CheckboxValueType = string | number | boolean\n\nexport const checkboxProps = {\n /**\n * @description binding value\n */\n modelValue: {\n type: [Number, String, Boolean],\n default: undefined,\n },\n /**\n * @description value of the Checkbox when used inside a `checkbox-group`\n */\n label: {\n type: [String, Boolean, Number, Object],\n default: undefined,\n },\n /**\n * @description Set indeterminate state, only responsible for style control\n */\n indeterminate: Boolean,\n /**\n * @description whether the Checkbox is disabled\n */\n disabled: Boolean,\n /**\n * @description if the Checkbox is checked\n */\n checked: Boolean,\n /**\n * @description native 'name' attribute\n */\n name: {\n type: String,\n default: undefined,\n },\n /**\n * @description value of the Checkbox if it's checked\n */\n trueLabel: {\n type: [String, Number],\n default: undefined,\n },\n /**\n * @description value of the Checkbox if it's not checked\n */\n falseLabel: {\n type: [String, Number],\n default: undefined,\n },\n /**\n * @description input id\n */\n id: {\n type: String,\n default: undefined,\n },\n /**\n * @description same as [aria-controls](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-controls), takes effect when `indeterminate` is `true`\n */\n controls: {\n type: String,\n default: undefined,\n },\n /**\n * @description whether to add a border around Checkbox\n */\n border: Boolean,\n /**\n * @description size of the Checkbox\n */\n size: useSizeProp,\n /**\n * @description input tabindex\n */\n tabindex: [String, Number],\n /**\n * @description whether to trigger form validation\n */\n validateEvent: {\n type: Boolean,\n default: true,\n },\n}\n\nexport const checkboxEmits = {\n [UPDATE_MODEL_EVENT]: (val: CheckboxValueType) =>\n isString(val) || isNumber(val) || isBoolean(val),\n change: (val: CheckboxValueType) =>\n isString(val) || isNumber(val) || isBoolean(val),\n}\n\nexport type CheckboxProps = ExtractPropTypes<typeof checkboxProps>\nexport type CheckboxEmits = typeof checkboxEmits\nexport type CheckboxInstance = InstanceType<typeof Checkbox>\n"],"names":[],"mappings":";;;;;;;;AAGY,MAAC,aAAa,GAAG;AAC7B,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC;AACnC,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC;AAC3C,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,aAAa,EAAE,OAAO;AACxB,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,OAAO,EAAE,OAAO;AAClB,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,EAAE,EAAE;AACN,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,MAAM,EAAE,OAAO;AACjB,EAAE,IAAI,EAAE,WAAW;AACnB,EAAE,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC5B,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE;AACU,MAAC,aAAa,GAAG;AAC7B,EAAE,CAAC,kBAAkB,GAAG,CAAC,GAAG,KAAK,QAAQ,CAAC,GAAG,CAAC,IAAI,QAAQ,CAAC,GAAG,CAAC,IAAI,SAAS,CAAC,GAAG,CAAC;AACjF,EAAE,MAAM,EAAE,CAAC,GAAG,KAAK,QAAQ,CAAC,GAAG,CAAC,IAAI,QAAQ,CAAC,GAAG,CAAC,IAAI,SAAS,CAAC,GAAG,CAAC;AACnE;;;;"}
1
+ {"version":3,"file":"checkbox.mjs","sources":["../../../../../../packages/components/checkbox/src/checkbox.ts"],"sourcesContent":["import { UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { useSizeProp } from '@element-plus/hooks'\nimport { isBoolean, isNumber, isString } from '@element-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type Checkbox from './checkbox.vue'\n\nexport type CheckboxValueType = string | number | boolean\n\nexport const checkboxProps = {\n /**\n * @description binding value\n */\n modelValue: {\n type: [Number, String, Boolean],\n default: undefined,\n },\n /**\n * @description label of the Checkbox when used inside a `checkbox-group`\n */\n label: {\n type: [String, Boolean, Number, Object],\n default: undefined,\n },\n /**\n * @description value of the Checkbox when used inside a `checkbox-group`\n */\n value: {\n type: [String, Boolean, Number, Object],\n default: undefined,\n },\n /**\n * @description Set indeterminate state, only responsible for style control\n */\n indeterminate: Boolean,\n /**\n * @description whether the Checkbox is disabled\n */\n disabled: Boolean,\n /**\n * @description if the Checkbox is checked\n */\n checked: Boolean,\n /**\n * @description native 'name' attribute\n */\n name: {\n type: String,\n default: undefined,\n },\n /**\n * @description value of the Checkbox if it's checked\n */\n trueValue: {\n type: [String, Number],\n default: undefined,\n },\n /**\n * @description value of the Checkbox if it's not checked\n */\n falseValue: {\n type: [String, Number],\n default: undefined,\n },\n /**\n * @deprecated use `trueValue` instead\n * @description value of the Checkbox if it's checked\n */\n trueLabel: {\n type: [String, Number],\n default: undefined,\n },\n /**\n * @deprecated use `falseValue` instead\n * @description value of the Checkbox if it's not checked\n */\n falseLabel: {\n type: [String, Number],\n default: undefined,\n },\n /**\n * @description input id\n */\n id: {\n type: String,\n default: undefined,\n },\n /**\n * @description same as [aria-controls](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-controls), takes effect when `indeterminate` is `true`\n */\n controls: {\n type: String,\n default: undefined,\n },\n /**\n * @description whether to add a border around Checkbox\n */\n border: Boolean,\n /**\n * @description size of the Checkbox\n */\n size: useSizeProp,\n /**\n * @description input tabindex\n */\n tabindex: [String, Number],\n /**\n * @description whether to trigger form validation\n */\n validateEvent: {\n type: Boolean,\n default: true,\n },\n}\n\nexport const checkboxEmits = {\n [UPDATE_MODEL_EVENT]: (val: CheckboxValueType) =>\n isString(val) || isNumber(val) || isBoolean(val),\n change: (val: CheckboxValueType) =>\n isString(val) || isNumber(val) || isBoolean(val),\n}\n\nexport type CheckboxProps = ExtractPropTypes<typeof checkboxProps>\nexport type CheckboxEmits = typeof checkboxEmits\nexport type CheckboxInstance = InstanceType<typeof Checkbox>\n"],"names":[],"mappings":";;;;;;;;AAGY,MAAC,aAAa,GAAG;AAC7B,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC;AACnC,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC;AAC3C,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC;AAC3C,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,aAAa,EAAE,OAAO;AACxB,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,OAAO,EAAE,OAAO;AAClB,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,EAAE,EAAE;AACN,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,MAAM,EAAE,OAAO;AACjB,EAAE,IAAI,EAAE,WAAW;AACnB,EAAE,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC5B,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE;AACU,MAAC,aAAa,GAAG;AAC7B,EAAE,CAAC,kBAAkB,GAAG,CAAC,GAAG,KAAK,QAAQ,CAAC,GAAG,CAAC,IAAI,QAAQ,CAAC,GAAG,CAAC,IAAI,SAAS,CAAC,GAAG,CAAC;AACjF,EAAE,MAAM,EAAE,CAAC,GAAG,KAAK,QAAQ,CAAC,GAAG,CAAC,IAAI,QAAQ,CAAC,GAAG,CAAC,IAAI,SAAS,CAAC,GAAG,CAAC;AACnE;;;;"}
@@ -7,6 +7,10 @@ declare const _default: import("vue").DefineComponent<{
7
7
  type: (ObjectConstructor | NumberConstructor | BooleanConstructor | StringConstructor)[];
8
8
  default: undefined;
9
9
  };
10
+ value: {
11
+ type: (ObjectConstructor | NumberConstructor | BooleanConstructor | StringConstructor)[];
12
+ default: undefined;
13
+ };
10
14
  indeterminate: BooleanConstructor;
11
15
  disabled: BooleanConstructor;
12
16
  checked: BooleanConstructor;
@@ -14,6 +18,14 @@ declare const _default: import("vue").DefineComponent<{
14
18
  type: StringConstructor;
15
19
  default: undefined;
16
20
  };
21
+ trueValue: {
22
+ type: (NumberConstructor | StringConstructor)[];
23
+ default: undefined;
24
+ };
25
+ falseValue: {
26
+ type: (NumberConstructor | StringConstructor)[];
27
+ default: undefined;
28
+ };
17
29
  trueLabel: {
18
30
  type: (NumberConstructor | StringConstructor)[];
19
31
  default: undefined;
@@ -52,6 +64,10 @@ declare const _default: import("vue").DefineComponent<{
52
64
  type: (ObjectConstructor | NumberConstructor | BooleanConstructor | StringConstructor)[];
53
65
  default: undefined;
54
66
  };
67
+ value: {
68
+ type: (ObjectConstructor | NumberConstructor | BooleanConstructor | StringConstructor)[];
69
+ default: undefined;
70
+ };
55
71
  indeterminate: BooleanConstructor;
56
72
  disabled: BooleanConstructor;
57
73
  checked: BooleanConstructor;
@@ -59,6 +75,14 @@ declare const _default: import("vue").DefineComponent<{
59
75
  type: StringConstructor;
60
76
  default: undefined;
61
77
  };
78
+ trueValue: {
79
+ type: (NumberConstructor | StringConstructor)[];
80
+ default: undefined;
81
+ };
82
+ falseValue: {
83
+ type: (NumberConstructor | StringConstructor)[];
84
+ default: undefined;
85
+ };
62
86
  trueLabel: {
63
87
  type: (NumberConstructor | StringConstructor)[];
64
88
  default: undefined;
@@ -102,6 +126,7 @@ declare const _default: import("vue").DefineComponent<{
102
126
  checkboxSize: import("vue").ComputedRef<"" | "default" | "small" | "large">;
103
127
  hasOwnLabel: import("vue").ComputedRef<boolean>;
104
128
  model: import("vue").WritableComputedRef<any>;
129
+ actualValue: import("vue").ComputedRef<string | number | boolean | Record<string, any> | undefined>;
105
130
  handleChange: (e: Event) => void;
106
131
  onClickRoot: (e: MouseEvent) => Promise<void>;
107
132
  ns: {
@@ -136,6 +161,10 @@ declare const _default: import("vue").DefineComponent<{
136
161
  type: (ObjectConstructor | NumberConstructor | BooleanConstructor | StringConstructor)[];
137
162
  default: undefined;
138
163
  };
164
+ value: {
165
+ type: (ObjectConstructor | NumberConstructor | BooleanConstructor | StringConstructor)[];
166
+ default: undefined;
167
+ };
139
168
  indeterminate: BooleanConstructor;
140
169
  disabled: BooleanConstructor;
141
170
  checked: BooleanConstructor;
@@ -143,6 +172,14 @@ declare const _default: import("vue").DefineComponent<{
143
172
  type: StringConstructor;
144
173
  default: undefined;
145
174
  };
175
+ trueValue: {
176
+ type: (NumberConstructor | StringConstructor)[];
177
+ default: undefined;
178
+ };
179
+ falseValue: {
180
+ type: (NumberConstructor | StringConstructor)[];
181
+ default: undefined;
182
+ };
146
183
  trueLabel: {
147
184
  type: (NumberConstructor | StringConstructor)[];
148
185
  default: undefined;
@@ -175,6 +212,7 @@ declare const _default: import("vue").DefineComponent<{
175
212
  onChange?: ((val: import("./checkbox").CheckboxValueType) => any) | undefined;
176
213
  "onUpdate:modelValue"?: ((val: import("./checkbox").CheckboxValueType) => any) | undefined;
177
214
  }, {
215
+ value: string | number | boolean | Record<string, any>;
178
216
  modelValue: string | number | boolean;
179
217
  label: string | number | boolean | Record<string, any>;
180
218
  id: string;
@@ -184,6 +222,8 @@ declare const _default: import("vue").DefineComponent<{
184
222
  border: boolean;
185
223
  indeterminate: boolean;
186
224
  checked: boolean;
225
+ trueValue: string | number;
226
+ falseValue: string | number;
187
227
  trueLabel: string | number;
188
228
  falseLabel: string | number;
189
229
  controls: string;
@@ -27,6 +27,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
27
27
  checkboxSize,
28
28
  hasOwnLabel,
29
29
  model,
30
+ actualValue,
30
31
  handleChange,
31
32
  onClickRoot
32
33
  } = useCheckbox(props, slots);
@@ -59,7 +60,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
59
60
  createElementVNode("span", {
60
61
  class: normalizeClass(unref(spanKls))
61
62
  }, [
62
- _ctx.trueLabel || _ctx.falseLabel ? withDirectives((openBlock(), createElementBlock("input", {
63
+ _ctx.trueValue || _ctx.falseValue || _ctx.trueLabel || _ctx.falseLabel ? withDirectives((openBlock(), createElementBlock("input", {
63
64
  key: 0,
64
65
  id: unref(inputId),
65
66
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(model) ? model.value = $event : null),
@@ -69,8 +70,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
69
70
  name: _ctx.name,
70
71
  tabindex: _ctx.tabindex,
71
72
  disabled: unref(isDisabled),
72
- "true-value": _ctx.trueLabel,
73
- "false-value": _ctx.falseLabel,
73
+ "true-value": _ctx.trueValue || _ctx.trueLabel,
74
+ "false-value": _ctx.falseValue || _ctx.falseLabel,
74
75
  onChange: _cache[1] || (_cache[1] = (...args) => unref(handleChange) && unref(handleChange)(...args)),
75
76
  onFocus: _cache[2] || (_cache[2] = ($event) => isFocused.value = true),
76
77
  onBlur: _cache[3] || (_cache[3] = ($event) => isFocused.value = false),
@@ -86,7 +87,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
86
87
  type: "checkbox",
87
88
  indeterminate: _ctx.indeterminate,
88
89
  disabled: unref(isDisabled),
89
- value: _ctx.label,
90
+ value: unref(actualValue),
90
91
  name: _ctx.name,
91
92
  tabindex: _ctx.tabindex,
92
93
  onChange: _cache[6] || (_cache[6] = (...args) => unref(handleChange) && unref(handleChange)(...args)),
@@ -1 +1 @@
1
- {"version":3,"file":"checkbox2.mjs","sources":["../../../../../../packages/components/checkbox/src/checkbox.vue"],"sourcesContent":["<template>\n <component\n :is=\"!hasOwnLabel && isLabeledByFormItem ? 'span' : 'label'\"\n :class=\"compKls\"\n :aria-controls=\"indeterminate ? controls : null\"\n @click=\"onClickRoot\"\n >\n <span :class=\"spanKls\">\n <input\n v-if=\"trueLabel || falseLabel\"\n :id=\"inputId\"\n v-model=\"model\"\n :class=\"ns.e('original')\"\n type=\"checkbox\"\n :indeterminate=\"indeterminate\"\n :name=\"name\"\n :tabindex=\"tabindex\"\n :disabled=\"isDisabled\"\n :true-value=\"trueLabel\"\n :false-value=\"falseLabel\"\n @change=\"handleChange\"\n @focus=\"isFocused = true\"\n @blur=\"isFocused = false\"\n @click.stop\n />\n <input\n v-else\n :id=\"inputId\"\n v-model=\"model\"\n :class=\"ns.e('original')\"\n type=\"checkbox\"\n :indeterminate=\"indeterminate\"\n :disabled=\"isDisabled\"\n :value=\"label\"\n :name=\"name\"\n :tabindex=\"tabindex\"\n @change=\"handleChange\"\n @focus=\"isFocused = true\"\n @blur=\"isFocused = false\"\n @click.stop\n />\n <span :class=\"ns.e('inner')\" />\n </span>\n <span v-if=\"hasOwnLabel\" :class=\"ns.e('label')\">\n <slot />\n <template v-if=\"!$slots.default\">{{ label }}</template>\n </span>\n </component>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, useSlots } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { checkboxEmits, checkboxProps } from './checkbox'\nimport { useCheckbox } from './composables'\n\ndefineOptions({\n name: 'ElCheckbox',\n})\n\nconst props = defineProps(checkboxProps)\ndefineEmits(checkboxEmits)\nconst slots = useSlots()\n\nconst {\n inputId,\n isLabeledByFormItem,\n isChecked,\n isDisabled,\n isFocused,\n checkboxSize,\n hasOwnLabel,\n model,\n handleChange,\n onClickRoot,\n} = useCheckbox(props, slots)\n\nconst ns = useNamespace('checkbox')\n\nconst compKls = computed(() => {\n return [\n ns.b(),\n ns.m(checkboxSize.value),\n ns.is('disabled', isDisabled.value),\n ns.is('bordered', props.border),\n ns.is('checked', isChecked.value),\n ]\n})\n\nconst spanKls = computed(() => {\n return [\n ns.e('input'),\n ns.is('disabled', isDisabled.value),\n ns.is('checked', isChecked.value),\n ns.is('indeterminate', props.indeterminate),\n ns.is('focus', isFocused.value),\n ]\n})\n</script>\n"],"names":[],"mappings":";;;;;;;;;;mCAwDc,CAAA;AAAA,EACZ,IAAM,EAAA,YAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAIA,IAAA,MAAM,QAAQ,QAAS,EAAA,CAAA;AAEvB,IAAM,MAAA;AAAA,MACJ,OAAA;AAAA,MACA,mBAAA;AAAA,MACA,SAAA;AAAA,MACA,UAAA;AAAA,MACA,SAAA;AAAA,MACA,YAAA;AAAA,MACA,WAAA;AAAA,MACA,KAAA;AAAA,MACA,YAAA;AAAA,MACA,WAAA;AAAA,KACE,GAAA,WAAA,CAAY,OAAO,KAAK,CAAA,CAAA;AAE5B,IAAM,MAAA,EAAA,GAAK,aAAa,UAAU,CAAA,CAAA;AAElC,IAAM,MAAA,OAAA,GAAU,SAAS,MAAM;AAC7B,MAAO,OAAA;AAAA,QACL,GAAG,CAAE,EAAA;AAAA,QACL,EAAA,CAAG,CAAE,CAAA,YAAA,CAAa,KAAK,CAAA;AAAA,QACvB,EAAG,CAAA,EAAA,CAAG,UAAY,EAAA,UAAA,CAAW,KAAK,CAAA;AAAA,QAClC,EAAG,CAAA,EAAA,CAAG,UAAY,EAAA,KAAA,CAAM,MAAM,CAAA;AAAA,QAC9B,EAAG,CAAA,EAAA,CAAG,SAAW,EAAA,SAAA,CAAU,KAAK,CAAA;AAAA,OAClC,CAAA;AAAA,KACD,CAAA,CAAA;AAED,IAAM,MAAA,OAAA,GAAU,SAAS,MAAM;AAC7B,MAAO,OAAA;AAAA,QACL,EAAA,CAAG,EAAE,OAAO,CAAA;AAAA,QACZ,EAAG,CAAA,EAAA,CAAG,UAAY,EAAA,UAAA,CAAW,KAAK,CAAA;AAAA,QAClC,EAAG,CAAA,EAAA,CAAG,SAAW,EAAA,SAAA,CAAU,KAAK,CAAA;AAAA,QAChC,EAAG,CAAA,EAAA,CAAG,eAAiB,EAAA,KAAA,CAAM,aAAa,CAAA;AAAA,QAC1C,EAAG,CAAA,EAAA,CAAG,OAAS,EAAA,SAAA,CAAU,KAAK,CAAA;AAAA,OAChC,CAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"checkbox2.mjs","sources":["../../../../../../packages/components/checkbox/src/checkbox.vue"],"sourcesContent":["<template>\n <component\n :is=\"!hasOwnLabel && isLabeledByFormItem ? 'span' : 'label'\"\n :class=\"compKls\"\n :aria-controls=\"indeterminate ? controls : null\"\n @click=\"onClickRoot\"\n >\n <span :class=\"spanKls\">\n <input\n v-if=\"trueValue || falseValue || trueLabel || falseLabel\"\n :id=\"inputId\"\n v-model=\"model\"\n :class=\"ns.e('original')\"\n type=\"checkbox\"\n :indeterminate=\"indeterminate\"\n :name=\"name\"\n :tabindex=\"tabindex\"\n :disabled=\"isDisabled\"\n :true-value=\"trueValue || trueLabel\"\n :false-value=\"falseValue || falseLabel\"\n @change=\"handleChange\"\n @focus=\"isFocused = true\"\n @blur=\"isFocused = false\"\n @click.stop\n />\n <input\n v-else\n :id=\"inputId\"\n v-model=\"model\"\n :class=\"ns.e('original')\"\n type=\"checkbox\"\n :indeterminate=\"indeterminate\"\n :disabled=\"isDisabled\"\n :value=\"actualValue\"\n :name=\"name\"\n :tabindex=\"tabindex\"\n @change=\"handleChange\"\n @focus=\"isFocused = true\"\n @blur=\"isFocused = false\"\n @click.stop\n />\n <span :class=\"ns.e('inner')\" />\n </span>\n <span v-if=\"hasOwnLabel\" :class=\"ns.e('label')\">\n <slot />\n <template v-if=\"!$slots.default\">{{ label }}</template>\n </span>\n </component>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, useSlots } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { checkboxEmits, checkboxProps } from './checkbox'\nimport { useCheckbox } from './composables'\n\ndefineOptions({\n name: 'ElCheckbox',\n})\n\nconst props = defineProps(checkboxProps)\ndefineEmits(checkboxEmits)\nconst slots = useSlots()\n\nconst {\n inputId,\n isLabeledByFormItem,\n isChecked,\n isDisabled,\n isFocused,\n checkboxSize,\n hasOwnLabel,\n model,\n actualValue,\n handleChange,\n onClickRoot,\n} = useCheckbox(props, slots)\n\nconst ns = useNamespace('checkbox')\n\nconst compKls = computed(() => {\n return [\n ns.b(),\n ns.m(checkboxSize.value),\n ns.is('disabled', isDisabled.value),\n ns.is('bordered', props.border),\n ns.is('checked', isChecked.value),\n ]\n})\n\nconst spanKls = computed(() => {\n return [\n ns.e('input'),\n ns.is('disabled', isDisabled.value),\n ns.is('checked', isChecked.value),\n ns.is('indeterminate', props.indetermin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QAC1C,EAAG,CAAA,EAAA,CAAG,OAAS,EAAA,SAAA,CAAU,KAAK,CAAA;AAAA,OAChC,CAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -17,7 +17,7 @@ const useCheckboxEvent = (props, {
17
17
  const { emit } = getCurrentInstance();
18
18
  function getLabeledValue(value) {
19
19
  var _a, _b;
20
- return value === props.trueLabel || value === true ? (_a = props.trueLabel) != null ? _a : true : (_b = props.falseLabel) != null ? _b : false;
20
+ return [true, props.trueValue, props.trueLabel].includes(value) ? (_a = props.trueValue || props.trueLabel) != null ? _a : true : (_b = props.falseValue || props.falseLabel) != null ? _b : false;
21
21
  }
22
22
  function emitChangeEvent(checked, e) {
23
23
  emit("change", getLabeledValue(checked), e);
@@ -35,7 +35,7 @@ const useCheckboxEvent = (props, {
35
35
  const eventTargets = e.composedPath();
36
36
  const hasLabel = eventTargets.some((item) => item.tagName === "LABEL");
37
37
  if (!hasLabel) {
38
- model.value = getLabeledValue([false, props.falseLabel].includes(model.value));
38
+ model.value = getLabeledValue([false, props.falseValue, props.falseLabel].includes(model.value));
39
39
  await nextTick();
40
40
  emitChangeEvent(model.value, e);
41
41
  }
@@ -1 +1 @@
1
- {"version":3,"file":"use-checkbox-event.mjs","sources":["../../../../../../../packages/components/checkbox/src/composables/use-checkbox-event.ts"],"sourcesContent":["import { computed, getCurrentInstance, inject, nextTick, watch } from 'vue'\nimport { useFormItem } from '@element-plus/components/form'\nimport { debugWarn } from '@element-plus/utils'\nimport { checkboxGroupContextKey } from '../constants'\n\nimport type { useFormItemInputId } from '@element-plus/components/form'\nimport type { CheckboxProps } from '../checkbox'\nimport type {\n CheckboxDisabled,\n CheckboxModel,\n CheckboxStatus,\n} from '../composables'\n\nexport const useCheckboxEvent = (\n props: CheckboxProps,\n {\n model,\n isLimitExceeded,\n hasOwnLabel,\n isDisabled,\n isLabeledByFormItem,\n }: Pick<CheckboxModel, 'model' | 'isLimitExceeded'> &\n Pick<CheckboxStatus, 'hasOwnLabel'> &\n Pick<CheckboxDisabled, 'isDisabled'> &\n Pick<ReturnType<typeof useFormItemInputId>, 'isLabeledByFormItem'>\n) => {\n const checkboxGroup = inject(checkboxGroupContextKey, undefined)\n const { formItem } = useFormItem()\n const { emit } = getCurrentInstance()!\n\n function getLabeledValue(value: string | number | boolean) {\n return value === props.trueLabel || value === true\n ? props.trueLabel ?? true\n : props.falseLabel ?? false\n }\n\n function emitChangeEvent(\n checked: string | number | boolean,\n e: InputEvent | MouseEvent\n ) {\n emit('change', getLabeledValue(checked), e)\n }\n\n function handleChange(e: Event) {\n if (isLimitExceeded.value) return\n\n const target = e.target as HTMLInputElement\n emit('change', getLabeledValue(target.checked), e)\n }\n\n async function onClickRoot(e: MouseEvent) {\n if (isLimitExceeded.value) return\n\n if (!hasOwnLabel.value && !isDisabled.value && isLabeledByFormItem.value) {\n // fix: https://github.com/element-plus/element-plus/issues/9981\n const eventTargets: EventTarget[] = e.composedPath()\n const hasLabel = eventTargets.some(\n (item) => (item as HTMLElement).tagName === 'LABEL'\n )\n if (!hasLabel) {\n model.value = getLabeledValue(\n [false, props.falseLabel].includes(model.value)\n )\n await nextTick()\n emitChangeEvent(model.value, e)\n }\n }\n }\n\n const validateEvent = computed(\n () => checkboxGroup?.validateEvent || props.validateEvent\n )\n\n watch(\n () => props.modelValue,\n () => {\n if (validateEvent.value) {\n formItem?.validate('change').catch((err) => debugWarn(err))\n }\n }\n )\n\n return {\n handleChange,\n onClickRoot,\n }\n}\n"],"names":[],"mappings":";;;;;;;AAIY,MAAC,gBAAgB,GAAG,CAAC,KAAK,EAAE;AACxC,EAAE,KAAK;AACP,EAAE,eAAe;AACjB,EAAE,WAAW;AACb,EAAE,UAAU;AACZ,EAAE,mBAAmB;AACrB,CAAC,KAAK;AACN,EAAE,MAAM,aAAa,GAAG,MAAM,CAAC,uBAAuB,EAAE,KAAK,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OAAO,KAAK,OAAO,CAAC,CAAC;AAC7E,MAAM,IAAI,CAAC,QAAQ,EAAE;AACrB,QAAQ,KAAK,CAAC,KAAK,GAAG,eAAe,CAAC,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;AACvF,QAAQ,MAAM,QAAQ,EAAE,CAAC;AACzB,QAAQ,eAAe,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;AACxC,OAAO;AACP,KAAK;AACL,GAAG;AACH,EAAE,MAAM,aAAa,GAAG,QAAQ,CAAC,MAAM,CAAC,aAAa,IAAI,IAAI,GAAG,KAAK,CAAC,GAAG,aAAa,CAAC,aAAa,KAAK,KAAK,CAAC,aAAa,CAAC,CAAC;AAC9H,EAAE,KAAK,CAAC,MAAM,KAAK,CAAC,UAAU,EAAE,MAAM;AACtC,IAAI,IAAI,aAAa,CAAC,KAAK,EAAE;AAC7B,MAAM,QAAQ,IAAI,IAAI,GAAG,KAAK,CAAC,GAAG,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,CAAC,GAAG,KAAK,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;AAC7F,KAAK;AACL,GAAG,CAAC,CAAC;AACL,EAAE,OAAO;AACT,IAAI,YAAY;AAChB,IAAI,WAAW;AACf,GAAG,CAAC;AACJ;;;;"}
1
+ {"version":3,"file":"use-checkbox-event.mjs","sources":["../../../../../../../packages/components/checkbox/src/composables/use-checkbox-event.ts"],"sourcesContent":["import { computed, getCurrentInstance, inject, nextTick, watch } from 'vue'\nimport { useFormItem } from '@element-plus/components/form'\nimport { debugWarn } from '@element-plus/utils'\nimport { checkboxGroupContextKey } from '../constants'\n\nimport type { useFormItemInputId } from '@element-plus/components/form'\nimport type { CheckboxProps } from '../checkbox'\nimport type {\n CheckboxDisabled,\n CheckboxModel,\n CheckboxStatus,\n} from '../composables'\n\nexport const useCheckboxEvent = (\n props: CheckboxProps,\n {\n model,\n isLimitExceeded,\n hasOwnLabel,\n isDisabled,\n isLabeledByFormItem,\n }: Pick<CheckboxModel, 'model' | 'isLimitExceeded'> &\n Pick<CheckboxStatus, 'hasOwnLabel'> &\n Pick<CheckboxDisabled, 'isDisabled'> &\n Pick<ReturnType<typeof useFormItemInputId>, 'isLabeledByFormItem'>\n) => {\n const checkboxGroup = inject(checkboxGroupContextKey, undefined)\n const { formItem } = useFormItem()\n const { emit } = getCurrentInstance()!\n\n function getLabeledValue(value: string | number | boolean) {\n return [true, props.trueValue, props.trueLabel].includes(value)\n ? (props.trueValue || props.trueLabel) ?? true\n : (props.falseValue || props.falseLabel) ?? false\n }\n\n function emitChangeEvent(\n checked: string | number | boolean,\n e: InputEvent | MouseEvent\n ) {\n emit('change', getLabeledValue(checked), e)\n }\n\n function handleChange(e: Event) {\n if (isLimitExceeded.value) return\n\n const target = e.target as HTMLInputElement\n emit('change', getLabeledValue(target.checked), e)\n }\n\n async function onClickRoot(e: MouseEvent) {\n if (isLimitExceeded.value) return\n\n if (!hasOwnLabel.value && !isDisabled.value && isLabeledByFormItem.value) {\n // fix: https://github.com/element-plus/element-plus/issues/9981\n const eventTargets: EventTarget[] = e.composedPath()\n const hasLabel = eventTargets.some(\n (item) => (item as HTMLElement).tagName === 'LABEL'\n )\n if (!hasLabel) {\n model.value = getLabeledValue(\n [false, props.falseValue, props.falseLabel].includes(model.value)\n )\n await nextTick()\n emitChangeEvent(model.value, e)\n }\n }\n }\n\n const validateEvent = computed(\n () => checkboxGroup?.validateEvent || props.validateEvent\n )\n\n watch(\n () => props.modelValue,\n () => {\n if (validateEvent.value) {\n formItem?.validate('change').catch((err) => debugWarn(err))\n }\n }\n )\n\n return {\n handleChange,\n onClickRoot,\n }\n}\n"],"names":[],"mappings":";;;;;;;AAIY,MAAC,gBAAgB,GAAG,CAAC,KAAK,EAAE;AACxC,EAAE,KAAK;AACP,EAAE,eAAe;AACjB,EAAE,WA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ize: import("vue").ComputedRef<"" | "default" | "small" | "large">;
9
9
  hasOwnLabel: import("vue").ComputedRef<boolean>;
10
+ actualValue: import("vue").ComputedRef<string | number | boolean | Record<string, any> | undefined>;
10
11
  };
11
12
  export declare type CheckboxStatus = ReturnType<typeof useCheckboxStatus>;
@@ -1,27 +1,33 @@
1
1
  import { inject, ref, computed, toRaw } from 'vue';
2
- import { isEqual, isNil } from 'lodash-unified';
2
+ import { isEqual } from 'lodash-unified';
3
3
  import '../../../form/index.mjs';
4
4
  import '../../../../utils/index.mjs';
5
5
  import { checkboxGroupContextKey } from '../constants.mjs';
6
- import { isBoolean } from '../../../../utils/types.mjs';
6
+ import { isPropAbsent, isBoolean } from '../../../../utils/types.mjs';
7
7
  import { isArray, isObject } from '@vue/shared';
8
8
  import { useFormSize } from '../../../form/src/hooks/use-form-common-props.mjs';
9
9
 
10
10
  const useCheckboxStatus = (props, slots, { model }) => {
11
11
  const checkboxGroup = inject(checkboxGroupContextKey, void 0);
12
12
  const isFocused = ref(false);
13
+ const actualValue = computed(() => {
14
+ if (!isPropAbsent(props.value)) {
15
+ return props.value;
16
+ }
17
+ return props.label;
18
+ });
13
19
  const isChecked = computed(() => {
14
20
  const value = model.value;
15
21
  if (isBoolean(value)) {
16
22
  return value;
17
23
  } else if (isArray(value)) {
18
- if (isObject(props.label)) {
19
- return value.map(toRaw).some((o) => isEqual(o, props.label));
24
+ if (isObject(actualValue.value)) {
25
+ return value.map(toRaw).some((o) => isEqual(o, actualValue.value));
20
26
  } else {
21
- return value.map(toRaw).includes(props.label);
27
+ return value.map(toRaw).includes(actualValue.value);
22
28
  }
23
29
  } else if (value !== null && value !== void 0) {
24
- return value === props.trueLabel;
30
+ return value === props.trueValue || value === props.trueLabel;
25
31
  } else {
26
32
  return !!value;
27
33
  }
@@ -37,14 +43,15 @@ const useCheckboxStatus = (props, slots, { model }) => {
37
43
  return (_a = checkboxGroup == null ? void 0 : checkboxGroup.size) == null ? void 0 : _a.value;
38
44
  }));
39
45
  const hasOwnLabel = computed(() => {
40
- return !!slots.default || !isNil(props.label);
46
+ return !!slots.default || !isPropAbsent(actualValue.value);
41
47
  });
42
48
  return {
43
49
  checkboxButtonSize,
44
50
  isChecked,
45
51
  isFocused,
46
52
  checkboxSize,
47
- hasOwnLabel
53
+ hasOwnLabel,
54
+ actualValue
48
55
  };
49
56
  };
50
57
 
@@ -1 +1 @@
1
- {"version":3,"file":"use-checkbox-status.mjs","sources":["../../../../../../../packages/components/checkbox/src/composables/use-checkbox-status.ts"],"sourcesContent":["import { computed, inject, ref, toRaw } from 'vue'\nimport { isEqual, isNil } from 'lodash-unified'\nimport { useFormSize } from '@element-plus/components/form'\nimport { isArray, isBoolean, isObject } from '@element-plus/utils'\nimport { checkboxGroupContextKey } from '../constants'\n\nimport type { ComponentInternalInstance } from 'vue'\nimport type { CheckboxProps } from '../checkbox'\nimport type { CheckboxModel } from '../composables'\n\nexport const useCheckboxStatus = (\n props: CheckboxProps,\n slots: ComponentInternalInstance['slots'],\n { model }: Pick<CheckboxModel, 'model'>\n) => {\n const checkboxGroup = inject(checkboxGroupContextKey, undefined)\n const isFocused = ref(false)\n const isChecked = computed<boolean>(() => {\n const value = model.value\n if (isBoolean(value)) {\n return value\n } else if (isArray(value)) {\n if (isObject(props.label)) {\n return value.map(toRaw).some((o) => isEqual(o, props.label))\n } else {\n return value.map(toRaw).includes(props.label)\n }\n } else if (value !== null && value !== undefined) {\n return value === props.trueLabel\n } else {\n return !!value\n }\n })\n\n const checkboxButtonSize = useFormSize(\n computed(() => checkboxGroup?.size?.value),\n {\n prop: true,\n }\n )\n const checkboxSize = useFormSize(computed(() => checkboxGroup?.size?.value))\n\n const hasOwnLabel = computed<boolean>(() => {\n return !!slots.default || !isNil(props.label)\n })\n\n return {\n checkboxButtonSize,\n isChecked,\n isFocused,\n checkboxSize,\n hasOwnLabel,\n }\n}\n\nexport type CheckboxStatus = ReturnType<typeof useCheckboxStatus>\n"],"names":[],"mappings":";;;;;;;;;AAKY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AG,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC;AAClG,GAAG,CAAC,EAAE;AACN,IAAI,IAAI,EAAE,IAAI;AACd,GAAG,CAAC,CAAC;AACL,EAAE,MAAM,YAAY,GAAG,WAAW,CAAC,QAAQ,CAAC,MAAM;AAClD,IAAI,IAAI,EAAE,CAAC;AACX,IAAI,OAAO,CAAC,EAAE,GAAG,aAAa,IAAI,IAAI,GAAG,KAAK,CAAC,GAAG,aAAa,CAAC,IAAI,KAAK,IAAI,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC;AAClG,GAAG,CAAC,CAAC,CAAC;AACN,EAAE,MAAM,WAAW,GAAG,QAAQ,CAAC,MAAM;AACrC,IAAI,OAAO,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AAClD,GAAG,CAAC,CAAC;AACL,EAAE,OAAO;AACT,IAAI,kBAAkB;AACtB,IAAI,SAAS;AACb,IAAI,SAAS;AACb,IAAI,YAAY;AAChB,IAAI,WAAW;AACf,GAAG,CAAC;AACJ;;;;"}
1
+ {"version":3,"file":"use-checkbox-status.mjs","sources":["../../../../../../../packages/components/checkbox/src/composables/use-checkbox-status.ts"],"sourcesContent":["import { computed, inject, ref, toRaw } from 'vue'\nimport { isEqual } from 'lodash-unified'\nimport { useFormSize } from '@element-plus/components/form'\nimport { isArray, isBoolean, isObject, isPropAbsent } from '@element-plus/utils'\nimport { checkboxGroupContextKey } from '../constants'\n\nimport type { ComponentInternalInstance } from 'vue'\nimport type { CheckboxProps } from '../checkbox'\nimport type { CheckboxModel } from '../composables'\n\nexport const useCheckboxStatus = (\n props: CheckboxProps,\n slots: ComponentInternalInstance['slots'],\n { model }: Pick<CheckboxModel, 'model'>\n) => {\n const checkboxGroup = inject(checkboxGroupContextKey, undefined)\n const isFocused = ref(false)\n const actualValue = computed(() => {\n // In version 2.x, if there's no props.value, props.label will act as props.value\n // In version 3.x, remove this computed value, use props.value instead.\n if (!isPropAbsent(props.value)) {\n return props.value\n }\n return props.label\n })\n const isChecked = computed<boolean>(() => {\n const value = model.value\n if (isBoolean(value)) {\n return value\n } else if (isArray(value)) {\n if (isObject(actualValue.value)) {\n return value.map(toRaw).some((o) => isEqual(o, actualValue.value))\n } else {\n return value.map(toRaw).includes(actualValue.value)\n }\n } else if (value !== null && value !== undefined) {\n return value === props.trueValue || value === props.trueLabel\n } else {\n return !!value\n }\n })\n\n const checkboxButtonSize = useFormSize(\n computed(() => checkboxGroup?.size?.value),\n {\n prop: true,\n }\n )\n const checkboxSize = useFormSize(computed(() => checkboxGroup?.size?.value))\n\n const hasOwnLabel = computed<boolean>(() => {\n return !!slots.default || !isPropAbsent(actualValue.value)\n })\n\n return {\n checkboxButtonSize,\n isChecked,\n isFocused,\n checkboxSize,\n hasOwnLabel,\n actualValue,\n }\n}\n\nexport type CheckboxStatus = ReturnType<typeof useCheckboxStatus>\n"],"names":[],"mappings":";;;;;;;;;AAKY,MAAC,iBAAiB,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,KAAK;AAC9D,EAAE,MAAM,aAAa,GAAG,MAAM,CAAC,uBAAuB,EAAE,KAAK,CAAC,CAAC,CAAC;AAChE,EAAE,MAAM,SAAS,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC;AAC/B,EAAE,MAAM,WAAW,GAAG,QAAQ,CAAC,MAAM;AACrC,IAAI,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE;AACpC,MAAM,OAAO,KAAK,CAAC,KAAK,CAAC;AACzB,KAAK;AACL,IAAI,OAAO,KAAK,CAAC,KAAK,CAAC;AACvB,GAAG,CAAC,CAAC;AACL,EAAE,MAAM,SAAS,GAAG,QAAQ,CAAC,MAAM;AACnC,IAAI,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC;AAC9B,IAAI,IAAI,SAAS,CAAC,KAAK,CAAC,EAA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CAAC,GAAG,EAAE,CAAC,KAAK,CAAC;AAClG,GAAG,CAAC,CAAC,CAAC;AACN,EAAE,MAAM,WAAW,GAAG,QAAQ,CAAC,MAAM;AACrC,IAAI,OAAO,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,YAAY,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC/D,GAAG,CAAC,CAAC;AACL,EAAE,OAAO;AACT,IAAI,kBAAkB;AACtB,IAAI,SAAS;AACb,IAAI,SAAS;AACb,IAAI,YAAY;AAChB,IAAI,WAAW;AACf,IAAI,WAAW;AACf,GAAG,CAAC;AACJ;;;;"}
@@ -10,6 +10,7 @@ export declare const useCheckbox: (props: CheckboxProps, slots: ComponentInterna
10
10
  checkboxSize: import("vue").ComputedRef<"" | "default" | "small" | "large">;
11
11
  hasOwnLabel: import("vue").ComputedRef<boolean>;
12
12
  model: import("vue").WritableComputedRef<any>;
13
+ actualValue: import("vue").ComputedRef<string | number | boolean | Record<string, any> | undefined>;
13
14
  handleChange: (e: Event) => void;
14
15
  onClickRoot: (e: MouseEvent) => Promise<void>;
15
16
  };
@@ -1,22 +1,16 @@
1
+ import { computed } from 'vue';
1
2
  import '../../../form/index.mjs';
2
3
  import '../../../../utils/index.mjs';
4
+ import '../../../../hooks/index.mjs';
3
5
  import { useCheckboxDisabled } from './use-checkbox-disabled.mjs';
4
6
  import { useCheckboxEvent } from './use-checkbox-event.mjs';
5
7
  import { useCheckboxModel } from './use-checkbox-model.mjs';
6
8
  import { useCheckboxStatus } from './use-checkbox-status.mjs';
7
- import { isArray } from '@vue/shared';
8
9
  import { useFormItem, useFormItemInputId } from '../../../form/src/hooks/use-form-item.mjs';
10
+ import { isArray } from '@vue/shared';
11
+ import { useDeprecated } from '../../../../hooks/use-deprecated/index.mjs';
12
+ import { isPropAbsent } from '../../../../utils/types.mjs';
9
13
 
10
- const setStoreValue = (props, { model }) => {
11
- function addToStore() {
12
- if (isArray(model.value) && !model.value.includes(props.label)) {
13
- model.value.push(props.label);
14
- } else {
15
- model.value = props.trueLabel || true;
16
- }
17
- }
18
- props.checked && addToStore();
19
- };
20
14
  const useCheckbox = (props, slots) => {
21
15
  const { formItem: elFormItem } = useFormItem();
22
16
  const { model, isGroup, isLimitExceeded } = useCheckboxModel(props);
@@ -25,7 +19,8 @@ const useCheckbox = (props, slots) => {
25
19
  isChecked,
26
20
  checkboxButtonSize,
27
21
  checkboxSize,
28
- hasOwnLabel
22
+ hasOwnLabel,
23
+ actualValue
29
24
  } = useCheckboxStatus(props, slots, { model });
30
25
  const { isDisabled } = useCheckboxDisabled({ model, isChecked });
31
26
  const { inputId, isLabeledByFormItem } = useFormItemInputId(props, {
@@ -40,7 +35,38 @@ const useCheckbox = (props, slots) => {
40
35
  isDisabled,
41
36
  isLabeledByFormItem
42
37
  });
43
- setStoreValue(props, { model });
38
+ const setStoreValue = () => {
39
+ function addToStore() {
40
+ if (isArray(model.value) && !model.value.includes(actualValue.value)) {
41
+ model.value.push(actualValue.value);
42
+ } else {
43
+ model.value = props.trueValue || props.trueLabel || true;
44
+ }
45
+ }
46
+ props.checked && addToStore();
47
+ };
48
+ setStoreValue();
49
+ useDeprecated({
50
+ from: "label act as value",
51
+ replacement: "value",
52
+ version: "3.0.0",
53
+ scope: "el-checkbox",
54
+ ref: "https://element-plus.org/en-US/component/checkbox.html"
55
+ }, computed(() => isGroup.value && isPropAbsent(props.value)));
56
+ useDeprecated({
57
+ from: "true-label",
58
+ replacement: "true-value",
59
+ version: "3.0.0",
60
+ scope: "el-checkbox",
61
+ ref: "https://element-plus.org/en-US/component/checkbox.html"
62
+ }, computed(() => !!props.trueLabel));
63
+ useDeprecated({
64
+ from: "false-label",
65
+ replacement: "false-value",
66
+ version: "3.0.0",
67
+ scope: "el-checkbox",
68
+ ref: "https://element-plus.org/en-US/component/checkbox.html"
69
+ }, computed(() => !!props.falseLabel));
44
70
  return {
45
71
  inputId,
46
72
  isLabeledByFormItem,
@@ -51,6 +77,7 @@ const useCheckbox = (props, slots) => {
51
77
  checkboxSize,
52
78
  hasOwnLabel,
53
79
  model,
80
+ actualValue,
54
81
  handleChange,
55
82
  onClickRoot
56
83
  };
@@ -1 +1 @@
1
- {"version":3,"file":"use-checkbox.mjs","sources":["../../../../../../../packages/components/checkbox/src/composables/use-checkbox.ts"],"sourcesContent":["import { useFormItem, useFormItemInputId } from '@element-plus/components/form'\nimport { isArray } from '@element-plus/utils'\nimport { useCheckboxDisabled } from './use-checkbox-disabled'\nimport { useCheckboxEvent } from './use-checkbox-event'\nimport { useCheckboxModel } from './use-checkbox-model'\nimport { useCheckboxStatus } from './use-checkbox-status'\n\nimport type { ComponentInternalInstance } from 'vue'\nimport type { CheckboxProps } from '../checkbox'\nimport type { CheckboxModel } from './use-checkbox-model'\n\nconst setStoreValue = (\n props: CheckboxProps,\n { model }: Pick<CheckboxModel, 'model'>\n) => {\n function addToStore() {\n if (isArray(model.value) && !model.value.includes(props.label)) {\n model.value.push(props.label)\n } else {\n model.value = props.trueLabel || true\n }\n }\n props.checked && addToStore()\n}\n\nexport const useCheckbox = (\n props: CheckboxProps,\n slots: ComponentInternalInstance['slots']\n) => {\n const { formItem: elFormItem } = useFormItem()\n const { model, isGroup, isLimitExceeded } = useCheckboxModel(props)\n const {\n isFocused,\n isChecked,\n checkboxButtonSize,\n checkboxSize,\n hasOwnLabel,\n } = useCheckboxStatus(props, slots, { model })\n const { isDisabled } = useCheckboxDisabled({ model, isChecked })\n const { inputId, isLabeledByFormItem } = useFormItemInputId(props, {\n formItemContext: elFormItem,\n disableIdGeneration: hasOwnLabel,\n disableIdManagement: isGroup,\n })\n const { handleChange, onClickRoot } = useCheckboxEvent(props, {\n model,\n isLimitExceeded,\n hasOwnLabel,\n isDisabled,\n isLabeledByFormItem,\n })\n\n setStoreValue(props, { model })\n\n return {\n inputId,\n isLabeledByFormItem,\n isChecked,\n isDisabled,\n isFocused,\n checkboxButtonSize,\n checkboxSize,\n hasOwnLabel,\n model,\n handleChange,\n onClickRoot,\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AG,CAAC,CAAC;AACL,EAAE,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,GAAG,gBAAgB,CAAC,KAAK,EAAE;AAChE,IAAI,KAAK;AACT,IAAI,eAAe;AACnB,IAAI,WAAW;AACf,IAAI,UAAU;AACd,IAAI,mBAAmB;AACvB,GAAG,CAAC,CAAC;AACL,EAAE,aAAa,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;AAClC,EAAE,OAAO;AACT,IAAI,OAAO;AACX,IAAI,mBAAmB;AACvB,IAAI,SAAS;AACb,IAAI,UAAU;AACd,IAAI,SAAS;AACb,IAAI,kBAAkB;AACtB,IAAI,YAAY;AAChB,IAAI,WAAW;AACf,IAAI,KAAK;AACT,IAAI,YAAY;AAChB,IAAI,WAAW;AACf,GAAG,CAAC;AACJ;;;;"}
1
+ {"version":3,"file":"use-checkbox.mjs","sources":["../../../../../../../packages/components/checkbox/src/composables/use-checkbox.ts"],"sourcesContent":["import { computed } from 'vue'\nimport { useFormItem, useFormItemInputId } from '@element-plus/components/form'\nimport { isArray, isPropAbsent } from '@element-plus/utils'\nimport { useDeprecated } from '@element-plus/hooks'\nimport { useCheckboxDisabled } from './use-checkbox-disabled'\nimport { useCheckboxEvent } from './use-checkbox-event'\nimport { useCheckboxModel } from './use-checkbox-model'\nimport { useCheckboxStatus } from './use-checkbox-status'\nimport type { ComponentInternalInstance } from 'vue'\n\nimport type { CheckboxProps } from '../checkbox'\n\nexport const useCheckbox = (\n props: CheckboxProps,\n slots: ComponentInternalInstance['slots']\n) => {\n const { formItem: elFormItem } = useFormItem()\n const { model, isGroup, isLimitExceeded } = useCheckboxModel(props)\n const {\n isFocused,\n isChecked,\n checkboxButtonSize,\n checkboxSize,\n hasOwnLabel,\n actualValue,\n } = useCheckboxStatus(props, slots, { model })\n const { isDisabled } = useCheckboxDisabled({ model, isChecked })\n const { inputId, isLabeledByFormItem } = useFormItemInputId(props, {\n formItemContext: elFormItem,\n disableIdGeneration: hasOwnLabel,\n disableIdManagement: isGroup,\n })\n const { handleChange, onClickRoot } = useCheckboxEvent(props, {\n model,\n isLimitExceeded,\n hasOwnLabel,\n isDisabled,\n isLabeledByFormItem,\n })\n\n const setStoreValue = () => {\n function addToStore() {\n if (isArray(model.value) && !model.value.includes(actualValue.value)) {\n model.value.push(actualValue.value)\n } else {\n model.value = props.trueValue || props.trueLabel || true\n }\n }\n props.checked && addToStore()\n }\n\n setStoreValue()\n\n useDeprecated(\n {\n from: 'label act as value',\n replacement: 'value',\n version: '3.0.0',\n scope: 'el-checkbox',\n ref: 'https://element-plus.org/en-US/component/checkbox.html',\n },\n computed(() => isGroup.value && isPropAbsent(props.value))\n )\n\n useDeprecated(\n {\n from: 'true-label',\n replacement: 'true-value',\n version: '3.0.0',\n scope: 'el-checkbox',\n ref: 'https://element-plus.org/en-US/component/checkbox.html',\n },\n computed(() => !!props.trueLabel)\n )\n\n useDeprecated(\n {\n from: 'false-label',\n replacement: 'false-value',\n version: '3.0.0',\n scope: 'el-checkbox',\n ref: 'https://element-plus.org/en-US/component/checkbox.html',\n },\n computed(() => !!props.falseLabel)\n )\n\n return {\n inputId,\n isLabeledByFormItem,\n isChecked,\n isDisabled,\n isFocused,\n checkboxButtonSize,\n checkboxSize,\n hasOwnLabel,\n model,\n actualValue,\n handleChange,\n onClickRoot,\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;AAQY,MAAC,WAAW,GAAG,CAAC,KAAK,EAAE,KAAK,KAAK;AAC7C,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,GAAG,WAAW,EAAE,CAAC;AACjD,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,eAAe,EAAE,GAAG,gBAAgB,CAAC,KAAK,CAAC,CAAC;AACtE,EAAE,MAAM;AACR,IAAI,SAAS;AACb,IAAI,SAAS;AACb,IAAI,kBAAkB;AACtB,IAAI,YAAY;AAChB,IAAI,WAAW;AACf,IAAI,WAAW;AACf,GAAG,GAAG,iBA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B,IAAI,GAAG,EAAE,wDAAwD;AACjE,GAAG,EAAE,QAAQ,CAAC,MAAM,OAAO,CAAC,KAAK,IAAI,YAAY,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AACjE,EAAE,aAAa,CAAC;AAChB,IAAI,IAAI,EAAE,YAAY;AACtB,IAAI,WAAW,EAAE,YAAY;AAC7B,IAAI,OAAO,EAAE,OAAO;AACpB,IAAI,KAAK,EAAE,aAAa;AACxB,IAAI,GAAG,EAAE,wDAAwD;AACjE,GAAG,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC;AACxC,EAAE,aAAa,CAAC;AAChB,IAAI,IAAI,EAAE,aAAa;AACvB,IAAI,WAAW,EAAE,aAAa;AAC9B,IAAI,OAAO,EAAE,OAAO;AACpB,IAAI,KAAK,EAAE,aAAa;AACxB,IAAI,GAAG,EAAE,wDAAwD;AACjE,GAAG,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC;AACzC,EAAE,OAAO;AACT,IAAI,OAAO;AACX,IAAI,mBAAmB;AACvB,IAAI,SAAS;AACb,IAAI,UAAU;AACd,IAAI,SAAS;AACb,IAAI,kBAAkB;AACtB,IAAI,YAAY;AAChB,IAAI,WAAW;AACf,IAAI,KAAK;AACT,IAAI,WAAW;AACf,IAAI,YAAY;AAChB,IAAI,WAAW;AACf,GAAG,CAAC;AACJ;;;;"}
@@ -3041,7 +3041,7 @@ export declare const ElColorPicker: import("@element-plus/nightly/es/utils").SFC
3041
3041
  onMouseleave?: ((evt: MouseEvent) => any) | undefined;
3042
3042
  onMouseenter?: ((evt: MouseEvent) => any) | undefined;
3043
3043
  }>>;
3044
- focusStartRef: import("vue").Ref<HTMLElement | "first" | "container" | undefined>;
3044
+ focusStartRef: import("vue").Ref<HTMLElement | "container" | "first" | undefined>;
3045
3045
  trapped: import("vue").Ref<boolean>;
3046
3046
  onFocusAfterReleased: (event: CustomEvent<any>) => void;
3047
3047
  onFocusAfterTrapped: () => void;
@@ -3103,7 +3103,7 @@ export declare const ElColorPicker: import("@element-plus/nightly/es/utils").SFC
3103
3103
  trapped: BooleanConstructor;
3104
3104
  focusTrapEl: import("vue").PropType<HTMLElement>;
3105
3105
  focusStartEl: {
3106
- type: import("vue").PropType<HTMLElement | "first" | "container">;
3106
+ type: import("vue").PropType<HTMLElement | "container" | "first">;
3107
3107
  default: string;
3108
3108
  };
3109
3109
  }, {
@@ -3113,7 +3113,7 @@ export declare const ElColorPicker: import("@element-plus/nightly/es/utils").SFC
3113
3113
  trapped: BooleanConstructor;
3114
3114
  focusTrapEl: import("vue").PropType<HTMLElement>;
3115
3115
  focusStartEl: {
3116
- type: import("vue").PropType<HTMLElement | "first" | "container">;
3116
+ type: import("vue").PropType<HTMLElement | "container" | "first">;
3117
3117
  default: string;
3118
3118
  };
3119
3119
  }>> & {
@@ -3126,7 +3126,7 @@ export declare const ElColorPicker: import("@element-plus/nightly/es/utils").SFC
3126
3126
  }, {
3127
3127
  trapped: boolean;
3128
3128
  loop: boolean;
3129
- focusStartEl: HTMLElement | "first" | "container";
3129
+ focusStartEl: HTMLElement | "container" | "first";
3130
3130
  }>;
3131
3131
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3132
3132
  mouseenter: (evt: MouseEvent) => boolean;
@@ -5994,7 +5994,7 @@ export declare const ElColorPicker: import("@element-plus/nightly/es/utils").SFC
5994
5994
  onMouseleave?: ((evt: MouseEvent) => any) | undefined;
5995
5995
  onMouseenter?: ((evt: MouseEvent) => any) | undefined;
5996
5996
  }>>;
5997
- focusStartRef: import("vue").Ref<HTMLElement | "first" | "container" | undefined>;
5997
+ focusStartRef: import("vue").Ref<HTMLElement | "container" | "first" | undefined>;
5998
5998
  trapped: import("vue").Ref<boolean>;
5999
5999
  onFocusAfterReleased: (event: CustomEvent<any>) => void;
6000
6000
  onFocusAfterTrapped: () => void;
@@ -6056,7 +6056,7 @@ export declare const ElColorPicker: import("@element-plus/nightly/es/utils").SFC
6056
6056
  trapped: BooleanConstructor;
6057
6057
  focusTrapEl: import("vue").PropType<HTMLElement>;
6058
6058
  focusStartEl: {
6059
- type: import("vue").PropType<HTMLElement | "first" | "container">;
6059
+ type: import("vue").PropType<HTMLElement | "container" | "first">;
6060
6060
  default: string;
6061
6061
  };
6062
6062
  }, {
@@ -6066,7 +6066,7 @@ export declare const ElColorPicker: import("@element-plus/nightly/es/utils").SFC
6066
6066
  trapped: BooleanConstructor;
6067
6067
  focusTrapEl: import("vue").PropType<HTMLElement>;
6068
6068
  focusStartEl: {
6069
- type: import("vue").PropType<HTMLElement | "first" | "container">;
6069
+ type: import("vue").PropType<HTMLElement | "container" | "first">;
6070
6070
  default: string;
6071
6071
  };
6072
6072
  }>> & {
@@ -6079,7 +6079,7 @@ export declare const ElColorPicker: import("@element-plus/nightly/es/utils").SFC
6079
6079
  }, {
6080
6080
  trapped: boolean;
6081
6081
  loop: boolean;
6082
- focusStartEl: HTMLElement | "first" | "container";
6082
+ focusStartEl: HTMLElement | "container" | "first";
6083
6083
  }>;
6084
6084
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6085
6085
  mouseenter: (evt: MouseEvent) => boolean;
@@ -9253,7 +9253,7 @@ export declare const ElColorPicker: import("@element-plus/nightly/es/utils").SFC
9253
9253
  onMouseleave?: ((evt: MouseEvent) => any) | undefined;
9254
9254
  onMouseenter?: ((evt: MouseEvent) => any) | undefined;
9255
9255
  }>>;
9256
- focusStartRef: import("vue").Ref<HTMLElement | "first" | "container" | undefined>;
9256
+ focusStartRef: import("vue").Ref<HTMLElement | "container" | "first" | undefined>;
9257
9257
  trapped: import("vue").Ref<boolean>;
9258
9258
  onFocusAfterReleased: (event: CustomEvent<any>) => void;
9259
9259
  onFocusAfterTrapped: () => void;
@@ -9315,7 +9315,7 @@ export declare const ElColorPicker: import("@element-plus/nightly/es/utils").SFC
9315
9315
  trapped: BooleanConstructor;
9316
9316
  focusTrapEl: import("vue").PropType<HTMLElement>;
9317
9317
  focusStartEl: {
9318
- type: import("vue").PropType<HTMLElement | "first" | "container">;
9318
+ type: import("vue").PropType<HTMLElement | "container" | "first">;
9319
9319
  default: string;
9320
9320
  };
9321
9321
  }, {
@@ -9325,7 +9325,7 @@ export declare const ElColorPicker: import("@element-plus/nightly/es/utils").SFC
9325
9325
  trapped: BooleanConstructor;
9326
9326
  focusTrapEl: import("vue").PropType<HTMLElement>;
9327
9327
  focusStartEl: {
9328
- type: import("vue").PropType<HTMLElement | "first" | "container">;
9328
+ type: import("vue").PropType<HTMLElement | "container" | "first">;
9329
9329
  default: string;
9330
9330
  };
9331
9331
  }>> & {
@@ -9338,7 +9338,7 @@ export declare const ElColorPicker: import("@element-plus/nightly/es/utils").SFC
9338
9338
  }, {
9339
9339
  trapped: boolean;
9340
9340
  loop: boolean;
9341
- focusStartEl: HTMLElement | "first" | "container";
9341
+ focusStartEl: HTMLElement | "container" | "first";
9342
9342
  }>;
9343
9343
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9344
9344
  mouseenter: (evt: MouseEvent) => boolean;
@@ -10283,7 +10283,7 @@ export declare const ElColorPicker: import("@element-plus/nightly/es/utils").SFC
10283
10283
  };
10284
10284
  readonly type: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "text", boolean>;
10285
10285
  readonly resize: {
10286
- readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "none" | "both" | "horizontal" | "vertical", unknown>>;
10286
+ readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "none" | "vertical" | "horizontal" | "both", unknown>>;
10287
10287
  readonly required: false;
10288
10288
  readonly validator: ((val: unknown) => boolean) | undefined;
10289
10289
  __epPropKey: true;
@@ -10361,7 +10361,7 @@ export declare const ElColorPicker: import("@element-plus/nightly/es/utils").SFC
10361
10361
  };
10362
10362
  readonly type: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "text", boolean>;
10363
10363
  readonly resize: {
10364
- readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "none" | "both" | "horizontal" | "vertical", unknown>>;
10364
+ readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "none" | "vertical" | "horizontal" | "both", unknown>>;
10365
10365
  readonly required: false;
10366
10366
  readonly validator: ((val: unknown) => boolean) | undefined;
10367
10367
  __epPropKey: true;
@@ -10626,7 +10626,7 @@ export declare const ElColorPicker: import("@element-plus/nightly/es/utils").SFC
10626
10626
  };
10627
10627
  readonly type: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "text", boolean>;
10628
10628
  readonly resize: {
10629
- readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "none" | "both" | "horizontal" | "vertical", unknown>>;
10629
+ readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "none" | "vertical" | "horizontal" | "both", unknown>>;
10630
10630
  readonly required: false;
10631
10631
  readonly validator: ((val: unknown) => boolean) | undefined;
10632
10632
  __epPropKey: true;