@element-plus/nightly 0.0.20211231 → 0.0.20220104

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 (917) hide show
  1. package/attributes.json +1 -1
  2. package/dist/index.css +1 -1
  3. package/dist/index.full.js +48424 -47505
  4. package/dist/index.full.min.js +11 -11
  5. package/dist/index.full.min.js.map +1 -1
  6. package/dist/index.full.min.mjs +11 -11
  7. package/dist/index.full.min.mjs.map +1 -1
  8. package/dist/index.full.mjs +8812 -7911
  9. package/es/components/autocomplete/index.d.ts +26 -18
  10. package/es/components/autocomplete/src/index.vue.d.ts +13 -10
  11. package/es/components/autocomplete/src/index.vue_vue_type_script_lang.mjs +14 -18
  12. package/es/components/autocomplete/src/index.vue_vue_type_script_lang.mjs.map +1 -1
  13. package/es/components/autocomplete/src/index.vue_vue_type_template_id_2f09f285_lang.mjs +52 -49
  14. package/es/components/autocomplete/src/index.vue_vue_type_template_id_2f09f285_lang.mjs.map +1 -1
  15. package/es/components/carousel/index.d.ts +4 -4
  16. package/es/components/carousel/src/main.vue.d.ts +4 -4
  17. package/es/components/cascader/index.d.ts +1118 -6532
  18. package/es/components/cascader/src/index.vue.d.ts +559 -3267
  19. package/es/components/cascader/src/index.vue_vue_type_script_lang.mjs +10 -10
  20. package/es/components/cascader/src/index.vue_vue_type_script_lang.mjs.map +1 -1
  21. package/es/components/cascader/src/index.vue_vue_type_template_id_0429c2db_lang.mjs +12 -12
  22. package/es/components/cascader/src/index.vue_vue_type_template_id_0429c2db_lang.mjs.map +1 -1
  23. package/es/components/cascader-panel/src/index.vue_vue_type_script_lang.mjs +3 -0
  24. package/es/components/cascader-panel/src/index.vue_vue_type_script_lang.mjs.map +1 -1
  25. package/es/components/cascader-panel/src/index.vue_vue_type_template_id_97c48f5c_lang.mjs.map +1 -1
  26. package/es/components/checkbox/index.d.ts +1 -1
  27. package/es/components/checkbox/src/checkbox.vue.d.ts +1 -1
  28. package/es/components/collapse-transition/src/collapse-transition.vue_vue_type_script_lang.mjs +7 -13
  29. package/es/components/collapse-transition/src/collapse-transition.vue_vue_type_script_lang.mjs.map +1 -1
  30. package/es/components/collapse-transition/src/collapse-transition.vue_vue_type_template_id_f68ae30a_lang.mjs +2 -2
  31. package/es/components/collapse-transition/src/collapse-transition.vue_vue_type_template_id_f68ae30a_lang.mjs.map +1 -1
  32. package/es/components/collection/index.d.ts +2 -0
  33. package/es/components/collection/index.mjs +3 -0
  34. package/es/components/{popper/src → collection}/index.mjs.map +1 -1
  35. package/es/components/collection/src/collection-item.mjs +7 -0
  36. package/es/components/collection/src/collection-item.mjs.map +1 -0
  37. package/es/components/collection/src/collection-item.vue.d.ts +2 -0
  38. package/es/components/collection/src/collection-item.vue_vue_type_script_lang.mjs +9 -0
  39. package/es/components/collection/src/collection-item.vue_vue_type_script_lang.mjs.map +1 -0
  40. package/es/components/collection/src/collection-item.vue_vue_type_template_id_dd23be6a_lang.mjs +8 -0
  41. package/es/components/collection/src/collection-item.vue_vue_type_template_id_dd23be6a_lang.mjs.map +1 -0
  42. package/es/components/collection/src/collection.d.ts +263 -0
  43. package/es/components/collection/src/collection.mjs +68 -0
  44. package/es/components/collection/src/collection.mjs.map +1 -0
  45. package/es/components/collection/src/collection.vue.d.ts +2 -0
  46. package/es/components/collection/src/collection.vue_vue_type_script_lang.mjs +8 -0
  47. package/es/components/collection/src/collection.vue_vue_type_script_lang.mjs.map +1 -0
  48. package/es/components/collection/src/collection.vue_vue_type_template_id_5f9c2545_lang.mjs +8 -0
  49. package/es/components/collection/src/collection.vue_vue_type_template_id_5f9c2545_lang.mjs.map +1 -0
  50. package/es/components/collection/src/collection2.mjs +7 -0
  51. package/es/components/collection/src/collection2.mjs.map +1 -0
  52. package/es/components/collection/src/tokens.d.ts +12 -0
  53. package/es/components/collection/src/tokens.mjs +2 -0
  54. package/es/components/collection/src/tokens.mjs.map +1 -0
  55. package/es/components/color-picker/index.d.ts +0 -2
  56. package/es/components/color-picker/src/index.vue.d.ts +0 -2
  57. package/es/components/color-picker/src/index.vue_vue_type_script_lang.mjs +2 -4
  58. package/es/components/color-picker/src/index.vue_vue_type_script_lang.mjs.map +1 -1
  59. package/es/components/color-picker/src/index.vue_vue_type_template_id_46a474d5_lang.mjs +9 -10
  60. package/es/components/color-picker/src/index.vue_vue_type_template_id_46a474d5_lang.mjs.map +1 -1
  61. package/es/components/config-provider/index.d.ts +1 -1
  62. package/es/components/config-provider/src/config-provider.d.ts +1 -1
  63. package/es/components/config-provider/src/config-provider.mjs +4 -14
  64. package/es/components/config-provider/src/config-provider.mjs.map +1 -1
  65. package/es/components/date-picker/index.d.ts +4 -4
  66. package/es/components/date-picker/src/date-picker.d.ts +2 -2
  67. package/es/components/descriptions/index.d.ts +4 -4
  68. package/es/components/descriptions/src/description-item.d.ts +2 -2
  69. package/es/components/dialog/index.d.ts +5 -5
  70. package/es/components/dialog/src/dialog.vue.d.ts +5 -5
  71. package/es/components/drawer/index.d.ts +5 -5
  72. package/es/components/drawer/src/drawer.vue.d.ts +5 -5
  73. package/es/components/dropdown/index.d.ts +767 -84
  74. package/es/components/dropdown/src/dropdown-item-impl.mjs +7 -0
  75. package/es/components/dropdown/src/dropdown-item-impl.mjs.map +1 -0
  76. package/es/components/dropdown/src/dropdown-item-impl.vue.d.ts +39 -0
  77. package/es/components/dropdown/src/dropdown-item-impl.vue_vue_type_script_lang.mjs +53 -0
  78. package/es/components/dropdown/src/dropdown-item-impl.vue_vue_type_script_lang.mjs.map +1 -0
  79. package/es/components/dropdown/src/dropdown-item-impl.vue_vue_type_template_id_6daab4f2_lang.mjs +33 -0
  80. package/es/components/dropdown/src/dropdown-item-impl.vue_vue_type_template_id_6daab4f2_lang.mjs.map +1 -0
  81. package/es/components/dropdown/src/dropdown-item.vue.d.ts +17 -9
  82. package/es/components/dropdown/src/dropdown-item.vue_vue_type_script_lang.mjs +51 -21
  83. package/es/components/dropdown/src/dropdown-item.vue_vue_type_script_lang.mjs.map +1 -1
  84. package/es/components/dropdown/src/dropdown-item.vue_vue_type_template_id_396ed16b_lang.mjs +30 -20
  85. package/es/components/dropdown/src/dropdown-item.vue_vue_type_template_id_396ed16b_lang.mjs.map +1 -1
  86. package/es/components/dropdown/src/dropdown-menu.vue.d.ts +17 -6
  87. package/es/components/dropdown/src/dropdown-menu.vue_vue_type_script_lang.mjs +59 -23
  88. package/es/components/dropdown/src/dropdown-menu.vue_vue_type_script_lang.mjs.map +1 -1
  89. package/es/components/dropdown/src/dropdown-menu.vue_vue_type_template_id_617b3492_lang.mjs +12 -9
  90. package/es/components/dropdown/src/dropdown-menu.vue_vue_type_template_id_617b3492_lang.mjs.map +1 -1
  91. package/es/components/dropdown/src/dropdown.d.ts +295 -1
  92. package/es/components/dropdown/src/dropdown.mjs +84 -0
  93. package/es/components/dropdown/src/dropdown.mjs.map +1 -1
  94. package/es/components/dropdown/src/dropdown.vue.d.ts +712 -73
  95. package/es/components/dropdown/src/dropdown.vue_vue_type_script_lang.mjs +60 -153
  96. package/es/components/dropdown/src/dropdown.vue_vue_type_script_lang.mjs.map +1 -1
  97. package/es/components/dropdown/src/dropdown.vue_vue_type_template_id_3ed790a5_lang.mjs +92 -52
  98. package/es/components/dropdown/src/dropdown.vue_vue_type_template_id_3ed790a5_lang.mjs.map +1 -1
  99. package/es/components/dropdown/src/tokens.d.ts +8 -0
  100. package/es/components/dropdown/src/tokens.mjs +4 -0
  101. package/es/components/dropdown/src/tokens.mjs.map +1 -0
  102. package/es/components/focus-trap/index.d.ts +5 -0
  103. package/es/components/focus-trap/index.mjs +6 -0
  104. package/es/components/focus-trap/index.mjs.map +1 -0
  105. package/es/components/focus-trap/src/focus-trap.mjs +7 -0
  106. package/es/components/focus-trap/src/focus-trap.mjs.map +1 -0
  107. package/es/components/focus-trap/src/focus-trap.vue.d.ts +21 -0
  108. package/es/components/focus-trap/src/focus-trap.vue_vue_type_script_lang.mjs +137 -0
  109. package/es/components/focus-trap/src/focus-trap.vue_vue_type_script_lang.mjs.map +1 -0
  110. package/es/components/focus-trap/src/focus-trap.vue_vue_type_template_id_4a8a10c5_lang.mjs +8 -0
  111. package/es/components/focus-trap/src/focus-trap.vue_vue_type_template_id_4a8a10c5_lang.mjs.map +1 -0
  112. package/es/components/focus-trap/src/tokens.d.ts +11 -0
  113. package/es/components/focus-trap/src/tokens.mjs +12 -0
  114. package/es/components/focus-trap/src/tokens.mjs.map +1 -0
  115. package/es/components/focus-trap/src/utils.d.ts +18 -0
  116. package/es/components/focus-trap/src/utils.mjs +92 -0
  117. package/es/components/focus-trap/src/utils.mjs.map +1 -0
  118. package/es/components/image/index.d.ts +2 -2
  119. package/es/components/image/src/image.vue.d.ts +2 -2
  120. package/es/components/index.mjs +8 -7
  121. package/es/components/index.mjs.map +1 -1
  122. package/es/components/input/index.d.ts +5 -5
  123. package/es/components/input/src/input.vue.d.ts +5 -5
  124. package/es/components/input-number/index.d.ts +12 -12
  125. package/es/components/input-number/src/input-number.vue.d.ts +12 -12
  126. package/es/components/menu/index.d.ts +9 -3
  127. package/es/components/menu/src/menu-item.vue.d.ts +4 -2
  128. package/es/components/menu/src/menu-item.vue_vue_type_script_lang.mjs +3 -3
  129. package/es/components/menu/src/menu-item.vue_vue_type_script_lang.mjs.map +1 -1
  130. package/es/components/menu/src/menu.d.ts +1 -1
  131. package/es/components/menu/src/menu.mjs +2 -1
  132. package/es/components/menu/src/menu.mjs.map +1 -1
  133. package/es/components/menu/src/sub-menu.mjs +18 -21
  134. package/es/components/menu/src/sub-menu.mjs.map +1 -1
  135. package/es/components/menu/src/types.d.ts +2 -0
  136. package/es/components/message-box/src/index.vue.d.ts +2 -2
  137. package/es/components/pagination/index.d.ts +2 -2
  138. package/es/components/pagination/src/pagination.d.ts +2 -2
  139. package/es/components/popconfirm/index.d.ts +19 -12
  140. package/es/components/popconfirm/index.mjs +1 -1
  141. package/es/components/popconfirm/src/popconfirm.d.ts +3 -5
  142. package/es/components/popconfirm/src/popconfirm.mjs +11 -5
  143. package/es/components/popconfirm/src/popconfirm.mjs.map +1 -1
  144. package/es/components/popconfirm/src/popconfirm.vue.d.ts +19 -13
  145. package/es/components/popconfirm/src/popconfirm.vue_vue_type_script_lang.mjs +22 -20
  146. package/es/components/popconfirm/src/popconfirm.vue_vue_type_script_lang.mjs.map +1 -1
  147. package/es/components/popconfirm/src/popconfirm.vue_vue_type_template_id_16409d25_lang.mjs +12 -13
  148. package/es/components/popconfirm/src/popconfirm.vue_vue_type_template_id_16409d25_lang.mjs.map +1 -1
  149. package/es/components/popover/index.d.ts +1690 -420
  150. package/es/components/popover/src/directive.mjs +7 -13
  151. package/es/components/popover/src/directive.mjs.map +1 -1
  152. package/es/components/popover/src/index.mjs +2 -0
  153. package/es/components/popover/src/index.mjs.map +1 -1
  154. package/es/components/popover/src/index.vue.d.ts +846 -213
  155. package/es/components/popover/src/index.vue_vue_type_script_lang.mjs +41 -107
  156. package/es/components/popover/src/index.vue_vue_type_script_lang.mjs.map +1 -1
  157. package/es/components/popover/src/index.vue_vue_type_template_id_15486cf0_lang.mjs +31 -0
  158. package/es/components/popover/src/index.vue_vue_type_template_id_15486cf0_lang.mjs.map +1 -0
  159. package/es/components/popover/src/popover.d.ts +70 -0
  160. package/es/components/popover/src/popover.mjs +31 -0
  161. package/es/components/popover/src/popover.mjs.map +1 -0
  162. package/es/components/popper/index.d.ts +7 -3479
  163. package/es/components/popper/index.mjs +13 -14
  164. package/es/components/popper/index.mjs.map +1 -1
  165. package/es/components/popper/src/arrow.mjs +7 -0
  166. package/es/components/popper/src/arrow.mjs.map +1 -0
  167. package/es/components/popper/src/arrow.vue.d.ts +12 -0
  168. package/es/components/popper/src/arrow.vue_vue_type_script_lang.mjs +27 -0
  169. package/es/components/popper/src/arrow.vue_vue_type_script_lang.mjs.map +1 -0
  170. package/es/components/popper/src/arrow.vue_vue_type_template_id_8ab40b80_lang.mjs +13 -0
  171. package/es/components/popper/src/arrow.vue_vue_type_template_id_8ab40b80_lang.mjs.map +1 -0
  172. package/es/components/popper/src/container.d.ts +3 -0
  173. package/es/components/popper/src/container.mjs +22 -0
  174. package/es/components/popper/src/container.mjs.map +1 -0
  175. package/es/components/popper/src/content.mjs +7 -0
  176. package/es/components/popper/src/content.mjs.map +1 -0
  177. package/es/components/popper/src/content.vue.d.ts +299 -0
  178. package/es/components/popper/src/content.vue_vue_type_script_lang.mjs +85 -0
  179. package/es/components/popper/src/content.vue_vue_type_script_lang.mjs.map +1 -0
  180. package/es/components/popper/src/content.vue_vue_type_template_id_611b76f0_lang.mjs +16 -0
  181. package/es/components/popper/src/content.vue_vue_type_template_id_611b76f0_lang.mjs.map +1 -0
  182. package/es/components/popper/src/popper.d.ts +58 -0
  183. package/es/components/popper/src/popper.mjs +98 -0
  184. package/es/components/popper/src/popper.mjs.map +1 -0
  185. package/es/components/popper/src/popper.vue.d.ts +3 -0
  186. package/es/components/popper/src/popper.vue_vue_type_script_lang.mjs +19 -0
  187. package/es/components/popper/src/popper.vue_vue_type_script_lang.mjs.map +1 -0
  188. package/es/components/popper/src/popper.vue_vue_type_template_id_77a3d185_lang.mjs +8 -0
  189. package/es/components/popper/src/popper.vue_vue_type_template_id_77a3d185_lang.mjs.map +1 -0
  190. package/es/components/popper/src/popper2.mjs +7 -0
  191. package/es/components/popper/src/popper2.mjs.map +1 -0
  192. package/es/components/popper/src/tokens.d.ts +14 -0
  193. package/es/components/popper/src/tokens.mjs +5 -0
  194. package/es/components/popper/src/tokens.mjs.map +1 -0
  195. package/es/components/popper/src/trigger.mjs +7 -0
  196. package/es/components/popper/src/trigger.mjs.map +1 -0
  197. package/es/components/popper/src/trigger.vue.d.ts +45 -0
  198. package/es/components/popper/src/trigger.vue_vue_type_script_lang.mjs +66 -0
  199. package/es/components/popper/src/trigger.vue_vue_type_script_lang.mjs.map +1 -0
  200. package/es/components/popper/src/trigger.vue_vue_type_template_id_4fb6e0af_lang.mjs +16 -0
  201. package/es/components/popper/src/trigger.vue_vue_type_template_id_4fb6e0af_lang.mjs.map +1 -0
  202. package/es/components/popper/src/utils.d.ts +55 -0
  203. package/es/components/popper/src/utils.mjs +76 -0
  204. package/es/components/popper/src/utils.mjs.map +1 -0
  205. package/es/components/radio/index.mjs +2 -2
  206. package/es/components/radio/src/radio-button.mjs +5 -11
  207. package/es/components/radio/src/radio-button.mjs.map +1 -1
  208. package/es/components/radio/src/radio-button.vue_vue_type_script_lang.mjs +1 -1
  209. package/es/components/radio/src/radio-button2.mjs +11 -5
  210. package/es/components/radio/src/radio-button2.mjs.map +1 -1
  211. package/es/components/roving-focus-group/index.d.ts +7 -0
  212. package/es/components/roving-focus-group/index.mjs +9 -0
  213. package/es/components/roving-focus-group/index.mjs.map +1 -0
  214. package/es/components/roving-focus-group/src/roving-focus-group-impl.mjs +7 -0
  215. package/es/components/roving-focus-group/src/roving-focus-group-impl.mjs.map +1 -0
  216. package/es/components/roving-focus-group/src/roving-focus-group-impl.vue.d.ts +43 -0
  217. package/es/components/roving-focus-group/src/roving-focus-group-impl.vue_vue_type_script_lang.mjs +102 -0
  218. package/es/components/roving-focus-group/src/roving-focus-group-impl.vue_vue_type_script_lang.mjs.map +1 -0
  219. package/es/components/roving-focus-group/src/roving-focus-group-impl.vue_vue_type_template_id_e5cee750_lang.mjs +8 -0
  220. package/es/components/roving-focus-group/src/roving-focus-group-impl.vue_vue_type_template_id_e5cee750_lang.mjs.map +1 -0
  221. package/es/components/roving-focus-group/src/roving-focus-group.d.ts +269 -0
  222. package/es/components/roving-focus-group/src/roving-focus-group.mjs +32 -0
  223. package/es/components/roving-focus-group/src/roving-focus-group.mjs.map +1 -0
  224. package/es/components/roving-focus-group/src/roving-focus-group.vue.d.ts +2 -0
  225. package/es/components/roving-focus-group/src/roving-focus-group.vue_vue_type_script_lang.mjs +15 -0
  226. package/es/components/roving-focus-group/src/roving-focus-group.vue_vue_type_script_lang.mjs.map +1 -0
  227. package/es/components/roving-focus-group/src/roving-focus-group.vue_vue_type_template_id_91b51b76_lang.mjs +20 -0
  228. package/es/components/roving-focus-group/src/roving-focus-group.vue_vue_type_template_id_91b51b76_lang.mjs.map +1 -0
  229. package/es/components/roving-focus-group/src/roving-focus-group2.mjs +7 -0
  230. package/es/components/roving-focus-group/src/roving-focus-group2.mjs.map +1 -0
  231. package/es/components/roving-focus-group/src/roving-focus-item.mjs +7 -0
  232. package/es/components/roving-focus-group/src/roving-focus-item.mjs.map +1 -0
  233. package/es/components/roving-focus-group/src/roving-focus-item.vue.d.ts +29 -0
  234. package/es/components/roving-focus-group/src/roving-focus-item.vue_vue_type_script_lang.mjs +100 -0
  235. package/es/components/roving-focus-group/src/roving-focus-item.vue_vue_type_script_lang.mjs.map +1 -0
  236. package/es/components/roving-focus-group/src/roving-focus-item.vue_vue_type_template_id_5f657dbd_lang.mjs +18 -0
  237. package/es/components/roving-focus-group/src/roving-focus-item.vue_vue_type_template_id_5f657dbd_lang.mjs.map +1 -0
  238. package/es/components/roving-focus-group/src/tokens.d.ts +27 -0
  239. package/es/components/roving-focus-group/src/tokens.mjs +5 -0
  240. package/es/components/roving-focus-group/src/tokens.mjs.map +1 -0
  241. package/es/components/roving-focus-group/src/utils.d.ts +8 -0
  242. package/es/components/roving-focus-group/src/utils.mjs +48 -0
  243. package/es/components/roving-focus-group/src/utils.mjs.map +1 -0
  244. package/es/components/select/index.d.ts +680 -14
  245. package/es/components/select/src/select-dropdown.vue.d.ts +1 -1
  246. package/es/components/select/src/select-dropdown.vue_vue_type_script_lang.mjs +1 -0
  247. package/es/components/select/src/select-dropdown.vue_vue_type_script_lang.mjs.map +1 -1
  248. package/es/components/select/src/select-dropdown.vue_vue_type_template_id_46cf6eee_lang.mjs.map +1 -1
  249. package/es/components/select/src/select.vue.d.ts +681 -15
  250. package/es/components/select/src/select.vue_vue_type_script_lang.mjs +25 -11
  251. package/es/components/select/src/select.vue_vue_type_script_lang.mjs.map +1 -1
  252. package/es/components/select/src/select.vue_vue_type_template_id_33774f85_lang.mjs +11 -12
  253. package/es/components/select/src/select.vue_vue_type_template_id_33774f85_lang.mjs.map +1 -1
  254. package/es/components/select/src/token.d.ts +1 -0
  255. package/es/components/select/src/token.mjs.map +1 -1
  256. package/es/components/select/src/useSelect.d.ts +671 -7
  257. package/es/components/select/src/useSelect.mjs +33 -23
  258. package/es/components/select/src/useSelect.mjs.map +1 -1
  259. package/es/components/select-v2/index.d.ts +1326 -16
  260. package/es/components/select-v2/src/select.vue.d.ts +665 -10
  261. package/es/components/select-v2/src/select.vue_vue_type_script_lang.mjs +2 -2
  262. package/es/components/select-v2/src/select.vue_vue_type_script_lang.mjs.map +1 -1
  263. package/es/components/select-v2/src/select.vue_vue_type_template_id_13e598a4_lang.mjs +8 -9
  264. package/es/components/select-v2/src/select.vue_vue_type_template_id_13e598a4_lang.mjs.map +1 -1
  265. package/es/components/select-v2/src/useSelect.d.ts +659 -4
  266. package/es/components/select-v2/src/useSelect.mjs +7 -7
  267. package/es/components/select-v2/src/useSelect.mjs.map +1 -1
  268. package/es/components/slider/src/button.vue_vue_type_script_lang.mjs +2 -2
  269. package/es/components/slider/src/button.vue_vue_type_script_lang.mjs.map +1 -1
  270. package/es/components/slot/index.d.ts +5 -0
  271. package/es/components/slot/index.mjs +2 -0
  272. package/es/components/slot/index.mjs.map +1 -0
  273. package/es/components/slot/src/only-child.d.ts +5 -0
  274. package/es/components/slot/src/only-child.mjs +61 -0
  275. package/es/components/slot/src/only-child.mjs.map +1 -0
  276. package/es/components/table/index.d.ts +4 -4
  277. package/es/components/table/src/filter-panel.vue.d.ts +654 -4
  278. package/es/components/table/src/filter-panel.vue_vue_type_script_lang.mjs +5 -7
  279. package/es/components/table/src/filter-panel.vue_vue_type_script_lang.mjs.map +1 -1
  280. package/es/components/table/src/filter-panel.vue_vue_type_template_id_fde1c940_lang.mjs +8 -9
  281. package/es/components/table/src/filter-panel.vue_vue_type_template_id_fde1c940_lang.mjs.map +1 -1
  282. package/es/components/table/src/table-column/index.d.ts +1 -1
  283. package/es/components/table/src/table.vue.d.ts +2 -2
  284. package/es/components/table/src/util.d.ts +2 -2
  285. package/es/components/teleport/index.d.ts +11 -8
  286. package/es/components/teleport/src/teleport.d.ts +4 -3
  287. package/es/components/teleport/src/teleport.mjs +5 -1
  288. package/es/components/teleport/src/teleport.mjs.map +1 -1
  289. package/es/components/teleport/src/teleport.vue.d.ts +11 -8
  290. package/es/components/teleport/src/teleport.vue_vue_type_script_lang.mjs +1 -2
  291. package/es/components/teleport/src/teleport.vue_vue_type_script_lang.mjs.map +1 -1
  292. package/es/components/teleport/src/teleport.vue_vue_type_template_id_787c6a36_lang.mjs +3 -2
  293. package/es/components/teleport/src/teleport.vue_vue_type_template_id_787c6a36_lang.mjs.map +1 -1
  294. package/es/components/time-picker/index.d.ts +4 -4
  295. package/es/components/time-picker/src/common/picker.vue.d.ts +663 -9
  296. package/es/components/time-picker/src/common/picker.vue_vue_type_script_lang.mjs +29 -17
  297. package/es/components/time-picker/src/common/picker.vue_vue_type_script_lang.mjs.map +1 -1
  298. package/es/components/time-picker/src/common/picker.vue_vue_type_template_id_1d54be91_lang.mjs +38 -38
  299. package/es/components/time-picker/src/common/picker.vue_vue_type_template_id_1d54be91_lang.mjs.map +1 -1
  300. package/es/components/time-picker/src/time-picker.d.ts +2 -2
  301. package/es/components/time-select/index.d.ts +4 -4
  302. package/es/components/time-select/src/time-select.vue.d.ts +2 -2
  303. package/es/components/tooltip/index.d.ts +346 -430
  304. package/es/components/tooltip/index.mjs +6 -7
  305. package/es/components/tooltip/index.mjs.map +1 -1
  306. package/es/components/tooltip/src/content.mjs +7 -0
  307. package/es/components/tooltip/src/content.mjs.map +1 -0
  308. package/es/components/tooltip/src/content.vue.d.ts +809 -0
  309. package/es/components/tooltip/src/content.vue_vue_type_script_lang.mjs +135 -0
  310. package/es/components/tooltip/src/content.vue_vue_type_script_lang.mjs.map +1 -0
  311. package/es/components/tooltip/src/content.vue_vue_type_template_id_20254f8d_lang.mjs +65 -0
  312. package/es/components/tooltip/src/content.vue_vue_type_template_id_20254f8d_lang.mjs.map +1 -0
  313. package/es/components/tooltip/src/tokens.d.ts +14 -0
  314. package/es/components/tooltip/src/tokens.mjs +4 -0
  315. package/es/components/tooltip/src/tokens.mjs.map +1 -0
  316. package/es/components/tooltip/src/tooltip.d.ts +146 -0
  317. package/es/components/tooltip/src/tooltip.mjs +63 -0
  318. package/es/components/tooltip/src/tooltip.mjs.map +1 -0
  319. package/es/components/tooltip/src/tooltip.vue.d.ts +383 -0
  320. package/es/components/tooltip/src/tooltip.vue_vue_type_script_lang.mjs +104 -0
  321. package/es/components/tooltip/src/tooltip.vue_vue_type_script_lang.mjs.map +1 -0
  322. package/es/components/tooltip/src/tooltip.vue_vue_type_template_id_694d1617_lang.mjs +67 -0
  323. package/es/components/tooltip/src/tooltip.vue_vue_type_template_id_694d1617_lang.mjs.map +1 -0
  324. package/es/components/tooltip/src/tooltip2.mjs +7 -0
  325. package/es/components/tooltip/src/tooltip2.mjs.map +1 -0
  326. package/es/components/tooltip/src/trigger.mjs +7 -0
  327. package/es/components/tooltip/src/trigger.mjs.map +1 -0
  328. package/es/components/tooltip/src/trigger.vue.d.ts +39 -0
  329. package/es/components/tooltip/src/trigger.vue_vue_type_script_lang.mjs +60 -0
  330. package/es/components/tooltip/src/trigger.vue_vue_type_script_lang.mjs.map +1 -0
  331. package/es/components/tooltip/src/trigger.vue_vue_type_template_id_0ec0b94c_lang.mjs +27 -0
  332. package/es/components/tooltip/src/trigger.vue_vue_type_template_id_0ec0b94c_lang.mjs.map +1 -0
  333. package/es/components/tooltip/src/utils.d.ts +4 -0
  334. package/es/components/tooltip/src/utils.mjs +18 -0
  335. package/es/components/tooltip/src/utils.mjs.map +1 -0
  336. package/es/components/tree/index.d.ts +4 -4
  337. package/es/components/tree/src/model/tree-store.mjs +1 -1
  338. package/es/components/tree/src/model/tree-store.mjs.map +1 -1
  339. package/es/components/tree/src/tree.vue.d.ts +2 -2
  340. package/es/components/tree-v2/src/tree-node.vue.d.ts +1 -1
  341. package/es/components/virtual-list/src/builders/build-list.d.ts +1 -1
  342. package/es/components/virtual-list/src/components/dynamic-size-list.d.ts +1 -1
  343. package/es/components/virtual-list/src/components/fixed-size-list.d.ts +1 -1
  344. package/es/components/visual-hidden/index.d.ts +3 -0
  345. package/es/components/visual-hidden/index.mjs +4 -0
  346. package/es/components/{popper/src/renderers → visual-hidden}/index.mjs.map +0 -0
  347. package/es/components/visual-hidden/src/visual-hidden.mjs +7 -0
  348. package/es/components/visual-hidden/src/visual-hidden.mjs.map +1 -0
  349. package/es/components/visual-hidden/src/visual-hidden.vue.d.ts +12 -0
  350. package/es/components/visual-hidden/src/visual-hidden.vue_vue_type_script_lang.mjs +34 -0
  351. package/es/components/visual-hidden/src/visual-hidden.vue_vue_type_script_lang.mjs.map +1 -0
  352. package/es/components/visual-hidden/src/visual-hidden.vue_vue_type_template_id_4cbd1102_lang.mjs +8 -0
  353. package/es/components/visual-hidden/src/visual-hidden.vue_vue_type_template_id_4cbd1102_lang.mjs.map +1 -0
  354. package/es/defaults.d.ts +11 -1
  355. package/es/directives/click-outside/index.mjs.map +1 -1
  356. package/es/hooks/index.d.ts +8 -1
  357. package/es/hooks/index.mjs +9 -3
  358. package/es/hooks/index.mjs.map +1 -1
  359. package/es/hooks/use-delayed-toggle/index.d.ts +13 -0
  360. package/es/hooks/use-delayed-toggle/index.mjs +39 -0
  361. package/es/hooks/use-delayed-toggle/index.mjs.map +1 -0
  362. package/es/hooks/use-escape-keydown/index.d.ts +1 -0
  363. package/es/hooks/use-escape-keydown/index.mjs +21 -0
  364. package/es/hooks/use-escape-keydown/index.mjs.map +1 -0
  365. package/es/hooks/use-focus/index.d.ts +3 -1
  366. package/es/hooks/use-focus/index.mjs.map +1 -1
  367. package/es/hooks/use-forward-ref/index.d.ts +13 -0
  368. package/es/hooks/use-forward-ref/index.mjs +27 -0
  369. package/es/hooks/use-forward-ref/index.mjs.map +1 -0
  370. package/es/hooks/use-global-config/index.d.ts +14 -2
  371. package/es/hooks/use-global-config/index.mjs +25 -5
  372. package/es/hooks/use-global-config/index.mjs.map +1 -1
  373. package/es/hooks/use-id/index.d.ts +8 -0
  374. package/es/hooks/use-id/index.mjs +24 -0
  375. package/es/hooks/use-id/index.mjs.map +1 -0
  376. package/es/hooks/use-intermediate-render/index.d.ts +11 -0
  377. package/es/hooks/use-intermediate-render/index.mjs +43 -0
  378. package/es/hooks/use-intermediate-render/index.mjs.map +1 -0
  379. package/es/hooks/use-model-toggle/index.d.ts +18 -9
  380. package/es/hooks/use-model-toggle/index.mjs +103 -93
  381. package/es/hooks/use-model-toggle/index.mjs.map +1 -1
  382. package/es/hooks/use-popper-container/index.d.ts +3 -0
  383. package/es/hooks/use-popper-container/index.mjs +22 -0
  384. package/es/hooks/use-popper-container/index.mjs.map +1 -0
  385. package/es/hooks/use-restore-active/index.mjs +1 -1
  386. package/es/hooks/use-restore-active/index.mjs.map +1 -1
  387. package/es/index.d.ts +11 -1
  388. package/es/index.mjs +17 -10
  389. package/es/index.mjs.map +1 -1
  390. package/es/make-installer.d.ts +2 -1
  391. package/es/make-installer.mjs +12 -1
  392. package/es/make-installer.mjs.map +1 -1
  393. package/es/tokens/config-provider.d.ts +2 -2
  394. package/es/tokens/config-provider.mjs.map +1 -1
  395. package/es/utils/aria.d.ts +4 -0
  396. package/es/utils/aria.mjs +5 -1
  397. package/es/utils/aria.mjs.map +1 -1
  398. package/es/utils/dom.d.ts +9 -1
  399. package/es/utils/dom.mjs +27 -1
  400. package/es/utils/dom.mjs.map +1 -1
  401. package/es/utils/isServer.d.ts +2 -0
  402. package/es/utils/isServer.mjs +4 -0
  403. package/es/utils/isServer.mjs.map +1 -0
  404. package/es/utils/props.d.ts +2 -2
  405. package/es/utils/props.mjs +1 -1
  406. package/es/utils/props.mjs.map +1 -1
  407. package/es/utils/util.d.ts +1 -0
  408. package/es/utils/util.mjs +12 -1
  409. package/es/utils/util.mjs.map +1 -1
  410. package/es/version.d.ts +1 -1
  411. package/es/version.mjs +1 -1
  412. package/es/version.mjs.map +1 -1
  413. package/lib/components/autocomplete/index.d.ts +26 -18
  414. package/lib/components/autocomplete/src/index.vue.d.ts +13 -10
  415. package/lib/components/autocomplete/src/index.vue_vue_type_script_lang.js +13 -17
  416. package/lib/components/autocomplete/src/index.vue_vue_type_script_lang.js.map +1 -1
  417. package/lib/components/autocomplete/src/index.vue_vue_type_template_id_2f09f285_lang.js +51 -48
  418. package/lib/components/autocomplete/src/index.vue_vue_type_template_id_2f09f285_lang.js.map +1 -1
  419. package/lib/components/carousel/index.d.ts +4 -4
  420. package/lib/components/carousel/src/main.vue.d.ts +4 -4
  421. package/lib/components/cascader/index.d.ts +1118 -6532
  422. package/lib/components/cascader/src/index.vue.d.ts +559 -3267
  423. package/lib/components/cascader/src/index.vue_vue_type_script_lang.js +10 -10
  424. package/lib/components/cascader/src/index.vue_vue_type_script_lang.js.map +1 -1
  425. package/lib/components/cascader/src/index.vue_vue_type_template_id_0429c2db_lang.js +12 -12
  426. package/lib/components/cascader/src/index.vue_vue_type_template_id_0429c2db_lang.js.map +1 -1
  427. package/lib/components/cascader-panel/src/index.vue_vue_type_script_lang.js +3 -0
  428. package/lib/components/cascader-panel/src/index.vue_vue_type_script_lang.js.map +1 -1
  429. package/lib/components/cascader-panel/src/index.vue_vue_type_template_id_97c48f5c_lang.js.map +1 -1
  430. package/lib/components/checkbox/index.d.ts +1 -1
  431. package/lib/components/checkbox/src/checkbox.vue.d.ts +1 -1
  432. package/lib/components/collapse-transition/src/collapse-transition.vue_vue_type_script_lang.js +7 -13
  433. package/lib/components/collapse-transition/src/collapse-transition.vue_vue_type_script_lang.js.map +1 -1
  434. package/lib/components/collapse-transition/src/collapse-transition.vue_vue_type_template_id_f68ae30a_lang.js +1 -1
  435. package/lib/components/collapse-transition/src/collapse-transition.vue_vue_type_template_id_f68ae30a_lang.js.map +1 -1
  436. package/lib/components/collection/index.d.ts +2 -0
  437. package/lib/components/collection/index.js +12 -0
  438. package/lib/components/{popper/src → collection}/index.js.map +0 -0
  439. package/lib/components/collection/src/collection-item.js +12 -0
  440. package/lib/components/collection/src/collection-item.js.map +1 -0
  441. package/lib/components/collection/src/collection-item.vue.d.ts +2 -0
  442. package/lib/components/collection/src/collection-item.vue_vue_type_script_lang.js +13 -0
  443. package/lib/components/collection/src/collection-item.vue_vue_type_script_lang.js.map +1 -0
  444. package/lib/components/collection/src/collection-item.vue_vue_type_template_id_dd23be6a_lang.js +12 -0
  445. package/lib/components/collection/src/collection-item.vue_vue_type_template_id_dd23be6a_lang.js.map +1 -0
  446. package/lib/components/collection/src/collection.d.ts +263 -0
  447. package/lib/components/collection/src/collection.js +73 -0
  448. package/lib/components/collection/src/collection.js.map +1 -0
  449. package/lib/components/collection/src/collection.vue.d.ts +2 -0
  450. package/lib/components/collection/src/collection.vue_vue_type_script_lang.js +12 -0
  451. package/lib/components/collection/src/collection.vue_vue_type_script_lang.js.map +1 -0
  452. package/lib/components/collection/src/collection.vue_vue_type_template_id_5f9c2545_lang.js +12 -0
  453. package/lib/components/collection/src/collection.vue_vue_type_template_id_5f9c2545_lang.js.map +1 -0
  454. package/lib/components/collection/src/collection2.js +12 -0
  455. package/lib/components/collection/src/collection2.js.map +1 -0
  456. package/lib/components/collection/src/tokens.d.ts +12 -0
  457. package/lib/components/collection/src/tokens.js +3 -0
  458. package/lib/components/collection/src/tokens.js.map +1 -0
  459. package/lib/components/color-picker/index.d.ts +0 -2
  460. package/lib/components/color-picker/src/index.vue.d.ts +0 -2
  461. package/lib/components/color-picker/src/index.vue_vue_type_script_lang.js +2 -4
  462. package/lib/components/color-picker/src/index.vue_vue_type_script_lang.js.map +1 -1
  463. package/lib/components/color-picker/src/index.vue_vue_type_template_id_46a474d5_lang.js +9 -10
  464. package/lib/components/color-picker/src/index.vue_vue_type_template_id_46a474d5_lang.js.map +1 -1
  465. package/lib/components/config-provider/index.d.ts +1 -1
  466. package/lib/components/config-provider/src/config-provider.d.ts +1 -1
  467. package/lib/components/config-provider/src/config-provider.js +3 -13
  468. package/lib/components/config-provider/src/config-provider.js.map +1 -1
  469. package/lib/components/date-picker/index.d.ts +4 -4
  470. package/lib/components/date-picker/src/date-picker.d.ts +2 -2
  471. package/lib/components/descriptions/index.d.ts +4 -4
  472. package/lib/components/descriptions/src/description-item.d.ts +2 -2
  473. package/lib/components/dialog/index.d.ts +5 -5
  474. package/lib/components/dialog/src/dialog.vue.d.ts +5 -5
  475. package/lib/components/drawer/index.d.ts +5 -5
  476. package/lib/components/drawer/src/drawer.vue.d.ts +5 -5
  477. package/lib/components/dropdown/index.d.ts +767 -84
  478. package/lib/components/dropdown/src/dropdown-item-impl.js +12 -0
  479. package/lib/components/dropdown/src/dropdown-item-impl.js.map +1 -0
  480. package/lib/components/dropdown/src/dropdown-item-impl.vue.d.ts +39 -0
  481. package/lib/components/dropdown/src/dropdown-item-impl.vue_vue_type_script_lang.js +57 -0
  482. package/lib/components/dropdown/src/dropdown-item-impl.vue_vue_type_script_lang.js.map +1 -0
  483. package/lib/components/dropdown/src/dropdown-item-impl.vue_vue_type_template_id_6daab4f2_lang.js +37 -0
  484. package/lib/components/dropdown/src/dropdown-item-impl.vue_vue_type_template_id_6daab4f2_lang.js.map +1 -0
  485. package/lib/components/dropdown/src/dropdown-item.vue.d.ts +17 -9
  486. package/lib/components/dropdown/src/dropdown-item.vue_vue_type_script_lang.js +50 -20
  487. package/lib/components/dropdown/src/dropdown-item.vue_vue_type_script_lang.js.map +1 -1
  488. package/lib/components/dropdown/src/dropdown-item.vue_vue_type_template_id_396ed16b_lang.js +29 -19
  489. package/lib/components/dropdown/src/dropdown-item.vue_vue_type_template_id_396ed16b_lang.js.map +1 -1
  490. package/lib/components/dropdown/src/dropdown-menu.vue.d.ts +17 -6
  491. package/lib/components/dropdown/src/dropdown-menu.vue_vue_type_script_lang.js +57 -21
  492. package/lib/components/dropdown/src/dropdown-menu.vue_vue_type_script_lang.js.map +1 -1
  493. package/lib/components/dropdown/src/dropdown-menu.vue_vue_type_template_id_617b3492_lang.js +11 -8
  494. package/lib/components/dropdown/src/dropdown-menu.vue_vue_type_template_id_617b3492_lang.js.map +1 -1
  495. package/lib/components/dropdown/src/dropdown.d.ts +295 -1
  496. package/lib/components/dropdown/src/dropdown.js +96 -0
  497. package/lib/components/dropdown/src/dropdown.js.map +1 -1
  498. package/lib/components/dropdown/src/dropdown.vue.d.ts +712 -73
  499. package/lib/components/dropdown/src/dropdown.vue_vue_type_script_lang.js +59 -152
  500. package/lib/components/dropdown/src/dropdown.vue_vue_type_script_lang.js.map +1 -1
  501. package/lib/components/dropdown/src/dropdown.vue_vue_type_template_id_3ed790a5_lang.js +91 -51
  502. package/lib/components/dropdown/src/dropdown.vue_vue_type_template_id_3ed790a5_lang.js.map +1 -1
  503. package/lib/components/dropdown/src/tokens.d.ts +8 -0
  504. package/lib/components/dropdown/src/tokens.js +8 -0
  505. package/lib/components/dropdown/src/tokens.js.map +1 -0
  506. package/lib/components/focus-trap/index.d.ts +5 -0
  507. package/lib/components/focus-trap/index.js +27 -0
  508. package/lib/components/focus-trap/index.js.map +1 -0
  509. package/lib/components/focus-trap/src/focus-trap.js +12 -0
  510. package/lib/components/focus-trap/src/focus-trap.js.map +1 -0
  511. package/lib/components/focus-trap/src/focus-trap.vue.d.ts +21 -0
  512. package/lib/components/focus-trap/src/focus-trap.vue_vue_type_script_lang.js +141 -0
  513. package/lib/components/focus-trap/src/focus-trap.vue_vue_type_script_lang.js.map +1 -0
  514. package/lib/components/focus-trap/src/focus-trap.vue_vue_type_template_id_4a8a10c5_lang.js +12 -0
  515. package/lib/components/focus-trap/src/focus-trap.vue_vue_type_template_id_4a8a10c5_lang.js.map +1 -0
  516. package/lib/components/focus-trap/src/tokens.d.ts +11 -0
  517. package/lib/components/focus-trap/src/tokens.js +21 -0
  518. package/lib/components/focus-trap/src/tokens.js.map +1 -0
  519. package/lib/components/focus-trap/src/utils.d.ts +18 -0
  520. package/lib/components/focus-trap/src/utils.js +102 -0
  521. package/lib/components/focus-trap/src/utils.js.map +1 -0
  522. package/lib/components/image/index.d.ts +2 -2
  523. package/lib/components/image/src/image.vue.d.ts +2 -2
  524. package/lib/components/index.js +93 -85
  525. package/lib/components/index.js.map +1 -1
  526. package/lib/components/input/index.d.ts +5 -5
  527. package/lib/components/input/src/input.vue.d.ts +5 -5
  528. package/lib/components/input-number/index.d.ts +12 -12
  529. package/lib/components/input-number/src/input-number.vue.d.ts +12 -12
  530. package/lib/components/menu/index.d.ts +9 -3
  531. package/lib/components/menu/src/menu-item.vue.d.ts +4 -2
  532. package/lib/components/menu/src/menu-item.vue_vue_type_script_lang.js +3 -3
  533. package/lib/components/menu/src/menu-item.vue_vue_type_script_lang.js.map +1 -1
  534. package/lib/components/menu/src/menu.d.ts +1 -1
  535. package/lib/components/menu/src/menu.js +2 -1
  536. package/lib/components/menu/src/menu.js.map +1 -1
  537. package/lib/components/menu/src/sub-menu.js +18 -21
  538. package/lib/components/menu/src/sub-menu.js.map +1 -1
  539. package/lib/components/menu/src/types.d.ts +2 -0
  540. package/lib/components/message-box/src/index.vue.d.ts +2 -2
  541. package/lib/components/pagination/index.d.ts +2 -2
  542. package/lib/components/pagination/src/pagination.d.ts +2 -2
  543. package/lib/components/popconfirm/index.d.ts +19 -12
  544. package/lib/components/popconfirm/index.js +0 -1
  545. package/lib/components/popconfirm/index.js.map +1 -1
  546. package/lib/components/popconfirm/src/popconfirm.d.ts +3 -5
  547. package/lib/components/popconfirm/src/popconfirm.js +10 -5
  548. package/lib/components/popconfirm/src/popconfirm.js.map +1 -1
  549. package/lib/components/popconfirm/src/popconfirm.vue.d.ts +19 -13
  550. package/lib/components/popconfirm/src/popconfirm.vue_vue_type_script_lang.js +20 -18
  551. package/lib/components/popconfirm/src/popconfirm.vue_vue_type_script_lang.js.map +1 -1
  552. package/lib/components/popconfirm/src/popconfirm.vue_vue_type_template_id_16409d25_lang.js +11 -12
  553. package/lib/components/popconfirm/src/popconfirm.vue_vue_type_template_id_16409d25_lang.js.map +1 -1
  554. package/lib/components/popover/index.d.ts +1690 -420
  555. package/lib/components/popover/src/directive.js +7 -13
  556. package/lib/components/popover/src/directive.js.map +1 -1
  557. package/lib/components/popover/src/index.js +2 -0
  558. package/lib/components/popover/src/index.js.map +1 -1
  559. package/lib/components/popover/src/index.vue.d.ts +846 -213
  560. package/lib/components/popover/src/index.vue_vue_type_script_lang.js +40 -106
  561. package/lib/components/popover/src/index.vue_vue_type_script_lang.js.map +1 -1
  562. package/lib/components/popover/src/index.vue_vue_type_template_id_15486cf0_lang.js +35 -0
  563. package/lib/components/popover/src/index.vue_vue_type_template_id_15486cf0_lang.js.map +1 -0
  564. package/lib/components/popover/src/popover.d.ts +70 -0
  565. package/lib/components/popover/src/popover.js +35 -0
  566. package/lib/components/popover/src/popover.js.map +1 -0
  567. package/lib/components/popper/index.d.ts +7 -3479
  568. package/lib/components/popper/index.js +24 -20
  569. package/lib/components/popper/index.js.map +1 -1
  570. package/lib/components/popper/src/arrow.js +12 -0
  571. package/lib/components/popper/src/arrow.js.map +1 -0
  572. package/lib/components/popper/src/arrow.vue.d.ts +12 -0
  573. package/lib/components/popper/src/arrow.vue_vue_type_script_lang.js +31 -0
  574. package/lib/components/popper/src/arrow.vue_vue_type_script_lang.js.map +1 -0
  575. package/lib/components/popper/src/arrow.vue_vue_type_template_id_8ab40b80_lang.js +17 -0
  576. package/lib/components/popper/src/arrow.vue_vue_type_template_id_8ab40b80_lang.js.map +1 -0
  577. package/lib/components/popper/src/container.d.ts +3 -0
  578. package/lib/components/popper/src/container.js +28 -0
  579. package/lib/components/popper/src/container.js.map +1 -0
  580. package/lib/components/popper/src/content.js +12 -0
  581. package/lib/components/popper/src/content.js.map +1 -0
  582. package/lib/components/popper/src/content.vue.d.ts +299 -0
  583. package/lib/components/popper/src/content.vue_vue_type_script_lang.js +89 -0
  584. package/lib/components/popper/src/content.vue_vue_type_script_lang.js.map +1 -0
  585. package/lib/components/popper/src/content.vue_vue_type_template_id_611b76f0_lang.js +20 -0
  586. package/lib/components/popper/src/content.vue_vue_type_template_id_611b76f0_lang.js.map +1 -0
  587. package/lib/components/popper/src/popper.d.ts +58 -0
  588. package/lib/components/popper/src/popper.js +107 -0
  589. package/lib/components/popper/src/popper.js.map +1 -0
  590. package/lib/components/popper/src/popper.vue.d.ts +3 -0
  591. package/lib/components/popper/src/popper.vue_vue_type_script_lang.js +23 -0
  592. package/lib/components/popper/src/popper.vue_vue_type_script_lang.js.map +1 -0
  593. package/lib/components/popper/src/popper.vue_vue_type_template_id_77a3d185_lang.js +12 -0
  594. package/lib/components/popper/src/popper.vue_vue_type_template_id_77a3d185_lang.js.map +1 -0
  595. package/lib/components/popper/src/popper2.js +12 -0
  596. package/lib/components/popper/src/popper2.js.map +1 -0
  597. package/lib/components/popper/src/tokens.d.ts +14 -0
  598. package/lib/components/popper/src/tokens.js +10 -0
  599. package/lib/components/popper/src/tokens.js.map +1 -0
  600. package/lib/components/popper/src/trigger.js +12 -0
  601. package/lib/components/popper/src/trigger.js.map +1 -0
  602. package/lib/components/popper/src/trigger.vue.d.ts +45 -0
  603. package/lib/components/popper/src/trigger.vue_vue_type_script_lang.js +70 -0
  604. package/lib/components/popper/src/trigger.vue_vue_type_script_lang.js.map +1 -0
  605. package/lib/components/popper/src/trigger.vue_vue_type_template_id_4fb6e0af_lang.js +20 -0
  606. package/lib/components/popper/src/trigger.vue_vue_type_template_id_4fb6e0af_lang.js.map +1 -0
  607. package/lib/components/popper/src/utils.d.ts +55 -0
  608. package/lib/components/popper/src/utils.js +81 -0
  609. package/lib/components/popper/src/utils.js.map +1 -0
  610. package/lib/components/radio/index.js +2 -2
  611. package/lib/components/radio/src/radio-button.js +5 -10
  612. package/lib/components/radio/src/radio-button.js.map +1 -1
  613. package/lib/components/radio/src/radio-button.vue_vue_type_script_lang.js +1 -1
  614. package/lib/components/radio/src/radio-button2.js +10 -5
  615. package/lib/components/radio/src/radio-button2.js.map +1 -1
  616. package/lib/components/roving-focus-group/index.d.ts +7 -0
  617. package/lib/components/roving-focus-group/index.js +25 -0
  618. package/lib/components/roving-focus-group/index.js.map +1 -0
  619. package/lib/components/roving-focus-group/src/roving-focus-group-impl.js +12 -0
  620. package/lib/components/roving-focus-group/src/roving-focus-group-impl.js.map +1 -0
  621. package/lib/components/roving-focus-group/src/roving-focus-group-impl.vue.d.ts +43 -0
  622. package/lib/components/roving-focus-group/src/roving-focus-group-impl.vue_vue_type_script_lang.js +106 -0
  623. package/lib/components/roving-focus-group/src/roving-focus-group-impl.vue_vue_type_script_lang.js.map +1 -0
  624. package/lib/components/roving-focus-group/src/roving-focus-group-impl.vue_vue_type_template_id_e5cee750_lang.js +12 -0
  625. package/lib/components/roving-focus-group/src/roving-focus-group-impl.vue_vue_type_template_id_e5cee750_lang.js.map +1 -0
  626. package/lib/components/roving-focus-group/src/roving-focus-group.d.ts +269 -0
  627. package/lib/components/roving-focus-group/src/roving-focus-group.js +40 -0
  628. package/lib/components/roving-focus-group/src/roving-focus-group.js.map +1 -0
  629. package/lib/components/roving-focus-group/src/roving-focus-group.vue.d.ts +2 -0
  630. package/lib/components/roving-focus-group/src/roving-focus-group.vue_vue_type_script_lang.js +19 -0
  631. package/lib/components/roving-focus-group/src/roving-focus-group.vue_vue_type_script_lang.js.map +1 -0
  632. package/lib/components/roving-focus-group/src/roving-focus-group.vue_vue_type_template_id_91b51b76_lang.js +24 -0
  633. package/lib/components/roving-focus-group/src/roving-focus-group.vue_vue_type_template_id_91b51b76_lang.js.map +1 -0
  634. package/lib/components/roving-focus-group/src/roving-focus-group2.js +12 -0
  635. package/lib/components/roving-focus-group/src/roving-focus-group2.js.map +1 -0
  636. package/lib/components/roving-focus-group/src/roving-focus-item.js +12 -0
  637. package/lib/components/roving-focus-group/src/roving-focus-item.js.map +1 -0
  638. package/lib/components/roving-focus-group/src/roving-focus-item.vue.d.ts +29 -0
  639. package/lib/components/roving-focus-group/src/roving-focus-item.vue_vue_type_script_lang.js +104 -0
  640. package/lib/components/roving-focus-group/src/roving-focus-item.vue_vue_type_script_lang.js.map +1 -0
  641. package/lib/components/roving-focus-group/src/roving-focus-item.vue_vue_type_template_id_5f657dbd_lang.js +22 -0
  642. package/lib/components/roving-focus-group/src/roving-focus-item.vue_vue_type_template_id_5f657dbd_lang.js.map +1 -0
  643. package/lib/components/roving-focus-group/src/tokens.d.ts +27 -0
  644. package/lib/components/roving-focus-group/src/tokens.js +10 -0
  645. package/lib/components/roving-focus-group/src/tokens.js.map +1 -0
  646. package/lib/components/roving-focus-group/src/utils.d.ts +8 -0
  647. package/lib/components/roving-focus-group/src/utils.js +54 -0
  648. package/lib/components/roving-focus-group/src/utils.js.map +1 -0
  649. package/lib/components/select/index.d.ts +680 -14
  650. package/lib/components/select/src/select-dropdown.vue.d.ts +1 -1
  651. package/lib/components/select/src/select-dropdown.vue_vue_type_script_lang.js +1 -0
  652. package/lib/components/select/src/select-dropdown.vue_vue_type_script_lang.js.map +1 -1
  653. package/lib/components/select/src/select-dropdown.vue_vue_type_template_id_46cf6eee_lang.js.map +1 -1
  654. package/lib/components/select/src/select.vue.d.ts +681 -15
  655. package/lib/components/select/src/select.vue_vue_type_script_lang.js +24 -10
  656. package/lib/components/select/src/select.vue_vue_type_script_lang.js.map +1 -1
  657. package/lib/components/select/src/select.vue_vue_type_template_id_33774f85_lang.js +11 -12
  658. package/lib/components/select/src/select.vue_vue_type_template_id_33774f85_lang.js.map +1 -1
  659. package/lib/components/select/src/token.d.ts +1 -0
  660. package/lib/components/select/src/token.js.map +1 -1
  661. package/lib/components/select/src/useSelect.d.ts +671 -7
  662. package/lib/components/select/src/useSelect.js +33 -23
  663. package/lib/components/select/src/useSelect.js.map +1 -1
  664. package/lib/components/select-v2/index.d.ts +1326 -16
  665. package/lib/components/select-v2/src/select.vue.d.ts +665 -10
  666. package/lib/components/select-v2/src/select.vue_vue_type_script_lang.js +2 -2
  667. package/lib/components/select-v2/src/select.vue_vue_type_script_lang.js.map +1 -1
  668. package/lib/components/select-v2/src/select.vue_vue_type_template_id_13e598a4_lang.js +8 -9
  669. package/lib/components/select-v2/src/select.vue_vue_type_template_id_13e598a4_lang.js.map +1 -1
  670. package/lib/components/select-v2/src/useSelect.d.ts +659 -4
  671. package/lib/components/select-v2/src/useSelect.js +11 -11
  672. package/lib/components/select-v2/src/useSelect.js.map +1 -1
  673. package/lib/components/slider/src/button.vue_vue_type_script_lang.js +1 -1
  674. package/lib/components/slider/src/button.vue_vue_type_script_lang.js.map +1 -1
  675. package/lib/components/slot/index.d.ts +5 -0
  676. package/lib/components/slot/index.js +10 -0
  677. package/lib/components/{popper/src/renderers → slot}/index.js.map +1 -1
  678. package/lib/components/slot/src/only-child.d.ts +5 -0
  679. package/lib/components/slot/src/only-child.js +65 -0
  680. package/lib/components/slot/src/only-child.js.map +1 -0
  681. package/lib/components/table/index.d.ts +4 -4
  682. package/lib/components/table/src/filter-panel.vue.d.ts +654 -4
  683. package/lib/components/table/src/filter-panel.vue_vue_type_script_lang.js +5 -7
  684. package/lib/components/table/src/filter-panel.vue_vue_type_script_lang.js.map +1 -1
  685. package/lib/components/table/src/filter-panel.vue_vue_type_template_id_fde1c940_lang.js +8 -9
  686. package/lib/components/table/src/filter-panel.vue_vue_type_template_id_fde1c940_lang.js.map +1 -1
  687. package/lib/components/table/src/table-column/index.d.ts +1 -1
  688. package/lib/components/table/src/table.vue.d.ts +2 -2
  689. package/lib/components/table/src/util.d.ts +2 -2
  690. package/lib/components/teleport/index.d.ts +11 -8
  691. package/lib/components/teleport/src/teleport.d.ts +4 -3
  692. package/lib/components/teleport/src/teleport.js +5 -1
  693. package/lib/components/teleport/src/teleport.js.map +1 -1
  694. package/lib/components/teleport/src/teleport.vue.d.ts +11 -8
  695. package/lib/components/teleport/src/teleport.vue_vue_type_script_lang.js +1 -2
  696. package/lib/components/teleport/src/teleport.vue_vue_type_script_lang.js.map +1 -1
  697. package/lib/components/teleport/src/teleport.vue_vue_type_template_id_787c6a36_lang.js +3 -2
  698. package/lib/components/teleport/src/teleport.vue_vue_type_template_id_787c6a36_lang.js.map +1 -1
  699. package/lib/components/time-picker/index.d.ts +4 -4
  700. package/lib/components/time-picker/src/common/picker.vue.d.ts +663 -9
  701. package/lib/components/time-picker/src/common/picker.vue_vue_type_script_lang.js +33 -21
  702. package/lib/components/time-picker/src/common/picker.vue_vue_type_script_lang.js.map +1 -1
  703. package/lib/components/time-picker/src/common/picker.vue_vue_type_template_id_1d54be91_lang.js +37 -37
  704. package/lib/components/time-picker/src/common/picker.vue_vue_type_template_id_1d54be91_lang.js.map +1 -1
  705. package/lib/components/time-picker/src/time-picker.d.ts +2 -2
  706. package/lib/components/time-select/index.d.ts +4 -4
  707. package/lib/components/time-select/src/time-select.vue.d.ts +2 -2
  708. package/lib/components/tooltip/index.d.ts +346 -430
  709. package/lib/components/tooltip/index.js +9 -7
  710. package/lib/components/tooltip/index.js.map +1 -1
  711. package/lib/components/tooltip/src/content.js +12 -0
  712. package/lib/components/tooltip/src/content.js.map +1 -0
  713. package/lib/components/tooltip/src/content.vue.d.ts +809 -0
  714. package/lib/components/tooltip/src/content.vue_vue_type_script_lang.js +139 -0
  715. package/lib/components/tooltip/src/content.vue_vue_type_script_lang.js.map +1 -0
  716. package/lib/components/tooltip/src/content.vue_vue_type_template_id_20254f8d_lang.js +69 -0
  717. package/lib/components/tooltip/src/content.vue_vue_type_template_id_20254f8d_lang.js.map +1 -0
  718. package/lib/components/tooltip/src/tokens.d.ts +14 -0
  719. package/lib/components/tooltip/src/tokens.js +8 -0
  720. package/lib/components/tooltip/src/tokens.js.map +1 -0
  721. package/lib/components/tooltip/src/tooltip.d.ts +146 -0
  722. package/lib/components/tooltip/src/tooltip.js +69 -0
  723. package/lib/components/tooltip/src/tooltip.js.map +1 -0
  724. package/lib/components/tooltip/src/tooltip.vue.d.ts +383 -0
  725. package/lib/components/tooltip/src/tooltip.vue_vue_type_script_lang.js +108 -0
  726. package/lib/components/tooltip/src/tooltip.vue_vue_type_script_lang.js.map +1 -0
  727. package/lib/components/tooltip/src/tooltip.vue_vue_type_template_id_694d1617_lang.js +71 -0
  728. package/lib/components/tooltip/src/tooltip.vue_vue_type_template_id_694d1617_lang.js.map +1 -0
  729. package/lib/components/tooltip/src/tooltip2.js +12 -0
  730. package/lib/components/tooltip/src/tooltip2.js.map +1 -0
  731. package/lib/components/tooltip/src/trigger.js +12 -0
  732. package/lib/components/tooltip/src/trigger.js.map +1 -0
  733. package/lib/components/tooltip/src/trigger.vue.d.ts +39 -0
  734. package/lib/components/tooltip/src/trigger.vue_vue_type_script_lang.js +64 -0
  735. package/lib/components/tooltip/src/trigger.vue_vue_type_script_lang.js.map +1 -0
  736. package/lib/components/tooltip/src/trigger.vue_vue_type_template_id_0ec0b94c_lang.js +31 -0
  737. package/lib/components/tooltip/src/trigger.vue_vue_type_template_id_0ec0b94c_lang.js.map +1 -0
  738. package/lib/components/tooltip/src/utils.d.ts +4 -0
  739. package/lib/components/tooltip/src/utils.js +23 -0
  740. package/lib/components/tooltip/src/utils.js.map +1 -0
  741. package/lib/components/tree/index.d.ts +4 -4
  742. package/lib/components/tree/src/model/tree-store.js +1 -1
  743. package/lib/components/tree/src/model/tree-store.js.map +1 -1
  744. package/lib/components/tree/src/tree.vue.d.ts +2 -2
  745. package/lib/components/tree-v2/src/tree-node.vue.d.ts +1 -1
  746. package/lib/components/virtual-list/src/builders/build-list.d.ts +1 -1
  747. package/lib/components/virtual-list/src/components/dynamic-size-list.d.ts +1 -1
  748. package/lib/components/virtual-list/src/components/fixed-size-list.d.ts +1 -1
  749. package/lib/components/visual-hidden/index.d.ts +3 -0
  750. package/lib/components/visual-hidden/index.js +12 -0
  751. package/lib/components/visual-hidden/index.js.map +1 -0
  752. package/lib/components/visual-hidden/src/visual-hidden.js +12 -0
  753. package/lib/components/visual-hidden/src/visual-hidden.js.map +1 -0
  754. package/lib/components/visual-hidden/src/visual-hidden.vue.d.ts +12 -0
  755. package/lib/components/visual-hidden/src/visual-hidden.vue_vue_type_script_lang.js +38 -0
  756. package/lib/components/visual-hidden/src/visual-hidden.vue_vue_type_script_lang.js.map +1 -0
  757. package/lib/components/visual-hidden/src/visual-hidden.vue_vue_type_template_id_4cbd1102_lang.js +12 -0
  758. package/lib/components/visual-hidden/src/visual-hidden.vue_vue_type_template_id_4cbd1102_lang.js.map +1 -0
  759. package/lib/defaults.d.ts +11 -1
  760. package/lib/directives/click-outside/index.js.map +1 -1
  761. package/lib/hooks/index.d.ts +8 -1
  762. package/lib/hooks/index.js +37 -20
  763. package/lib/hooks/index.js.map +1 -1
  764. package/lib/hooks/use-delayed-toggle/index.d.ts +13 -0
  765. package/lib/hooks/use-delayed-toggle/index.js +44 -0
  766. package/lib/hooks/use-delayed-toggle/index.js.map +1 -0
  767. package/lib/hooks/use-escape-keydown/index.d.ts +1 -0
  768. package/lib/hooks/use-escape-keydown/index.js +25 -0
  769. package/lib/hooks/use-escape-keydown/index.js.map +1 -0
  770. package/lib/hooks/use-focus/index.d.ts +3 -1
  771. package/lib/hooks/use-focus/index.js.map +1 -1
  772. package/lib/hooks/use-forward-ref/index.d.ts +13 -0
  773. package/lib/hooks/use-forward-ref/index.js +33 -0
  774. package/lib/hooks/use-forward-ref/index.js.map +1 -0
  775. package/lib/hooks/use-global-config/index.d.ts +14 -2
  776. package/lib/hooks/use-global-config/index.js +24 -3
  777. package/lib/hooks/use-global-config/index.js.map +1 -1
  778. package/lib/hooks/use-id/index.d.ts +8 -0
  779. package/lib/hooks/use-id/index.js +29 -0
  780. package/lib/hooks/use-id/index.js.map +1 -0
  781. package/lib/hooks/use-intermediate-render/index.d.ts +11 -0
  782. package/lib/hooks/use-intermediate-render/index.js +47 -0
  783. package/lib/hooks/use-intermediate-render/index.js.map +1 -0
  784. package/lib/hooks/use-model-toggle/index.d.ts +18 -9
  785. package/lib/hooks/use-model-toggle/index.js +102 -91
  786. package/lib/hooks/use-model-toggle/index.js.map +1 -1
  787. package/lib/hooks/use-popper-container/index.d.ts +3 -0
  788. package/lib/hooks/use-popper-container/index.js +28 -0
  789. package/lib/hooks/use-popper-container/index.js.map +1 -0
  790. package/lib/hooks/use-restore-active/index.js +1 -1
  791. package/lib/hooks/use-restore-active/index.js.map +1 -1
  792. package/lib/index.d.ts +11 -1
  793. package/lib/index.js +168 -143
  794. package/lib/index.js.map +1 -1
  795. package/lib/make-installer.d.ts +2 -1
  796. package/lib/make-installer.js +12 -1
  797. package/lib/make-installer.js.map +1 -1
  798. package/lib/tokens/config-provider.d.ts +2 -2
  799. package/lib/tokens/config-provider.js.map +1 -1
  800. package/lib/utils/aria.d.ts +4 -0
  801. package/lib/utils/aria.js +5 -1
  802. package/lib/utils/aria.js.map +1 -1
  803. package/lib/utils/dom.d.ts +9 -1
  804. package/lib/utils/dom.js +30 -0
  805. package/lib/utils/dom.js.map +1 -1
  806. package/lib/utils/isServer.d.ts +2 -0
  807. package/lib/utils/isServer.js +8 -0
  808. package/lib/utils/isServer.js.map +1 -0
  809. package/lib/utils/props.d.ts +2 -2
  810. package/lib/utils/props.js +1 -1
  811. package/lib/utils/props.js.map +1 -1
  812. package/lib/utils/util.d.ts +1 -0
  813. package/lib/utils/util.js +12 -0
  814. package/lib/utils/util.js.map +1 -1
  815. package/lib/version.d.ts +1 -1
  816. package/lib/version.js +1 -1
  817. package/lib/version.js.map +1 -1
  818. package/package.json +2 -2
  819. package/tags.json +1 -1
  820. package/theme-chalk/base.css +1 -1
  821. package/theme-chalk/el-collapse.css +1 -1
  822. package/theme-chalk/el-date-picker.css +1 -1
  823. package/theme-chalk/el-dropdown.css +1 -1
  824. package/theme-chalk/el-menu.css +1 -1
  825. package/theme-chalk/el-table-column.css +1 -1
  826. package/theme-chalk/el-time-picker.css +1 -1
  827. package/theme-chalk/el-time-select.css +1 -1
  828. package/theme-chalk/el-tree.css +1 -1
  829. package/theme-chalk/index.css +1 -1
  830. package/theme-chalk/src/common/transition.scss +8 -0
  831. package/theme-chalk/src/dropdown.scss +1 -2
  832. package/theme-chalk/src/table-column.scss +0 -1
  833. package/web-types.json +1 -1
  834. package/es/components/popover/src/usePopover.d.ts +0 -32
  835. package/es/components/popover/src/usePopover.mjs +0 -38
  836. package/es/components/popover/src/usePopover.mjs.map +0 -1
  837. package/es/components/popper/src/index.mjs +0 -5
  838. package/es/components/popper/src/index.vue.d.ts +0 -1737
  839. package/es/components/popper/src/index.vue_vue_type_script_lang.mjs +0 -103
  840. package/es/components/popper/src/index.vue_vue_type_script_lang.mjs.map +0 -1
  841. package/es/components/popper/src/renderers/arrow.d.ts +0 -3
  842. package/es/components/popper/src/renderers/arrow.mjs +0 -12
  843. package/es/components/popper/src/renderers/arrow.mjs.map +0 -1
  844. package/es/components/popper/src/renderers/index.d.ts +0 -3
  845. package/es/components/popper/src/renderers/index.mjs +0 -4
  846. package/es/components/popper/src/renderers/popper.d.ts +0 -23
  847. package/es/components/popper/src/renderers/popper.mjs +0 -51
  848. package/es/components/popper/src/renderers/popper.mjs.map +0 -1
  849. package/es/components/popper/src/renderers/trigger.d.ts +0 -13
  850. package/es/components/popper/src/renderers/trigger.mjs +0 -13
  851. package/es/components/popper/src/renderers/trigger.mjs.map +0 -1
  852. package/es/components/popper/src/use-popper/build-modifiers.d.ts +0 -10
  853. package/es/components/popper/src/use-popper/build-modifiers.mjs +0 -50
  854. package/es/components/popper/src/use-popper/build-modifiers.mjs.map +0 -1
  855. package/es/components/popper/src/use-popper/defaults.d.ts +0 -142
  856. package/es/components/popper/src/use-popper/defaults.mjs +0 -116
  857. package/es/components/popper/src/use-popper/defaults.mjs.map +0 -1
  858. package/es/components/popper/src/use-popper/index.d.ts +0 -1554
  859. package/es/components/popper/src/use-popper/index.mjs +0 -235
  860. package/es/components/popper/src/use-popper/index.mjs.map +0 -1
  861. package/es/components/popper/src/use-popper/popper-options.d.ts +0 -20
  862. package/es/components/popper/src/use-popper/popper-options.mjs +0 -22
  863. package/es/components/popper/src/use-popper/popper-options.mjs.map +0 -1
  864. package/es/components/tooltip/src/index.d.ts +0 -240
  865. package/es/components/tooltip/src/index.mjs +0 -101
  866. package/es/components/tooltip/src/index.mjs.map +0 -1
  867. package/es/hooks/use-popper/index.d.ts +0 -103
  868. package/es/hooks/use-popper/index.mjs +0 -256
  869. package/es/hooks/use-popper/index.mjs.map +0 -1
  870. package/es/hooks/use-popper/use-popper-options.d.ts +0 -49
  871. package/es/hooks/use-popper/use-popper-options.mjs +0 -47
  872. package/es/hooks/use-popper/use-popper-options.mjs.map +0 -1
  873. package/es/hooks/use-popper/use-target-events.d.ts +0 -13
  874. package/es/hooks/use-popper/use-target-events.mjs +0 -68
  875. package/es/hooks/use-popper/use-target-events.mjs.map +0 -1
  876. package/lib/components/popover/src/usePopover.d.ts +0 -32
  877. package/lib/components/popover/src/usePopover.js +0 -44
  878. package/lib/components/popover/src/usePopover.js.map +0 -1
  879. package/lib/components/popper/src/index.js +0 -10
  880. package/lib/components/popper/src/index.vue.d.ts +0 -1737
  881. package/lib/components/popper/src/index.vue_vue_type_script_lang.js +0 -107
  882. package/lib/components/popper/src/index.vue_vue_type_script_lang.js.map +0 -1
  883. package/lib/components/popper/src/renderers/arrow.d.ts +0 -3
  884. package/lib/components/popper/src/renderers/arrow.js +0 -16
  885. package/lib/components/popper/src/renderers/arrow.js.map +0 -1
  886. package/lib/components/popper/src/renderers/index.d.ts +0 -3
  887. package/lib/components/popper/src/renderers/index.js +0 -14
  888. package/lib/components/popper/src/renderers/popper.d.ts +0 -23
  889. package/lib/components/popper/src/renderers/popper.js +0 -55
  890. package/lib/components/popper/src/renderers/popper.js.map +0 -1
  891. package/lib/components/popper/src/renderers/trigger.d.ts +0 -13
  892. package/lib/components/popper/src/renderers/trigger.js +0 -17
  893. package/lib/components/popper/src/renderers/trigger.js.map +0 -1
  894. package/lib/components/popper/src/use-popper/build-modifiers.d.ts +0 -10
  895. package/lib/components/popper/src/use-popper/build-modifiers.js +0 -54
  896. package/lib/components/popper/src/use-popper/build-modifiers.js.map +0 -1
  897. package/lib/components/popper/src/use-popper/defaults.d.ts +0 -142
  898. package/lib/components/popper/src/use-popper/defaults.js +0 -121
  899. package/lib/components/popper/src/use-popper/defaults.js.map +0 -1
  900. package/lib/components/popper/src/use-popper/index.d.ts +0 -1554
  901. package/lib/components/popper/src/use-popper/index.js +0 -242
  902. package/lib/components/popper/src/use-popper/index.js.map +0 -1
  903. package/lib/components/popper/src/use-popper/popper-options.d.ts +0 -20
  904. package/lib/components/popper/src/use-popper/popper-options.js +0 -26
  905. package/lib/components/popper/src/use-popper/popper-options.js.map +0 -1
  906. package/lib/components/tooltip/src/index.d.ts +0 -240
  907. package/lib/components/tooltip/src/index.js +0 -105
  908. package/lib/components/tooltip/src/index.js.map +0 -1
  909. package/lib/hooks/use-popper/index.d.ts +0 -103
  910. package/lib/hooks/use-popper/index.js +0 -264
  911. package/lib/hooks/use-popper/index.js.map +0 -1
  912. package/lib/hooks/use-popper/use-popper-options.d.ts +0 -49
  913. package/lib/hooks/use-popper/use-popper-options.js +0 -53
  914. package/lib/hooks/use-popper/use-popper-options.js.map +0 -1
  915. package/lib/hooks/use-popper/use-target-events.d.ts +0 -13
  916. package/lib/hooks/use-popper/use-target-events.js +0 -73
  917. package/lib/hooks/use-popper/use-target-events.js.map +0 -1
package/lib/utils/dom.js CHANGED
@@ -181,8 +181,37 @@ const getClientXY = (event) => {
181
181
  clientY
182
182
  };
183
183
  };
184
+ const composeEventHandlers = (theirsHandler, oursHandler, { checkForDefaultPrevented = true } = {}) => {
185
+ const handleEvent = (event) => {
186
+ const shouldPrevent = theirsHandler == null ? void 0 : theirsHandler(event);
187
+ if (checkForDefaultPrevented === false || !shouldPrevent) {
188
+ return oursHandler == null ? void 0 : oursHandler(event);
189
+ }
190
+ };
191
+ return handleEvent;
192
+ };
193
+ const whenMouse = (handler) => {
194
+ return (e) => e.pointerType === "mouse" ? handler(e) : void 0;
195
+ };
196
+ const composeStoppableHandler = (handler) => {
197
+ return (e) => {
198
+ if (!e.defaultPrevented) {
199
+ handler(e);
200
+ }
201
+ };
202
+ };
203
+ const composeRefs = (...refs) => {
204
+ return (el) => {
205
+ refs.forEach((ref) => {
206
+ ref.value = el;
207
+ });
208
+ };
209
+ };
184
210
 
185
211
  exports.addClass = addClass;
212
+ exports.composeEventHandlers = composeEventHandlers;
213
+ exports.composeRefs = composeRefs;
214
+ exports.composeStoppableHandler = composeStoppableHandler;
186
215
  exports.getClientXY = getClientXY;
187
216
  exports.getOffsetTop = getOffsetTop;
188
217
  exports.getOffsetTopDistance = getOffsetTopDistance;
@@ -198,4 +227,5 @@ exports.removeClass = removeClass;
198
227
  exports.removeStyle = removeStyle;
199
228
  exports.setStyle = setStyle;
200
229
  exports.stop = stop;
230
+ exports.whenMouse = whenMouse;
201
231
  //# sourceMappingURL=dom.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"dom.js","sources":["../../../../packages/utils/dom.ts"],"sourcesContent":["import { isClient } from '@vueuse/core'\nimport { camelize, isObject } from './util'\nimport type { CSSProperties } from 'vue'\n\nimport type { Nullable } from './types'\n\n/* istanbul ignore next */\nconst trimArr = function (s: string) {\n return (s || '').split(' ').filter((item) => !!item.trim())\n}\n\n/* istanbul ignore next */\nexport const on = function (\n element: HTMLElement | Document | Window,\n event: string,\n handler: EventListenerOrEventListenerObject,\n useCapture = false\n): void {\n if (element && event && handler) {\n element?.addEventListener(event, handler, useCapture)\n }\n}\n\n/* istanbul ignore next */\nexport const off = function (\n element: HTMLElement | Document | Window,\n event: string,\n handler: EventListenerOrEventListenerObject,\n useCapture = false\n): void {\n if (element && event && handler) {\n element?.removeEventListener(event, handler, useCapture)\n }\n}\n\n/* istanbul ignore next */\nexport const once = function (\n el: HTMLElement,\n event: string,\n fn: EventListener\n): void {\n const listener = function (this: any, ...args: any) {\n if (fn) {\n fn.apply(this, args)\n }\n off(el, event, listener)\n }\n on(el, event, listener)\n}\n\n/* istanbul ignore next */\nexport function hasClass(el: HTMLElement | Element, cls: string): boolean {\n if (!el || !cls) return false\n if (cls.indexOf(' ') !== -1)\n throw new Error('className should not contain space.')\n if (el.classList) {\n return el.classList.contains(cls)\n } else {\n const className = el.getAttribute('class') || ''\n return className.split(' ').includes(cls)\n }\n}\n\n/* istanbul ignore next */\nexport function addClass(el: HTMLElement | Element, cls: string): void {\n if (!el) return\n let className = el.getAttribute('class') || ''\n const curClass = trimArr(className)\n const classes = (cls || '')\n .split(' ')\n .filter((item) => !curClass.includes(item) && !!item.trim())\n\n if (el.classList) {\n el.classList.add(...classes)\n } else {\n className += ` ${classes.join(' ')}`\n el.setAttribute('class', className)\n }\n}\n\n/* istanbul ignore next */\nexport function removeClass(el: HTMLElement | Element, cls: string): void {\n if (!el || !cls) return\n const classes = trimArr(cls)\n let curClass = el.getAttribute('class') || ''\n\n if (el.classList) {\n el.classList.remove(...classes)\n return\n }\n classes.forEach((item) => {\n curClass = curClass.replace(` ${item} `, ' ')\n })\n const className = trimArr(curClass).join(' ')\n el.setAttribute('class', className)\n}\n\n/* istanbul ignore next */\n// Here I want to use the type CSSProperties, but the definition for CSSProperties\n// has { [index: number]: string } in its type annotation, which does not satisfy the method\n// camelize(s: string)\n// Same as the return type\nexport const getStyle = function (\n element: HTMLElement,\n styleName: string\n): string {\n if (!isClient) return ''\n if (!element || !styleName) return ''\n styleName = camelize(styleName)\n if (styleName === 'float') {\n styleName = 'cssFloat'\n }\n try {\n const style = element.style[styleName]\n if (style) return style\n const computed = document.defaultView?.getComputedStyle(element, '')\n return computed ? computed[styleName] : ''\n } catch (e) {\n return element.style[styleName]\n }\n}\n\n/* istanbul ignore next */\nexport function setStyle(\n element: HTMLElement,\n styleName: CSSProperties | string,\n value?: string\n): void {\n if (!element || !styleName) return\n\n if (isObject(styleName)) {\n Object.keys(styleName).forEach((prop) => {\n setStyle(element, prop, styleName[prop])\n })\n } else {\n styleName = camelize(styleName)\n element.style[styleName] = value\n }\n}\n\nexport function removeStyle(\n element: HTMLElement,\n style: CSSProperties | string\n) {\n if (!element || !style) return\n\n if (isObject(style)) {\n Object.keys(style).forEach((prop) => {\n setStyle(element, prop, '')\n })\n } else {\n setStyle(element, style, '')\n }\n}\n\nexport const isScroll = (\n el: HTMLElement,\n isVertical?: Nullable<boolean>\n): RegExpMatchArray | null => {\n if (!isClient) return null\n const determinedDirection = isVertical === null || isVertical === undefined\n const overflow = determinedDirection\n ? getStyle(el, 'overflow')\n : isVertical\n ? getStyle(el, 'overflow-y')\n : getStyle(el, 'overflow-x')\n\n return overflow.match(/(scroll|auto|overlay)/)\n}\n\nexport const getScrollContainer = (\n el: HTMLElement,\n isVertical?: Nullable<boolean>\n): Window | HTMLElement | undefined => {\n if (!isClient) return\n\n let parent: HTMLElement = el\n while (parent) {\n if ([window, document, document.documentElement].includes(parent)) {\n return window\n }\n if (isScroll(parent, isVertical)) {\n return parent\n }\n parent = parent.parentNode as HTMLElement\n }\n return parent\n}\n\nexport const isInContainer = (\n el: Element | undefined,\n container: Element | Window | undefined\n): boolean => {\n if (!isClient || !el || !container) return false\n\n const elRect = el.getBoundingClientRect()\n\n let containerRect: Pick<DOMRect, 'top' | 'bottom' | 'left' | 'right'>\n if (container instanceof Element) {\n containerRect = container.getBoundingClientRect()\n } else {\n containerRect = {\n top: 0,\n right: window.innerWidth,\n bottom: window.innerHeight,\n left: 0,\n }\n }\n return (\n elRect.top < containerRect.bottom &&\n elRect.bottom > containerRect.top &&\n elRect.right > containerRect.left &&\n elRect.left < containerRect.right\n )\n}\n\nexport const getOffsetTop = (el: HTMLElement) => {\n let offset = 0\n let parent = el\n\n while (parent) {\n offset += parent.offsetTop\n parent = parent.offsetParent as HTMLElement\n }\n\n return offset\n}\n\nexport const getOffsetTopDistance = (\n el: HTMLElement,\n containerEl: HTMLElement\n) => {\n return Math.abs(getOffsetTop(el) - getOffsetTop(containerEl))\n}\n\nexport const stop = (e: Event) => e.stopPropagation()\n\nexport const getClientXY = (event: MouseEvent | TouchEvent) => {\n let clientX: number\n let clientY: number\n if (event.type === 'touchend') {\n clientY = (event as TouchEvent).changedTouches[0].clientY\n clientX = (event as TouchEvent).changedTouches[0].clientX\n } else if (event.type.startsWith('touch')) {\n clientY = (event as TouchEvent).touches[0].clientY\n clientX = (event as TouchEvent).touches[0].clientX\n } else {\n clientY = (event as MouseEvent).clientY\n clientX = (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K;AACzD,EAAE,OAAO,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE,CAAC,GAAG,YAAY,CAAC,WAAW,CAAC,CAAC,CAAC;AAChE,EAAE;AACU,MAAC,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,eAAe,GAAG;AACnC,MAAC,WAAW,GAAG,CAAC,KAAK,KAAK;AACtC,EAAE,IAAI,OAAO,CAAC;AACd,EAAE,IAAI,OAAO,CAAC;AACd,EAAE,IAAI,KAAK,CAAC,IAAI,KAAK,UAAU,EAAE;AACjC,IAAI,OAAO,GAAG,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;AAC9C,IAAI,OAAO,GAAG,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;AAC9C,GAAG,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE;AAC7C,IAAI,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;AACvC,IAAI,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;AACvC,GAAG,MAAM;AACT,IAAI,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC;AAC5B,IAAI,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC;AAC5B,GAAG;AACH,EAAE,OAAO;AACT,IAAI,OAAO;AACX,IAAI,OAAO;AACX,GAAG,CAAC;AACJ;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"dom.js","sources":["../../../../packages/utils/dom.ts"],"sourcesContent":["import { isClient } from '@vueuse/core'\nimport { camelize, isObject } from './util'\nimport type { CSSProperties, ComponentPublicInstance, Ref } from 'vue'\n\nimport type { Nullable } from './types'\n\n/* istanbul ignore next */\nconst trimArr = function (s: string) {\n return (s || '').split(' ').filter((item) => !!item.trim())\n}\n\n/* istanbul ignore next */\nexport const on = function (\n element: HTMLElement | Document | Window,\n event: string,\n handler: EventListenerOrEventListenerObject,\n useCapture = false\n): void {\n if (element && event && handler) {\n element?.addEventListener(event, handler, useCapture)\n }\n}\n\n/* istanbul ignore next */\nexport const off = function (\n element: HTMLElement | Document | Window,\n event: string,\n handler: EventListenerOrEventListenerObject,\n useCapture = false\n): void {\n if (element && event && handler) {\n element?.removeEventListener(event, handler, useCapture)\n }\n}\n\n/* istanbul ignore next */\nexport const once = function (\n el: HTMLElement,\n event: string,\n fn: EventListener\n): void {\n const listener = function (this: any, ...args: any) {\n if (fn) {\n fn.apply(this, args)\n }\n off(el, event, listener)\n }\n on(el, event, listener)\n}\n\n/* istanbul ignore next */\nexport function hasClass(el: HTMLElement | Element, cls: string): boolean {\n if (!el || !cls) return false\n if (cls.indexOf(' ') !== -1)\n throw new Error('className should not contain space.')\n if (el.classList) {\n return el.classList.contains(cls)\n } else {\n const className = el.getAttribute('class') || ''\n return className.split(' ').includes(cls)\n }\n}\n\n/* istanbul ignore next */\nexport function addClass(el: HTMLElement | Element, cls: string): void {\n if (!el) return\n let className = el.getAttribute('class') || ''\n const curClass = trimArr(className)\n const classes = (cls || '')\n .split(' ')\n .filter((item) => !curClass.includes(item) && !!item.trim())\n\n if (el.classList) {\n el.classList.add(...classes)\n } else {\n className += ` ${classes.join(' ')}`\n el.setAttribute('class', className)\n }\n}\n\n/* istanbul ignore next */\nexport function removeClass(el: HTMLElement | Element, cls: string): void {\n if (!el || !cls) return\n const classes = trimArr(cls)\n let curClass = el.getAttribute('class') || ''\n\n if (el.classList) {\n el.classList.remove(...classes)\n return\n }\n classes.forEach((item) => {\n curClass = curClass.replace(` ${item} `, ' ')\n })\n const className = trimArr(curClass).join(' ')\n el.setAttribute('class', className)\n}\n\n/* istanbul ignore next */\n// Here I want to use the type CSSProperties, but the definition for CSSProperties\n// has { [index: number]: string } in its type annotation, which does not satisfy the method\n// camelize(s: string)\n// Same as the return type\nexport const getStyle = function (\n element: HTMLElement,\n styleName: string\n): string {\n if (!isClient) return ''\n if (!element || !styleName) return ''\n styleName = camelize(styleName)\n if (styleName === 'float') {\n styleName = 'cssFloat'\n }\n try {\n const style = element.style[styleName]\n if (style) return style\n const computed = document.defaultView?.getComputedStyle(element, '')\n return computed ? computed[styleName] : ''\n } catch (e) {\n return element.style[styleName]\n }\n}\n\n/* istanbul ignore next */\nexport function setStyle(\n element: HTMLElement,\n styleName: CSSProperties | string,\n value?: string\n): void {\n if (!element || !styleName) return\n\n if (isObject(styleName)) {\n Object.keys(styleName).forEach((prop) => {\n setStyle(element, prop, styleName[prop])\n })\n } else {\n styleName = camelize(styleName)\n element.style[styleName] = value\n }\n}\n\nexport function removeStyle(\n element: HTMLElement,\n style: CSSProperties | string\n) {\n if (!element || !style) return\n\n if (isObject(style)) {\n Object.keys(style).forEach((prop) => {\n setStyle(element, prop, '')\n })\n } else {\n setStyle(element, style, '')\n }\n}\n\nexport const isScroll = (\n el: HTMLElement,\n isVertical?: Nullable<boolean>\n): RegExpMatchArray | null => {\n if (!isClient) return null\n const determinedDirection = isVertical === null || isVertical === undefined\n const overflow = determinedDirection\n ? getStyle(el, 'overflow')\n : isVertical\n ? getStyle(el, 'overflow-y')\n : getStyle(el, 'overflow-x')\n\n return overflow.match(/(scroll|auto|overlay)/)\n}\n\nexport const getScrollContainer = (\n el: HTMLElement,\n isVertical?: Nullable<boolean>\n): Window | HTMLElement | undefined => {\n if (!isClient) return\n\n let parent: HTMLElement = el\n while (parent) {\n if ([window, document, document.documentElement].includes(parent)) {\n return window\n }\n if (isScroll(parent, isVertical)) {\n return parent\n }\n parent = parent.parentNode as HTMLElement\n }\n return parent\n}\n\nexport const isInContainer = (\n el: Element | undefined,\n container: Element | Window | undefined\n): boolean => {\n if (!isClient || !el || !container) return false\n\n const elRect = el.getBoundingClientRect()\n\n let containerRect: Pick<DOMRect, 'top' | 'bottom' | 'left' | 'right'>\n if (container instanceof Element) {\n containerRect = container.getBoundingClientRect()\n } else {\n containerRect = {\n top: 0,\n right: window.innerWidth,\n bottom: window.innerHeight,\n left: 0,\n }\n }\n return (\n elRect.top < containerRect.bottom &&\n elRect.bottom > containerRect.top &&\n elRect.right > containerRect.left &&\n elRect.left < containerRect.right\n )\n}\n\nexport const getOffsetTop = (el: HTMLElement) => {\n let offset = 0\n let parent = el\n\n while (parent) {\n offset += parent.offsetTop\n parent = parent.offsetParent as HTMLElement\n }\n\n return offset\n}\n\nexport const getOffsetTopDistance = (\n el: HTMLElement,\n containerEl: HTMLElement\n) => {\n return Math.abs(getOffsetTop(el) - getOffsetTop(containerEl))\n}\n\nexport const stop = (e: Event) => e.stopPropagation()\n\nexport const getClientXY = (event: MouseEvent | TouchEvent) => {\n let clientX: number\n let clientY: number\n if (event.type === 'touchend') {\n clientY = (event as TouchEvent).changedTouches[0].clientY\n clientX = (event as TouchEvent).changedTouches[0].clientX\n } else if (event.type.startsWith('touch')) {\n clientY = (event as TouchEvent).touches[0].clientY\n clientX = (event as TouchEvent).touches[0].clientX\n } else {\n clientY = (event as MouseEvent).clientY\n clientX = (event as MouseEvent).clientX\n }\n return {\n clientX,\n clientY,\n }\n}\n\nexport const composeEventHandlers = <E>(\n theirsHandler?: (event: E) => boolean | void,\n oursHandler?: (event: E) => void,\n { checkForDefaultPrevented = true } = {}\n) => {\n const handleEvent = (event: E) => {\n const shouldPrevent = theirsHandler?.(event)\n\n if (checkForDefaultPrevented === false || !shouldPrevent) {\n return oursHandler?.(event)\n }\n }\n return handleEvent\n}\n\ntype WhenMouseHandler = (e: PointerEvent) => any\n\nexport const whenMouse = (handler: WhenMouseHandler): WhenMouseHandler => {\n return (e: PointerEvent) =>\n e.pointerType === 'mouse' ? handler(e) : undefined\n}\n\nexport const composeStoppableHandler = <E extends Event>(\n handler: (e: E) => void\n) => {\n return (e: E) => {\n if (!e.defaultPrevented) {\n handler(e)\n }\n }\n}\n\nexport const composeRefs = (...refs: Ref<HTMLElement | null>[]) => {\n return (el: Element | ComponentPublicInstance | null) => {\n refs.forEach((ref) => {\n ref.value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AAa,EAAE;AAC9D,MAAM,OAAO,WAAW,IAAI,IAAI,GAAG,KAAK,CAAC,GAAG,WAAW,CAAC,KAAK,CAAC,CAAC;AAC/D,KAAK;AACL,GAAG,CAAC;AACJ,EAAE,OAAO,WAAW,CAAC;AACrB,EAAE;AACU,MAAC,SAAS,GAAG,CAAC,OAAO,KAAK;AACtC,EAAE,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,WAAW,KAAK,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC;AAChE,EAAE;AACU,MAAC,uBAAuB,GAAG,CAAC,OAAO,KAAK;AACpD,EAAE,OAAO,CAAC,CAAC,KAAK;AAChB,IAAI,IAAI,CAAC,CAAC,CAAC,gBAAgB,EAAE;AAC7B,MAAM,OAAO,CAAC,CAAC,CAAC,CAAC;AACjB,KAAK;AACL,GAAG,CAAC;AACJ,EAAE;AACU,MAAC,WAAW,GAAG,CAAC,GAAG,IAAI,KAAK;AACxC,EAAE,OAAO,CAAC,EAAE,KAAK;AACjB,IAAI,IAAI,CAAC,OAAO,CAAC,CAAC,GAAG,KAAK;AAC1B,MAAM,GAAG,CAAC,KAAK,GAAG,EAAE,CAAC;AACrB,KAAK,CAAC,CAAC;AACP,GAAG,CAAC;AACJ;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,2 @@
1
+ declare const _default: false;
2
+ export default _default;
@@ -0,0 +1,8 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var isServer = !(globalThis ? globalThis.document : window);
6
+
7
+ exports["default"] = isServer;
8
+ //# sourceMappingURL=isServer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isServer.js","sources":["../../../../packages/utils/isServer.ts"],"sourcesContent":["export default !(globalThis ? globalThis.document : window)\n"],"names":[],"mappings":";;;;AAAA,eAAe,EAAE,UAAU,GAAG,UAAU,CAAC,QAAQ,GAAG,MAAM,CAAC;;;;"}
@@ -4,7 +4,7 @@ declare const wrapperKey: unique symbol;
4
4
  export declare type PropWrapper<T> = {
5
5
  [wrapperKey]: T;
6
6
  };
7
- export declare const propKey: unique symbol;
7
+ export declare const propKey = "__elPropsReservedKey";
8
8
  declare type ResolveProp<T> = ExtractPropTypes<{
9
9
  key: {
10
10
  type: T;
@@ -66,7 +66,7 @@ declare type NativePropType = [
66
66
  } | undefined | null
67
67
  ];
68
68
  export declare const buildProps: <O extends { [K in keyof O]: O[K] extends BuildPropReturn<any, any, any, any, any> ? O[K] : [O[K]] extends NativePropType ? O[K] : O[K] extends BuildPropOption<infer T, infer D, infer R, infer V, infer C> ? D extends BuildPropType<T, V, C> ? BuildPropOption<T, D, R, V, C> : never : never; }>(props: O) => { [K_1 in keyof O]: O[K_1] extends {
69
- [propKey]: boolean;
69
+ __elPropsReservedKey: boolean;
70
70
  } ? O[K_1] : [O[K_1]] extends NativePropType ? O[K_1] : O[K_1] extends BuildPropOption<infer T_1, infer _D, infer R_1, infer V_1, infer C_1> ? BuildPropReturn<T_1, O[K_1]["default"], R_1, V_1, C_1> : never; };
71
71
  export declare const definePropType: <T>(val: any) => PropWrapper<T>;
72
72
  export declare const keyOf: <T>(arr: T) => (keyof T)[];
@@ -11,7 +11,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
11
11
  var fromPairs__default = /*#__PURE__*/_interopDefaultLegacy(fromPairs);
12
12
 
13
13
  const wrapperKey = Symbol();
14
- const propKey = Symbol();
14
+ const propKey = "__elPropsReservedKey";
15
15
  function buildProp(option, key) {
16
16
  if (!shared.isObject(option) || !!option[propKey])
17
17
  return option;
@@ -1 +1 @@
1
- {"version":3,"file":"props.js","sources":["../../../../packages/utils/props.ts"],"sourcesContent":["import { warn } from 'vue'\nimport { isObject } from '@vue/shared'\nimport fromPairs from 'lodash/fromPairs'\nimport type { ExtractPropTypes, PropType } from '@vue/runtime-core'\nimport type { Mutable } from './types'\n\nconst wrapperKey = Symbol()\nexport type PropWrapper<T> = { [wrapperKey]: T }\n\nexport const propKey = Symbol()\n\ntype ResolveProp<T> = ExtractPropTypes<{\n key: { type: T; required: true }\n}>['key']\ntype ResolvePropType<T> = ResolveProp<T> extends { type: infer V }\n ? V\n : ResolveProp<T>\ntype ResolvePropTypeWithReadonly<T> = Readonly<T> extends Readonly<\n Array<infer A>\n>\n ? ResolvePropType<A[]>\n : ResolvePropType<T>\n\ntype IfUnknown<T, V> = [unknown] extends [T] ? V : T\n\nexport type BuildPropOption<T, D extends BuildPropType<T, V, C>, R, V, C> = {\n type?: T\n values?: readonly V[]\n required?: R\n default?: R extends true\n ? never\n : D extends Record<string, unknown> | Array<any>\n ? () => D\n : (() => D) | D\n validator?: ((val: any) => val is C) | ((val: any) => boolean)\n}\n\ntype _BuildPropType<T, V, C> =\n | (T extends PropWrapper<unknown>\n ? T[typeof wrapperKey]\n : [V] extends [never]\n ? ResolvePropTypeWithReadonly<T>\n : never)\n | V\n | C\nexport type BuildPropType<T, V, C> = _BuildPropType<\n IfUnknown<T, never>,\n IfUnknown<V, never>,\n IfUnknown<C, never>\n>\n\ntype _BuildPropDefault<T, D> = [T] extends [\n // eslint-disable-next-line @typescript-eslint/ban-types\n Record<string, unknown> | Array<any> | Function\n]\n ? D\n : D extends () => T\n ? ReturnType<D>\n : D\n\nexport type BuildPropDefault<T, D, R> = R extends true\n ? { readonly default?: undefined }\n : {\n readonly default: Exclude<D, undefined> extends never\n ? undefined\n : Exclude<_BuildPropDefault<T, D>, undefined>\n }\nexport type BuildPropReturn<T, D, R, V, C> = {\n readonly type: PropType<BuildPropType<T, V, C>>\n readonly required: IfUnknown<R, false>\n readonly validator: ((val: unknown) => boolean) | undefined\n [propKey]: true\n} & BuildPropDefault<\n BuildPropType<T, V, C>,\n IfUnknown<D, never>,\n IfUnknown<R, false>\n>\n\n/**\n * @description Build prop. It can better optimize prop types\n * @description 生成 prop,能更好地优化类型\n * @example\n // limited options\n // the type will be PropType<'light' | 'dark'>\n buildProp({\n type: String,\n values: ['light', 'dark'],\n } as const)\n * @example\n // limited options and other types\n // the type will be PropType<'small' | 'large' | number>\n buildProp({\n type: [String, Number],\n values: ['small', 'large'],\n validator: (val: unknown): val is number => typeof val === 'number',\n } as const)\n @link see more: https://github.com/element-plus/element-plus/pull/3341\n */\nexport function buildProp<\n T = never,\n D extends BuildPropType<T, V, C> = never,\n R extends boolean = false,\n V = never,\n C = never\n>(\n option: BuildPropOption<T, D, R, V, C>,\n key?: string\n): BuildPropReturn<T, D, R, V, C> {\n // filter native prop type and nested prop, e.g `null`, `undefined` (from `buildProps`)\n if (!isObject(option) || !!option[propKey]) return option as any\n\n const { values, required, default: defaultValue, type, validator } = option\n\n const _validator =\n values || validator\n ? (val: unknown) => {\n let valid = false\n let allowedValues: unknown[] = []\n\n if (values) {\n allowedValues = [...values, defaultValue]\n valid ||= allowedValues.includes(val)\n }\n if (validator) valid ||= validator(val)\n\n if (!valid && allowedValues.length > 0) {\n const allowValuesText = [...new Set(allowedValues)]\n .map((value) => JSON.stringify(value))\n .join(', ')\n warn(\n `Invalid prop: validation failed${\n key ? ` for prop \"${key}\"` : ''\n }. Expected one of [${allowValuesText}], got value ${JSON.stringify(\n val\n )}.`\n )\n }\n return valid\n }\n : undefined\n\n return {\n type:\n typeof type === 'object' &&\n Object.getOwnPropertySymbols(type).includes(wrapperKey)\n ? type[wrapperKey]\n : type,\n required: !!required,\n default: defaultValue,\n validator: _validator,\n [propKey]: true,\n } as unknown as BuildPropReturn<T, D, R, V, C>\n}\n\ntype NativePropType = [\n ((...args: any) => any) | { new (...args: any): any } | undefined | null\n]\n\nexport const buildProps = <\n O extends {\n [K in keyof O]: O[K] extends BuildPropReturn<any, any, any, any, any>\n ? O[K]\n : [O[K]] extends NativePropType\n ? O[K]\n : O[K] extends BuildPropOption<\n infer T,\n infer D,\n infer R,\n infer V,\n infer C\n >\n ? D extends BuildPropType<T, V, C>\n ? BuildPropOption<T, D, R, V, C>\n : never\n : never\n }\n>(\n props: O\n) =>\n fromPairs(\n Object.entries(props).map(([key, option]) => [\n key,\n buildProp(option as any, key),\n ])\n ) as unknown as {\n [K in keyof O]: O[K] extends { [propKey]: boolean }\n ? O[K]\n : [O[K]] extends NativePropType\n ? O[K]\n : O[K] extends BuildPropOption<\n infer T,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n infer _D,\n infer R,\n infer V,\n infer C\n >\n ? BuildPropReturn<T, O[K]['default'], R, V, C>\n : never\n }\n\nexport const definePropType = <T>(val: any) =>\n ({ [wrapperKey]: val } as PropWrapper<T>)\n\nexport const keyOf = <T>(arr: T) => Object.keys(arr) as Array<keyof T>\nexport const mutable = <T extends readonly any[] | Record<string, unknown>>(\n val: T\n) => val as Mutable<typeof val>\n\nexport const componentSize = ['large', 'default', 'small'] as const\n"],"names":["isObject","warn","fromPairs"],"mappings":";;;;;;;;;;;;AAGA,MAAM,UAAU,GAAG,MAAM,EAAE,CAAC;AAChB,MAAC,OAAO,GAAG,MAAM,GAAG;AACzB,SAAS,SAAS,CAAC,MAAM,EAAE,GAAG,EAAE;AACvC,EAAE,IAAI,CAACA,eAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC;AAC5C,IAAI,OAAO,MAAM,CAAC;AAClB,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;AAC9E,EAAE,MAAM,UAAU,GAAG,MAAM,IAAI,SAAS,GAAG,CAAC,GAAG,KAAK;AACpD,IAAI,IAAI,KAAK,GAAG,KAAK,CAAC;AACtB,IAAI,IAAI,aAAa,GAAG,EAAE,CAAC;AAC3B,IAAI,IAAI,MAAM,EAAE;AAChB,MAAM,aAAa,GAAG,CAAC,GAAG,MAAM,EAAE,YAAY,CAAC,CAAC;AAChD,MAAM,KAAK,KAAK,KAAK,GAAG,aAAa,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC;A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,GAAG,CAAC;AACxB,CAAC,CAAC,EAAE;AACQ,MAAC,cAAc,GAAG,CAAC,GAAG,MAAM,EAAE,CAAC,UAAU,GAAG,GAAG,EAAE,EAAE;AACnD,MAAC,KAAK,GAAG,CAAC,GAAG,KAAK,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE;AACnC,MAAC,OAAO,GAAG,CAAC,GAAG,KAAK,IAAI;AACxB,MAAC,aAAa,GAAG,CAAC,OAAO,EAAE,SAAS,EAAE,OAAO;;;;;;;;;;"}
1
+ {"version":3,"file":"props.js","sources":["../../../../packages/utils/props.ts"],"sourcesContent":["import { warn } from 'vue'\nimport { isObject } from '@vue/shared'\nimport fromPairs from 'lodash/fromPairs'\nimport type { ExtractPropTypes, PropType } from '@vue/runtime-core'\nimport type { Mutable } from './types'\n\nconst wrapperKey = Symbol()\nexport type PropWrapper<T> = { [wrapperKey]: T }\n\nexport const propKey = '__elPropsReservedKey'\n\ntype ResolveProp<T> = ExtractPropTypes<{\n key: { type: T; required: true }\n}>['key']\ntype ResolvePropType<T> = ResolveProp<T> extends { type: infer V }\n ? V\n : ResolveProp<T>\ntype ResolvePropTypeWithReadonly<T> = Readonly<T> extends Readonly<\n Array<infer A>\n>\n ? ResolvePropType<A[]>\n : ResolvePropType<T>\n\ntype IfUnknown<T, V> = [unknown] extends [T] ? V : T\n\nexport type BuildPropOption<T, D extends BuildPropType<T, V, C>, R, V, C> = {\n type?: T\n values?: readonly V[]\n required?: R\n default?: R extends true\n ? never\n : D extends Record<string, unknown> | Array<any>\n ? () => D\n : (() => D) | D\n validator?: ((val: any) => val is C) | ((val: any) => boolean)\n}\n\ntype _BuildPropType<T, V, C> =\n | (T extends PropWrapper<unknown>\n ? T[typeof wrapperKey]\n : [V] extends [never]\n ? ResolvePropTypeWithReadonly<T>\n : never)\n | V\n | C\nexport type BuildPropType<T, V, C> = _BuildPropType<\n IfUnknown<T, never>,\n IfUnknown<V, never>,\n IfUnknown<C, never>\n>\n\ntype _BuildPropDefault<T, D> = [T] extends [\n // eslint-disable-next-line @typescript-eslint/ban-types\n Record<string, unknown> | Array<any> | Function\n]\n ? D\n : D extends () => T\n ? ReturnType<D>\n : D\n\nexport type BuildPropDefault<T, D, R> = R extends true\n ? { readonly default?: undefined }\n : {\n readonly default: Exclude<D, undefined> extends never\n ? undefined\n : Exclude<_BuildPropDefault<T, D>, undefined>\n }\nexport type BuildPropReturn<T, D, R, V, C> = {\n readonly type: PropType<BuildPropType<T, V, C>>\n readonly required: IfUnknown<R, false>\n readonly validator: ((val: unknown) => boolean) | undefined\n [propKey]: true\n} & BuildPropDefault<\n BuildPropType<T, V, C>,\n IfUnknown<D, never>,\n IfUnknown<R, false>\n>\n\n/**\n * @description Build prop. It can better optimize prop types\n * @description 生成 prop,能更好地优化类型\n * @example\n // limited options\n // the type will be PropType<'light' | 'dark'>\n buildProp({\n type: String,\n values: ['light', 'dark'],\n } as const)\n * @example\n // limited options and other types\n // the type will be PropType<'small' | 'large' | number>\n buildProp({\n type: [String, Number],\n values: ['small', 'large'],\n validator: (val: unknown): val is number => typeof val === 'number',\n } as const)\n @link see more: https://github.com/element-plus/element-plus/pull/3341\n */\nexport function buildProp<\n T = never,\n D extends BuildPropType<T, V, C> = never,\n R extends boolean = false,\n V = never,\n C = never\n>(\n option: BuildPropOption<T, D, R, V, C>,\n key?: string\n): BuildPropReturn<T, D, R, V, C> {\n // filter native prop type and nested prop, e.g `null`, `undefined` (from `buildProps`)\n if (!isObject(option) || !!option[propKey]) return option as any\n\n const { values, required, default: defaultValue, type, validator } = option\n\n const _validator =\n values || validator\n ? (val: unknown) => {\n let valid = false\n let allowedValues: unknown[] = []\n\n if (values) {\n allowedValues = [...values, defaultValue]\n valid ||= allowedValues.includes(val)\n }\n if (validator) valid ||= validator(val)\n\n if (!valid && allowedValues.length > 0) {\n const allowValuesText = [...new Set(allowedValues)]\n .map((value) => JSON.stringify(value))\n .join(', ')\n warn(\n `Invalid prop: validation failed${\n key ? ` for prop \"${key}\"` : ''\n }. Expected one of [${allowValuesText}], got value ${JSON.stringify(\n val\n )}.`\n )\n }\n return valid\n }\n : undefined\n\n return {\n type:\n typeof type === 'object' &&\n Object.getOwnPropertySymbols(type).includes(wrapperKey)\n ? type[wrapperKey]\n : type,\n required: !!required,\n default: defaultValue,\n validator: _validator,\n [propKey]: true,\n } as unknown as BuildPropReturn<T, D, R, V, C>\n}\n\ntype NativePropType = [\n ((...args: any) => any) | { new (...args: any): any } | undefined | null\n]\n\nexport const buildProps = <\n O extends {\n [K in keyof O]: O[K] extends BuildPropReturn<any, any, any, any, any>\n ? O[K]\n : [O[K]] extends NativePropType\n ? O[K]\n : O[K] extends BuildPropOption<\n infer T,\n infer D,\n infer R,\n infer V,\n infer C\n >\n ? D extends BuildPropType<T, V, C>\n ? BuildPropOption<T, D, R, V, C>\n : never\n : never\n }\n>(\n props: O\n) =>\n fromPairs(\n Object.entries(props).map(([key, option]) => [\n key,\n buildProp(option as any, key),\n ])\n ) as unknown as {\n [K in keyof O]: O[K] extends { [propKey]: boolean }\n ? O[K]\n : [O[K]] extends NativePropType\n ? O[K]\n : O[K] extends BuildPropOption<\n infer T,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n infer _D,\n infer R,\n infer V,\n infer C\n >\n ? BuildPropReturn<T, O[K]['default'], R, V, C>\n : never\n }\n\nexport const definePropType = <T>(val: any) =>\n ({ [wrapperKey]: val } as PropWrapper<T>)\n\nexport const keyOf = <T>(arr: T) => Object.keys(arr) as Array<keyof T>\nexport const mutable = <T extends readonly any[] | Record<string, unknown>>(\n val: T\n) => val as Mutable<typeof val>\n\nexport const componentSize = ['large', 'default', 'small'] as const\n"],"names":["isObject","warn","fromPairs"],"mappings":";;;;;;;;;;;;AAGA,MAAM,UAAU,GAAG,MAAM,EAAE,CAAC;AAChB,MAAC,OAAO,GAAG,uBAAuB;AACvC,SAAS,SAAS,CAAC,MAAM,EAAE,GAAG,EAAE;AACvC,EAAE,IAAI,CAACA,eAAQ,CAAC,MAAM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,IAAI,IAAI,EAAE,OAAO,IAAI,KAAK,QAAQ,IAAI,MAAM,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC,GAAG,IAAI;AACvH,IAAI,QAAQ,EAAE,CAAC,CAAC,QAAQ;AACxB,IAAI,OAAO,EAAE,YAAY;AACzB,IAAI,SAAS,EAAE,UAAU;AACzB,IAAI,CAAC,OAAO,GAAG,IAAI;AACnB,GAAG,CAAC;AACJ,CAAC;AACW,MAAC,UAAU,GAAG,CAAC,KAAK,KAAKC,6BAAS,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,MAAM,CAAC,KAAK;AAC5F,EAAE,GAAG;AACL,EAAE,SAAS,CAAC,MAAM,EAAE,GAAG,CAAC;AACxB,CAAC,CAAC,EAAE;AACQ,MAAC,cAAc,GAAG,CAAC,GAAG,MAAM,EAAE,CAAC,UAAU,GAAG,GAAG,EAAE,EAAE;AACnD,MAAC,KAAK,GAAG,CAAC,GAAG,KAAK,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE;AACnC,MAAC,OAAO,GAAG,CAAC,GAAG,KAAK,IAAI;AACxB,MAAC,aAAa,GAAG,CAAC,OAAO,EAAE,SAAS,EAAE,OAAO;;;;;;;;;;"}
@@ -52,3 +52,4 @@ export declare function isEqualWithFunction(obj: any, other: any): boolean;
52
52
  * @returns (val: T) => void
53
53
  */
54
54
  export declare const refAttacher: <T extends HTMLElement | ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>>(ref: Ref<T>) => (val: T) => void;
55
+ export declare const merge: <T extends Record<string, any>>(a: T, b: T) => T;
package/lib/utils/util.js CHANGED
@@ -145,6 +145,17 @@ const refAttacher = (ref) => {
145
145
  ref.value = val;
146
146
  };
147
147
  };
148
+ const merge = (a, b) => {
149
+ var _a;
150
+ const keys = [
151
+ .../* @__PURE__ */ new Set([...Object.keys(a), ...Object.keys(b)])
152
+ ];
153
+ const obj = {};
154
+ for (const key of keys) {
155
+ obj[key] = (_a = b[key]) != null ? _a : a[key];
156
+ }
157
+ return obj;
158
+ };
148
159
 
149
160
  Object.defineProperty(exports, 'camelize', {
150
161
  enumerable: true,
@@ -202,6 +213,7 @@ exports.isHTMLElement = isHTMLElement;
202
213
  exports.isNumber = isNumber;
203
214
  exports.isUndefined = isUndefined;
204
215
  exports.kebabCase = kebabCase;
216
+ exports.merge = merge;
205
217
  exports.rafThrottle = rafThrottle;
206
218
  exports.refAttacher = refAttacher;
207
219
  exports.toObject = toObject;
@@ -1 +1 @@
1
- {"version":3,"file":"util.js","sources":["../../../../packages/utils/util.ts"],"sourcesContent":["import {\n camelize,\n capitalize,\n extend,\n hasOwn,\n hyphenate,\n isArray,\n isObject,\n isString,\n isFunction,\n looseEqual,\n toRawType,\n} from '@vue/shared'\nimport isEqualWith from 'lodash/isEqualWith'\nimport { isClient } from '@vueuse/core'\nimport { debugWarn, throwError } from './error'\n\nimport type { ComponentPublicInstance, CSSProperties, Ref } from 'vue'\nimport type { TimeoutHandle, Nullable } from './types'\n\nexport const SCOPE = 'Util'\n\nexport function toObject<T>(arr: Array<T>): Record<string, T> {\n const res = {}\n for (let i = 0; i < arr.length; i++) {\n if (arr[i]) {\n extend(res, arr[i])\n }\n }\n return res\n}\n\nexport const getValueByPath = (obj, paths = ''): unknown => {\n let ret: unknown = obj\n paths.split('.').map((path) => {\n ret = ret?.[path]\n })\n return ret\n}\n\nexport function getPropByPath(\n obj: any,\n path: string,\n strict: boolean\n): {\n o: unknown\n k: string\n v: Nullable<unknown>\n} {\n let tempObj = obj\n let key, value\n\n if (obj && hasOwn(obj, path)) {\n key = path\n value = tempObj?.[path]\n } else {\n path = path.replace(/\\[(\\w+)\\]/g, '.$1')\n path = path.replace(/^\\./, '')\n\n const keyArr = path.split('.')\n let i = 0\n for (i; i < keyArr.length - 1; i++) {\n if (!tempObj && !strict) break\n const key = keyArr[i]\n\n if (key in tempObj) {\n tempObj = tempObj[key]\n } else {\n if (strict) {\n throwError(SCOPE, 'Please transfer a valid prop path to form item!')\n }\n break\n }\n }\n key = keyArr[i]\n value = tempObj?.[keyArr[i]]\n }\n return {\n o: tempObj,\n k: key,\n v: value,\n }\n}\n\n/**\n * Generate random number in range [0, 1000]\n * Maybe replace with [uuid](https://www.npmjs.com/package/uuid)\n */\nexport const generateId = (): number => Math.floor(Math.random() * 10000)\n\n// use isEqual instead\n// export const valueEquals\n\nexport const escapeRegexpString = (value = ''): string =>\n String(value).replace(/[|\\\\{}()[\\]^$+*?.]/g, '\\\\$&')\n\n// Use native Array.find, Array.findIndex instead\n\n// coerce truthy value to array\nexport const coerceTruthyValueToArray = (arr) => {\n if (!arr && arr !== 0) {\n return []\n }\n return Array.isArray(arr) ? arr : [arr]\n}\n\n// drop IE and (Edge < 79) support\n// export const isIE\n// export const isEdge\n\nexport const isFirefox = function (): boolean {\n return isClient && !!window.navigator.userAgent.match(/firefox/i)\n}\n\nexport const autoprefixer = function (style: CSSProperties): CSSProperties {\n const rules = ['transform', 'transition', 'animation']\n const prefixes = ['ms-', 'webkit-']\n rules.forEach((rule) => {\n const value = style[rule]\n if (rule && value) {\n prefixes.forEach((prefix) => {\n style[prefix + rule] = value\n })\n }\n })\n return style\n}\n\nexport const kebabCase = hyphenate\n\n// reexport from lodash & vue shared\nexport { isVNode } from 'vue'\nexport {\n hasOwn,\n // isEmpty,\n // isEqual,\n isObject,\n isArray,\n isString,\n capitalize,\n camelize,\n looseEqual,\n extend,\n}\n\nexport const isBool = (val: unknown): val is boolean => typeof val === 'boolean'\nexport const isNumber = (val: unknown): val is number => typeof val === 'number'\nexport const isHTMLElement = (val: unknown) => toRawType(val).startsWith('HTML')\n\nexport function rafThrottle<T extends (...args: any) => any>(fn: T): T {\n let locked = false\n return function (this: ThisParameterType<T>, ...args: any[]) {\n if (locked) return\n locked = true\n\n window.requestAnimationFrame(() => {\n Reflect.apply(fn, this, args)\n locked = false\n })\n } as T\n}\n\nexport const clearTimer = (timer: Ref<TimeoutHandle>) => {\n clearTimeout(timer.value)\n timer.value = null\n}\n\n/**\n * Generating a random int in range (0, max - 1)\n * @param max {number}\n */\nexport function getRandomInt(max: number) {\n return Math.floor(Math.random() * Math.floor(max))\n}\n\nexport function isUndefined(val: any): val is undefined {\n return val === undefined\n}\n\nexport function isEmpty(val: unknown) {\n if (\n (!val && val !== 0) ||\n (isArray(val) && !val.length) ||\n (isObject(val) && !Object.keys(val).length)\n )\n return true\n\n return false\n}\n\nexport function arrayFlat(arr: unknown[]) {\n return arr.reduce((acm: unknown[], item) => {\n const val = Array.isArray(item) ? arrayFlat(item) : item\n return acm.concat(val)\n }, [])\n}\n\nexport function deduplicate<T>(arr: T[]) {\n return Array.from(new Set(arr))\n}\n\nexport function addUnit(value: string | number) {\n if (isString(value)) {\n return value\n } else if (isNumber(value)) {\n return `${value}px`\n }\n debugWarn(SCOPE, 'binding value must be a string or number')\n return ''\n}\n\n/**\n * Enhance `lodash.isEqual` for it always return false even two functions have completely same statements.\n * @param obj The value to compare\n * @param other The other value to compare\n * @returns Returns `true` if the values are equivalent, else `false`.\n * @example\n * lodash.isEqual(() => 1, () => 1) // false\n * isEqualWith(() => 1, () => 1) // true\n */\nexport function isEqualWithFunction(obj: any, other: any) {\n return isEqualWith(obj, other, (objVal, otherVal) => {\n return isFunction(objVal) && isFunction(otherVal)\n ? `${objVal}` === `${otherVal}`\n : undefined\n })\n}\n\n/**\n * Generate function for attach ref for the h renderer\n * @param ref Ref<HTMLElement | ComponentPublicInstance>\n * @returns (val: T) => void\n */\n\nexport const refAttacher = <T extends HTMLElement | ComponentPublicInstance>(\n ref: Ref<T>\n) => {\n return (val: T) => {\n ref.value = val\n }\n}\n"],"names":["extend","hasOwn","throwError","isClient","hyphenate","toRawType","isArray","isObject","isString","debugWarn","isEqualWith","isFunction"],"mappings":";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;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"util.js","sources":["../../../../packages/utils/util.ts"],"sourcesContent":["import {\n camelize,\n capitalize,\n extend,\n hasOwn,\n hyphenate,\n isArray,\n isObject,\n isString,\n isFunction,\n looseEqual,\n toRawType,\n} from '@vue/shared'\nimport isEqualWith from 'lodash/isEqualWith'\nimport { isClient } from '@vueuse/core'\nimport { debugWarn, throwError } from './error'\n\nimport type { ComponentPublicInstance, CSSProperties, Ref } from 'vue'\nimport type { TimeoutHandle, Nullable } from './types'\n\nexport const SCOPE = 'Util'\n\nexport function toObject<T>(arr: Array<T>): Record<string, T> {\n const res = {}\n for (let i = 0; i < arr.length; i++) {\n if (arr[i]) {\n extend(res, arr[i])\n }\n }\n return res\n}\n\nexport const getValueByPath = (obj, paths = ''): unknown => {\n let ret: unknown = obj\n paths.split('.').map((path) => {\n ret = ret?.[path]\n })\n return ret\n}\n\nexport function getPropByPath(\n obj: any,\n path: string,\n strict: boolean\n): {\n o: unknown\n k: string\n v: Nullable<unknown>\n} {\n let tempObj = obj\n let key, value\n\n if (obj && hasOwn(obj, path)) {\n key = path\n value = tempObj?.[path]\n } else {\n path = path.replace(/\\[(\\w+)\\]/g, '.$1')\n path = path.replace(/^\\./, '')\n\n const keyArr = path.split('.')\n let i = 0\n for (i; i < keyArr.length - 1; i++) {\n if (!tempObj && !strict) break\n const key = keyArr[i]\n\n if (key in tempObj) {\n tempObj = tempObj[key]\n } else {\n if (strict) {\n throwError(SCOPE, 'Please transfer a valid prop path to form item!')\n }\n break\n }\n }\n key = keyArr[i]\n value = tempObj?.[keyArr[i]]\n }\n return {\n o: tempObj,\n k: key,\n v: value,\n }\n}\n\n/**\n * Generate random number in range [0, 1000]\n * Maybe replace with [uuid](https://www.npmjs.com/package/uuid)\n */\nexport const generateId = (): number => Math.floor(Math.random() * 10000)\n\n// use isEqual instead\n// export const valueEquals\n\nexport const escapeRegexpString = (value = ''): string =>\n String(value).replace(/[|\\\\{}()[\\]^$+*?.]/g, '\\\\$&')\n\n// Use native Array.find, Array.findIndex instead\n\n// coerce truthy value to array\nexport const coerceTruthyValueToArray = (arr) => {\n if (!arr && arr !== 0) {\n return []\n }\n return Array.isArray(arr) ? arr : [arr]\n}\n\n// drop IE and (Edge < 79) support\n// export const isIE\n// export const isEdge\n\nexport const isFirefox = function (): boolean {\n return isClient && !!window.navigator.userAgent.match(/firefox/i)\n}\n\nexport const autoprefixer = function (style: CSSProperties): CSSProperties {\n const rules = ['transform', 'transition', 'animation']\n const prefixes = ['ms-', 'webkit-']\n rules.forEach((rule) => {\n const value = style[rule]\n if (rule && value) {\n prefixes.forEach((prefix) => {\n style[prefix + rule] = value\n })\n }\n })\n return style\n}\n\nexport const kebabCase = hyphenate\n\n// reexport from lodash & vue shared\nexport { isVNode } from 'vue'\nexport {\n hasOwn,\n // isEmpty,\n // isEqual,\n isObject,\n isArray,\n isString,\n capitalize,\n camelize,\n looseEqual,\n extend,\n}\n\nexport const isBool = (val: unknown): val is boolean => typeof val === 'boolean'\nexport const isNumber = (val: unknown): val is number => typeof val === 'number'\nexport const isHTMLElement = (val: unknown) => toRawType(val).startsWith('HTML')\n\nexport function rafThrottle<T extends (...args: any) => any>(fn: T): T {\n let locked = false\n return function (this: ThisParameterType<T>, ...args: any[]) {\n if (locked) return\n locked = true\n\n window.requestAnimationFrame(() => {\n Reflect.apply(fn, this, args)\n locked = false\n })\n } as T\n}\n\nexport const clearTimer = (timer: Ref<TimeoutHandle>) => {\n clearTimeout(timer.value)\n timer.value = null\n}\n\n/**\n * Generating a random int in range (0, max - 1)\n * @param max {number}\n */\nexport function getRandomInt(max: number) {\n return Math.floor(Math.random() * Math.floor(max))\n}\n\nexport function isUndefined(val: any): val is undefined {\n return val === undefined\n}\n\nexport function isEmpty(val: unknown) {\n if (\n (!val && val !== 0) ||\n (isArray(val) && !val.length) ||\n (isObject(val) && !Object.keys(val).length)\n )\n return true\n\n return false\n}\n\nexport function arrayFlat(arr: unknown[]) {\n return arr.reduce((acm: unknown[], item) => {\n const val = Array.isArray(item) ? arrayFlat(item) : item\n return acm.concat(val)\n }, [])\n}\n\nexport function deduplicate<T>(arr: T[]) {\n return Array.from(new Set(arr))\n}\n\nexport function addUnit(value: string | number) {\n if (isString(value)) {\n return value\n } else if (isNumber(value)) {\n return `${value}px`\n }\n debugWarn(SCOPE, 'binding value must be a string or number')\n return ''\n}\n\n/**\n * Enhance `lodash.isEqual` for it always return false even two functions have completely same statements.\n * @param obj The value to compare\n * @param other The other value to compare\n * @returns Returns `true` if the values are equivalent, else `false`.\n * @example\n * lodash.isEqual(() => 1, () => 1) // false\n * isEqualWith(() => 1, () => 1) // true\n */\nexport function isEqualWithFunction(obj: any, other: any) {\n return isEqualWith(obj, other, (objVal, otherVal) => {\n return isFunction(objVal) && isFunction(otherVal)\n ? `${objVal}` === `${otherVal}`\n : undefined\n })\n}\n\n/**\n * Generate function for attach ref for the h renderer\n * @param ref Ref<HTMLElement | ComponentPublicInstance>\n * @returns (val: T) => void\n */\n\nexport const refAttacher = <T extends HTMLElement | ComponentPublicInstance>(\n ref: Ref<T>\n) => {\n return (val: T) => {\n ref.value = val\n }\n}\n\nexport const merge = <T extends Record<string, any>>(a: T, b: T) => {\n const keys = [\n ...new Set([...Object.keys(a), ...Object.keys(b)]),\n ] as (keyof T)[]\n const obj = {} as T\n for (const key of keys) {\n obj[key] = b[key] ?? a[key]\n }\n return obj\n}\n"],"names":["extend","hasOwn","throwError","isClient","hyphenate","toRawType","isArray","isObject","isString","debugWarn","isEqualWith","isFunction"],"mappings":";;;;;;;;;;;;;;AAgBY,MAAC,KAAK,GAAG,OAAO;AACrB,SAAS,QAAQ,CAAC,GAAG,EAAE;AAC9B,EAAE,MAAM,GAAG,GAAG,EAAE,CAAC;AACjB,EAAE,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;AACvC,IAAI,IAAI,GAAG,CAAC,CAAC,CA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,CAAC;AACjB,EAAE,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE;AAC1B,IAAI,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,KAAK,IAAI,GAAG,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;AACnD,GAAG;AACH,EAAE,OAAO,GAAG,CAAC;AACb;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/lib/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const version = "0.0.20211231";
1
+ export declare const version = "0.0.20220104";
package/lib/version.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const version = "0.0.20211231";
5
+ const version = "0.0.20220104";
6
6
 
7
7
  exports.version = version;
8
8
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sources":["../../../packages/element-plus/version.ts"],"sourcesContent":["export const version = '0.0.20211231'\n"],"names":[],"mappings":";;;;AAAY,MAAC,OAAO,GAAG;;;;"}
1
+ {"version":3,"file":"version.js","sources":["../../../packages/element-plus/version.ts"],"sourcesContent":["export const version = '0.0.20220104'\n"],"names":[],"mappings":";;;;AAAY,MAAC,OAAO,GAAG;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@element-plus/nightly",
3
- "version": "0.0.20211231",
3
+ "version": "0.0.20220104",
4
4
  "description": "A Component Library for Vue 3",
5
5
  "homepage": "https://element-plus.org/",
6
6
  "keywords": [
@@ -71,5 +71,5 @@
71
71
  "not ie 11",
72
72
  "not op_mini all"
73
73
  ],
74
- "gitHead": "f3b0e95f428ba0091308090369109e1a525d9539"
74
+ "gitHead": "f793979b1f8962a87c2a03e8c37c536e788109b2"
75
75
  }
package/tags.json CHANGED
@@ -1 +1 @@
1
- {"el-affix":{"attributes":["offset","position","target","z-index","change","scroll"],"description":"Fix the element to a specific visible area.\n\n[Docs](https://element-plus.org/en-US/component/affix.html#affix)"},"el-alert":{"attributes":["title","type","description","closable","center","close-text","show-icon","effect","close"],"description":"Displays important alert messages.\n\n[Docs](https://element-plus.org/en-US/component/alert.html#alert)"},"el-avatar":{"attributes":["icon","size","shape","src","src-set","alt","fit","error"],"description":"Avatars can be used to represent people or objects. It supports images, Icons, or characters.\n\n[Docs](https://element-plus.org/en-US/component/avatar.html#avatar)"},"el-backtop":{"attributes":["target","visibility-height","right","bottom","click"],"description":"A button to back to top\n\n[Docs](https://element-plus.org/en-US/component/backtop.html#backtop)"},"el-badge":{"attributes":["value","max","is-dot","hidden","type"],"description":"A number or status mark on buttons and icons.\n\n[Docs](https://element-plus.org/en-US/component/badge.html#badge)"},"el-breadcrumb":{"attributes":["separator","separator-class"],"subtags":["el-breadcrumb-item"],"description":"Displays the location of the current page, making it easier to browser back.\n\n[Docs](https://element-plus.org/en-US/component/breadcrumb.html#breadcrumb)"},"el-breadcrumb-item":{"attributes":["to","replace"],"description":"[Docs](https://element-plus.org/en-US/component/breadcrumb.html#breadcrumb-item)"},"el-button":{"attributes":["auto-insert-space"],"description":"[Docs](https://element-plus.org/en-US/component/config-provider.html#button)"},"el-button-group":{"attributes":["size","type"],"subtags":["el-button"],"description":"[Docs](https://element-plus.org/en-US/component/button.html#button-group)"},"el-calendar":{"attributes":["model-value","range"],"description":"Display date.\n\n[Docs](https://element-plus.org/en-US/component/calendar.html#calendar)"},"el-card":{"attributes":["header","body-style","shadow"],"description":"Integrate information in a card container.\n\n[Docs](https://element-plus.org/en-US/component/card.html#card)"},"el-carousel":{"attributes":["height","initial-index","trigger","autoplay","interval","indicator-position","arrow","type","loop","direction","pause-on-hover","change"],"subtags":["el-carousel-item"],"description":"Loop a series of images or texts in a limited space\n\n[Docs](https://element-plus.org/en-US/component/carousel.html#carousel)"},"el-carousel-item":{"attributes":["name","label"],"description":"[Docs](https://element-plus.org/en-US/component/carousel.html#carousel-item)"},"el-cascader":{"attributes":["model-value","options","props","size","placeholder","disabled","clearable","show-all-levels","collapse-tags","separator","filterable","filter-method","debounce","before-filter","popper-class","popper-append-to-body","change","expand-change","blur","focus","visible-change","remove-tag"],"description":"If the options have a clear hierarchical structure, Cascader can be used to view and select them.\n\n[Docs](https://element-plus.org/en-US/component/cascader.html#cascader)"},"el-cascader-panel":{"attributes":["model-value","options","props","change","expand-change"],"description":"[Docs](https://element-plus.org/en-US/component/cascader.html#cascaderpanel)"},"el-checkbox":{"attributes":["model-value","label","true-label","false-label","disabled","border","size","name","checked","indeterminate","change"],"description":"A group of options for multiple choices.\n\n[Docs](https://element-plus.org/en-US/component/checkbox.html#checkbox)"},"el-checkbox-group":{"attributes":["model-value","size","disabled","min","max","text-color","fill","change"],"subtags":["el-checkbox","el-checkbox-button"],"description":"[Docs](https://element-plus.org/en-US/component/checkbox.html#checkbox-group)"},"el-checkbox-button":{"attributes":["label","true-label","false-label","disabled","name","checked"],"description":"[Docs](https://element-plus.org/en-US/component/checkbox.html#checkbox-button)"},"el-collapse":{"attributes":["model-value","accordion","change"],"subtags":["el-collapse-item"],"description":"Use Collapse to store contents.\n\n[Docs](https://element-plus.org/en-US/component/collapse.html#collapse)"},"el-collapse-item":{"attributes":["name","title","disabled"],"description":"[Docs](https://element-plus.org/en-US/component/collapse.html#collapse-item)"},"el-color-picker":{"attributes":["model-value","disabled","size","show-alpha","color-format","popper-class","predefine","change","active-change"],"description":"ColorPicker is a color selector supporting multiple color formats.\n\n[Docs](https://element-plus.org/en-US/component/color-picker.html#colorpicker)"},"el-config-provider":{"description":"[Docs](https://element-plus.org/en-US/component/config-provider.html#configprovider)"},"el-container":{"attributes":["direction"],"subtags":["el-container","el-header","el-aside","el-main","el-footer"],"description":"Container components for scaffolding basic structure of the page:\n\n[Docs](https://element-plus.org/en-US/component/container.html#container)"},"el-header":{"attributes":["height"],"description":"[Docs](https://element-plus.org/en-US/component/container.html#header)"},"el-aside":{"attributes":["width"],"description":"[Docs](https://element-plus.org/en-US/component/container.html#aside)"},"el-main":{"description":"[Docs](https://element-plus.org/en-US/component/container.html#main)"},"el-footer":{"attributes":["height"],"description":"[Docs](https://element-plus.org/en-US/component/container.html#footer)"},"el-date-picker":{"attributes":["model-value","readonly","disabled","size","editable","clearable","placeholder","start-placeholder","end-placeholder","type","format","popper-class","range-separator","default-value","default-time","value-format","id","name","unlink-panels","prefix-icon","clear-icon","validate-event","disabled-date","shortcuts","change","blur","focus","calendar-change"],"description":"Use Date Picker for date input.\n\n[Docs](https://element-plus.org/en-US/component/date-picker.html#datepicker)"},"el-descriptions":{"attributes":["border","column","direction","size","title","extra"],"subtags":["el-descriptions-item"],"description":"Display multiple fields in list form.\n\n[Docs](https://element-plus.org/en-US/component/descriptions.html#descriptions)"},"el-descriptions-item":{"attributes":["label","span","width","min-width","align","label-align","class-name","label-class-name"],"description":"[Docs](https://element-plus.org/en-US/component/descriptions.html#descriptions-item)"},"el-dialog":{"attributes":["model-value","title","width","fullscreen","top","modal","append-to-body","lock-scroll","custom-class","open-delay","close-delay","close-on-click-modal","close-on-press-escape","show-close","before-close","center","destroy-on-close","open","opened","close","closed"],"description":"Informs users while preserving the current page state.\n\n[Docs](https://element-plus.org/en-US/component/dialog.html#dialog)"},"el-divider":{"attributes":["direction","border-style","content-position"],"description":"The dividing line that separates the content.\n\n[Docs](https://element-plus.org/en-US/component/divider.html#divider)"},"el-drawer":{"attributes":["model-value","append-to-body","lock-scroll","before-close","close-on-click-modal","close-on-press-escape","open-delay","close-delay","custom-class","destroy-on-close","modal","direction","show-close","size","title","with-header","modal-class","z-index","open","opened","close","closed"],"description":"Sometimes, `Dialog` does not always satisfy our requirements, let's say you have a massive form, or you need space to display something like `terms & conditions`, `Drawer` has almost identical API with `Dialog`, but it introduces different user experience.\n\n[Docs](https://element-plus.org/en-US/component/drawer.html#drawer)"},"el-dropdown":{"attributes":["type","size","max-height","split-button","disabled","placement","trigger","hide-on-click","show-timeout","hide-timeout","tabindex","popper-class","click","command","visible-change"],"subtags":["el-dropdown-menu"],"description":"Toggleable menu for displaying lists of links and actions.\n\n[Docs](https://element-plus.org/en-US/component/dropdown.html#dropdown)"},"el-dropdown-menu":{"subtags":["el-dropdown-item"],"description":"[Docs](https://element-plus.org/en-US/component/dropdown.html#dropdown-menu)"},"el-dropdown-item":{"attributes":["command","disabled","divided","icon"],"description":"[Docs](https://element-plus.org/en-US/component/dropdown.html#dropdown-item)"},"el-empty":{"attributes":["image","image-size","description"],"description":"Placeholder hints for empty states.\n\n[Docs](https://element-plus.org/en-US/component/empty.html#empty)"},"el-form":{"attributes":["model","rules","inline","label-position","label-width","label-suffix","hide-required-asterisk","show-message","inline-message","status-icon","validate-on-rule-change","size","disabled","validate"],"subtags":["el-form-item"],"description":"Form consists of `input`, `radio`, `select`, `checkbox` and so on. With form, you can collect, verify and submit data.\n\n[Docs](https://element-plus.org/en-US/component/form.html#form)"},"el-form-item":{"attributes":["prop","label","label-width","required","rules","error","show-message","inline-message","size"],"description":"[Docs](https://element-plus.org/en-US/component/form.html#form-item)"},"el-icon":{"attributes":["color","size"],"description":"Element Plus provides a set of common icons.\n\n[Docs](https://element-plus.org/en-US/component/icon.html#icon)"},"el-image":{"attributes":["alt","fit","hide-on-click-modal","initial-index","lazy","preview-src-list","referrer-policy","src","scroll-container","z-index","load","error"],"description":"Besides the native features of img, support lazy load, custom placeholder and load failure, etc.\n\n[Docs](https://element-plus.org/en-US/component/image.html#image)"},"el-image-viewer":{"attributes":["url-list","z-index","initial-index","infinite","hide-on-click-modal","append-to-body"],"description":"[Docs](https://element-plus.org/en-US/component/image.html#imageviewer)"},"el-input-number":{"attributes":["model-value","min","max","step","step-strictly","precision","size","disabled","controls","controls-position","name","label","placeholder","change","blur","focus"],"description":"Input numerical values with a customizable range.\n\n[Docs](https://element-plus.org/en-US/component/input-number.html#input-number)"},"el-input":{"attributes":["type","model-value","maxlength","minlength","show-word-limit","placeholder","clearable","show-password","disabled","size","prefix-icon","suffix-icon","rows","autosize","autocomplete","name","readonly","max","min","step","resize","autofocus","form","label","tabindex","validate-event","input-style","blur","focus","change","input","clear"],"description":"Input data using mouse or keyboard.\n\n[Docs](https://element-plus.org/en-US/component/input.html#input)"},"el-autocomplete":{"attributes":["placeholder","clearable","disabled","value-key","icon","model-value","debounce","placement","fetch-suggestions","popper-class","trigger-on-focus","name","select-when-unmatched","label","prefix-icon","suffix-icon","hide-loading","popper-append-to-body","highlight-first-item","select","change"],"description":"You can get some recommended tips based on the current input.\n\n[Docs](https://element-plus.org/en-US/component/input.html#autocomplete)"},"el-row":{"attributes":["gutter","justify","align","tag"],"subtags":["el-col"],"description":"[Docs](https://element-plus.org/en-US/component/layout.html#row)"},"el-col":{"attributes":["span","offset","push","pull","xs","sm","md","lg","xl","tag"],"description":"[Docs](https://element-plus.org/en-US/component/layout.html#col)"},"el-link":{"attributes":["type","underline","disabled","href","icon"],"description":"Text hyperlink\n\n[Docs](https://element-plus.org/en-US/component/link.html#link)"},"el-menu":{"attributes":["mode","collapse","ellipsis","background-color","text-color","active-text-color","default-active","default-openeds","unique-opened","menu-trigger","router","collapse-transition","select","open","close"],"subtags":["el-sub-menu","el-menu-item","el-menu-item-group"],"description":"Menu that provides navigation for your website.\n\n[Docs](https://element-plus.org/en-US/component/menu.html#menu)"},"el-sub-menu":{"attributes":["index","popper-class","show-timeout","hide-timeout","disabled","popper-append-to-body"],"subtags":["el-sub-menu","el-menu-item","el-menu-item-group"],"description":"[Docs](https://element-plus.org/en-US/component/menu.html#submenu)"},"el-menu-item":{"attributes":["index","route","disabled","click"],"description":"[Docs](https://element-plus.org/en-US/component/menu.html#menu-item)"},"el-menu-item-group":{"attributes":["title"],"subtags":["el-menu-item"],"description":"[Docs](https://element-plus.org/en-US/component/menu.html#menu-item-group)"},"el-page-header":{"attributes":["icon","title","content","back"],"description":"If path of the page is simple, it is recommended to use PageHeader instead of the Breadcrumb.\n\n[Docs](https://element-plus.org/en-US/component/page-header.html#page-header)"},"el-pagination":{"attributes":["small","background","page-size","default-page-size","total","page-count","pager-count","current-page","default-current-page","layout","page-sizes","popper-class","prev-text","next-text","disabled","hide-on-single-page","size-change","current-change","prev-click","next-click"],"description":"If you have too much data to display in one page, use pagination.\n\n[Docs](https://element-plus.org/en-US/component/pagination.html#pagination)"},"el-popconfirm":{"attributes":["title","confirm-button-text","cancel-button-text","confirm-button-type","cancel-button-type","icon","icon-color","hide-icon","confirm","cancel"],"description":"A simple confirmation dialog of an element click action.\n\n[Docs](https://element-plus.org/en-US/component/popconfirm.html#popconfirm)"},"el-popover":{"attributes":["trigger","title","content","width","placement","disabled","visible","offset","transition","show-arrow","popper-options","popper-class","show-after","hide-after","auto-close","tabindex","show","after-enter","hide","after-leave"],"description":"[Docs](https://element-plus.org/en-US/component/popover.html#popover)"},"el-progress":{"attributes":["percentage","type","stroke-width","text-inside","status","indeterminate","duration","color","width","show-text","stroke-linecap","format"],"description":"Progress is used to show the progress of current operation, and inform the user the current status.\n\n[Docs](https://element-plus.org/en-US/component/progress.html#progress)"},"el-radio":{"attributes":["model-value","label","disabled","border","size","name","change"],"description":"Single selection among multiple options.\n\n[Docs](https://element-plus.org/en-US/component/radio.html#radio)"},"el-radio-group":{"attributes":["model-value","size","disabled","text-color","fill","change"],"subtags":["el-radio","el-radio-button"],"description":"[Docs](https://element-plus.org/en-US/component/radio.html#radio-group)"},"el-radio-button":{"attributes":["label","disabled","name"],"description":"[Docs](https://element-plus.org/en-US/component/radio.html#radio-button)"},"el-rate":{"attributes":["model-value","max","disabled","allow-half","low-threshold","high-threshold","colors","void-color","disabled-void-color","icons","void-icon","disabled-void-icon","show-text","show-score","text-color","texts","score-template","change"],"description":"Used for rating\n\n[Docs](https://element-plus.org/en-US/component/rate.html#rate)"},"el-result":{"attributes":["title","sub-title","icon"],"description":"Used to give feedback on the result of user's operation or access exception.\n\n[Docs](https://element-plus.org/en-US/component/result.html#result)"},"el-scrollbar":{"attributes":["height","max-height","native","wrap-style","wrap-class","view-style","view-class","noresize","tag","always","min-size","scroll"],"description":"Used to replace the browser's native scrollbar.\n\n[Docs](https://element-plus.org/en-US/component/scrollbar.html#scrollbar)"},"el-select-v2":{"attributes":["change","visible-change","remove-tag","clear","blur","focus"],"description":"[Docs](https://element-plus.org/en-US/component/select-v2.html#selectv2)"},"el-select":{"attributes":["model-value","multiple","disabled","value-key","size","clearable","collapse-tags","multiple-limit","name","autocomplete","placeholder","filterable","allow-create","filter-method","remote","remote-method","loading","loading-text","no-match-text","no-data-text","popper-class","reserve-keyword","default-first-option","popper-append-to-body","automatic-dropdown","clear-icon","fit-input-width","suffix-icon","tag-type","change","visible-change","remove-tag","clear","blur","focus"],"subtags":["el-option-group","el-option"],"description":"When there are plenty of options, use a drop-down menu to display and select desired ones.\n\n[Docs](https://element-plus.org/en-US/component/select.html#select)"},"el-option-group":{"attributes":["label","disabled"],"subtags":["el-option"],"description":"[Docs](https://element-plus.org/en-US/component/select.html#option-group)"},"el-option":{"attributes":["value","label","disabled"],"description":"[Docs](https://element-plus.org/en-US/component/select.html#option)"},"el-skeleton":{"attributes":["animated","count","loading","rows","throttle"],"description":"When loading data, and you need a rich experience for visual and interactions for your end users, you can choose `skeleton`.\n\n[Docs](https://element-plus.org/en-US/component/skeleton.html#skeleton)"},"el-skeleton-item":{"attributes":["variant"],"description":"[Docs](https://element-plus.org/en-US/component/skeleton.html#skeleton-item)"},"el-slider":{"attributes":["model-value","min","max","disabled","step","show-input","show-input-controls","input-size","show-stops","show-tooltip","format-tooltip","range","vertical","height","label","debounce","tooltip-class","marks","change","input"],"description":"Drag the slider within a fixed range.\n\n[Docs](https://element-plus.org/en-US/component/slider.html#slider)"},"el-space":{"attributes":["alignment","class","direction","prefix-cls","style","spacer","size","wrap","fill","fill-ratio"],"description":"Even though we have [Divider]\n\n[Docs](https://element-plus.org/en-US/component/space.html#space)"},"el-steps":{"attributes":["space","direction","active","process-status","finish-status","align-center","simple"],"subtags":["el-step"],"description":"Guide the user to complete tasks in accordance with the process. Its steps can be set according to the actual application scenario and the number of the steps can't be less than 2.\n\n[Docs](https://element-plus.org/en-US/component/steps.html#steps)"},"el-step":{"attributes":["title","description","icon","status"],"description":"[Docs](https://element-plus.org/en-US/component/steps.html#step)"},"el-switch":{"attributes":["model-value","disabled","loading","width","inline-prompt","active-icon","inactive-icon","active-text","inactive-text","active-value","inactive-value","active-color","inactive-color","border-color","name","validate-event","before-change","change"],"description":"Switch is used for switching between two opposing states.\n\n[Docs](https://element-plus.org/en-US/component/switch.html#switch)"},"el-table":{"attributes":["data","height","max-height","stripe","border","size","fit","show-header","highlight-current-row","current-row-key","row-class-name","row-style","cell-class-name","cell-style","header-row-class-name","header-row-style","header-cell-class-name","header-cell-style","row-key","empty-text","default-expand-all","expand-row-keys","default-sort","tooltip-effect","show-summary","sum-text","summary-method","span-method","select-on-indeterminate","indent","lazy","load","tree-props","select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-click","cell-dblclick","cell-contextmenu","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change"],"subtags":["el-table-column"],"description":"Display multiple data with similar format. You can sort, filter, compare your data in a table.\n\n[Docs](https://element-plus.org/en-US/component/table.html#table)"},"el-table-column":{"attributes":["type","index","label","column-key","prop","width","min-width","fixed","render-header","sortable","sort-method","sort-by","sort-orders","resizable","formatter","show-overflow-tooltip","align","header-align","class-name","label-class-name","selectable","reserve-selection","filters","filter-placement","filter-multiple","filter-method","filtered-value"],"description":"[Docs](https://element-plus.org/en-US/component/table.html#table-column)"},"el-tabs":{"attributes":["model-value","type","closable","addable","editable","tab-position","stretch","before-leave","tab-click","tab-remove","tab-add","edit"],"subtags":["el-tab-pane"],"description":"Divide data collections which are related yet belong to different types.\n\n[Docs](https://element-plus.org/en-US/component/tabs.html#tabs)"},"el-tab-pane":{"attributes":["label","disabled","name","closable","lazy"],"description":"[Docs](https://element-plus.org/en-US/component/tabs.html#tab-pane)"},"el-check-tag":{"attributes":["checked","change"],"description":"[Docs](https://element-plus.org/en-US/component/tag.html#checktag)"},"el-tag":{"attributes":["type","closable","disable-transitions","hit","color","size","effect","click","close"],"description":"Used for marking and selection.\n\n[Docs](https://element-plus.org/en-US/component/tag.html#tag)"},"el-time-picker":{"attributes":["model-value","readonly","disabled","editable","clearable","size","placeholder","start-placeholder","end-placeholder","is-range","arrow-control","align","popper-class","range-separator","format","default-value","id","name","prefix-icon","clear-icon","disabled-hours","disabled-minutes","disabled-seconds","change","blur","focus"],"description":"Use Time Picker for time input.\n\n[Docs](https://element-plus.org/en-US/component/time-picker.html#timepicker)"},"el-time-select":{"attributes":["model-value","disabled","editable","clearable","size","placeholder","name","prefix-icon","clear-icon","start","end","step","min-time","max-time","change","blur","focus"],"description":"Use Time Select for time input.\n\n[Docs](https://element-plus.org/en-US/component/time-select.html#timeselect)"},"el-timeline":{"subtags":["el-timeline-item"],"description":"Visually display timeline.\n\n[Docs](https://element-plus.org/en-US/component/timeline.html#timeline)"},"el-timeline-item":{"attributes":["timestamp","hide-timestamp","center","placement","type","color","size","icon","hollow"],"description":"[Docs](https://element-plus.org/en-US/component/timeline.html#timeline-item)"},"el-tooltip":{"attributes":["append-to-body","effect","content","placement","fallback-placements","model-value","disabled","offset","transition","visible-arrow","popper-options","show-after","hide-after","auto-close","manual","popper-class","enterable","tabindex"],"description":"Display prompt information for mouse hover.\n\n[Docs](https://element-plus.org/en-US/component/tooltip.html#tooltip)"},"el-transfer":{"attributes":["model-value","data","filterable","filter-placeholder","filter-method","target-order","titles","button-texts","render-content","format","props","left-default-checked","right-default-checked","change","left-check-change","right-check-change"],"description":"[Docs](https://element-plus.org/en-US/component/transfer.html#transfer)"},"el-<el-badge-value=\"beta\">tree-v2-virtualized-tree</el-badge>":{"attributes":["data","empty-text","props","highlight-current","expand-on-click-node","check-on-click-node","default-expanded-keys","show-checkbox","check-strictly","default-checked-keys","current-node-key","filter-method","indent","icon","node-click","node-contextmenu","check-change","check","current-change","node-expand","node-collapse"],"description":"Tree view with blazing fast scrolling performance for any amount of data\n\n[Docs](https://element-plus.org/en-US/component/tree-v2.html#<elbadge-value=\"beta\">tree-v2-virtualized-tree</elbadge>)"},"el-tree":{"attributes":["data","empty-text","node-key","props","render-after-expand","load","render-content","highlight-current","default-expand-all","expand-on-click-node","check-on-click-node","auto-expand-parent","default-expanded-keys","show-checkbox","check-strictly","default-checked-keys","current-node-key","filter-node-method","accordion","indent","icon","lazy","draggable","allow-drag","allow-drop","node-click","node-contextmenu","check-change","check","current-change","node-expand","node-collapse","node-drag-start","node-drag-enter","node-drag-leave","node-drag-over","node-drag-end","node-drop"],"description":"Display a set of data with hierarchies.\n\n[Docs](https://element-plus.org/en-US/component/tree.html#tree)"},"el-upload":{"attributes":["action","headers","method","multiple","data","name","with-credentials","show-file-list","drag","accept","on-preview","on-remove","on-success","on-error","on-progress","on-change","before-upload","before-remove","thumbnail-mode","file-list","list-type","auto-upload","http-request","disabled","limit","on-exceed"],"description":"Upload files by clicking or drag-and-drop\n\n[Docs](https://element-plus.org/en-US/component/upload.html#upload)"}}
1
+ {"el-affix":{"attributes":["offset","position","target","z-index","change","scroll"],"description":"Fix the element to a specific visible area.\n\n[Docs](https://element-plus.org/en-US/component/affix.html#affix)"},"el-alert":{"attributes":["title","type","description","closable","center","close-text","show-icon","effect","close"],"description":"Displays important alert messages.\n\n[Docs](https://element-plus.org/en-US/component/alert.html#alert)"},"el-avatar":{"attributes":["icon","size","shape","src","src-set","alt","fit","error"],"description":"Avatars can be used to represent people or objects. It supports images, Icons, or characters.\n\n[Docs](https://element-plus.org/en-US/component/avatar.html#avatar)"},"el-backtop":{"attributes":["target","visibility-height","right","bottom","click"],"description":"A button to back to top\n\n[Docs](https://element-plus.org/en-US/component/backtop.html#backtop)"},"el-badge":{"attributes":["value","max","is-dot","hidden","type"],"description":"A number or status mark on buttons and icons.\n\n[Docs](https://element-plus.org/en-US/component/badge.html#badge)"},"el-breadcrumb":{"attributes":["separator","separator-class"],"subtags":["el-breadcrumb-item"],"description":"Displays the location of the current page, making it easier to browser back.\n\n[Docs](https://element-plus.org/en-US/component/breadcrumb.html#breadcrumb)"},"el-breadcrumb-item":{"attributes":["to","replace"],"description":"[Docs](https://element-plus.org/en-US/component/breadcrumb.html#breadcrumb-item)"},"el-button":{"attributes":["auto-insert-space"],"description":"[Docs](https://element-plus.org/en-US/component/config-provider.html#button)"},"el-button-group":{"attributes":["size","type"],"subtags":["el-button"],"description":"[Docs](https://element-plus.org/en-US/component/button.html#button-group)"},"el-calendar":{"attributes":["model-value","range"],"description":"Display date.\n\n[Docs](https://element-plus.org/en-US/component/calendar.html#calendar)"},"el-card":{"attributes":["header","body-style","shadow"],"description":"Integrate information in a card container.\n\n[Docs](https://element-plus.org/en-US/component/card.html#card)"},"el-carousel":{"attributes":["height","initial-index","trigger","autoplay","interval","indicator-position","arrow","type","loop","direction","pause-on-hover","change"],"subtags":["el-carousel-item"],"description":"Loop a series of images or texts in a limited space\n\n[Docs](https://element-plus.org/en-US/component/carousel.html#carousel)"},"el-carousel-item":{"attributes":["name","label"],"description":"[Docs](https://element-plus.org/en-US/component/carousel.html#carousel-item)"},"el-cascader":{"attributes":["model-value","options","props","size","placeholder","disabled","clearable","show-all-levels","collapse-tags","separator","filterable","filter-method","debounce","before-filter","popper-class","popper-append-to-body","change","expand-change","blur","focus","visible-change","remove-tag"],"description":"If the options have a clear hierarchical structure, Cascader can be used to view and select them.\n\n[Docs](https://element-plus.org/en-US/component/cascader.html#cascader)"},"el-cascader-panel":{"attributes":["model-value","options","props","change","expand-change"],"description":"[Docs](https://element-plus.org/en-US/component/cascader.html#cascaderpanel)"},"el-checkbox":{"attributes":["model-value","label","true-label","false-label","disabled","border","size","name","checked","indeterminate","change"],"description":"A group of options for multiple choices.\n\n[Docs](https://element-plus.org/en-US/component/checkbox.html#checkbox)"},"el-checkbox-group":{"attributes":["model-value","size","disabled","min","max","text-color","fill","change"],"subtags":["el-checkbox","el-checkbox-button"],"description":"[Docs](https://element-plus.org/en-US/component/checkbox.html#checkbox-group)"},"el-checkbox-button":{"attributes":["label","true-label","false-label","disabled","name","checked"],"description":"[Docs](https://element-plus.org/en-US/component/checkbox.html#checkbox-button)"},"el-collapse":{"attributes":["model-value","accordion","change"],"subtags":["el-collapse-item"],"description":"Use Collapse to store contents.\n\n[Docs](https://element-plus.org/en-US/component/collapse.html#collapse)"},"el-collapse-item":{"attributes":["name","title","disabled"],"description":"[Docs](https://element-plus.org/en-US/component/collapse.html#collapse-item)"},"el-color-picker":{"attributes":["model-value","disabled","size","show-alpha","color-format","popper-class","predefine","change","active-change"],"description":"ColorPicker is a color selector supporting multiple color formats.\n\n[Docs](https://element-plus.org/en-US/component/color-picker.html#colorpicker)"},"el-config-provider":{"description":"[Docs](https://element-plus.org/en-US/component/config-provider.html#configprovider)"},"el-container":{"attributes":["direction"],"subtags":["el-container","el-header","el-aside","el-main","el-footer"],"description":"Container components for scaffolding basic structure of the page:\n\n[Docs](https://element-plus.org/en-US/component/container.html#container)"},"el-header":{"attributes":["height"],"description":"[Docs](https://element-plus.org/en-US/component/container.html#header)"},"el-aside":{"attributes":["width"],"description":"[Docs](https://element-plus.org/en-US/component/container.html#aside)"},"el-main":{"description":"[Docs](https://element-plus.org/en-US/component/container.html#main)"},"el-footer":{"attributes":["height"],"description":"[Docs](https://element-plus.org/en-US/component/container.html#footer)"},"el-date-picker":{"attributes":["model-value","readonly","disabled","size","editable","clearable","placeholder","start-placeholder","end-placeholder","type","format","popper-class","range-separator","default-value","default-time","value-format","id","name","unlink-panels","prefix-icon","clear-icon","validate-event","disabled-date","shortcuts","change","blur","focus","calendar-change"],"description":"Use Date Picker for date input.\n\n[Docs](https://element-plus.org/en-US/component/date-picker.html#datepicker)"},"el-descriptions":{"attributes":["border","column","direction","size","title","extra"],"subtags":["el-descriptions-item"],"description":"Display multiple fields in list form.\n\n[Docs](https://element-plus.org/en-US/component/descriptions.html#descriptions)"},"el-descriptions-item":{"attributes":["label","span","width","min-width","align","label-align","class-name","label-class-name"],"description":"[Docs](https://element-plus.org/en-US/component/descriptions.html#descriptions-item)"},"el-dialog":{"attributes":["model-value","title","width","fullscreen","top","modal","append-to-body","lock-scroll","custom-class","open-delay","close-delay","close-on-click-modal","close-on-press-escape","show-close","before-close","center","destroy-on-close","open","opened","close","closed"],"description":"Informs users while preserving the current page state.\n\n[Docs](https://element-plus.org/en-US/component/dialog.html#dialog)"},"el-divider":{"attributes":["direction","border-style","content-position"],"description":"The dividing line that separates the content.\n\n[Docs](https://element-plus.org/en-US/component/divider.html#divider)"},"el-drawer":{"attributes":["model-value","append-to-body","lock-scroll","before-close","close-on-click-modal","close-on-press-escape","open-delay","close-delay","custom-class","destroy-on-close","modal","direction","show-close","size","title","with-header","modal-class","z-index","open","opened","close","closed"],"description":"Sometimes, `Dialog` does not always satisfy our requirements, let's say you have a massive form, or you need space to display something like `terms & conditions`, `Drawer` has almost identical API with `Dialog`, but it introduces different user experience.\n\n[Docs](https://element-plus.org/en-US/component/drawer.html#drawer)"},"el-dropdown":{"attributes":["type","size","max-height","split-button","disabled","placement","trigger","hide-on-click","show-timeout","hide-timeout","tabindex","popper-class","click","command","visible-change"],"subtags":["el-dropdown-menu"],"description":"Toggleable menu for displaying lists of links and actions.\n\n[Docs](https://element-plus.org/en-US/component/dropdown.html#dropdown)"},"el-dropdown-menu":{"subtags":["el-dropdown-item"],"description":"[Docs](https://element-plus.org/en-US/component/dropdown.html#dropdown-menu)"},"el-dropdown-item":{"attributes":["command","disabled","divided","icon"],"description":"[Docs](https://element-plus.org/en-US/component/dropdown.html#dropdown-item)"},"el-empty":{"attributes":["image","image-size","description"],"description":"Placeholder hints for empty states.\n\n[Docs](https://element-plus.org/en-US/component/empty.html#empty)"},"el-form":{"attributes":["model","rules","inline","label-position","label-width","label-suffix","hide-required-asterisk","show-message","inline-message","status-icon","validate-on-rule-change","size","disabled","validate"],"subtags":["el-form-item"],"description":"Form consists of `input`, `radio`, `select`, `checkbox` and so on. With form, you can collect, verify and submit data.\n\n[Docs](https://element-plus.org/en-US/component/form.html#form)"},"el-form-item":{"attributes":["prop","label","label-width","required","rules","error","show-message","inline-message","size"],"description":"[Docs](https://element-plus.org/en-US/component/form.html#form-item)"},"el-icon":{"attributes":["color","size"],"description":"Element Plus provides a set of common icons.\n\n[Docs](https://element-plus.org/en-US/component/icon.html#icon)"},"el-image":{"attributes":["alt","fit","hide-on-click-modal","initial-index","lazy","preview-src-list","referrer-policy","src","scroll-container","z-index","load","error"],"description":"Besides the native features of img, support lazy load, custom placeholder and load failure, etc.\n\n[Docs](https://element-plus.org/en-US/component/image.html#image)"},"el-image-viewer":{"attributes":["url-list","z-index","initial-index","infinite","hide-on-click-modal","append-to-body"],"description":"[Docs](https://element-plus.org/en-US/component/image.html#imageviewer)"},"el-input-number":{"attributes":["model-value","min","max","step","step-strictly","precision","size","disabled","controls","controls-position","name","label","placeholder","change","blur","focus"],"description":"Input numerical values with a customizable range.\n\n[Docs](https://element-plus.org/en-US/component/input-number.html#input-number)"},"el-input":{"attributes":["type","model-value","maxlength","minlength","show-word-limit","placeholder","clearable","show-password","disabled","size","prefix-icon","suffix-icon","rows","autosize","autocomplete","name","readonly","max","min","step","resize","autofocus","form","label","tabindex","validate-event","input-style","blur","focus","change","input","clear"],"description":"Input data using mouse or keyboard.\n\n[Docs](https://element-plus.org/en-US/component/input.html#input)"},"el-autocomplete":{"attributes":["placeholder","clearable","disabled","value-key","icon","model-value","debounce","placement","fetch-suggestions","popper-class","trigger-on-focus","name","select-when-unmatched","label","prefix-icon","suffix-icon","hide-loading","popper-append-to-body","highlight-first-item","select","change"],"description":"You can get some recommended tips based on the current input.\n\n[Docs](https://element-plus.org/en-US/component/input.html#autocomplete)"},"el-row":{"attributes":["gutter","justify","align","tag"],"subtags":["el-col"],"description":"[Docs](https://element-plus.org/en-US/component/layout.html#row)"},"el-col":{"attributes":["span","offset","push","pull","xs","sm","md","lg","xl","tag"],"description":"[Docs](https://element-plus.org/en-US/component/layout.html#col)"},"el-link":{"attributes":["type","underline","disabled","href","icon"],"description":"Text hyperlink\n\n[Docs](https://element-plus.org/en-US/component/link.html#link)"},"el-menu":{"attributes":["mode","collapse","ellipsis","background-color","text-color","active-text-color","default-active","default-openeds","unique-opened","menu-trigger","router","collapse-transition","select","open","close"],"subtags":["el-sub-menu","el-menu-item","el-menu-item-group"],"description":"Menu that provides navigation for your website.\n\n[Docs](https://element-plus.org/en-US/component/menu.html#menu)"},"el-sub-menu":{"attributes":["index","popper-class","show-timeout","hide-timeout","disabled","popper-append-to-body"],"subtags":["el-sub-menu","el-menu-item","el-menu-item-group"],"description":"[Docs](https://element-plus.org/en-US/component/menu.html#submenu)"},"el-menu-item":{"attributes":["index","route","disabled","click"],"description":"[Docs](https://element-plus.org/en-US/component/menu.html#menu-item)"},"el-menu-item-group":{"attributes":["title"],"subtags":["el-menu-item"],"description":"[Docs](https://element-plus.org/en-US/component/menu.html#menu-item-group)"},"el-page-header":{"attributes":["icon","title","content","back"],"description":"If path of the page is simple, it is recommended to use PageHeader instead of the Breadcrumb.\n\n[Docs](https://element-plus.org/en-US/component/page-header.html#page-header)"},"el-pagination":{"attributes":["small","background","page-size","default-page-size","total","page-count","pager-count","current-page","default-current-page","layout","page-sizes","popper-class","prev-text","next-text","disabled","hide-on-single-page","size-change","current-change","prev-click","next-click"],"description":"If you have too much data to display in one page, use pagination.\n\n[Docs](https://element-plus.org/en-US/component/pagination.html#pagination)"},"el-popconfirm":{"attributes":["title","confirm-button-text","cancel-button-text","confirm-button-type","cancel-button-type","icon","icon-color","hide-icon","confirm","cancel"],"description":"A simple confirmation dialog of an element click action.\n\n[Docs](https://element-plus.org/en-US/component/popconfirm.html#popconfirm)"},"el-popover":{"attributes":["trigger","title","content","width","placement","disabled","visible","offset","transition","show-arrow","popper-options","popper-class","show-after","hide-after","auto-close","tabindex","show","after-enter","hide","after-leave"],"description":"[Docs](https://element-plus.org/en-US/component/popover.html#popover)"},"el-progress":{"attributes":["percentage","type","stroke-width","text-inside","status","indeterminate","duration","color","width","show-text","stroke-linecap","format"],"description":"Progress is used to show the progress of current operation, and inform the user the current status.\n\n[Docs](https://element-plus.org/en-US/component/progress.html#progress)"},"el-radio":{"attributes":["model-value","label","disabled","border","size","name","change"],"description":"Single selection among multiple options.\n\n[Docs](https://element-plus.org/en-US/component/radio.html#radio)"},"el-radio-group":{"attributes":["model-value","size","disabled","text-color","fill","change"],"subtags":["el-radio","el-radio-button"],"description":"[Docs](https://element-plus.org/en-US/component/radio.html#radio-group)"},"el-radio-button":{"attributes":["label","disabled","name"],"description":"[Docs](https://element-plus.org/en-US/component/radio.html#radio-button)"},"el-rate":{"attributes":["model-value","max","disabled","allow-half","low-threshold","high-threshold","colors","void-color","disabled-void-color","icons","void-icon","disabled-void-icon","show-text","show-score","text-color","texts","score-template","change"],"description":"Used for rating\n\n[Docs](https://element-plus.org/en-US/component/rate.html#rate)"},"el-result":{"attributes":["title","sub-title","icon"],"description":"Used to give feedback on the result of user's operation or access exception.\n\n[Docs](https://element-plus.org/en-US/component/result.html#result)"},"el-scrollbar":{"attributes":["height","max-height","native","wrap-style","wrap-class","view-style","view-class","noresize","tag","always","min-size","scroll"],"description":"Used to replace the browser's native scrollbar.\n\n[Docs](https://element-plus.org/en-US/component/scrollbar.html#scrollbar)"},"el-select-v2":{"attributes":["change","visible-change","remove-tag","clear","blur","focus"],"description":"[Docs](https://element-plus.org/en-US/component/select-v2.html#selectv2)"},"el-select":{"attributes":["model-value","multiple","disabled","value-key","size","clearable","collapse-tags","multiple-limit","name","autocomplete","placeholder","filterable","allow-create","filter-method","remote","remote-method","loading","loading-text","no-match-text","no-data-text","popper-class","reserve-keyword","default-first-option","popper-append-to-body","automatic-dropdown","clear-icon","fit-input-width","suffix-icon","tag-type","change","visible-change","remove-tag","clear","blur","focus"],"subtags":["el-option-group","el-option"],"description":"When there are plenty of options, use a drop-down menu to display and select desired ones.\n\n[Docs](https://element-plus.org/en-US/component/select.html#select)"},"el-option-group":{"attributes":["label","disabled"],"subtags":["el-option"],"description":"[Docs](https://element-plus.org/en-US/component/select.html#option-group)"},"el-option":{"attributes":["value","label","disabled"],"description":"[Docs](https://element-plus.org/en-US/component/select.html#option)"},"el-skeleton":{"attributes":["animated","count","loading","rows","throttle"],"description":"When loading data, and you need a rich experience for visual and interactions for your end users, you can choose `skeleton`.\n\n[Docs](https://element-plus.org/en-US/component/skeleton.html#skeleton)"},"el-skeleton-item":{"attributes":["variant"],"description":"[Docs](https://element-plus.org/en-US/component/skeleton.html#skeleton-item)"},"el-slider":{"attributes":["model-value","min","max","disabled","step","show-input","show-input-controls","input-size","show-stops","show-tooltip","format-tooltip","range","vertical","height","label","debounce","tooltip-class","marks","change","input"],"description":"Drag the slider within a fixed range.\n\n[Docs](https://element-plus.org/en-US/component/slider.html#slider)"},"el-space":{"attributes":["alignment","class","direction","prefix-cls","style","spacer","size","wrap","fill","fill-ratio"],"description":"Even though we have [Divider]\n\n[Docs](https://element-plus.org/en-US/component/space.html#space)"},"el-steps":{"attributes":["space","direction","active","process-status","finish-status","align-center","simple"],"subtags":["el-step"],"description":"Guide the user to complete tasks in accordance with the process. Its steps can be set according to the actual application scenario and the number of the steps can't be less than 2.\n\n[Docs](https://element-plus.org/en-US/component/steps.html#steps)"},"el-step":{"attributes":["title","description","icon","status"],"description":"[Docs](https://element-plus.org/en-US/component/steps.html#step)"},"el-switch":{"attributes":["model-value","disabled","loading","width","inline-prompt","active-icon","inactive-icon","active-text","inactive-text","active-value","inactive-value","active-color","inactive-color","border-color","name","validate-event","before-change","change"],"description":"Switch is used for switching between two opposing states.\n\n[Docs](https://element-plus.org/en-US/component/switch.html#switch)"},"el-table":{"attributes":["data","height","max-height","stripe","border","size","fit","show-header","highlight-current-row","current-row-key","row-class-name","row-style","cell-class-name","cell-style","header-row-class-name","header-row-style","header-cell-class-name","header-cell-style","row-key","empty-text","default-expand-all","expand-row-keys","default-sort","tooltip-effect","show-summary","sum-text","summary-method","span-method","select-on-indeterminate","indent","lazy","load","tree-props","select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-click","cell-dblclick","cell-contextmenu","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change"],"subtags":["el-table-column"],"description":"Display multiple data with similar format. You can sort, filter, compare your data in a table.\n\n[Docs](https://element-plus.org/en-US/component/table.html#table)"},"el-table-column":{"attributes":["type","index","label","column-key","prop","width","min-width","fixed","render-header","sortable","sort-method","sort-by","sort-orders","resizable","formatter","show-overflow-tooltip","align","header-align","class-name","label-class-name","selectable","reserve-selection","filters","filter-placement","filter-multiple","filter-method","filtered-value"],"description":"[Docs](https://element-plus.org/en-US/component/table.html#table-column)"},"el-tabs":{"attributes":["model-value","type","closable","addable","editable","tab-position","stretch","before-leave","tab-click","tab-remove","tab-add","edit"],"subtags":["el-tab-pane"],"description":"Divide data collections which are related yet belong to different types.\n\n[Docs](https://element-plus.org/en-US/component/tabs.html#tabs)"},"el-tab-pane":{"attributes":["label","disabled","name","closable","lazy"],"description":"[Docs](https://element-plus.org/en-US/component/tabs.html#tab-pane)"},"el-check-tag":{"attributes":["checked","change"],"description":"[Docs](https://element-plus.org/en-US/component/tag.html#checktag)"},"el-tag":{"attributes":["type","closable","disable-transitions","hit","color","size","effect","click","close"],"description":"Used for marking and selection.\n\n[Docs](https://element-plus.org/en-US/component/tag.html#tag)"},"el-time-picker":{"attributes":["model-value","readonly","disabled","editable","clearable","size","placeholder","start-placeholder","end-placeholder","is-range","arrow-control","align","popper-class","range-separator","format","default-value","id","name","prefix-icon","clear-icon","disabled-hours","disabled-minutes","disabled-seconds","change","blur","focus"],"description":"Use Time Picker for time input.\n\n[Docs](https://element-plus.org/en-US/component/time-picker.html#timepicker)"},"el-time-select":{"attributes":["model-value","disabled","editable","clearable","size","placeholder","name","prefix-icon","clear-icon","start","end","step","min-time","max-time","change","blur","focus"],"description":"Use Time Select for time input.\n\n[Docs](https://element-plus.org/en-US/component/time-select.html#timeselect)"},"el-timeline":{"subtags":["el-timeline-item"],"description":"Visually display timeline.\n\n[Docs](https://element-plus.org/en-US/component/timeline.html#timeline)"},"el-timeline-item":{"attributes":["timestamp","hide-timestamp","center","placement","type","color","size","icon","hollow"],"description":"[Docs](https://element-plus.org/en-US/component/timeline.html#timeline-item)"},"el-tooltip":{"attributes":["append-to-body","effect","content","placement","model-value","disabled","offset","transition","visible-arrow","popper-options","show-after","hide-after","auto-close","manual","popper-class","enterable","tabindex"],"description":"Display prompt information for mouse hover.\n\n[Docs](https://element-plus.org/en-US/component/tooltip.html#tooltip)"},"el-transfer":{"attributes":["model-value","data","filterable","filter-placeholder","filter-method","target-order","titles","button-texts","render-content","format","props","left-default-checked","right-default-checked","change","left-check-change","right-check-change"],"description":"[Docs](https://element-plus.org/en-US/component/transfer.html#transfer)"},"el-<el-badge-value=\"beta\">tree-v2-virtualized-tree</el-badge>":{"attributes":["data","empty-text","props","highlight-current","expand-on-click-node","check-on-click-node","default-expanded-keys","show-checkbox","check-strictly","default-checked-keys","current-node-key","filter-method","indent","icon","node-click","node-contextmenu","check-change","check","current-change","node-expand","node-collapse"],"description":"Tree view with blazing fast scrolling performance for any amount of data\n\n[Docs](https://element-plus.org/en-US/component/tree-v2.html#<elbadge-value=\"beta\">tree-v2-virtualized-tree</elbadge>)"},"el-tree":{"attributes":["data","empty-text","node-key","props","render-after-expand","load","render-content","highlight-current","default-expand-all","expand-on-click-node","check-on-click-node","auto-expand-parent","default-expanded-keys","show-checkbox","check-strictly","default-checked-keys","current-node-key","filter-node-method","accordion","indent","icon","lazy","draggable","allow-drag","allow-drop","node-click","node-contextmenu","check-change","check","current-change","node-expand","node-collapse","node-drag-start","node-drag-enter","node-drag-leave","node-drag-over","node-drag-end","node-drop"],"description":"Display a set of data with hierarchies.\n\n[Docs](https://element-plus.org/en-US/component/tree.html#tree)"},"el-upload":{"attributes":["action","headers","method","multiple","data","name","with-credentials","show-file-list","drag","accept","on-preview","on-remove","on-success","on-error","on-progress","on-change","before-upload","before-remove","thumbnail-mode","file-list","list-type","auto-upload","http-request","disabled","limit","on-exceed"],"description":"Upload files by clicking or drag-and-drop\n\n[Docs](https://element-plus.org/en-US/component/upload.html#upload)"}}
@@ -1 +1 @@
1
- :root{--el-color-white:#ffffff;--el-color-black:#000000;--el-color-primary:#409eff;--el-color-primary-light-1:#53a8ff;--el-color-primary-light-2:#66b1ff;--el-color-primary-light-3:#79bbff;--el-color-primary-light-4:#8cc5ff;--el-color-primary-light-5:#a0cfff;--el-color-primary-light-6:#b3d8ff;--el-color-primary-light-7:#c6e2ff;--el-color-primary-light-8:#d9ecff;--el-color-primary-light-9:#ecf5ff;--el-color-success:#67c23a;--el-color-success-light:#e1f3d8;--el-color-success-lighter:#f0f9eb;--el-color-warning:#e6a23c;--el-color-warning-light:#faecd8;--el-color-warning-lighter:#fdf6ec;--el-color-danger:#f56c6c;--el-color-danger-light:#fde2e2;--el-color-danger-lighter:#fef0f0;--el-color-error:#f56c6c;--el-color-error-light:#fde2e2;--el-color-error-lighter:#fef0f0;--el-color-info:#909399;--el-color-info-light:#e9e9eb;--el-color-info-lighter:#f4f4f5;--el-bg-color:#f5f7fa;--el-border-width-base:1px;--el-border-style-base:solid;--el-border-color-hover:var(--el-text-color-placeholder);--el-border-base:var(--el-border-width-base) var(--el-border-style-base) var(--el-border-color-base);--el-svg-monochrome-grey:#dcdde0;--el-fill-base:var(--el-color-white);--el-font-size-extra-large:20px;--el-font-size-large:18px;--el-font-size-medium:16px;--el-font-size-base:14px;--el-font-size-small:13px;--el-font-size-extra-small:12px;--el-font-weight-primary:500;--el-font-line-height-primary:24px;--el-text-color-disabled-base:#bbb;--el-index-normal:1;--el-index-top:1000;--el-index-popper:2000;--el-text-color-primary:#303133;--el-text-color-regular:#606266;--el-text-color-secondary:#909399;--el-text-color-placeholder:#c0c4cc;--el-border-color-base:#dcdfe6;--el-border-color-light:#e4e7ed;--el-border-color-lighter:#ebeef5;--el-border-color-extra-light:#f2f6fc;--el-border-radius-base:4px;--el-border-radius-small:2px;--el-border-radius-round:20px;--el-border-radius-circle:100%;--el-box-shadow-base:0 2px 4px rgba(0, 0, 0, 0.12),0 0 6px rgba(0, 0, 0, 0.04);--el-box-shadow-light:0 2px 12px 0 rgba(0, 0, 0, 0.1);--el-disabled-bg-color:var(--el-bg-color);--el-disabled-text-color:var(--el-text-color-placeholder);--el-disabled-border-color:var(--el-border-color-light);--el-transition-duration:0.3s;--el-transition-duration-fast:0.2s;--el-transition-function-ease-in-out-bezier:cubic-bezier(0.645, 0.045, 0.355, 1);--el-transition-function-fast-bezier:cubic-bezier(0.23, 1, 0.32, 1);--el-transition-all:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);--el-transition-fade:opacity var(--el-transition-duration) var(--el-transition-function-fast-bezier);--el-transition-md-fade:transform var(--el-transition-duration) var(--el-transition-function-fast-bezier),opacity var(--el-transition-duration) var(--el-transition-function-fast-bezier);--el-transition-fade-linear:opacity var(--el-transition-duration-fast) linear;--el-transition-border:border-color var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-transition-color:color var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier)}.fade-in-linear-enter-active,.fade-in-linear-leave-active{transition:var(--el-transition-fade-linear)}.fade-in-linear-enter-from,.fade-in-linear-leave-to{opacity:0}.el-fade-in-linear-enter-active,.el-fade-in-linear-leave-active{transition:var(--el-transition-fade-linear)}.el-fade-in-linear-enter-from,.el-fade-in-linear-leave-to{opacity:0}.el-fade-in-enter-active,.el-fade-in-leave-active{transition:all var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-fade-in-enter-from,.el-fade-in-leave-active{opacity:0}.el-zoom-in-center-enter-active,.el-zoom-in-center-leave-active{transition:all var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-zoom-in-center-enter-from,.el-zoom-in-center-leave-active{opacity:0;transform:scaleX(0)}.el-zoom-in-top-enter-active,.el-zoom-in-top-leave-active{opacity:1;transform:scaleY(1);transition:var(--el-transition-md-fade);transform-origin:center top}.el-zoom-in-top-enter-active[data-popper-placement^=top],.el-zoom-in-top-leave-active[data-popper-placement^=top]{transform-origin:center bottom}.el-zoom-in-top-enter-from,.el-zoom-in-top-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-bottom-enter-active,.el-zoom-in-bottom-leave-active{opacity:1;transform:scaleY(1);transition:var(--el-transition-md-fade);transform-origin:center bottom}.el-zoom-in-bottom-enter-from,.el-zoom-in-bottom-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-left-enter-active,.el-zoom-in-left-leave-active{opacity:1;transform:scale(1,1);transition:var(--el-transition-md-fade);transform-origin:top left}.el-zoom-in-left-enter-from,.el-zoom-in-left-leave-active{opacity:0;transform:scale(.45,.45)}.collapse-transition{transition:var(--el-transition-duration) height ease-in-out,var(--el-transition-duration) padding-top ease-in-out,var(--el-transition-duration) padding-bottom ease-in-out}.horizontal-collapse-transition{transition:var(--el-transition-duration) width ease-in-out,var(--el-transition-duration) padding-left ease-in-out,var(--el-transition-duration) padding-right ease-in-out}.el-list-enter-active,.el-list-leave-active{transition:all 1s}.el-list-enter-from,.el-list-leave-active{opacity:0;transform:translateY(-30px)}.el-opacity-transition{transition:opacity var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-icon-loading{animation:rotating 2s linear infinite}.el-icon--right{margin-left:5px}.el-icon--left{margin-right:5px}@keyframes rotating{0%{transform:rotateZ(0)}100%{transform:rotateZ(360deg)}}.el-icon{--color:inherit;height:1em;width:1em;line-height:1em;display:inline-flex;justify-content:center;align-items:center;position:relative;fill:currentColor;color:var(--color);font-size:inherit}.el-icon.is-loading{animation:rotating 2s linear infinite}.el-icon svg{height:1em;width:1em}
1
+ :root{--el-color-white:#ffffff;--el-color-black:#000000;--el-color-primary:#409eff;--el-color-primary-light-1:#53a8ff;--el-color-primary-light-2:#66b1ff;--el-color-primary-light-3:#79bbff;--el-color-primary-light-4:#8cc5ff;--el-color-primary-light-5:#a0cfff;--el-color-primary-light-6:#b3d8ff;--el-color-primary-light-7:#c6e2ff;--el-color-primary-light-8:#d9ecff;--el-color-primary-light-9:#ecf5ff;--el-color-success:#67c23a;--el-color-success-light:#e1f3d8;--el-color-success-lighter:#f0f9eb;--el-color-warning:#e6a23c;--el-color-warning-light:#faecd8;--el-color-warning-lighter:#fdf6ec;--el-color-danger:#f56c6c;--el-color-danger-light:#fde2e2;--el-color-danger-lighter:#fef0f0;--el-color-error:#f56c6c;--el-color-error-light:#fde2e2;--el-color-error-lighter:#fef0f0;--el-color-info:#909399;--el-color-info-light:#e9e9eb;--el-color-info-lighter:#f4f4f5;--el-bg-color:#f5f7fa;--el-border-width-base:1px;--el-border-style-base:solid;--el-border-color-hover:var(--el-text-color-placeholder);--el-border-base:var(--el-border-width-base) var(--el-border-style-base) var(--el-border-color-base);--el-svg-monochrome-grey:#dcdde0;--el-fill-base:var(--el-color-white);--el-font-size-extra-large:20px;--el-font-size-large:18px;--el-font-size-medium:16px;--el-font-size-base:14px;--el-font-size-small:13px;--el-font-size-extra-small:12px;--el-font-weight-primary:500;--el-font-line-height-primary:24px;--el-text-color-disabled-base:#bbb;--el-index-normal:1;--el-index-top:1000;--el-index-popper:2000;--el-text-color-primary:#303133;--el-text-color-regular:#606266;--el-text-color-secondary:#909399;--el-text-color-placeholder:#c0c4cc;--el-border-color-base:#dcdfe6;--el-border-color-light:#e4e7ed;--el-border-color-lighter:#ebeef5;--el-border-color-extra-light:#f2f6fc;--el-border-radius-base:4px;--el-border-radius-small:2px;--el-border-radius-round:20px;--el-border-radius-circle:100%;--el-box-shadow-base:0 2px 4px rgba(0, 0, 0, 0.12),0 0 6px rgba(0, 0, 0, 0.04);--el-box-shadow-light:0 2px 12px 0 rgba(0, 0, 0, 0.1);--el-disabled-bg-color:var(--el-bg-color);--el-disabled-text-color:var(--el-text-color-placeholder);--el-disabled-border-color:var(--el-border-color-light);--el-transition-duration:0.3s;--el-transition-duration-fast:0.2s;--el-transition-function-ease-in-out-bezier:cubic-bezier(0.645, 0.045, 0.355, 1);--el-transition-function-fast-bezier:cubic-bezier(0.23, 1, 0.32, 1);--el-transition-all:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);--el-transition-fade:opacity var(--el-transition-duration) var(--el-transition-function-fast-bezier);--el-transition-md-fade:transform var(--el-transition-duration) var(--el-transition-function-fast-bezier),opacity var(--el-transition-duration) var(--el-transition-function-fast-bezier);--el-transition-fade-linear:opacity var(--el-transition-duration-fast) linear;--el-transition-border:border-color var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-transition-color:color var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier)}.fade-in-linear-enter-active,.fade-in-linear-leave-active{transition:var(--el-transition-fade-linear)}.fade-in-linear-enter-from,.fade-in-linear-leave-to{opacity:0}.el-fade-in-linear-enter-active,.el-fade-in-linear-leave-active{transition:var(--el-transition-fade-linear)}.el-fade-in-linear-enter-from,.el-fade-in-linear-leave-to{opacity:0}.el-fade-in-enter-active,.el-fade-in-leave-active{transition:all var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-fade-in-enter-from,.el-fade-in-leave-active{opacity:0}.el-zoom-in-center-enter-active,.el-zoom-in-center-leave-active{transition:all var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-zoom-in-center-enter-from,.el-zoom-in-center-leave-active{opacity:0;transform:scaleX(0)}.el-zoom-in-top-enter-active,.el-zoom-in-top-leave-active{opacity:1;transform:scaleY(1);transition:var(--el-transition-md-fade);transform-origin:center top}.el-zoom-in-top-enter-active[data-popper-placement^=top],.el-zoom-in-top-leave-active[data-popper-placement^=top]{transform-origin:center bottom}.el-zoom-in-top-enter-from,.el-zoom-in-top-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-bottom-enter-active,.el-zoom-in-bottom-leave-active{opacity:1;transform:scaleY(1);transition:var(--el-transition-md-fade);transform-origin:center bottom}.el-zoom-in-bottom-enter-from,.el-zoom-in-bottom-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-left-enter-active,.el-zoom-in-left-leave-active{opacity:1;transform:scale(1,1);transition:var(--el-transition-md-fade);transform-origin:top left}.el-zoom-in-left-enter-from,.el-zoom-in-left-leave-active{opacity:0;transform:scale(.45,.45)}.collapse-transition{transition:var(--el-transition-duration) height ease-in-out,var(--el-transition-duration) padding-top ease-in-out,var(--el-transition-duration) padding-bottom ease-in-out}.el-collapse-transition-enter-active,.el-collapse-transition-leave-active{transition:var(--el-transition-duration) max-height ease-in-out,var(--el-transition-duration) padding-top ease-in-out,var(--el-transition-duration) padding-bottom ease-in-out}.horizontal-collapse-transition{transition:var(--el-transition-duration) width ease-in-out,var(--el-transition-duration) padding-left ease-in-out,var(--el-transition-duration) padding-right ease-in-out}.el-list-enter-active,.el-list-leave-active{transition:all 1s}.el-list-enter-from,.el-list-leave-active{opacity:0;transform:translateY(-30px)}.el-opacity-transition{transition:opacity var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-icon-loading{animation:rotating 2s linear infinite}.el-icon--right{margin-left:5px}.el-icon--left{margin-right:5px}@keyframes rotating{0%{transform:rotateZ(0)}100%{transform:rotateZ(360deg)}}.el-icon{--color:inherit;height:1em;width:1em;line-height:1em;display:inline-flex;justify-content:center;align-items:center;position:relative;fill:currentColor;color:var(--color);font-size:inherit}.el-icon.is-loading{animation:rotating 2s linear infinite}.el-icon svg{height:1em;width:1em}
@@ -1 +1 @@
1
- .fade-in-linear-enter-active,.fade-in-linear-leave-active{transition:var(--el-transition-fade-linear)}.fade-in-linear-enter-from,.fade-in-linear-leave-to{opacity:0}.el-fade-in-linear-enter-active,.el-fade-in-linear-leave-active{transition:var(--el-transition-fade-linear)}.el-fade-in-linear-enter-from,.el-fade-in-linear-leave-to{opacity:0}.el-fade-in-enter-active,.el-fade-in-leave-active{transition:all var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-fade-in-enter-from,.el-fade-in-leave-active{opacity:0}.el-zoom-in-center-enter-active,.el-zoom-in-center-leave-active{transition:all var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-zoom-in-center-enter-from,.el-zoom-in-center-leave-active{opacity:0;transform:scaleX(0)}.el-zoom-in-top-enter-active,.el-zoom-in-top-leave-active{opacity:1;transform:scaleY(1);transition:var(--el-transition-md-fade);transform-origin:center top}.el-zoom-in-top-enter-active[data-popper-placement^=top],.el-zoom-in-top-leave-active[data-popper-placement^=top]{transform-origin:center bottom}.el-zoom-in-top-enter-from,.el-zoom-in-top-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-bottom-enter-active,.el-zoom-in-bottom-leave-active{opacity:1;transform:scaleY(1);transition:var(--el-transition-md-fade);transform-origin:center bottom}.el-zoom-in-bottom-enter-from,.el-zoom-in-bottom-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-left-enter-active,.el-zoom-in-left-leave-active{opacity:1;transform:scale(1,1);transition:var(--el-transition-md-fade);transform-origin:top left}.el-zoom-in-left-enter-from,.el-zoom-in-left-leave-active{opacity:0;transform:scale(.45,.45)}.collapse-transition{transition:var(--el-transition-duration) height ease-in-out,var(--el-transition-duration) padding-top ease-in-out,var(--el-transition-duration) padding-bottom ease-in-out}.horizontal-collapse-transition{transition:var(--el-transition-duration) width ease-in-out,var(--el-transition-duration) padding-left ease-in-out,var(--el-transition-duration) padding-right ease-in-out}.el-list-enter-active,.el-list-leave-active{transition:all 1s}.el-list-enter-from,.el-list-leave-active{opacity:0;transform:translateY(-30px)}.el-opacity-transition{transition:opacity var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-collapse{--el-collapse-border-color:var(--el-border-color-lighter);--el-collapse-header-height:48px;--el-collapse-header-bg-color:var(--el-color-white);--el-collapse-header-text-color:var(--el-text-color-primary);--el-collapse-header-font-size:13px;--el-collapse-content-bg-color:var(--el-color-white);--el-collapse-content-font-size:13px;--el-collapse-content-text-color:var(--el-text-color-primary);border-top:1px solid var(--el-collapse-border-color);border-bottom:1px solid var(--el-collapse-border-color)}.el-collapse-item.is-disabled .el-collapse-item__header{color:var(--el-text-color-disabled-base);cursor:not-allowed}.el-collapse-item__header{display:flex;align-items:center;height:var(--el-collapse-header-height);line-height:var(--el-collapse-header-height);background-color:var(--el-collapse-header-bg-color);color:var(--el-collapse-header-text-color);cursor:pointer;border-bottom:1px solid var(--el-collapse-border-color);font-size:var(--el-collapse-header-font-size);font-weight:500;transition:border-bottom-color var(--el-transition-duration);outline:0}.el-collapse-item__arrow{margin:0 8px 0 auto;transition:transform var(--el-transition-duration);font-weight:300}.el-collapse-item__arrow.is-active{transform:rotate(90deg)}.el-collapse-item__header.focusing:focus:not(:hover){color:var(--el-color-primary)}.el-collapse-item__header.is-active{border-bottom-color:transparent}.el-collapse-item__wrap{will-change:height;background-color:var(--el-collapse-content-bg-color);overflow:hidden;box-sizing:border-box;border-bottom:1px solid var(--el-collapse-border-color)}.el-collapse-item__content{padding-bottom:25px;font-size:var(--el-collapse-content-font-size);color:var(--el-collapse-content-text-color);line-height:1.7692307692}.el-collapse-item:last-child{margin-bottom:-1px}
1
+ .fade-in-linear-enter-active,.fade-in-linear-leave-active{transition:var(--el-transition-fade-linear)}.fade-in-linear-enter-from,.fade-in-linear-leave-to{opacity:0}.el-fade-in-linear-enter-active,.el-fade-in-linear-leave-active{transition:var(--el-transition-fade-linear)}.el-fade-in-linear-enter-from,.el-fade-in-linear-leave-to{opacity:0}.el-fade-in-enter-active,.el-fade-in-leave-active{transition:all var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-fade-in-enter-from,.el-fade-in-leave-active{opacity:0}.el-zoom-in-center-enter-active,.el-zoom-in-center-leave-active{transition:all var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-zoom-in-center-enter-from,.el-zoom-in-center-leave-active{opacity:0;transform:scaleX(0)}.el-zoom-in-top-enter-active,.el-zoom-in-top-leave-active{opacity:1;transform:scaleY(1);transition:var(--el-transition-md-fade);transform-origin:center top}.el-zoom-in-top-enter-active[data-popper-placement^=top],.el-zoom-in-top-leave-active[data-popper-placement^=top]{transform-origin:center bottom}.el-zoom-in-top-enter-from,.el-zoom-in-top-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-bottom-enter-active,.el-zoom-in-bottom-leave-active{opacity:1;transform:scaleY(1);transition:var(--el-transition-md-fade);transform-origin:center bottom}.el-zoom-in-bottom-enter-from,.el-zoom-in-bottom-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-left-enter-active,.el-zoom-in-left-leave-active{opacity:1;transform:scale(1,1);transition:var(--el-transition-md-fade);transform-origin:top left}.el-zoom-in-left-enter-from,.el-zoom-in-left-leave-active{opacity:0;transform:scale(.45,.45)}.collapse-transition{transition:var(--el-transition-duration) height ease-in-out,var(--el-transition-duration) padding-top ease-in-out,var(--el-transition-duration) padding-bottom ease-in-out}.el-collapse-transition-enter-active,.el-collapse-transition-leave-active{transition:var(--el-transition-duration) max-height ease-in-out,var(--el-transition-duration) padding-top ease-in-out,var(--el-transition-duration) padding-bottom ease-in-out}.horizontal-collapse-transition{transition:var(--el-transition-duration) width ease-in-out,var(--el-transition-duration) padding-left ease-in-out,var(--el-transition-duration) padding-right ease-in-out}.el-list-enter-active,.el-list-leave-active{transition:all 1s}.el-list-enter-from,.el-list-leave-active{opacity:0;transform:translateY(-30px)}.el-opacity-transition{transition:opacity var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-collapse{--el-collapse-border-color:var(--el-border-color-lighter);--el-collapse-header-height:48px;--el-collapse-header-bg-color:var(--el-color-white);--el-collapse-header-text-color:var(--el-text-color-primary);--el-collapse-header-font-size:13px;--el-collapse-content-bg-color:var(--el-color-white);--el-collapse-content-font-size:13px;--el-collapse-content-text-color:var(--el-text-color-primary);border-top:1px solid var(--el-collapse-border-color);border-bottom:1px solid var(--el-collapse-border-color)}.el-collapse-item.is-disabled .el-collapse-item__header{color:var(--el-text-color-disabled-base);cursor:not-allowed}.el-collapse-item__header{display:flex;align-items:center;height:var(--el-collapse-header-height);line-height:var(--el-collapse-header-height);background-color:var(--el-collapse-header-bg-color);color:var(--el-collapse-header-text-color);cursor:pointer;border-bottom:1px solid var(--el-collapse-border-color);font-size:var(--el-collapse-header-font-size);font-weight:500;transition:border-bottom-color var(--el-transition-duration);outline:0}.el-collapse-item__arrow{margin:0 8px 0 auto;transition:transform var(--el-transition-duration);font-weight:300}.el-collapse-item__arrow.is-active{transform:rotate(90deg)}.el-collapse-item__header.focusing:focus:not(:hover){color:var(--el-color-primary)}.el-collapse-item__header.is-active{border-bottom-color:transparent}.el-collapse-item__wrap{will-change:height;background-color:var(--el-collapse-content-bg-color);overflow:hidden;box-sizing:border-box;border-bottom:1px solid var(--el-collapse-border-color)}.el-collapse-item__content{padding-bottom:25px;font-size:var(--el-collapse-content-font-size);color:var(--el-collapse-content-text-color);line-height:1.7692307692}.el-collapse-item:last-child{margin-bottom:-1px}