@element-plus/nightly 0.0.20250317 → 0.0.20250318

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 (934) hide show
  1. package/dist/index.full.js +9 -3
  2. package/dist/index.full.min.js +9 -9
  3. package/dist/index.full.min.js.map +1 -1
  4. package/dist/index.full.min.mjs +9 -9
  5. package/dist/index.full.min.mjs.map +1 -1
  6. package/dist/index.full.mjs +9 -3
  7. package/dist/locale/af.js +1 -1
  8. package/dist/locale/af.min.js +1 -1
  9. package/dist/locale/af.min.mjs +1 -1
  10. package/dist/locale/af.mjs +1 -1
  11. package/dist/locale/ar-eg.js +1 -1
  12. package/dist/locale/ar-eg.min.js +1 -1
  13. package/dist/locale/ar-eg.min.mjs +1 -1
  14. package/dist/locale/ar-eg.mjs +1 -1
  15. package/dist/locale/ar.js +1 -1
  16. package/dist/locale/ar.min.js +1 -1
  17. package/dist/locale/ar.min.mjs +1 -1
  18. package/dist/locale/ar.mjs +1 -1
  19. package/dist/locale/az.js +1 -1
  20. package/dist/locale/az.min.js +1 -1
  21. package/dist/locale/az.min.mjs +1 -1
  22. package/dist/locale/az.mjs +1 -1
  23. package/dist/locale/bg.js +1 -1
  24. package/dist/locale/bg.min.js +1 -1
  25. package/dist/locale/bg.min.mjs +1 -1
  26. package/dist/locale/bg.mjs +1 -1
  27. package/dist/locale/bn.js +1 -1
  28. package/dist/locale/bn.min.js +1 -1
  29. package/dist/locale/bn.min.mjs +1 -1
  30. package/dist/locale/bn.mjs +1 -1
  31. package/dist/locale/ca.js +1 -1
  32. package/dist/locale/ca.min.js +1 -1
  33. package/dist/locale/ca.min.mjs +1 -1
  34. package/dist/locale/ca.mjs +1 -1
  35. package/dist/locale/ckb.js +1 -1
  36. package/dist/locale/ckb.min.js +1 -1
  37. package/dist/locale/ckb.min.mjs +1 -1
  38. package/dist/locale/ckb.mjs +1 -1
  39. package/dist/locale/cs.js +1 -1
  40. package/dist/locale/cs.min.js +1 -1
  41. package/dist/locale/cs.min.mjs +1 -1
  42. package/dist/locale/cs.mjs +1 -1
  43. package/dist/locale/da.js +1 -1
  44. package/dist/locale/da.min.js +1 -1
  45. package/dist/locale/da.min.mjs +1 -1
  46. package/dist/locale/da.mjs +1 -1
  47. package/dist/locale/de.js +1 -1
  48. package/dist/locale/de.min.js +1 -1
  49. package/dist/locale/de.min.mjs +1 -1
  50. package/dist/locale/de.mjs +1 -1
  51. package/dist/locale/el.js +1 -1
  52. package/dist/locale/el.min.js +1 -1
  53. package/dist/locale/el.min.mjs +1 -1
  54. package/dist/locale/el.mjs +1 -1
  55. package/dist/locale/en.js +1 -1
  56. package/dist/locale/en.min.js +1 -1
  57. package/dist/locale/en.min.mjs +1 -1
  58. package/dist/locale/en.mjs +1 -1
  59. package/dist/locale/eo.js +1 -1
  60. package/dist/locale/eo.min.js +1 -1
  61. package/dist/locale/eo.min.mjs +1 -1
  62. package/dist/locale/eo.mjs +1 -1
  63. package/dist/locale/es.js +1 -1
  64. package/dist/locale/es.min.js +1 -1
  65. package/dist/locale/es.min.mjs +1 -1
  66. package/dist/locale/es.mjs +1 -1
  67. package/dist/locale/et.js +1 -1
  68. package/dist/locale/et.min.js +1 -1
  69. package/dist/locale/et.min.mjs +1 -1
  70. package/dist/locale/et.mjs +1 -1
  71. package/dist/locale/eu.js +1 -1
  72. package/dist/locale/eu.min.js +1 -1
  73. package/dist/locale/eu.min.mjs +1 -1
  74. package/dist/locale/eu.mjs +1 -1
  75. package/dist/locale/fa.js +1 -1
  76. package/dist/locale/fa.min.js +1 -1
  77. package/dist/locale/fa.min.mjs +1 -1
  78. package/dist/locale/fa.mjs +1 -1
  79. package/dist/locale/fi.js +1 -1
  80. package/dist/locale/fi.min.js +1 -1
  81. package/dist/locale/fi.min.mjs +1 -1
  82. package/dist/locale/fi.mjs +1 -1
  83. package/dist/locale/fr.js +1 -1
  84. package/dist/locale/fr.min.js +1 -1
  85. package/dist/locale/fr.min.mjs +1 -1
  86. package/dist/locale/fr.mjs +1 -1
  87. package/dist/locale/he.js +1 -1
  88. package/dist/locale/he.min.js +1 -1
  89. package/dist/locale/he.min.mjs +1 -1
  90. package/dist/locale/he.mjs +1 -1
  91. package/dist/locale/hi.js +1 -1
  92. package/dist/locale/hi.min.js +1 -1
  93. package/dist/locale/hi.min.mjs +1 -1
  94. package/dist/locale/hi.mjs +1 -1
  95. package/dist/locale/hr.js +1 -1
  96. package/dist/locale/hr.min.js +1 -1
  97. package/dist/locale/hr.min.mjs +1 -1
  98. package/dist/locale/hr.mjs +1 -1
  99. package/dist/locale/hu.js +1 -1
  100. package/dist/locale/hu.min.js +1 -1
  101. package/dist/locale/hu.min.mjs +1 -1
  102. package/dist/locale/hu.mjs +1 -1
  103. package/dist/locale/hy-am.js +1 -1
  104. package/dist/locale/hy-am.min.js +1 -1
  105. package/dist/locale/hy-am.min.mjs +1 -1
  106. package/dist/locale/hy-am.mjs +1 -1
  107. package/dist/locale/id.js +1 -1
  108. package/dist/locale/id.min.js +1 -1
  109. package/dist/locale/id.min.mjs +1 -1
  110. package/dist/locale/id.mjs +1 -1
  111. package/dist/locale/it.js +1 -1
  112. package/dist/locale/it.min.js +1 -1
  113. package/dist/locale/it.min.mjs +1 -1
  114. package/dist/locale/it.mjs +1 -1
  115. package/dist/locale/ja.js +1 -1
  116. package/dist/locale/ja.min.js +1 -1
  117. package/dist/locale/ja.min.mjs +1 -1
  118. package/dist/locale/ja.mjs +1 -1
  119. package/dist/locale/kk.js +1 -1
  120. package/dist/locale/kk.min.js +1 -1
  121. package/dist/locale/kk.min.mjs +1 -1
  122. package/dist/locale/kk.mjs +1 -1
  123. package/dist/locale/km.js +1 -1
  124. package/dist/locale/km.min.js +1 -1
  125. package/dist/locale/km.min.mjs +1 -1
  126. package/dist/locale/km.mjs +1 -1
  127. package/dist/locale/ko.js +1 -1
  128. package/dist/locale/ko.min.js +1 -1
  129. package/dist/locale/ko.min.mjs +1 -1
  130. package/dist/locale/ko.mjs +1 -1
  131. package/dist/locale/ku.js +1 -1
  132. package/dist/locale/ku.min.js +1 -1
  133. package/dist/locale/ku.min.mjs +1 -1
  134. package/dist/locale/ku.mjs +1 -1
  135. package/dist/locale/ky.js +1 -1
  136. package/dist/locale/ky.min.js +1 -1
  137. package/dist/locale/ky.min.mjs +1 -1
  138. package/dist/locale/ky.mjs +1 -1
  139. package/dist/locale/lt.js +1 -1
  140. package/dist/locale/lt.min.js +1 -1
  141. package/dist/locale/lt.min.mjs +1 -1
  142. package/dist/locale/lt.mjs +1 -1
  143. package/dist/locale/lv.js +1 -1
  144. package/dist/locale/lv.min.js +1 -1
  145. package/dist/locale/lv.min.mjs +1 -1
  146. package/dist/locale/lv.mjs +1 -1
  147. package/dist/locale/mg.js +1 -1
  148. package/dist/locale/mg.min.js +1 -1
  149. package/dist/locale/mg.min.mjs +1 -1
  150. package/dist/locale/mg.mjs +1 -1
  151. package/dist/locale/mn.js +1 -1
  152. package/dist/locale/mn.min.js +1 -1
  153. package/dist/locale/mn.min.mjs +1 -1
  154. package/dist/locale/mn.mjs +1 -1
  155. package/dist/locale/ms.js +1 -1
  156. package/dist/locale/ms.min.js +1 -1
  157. package/dist/locale/ms.min.mjs +1 -1
  158. package/dist/locale/ms.mjs +1 -1
  159. package/dist/locale/my.js +1 -1
  160. package/dist/locale/my.min.js +1 -1
  161. package/dist/locale/my.min.mjs +1 -1
  162. package/dist/locale/my.mjs +1 -1
  163. package/dist/locale/nb-no.js +1 -1
  164. package/dist/locale/nb-no.min.js +1 -1
  165. package/dist/locale/nb-no.min.mjs +1 -1
  166. package/dist/locale/nb-no.mjs +1 -1
  167. package/dist/locale/nl.js +1 -1
  168. package/dist/locale/nl.min.js +1 -1
  169. package/dist/locale/nl.min.mjs +1 -1
  170. package/dist/locale/nl.mjs +1 -1
  171. package/dist/locale/no.js +1 -1
  172. package/dist/locale/no.min.js +1 -1
  173. package/dist/locale/no.min.mjs +1 -1
  174. package/dist/locale/no.mjs +1 -1
  175. package/dist/locale/pa.js +1 -1
  176. package/dist/locale/pa.min.js +1 -1
  177. package/dist/locale/pa.min.mjs +1 -1
  178. package/dist/locale/pa.mjs +1 -1
  179. package/dist/locale/pl.js +1 -1
  180. package/dist/locale/pl.min.js +1 -1
  181. package/dist/locale/pl.min.mjs +1 -1
  182. package/dist/locale/pl.mjs +1 -1
  183. package/dist/locale/pt-br.js +1 -1
  184. package/dist/locale/pt-br.min.js +1 -1
  185. package/dist/locale/pt-br.min.mjs +1 -1
  186. package/dist/locale/pt-br.mjs +1 -1
  187. package/dist/locale/pt.js +1 -1
  188. package/dist/locale/pt.min.js +1 -1
  189. package/dist/locale/pt.min.mjs +1 -1
  190. package/dist/locale/pt.mjs +1 -1
  191. package/dist/locale/ro.js +1 -1
  192. package/dist/locale/ro.min.js +1 -1
  193. package/dist/locale/ro.min.mjs +1 -1
  194. package/dist/locale/ro.mjs +1 -1
  195. package/dist/locale/ru.js +1 -1
  196. package/dist/locale/ru.min.js +1 -1
  197. package/dist/locale/ru.min.mjs +1 -1
  198. package/dist/locale/ru.mjs +1 -1
  199. package/dist/locale/sk.js +1 -1
  200. package/dist/locale/sk.min.js +1 -1
  201. package/dist/locale/sk.min.mjs +1 -1
  202. package/dist/locale/sk.mjs +1 -1
  203. package/dist/locale/sl.js +1 -1
  204. package/dist/locale/sl.min.js +1 -1
  205. package/dist/locale/sl.min.mjs +1 -1
  206. package/dist/locale/sl.mjs +1 -1
  207. package/dist/locale/sr.js +1 -1
  208. package/dist/locale/sr.min.js +1 -1
  209. package/dist/locale/sr.min.mjs +1 -1
  210. package/dist/locale/sr.mjs +1 -1
  211. package/dist/locale/sv.js +1 -1
  212. package/dist/locale/sv.min.js +1 -1
  213. package/dist/locale/sv.min.mjs +1 -1
  214. package/dist/locale/sv.mjs +1 -1
  215. package/dist/locale/sw.js +1 -1
  216. package/dist/locale/sw.min.js +1 -1
  217. package/dist/locale/sw.min.mjs +1 -1
  218. package/dist/locale/sw.mjs +1 -1
  219. package/dist/locale/ta.js +1 -1
  220. package/dist/locale/ta.min.js +1 -1
  221. package/dist/locale/ta.min.mjs +1 -1
  222. package/dist/locale/ta.mjs +1 -1
  223. package/dist/locale/te.js +1 -1
  224. package/dist/locale/te.min.js +1 -1
  225. package/dist/locale/te.min.mjs +1 -1
  226. package/dist/locale/te.mjs +1 -1
  227. package/dist/locale/th.js +1 -1
  228. package/dist/locale/th.min.js +1 -1
  229. package/dist/locale/th.min.mjs +1 -1
  230. package/dist/locale/th.mjs +1 -1
  231. package/dist/locale/tk.js +1 -1
  232. package/dist/locale/tk.min.js +1 -1
  233. package/dist/locale/tk.min.mjs +1 -1
  234. package/dist/locale/tk.mjs +1 -1
  235. package/dist/locale/tr.js +1 -1
  236. package/dist/locale/tr.min.js +1 -1
  237. package/dist/locale/tr.min.mjs +1 -1
  238. package/dist/locale/tr.mjs +1 -1
  239. package/dist/locale/ug-cn.js +1 -1
  240. package/dist/locale/ug-cn.min.js +1 -1
  241. package/dist/locale/ug-cn.min.mjs +1 -1
  242. package/dist/locale/ug-cn.mjs +1 -1
  243. package/dist/locale/uk.js +1 -1
  244. package/dist/locale/uk.min.js +1 -1
  245. package/dist/locale/uk.min.mjs +1 -1
  246. package/dist/locale/uk.mjs +1 -1
  247. package/dist/locale/uz-uz.js +1 -1
  248. package/dist/locale/uz-uz.min.js +1 -1
  249. package/dist/locale/uz-uz.min.mjs +1 -1
  250. package/dist/locale/uz-uz.mjs +1 -1
  251. package/dist/locale/vi.js +1 -1
  252. package/dist/locale/vi.min.js +1 -1
  253. package/dist/locale/vi.min.mjs +1 -1
  254. package/dist/locale/vi.mjs +1 -1
  255. package/dist/locale/zh-cn.js +1 -1
  256. package/dist/locale/zh-cn.min.js +1 -1
  257. package/dist/locale/zh-cn.min.mjs +1 -1
  258. package/dist/locale/zh-cn.mjs +1 -1
  259. package/dist/locale/zh-hk.js +1 -1
  260. package/dist/locale/zh-hk.min.js +1 -1
  261. package/dist/locale/zh-hk.min.mjs +1 -1
  262. package/dist/locale/zh-hk.mjs +1 -1
  263. package/dist/locale/zh-mo.js +1 -1
  264. package/dist/locale/zh-mo.min.js +1 -1
  265. package/dist/locale/zh-mo.min.mjs +1 -1
  266. package/dist/locale/zh-mo.mjs +1 -1
  267. package/dist/locale/zh-tw.js +1 -1
  268. package/dist/locale/zh-tw.min.js +1 -1
  269. package/dist/locale/zh-tw.min.mjs +1 -1
  270. package/dist/locale/zh-tw.mjs +1 -1
  271. package/es/components/affix/src/affix.d.ts +1 -1
  272. package/es/components/affix/src/affix.mjs.map +1 -1
  273. package/es/components/alert/src/instance.d.ts +1 -1
  274. package/es/components/anchor/src/anchor.d.ts +1 -1
  275. package/es/components/anchor/src/anchor2.mjs.map +1 -1
  276. package/es/components/autocomplete/src/autocomplete.d.ts +1 -1
  277. package/es/components/autocomplete/src/autocomplete.mjs.map +1 -1
  278. package/es/components/autocomplete/src/autocomplete.vue.d.ts +25 -13
  279. package/es/components/autocomplete/src/autocomplete2.mjs.map +1 -1
  280. package/es/components/avatar/index.mjs +2 -2
  281. package/es/components/avatar/src/avatar.mjs +65 -31
  282. package/es/components/avatar/src/avatar.mjs.map +1 -1
  283. package/es/components/avatar/src/avatar2.mjs +31 -65
  284. package/es/components/avatar/src/avatar2.mjs.map +1 -1
  285. package/es/components/avatar/src/instance.d.ts +1 -1
  286. package/es/components/backtop/src/instance.d.ts +1 -1
  287. package/es/components/badge/src/instance.d.ts +1 -1
  288. package/es/components/breadcrumb/src/instances.d.ts +2 -2
  289. package/es/components/button/src/button.vue.d.ts +2 -2
  290. package/es/components/button/src/instance.d.ts +2 -2
  291. package/es/components/calendar/src/instance.d.ts +2 -2
  292. package/es/components/card/index.mjs +2 -2
  293. package/es/components/card/src/card.mjs +42 -20
  294. package/es/components/card/src/card.mjs.map +1 -1
  295. package/es/components/card/src/card2.mjs +20 -42
  296. package/es/components/card/src/card2.mjs.map +1 -1
  297. package/es/components/card/src/instance.d.ts +1 -1
  298. package/es/components/carousel/src/instance.d.ts +2 -2
  299. package/es/components/cascader/src/cascader.d.ts +1 -1
  300. package/es/components/cascader/src/cascader.vue.d.ts +6 -393
  301. package/es/components/cascader/src/instances.d.ts +1 -1
  302. package/es/components/cascader-panel/src/instance.d.ts +1 -1
  303. package/es/components/check-tag/src/check-tag.d.ts +1 -1
  304. package/es/components/check-tag/src/check-tag.mjs.map +1 -1
  305. package/es/components/checkbox/src/checkbox-group.d.ts +1 -1
  306. package/es/components/checkbox/src/checkbox-group.mjs.map +1 -1
  307. package/es/components/checkbox/src/checkbox-group.vue.d.ts +2 -2
  308. package/es/components/checkbox/src/checkbox.d.ts +1 -1
  309. package/es/components/checkbox/src/checkbox.mjs.map +1 -1
  310. package/es/components/col/src/col.d.ts +1 -1
  311. package/es/components/col/src/col.mjs.map +1 -1
  312. package/es/components/collapse/src/collapse-item.vue.d.ts +3 -3
  313. package/es/components/collapse/src/instance.d.ts +2 -2
  314. package/es/components/color-picker/src/color-picker.d.ts +1 -1
  315. package/es/components/color-picker/src/color-picker.mjs.map +1 -1
  316. package/es/components/config-provider/src/config-provider.d.ts +3 -3
  317. package/es/components/config-provider/src/config-provider.mjs.map +1 -1
  318. package/es/components/config-provider/src/hooks/use-global-config.d.ts +1 -1
  319. package/es/components/container/index.d.ts +5 -5
  320. package/es/components/container/index.mjs.map +1 -1
  321. package/es/components/countdown/src/countdown.d.ts +1 -1
  322. package/es/components/countdown/src/countdown.mjs.map +1 -1
  323. package/es/components/date-picker/src/date-picker.d.ts +9 -9
  324. package/es/components/date-picker/src/panel-utils.d.ts +34 -34
  325. package/es/components/date-picker/src/props/date-picker.d.ts +3 -3
  326. package/es/components/descriptions/src/description.d.ts +1 -1
  327. package/es/components/descriptions/src/description.mjs.map +1 -1
  328. package/es/components/descriptions/src/descriptions-row.vue.d.ts +3 -3
  329. package/es/components/dialog/src/dialog.d.ts +1 -1
  330. package/es/components/dialog/src/dialog.mjs.map +1 -1
  331. package/es/components/dialog/src/dialog.vue.d.ts +32 -32
  332. package/es/components/divider/index.mjs +2 -2
  333. package/es/components/divider/src/divider.d.ts +1 -1
  334. package/es/components/divider/src/divider.mjs +34 -16
  335. package/es/components/divider/src/divider.mjs.map +1 -1
  336. package/es/components/divider/src/divider2.mjs +16 -34
  337. package/es/components/divider/src/divider2.mjs.map +1 -1
  338. package/es/components/dropdown/src/dropdown.mjs +1 -1
  339. package/es/components/dropdown/src/dropdown.vue.d.ts +11 -1094
  340. package/es/components/dropdown/src/instance.d.ts +1 -1
  341. package/es/components/dropdown/src/tokens.d.ts +1 -1
  342. package/es/components/dropdown/src/tokens.mjs.map +1 -1
  343. package/es/components/empty/src/instance.d.ts +1 -1
  344. package/es/components/form/index.d.ts +2 -2
  345. package/es/components/form/index.mjs.map +1 -1
  346. package/es/components/icon/src/icon.d.ts +1 -1
  347. package/es/components/icon/src/icon.mjs.map +1 -1
  348. package/es/components/image/src/image.d.ts +1 -1
  349. package/es/components/image/src/image.mjs.map +1 -1
  350. package/es/components/image-viewer/src/image-viewer.d.ts +1 -1
  351. package/es/components/image-viewer/src/image-viewer.mjs.map +1 -1
  352. package/es/components/index.mjs +17 -17
  353. package/es/components/input/src/instance.d.ts +1 -1
  354. package/es/components/input-number/src/input-number.d.ts +1 -1
  355. package/es/components/input-number/src/input-number.mjs.map +1 -1
  356. package/es/components/input-tag/src/instance.d.ts +1 -1
  357. package/es/components/link/src/link.d.ts +1 -1
  358. package/es/components/link/src/link.mjs.map +1 -1
  359. package/es/components/mention/src/mention.d.ts +1 -1
  360. package/es/components/mention/src/mention.mjs.map +1 -1
  361. package/es/components/mention/src/mention.vue.d.ts +4 -4
  362. package/es/components/mention/src/mention2.mjs.map +1 -1
  363. package/es/components/menu/src/instance.d.ts +3 -3
  364. package/es/components/message/src/message.d.ts +1 -1
  365. package/es/components/message/src/message.mjs.map +1 -1
  366. package/es/components/message/src/message.vue.d.ts +1 -1
  367. package/es/components/notification/index.mjs +1 -1
  368. package/es/components/notification/src/notification.d.ts +1 -1
  369. package/es/components/notification/src/notification.mjs +142 -68
  370. package/es/components/notification/src/notification.mjs.map +1 -1
  371. package/es/components/notification/src/notification2.mjs +68 -142
  372. package/es/components/notification/src/notification2.mjs.map +1 -1
  373. package/es/components/notification/src/notify.mjs +2 -2
  374. package/es/components/page-header/src/page-header.d.ts +1 -1
  375. package/es/components/page-header/src/page-header.mjs.map +1 -1
  376. package/es/components/pagination/src/components/jumper.d.ts +1 -1
  377. package/es/components/pagination/src/components/jumper.mjs.map +1 -1
  378. package/es/components/pagination/src/components/next.d.ts +1 -1
  379. package/es/components/pagination/src/components/next.mjs.map +1 -1
  380. package/es/components/pagination/src/components/pager.d.ts +1 -1
  381. package/es/components/pagination/src/components/pager.mjs +16 -210
  382. package/es/components/pagination/src/components/pager.mjs.map +1 -1
  383. package/es/components/pagination/src/components/pager2.mjs +210 -16
  384. package/es/components/pagination/src/components/pager2.mjs.map +1 -1
  385. package/es/components/pagination/src/components/prev.d.ts +1 -1
  386. package/es/components/pagination/src/components/prev.mjs.map +1 -1
  387. package/es/components/pagination/src/components/sizes.d.ts +1 -1
  388. package/es/components/pagination/src/components/sizes.mjs.map +1 -1
  389. package/es/components/pagination/src/components/total.d.ts +1 -1
  390. package/es/components/pagination/src/components/total.mjs.map +1 -1
  391. package/es/components/pagination/src/pagination.mjs +1 -1
  392. package/es/components/popconfirm/index.mjs +2 -2
  393. package/es/components/popconfirm/src/popconfirm.d.ts +1 -1
  394. package/es/components/popconfirm/src/popconfirm.mjs +45 -114
  395. package/es/components/popconfirm/src/popconfirm.mjs.map +1 -1
  396. package/es/components/popconfirm/src/popconfirm2.mjs +114 -45
  397. package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
  398. package/es/components/popover/src/popover.d.ts +4 -4
  399. package/es/components/popover/src/popover.mjs +1 -1
  400. package/es/components/popover/src/popover.mjs.map +1 -1
  401. package/es/components/popover/src/popover.vue.d.ts +10 -71
  402. package/es/components/popper/src/arrow.d.ts +1 -1
  403. package/es/components/popper/src/arrow.mjs.map +1 -1
  404. package/es/components/popper/src/content.d.ts +1 -1
  405. package/es/components/popper/src/content.mjs.map +1 -1
  406. package/es/components/popper/src/content.vue.d.ts +12 -12
  407. package/es/components/popper/src/popper.d.ts +1 -1
  408. package/es/components/popper/src/popper.mjs.map +1 -1
  409. package/es/components/popper/src/trigger.d.ts +1 -1
  410. package/es/components/popper/src/trigger.mjs.map +1 -1
  411. package/es/components/progress/index.mjs +2 -2
  412. package/es/components/progress/src/progress.d.ts +1 -1
  413. package/es/components/progress/src/progress.mjs +207 -53
  414. package/es/components/progress/src/progress.mjs.map +1 -1
  415. package/es/components/progress/src/progress2.mjs +53 -207
  416. package/es/components/progress/src/progress2.mjs.map +1 -1
  417. package/es/components/radio/index.mjs +2 -2
  418. package/es/components/radio/src/radio-button.d.ts +1 -1
  419. package/es/components/radio/src/radio-button.mjs.map +1 -1
  420. package/es/components/radio/src/radio-group.d.ts +1 -1
  421. package/es/components/radio/src/radio-group.mjs +65 -34
  422. package/es/components/radio/src/radio-group.mjs.map +1 -1
  423. package/es/components/radio/src/radio-group2.mjs +34 -65
  424. package/es/components/radio/src/radio-group2.mjs.map +1 -1
  425. package/es/components/radio/src/radio.d.ts +1 -1
  426. package/es/components/radio/src/radio.mjs.map +1 -1
  427. package/es/components/rate/src/rate.d.ts +1 -1
  428. package/es/components/rate/src/rate.mjs.map +1 -1
  429. package/es/components/result/src/result.d.ts +1 -1
  430. package/es/components/result/src/result.mjs.map +1 -1
  431. package/es/components/row/index.mjs +2 -2
  432. package/es/components/row/src/row.d.ts +1 -1
  433. package/es/components/row/src/row.mjs +44 -28
  434. package/es/components/row/src/row.mjs.map +1 -1
  435. package/es/components/row/src/row2.mjs +28 -44
  436. package/es/components/row/src/row2.mjs.map +1 -1
  437. package/es/components/scrollbar/index.mjs +2 -2
  438. package/es/components/scrollbar/src/bar.d.ts +1 -1
  439. package/es/components/scrollbar/src/bar.mjs.map +1 -1
  440. package/es/components/scrollbar/src/scrollbar.d.ts +1 -1
  441. package/es/components/scrollbar/src/scrollbar.mjs +170 -55
  442. package/es/components/scrollbar/src/scrollbar.mjs.map +1 -1
  443. package/es/components/scrollbar/src/scrollbar2.mjs +55 -170
  444. package/es/components/scrollbar/src/scrollbar2.mjs.map +1 -1
  445. package/es/components/scrollbar/src/thumb.d.ts +1 -1
  446. package/es/components/scrollbar/src/thumb.mjs.map +1 -1
  447. package/es/components/segmented/src/segmented.d.ts +1 -1
  448. package/es/components/segmented/src/segmented.mjs.map +1 -1
  449. package/es/components/select/index.mjs +1 -1
  450. package/es/components/select/src/select.mjs +113 -429
  451. package/es/components/select/src/select.mjs.map +1 -1
  452. package/es/components/select/src/select.vue.d.ts +121 -71
  453. package/es/components/select/src/select2.mjs +429 -113
  454. package/es/components/select/src/select2.mjs.map +1 -1
  455. package/es/components/select/src/useSelect.d.ts +110 -63
  456. package/es/components/select/src/useSelect.mjs.map +1 -1
  457. package/es/components/select-v2/src/select.vue.d.ts +64 -25
  458. package/es/components/select-v2/src/useSelect.d.ts +86 -50
  459. package/es/components/select-v2/src/useSelect.mjs +7 -1
  460. package/es/components/select-v2/src/useSelect.mjs.map +1 -1
  461. package/es/components/skeleton/index.mjs +2 -2
  462. package/es/components/skeleton/src/skeleton-item.d.ts +1 -1
  463. package/es/components/skeleton/src/skeleton-item.mjs.map +1 -1
  464. package/es/components/skeleton/src/skeleton.d.ts +1 -1
  465. package/es/components/skeleton/src/skeleton.mjs +21 -48
  466. package/es/components/skeleton/src/skeleton.mjs.map +1 -1
  467. package/es/components/skeleton/src/skeleton2.mjs +48 -21
  468. package/es/components/skeleton/src/skeleton2.mjs.map +1 -1
  469. package/es/components/slider/src/button.vue.d.ts +3 -3
  470. package/es/components/slider/src/composables/use-slider-button.d.ts +5 -9
  471. package/es/components/slider/src/composables/use-slider-button.mjs.map +1 -1
  472. package/es/components/slider/src/slider.d.ts +1 -1
  473. package/es/components/slider/src/slider.mjs.map +1 -1
  474. package/es/components/slider/src/slider.vue.d.ts +3 -3
  475. package/es/components/space/src/item.d.ts +1 -1
  476. package/es/components/space/src/item.mjs.map +1 -1
  477. package/es/components/space/src/space.d.ts +1 -1
  478. package/es/components/space/src/space.mjs.map +1 -1
  479. package/es/components/statistic/src/statistic.d.ts +1 -1
  480. package/es/components/statistic/src/statistic.mjs.map +1 -1
  481. package/es/components/steps/index.mjs +2 -2
  482. package/es/components/steps/src/item.d.ts +1 -1
  483. package/es/components/steps/src/item.mjs.map +1 -1
  484. package/es/components/steps/src/steps.d.ts +1 -1
  485. package/es/components/steps/src/steps.mjs +38 -35
  486. package/es/components/steps/src/steps.mjs.map +1 -1
  487. package/es/components/steps/src/steps2.mjs +35 -38
  488. package/es/components/steps/src/steps2.mjs.map +1 -1
  489. package/es/components/switch/src/switch.d.ts +1 -1
  490. package/es/components/switch/src/switch.mjs.map +1 -1
  491. package/es/components/table/index.d.ts +2 -2
  492. package/es/components/table/index.mjs.map +1 -1
  493. package/es/components/table/src/filter-panel.mjs.map +1 -1
  494. package/es/components/table/src/filter-panel.vue.d.ts +2 -1085
  495. package/es/components/table/src/table-body/index.d.ts +1 -1
  496. package/es/components/table/src/table-column/index.d.ts +1 -1
  497. package/es/components/table/src/table-column/index.mjs +1 -1
  498. package/es/components/table/src/table-column/index.mjs.map +1 -1
  499. package/es/components/table-v2/src/table-v2.d.ts +12 -12
  500. package/es/components/table-v2/src/use-table.d.ts +4 -4
  501. package/es/components/tabs/src/tab-bar.d.ts +1 -1
  502. package/es/components/tabs/src/tab-bar.mjs.map +1 -1
  503. package/es/components/tabs/src/tab-pane.d.ts +1 -1
  504. package/es/components/tabs/src/tab-pane.mjs.map +1 -1
  505. package/es/components/tag/src/tag.d.ts +1 -1
  506. package/es/components/tag/src/tag.mjs.map +1 -1
  507. package/es/components/teleport/src/teleport.d.ts +1 -1
  508. package/es/components/teleport/src/teleport.mjs.map +1 -1
  509. package/es/components/time-picker/src/props/basic-time-spinner.d.ts +3 -3
  510. package/es/components/time-picker/src/time-picker-com/basic-time-spinner.vue.d.ts +6 -6
  511. package/es/components/time-picker/src/time-picker.d.ts +9 -9
  512. package/es/components/time-select/index.mjs +2 -2
  513. package/es/components/time-select/src/time-select.d.ts +1 -1
  514. package/es/components/time-select/src/time-select.mjs +132 -54
  515. package/es/components/time-select/src/time-select.mjs.map +1 -1
  516. package/es/components/time-select/src/time-select.vue.d.ts +3 -3
  517. package/es/components/time-select/src/time-select2.mjs +54 -132
  518. package/es/components/time-select/src/time-select2.mjs.map +1 -1
  519. package/es/components/timeline/index.mjs +2 -2
  520. package/es/components/timeline/src/timeline-item.d.ts +1 -1
  521. package/es/components/timeline/src/timeline-item.mjs +72 -33
  522. package/es/components/timeline/src/timeline-item.mjs.map +1 -1
  523. package/es/components/timeline/src/timeline-item2.mjs +33 -72
  524. package/es/components/timeline/src/timeline-item2.mjs.map +1 -1
  525. package/es/components/timeline/src/timeline.d.ts +1 -1
  526. package/es/components/timeline/src/timeline.mjs.map +1 -1
  527. package/es/components/tooltip/index.mjs +1 -1
  528. package/es/components/tooltip/src/content.d.ts +1 -1
  529. package/es/components/tooltip/src/content.mjs.map +1 -1
  530. package/es/components/tooltip/src/content.vue.d.ts +2 -847
  531. package/es/components/tooltip/src/tooltip.d.ts +1 -1
  532. package/es/components/tooltip/src/tooltip.mjs +1 -1
  533. package/es/components/tooltip/src/tooltip.mjs.map +1 -1
  534. package/es/components/tooltip/src/tooltip.vue.d.ts +27 -7
  535. package/es/components/tooltip/src/tooltip2.mjs +1 -1
  536. package/es/components/tooltip/src/tooltip2.mjs.map +1 -1
  537. package/es/components/tooltip/src/trigger.mjs +72 -14
  538. package/es/components/tooltip/src/trigger.mjs.map +1 -1
  539. package/es/components/tooltip/src/trigger2.mjs +14 -72
  540. package/es/components/tooltip/src/trigger2.mjs.map +1 -1
  541. package/es/components/tooltip-v2/index.mjs +2 -2
  542. package/es/components/tooltip-v2/src/content.vue.d.ts +3 -3
  543. package/es/components/tooltip-v2/src/root.mjs +79 -17
  544. package/es/components/tooltip-v2/src/root.mjs.map +1 -1
  545. package/es/components/tooltip-v2/src/root2.mjs +17 -79
  546. package/es/components/tooltip-v2/src/root2.mjs.map +1 -1
  547. package/es/components/tooltip-v2/src/tooltip.d.ts +1 -1
  548. package/es/components/tooltip-v2/src/tooltip.mjs +2 -2
  549. package/es/components/tooltip-v2/src/tooltip.vue.d.ts +3 -3
  550. package/es/components/tooltip-v2/src/tooltip2.mjs +4 -4
  551. package/es/components/tooltip-v2/src/trigger.mjs +89 -12
  552. package/es/components/tooltip-v2/src/trigger.mjs.map +1 -1
  553. package/es/components/tooltip-v2/src/trigger2.mjs +12 -89
  554. package/es/components/tooltip-v2/src/trigger2.mjs.map +1 -1
  555. package/es/components/tour/index.mjs +1 -1
  556. package/es/components/tour/src/content.mjs +43 -67
  557. package/es/components/tour/src/content.mjs.map +1 -1
  558. package/es/components/tour/src/content2.mjs +67 -43
  559. package/es/components/tour/src/content2.mjs.map +1 -1
  560. package/es/components/tour/src/step.mjs +1 -1
  561. package/es/components/tour/src/tour.d.ts +1 -1
  562. package/es/components/tour/src/tour.mjs +1 -1
  563. package/es/components/tour/src/tour.mjs.map +1 -1
  564. package/es/components/tour/src/tour.vue.d.ts +8 -8
  565. package/es/components/tour/src/tour2.mjs +1 -1
  566. package/es/components/transfer/src/transfer-panel.d.ts +1 -1
  567. package/es/components/transfer/src/transfer-panel.mjs.map +1 -1
  568. package/es/components/transfer/src/transfer-panel.vue.d.ts +18 -18
  569. package/es/components/transfer/src/transfer.d.ts +1 -1
  570. package/es/components/transfer/src/transfer.mjs.map +1 -1
  571. package/es/components/transfer/src/transfer.vue.d.ts +5 -3
  572. package/es/components/transfer/src/transfer2.mjs.map +1 -1
  573. package/es/components/tree/src/instance.d.ts +1 -1
  574. package/es/components/tree-v2/src/tree.vue.d.ts +17 -17
  575. package/es/components/upload/index.mjs +2 -2
  576. package/es/components/upload/src/upload-content.d.ts +1 -1
  577. package/es/components/upload/src/upload-content.mjs +33 -196
  578. package/es/components/upload/src/upload-content.mjs.map +1 -1
  579. package/es/components/upload/src/upload-content2.mjs +196 -33
  580. package/es/components/upload/src/upload-content2.mjs.map +1 -1
  581. package/es/components/upload/src/upload-dragger.d.ts +1 -1
  582. package/es/components/upload/src/upload-dragger.mjs +56 -10
  583. package/es/components/upload/src/upload-dragger.mjs.map +1 -1
  584. package/es/components/upload/src/upload-dragger2.mjs +10 -56
  585. package/es/components/upload/src/upload-dragger2.mjs.map +1 -1
  586. package/es/components/upload/src/upload-list.d.ts +1 -1
  587. package/es/components/upload/src/upload-list.mjs.map +1 -1
  588. package/es/components/upload/src/upload.d.ts +1 -1
  589. package/es/components/upload/src/upload.mjs.map +1 -1
  590. package/es/components/upload/src/upload2.mjs +1 -1
  591. package/es/components/virtual-list/src/components/dynamic-size-list.d.ts +1 -1
  592. package/es/components/virtual-list/src/components/dynamic-size-list.mjs.map +1 -1
  593. package/es/components/virtual-list/src/components/fixed-size-grid.d.ts +13 -13
  594. package/es/components/virtual-list/src/components/fixed-size-list.d.ts +4 -4
  595. package/es/components/virtual-list/src/components/fixed-size-list.mjs.map +1 -1
  596. package/es/components/watermark/src/watermark.d.ts +1 -1
  597. package/es/components/watermark/src/watermark.mjs.map +1 -1
  598. package/es/index.mjs +17 -17
  599. package/es/version.d.ts +1 -1
  600. package/es/version.mjs +1 -1
  601. package/es/version.mjs.map +1 -1
  602. package/lib/components/affix/src/affix.d.ts +1 -1
  603. package/lib/components/affix/src/affix.js.map +1 -1
  604. package/lib/components/alert/src/instance.d.ts +1 -1
  605. package/lib/components/anchor/src/anchor.d.ts +1 -1
  606. package/lib/components/anchor/src/anchor2.js.map +1 -1
  607. package/lib/components/autocomplete/src/autocomplete.d.ts +1 -1
  608. package/lib/components/autocomplete/src/autocomplete.js.map +1 -1
  609. package/lib/components/autocomplete/src/autocomplete.vue.d.ts +25 -13
  610. package/lib/components/autocomplete/src/autocomplete2.js.map +1 -1
  611. package/lib/components/avatar/index.js +2 -2
  612. package/lib/components/avatar/src/avatar.js +65 -32
  613. package/lib/components/avatar/src/avatar.js.map +1 -1
  614. package/lib/components/avatar/src/avatar2.js +32 -65
  615. package/lib/components/avatar/src/avatar2.js.map +1 -1
  616. package/lib/components/avatar/src/instance.d.ts +1 -1
  617. package/lib/components/backtop/src/instance.d.ts +1 -1
  618. package/lib/components/badge/src/instance.d.ts +1 -1
  619. package/lib/components/breadcrumb/src/instances.d.ts +2 -2
  620. package/lib/components/button/src/button.vue.d.ts +2 -2
  621. package/lib/components/button/src/instance.d.ts +2 -2
  622. package/lib/components/calendar/src/instance.d.ts +2 -2
  623. package/lib/components/card/index.js +2 -2
  624. package/lib/components/card/src/card.js +42 -20
  625. package/lib/components/card/src/card.js.map +1 -1
  626. package/lib/components/card/src/card2.js +20 -42
  627. package/lib/components/card/src/card2.js.map +1 -1
  628. package/lib/components/card/src/instance.d.ts +1 -1
  629. package/lib/components/carousel/src/instance.d.ts +2 -2
  630. package/lib/components/cascader/src/cascader.d.ts +1 -1
  631. package/lib/components/cascader/src/cascader.vue.d.ts +6 -393
  632. package/lib/components/cascader/src/instances.d.ts +1 -1
  633. package/lib/components/cascader-panel/src/instance.d.ts +1 -1
  634. package/lib/components/check-tag/src/check-tag.d.ts +1 -1
  635. package/lib/components/check-tag/src/check-tag.js.map +1 -1
  636. package/lib/components/checkbox/src/checkbox-group.d.ts +1 -1
  637. package/lib/components/checkbox/src/checkbox-group.js.map +1 -1
  638. package/lib/components/checkbox/src/checkbox-group.vue.d.ts +2 -2
  639. package/lib/components/checkbox/src/checkbox.d.ts +1 -1
  640. package/lib/components/checkbox/src/checkbox.js.map +1 -1
  641. package/lib/components/col/src/col.d.ts +1 -1
  642. package/lib/components/col/src/col.js.map +1 -1
  643. package/lib/components/collapse/src/collapse-item.vue.d.ts +3 -3
  644. package/lib/components/collapse/src/instance.d.ts +2 -2
  645. package/lib/components/color-picker/src/color-picker.d.ts +1 -1
  646. package/lib/components/color-picker/src/color-picker.js.map +1 -1
  647. package/lib/components/config-provider/src/config-provider.d.ts +3 -3
  648. package/lib/components/config-provider/src/config-provider.js.map +1 -1
  649. package/lib/components/config-provider/src/hooks/use-global-config.d.ts +1 -1
  650. package/lib/components/container/index.d.ts +5 -5
  651. package/lib/components/container/index.js.map +1 -1
  652. package/lib/components/countdown/src/countdown.d.ts +1 -1
  653. package/lib/components/countdown/src/countdown.js.map +1 -1
  654. package/lib/components/date-picker/src/date-picker.d.ts +9 -9
  655. package/lib/components/date-picker/src/panel-utils.d.ts +34 -34
  656. package/lib/components/date-picker/src/props/date-picker.d.ts +3 -3
  657. package/lib/components/descriptions/src/description.d.ts +1 -1
  658. package/lib/components/descriptions/src/description.js.map +1 -1
  659. package/lib/components/descriptions/src/descriptions-row.vue.d.ts +3 -3
  660. package/lib/components/dialog/src/dialog.d.ts +1 -1
  661. package/lib/components/dialog/src/dialog.js.map +1 -1
  662. package/lib/components/dialog/src/dialog.vue.d.ts +32 -32
  663. package/lib/components/divider/index.js +2 -2
  664. package/lib/components/divider/src/divider.d.ts +1 -1
  665. package/lib/components/divider/src/divider.js +34 -16
  666. package/lib/components/divider/src/divider.js.map +1 -1
  667. package/lib/components/divider/src/divider2.js +16 -34
  668. package/lib/components/divider/src/divider2.js.map +1 -1
  669. package/lib/components/dropdown/src/dropdown.js +1 -1
  670. package/lib/components/dropdown/src/dropdown.vue.d.ts +11 -1094
  671. package/lib/components/dropdown/src/instance.d.ts +1 -1
  672. package/lib/components/dropdown/src/tokens.d.ts +1 -1
  673. package/lib/components/dropdown/src/tokens.js.map +1 -1
  674. package/lib/components/empty/src/instance.d.ts +1 -1
  675. package/lib/components/form/index.d.ts +2 -2
  676. package/lib/components/form/index.js.map +1 -1
  677. package/lib/components/icon/src/icon.d.ts +1 -1
  678. package/lib/components/icon/src/icon.js.map +1 -1
  679. package/lib/components/image/src/image.d.ts +1 -1
  680. package/lib/components/image/src/image.js.map +1 -1
  681. package/lib/components/image-viewer/src/image-viewer.d.ts +1 -1
  682. package/lib/components/image-viewer/src/image-viewer.js.map +1 -1
  683. package/lib/components/index.js +17 -17
  684. package/lib/components/input/src/instance.d.ts +1 -1
  685. package/lib/components/input-number/src/input-number.d.ts +1 -1
  686. package/lib/components/input-number/src/input-number.js.map +1 -1
  687. package/lib/components/input-tag/src/instance.d.ts +1 -1
  688. package/lib/components/link/src/link.d.ts +1 -1
  689. package/lib/components/link/src/link.js.map +1 -1
  690. package/lib/components/mention/src/mention.d.ts +1 -1
  691. package/lib/components/mention/src/mention.js.map +1 -1
  692. package/lib/components/mention/src/mention.vue.d.ts +4 -4
  693. package/lib/components/mention/src/mention2.js.map +1 -1
  694. package/lib/components/menu/src/instance.d.ts +3 -3
  695. package/lib/components/message/src/message.d.ts +1 -1
  696. package/lib/components/message/src/message.js.map +1 -1
  697. package/lib/components/message/src/message.vue.d.ts +1 -1
  698. package/lib/components/notification/index.js +1 -1
  699. package/lib/components/notification/src/notification.d.ts +1 -1
  700. package/lib/components/notification/src/notification.js +141 -69
  701. package/lib/components/notification/src/notification.js.map +1 -1
  702. package/lib/components/notification/src/notification2.js +69 -141
  703. package/lib/components/notification/src/notification2.js.map +1 -1
  704. package/lib/components/notification/src/notify.js +2 -2
  705. package/lib/components/page-header/src/page-header.d.ts +1 -1
  706. package/lib/components/page-header/src/page-header.js.map +1 -1
  707. package/lib/components/pagination/src/components/jumper.d.ts +1 -1
  708. package/lib/components/pagination/src/components/jumper.js.map +1 -1
  709. package/lib/components/pagination/src/components/next.d.ts +1 -1
  710. package/lib/components/pagination/src/components/next.js.map +1 -1
  711. package/lib/components/pagination/src/components/pager.d.ts +1 -1
  712. package/lib/components/pagination/src/components/pager.js +16 -210
  713. package/lib/components/pagination/src/components/pager.js.map +1 -1
  714. package/lib/components/pagination/src/components/pager2.js +210 -16
  715. package/lib/components/pagination/src/components/pager2.js.map +1 -1
  716. package/lib/components/pagination/src/components/prev.d.ts +1 -1
  717. package/lib/components/pagination/src/components/prev.js.map +1 -1
  718. package/lib/components/pagination/src/components/sizes.d.ts +1 -1
  719. package/lib/components/pagination/src/components/sizes.js.map +1 -1
  720. package/lib/components/pagination/src/components/total.d.ts +1 -1
  721. package/lib/components/pagination/src/components/total.js.map +1 -1
  722. package/lib/components/pagination/src/pagination.js +1 -1
  723. package/lib/components/popconfirm/index.js +2 -2
  724. package/lib/components/popconfirm/src/popconfirm.d.ts +1 -1
  725. package/lib/components/popconfirm/src/popconfirm.js +46 -114
  726. package/lib/components/popconfirm/src/popconfirm.js.map +1 -1
  727. package/lib/components/popconfirm/src/popconfirm2.js +114 -46
  728. package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
  729. package/lib/components/popover/src/popover.d.ts +4 -4
  730. package/lib/components/popover/src/popover.js +1 -1
  731. package/lib/components/popover/src/popover.js.map +1 -1
  732. package/lib/components/popover/src/popover.vue.d.ts +10 -71
  733. package/lib/components/popper/src/arrow.d.ts +1 -1
  734. package/lib/components/popper/src/arrow.js.map +1 -1
  735. package/lib/components/popper/src/content.d.ts +1 -1
  736. package/lib/components/popper/src/content.js.map +1 -1
  737. package/lib/components/popper/src/content.vue.d.ts +12 -12
  738. package/lib/components/popper/src/popper.d.ts +1 -1
  739. package/lib/components/popper/src/popper.js.map +1 -1
  740. package/lib/components/popper/src/trigger.d.ts +1 -1
  741. package/lib/components/popper/src/trigger.js.map +1 -1
  742. package/lib/components/progress/index.js +2 -2
  743. package/lib/components/progress/src/progress.d.ts +1 -1
  744. package/lib/components/progress/src/progress.js +207 -53
  745. package/lib/components/progress/src/progress.js.map +1 -1
  746. package/lib/components/progress/src/progress2.js +53 -207
  747. package/lib/components/progress/src/progress2.js.map +1 -1
  748. package/lib/components/radio/index.js +2 -2
  749. package/lib/components/radio/src/radio-button.d.ts +1 -1
  750. package/lib/components/radio/src/radio-button.js.map +1 -1
  751. package/lib/components/radio/src/radio-group.d.ts +1 -1
  752. package/lib/components/radio/src/radio-group.js +65 -35
  753. package/lib/components/radio/src/radio-group.js.map +1 -1
  754. package/lib/components/radio/src/radio-group2.js +35 -65
  755. package/lib/components/radio/src/radio-group2.js.map +1 -1
  756. package/lib/components/radio/src/radio.d.ts +1 -1
  757. package/lib/components/radio/src/radio.js.map +1 -1
  758. package/lib/components/rate/src/rate.d.ts +1 -1
  759. package/lib/components/rate/src/rate.js.map +1 -1
  760. package/lib/components/result/src/result.d.ts +1 -1
  761. package/lib/components/result/src/result.js.map +1 -1
  762. package/lib/components/row/index.js +2 -2
  763. package/lib/components/row/src/row.d.ts +1 -1
  764. package/lib/components/row/src/row.js +44 -30
  765. package/lib/components/row/src/row.js.map +1 -1
  766. package/lib/components/row/src/row2.js +30 -44
  767. package/lib/components/row/src/row2.js.map +1 -1
  768. package/lib/components/scrollbar/index.js +2 -2
  769. package/lib/components/scrollbar/src/bar.d.ts +1 -1
  770. package/lib/components/scrollbar/src/bar.js.map +1 -1
  771. package/lib/components/scrollbar/src/scrollbar.d.ts +1 -1
  772. package/lib/components/scrollbar/src/scrollbar.js +170 -56
  773. package/lib/components/scrollbar/src/scrollbar.js.map +1 -1
  774. package/lib/components/scrollbar/src/scrollbar2.js +56 -170
  775. package/lib/components/scrollbar/src/scrollbar2.js.map +1 -1
  776. package/lib/components/scrollbar/src/thumb.d.ts +1 -1
  777. package/lib/components/scrollbar/src/thumb.js.map +1 -1
  778. package/lib/components/segmented/src/segmented.d.ts +1 -1
  779. package/lib/components/segmented/src/segmented.js.map +1 -1
  780. package/lib/components/select/index.js +1 -1
  781. package/lib/components/select/src/select.js +113 -429
  782. package/lib/components/select/src/select.js.map +1 -1
  783. package/lib/components/select/src/select.vue.d.ts +121 -71
  784. package/lib/components/select/src/select2.js +429 -113
  785. package/lib/components/select/src/select2.js.map +1 -1
  786. package/lib/components/select/src/useSelect.d.ts +110 -63
  787. package/lib/components/select/src/useSelect.js.map +1 -1
  788. package/lib/components/select-v2/src/select.vue.d.ts +64 -25
  789. package/lib/components/select-v2/src/useSelect.d.ts +86 -50
  790. package/lib/components/select-v2/src/useSelect.js +6 -0
  791. package/lib/components/select-v2/src/useSelect.js.map +1 -1
  792. package/lib/components/skeleton/index.js +2 -2
  793. package/lib/components/skeleton/src/skeleton-item.d.ts +1 -1
  794. package/lib/components/skeleton/src/skeleton-item.js.map +1 -1
  795. package/lib/components/skeleton/src/skeleton.d.ts +1 -1
  796. package/lib/components/skeleton/src/skeleton.js +21 -48
  797. package/lib/components/skeleton/src/skeleton.js.map +1 -1
  798. package/lib/components/skeleton/src/skeleton2.js +48 -21
  799. package/lib/components/skeleton/src/skeleton2.js.map +1 -1
  800. package/lib/components/slider/src/button.vue.d.ts +3 -3
  801. package/lib/components/slider/src/composables/use-slider-button.d.ts +5 -9
  802. package/lib/components/slider/src/composables/use-slider-button.js.map +1 -1
  803. package/lib/components/slider/src/slider.d.ts +1 -1
  804. package/lib/components/slider/src/slider.js.map +1 -1
  805. package/lib/components/slider/src/slider.vue.d.ts +3 -3
  806. package/lib/components/space/src/item.d.ts +1 -1
  807. package/lib/components/space/src/item.js.map +1 -1
  808. package/lib/components/space/src/space.d.ts +1 -1
  809. package/lib/components/space/src/space.js.map +1 -1
  810. package/lib/components/statistic/src/statistic.d.ts +1 -1
  811. package/lib/components/statistic/src/statistic.js.map +1 -1
  812. package/lib/components/steps/index.js +2 -2
  813. package/lib/components/steps/src/item.d.ts +1 -1
  814. package/lib/components/steps/src/item.js.map +1 -1
  815. package/lib/components/steps/src/steps.d.ts +1 -1
  816. package/lib/components/steps/src/steps.js +38 -36
  817. package/lib/components/steps/src/steps.js.map +1 -1
  818. package/lib/components/steps/src/steps2.js +36 -38
  819. package/lib/components/steps/src/steps2.js.map +1 -1
  820. package/lib/components/switch/src/switch.d.ts +1 -1
  821. package/lib/components/switch/src/switch.js.map +1 -1
  822. package/lib/components/table/index.d.ts +2 -2
  823. package/lib/components/table/index.js.map +1 -1
  824. package/lib/components/table/src/filter-panel.js.map +1 -1
  825. package/lib/components/table/src/filter-panel.vue.d.ts +2 -1085
  826. package/lib/components/table/src/table-body/index.d.ts +1 -1
  827. package/lib/components/table/src/table-column/index.d.ts +1 -1
  828. package/lib/components/table/src/table-column/index.js +1 -1
  829. package/lib/components/table/src/table-column/index.js.map +1 -1
  830. package/lib/components/table-v2/src/table-v2.d.ts +12 -12
  831. package/lib/components/table-v2/src/use-table.d.ts +4 -4
  832. package/lib/components/tabs/src/tab-bar.d.ts +1 -1
  833. package/lib/components/tabs/src/tab-bar.js.map +1 -1
  834. package/lib/components/tabs/src/tab-pane.d.ts +1 -1
  835. package/lib/components/tabs/src/tab-pane.js.map +1 -1
  836. package/lib/components/tag/src/tag.d.ts +1 -1
  837. package/lib/components/tag/src/tag.js.map +1 -1
  838. package/lib/components/teleport/src/teleport.d.ts +1 -1
  839. package/lib/components/teleport/src/teleport.js.map +1 -1
  840. package/lib/components/time-picker/src/props/basic-time-spinner.d.ts +3 -3
  841. package/lib/components/time-picker/src/time-picker-com/basic-time-spinner.vue.d.ts +6 -6
  842. package/lib/components/time-picker/src/time-picker.d.ts +9 -9
  843. package/lib/components/time-select/index.js +2 -2
  844. package/lib/components/time-select/src/time-select.d.ts +1 -1
  845. package/lib/components/time-select/src/time-select.js +137 -54
  846. package/lib/components/time-select/src/time-select.js.map +1 -1
  847. package/lib/components/time-select/src/time-select.vue.d.ts +3 -3
  848. package/lib/components/time-select/src/time-select2.js +54 -137
  849. package/lib/components/time-select/src/time-select2.js.map +1 -1
  850. package/lib/components/timeline/index.js +2 -2
  851. package/lib/components/timeline/src/timeline-item.d.ts +1 -1
  852. package/lib/components/timeline/src/timeline-item.js +72 -33
  853. package/lib/components/timeline/src/timeline-item.js.map +1 -1
  854. package/lib/components/timeline/src/timeline-item2.js +33 -72
  855. package/lib/components/timeline/src/timeline-item2.js.map +1 -1
  856. package/lib/components/timeline/src/timeline.d.ts +1 -1
  857. package/lib/components/timeline/src/timeline.js.map +1 -1
  858. package/lib/components/tooltip/index.js +1 -1
  859. package/lib/components/tooltip/src/content.d.ts +1 -1
  860. package/lib/components/tooltip/src/content.js.map +1 -1
  861. package/lib/components/tooltip/src/content.vue.d.ts +2 -847
  862. package/lib/components/tooltip/src/tooltip.d.ts +1 -1
  863. package/lib/components/tooltip/src/tooltip.js +1 -1
  864. package/lib/components/tooltip/src/tooltip.js.map +1 -1
  865. package/lib/components/tooltip/src/tooltip.vue.d.ts +27 -7
  866. package/lib/components/tooltip/src/tooltip2.js +1 -1
  867. package/lib/components/tooltip/src/tooltip2.js.map +1 -1
  868. package/lib/components/tooltip/src/trigger.js +72 -14
  869. package/lib/components/tooltip/src/trigger.js.map +1 -1
  870. package/lib/components/tooltip/src/trigger2.js +14 -72
  871. package/lib/components/tooltip/src/trigger2.js.map +1 -1
  872. package/lib/components/tooltip-v2/index.js +2 -2
  873. package/lib/components/tooltip-v2/src/content.vue.d.ts +3 -3
  874. package/lib/components/tooltip-v2/src/root.js +79 -17
  875. package/lib/components/tooltip-v2/src/root.js.map +1 -1
  876. package/lib/components/tooltip-v2/src/root2.js +17 -79
  877. package/lib/components/tooltip-v2/src/root2.js.map +1 -1
  878. package/lib/components/tooltip-v2/src/tooltip.d.ts +1 -1
  879. package/lib/components/tooltip-v2/src/tooltip.js +2 -2
  880. package/lib/components/tooltip-v2/src/tooltip.vue.d.ts +3 -3
  881. package/lib/components/tooltip-v2/src/tooltip2.js +4 -4
  882. package/lib/components/tooltip-v2/src/trigger.js +89 -12
  883. package/lib/components/tooltip-v2/src/trigger.js.map +1 -1
  884. package/lib/components/tooltip-v2/src/trigger2.js +12 -89
  885. package/lib/components/tooltip-v2/src/trigger2.js.map +1 -1
  886. package/lib/components/tour/index.js +1 -1
  887. package/lib/components/tour/src/content.js +46 -67
  888. package/lib/components/tour/src/content.js.map +1 -1
  889. package/lib/components/tour/src/content2.js +67 -46
  890. package/lib/components/tour/src/content2.js.map +1 -1
  891. package/lib/components/tour/src/step.js +1 -1
  892. package/lib/components/tour/src/tour.d.ts +1 -1
  893. package/lib/components/tour/src/tour.js +1 -1
  894. package/lib/components/tour/src/tour.js.map +1 -1
  895. package/lib/components/tour/src/tour.vue.d.ts +8 -8
  896. package/lib/components/tour/src/tour2.js +1 -1
  897. package/lib/components/transfer/src/transfer-panel.d.ts +1 -1
  898. package/lib/components/transfer/src/transfer-panel.js.map +1 -1
  899. package/lib/components/transfer/src/transfer-panel.vue.d.ts +18 -18
  900. package/lib/components/transfer/src/transfer.d.ts +1 -1
  901. package/lib/components/transfer/src/transfer.js.map +1 -1
  902. package/lib/components/transfer/src/transfer.vue.d.ts +5 -3
  903. package/lib/components/transfer/src/transfer2.js.map +1 -1
  904. package/lib/components/tree/src/instance.d.ts +1 -1
  905. package/lib/components/tree-v2/src/tree.vue.d.ts +17 -17
  906. package/lib/components/upload/index.js +2 -2
  907. package/lib/components/upload/src/upload-content.d.ts +1 -1
  908. package/lib/components/upload/src/upload-content.js +31 -194
  909. package/lib/components/upload/src/upload-content.js.map +1 -1
  910. package/lib/components/upload/src/upload-content2.js +194 -31
  911. package/lib/components/upload/src/upload-content2.js.map +1 -1
  912. package/lib/components/upload/src/upload-dragger.d.ts +1 -1
  913. package/lib/components/upload/src/upload-dragger.js +56 -11
  914. package/lib/components/upload/src/upload-dragger.js.map +1 -1
  915. package/lib/components/upload/src/upload-dragger2.js +11 -56
  916. package/lib/components/upload/src/upload-dragger2.js.map +1 -1
  917. package/lib/components/upload/src/upload-list.d.ts +1 -1
  918. package/lib/components/upload/src/upload-list.js.map +1 -1
  919. package/lib/components/upload/src/upload.d.ts +1 -1
  920. package/lib/components/upload/src/upload.js.map +1 -1
  921. package/lib/components/upload/src/upload2.js +1 -1
  922. package/lib/components/virtual-list/src/components/dynamic-size-list.d.ts +1 -1
  923. package/lib/components/virtual-list/src/components/dynamic-size-list.js.map +1 -1
  924. package/lib/components/virtual-list/src/components/fixed-size-grid.d.ts +13 -13
  925. package/lib/components/virtual-list/src/components/fixed-size-list.d.ts +4 -4
  926. package/lib/components/virtual-list/src/components/fixed-size-list.js.map +1 -1
  927. package/lib/components/watermark/src/watermark.d.ts +1 -1
  928. package/lib/components/watermark/src/watermark.js.map +1 -1
  929. package/lib/index.js +17 -17
  930. package/lib/version.d.ts +1 -1
  931. package/lib/version.js +1 -1
  932. package/lib/version.js.map +1 -1
  933. package/package.json +2 -2
  934. package/web-types.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"use-slider-button.js","sources":["../../../../../../../packages/components/slider/src/composables/use-slider-button.ts"],"sourcesContent":["import { computed, inject, nextTick, ref, watch } from 'vue'\nimport { debounce } from 'lodash-unified'\nimport { useEventListener } from '@vueuse/core'\nimport { EVENT_CODE, UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { sliderContextKey } from '../constants'\n\nimport type { CSSProperties, ComputedRef, Ref, SetupContext } from 'vue'\nimport type { SliderProps } from '../slider'\nimport type {\n SliderButtonEmits,\n SliderButtonInitData,\n SliderButtonProps,\n} from '../button'\nimport type { TooltipInstance } from '@element-plus/components/tooltip'\n\nconst useTooltip = (\n props: SliderButtonProps,\n formatTooltip: Ref<SliderProps['formatTooltip']>,\n showTooltip: Ref<SliderProps['showTooltip']>\n) => {\n const tooltip = ref<TooltipInstance>()\n\n const tooltipVisible = ref(false)\n\n const enableFormat = computed(() => {\n return formatTooltip.value instanceof Function\n })\n\n const formatValue = computed(() => {\n return (\n (enableFormat.value && formatTooltip.value!(props.modelValue)) ||\n props.modelValue\n )\n })\n\n const displayTooltip = debounce(() => {\n showTooltip.value && (tooltipVisible.value = true)\n }, 50)\n\n const hideTooltip = debounce(() => {\n showTooltip.value && (tooltipVisible.value = false)\n }, 50)\n\n return {\n tooltip,\n tooltipVisible,\n formatValue,\n displayTooltip,\n hideTooltip,\n }\n}\n\ntype HTMLType = HTMLDivElement | undefined\ntype useSliderButtonType = (\n props: SliderButtonProps,\n initData: SliderButtonInitData,\n emit: SetupContext<SliderButtonEmits>['emit']\n) => {\n disabled: Ref<boolean>\n button: Ref<HTMLType>\n tooltip: Ref<TooltipInstance | undefined>\n tooltipVisible: Ref<boolean>\n showTooltip: Ref<SliderProps['showTooltip']>\n persistent: Ref<SliderProps['persistent']>\n wrapperStyle: ComputedRef<CSSProperties>\n formatValue: ComputedRef<number | string>\n handleMouseEnter: () => void\n handleMouseLeave: () => void\n onButtonDown: (event: MouseEvent | TouchEvent) => void\n onKeyDown: (event: KeyboardEvent) => void\n setPosition: (newPosition: number) => Promise<void>\n}\n\nexport const useSliderButton: useSliderButtonType = (\n props: SliderButtonProps,\n initData: SliderButtonInitData,\n emit: SetupContext<SliderButtonEmits>['emit']\n) => {\n const {\n disabled,\n min,\n max,\n step,\n showTooltip,\n persistent,\n precision,\n sliderSize,\n formatTooltip,\n emitChange,\n resetSize,\n updateDragging,\n } = inject(sliderContextKey)!\n\n const { tooltip, tooltipVisible, formatValue, displayTooltip, hideTooltip } =\n useTooltip(props, formatTooltip!, showTooltip)\n\n const button = ref<HTMLDivElement>()\n\n const currentPosition = computed(() => {\n return `${\n ((props.modelValue - min.value) / (max.value - min.value)) * 100\n }%`\n })\n\n const wrapperStyle: ComputedRef<CSSProperties> = computed(() => {\n return props.vertical\n ? { bottom: currentPosition.value }\n : { left: currentPosition.value }\n })\n\n const handleMouseEnter = () => {\n initData.hovering = true\n displayTooltip()\n }\n\n const handleMouseLeave = () => {\n initData.hovering = false\n if (!initData.dragging) {\n hideTooltip()\n }\n }\n\n const onButtonDown = (event: MouseEvent | TouchEvent) => {\n if (disabled.value) return\n event.preventDefault()\n onDragStart(event)\n window.addEventListener('mousemove', onDragging)\n window.addEventListener('touchmove', onDragging)\n window.addEventListener('mouseup', onDragEnd)\n window.addEventListener('touchend', onDragEnd)\n window.addEventListener('contextmenu', onDragEnd)\n button.value!.focus()\n }\n\n const incrementPosition = (amount: number) => {\n if (disabled.value) return\n initData.newPosition =\n Number.parseFloat(currentPosition.value) +\n (amount / (max.value - min.value)) * 100\n setPosition(initData.newPosition)\n emitChange()\n }\n\n const onLeftKeyDown = () => {\n incrementPosition(-step.value)\n }\n\n const onRightKeyDown = () => {\n incrementPosition(step.value)\n }\n\n const onPageDownKeyDown = () => {\n incrementPosition(-step.value * 4)\n }\n\n const onPageUpKeyDown = () => {\n incrementPosition(step.value * 4)\n }\n\n const onHomeKeyDown = () => {\n if (disabled.value) return\n setPosition(0)\n emitChange()\n }\n\n const onEndKeyDown = () => {\n if (disabled.value) return\n setPosition(100)\n emitChange()\n }\n\n const onKeyDown = (event: KeyboardEvent) => {\n let isPreventDefault = true\n\n switch (event.code) {\n case EVENT_CODE.left:\n case EVENT_CODE.down:\n onLeftKeyDown()\n break\n case EVENT_CODE.right:\n case EVENT_CODE.up:\n onRightKeyDown()\n break\n case EVENT_CODE.home:\n onHomeKeyDown()\n break\n case EVENT_CODE.end:\n onEndKeyDown()\n break\n case EVENT_CODE.pageDown:\n onPageDownKeyDown()\n break\n case EVENT_CODE.pageUp:\n onPageUpKeyDown()\n break\n default:\n isPreventDefault = false\n break\n }\n\n isPreventDefault && event.preventDefault()\n }\n\n const getClientXY = (event: MouseEvent | TouchEvent) => {\n let clientX: number\n let clientY: number\n 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\n const onDragStart = (event: MouseEvent | TouchEvent) => {\n initData.dragging = true\n initData.isClick = true\n const { clientX, clientY } = getClientXY(event)\n if (props.vertical) {\n initData.startY = clientY\n } else {\n initData.startX = clientX\n }\n initData.startPosition = Number.parseFloat(currentPosition.value)\n initData.newPosition = initData.startPosition\n }\n\n const onDragging = (event: MouseEvent | TouchEvent) => {\n if (initData.dragging) {\n initData.isClick = false\n displayTooltip()\n resetSize()\n let diff: number\n const { clientX, clientY } = getClientXY(event)\n if (props.vertical) {\n initData.currentY = clientY\n diff = ((initData.startY - initData.currentY) / sliderSize.value) * 100\n } else {\n initData.currentX = clientX\n diff = ((initData.currentX - initData.startX) / sliderSize.value) * 100\n }\n initData.newPosition = initData.startPosition + diff\n setPosition(initData.newPosition)\n }\n }\n\n const onDragEnd = () => {\n if (initData.dragging) {\n /*\n * 防止在 mouseup 后立即触发 click,导致滑块有几率产生一小段位移\n * 不使用 preventDefault 是因为 mouseup 和 click 没有注册在同一个 DOM 上\n */\n setTimeout(() => {\n initData.dragging = false\n if (!initData.hovering) {\n hideTooltip()\n }\n if (!initData.isClick) {\n setPosition(initData.newPosition)\n }\n emitChange()\n }, 0)\n window.removeEventListener('mousemove', onDragging)\n window.removeEventListener('touchmove', onDragging)\n window.removeEventListener('mouseup', onDragEnd)\n window.removeEventListener('touchend', onDragEnd)\n window.removeEventListener('contextmenu', onDragEnd)\n }\n }\n\n const setPosition = async (newPosition: number) => {\n if (newPosition === null || Number.isNaN(+newPosition)) return\n if (newPosition < 0) {\n newPosition = 0\n } else if (newPosition > 100) {\n newPosition = 100\n }\n const lengthPerStep = 100 / ((max.value - min.value) / step.value)\n const steps = Math.round(newPosition / lengthPerStep)\n let value =\n steps * lengthPerStep * (max.value - min.value) * 0.01 + min.value\n value = Number.parseFloat(value.toFixed(precision.value))\n\n if (value !== props.modelValue) {\n emit(UPDATE_MODEL_EVENT, value)\n }\n\n if (!initData.dragging && props.modelValue !== initData.oldValue) {\n initData.oldValue = props.modelValue\n }\n\n await nextTick()\n initData.dragging && displayTooltip()\n tooltip.value!.updatePopper()\n }\n\n watch(\n () => initData.dragging,\n (val) => {\n updateDragging(val)\n }\n )\n\n useEventListener(button, 'touchstart', onButtonDown, { passive: false })\n\n return {\n disabled,\n button,\n tooltip,\n tooltipVisible,\n showTooltip,\n persistent,\n wrapperStyle,\n formatValue,\n handleMouseEnter,\n handleMouseLeave,\n onButtonDown,\n onKeyDown,\n setPosition,\n }\n}\n"],"names":["ref","computed","debounce","inject","sliderContextKey","EVENT_CODE","UPDATE_MODEL_EVENT","nextTick","watch","useEventListener"],"mappings":";;;;;;;;;;;AAKA,MAAM,UAAU,GAAG,CAAC,KAAK,EAAE,aAAa,EAAE,WAAW,KAAK;AAC1D,EAAE,MAAM,OAAO,GAAGA,OAAG,EAAE,CAAC;AACxB,EAAE,MAAM,cAAc,GAA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AAC,CAAC;AACtC,KAAK;AACL,IAAI,IAAI,CAAC,QAAQ,CAAC,QAAQ,IAAI,KAAK,CAAC,UAAU,KAAK,QAAQ,CAAC,QAAQ,EAAE;AACtE,MAAM,QAAQ,CAAC,QAAQ,GAAG,KAAK,CAAC,UAAU,CAAC;AAC3C,KAAK;AACL,IAAI,MAAMC,YAAQ,EAAE,CAAC;AACrB,IAAI,QAAQ,CAAC,QAAQ,IAAI,cAAc,EAAE,CAAC;AAC1C,IAAI,OAAO,CAAC,KAAK,CAAC,YAAY,EAAE,CAAC;AACjC,GAAG,CAAC;AACJ,EAAEC,SAAK,CAAC,MAAM,QAAQ,CAAC,QAAQ,EAAE,CAAC,GAAG,KAAK;AAC1C,IAAI,cAAc,CAAC,GAAG,CAAC,CAAC;AACxB,GAAG,CAAC,CAAC;AACL,EAAEC,qBAAgB,CAAC,MAAM,EAAE,YAAY,EAAE,YAAY,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC;AAC3E,EAAE,OAAO;AACT,IAAI,QAAQ;AACZ,IAAI,MAAM;AACV,IAAI,OAAO;AACX,IAAI,cAAc;AAClB,IAAI,WAAW;AACf,IAAI,UAAU;AACd,IAAI,YAAY;AAChB,IAAI,WAAW;AACf,IAAI,gBAAgB;AACpB,IAAI,gBAAgB;AACpB,IAAI,YAAY;AAChB,IAAI,SAAS;AACb,IAAI,WAAW;AACf,GAAG,CAAC;AACJ;;;;"}
1
+ {"version":3,"file":"use-slider-button.js","sources":["../../../../../../../packages/components/slider/src/composables/use-slider-button.ts"],"sourcesContent":["import { computed, inject, nextTick, ref, watch } from 'vue'\nimport { debounce } from 'lodash-unified'\nimport { useEventListener } from '@vueuse/core'\nimport { EVENT_CODE, UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { sliderContextKey } from '../constants'\n\nimport type { CSSProperties, ComputedRef, Ref, SetupContext } from 'vue'\nimport type { SliderProps } from '../slider'\nimport type {\n SliderButtonEmits,\n SliderButtonInitData,\n SliderButtonProps,\n} from '../button'\nimport type { TooltipInstance } from '@element-plus/components/tooltip'\n\nconst useTooltip = (\n props: SliderButtonProps,\n formatTooltip: Ref<SliderProps['formatTooltip']>,\n showTooltip: Ref<SliderProps['showTooltip']>\n) => {\n const tooltip = ref<TooltipInstance>()\n\n const tooltipVisible = ref(false)\n\n const enableFormat = computed(() => {\n return formatTooltip.value instanceof Function\n })\n\n const formatValue = computed(() => {\n return (\n (enableFormat.value && formatTooltip.value!(props.modelValue)) ||\n props.modelValue\n )\n })\n\n const displayTooltip = debounce(() => {\n showTooltip.value && (tooltipVisible.value = true)\n }, 50)\n\n const hideTooltip = debounce(() => {\n showTooltip.value && (tooltipVisible.value = false)\n }, 50)\n\n return {\n tooltip,\n tooltipVisible,\n formatValue,\n displayTooltip,\n hideTooltip,\n }\n}\n\nexport const useSliderButton = (\n props: SliderButtonProps,\n initData: SliderButtonInitData,\n emit: SetupContext<SliderButtonEmits>['emit']\n) => {\n const {\n disabled,\n min,\n max,\n step,\n showTooltip,\n persistent,\n precision,\n sliderSize,\n formatTooltip,\n emitChange,\n resetSize,\n updateDragging,\n } = inject(sliderContextKey)!\n\n const { tooltip, tooltipVisible, formatValue, displayTooltip, hideTooltip } =\n useTooltip(props, formatTooltip!, showTooltip)\n\n const button = ref<HTMLDivElement>()\n\n const currentPosition = computed(() => {\n return `${\n ((props.modelValue - min.value) / (max.value - min.value)) * 100\n }%`\n })\n\n const wrapperStyle: ComputedRef<CSSProperties> = computed(() => {\n return props.vertical\n ? { bottom: currentPosition.value }\n : { left: currentPosition.value }\n })\n\n const handleMouseEnter = () => {\n initData.hovering = true\n displayTooltip()\n }\n\n const handleMouseLeave = () => {\n initData.hovering = false\n if (!initData.dragging) {\n hideTooltip()\n }\n }\n\n const onButtonDown = (event: MouseEvent | TouchEvent) => {\n if (disabled.value) return\n event.preventDefault()\n onDragStart(event)\n window.addEventListener('mousemove', onDragging)\n window.addEventListener('touchmove', onDragging)\n window.addEventListener('mouseup', onDragEnd)\n window.addEventListener('touchend', onDragEnd)\n window.addEventListener('contextmenu', onDragEnd)\n button.value!.focus()\n }\n\n const incrementPosition = (amount: number) => {\n if (disabled.value) return\n initData.newPosition =\n Number.parseFloat(currentPosition.value) +\n (amount / (max.value - min.value)) * 100\n setPosition(initData.newPosition)\n emitChange()\n }\n\n const onLeftKeyDown = () => {\n incrementPosition(-step.value)\n }\n\n const onRightKeyDown = () => {\n incrementPosition(step.value)\n }\n\n const onPageDownKeyDown = () => {\n incrementPosition(-step.value * 4)\n }\n\n const onPageUpKeyDown = () => {\n incrementPosition(step.value * 4)\n }\n\n const onHomeKeyDown = () => {\n if (disabled.value) return\n setPosition(0)\n emitChange()\n }\n\n const onEndKeyDown = () => {\n if (disabled.value) return\n setPosition(100)\n emitChange()\n }\n\n const onKeyDown = (event: KeyboardEvent) => {\n let isPreventDefault = true\n\n switch (event.code) {\n case EVENT_CODE.left:\n case EVENT_CODE.down:\n onLeftKeyDown()\n break\n case EVENT_CODE.right:\n case EVENT_CODE.up:\n onRightKeyDown()\n break\n case EVENT_CODE.home:\n onHomeKeyDown()\n break\n case EVENT_CODE.end:\n onEndKeyDown()\n break\n case EVENT_CODE.pageDown:\n onPageDownKeyDown()\n break\n case EVENT_CODE.pageUp:\n onPageUpKeyDown()\n break\n default:\n isPreventDefault = false\n break\n }\n\n isPreventDefault && event.preventDefault()\n }\n\n const getClientXY = (event: MouseEvent | TouchEvent) => {\n let clientX: number\n let clientY: number\n 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\n const onDragStart = (event: MouseEvent | TouchEvent) => {\n initData.dragging = true\n initData.isClick = true\n const { clientX, clientY } = getClientXY(event)\n if (props.vertical) {\n initData.startY = clientY\n } else {\n initData.startX = clientX\n }\n initData.startPosition = Number.parseFloat(currentPosition.value)\n initData.newPosition = initData.startPosition\n }\n\n const onDragging = (event: MouseEvent | TouchEvent) => {\n if (initData.dragging) {\n initData.isClick = false\n displayTooltip()\n resetSize()\n let diff: number\n const { clientX, clientY } = getClientXY(event)\n if (props.vertical) {\n initData.currentY = clientY\n diff = ((initData.startY - initData.currentY) / sliderSize.value) * 100\n } else {\n initData.currentX = clientX\n diff = ((initData.currentX - initData.startX) / sliderSize.value) * 100\n }\n initData.newPosition = initData.startPosition + diff\n setPosition(initData.newPosition)\n }\n }\n\n const onDragEnd = () => {\n if (initData.dragging) {\n /*\n * 防止在 mouseup 后立即触发 click,导致滑块有几率产生一小段位移\n * 不使用 preventDefault 是因为 mouseup 和 click 没有注册在同一个 DOM 上\n */\n setTimeout(() => {\n initData.dragging = false\n if (!initData.hovering) {\n hideTooltip()\n }\n if (!initData.isClick) {\n setPosition(initData.newPosition)\n }\n emitChange()\n }, 0)\n window.removeEventListener('mousemove', onDragging)\n window.removeEventListener('touchmove', onDragging)\n window.removeEventListener('mouseup', onDragEnd)\n window.removeEventListener('touchend', onDragEnd)\n window.removeEventListener('contextmenu', onDragEnd)\n }\n }\n\n const setPosition = async (newPosition: number) => {\n if (newPosition === null || Number.isNaN(+newPosition)) return\n if (newPosition < 0) {\n newPosition = 0\n } else if (newPosition > 100) {\n newPosition = 100\n }\n const lengthPerStep = 100 / ((max.value - min.value) / step.value)\n const steps = Math.round(newPosition / lengthPerStep)\n let value =\n steps * lengthPerStep * (max.value - min.value) * 0.01 + min.value\n value = Number.parseFloat(value.toFixed(precision.value))\n\n if (value !== props.modelValue) {\n emit(UPDATE_MODEL_EVENT, value)\n }\n\n if (!initData.dragging && props.modelValue !== initData.oldValue) {\n initData.oldValue = props.modelValue\n }\n\n await nextTick()\n initData.dragging && displayTooltip()\n tooltip.value!.updatePopper()\n }\n\n watch(\n () => initData.dragging,\n (val) => {\n updateDragging(val)\n }\n )\n\n useEventListener(button, 'touchstart', onButtonDown, { passive: false })\n\n return {\n disabled,\n button,\n tooltip,\n tooltipVisible,\n showTooltip,\n persistent,\n wrapperStyle,\n formatValue,\n handleMouseEnter,\n handleMouseLeave,\n onButtonDown,\n onKeyDown,\n setPosition,\n }\n}\n"],"names":["ref","computed","debounce","inject","sliderContextKey","EVENT_CODE","UPDATE_MODEL_EVENT","nextTick","watch","useEventListener"],"mappings":";;;;;;;;;;;AAKA,MAAM,UAAU,GAAG,CAAC,KAAK,EAAE,aAAa,EAAE,WAAW,KAAK;AAC1D,EAAE,MAAM,OAAO,GAAGA,OAAG,EAAE,CAAC;AACxB,EAAE,MAAM,cAAc,GAAGA,OAAG,CAAC,KAAK,CAAC,CAAC;AACpC,EAAE,MAAM,YAAY,GAAGC,YAAQ,CAAC,MAAM;AACtC,IAAI,OAAO,aAAa,CAAC,KAAK,YAAY,QAAQ,CAAC;AACnD,GAAG,CAAC,CAAC;AACL,EAAE,MAAM,WAAW,GAAGA,YAAQ,CAAC,MAAM;AACrC,IAAI,OAAO,YAAY,CAAC,KAAK,IAAI,aAAa,CAAC,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,KAAK,CAAC,UAAU,CAAC;AAC3F,GAAG,CAAC,CAAC;AACL,EAAE,MAAM,cAAc,GAAGC,sBAAQ,CAAC,MAAM;AACxC,IAAI,WAAW,CAAC,KAAK,KAAK,cAAc,CAAC,KAAK,GAAG,IAAI,CAAC,CAAC;AACvD,GAAG,EAAE,EAAE,CAAC,CAAC;AACT,EAAE,MAAM,WAAW,GAAGA,sBAAQ,CAAC,MAAM;AACrC,IAAI,WAAW,CAAC,KAAK,KAAK,cAAc,CAAC,KAAK,GAAG,KAAK,CAAC,CAAC;AACxD,GAAG,EAAE,EAAE,CAAC,CAAC;AACT,EAAE,OAAO;AACT,IAAI,OAAO;AACX,IAAI,cAAc;AAClB,IAAI,WAAW;AACf,IAAI,cAAc;AAClB,IAAI,WAAW;AACf,GAAG,CAAC;AACJ,CAAC,CAAC;AACU,MAAC,eAAe,GAAG,CAAC,KAAK,EA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;AACf,GAAG,CAAC;AACJ;;;;"}
@@ -76,5 +76,5 @@ export declare const sliderEmits: {
76
76
  change: (value: Arrayable<number>) => value is number | number[];
77
77
  };
78
78
  export type SliderEmits = typeof sliderEmits;
79
- export type SliderInstance = InstanceType<typeof Slider>;
79
+ export type SliderInstance = InstanceType<typeof Slider> & unknown;
80
80
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"slider.js","sources":["../../../../../../packages/components/slider/src/slider.ts"],"sourcesContent":["import { placements } from '@popperjs/core'\nimport {\n buildProps,\n definePropType,\n isArray,\n isNumber,\n} from '@element-plus/utils'\nimport {\n CHANGE_EVENT,\n INPUT_EVENT,\n UPDATE_MODEL_EVENT,\n} from '@element-plus/constants'\nimport { useAriaProps, useSizeProp } from '@element-plus/hooks'\nimport type { Arrayable } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\nimport type { SliderMarkerProps } from './marker'\nimport type Slider from './slider.vue'\n\ntype SliderMarks = Record<number, string | SliderMarkerProps['mark']>\n\nexport interface SliderInitData {\n firstValue: number\n secondValue: number\n oldValue?: Arrayable<number>\n dragging: boolean\n sliderSize: number\n}\n\nexport const sliderProps = buildProps({\n /**\n * @description binding value\n */\n modelValue: {\n type: definePropType<Arrayable<number>>([Number, Array]),\n default: 0,\n },\n id: {\n type: String,\n default: undefined,\n },\n /**\n * @description minimum value\n */\n min: {\n type: Number,\n default: 0,\n },\n /**\n * @description maximum value\n */\n max: {\n type: Number,\n default: 100,\n },\n /**\n * @description step size\n */\n step: {\n type: Number,\n default: 1,\n },\n /**\n * @description whether to display an input box, works when `range` is false\n */\n showInput: Boolean,\n /**\n * @description whether to display control buttons when `show-input` is true\n */\n showInputControls: {\n type: Boolean,\n default: true,\n },\n /**\n * @description size of the slider wrapper, will not work in vertical mode\n */\n size: useSizeProp,\n /**\n * @description size of the input box, when set `size`, the default is the value of `size`\n */\n inputSize: useSizeProp,\n /**\n * @description whether to display breakpoints\n */\n showStops: Boolean,\n /**\n * @description whether to display tooltip value\n */\n showTooltip: {\n type: Boolean,\n default: true,\n },\n /**\n * @description format to display tooltip value\n */\n formatTooltip: {\n type: definePropType<(val: number) => number | string>(Function),\n default: undefined,\n },\n /**\n * @description whether Slider is disabled\n */\n disabled: Boolean,\n /**\n * @description whether to select a range\n */\n range: Boolean,\n /**\n * @description vertical mode\n */\n vertical: Boolean,\n /**\n * @description slider height, required in vertical mode\n */\n height: String,\n /**\n * @description debounce delay when typing, in milliseconds, works when `show-input` is true\n */\n debounce: {\n type: Number,\n default: 300,\n },\n /**\n * @description when `range` is true, screen reader label for the start of the range\n */\n rangeStartLabel: {\n type: String,\n default: undefined,\n },\n /**\n * @description when `range` is true, screen reader label for the end of the range\n */\n rangeEndLabel: {\n type: String,\n default: undefined,\n },\n /**\n * @description format to display the `aria-valuenow` attribute for screen readers\n */\n formatValueText: {\n type: definePropType<(val: number) => string>(Function),\n default: undefined,\n },\n /**\n * @description custom class name for the tooltip\n */\n tooltipClass: {\n type: String,\n default: undefined,\n },\n /**\n * @description position of Tooltip\n */\n placement: {\n type: String,\n values: placements,\n default: 'top',\n },\n /**\n * @description marks, type of key must be `number` and must in closed interval `[min, max]`, each mark can custom style\n */\n marks: {\n type: definePropType<SliderMarks>(Object),\n },\n /**\n * @description whether to trigger form validation\n */\n validateEvent: {\n type: Boolean,\n default: true,\n },\n /**\n * @description when slider tooltip inactive and `persistent` is `false` , popconfirm will be destroyed. `persistent` always be `false` when `show-tooltip ` is `false`\n */\n persistent: {\n type: Boolean,\n default: true,\n },\n ...useAriaProps(['ariaLabel']),\n} as const)\nexport type SliderProps = ExtractPropTypes<typeof sliderProps>\n\nconst isValidValue = (value: Arrayable<number>) =>\n isNumber(value) || (isArray(value) && value.every(isNumber))\nexport const sliderEmits = {\n [UPDATE_MODEL_EVENT]: isValidValue,\n [INPUT_EVENT]: isValidValue,\n [CHANGE_EVENT]: isValidValue,\n}\nexport type SliderEmits = typeof sliderEmits\n\nexport type SliderInstance = InstanceType<typeof Slider>\n"],"names":["buildProps","definePropType","useSizeProp","placements","useAriaProps","isNumber","isArray","UPDATE_MODEL_EVENT","INPUT_EVENT","CHANGE_EVENT"],"mappings":";;;;;;;;;;;;AAaY,MAAC,WAAW,GAAGA,kBAAU,CAAC;AACtC,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAEC,sBAAc,CAAC,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AACzC,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,EAAE,EAAE;AACN,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,SAAS,EAAE,OAAO;AACpB,EAAE,iBAAiB,EAAE;AACrB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,IAAI,EAAEC,iBAAW;AACnB,EAAE,SAAS,EAAEA,iBAAW;AACxB,EAAE,SAAS,EAAE,OAAO;AACpB,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAED,sBAAc,CAAC,QAAQ,CAAC;AAClC,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,KAAK,EAAE,OAAO;AAChB,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,MAAM,EAAE,MAAM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W,GAAG,YAAY;AAC7B,EAAE,CAACC,kBAAY,GAAG,YAAY;AAC9B;;;;;"}
1
+ {"version":3,"file":"slider.js","sources":["../../../../../../packages/components/slider/src/slider.ts"],"sourcesContent":["import { placements } from '@popperjs/core'\nimport {\n buildProps,\n definePropType,\n isArray,\n isNumber,\n} from '@element-plus/utils'\nimport {\n CHANGE_EVENT,\n INPUT_EVENT,\n UPDATE_MODEL_EVENT,\n} from '@element-plus/constants'\nimport { useAriaProps, useSizeProp } from '@element-plus/hooks'\nimport type { Arrayable } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\nimport type { SliderMarkerProps } from './marker'\nimport type Slider from './slider.vue'\n\ntype SliderMarks = Record<number, string | SliderMarkerProps['mark']>\n\nexport interface SliderInitData {\n firstValue: number\n secondValue: number\n oldValue?: Arrayable<number>\n dragging: boolean\n sliderSize: number\n}\n\nexport const sliderProps = buildProps({\n /**\n * @description binding value\n */\n modelValue: {\n type: definePropType<Arrayable<number>>([Number, Array]),\n default: 0,\n },\n id: {\n type: String,\n default: undefined,\n },\n /**\n * @description minimum value\n */\n min: {\n type: Number,\n default: 0,\n },\n /**\n * @description maximum value\n */\n max: {\n type: Number,\n default: 100,\n },\n /**\n * @description step size\n */\n step: {\n type: Number,\n default: 1,\n },\n /**\n * @description whether to display an input box, works when `range` is false\n */\n showInput: Boolean,\n /**\n * @description whether to display control buttons when `show-input` is true\n */\n showInputControls: {\n type: Boolean,\n default: true,\n },\n /**\n * @description size of the slider wrapper, will not work in vertical mode\n */\n size: useSizeProp,\n /**\n * @description size of the input box, when set `size`, the default is the value of `size`\n */\n inputSize: useSizeProp,\n /**\n * @description whether to display breakpoints\n */\n showStops: Boolean,\n /**\n * @description whether to display tooltip value\n */\n showTooltip: {\n type: Boolean,\n default: true,\n },\n /**\n * @description format to display tooltip value\n */\n formatTooltip: {\n type: definePropType<(val: number) => number | string>(Function),\n default: undefined,\n },\n /**\n * @description whether Slider is disabled\n */\n disabled: Boolean,\n /**\n * @description whether to select a range\n */\n range: Boolean,\n /**\n * @description vertical mode\n */\n vertical: Boolean,\n /**\n * @description slider height, required in vertical mode\n */\n height: String,\n /**\n * @description debounce delay when typing, in milliseconds, works when `show-input` is true\n */\n debounce: {\n type: Number,\n default: 300,\n },\n /**\n * @description when `range` is true, screen reader label for the start of the range\n */\n rangeStartLabel: {\n type: String,\n default: undefined,\n },\n /**\n * @description when `range` is true, screen reader label for the end of the range\n */\n rangeEndLabel: {\n type: String,\n default: undefined,\n },\n /**\n * @description format to display the `aria-valuenow` attribute for screen readers\n */\n formatValueText: {\n type: definePropType<(val: number) => string>(Function),\n default: undefined,\n },\n /**\n * @description custom class name for the tooltip\n */\n tooltipClass: {\n type: String,\n default: undefined,\n },\n /**\n * @description position of Tooltip\n */\n placement: {\n type: String,\n values: placements,\n default: 'top',\n },\n /**\n * @description marks, type of key must be `number` and must in closed interval `[min, max]`, each mark can custom style\n */\n marks: {\n type: definePropType<SliderMarks>(Object),\n },\n /**\n * @description whether to trigger form validation\n */\n validateEvent: {\n type: Boolean,\n default: true,\n },\n /**\n * @description when slider tooltip inactive and `persistent` is `false` , popconfirm will be destroyed. `persistent` always be `false` when `show-tooltip ` is `false`\n */\n persistent: {\n type: Boolean,\n default: true,\n },\n ...useAriaProps(['ariaLabel']),\n} as const)\nexport type SliderProps = ExtractPropTypes<typeof sliderProps>\n\nconst isValidValue = (value: Arrayable<number>) =>\n isNumber(value) || (isArray(value) && value.every(isNumber))\nexport const sliderEmits = {\n [UPDATE_MODEL_EVENT]: isValidValue,\n [INPUT_EVENT]: isValidValue,\n [CHANGE_EVENT]: isValidValue,\n}\nexport type SliderEmits = typeof sliderEmits\n\nexport type SliderInstance = InstanceType<typeof Slider> & unknown\n"],"names":["buildProps","definePropType","useSizeProp","placements","useAriaProps","isNumber","isArray","UPDATE_MODEL_EVENT","INPUT_EVENT","CHANGE_EVENT"],"mappings":";;;;;;;;;;;;AAaY,MAAC,WAAW,GAAGA,kBAAU,CAAC;AACt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AI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,eAAe,EAAE;AACnB,IAAI,IAAI,EAAEA,sBAAc,CAAC,QAAQ,CAAC;AAClC,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAEE,eAAU;AACtB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAEF,sBAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,GAAGG,oBAAY,CAAC,CAAC,WAAW,CAAC,CAAC;AAChC,CAAC,EAAE;AACH,MAAM,YAAY,GAAG,CAAC,KAAK,KAAKC,cAAQ,CAAC,KAAK,CAAC,IAAIC,cAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,KAAK,CAACD,cAAQ,CAAC,CAAC;AAC/E,MAAC,WAAW,GAAG;AAC3B,EAAE,CAACE,wBAAkB,GAAG,YAAY;AACpC,EAAE,CAACC,iBAAW,GAAG,YAAY;AAC7B,EAAE,CAACC,kBAAY,GAAG,YAAY;AAC9B;;;;;"}
@@ -47,7 +47,7 @@ declare const _default: import("vue").DefineComponent<{
47
47
  readonly prototype: any;
48
48
  })[], unknown, unknown, undefined, boolean>;
49
49
  readonly tooltipClass: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
50
- readonly placement: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, import("@popperjs/core").Placement, unknown, "top", boolean>;
50
+ readonly placement: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, import("element-plus").Placement, unknown, "top", boolean>;
51
51
  readonly marks: {
52
52
  readonly type: import("vue").PropType<{
53
53
  [x: number]: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => string | {
@@ -125,7 +125,7 @@ declare const _default: import("vue").DefineComponent<{
125
125
  readonly prototype: any;
126
126
  })[], unknown, unknown, undefined, boolean>;
127
127
  readonly tooltipClass: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
128
- readonly placement: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, import("@popperjs/core").Placement, unknown, "top", boolean>;
128
+ readonly placement: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, import("element-plus").Placement, unknown, "top", boolean>;
129
129
  readonly marks: {
130
130
  readonly type: import("vue").PropType<{
131
131
  [x: number]: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => string | {
@@ -158,7 +158,7 @@ declare const _default: import("vue").DefineComponent<{
158
158
  readonly range: boolean;
159
159
  readonly id: string;
160
160
  readonly modelValue: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => number | number[]) | (() => import("@element-plus/nightly/es/utils").Arrayable<number>) | ((new (...args: any[]) => number | number[]) | (() => import("@element-plus/nightly/es/utils").Arrayable<number>))[], unknown, unknown>;
161
- readonly placement: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, import("@popperjs/core").Placement, unknown>;
161
+ readonly placement: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, import("element-plus").Placement, unknown>;
162
162
  readonly min: number;
163
163
  readonly max: number;
164
164
  readonly validateEvent: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
@@ -25,5 +25,5 @@ declare const SpaceItem: import("vue").DefineComponent<{
25
25
  __epPropKey: true;
26
26
  };
27
27
  }>>, {}>;
28
- export type SpaceItemInstance = InstanceType<typeof SpaceItem>;
28
+ export type SpaceItemInstance = InstanceType<typeof SpaceItem> & unknown;
29
29
  export default SpaceItem;
@@ -1 +1 @@
1
- {"version":3,"file":"item.js","sources":["../../../../../../packages/components/space/src/item.ts"],"sourcesContent":["import { computed, defineComponent, h, renderSlot } from 'vue'\nimport { buildProps } from '@element-plus/utils'\nimport { useNamespace } from '@element-plus/hooks'\n\nimport type { ExtractPropTypes } from 'vue'\n\nexport const spaceItemProps = buildProps({\n prefixCls: {\n type: String,\n },\n} as const)\nexport type SpaceItemProps = ExtractPropTypes<typeof spaceItemProps>\n\nconst SpaceItem = defineComponent({\n name: 'ElSpaceItem',\n\n props: spaceItemProps,\n\n setup(props, { slots }) {\n const ns = useNamespace('space')\n\n const classes = computed(() => `${props.prefixCls || ns.b()}__item`)\n\n return () =>\n h('div', { class: classes.value }, renderSlot(slots, 'default'))\n },\n})\nexport type SpaceItemInstance = InstanceType<typeof SpaceItem>\n\nexport default SpaceItem\n"],"names":["buildProps","defineComponent","useNamespace","computed","h","renderSlot"],"mappings":";;;;;;;;AAGY,MAAC,cAAc,GAAGA,kBAAU,CAAC;AACzC,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,GAAG;AACH,CAAC,EAAE;AACE,MAAC,SAAS,GAAGC,mBAAe,CAAC;AAClC,EAAE,IAAI,EAAE,aAAa;AACrB,EAAE,KAAK,EAAE,cAAc;AACvB,EAAE,KAAK,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE;AAC1B,IAAI,MAAM,EAAE,GAAGC,kBAAY,CAAC,OAAO,CAAC,CAAC;AACrC,IAAI,MAAM,OAAO,GAAGC,YAAQ,CAAC,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;AACzE,IAAI,OAAO,MAAMC,KAAC,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,EAAEC,cAAU,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC;AAClF,GAAG;AACH,CAAC;;;;;"}
1
+ {"version":3,"file":"item.js","sources":["../../../../../../packages/components/space/src/item.ts"],"sourcesContent":["import { computed, defineComponent, h, renderSlot } from 'vue'\nimport { buildProps } from '@element-plus/utils'\nimport { useNamespace } from '@element-plus/hooks'\n\nimport type { ExtractPropTypes } from 'vue'\n\nexport const spaceItemProps = buildProps({\n prefixCls: {\n type: String,\n },\n} as const)\nexport type SpaceItemProps = ExtractPropTypes<typeof spaceItemProps>\n\nconst SpaceItem = defineComponent({\n name: 'ElSpaceItem',\n\n props: spaceItemProps,\n\n setup(props, { slots }) {\n const ns = useNamespace('space')\n\n const classes = computed(() => `${props.prefixCls || ns.b()}__item`)\n\n return () =>\n h('div', { class: classes.value }, renderSlot(slots, 'default'))\n },\n})\nexport type SpaceItemInstance = InstanceType<typeof SpaceItem> & unknown\n\nexport default SpaceItem\n"],"names":["buildProps","defineComponent","useNamespace","computed","h","renderSlot"],"mappings":";;;;;;;;AAGY,MAAC,cAAc,GAAGA,kBAAU,CAAC;AACzC,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,GAAG;AACH,CAAC,EAAE;AACE,MAAC,SAAS,GAAGC,mBAAe,CAAC;AAClC,EAAE,IAAI,EAAE,aAAa;AACrB,EAAE,KAAK,EAAE,cAAc;AACvB,EAAE,KAAK,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE;AAC1B,IAAI,MAAM,EAAE,GAAGC,kBAAY,CAAC,OAAO,CAAC,CAAC;AACrC,IAAI,MAAM,OAAO,GAAGC,YAAQ,CAAC,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;AACzE,IAAI,OAAO,MAAMC,KAAC,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,EAAEC,cAAU,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC;AAClF,GAAG;AACH,CAAC;;;;;"}
@@ -88,5 +88,5 @@ declare const Space: import("vue").DefineComponent<{
88
88
  readonly alignment: string;
89
89
  readonly fillRatio: number;
90
90
  }>;
91
- export type SpaceInstance = InstanceType<typeof Space>;
91
+ export type SpaceInstance = InstanceType<typeof Space> & unknown;
92
92
  export default Space;
@@ -1 +1 @@
1
- {"version":3,"file":"space.js","sources":["../../../../../../packages/components/space/src/space.ts"],"sourcesContent":["import {\n createTextVNode,\n createVNode,\n defineComponent,\n isVNode,\n renderSlot,\n} from 'vue'\nimport {\n PatchFlags,\n buildProps,\n definePropType,\n isArray,\n isFragment,\n isNumber,\n isString,\n isValidElementNode,\n} from '@element-plus/utils'\nimport { componentSizes } from '@element-plus/constants'\nimport Item from './item'\nimport { useSpace } from './use-space'\n\nimport type {\n ExtractPropTypes,\n StyleValue,\n VNode,\n VNodeArrayChildren,\n VNodeChild,\n} from 'vue'\nimport type { Arrayable } from '@element-plus/utils'\nimport type { AlignItemsProperty } from 'csstype'\n\nexport const spaceProps = buildProps({\n /**\n * @description Placement direction\n */\n direction: {\n type: String,\n values: ['horizontal', 'vertical'],\n default: 'horizontal',\n },\n /**\n * @description Classname\n */\n class: {\n type: definePropType<Arrayable<Record<string, boolean> | string>>([\n String,\n Object,\n Array,\n ]),\n default: '',\n },\n /**\n * @description Extra style rules\n */\n style: {\n type: definePropType<StyleValue>([String, Array, Object]),\n default: '',\n },\n /**\n * @description Controls the alignment of items\n */\n alignment: {\n type: definePropType<AlignItemsProperty>(String),\n default: 'center',\n },\n /**\n * @description Prefix for space-items\n */\n prefixCls: {\n type: String,\n },\n /**\n * @description Spacer\n */\n spacer: {\n type: definePropType<VNodeChild>([Object, String, Number, Array]),\n default: null,\n validator: (val: unknown) => isVNode(val) || isNumber(val) || isString(val),\n },\n /**\n * @description Auto wrapping\n */\n wrap: Boolean,\n /**\n * @description Whether to fill the container\n */\n fill: Boolean,\n /**\n * @description Ratio of fill\n */\n fillRatio: {\n type: Number,\n default: 100,\n },\n /**\n * @description Spacing size\n */\n size: {\n type: [String, Array, Number],\n values: componentSizes,\n validator: (val: unknown): val is [number, number] | number => {\n return (\n isNumber(val) ||\n (isArray(val) && val.length === 2 && val.every(isNumber))\n )\n },\n },\n} as const)\nexport type SpaceProps = ExtractPropTypes<typeof spaceProps>\n\nconst Space = defineComponent({\n name: 'ElSpace',\n\n props: spaceProps,\n\n setup(props, { slots }) {\n const { classes, containerStyle, itemStyle } = useSpace(props)\n\n // retrieve the children out via a simple for loop\n // the edge case here is that when users uses directives like <v-for>, <v-if>\n // we need to go deeper until the child is not the Fragment type\n function extractChildren(\n children: VNodeArrayChildren,\n parentKey = '',\n extractedChildren: VNode[] = []\n ) {\n const { prefixCls } = props\n children.forEach((child, loopKey) => {\n if (isFragment(child)) {\n if (isArray(child.children)) {\n child.children.forEach((nested, key) => {\n if (isFragment(nested) && isArray(nested.children)) {\n extractChildren(\n nested.children,\n `${parentKey + key}-`,\n extractedChildren\n )\n } else {\n extractedChildren.push(\n createVNode(\n Item,\n {\n style: itemStyle.value,\n prefixCls,\n key: `nested-${parentKey + key}`,\n },\n {\n default: () => [nested],\n },\n PatchFlags.PROPS | PatchFlags.STYLE,\n ['style', 'prefixCls']\n )\n )\n }\n })\n }\n // if the current child is valid vnode, then append this current vnode\n // to item as child node.\n } else if (isValidElementNode(child)) {\n extractedChildren.push(\n createVNode(\n Item,\n {\n style: itemStyle.value,\n prefixCls,\n key: `LoopKey${parentKey + loopKey}`,\n },\n {\n default: () => [child],\n },\n PatchFlags.PROPS | PatchFlags.STYLE,\n ['style', 'prefixCls']\n )\n )\n }\n })\n\n return extractedChildren\n }\n\n return () => {\n const { spacer, direction } = props\n\n const children = renderSlot(slots, 'default', { key: 0 }, () => [])\n\n if ((children.children ?? []).length === 0) return null\n // loop the children, if current children is rendered via `renderList` or `<v-for>`\n if (isArray(children.children)) {\n let extractedChildren = extractChildren(children.children)\n\n if (spacer) {\n // track the current rendering index, when encounters the last element\n // then no need to add a spacer after it.\n const len = extractedChildren.length - 1\n extractedChildren = extractedChildren.reduce<VNode[]>(\n (acc, child, idx) => {\n const children = [...acc, child]\n if (idx !== len) {\n children.push(\n createVNode(\n 'span',\n // adding width 100% for vertical alignment,\n // when the spacer inherit the width from the\n // parent, this span's width was not set, so space\n // might disappear\n {\n style: [\n itemStyle.value,\n direction === 'vertical' ? 'width: 100%' : null,\n ],\n key: idx,\n },\n [\n // if spacer is already a valid vnode, then append it to the current\n // span element.\n // otherwise, treat it as string.\n isVNode(spacer)\n ? spacer\n : createTextVNode(spacer as string, PatchFlags.TEXT),\n ],\n PatchFlags.STYLE\n )\n )\n }\n return children\n },\n []\n )\n }\n\n // spacer container.\n return createVNode(\n 'div',\n {\n class: classes.value,\n style: containerStyle.value,\n },\n extractedChildren,\n PatchFlags.STYLE | PatchFlags.CLASS\n )\n }\n\n return children.children\n }\n },\n})\n\nexport type SpaceInstance = InstanceType<typeof Space>\n\nexport default Space\n"],"names":["buildProps","definePropType","isVNode","isNumber","isString","componentSizes","isArray","defineComponent","useSpace","isFragment","createVNode","Item","PatchFlags","isValidElementNode","renderSlot","createTextVNode"],"mappings":";;;;;;;;;;;;;AAoBY,MAAC,UAAU,GAAGA,kBAAU,CAAC;AACrC,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,YAAY,EAAE,UAAU,CAAC;AACtC,IAAI,OAAO,EAAE,YAAY;AACzB,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAEC,sBAAc,CAAC;AACzB,MAAM,MAAM;AACZ,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AAG,GAAG,iBAAiB,CAAC,MAAM,GAAG,CAAC,CAAC;AACnD,UAAU,iBAAiB,GAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,GAAG,KAAK;AAC5E,YAAY,MAAM,SAAS,GAAG,CAAC,GAAG,GAAG,EAAE,KAAK,CAAC,CAAC;AAC9C,YAAY,IAAI,GAAG,KAAK,GAAG,EAAE;AAC7B,cAAc,SAAS,CAAC,IAAI,CAACI,eAAW,CAAC,MAAM,EAAE;AACjD,gBAAgB,KAAK,EAAE;AACvB,kBAAkB,SAAS,CAAC,KAAK;AACjC,kBAAkB,SAAS,KAAK,UAAU,GAAG,aAAa,GAAG,IAAI;AACjE,iBAAiB;AACjB,gBAAgB,GAAG,EAAE,GAAG;AACxB,eAAe,EAAE;AACjB,gBAAgBR,WAAO,CAAC,MAAM,CAAC,GAAG,MAAM,GAAGa,mBAAe,CAAC,MAAM,EAAEH,gBAAU,CAAC,IAAI,CAAC;AACnF,eAAe,EAAEA,gBAAU,CAAC,KAAK,CAAC,CAAC,CAAC;AACpC,aAAa;AACb,YAAY,OAAO,SAAS,CAAC;AAC7B,WAAW,EAAE,EAAE,CAAC,CAAC;AACjB,SAAS;AACT,QAAQ,OAAOF,eAAW,CAAC,KAAK,EAAE;AAClC,UAAU,KAAK,EAAE,OAAO,CAAC,KAAK;AAC9B,UAAU,KAAK,EAAE,cAAc,CAAC,KAAK;AACrC,SAAS,EAAE,iBAAiB,EAAEE,gBAAU,CAAC,KAAK,GAAGA,gBAAU,CAAC,KAAK,CAAC,CAAC;AACnE,OAAO;AACP,MAAM,OAAO,QAAQ,CAAC,QAAQ,CAAC;AAC/B,KAAK,CAAC;AACN,GAAG;AACH,CAAC;;;;;"}
1
+ {"version":3,"file":"space.js","sources":["../../../../../../packages/components/space/src/space.ts"],"sourcesContent":["import {\n createTextVNode,\n createVNode,\n defineComponent,\n isVNode,\n renderSlot,\n} from 'vue'\nimport {\n PatchFlags,\n buildProps,\n definePropType,\n isArray,\n isFragment,\n isNumber,\n isString,\n isValidElementNode,\n} from '@element-plus/utils'\nimport { componentSizes } from '@element-plus/constants'\nimport Item from './item'\nimport { useSpace } from './use-space'\n\nimport type {\n ExtractPropTypes,\n StyleValue,\n VNode,\n VNodeArrayChildren,\n VNodeChild,\n} from 'vue'\nimport type { Arrayable } from '@element-plus/utils'\nimport type { AlignItemsProperty } from 'csstype'\n\nexport const spaceProps = buildProps({\n /**\n * @description Placement direction\n */\n direction: {\n type: String,\n values: ['horizontal', 'vertical'],\n default: 'horizontal',\n },\n /**\n * @description Classname\n */\n class: {\n type: definePropType<Arrayable<Record<string, boolean> | string>>([\n String,\n Object,\n Array,\n ]),\n default: '',\n },\n /**\n * @description Extra style rules\n */\n style: {\n type: definePropType<StyleValue>([String, Array, Object]),\n default: '',\n },\n /**\n * @description Controls the alignment of items\n */\n alignment: {\n type: definePropType<AlignItemsProperty>(String),\n default: 'center',\n },\n /**\n * @description Prefix for space-items\n */\n prefixCls: {\n type: String,\n },\n /**\n * @description Spacer\n */\n spacer: {\n type: definePropType<VNodeChild>([Object, String, Number, Array]),\n default: null,\n validator: (val: unknown) => isVNode(val) || isNumber(val) || isString(val),\n },\n /**\n * @description Auto wrapping\n */\n wrap: Boolean,\n /**\n * @description Whether to fill the container\n */\n fill: Boolean,\n /**\n * @description Ratio of fill\n */\n fillRatio: {\n type: Number,\n default: 100,\n },\n /**\n * @description Spacing size\n */\n size: {\n type: [String, Array, Number],\n values: componentSizes,\n validator: (val: unknown): val is [number, number] | number => {\n return (\n isNumber(val) ||\n (isArray(val) && val.length === 2 && val.every(isNumber))\n )\n },\n },\n} as const)\nexport type SpaceProps = ExtractPropTypes<typeof spaceProps>\n\nconst Space = defineComponent({\n name: 'ElSpace',\n\n props: spaceProps,\n\n setup(props, { slots }) {\n const { classes, containerStyle, itemStyle } = useSpace(props)\n\n // retrieve the children out via a simple for loop\n // the edge case here is that when users uses directives like <v-for>, <v-if>\n // we need to go deeper until the child is not the Fragment type\n function extractChildren(\n children: VNodeArrayChildren,\n parentKey = '',\n extractedChildren: VNode[] = []\n ) {\n const { prefixCls } = props\n children.forEach((child, loopKey) => {\n if (isFragment(child)) {\n if (isArray(child.children)) {\n child.children.forEach((nested, key) => {\n if (isFragment(nested) && isArray(nested.children)) {\n extractChildren(\n nested.children,\n `${parentKey + key}-`,\n extractedChildren\n )\n } else {\n extractedChildren.push(\n createVNode(\n Item,\n {\n style: itemStyle.value,\n prefixCls,\n key: `nested-${parentKey + key}`,\n },\n {\n default: () => [nested],\n },\n PatchFlags.PROPS | PatchFlags.STYLE,\n ['style', 'prefixCls']\n )\n )\n }\n })\n }\n // if the current child is valid vnode, then append this current vnode\n // to item as child node.\n } else if (isValidElementNode(child)) {\n extractedChildren.push(\n createVNode(\n Item,\n {\n style: itemStyle.value,\n prefixCls,\n key: `LoopKey${parentKey + loopKey}`,\n },\n {\n default: () => [child],\n },\n PatchFlags.PROPS | PatchFlags.STYLE,\n ['style', 'prefixCls']\n )\n )\n }\n })\n\n return extractedChildren\n }\n\n return () => {\n const { spacer, direction } = props\n\n const children = renderSlot(slots, 'default', { key: 0 }, () => [])\n\n if ((children.children ?? []).length === 0) return null\n // loop the children, if current children is rendered via `renderList` or `<v-for>`\n if (isArray(children.children)) {\n let extractedChildren = extractChildren(children.children)\n\n if (spacer) {\n // track the current rendering index, when encounters the last element\n // then no need to add a spacer after it.\n const len = extractedChildren.length - 1\n extractedChildren = extractedChildren.reduce<VNode[]>(\n (acc, child, idx) => {\n const children = [...acc, child]\n if (idx !== len) {\n children.push(\n createVNode(\n 'span',\n // adding width 100% for vertical alignment,\n // when the spacer inherit the width from the\n // parent, this span's width was not set, so space\n // might disappear\n {\n style: [\n itemStyle.value,\n direction === 'vertical' ? 'width: 100%' : null,\n ],\n key: idx,\n },\n [\n // if spacer is already a valid vnode, then append it to the current\n // span element.\n // otherwise, treat it as string.\n isVNode(spacer)\n ? spacer\n : createTextVNode(spacer as string, PatchFlags.TEXT),\n ],\n PatchFlags.STYLE\n )\n )\n }\n return children\n },\n []\n )\n }\n\n // spacer container.\n return createVNode(\n 'div',\n {\n class: classes.value,\n style: containerStyle.value,\n },\n extractedChildren,\n PatchFlags.STYLE | PatchFlags.CLASS\n )\n }\n\n return children.children\n }\n },\n})\n\nexport type SpaceInstance = InstanceType<typeof Space> & unknown\n\nexport default Space\n"],"names":["buildProps","definePropType","isVNode","isNumber","isString","componentSizes","isArray","defineComponent","useSpace","isFragment","createVNode","Item","PatchFlags","isValidElementNode","renderSlot","createTextVNode"],"mappings":";;;;;;;;;;;;;AAoBY,MAAC,UAAU,GAAGA,kBAAU,CAAC;AACrC,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,YAAY,EAAE,UAAU,CAAC;AACtC,IAAI,OAAO,EAAE,YAAY;AACzB,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAEC,sBAAc,CAAC;AACzB,MAAM,MAAM;AACZ,MAAM,MAAM;AACZ,MAAM,KAAK;AACX,KAAK,CAAC;AACN,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAEA,sBAAc,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;AACjD,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAEA,sBAAc,CAAC,MAAM,CAAC;AAChC,IAAI,OAAO,EAAE,QAAQ;AACrB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAEA,sBAAc,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;AACzD,IAAI,OAAO,EAAE,IAAI;AACjB,IAAI,SAAS,EAAE,CAA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U,CAAC,IAAI,CAAC;AACnF,eAAe,EAAEA,gBAAU,CAAC,KAAK,CAAC,CAAC,CAAC;AACpC,aAAa;AACb,YAAY,OAAO,SAAS,CAAC;AAC7B,WAAW,EAAE,EAAE,CAAC,CAAC;AACjB,SAAS;AACT,QAAQ,OAAOF,eAAW,CAAC,KAAK,EAAE;AAClC,UAAU,KAAK,EAAE,OAAO,CAAC,KAAK;AAC9B,UAAU,KAAK,EAAE,cAAc,CAAC,KAAK;AACrC,SAAS,EAAE,iBAAiB,EAAEE,gBAAU,CAAC,KAAK,GAAGA,gBAAU,CAAC,KAAK,CAAC,CAAC;AACnE,OAAO;AACP,MAAM,OAAO,QAAQ,CAAC,QAAQ,CAAC;AAC/B,KAAK,CAAC;AACN,GAAG;AACH,CAAC;;;;;"}
@@ -18,4 +18,4 @@ export declare const statisticProps: {
18
18
  };
19
19
  };
20
20
  export type StatisticProps = ExtractPropTypes<typeof statisticProps>;
21
- export type StatisticInstance = InstanceType<typeof Statistic>;
21
+ export type StatisticInstance = InstanceType<typeof Statistic> & unknown;
@@ -1 +1 @@
1
- {"version":3,"file":"statistic.js","sources":["../../../../../../packages/components/statistic/src/statistic.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\n\nimport type { ExtractPropTypes, StyleValue } from 'vue'\nimport type { Dayjs } from 'dayjs'\nimport type Statistic from './statistic.vue'\n\nexport const statisticProps = buildProps({\n /**\n * @description Setting the decimal point\n */\n decimalSeparator: {\n type: String,\n default: '.',\n },\n /**\n * @description Sets the thousandth identifier\n */\n groupSeparator: {\n type: String,\n default: ',',\n },\n /**\n * @description numerical precision\n */\n precision: {\n type: Number,\n default: 0,\n },\n /**\n * @description Custom numerical presentation\n */\n formatter: Function,\n /**\n * @description Numerical content\n */\n value: {\n type: definePropType<number | Dayjs>([Number, Object]),\n default: 0,\n },\n /**\n * @description Sets the prefix of a number\n */\n prefix: String,\n\n /**\n * @description Sets the suffix of a number\n */\n suffix: String,\n /**\n * @description Numeric titles\n */\n title: String,\n /**\n * @description Styles numeric values\n */\n valueStyle: {\n type: definePropType<StyleValue>([String, Object, Array]),\n },\n} as const)\nexport type StatisticProps = ExtractPropTypes<typeof statisticProps>\n\nexport type StatisticInstance = InstanceType<typeof Statistic>\n"],"names":["buildProps","definePropType"],"mappings":";;;;;;AACY,MAAC,cAAc,GAAGA,kBAAU,CAAC;AACzC,EAAE,gBAAgB,EAAE;AACpB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,cAAc,EAAE;AAClB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,SAAS,EAAE,QAAQ;AACrB,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAEC,sBAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,MAAM,EAAE,MAAM;AAChB,EAAE,MAAM,EAAE,MAAM;AAChB,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAEA,sBAAc,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;AACjD,GAAG;AACH,CAAC;;;;"}
1
+ {"version":3,"file":"statistic.js","sources":["../../../../../../packages/components/statistic/src/statistic.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\n\nimport type { ExtractPropTypes, StyleValue } from 'vue'\nimport type { Dayjs } from 'dayjs'\nimport type Statistic from './statistic.vue'\n\nexport const statisticProps = buildProps({\n /**\n * @description Setting the decimal point\n */\n decimalSeparator: {\n type: String,\n default: '.',\n },\n /**\n * @description Sets the thousandth identifier\n */\n groupSeparator: {\n type: String,\n default: ',',\n },\n /**\n * @description numerical precision\n */\n precision: {\n type: Number,\n default: 0,\n },\n /**\n * @description Custom numerical presentation\n */\n formatter: Function,\n /**\n * @description Numerical content\n */\n value: {\n type: definePropType<number | Dayjs>([Number, Object]),\n default: 0,\n },\n /**\n * @description Sets the prefix of a number\n */\n prefix: String,\n\n /**\n * @description Sets the suffix of a number\n */\n suffix: String,\n /**\n * @description Numeric titles\n */\n title: String,\n /**\n * @description Styles numeric values\n */\n valueStyle: {\n type: definePropType<StyleValue>([String, Object, Array]),\n },\n} as const)\nexport type StatisticProps = ExtractPropTypes<typeof statisticProps>\n\nexport type StatisticInstance = InstanceType<typeof Statistic> & unknown\n"],"names":["buildProps","definePropType"],"mappings":";;;;;;AACY,MAAC,cAAc,GAAGA,kBAAU,CAAC;AACzC,EAAE,gBAAgB,EAAE;AACpB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,cAAc,EAAE;AAClB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,SAAS,EAAE,QAAQ;AACrB,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAEC,sBAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,MAAM,EAAE,MAAM;AAChB,EAAE,MAAM,EAAE,MAAM;AAChB,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAEA,sBAAc,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;AACjD,GAAG;AACH,CAAC;;;;"}
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var steps$1 = require('./src/steps2.js');
5
+ var steps$1 = require('./src/steps.js');
6
6
  var item$1 = require('./src/item2.js');
7
7
  var item = require('./src/item.js');
8
- var steps = require('./src/steps.js');
8
+ var steps = require('./src/steps2.js');
9
9
  var install = require('../../utils/vue/install.js');
10
10
 
11
11
  const ElSteps = install.withInstall(steps$1["default"], {
@@ -12,4 +12,4 @@ export declare const stepProps: {
12
12
  readonly status: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "" | "wait" | "error" | "finish" | "success" | "process", unknown, "", boolean>;
13
13
  };
14
14
  export type StepProps = ExtractPropTypes<typeof stepProps>;
15
- export type StepInstance = InstanceType<typeof Step>;
15
+ export type StepInstance = InstanceType<typeof Step> & unknown;
@@ -1 +1 @@
1
- {"version":3,"file":"item.js","sources":["../../../../../../packages/components/steps/src/item.ts"],"sourcesContent":["import { buildProps, iconPropType } from '@element-plus/utils'\nimport type Step from './item.vue'\nimport type { ExtractPropTypes } from 'vue'\n\nexport const stepProps = buildProps({\n /**\n * @description step title\n */\n title: {\n type: String,\n default: '',\n },\n /**\n * @description step custom icon. Icons can be passed via named slot as well\n */\n icon: {\n type: iconPropType,\n },\n /**\n * @description step description\n */\n description: {\n type: String,\n default: '',\n },\n /**\n * @description current status. It will be automatically set by Steps if not configured.\n */\n status: {\n type: String,\n values: ['', 'wait', 'process', 'finish', 'error', 'success'],\n default: '',\n },\n} as const)\n\nexport type StepProps = ExtractPropTypes<typeof stepProps>\n\nexport type StepInstance = InstanceType<typeof Step>\n"],"names":["buildProps","iconPropType"],"mappings":";;;;;;;AACY,MAAC,SAAS,GAAGA,kBAAU,CAAC;AACpC,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAEC,iBAAY;AACtB,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,CAAC;AACjE,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,CAAC;;;;"}
1
+ {"version":3,"file":"item.js","sources":["../../../../../../packages/components/steps/src/item.ts"],"sourcesContent":["import { buildProps, iconPropType } from '@element-plus/utils'\nimport type Step from './item.vue'\nimport type { ExtractPropTypes } from 'vue'\n\nexport const stepProps = buildProps({\n /**\n * @description step title\n */\n title: {\n type: String,\n default: '',\n },\n /**\n * @description step custom icon. Icons can be passed via named slot as well\n */\n icon: {\n type: iconPropType,\n },\n /**\n * @description step description\n */\n description: {\n type: String,\n default: '',\n },\n /**\n * @description current status. It will be automatically set by Steps if not configured.\n */\n status: {\n type: String,\n values: ['', 'wait', 'process', 'finish', 'error', 'success'],\n default: '',\n },\n} as const)\n\nexport type StepProps = ExtractPropTypes<typeof stepProps>\n\nexport type StepInstance = InstanceType<typeof Step> & unknown\n"],"names":["buildProps","iconPropType"],"mappings":";;;;;;;AACY,MAAC,SAAS,GAAGA,kBAAU,CAAC;AACpC,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAEC,iBAAY;AACtB,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,CAAC;AACjE,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,CAAC;;;;"}
@@ -24,4 +24,4 @@ export declare const stepsEmits: {
24
24
  change: (newVal: number, oldVal: number) => boolean;
25
25
  };
26
26
  export type StepsEmits = typeof stepsEmits;
27
- export type StepsInstance = InstanceType<typeof Steps>;
27
+ export type StepsInstance = InstanceType<typeof Steps> & unknown;
@@ -2,45 +2,47 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var runtime = require('../../../utils/vue/props/runtime.js');
5
+ var vue = require('vue');
6
+ var steps = require('./steps2.js');
7
+ var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
8
+ var index = require('../../../hooks/use-namespace/index.js');
9
+ var index$1 = require('../../../hooks/use-ordered-children/index.js');
6
10
  var event = require('../../../constants/event.js');
7
- var types = require('../../../utils/types.js');
8
11
 
9
- const stepsProps = runtime.buildProps({
10
- space: {
11
- type: [Number, String],
12
- default: ""
13
- },
14
- active: {
15
- type: Number,
16
- default: 0
17
- },
18
- direction: {
19
- type: String,
20
- default: "horizontal",
21
- values: ["horizontal", "vertical"]
22
- },
23
- alignCenter: {
24
- type: Boolean
25
- },
26
- simple: {
27
- type: Boolean
28
- },
29
- finishStatus: {
30
- type: String,
31
- values: ["wait", "process", "finish", "error", "success"],
32
- default: "finish"
33
- },
34
- processStatus: {
35
- type: String,
36
- values: ["wait", "process", "finish", "error", "success"],
37
- default: "process"
12
+ const __default__ = vue.defineComponent({
13
+ name: "ElSteps"
14
+ });
15
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
16
+ ...__default__,
17
+ props: steps.stepsProps,
18
+ emits: steps.stepsEmits,
19
+ setup(__props, { emit }) {
20
+ const props = __props;
21
+ const ns = index.useNamespace("steps");
22
+ const {
23
+ children: steps,
24
+ addChild: addStep,
25
+ removeChild: removeStep
26
+ } = index$1.useOrderedChildren(vue.getCurrentInstance(), "ElStep");
27
+ vue.watch(steps, () => {
28
+ steps.value.forEach((instance, index) => {
29
+ instance.setIndex(index);
30
+ });
31
+ });
32
+ vue.provide("ElSteps", { props, steps, addStep, removeStep });
33
+ vue.watch(() => props.active, (newVal, oldVal) => {
34
+ emit(event.CHANGE_EVENT, newVal, oldVal);
35
+ });
36
+ return (_ctx, _cache) => {
37
+ return vue.openBlock(), vue.createElementBlock("div", {
38
+ class: vue.normalizeClass([vue.unref(ns).b(), vue.unref(ns).m(_ctx.simple ? "simple" : _ctx.direction)])
39
+ }, [
40
+ vue.renderSlot(_ctx.$slots, "default")
41
+ ], 2);
42
+ };
38
43
  }
39
44
  });
40
- const stepsEmits = {
41
- [event.CHANGE_EVENT]: (newVal, oldVal) => [newVal, oldVal].every(types.isNumber)
42
- };
45
+ var Steps = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "steps.vue"]]);
43
46
 
44
- exports.stepsEmits = stepsEmits;
45
- exports.stepsProps = stepsProps;
47
+ exports["default"] = Steps;
46
48
  //# sourceMappingURL=steps.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"steps.js","sources":["../../../../../../packages/components/steps/src/steps.ts"],"sourcesContent":["import { CHANGE_EVENT } from '@element-plus/constants'\nimport { buildProps, isNumber } from '@element-plus/utils'\nimport type Steps from './steps.vue'\nimport type { ExtractPropTypes } from 'vue'\n\nexport const stepsProps = buildProps({\n /**\n * @description the spacing of each step, will be responsive if omitted. Supports percentage.\n */\n space: {\n type: [Number, String],\n default: '',\n },\n /**\n * @description current activation step\n */\n active: {\n type: Number,\n default: 0,\n },\n /**\n * @description display direction\n */\n direction: {\n type: String,\n default: 'horizontal',\n values: ['horizontal', 'vertical'],\n },\n /**\n * @description center title and description\n */\n alignCenter: {\n type: Boolean,\n },\n /**\n * @description whether to apply simple theme\n */\n simple: {\n type: Boolean,\n },\n /**\n * @description status of end step\n */\n finishStatus: {\n type: String,\n values: ['wait', 'process', 'finish', 'error', 'success'],\n default: 'finish',\n },\n /**\n * @description status of current step\n */\n processStatus: {\n type: String,\n values: ['wait', 'process', 'finish', 'error', 'success'],\n default: 'process',\n },\n} as const)\nexport type StepsProps = ExtractPropTypes<typeof stepsProps>\n\nexport const stepsEmits = {\n [CHANGE_EVENT]: (newVal: number, oldVal: number) =>\n [newVal, oldVal].every(isNumber),\n}\nexport type StepsEmits = typeof stepsEmits\n\nexport type StepsInstance = InstanceType<typeof Steps>\n"],"names":["buildProps","CHANGE_EVENT","isNumber"],"mappings":";;;;;;;;AAEY,MAAC,UAAU,GAAGA,kBAAU,CAAC;AACrC,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,YAAY;AACzB,IAAI,MAAM,EAAE,CAAC,YAAY,EAAE,UAAU,CAAC;AACtC,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,OAAO;AACjB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,OAAO;AACjB,GAAG;AACH,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,CAAC;AAC7D,IAAI,OAAO,EAAE,QAAQ;AACrB,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,CAAC;AAC7D,IAAI,OAAO,EAAE,SAAS;AACtB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,UAAU,GAAG;AAC1B,EAAE,CAACC,kBAAY,GAAG,CAAC,MAAM,EAAE,MAAM,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,KAAK,CAACC,cAAQ,CAAC;AACtE;;;;;"}
1
+ {"version":3,"file":"steps.js","sources":["../../../../../../packages/components/steps/src/steps.vue"],"sourcesContent":["<template>\n <div :class=\"[ns.b(), ns.m(simple ? 'simple' : direction)]\">\n <slot />\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { getCurrentInstance, provide, watch } from 'vue'\nimport { CHANGE_EVENT } from '@element-plus/constants'\nimport { useNamespace, useOrderedChildren } from '@element-plus/hooks'\nimport { stepsEmits, stepsProps } from './steps'\n\nimport type { StepItemState } from './item.vue'\n\ndefineOptions({\n name: 'ElSteps',\n})\n\nconst props = defineProps(stepsProps)\nconst emit = defineEmits(stepsEmits)\n\nconst ns = useNamespace('steps')\nconst {\n children: steps,\n addChild: addStep,\n removeChild: removeStep,\n} = useOrderedChildren<StepItemState>(getCurrentInstance()!, 'ElStep')\n\nwatch(steps, () => {\n steps.value.forEach((instance: StepItemState, index: number) => {\n instance.setIndex(index)\n })\n})\n\nprovide('ElSteps', { props, steps, addStep, removeStep })\n\nwatch(\n () => props.active,\n (newVal: number, oldVal: number) => {\n emit(CHANGE_EVENT, newVal, oldVal)\n }\n)\n</script>\n"],"names":["useNamespace","useOrderedChildren","getCurrentInstance","watch","provide","_openBlock","_createElementBlock","_normalizeClass","_unref"],"mappings":";;;;;;;;;;;uCAcc,CAAA;AAAA,EACZ,IAAM,EAAA,SAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAKA,IAAM,MAAA,EAAA,GAAKA,mBAAa,OAAO,CAAA,CAAA;AAC/B,IAAM,MAAA;AAAA,MACJ,QAAU,EAAA,KAAA;AAAA,MACV,QAAU,EAAA,OAAA;AAAA,MACV,WAAa,EAAA,UAAA;AAAA,KACX,GAAAC,0BAAA,CAAkCC,sBAAmB,EAAA,EAAI,QAAQ,CAAA,CAAA;AAErE,IAAAC,SAAA,CAAM,OAAO,MAAM;AACjB,MAAA,KAAA,CAAM,KAAM,CAAA,OAAA,CAAQ,CAAC,QAAA,EAAyB,KAAkB,KAAA;AAC9D,QAAA,QAAA,CAAS,SAAS,KAAK,CAAA,CAAA;AAAA,OACxB,CAAA,CAAA;AAAA,KACF,CAAA,CAAA;AAED,IAAAC,WAAA,CAAQ,WAAW,EAAE,KAAA,EAAO,KAAO,EAAA,OAAA,EAAS,YAAY,CAAA,CAAA;AAExD,IAAAD,SAAA,CAAA,MAAA,KAAA,CAAA,MAAA,EAAA,CAAA,MAAA,EAAA,MAAA,KAAA;AAAA,MACE,uBAAY,EAAA,MAAA,EAAA,MAAA,CAAA,CAAA;AAAA,KACZ,CAAA,CAAC;AACC,IAAK,OAAA,CAAA,IAAA,EAAA,MAAA;AAA4B,MACnC,OAAAE,aAAA,EAAA,EAAAC,sBAAA,CAAA,KAAA,EAAA;AAAA,QACF,KAAA,EAAAC,kBAAA,CAAA,CAAAC,SAAA,CAAA,EAAA,CAAA,CAAA,CAAA,EAAA,EAAAA,SAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,IAAA,CAAA,MAAA,GAAA,QAAA,GAAA,IAAA,CAAA,SAAA,CAAA,CAAA,CAAA;;;;;;;;;;;"}
@@ -2,47 +2,45 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var vue = require('vue');
6
- var steps = require('./steps.js');
7
- var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
8
- var index = require('../../../hooks/use-namespace/index.js');
9
- var index$1 = require('../../../hooks/use-ordered-children/index.js');
5
+ var runtime = require('../../../utils/vue/props/runtime.js');
10
6
  var event = require('../../../constants/event.js');
7
+ var types = require('../../../utils/types.js');
11
8
 
12
- const __default__ = vue.defineComponent({
13
- name: "ElSteps"
14
- });
15
- const _sfc_main = /* @__PURE__ */ vue.defineComponent({
16
- ...__default__,
17
- props: steps.stepsProps,
18
- emits: steps.stepsEmits,
19
- setup(__props, { emit }) {
20
- const props = __props;
21
- const ns = index.useNamespace("steps");
22
- const {
23
- children: steps,
24
- addChild: addStep,
25
- removeChild: removeStep
26
- } = index$1.useOrderedChildren(vue.getCurrentInstance(), "ElStep");
27
- vue.watch(steps, () => {
28
- steps.value.forEach((instance, index) => {
29
- instance.setIndex(index);
30
- });
31
- });
32
- vue.provide("ElSteps", { props, steps, addStep, removeStep });
33
- vue.watch(() => props.active, (newVal, oldVal) => {
34
- emit(event.CHANGE_EVENT, newVal, oldVal);
35
- });
36
- return (_ctx, _cache) => {
37
- return vue.openBlock(), vue.createElementBlock("div", {
38
- class: vue.normalizeClass([vue.unref(ns).b(), vue.unref(ns).m(_ctx.simple ? "simple" : _ctx.direction)])
39
- }, [
40
- vue.renderSlot(_ctx.$slots, "default")
41
- ], 2);
42
- };
9
+ const stepsProps = runtime.buildProps({
10
+ space: {
11
+ type: [Number, String],
12
+ default: ""
13
+ },
14
+ active: {
15
+ type: Number,
16
+ default: 0
17
+ },
18
+ direction: {
19
+ type: String,
20
+ default: "horizontal",
21
+ values: ["horizontal", "vertical"]
22
+ },
23
+ alignCenter: {
24
+ type: Boolean
25
+ },
26
+ simple: {
27
+ type: Boolean
28
+ },
29
+ finishStatus: {
30
+ type: String,
31
+ values: ["wait", "process", "finish", "error", "success"],
32
+ default: "finish"
33
+ },
34
+ processStatus: {
35
+ type: String,
36
+ values: ["wait", "process", "finish", "error", "success"],
37
+ default: "process"
43
38
  }
44
39
  });
45
- var Steps = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "steps.vue"]]);
40
+ const stepsEmits = {
41
+ [event.CHANGE_EVENT]: (newVal, oldVal) => [newVal, oldVal].every(types.isNumber)
42
+ };
46
43
 
47
- exports["default"] = Steps;
44
+ exports.stepsEmits = stepsEmits;
45
+ exports.stepsProps = stepsProps;
48
46
  //# sourceMappingURL=steps2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"steps2.js","sources":["../../../../../../packages/components/steps/src/steps.vue"],"sourcesContent":["<template>\n <div :class=\"[ns.b(), ns.m(simple ? 'simple' : direction)]\">\n <slot />\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { getCurrentInstance, provide, watch } from 'vue'\nimport { CHANGE_EVENT } from '@element-plus/constants'\nimport { useNamespace, useOrderedChildren } from '@element-plus/hooks'\nimport { stepsEmits, stepsProps } from './steps'\n\nimport type { StepItemState } from './item.vue'\n\ndefineOptions({\n name: 'ElSteps',\n})\n\nconst props = defineProps(stepsProps)\nconst emit = defineEmits(stepsEmits)\n\nconst ns = useNamespace('steps')\nconst {\n children: steps,\n addChild: addStep,\n removeChild: removeStep,\n} = useOrderedChildren<StepItemState>(getCurrentInstance()!, 'ElStep')\n\nwatch(steps, () => {\n steps.value.forEach((instance: StepItemState, index: number) => {\n instance.setIndex(index)\n })\n})\n\nprovide('ElSteps', { props, steps, addStep, removeStep })\n\nwatch(\n () => props.active,\n (newVal: number, oldVal: number) => {\n emit(CHANGE_EVENT, newVal, oldVal)\n }\n)\n</script>\n"],"names":["useNamespace","useOrderedChildren","getCurrentInstance","watch","provide","_openBlock","_createElementBlock","_normalizeClass","_unref"],"mappings":";;;;;;;;;;;uCAcc,CAAA;AAAA,EACZ,IAAM,EAAA,SAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAKA,IAAM,MAAA,EAAA,GAAKA,mBAAa,OAAO,CAAA,CAAA;AAC/B,IAAM,MAAA;AAAA,MACJ,QAAU,EAAA,KAAA;AAAA,MACV,QAAU,EAAA,OAAA;AAAA,MACV,WAAa,EAAA,UAAA;AAAA,KACX,GAAAC,0BAAA,CAAkCC,sBAAmB,EAAA,EAAI,QAAQ,CAAA,CAAA;AAErE,IAAAC,SAAA,CAAM,OAAO,MAAM;AACjB,MAAA,KAAA,CAAM,KAAM,CAAA,OAAA,CAAQ,CAAC,QAAA,EAAyB,KAAkB,KAAA;AAC9D,QAAA,QAAA,CAAS,SAAS,KAAK,CAAA,CAAA;AAAA,OACxB,CAAA,CAAA;AAAA,KACF,CAAA,CAAA;AAED,IAAAC,WAAA,CAAQ,WAAW,EAAE,KAAA,EAAO,KAAO,EAAA,OAAA,EAAS,YAAY,CAAA,CAAA;AAExD,IAAAD,SAAA,CAAA,MAAA,KAAA,CAAA,MAAA,EAAA,CAAA,MAAA,EAAA,MAAA,KAAA;AAAA,MACE,uBAAY,EAAA,MAAA,EAAA,MAAA,CAAA,CAAA;AAAA,KACZ,CAAA,CAAC;AACC,IAAK,OAAA,CAAA,IAAA,EAAA,MAAA;AAA4B,MACnC,OAAAE,aAAA,EAAA,EAAAC,sBAAA,CAAA,KAAA,EAAA;AAAA,QACF,KAAA,EAAAC,kBAAA,CAAA,CAAAC,SAAA,CAAA,EAAA,CAAA,CAAA,CAAA,EAAA,EAAAA,SAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,IAAA,CAAA,MAAA,GAAA,QAAA,GAAA,IAAA,CAAA,SAAA,CAAA,CAAA,CAAA;;;;;;;;;;;"}
1
+ {"version":3,"file":"steps2.js","sources":["../../../../../../packages/components/steps/src/steps.ts"],"sourcesContent":["import { CHANGE_EVENT } from '@element-plus/constants'\nimport { buildProps, isNumber } from '@element-plus/utils'\nimport type Steps from './steps.vue'\nimport type { ExtractPropTypes } from 'vue'\n\nexport const stepsProps = buildProps({\n /**\n * @description the spacing of each step, will be responsive if omitted. Supports percentage.\n */\n space: {\n type: [Number, String],\n default: '',\n },\n /**\n * @description current activation step\n */\n active: {\n type: Number,\n default: 0,\n },\n /**\n * @description display direction\n */\n direction: {\n type: String,\n default: 'horizontal',\n values: ['horizontal', 'vertical'],\n },\n /**\n * @description center title and description\n */\n alignCenter: {\n type: Boolean,\n },\n /**\n * @description whether to apply simple theme\n */\n simple: {\n type: Boolean,\n },\n /**\n * @description status of end step\n */\n finishStatus: {\n type: String,\n values: ['wait', 'process', 'finish', 'error', 'success'],\n default: 'finish',\n },\n /**\n * @description status of current step\n */\n processStatus: {\n type: String,\n values: ['wait', 'process', 'finish', 'error', 'success'],\n default: 'process',\n },\n} as const)\nexport type StepsProps = ExtractPropTypes<typeof stepsProps>\n\nexport const stepsEmits = {\n [CHANGE_EVENT]: (newVal: number, oldVal: number) =>\n [newVal, oldVal].every(isNumber),\n}\nexport type StepsEmits = typeof stepsEmits\n\nexport type StepsInstance = InstanceType<typeof Steps> & unknown\n"],"names":["buildProps","CHANGE_EVENT","isNumber"],"mappings":";;;;;;;;AAEY,MAAC,UAAU,GAAGA,kBAAU,CAAC;AACrC,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,YAAY;AACzB,IAAI,MAAM,EAAE,CAAC,YAAY,EAAE,UAAU,CAAC;AACtC,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,OAAO;AACjB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,OAAO;AACjB,GAAG;AACH,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,CAAC;AAC7D,IAAI,OAAO,EAAE,QAAQ;AACrB,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,CAAC;AAC7D,IAAI,OAAO,EAAE,SAAS;AACtB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,UAAU,GAAG;AAC1B,EAAE,CAACC,kBAAY,GAAG,CAAC,MAAM,EAAE,MAAM,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,KAAK,CAACC,cAAQ,CAAC;AACtE;;;;;"}
@@ -64,4 +64,4 @@ export declare const switchEmits: {
64
64
  input: (val: boolean | string | number) => boolean;
65
65
  };
66
66
  export type SwitchEmits = typeof switchEmits;
67
- export type SwitchInstance = InstanceType<typeof Switch>;
67
+ export type SwitchInstance = InstanceType<typeof Switch> & unknown;
@@ -1 +1 @@
1
- {"version":3,"file":"switch.js","sources":["../../../../../../packages/components/switch/src/switch.ts"],"sourcesContent":["import {\n buildProps,\n definePropType,\n iconPropType,\n isBoolean,\n isNumber,\n isString,\n isValidComponentSize,\n} from '@element-plus/utils'\nimport {\n CHANGE_EVENT,\n INPUT_EVENT,\n UPDATE_MODEL_EVENT,\n} from '@element-plus/constants'\nimport { useAriaProps } from '@element-plus/hooks'\nimport type { ComponentSize } from '@element-plus/constants'\nimport type Switch from './switch.vue'\nimport type { ExtractPropTypes, PropType } from 'vue'\n\nexport const switchProps = buildProps({\n /**\n * @description binding value, it should be equivalent to either `active-value` or `inactive-value`, by default it's `boolean` type\n */\n modelValue: {\n type: [Boolean, String, Number],\n default: false,\n },\n /**\n * @description whether Switch is disabled\n */\n disabled: Boolean,\n /**\n * @description whether Switch is in loading state\n */\n loading: Boolean,\n /**\n * @description size of Switch\n */\n size: {\n type: String as PropType<ComponentSize>,\n validator: isValidComponentSize,\n },\n /**\n * @description width of Switch\n */\n width: {\n type: [String, Number],\n default: '',\n },\n /**\n * @description whether icon or text is displayed inside dot, only the first character will be rendered for text\n */\n inlinePrompt: Boolean,\n /**\n * @description component of the icon displayed in action when in `off` state\n */\n inactiveActionIcon: {\n type: iconPropType,\n },\n /**\n * @description component of the icon displayed in action when in `on` state\n */\n activeActionIcon: {\n type: iconPropType,\n },\n /**\n * @description component of the icon displayed when in `on` state, overrides `active-text`\n */\n activeIcon: {\n type: iconPropType,\n },\n /**\n * @description component of the icon displayed when in `off` state, overrides `inactive-text`\n */\n inactiveIcon: {\n type: iconPropType,\n },\n /**\n * @description text displayed when in `on` state\n */\n activeText: {\n type: String,\n default: '',\n },\n /**\n * @description text displayed when in `off` state\n */\n inactiveText: {\n type: String,\n default: '',\n },\n /**\n * @description switch value when in `on` state\n */\n activeValue: {\n type: [Boolean, String, Number],\n default: true,\n },\n /**\n * @description switch value when in `off` state\n */\n inactiveValue: {\n type: [Boolean, String, Number],\n default: false,\n },\n /**\n * @description input name of Switch\n */\n name: {\n type: String,\n default: '',\n },\n /**\n * @description whether to trigger form validation\n */\n validateEvent: {\n type: Boolean,\n default: true,\n },\n /**\n * @description before-change hook before the switch state changes. If `false` is returned or a `Promise` is returned and then is rejected, will stop switching\n */\n beforeChange: {\n type: definePropType<() => Promise<boolean> | boolean>(Function),\n },\n /**\n * @description id for input\n */\n id: String,\n /**\n * @description tabindex for input\n */\n tabindex: {\n type: [String, Number],\n },\n ...useAriaProps(['ariaLabel']),\n} as const)\n\nexport type SwitchProps = ExtractPropTypes<typeof switchProps>\n\nexport const switchEmits = {\n [UPDATE_MODEL_EVENT]: (val: boolean | string | number) =>\n isBoolean(val) || isString(val) || isNumber(val),\n [CHANGE_EVENT]: (val: boolean | string | number) =>\n isBoolean(val) || isString(val) || isNumber(val),\n [INPUT_EVENT]: (val: boolean | string | number) =>\n isBoolean(val) || isString(val) || isNumber(val),\n}\nexport type SwitchEmits = typeof switchEmits\n\nexport type SwitchInstance = InstanceType<typeof Switch>\n"],"names":["buildProps","isValidComponentSize","iconPropType","definePropType","useAriaProps","UPDATE_MODEL_EVENT","isBoolean","isString","isNumber","CHANGE_EVENT","INPUT_EVENT"],"mappings":";;;;;;;;;;;;AAeY,MAAC,WAAW,GAAGA,kBAAU,CAAC;AACtC,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC;AACnC,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,QAAQ,E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AAI,EAAEC,sBAAc,CAAC,QAAQ,CAAC;AAClC,GAAG;AACH,EAAE,EAAE,EAAE,MAAM;AACZ,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,GAAG;AACH,EAAE,GAAGC,kBAAY,CAAC,CAAC,WAAW,CAAC,CAAC;AAChC,CAAC,EAAE;AACS,MAAC,WAAW,GAAG;AAC3B,EAAE,CAACC,wBAAkB,GAAG,CAAC,GAAG,KAAKC,eAAS,CAAC,GAAG,CAAC,IAAIC,eAAQ,CAAC,GAAG,CAAC,IAAIC,cAAQ,CAAC,GAAG,CAAC;AACjF,EAAE,CAACC,kBAAY,GAAG,CAAC,GAAG,KAAKH,eAAS,CAAC,GAAG,CAAC,IAAIC,eAAQ,CAAC,GAAG,CAAC,IAAIC,cAAQ,CAAC,GAAG,CAAC;AAC3E,EAAE,CAACE,iBAAW,GAAG,CAAC,GAAG,KAAKJ,eAAS,CAAC,GAAG,CAAC,IAAIC,eAAQ,CAAC,GAAG,CAAC,IAAIC,cAAQ,CAAC,GAAG,CAAC;AAC1E;;;;;"}
1
+ {"version":3,"file":"switch.js","sources":["../../../../../../packages/components/switch/src/switch.ts"],"sourcesContent":["import {\n buildProps,\n definePropType,\n iconPropType,\n isBoolean,\n isNumber,\n isString,\n isValidComponentSize,\n} from '@element-plus/utils'\nimport {\n CHANGE_EVENT,\n INPUT_EVENT,\n UPDATE_MODEL_EVENT,\n} from '@element-plus/constants'\nimport { useAriaProps } from '@element-plus/hooks'\nimport type { ComponentSize } from '@element-plus/constants'\nimport type Switch from './switch.vue'\nimport type { ExtractPropTypes, PropType } from 'vue'\n\nexport const switchProps = buildProps({\n /**\n * @description binding value, it should be equivalent to either `active-value` or `inactive-value`, by default it's `boolean` type\n */\n modelValue: {\n type: [Boolean, String, Number],\n default: false,\n },\n /**\n * @description whether Switch is disabled\n */\n disabled: Boolean,\n /**\n * @description whether Switch is in loading state\n */\n loading: Boolean,\n /**\n * @description size of Switch\n */\n size: {\n type: String as PropType<ComponentSize>,\n validator: isValidComponentSize,\n },\n /**\n * @description width of Switch\n */\n width: {\n type: [String, Number],\n default: '',\n },\n /**\n * @description whether icon or text is displayed inside dot, only the first character will be rendered for text\n */\n inlinePrompt: Boolean,\n /**\n * @description component of the icon displayed in action when in `off` state\n */\n inactiveActionIcon: {\n type: iconPropType,\n },\n /**\n * @description component of the icon displayed in action when in `on` state\n */\n activeActionIcon: {\n type: iconPropType,\n },\n /**\n * @description component of the icon displayed when in `on` state, overrides `active-text`\n */\n activeIcon: {\n type: iconPropType,\n },\n /**\n * @description component of the icon displayed when in `off` state, overrides `inactive-text`\n */\n inactiveIcon: {\n type: iconPropType,\n },\n /**\n * @description text displayed when in `on` state\n */\n activeText: {\n type: String,\n default: '',\n },\n /**\n * @description text displayed when in `off` state\n */\n inactiveText: {\n type: String,\n default: '',\n },\n /**\n * @description switch value when in `on` state\n */\n activeValue: {\n type: [Boolean, String, Number],\n default: true,\n },\n /**\n * @description switch value when in `off` state\n */\n inactiveValue: {\n type: [Boolean, String, Number],\n default: false,\n },\n /**\n * @description input name of Switch\n */\n name: {\n type: String,\n default: '',\n },\n /**\n * @description whether to trigger form validation\n */\n validateEvent: {\n type: Boolean,\n default: true,\n },\n /**\n * @description before-change hook before the switch state changes. If `false` is returned or a `Promise` is returned and then is rejected, will stop switching\n */\n beforeChange: {\n type: definePropType<() => Promise<boolean> | boolean>(Function),\n },\n /**\n * @description id for input\n */\n id: String,\n /**\n * @description tabindex for input\n */\n tabindex: {\n type: [String, Number],\n },\n ...useAriaProps(['ariaLabel']),\n} as const)\n\nexport type SwitchProps = ExtractPropTypes<typeof switchProps>\n\nexport const switchEmits = {\n [UPDATE_MODEL_EVENT]: (val: boolean | string | number) =>\n isBoolean(val) || isString(val) || isNumber(val),\n [CHANGE_EVENT]: (val: boolean | string | number) =>\n isBoolean(val) || isString(val) || isNumber(val),\n [INPUT_EVENT]: (val: boolean | string | number) =>\n isBoolean(val) || isString(val) || isNumber(val),\n}\nexport type SwitchEmits = typeof switchEmits\n\nexport type SwitchInstance = InstanceType<typeof Switch> & unknown\n"],"names":["buildProps","isValidComponentSize","iconPropType","definePropType","useAriaProps","UPDATE_MODEL_EVENT","isBoolean","isString","isNumber","CHANGE_EVENT","INPUT_EVENT"],"mappings":";;;;;;;;;;;;AAeY,MAAC,WAAW,GAAGA,kBAAU,CAAC;AACtC,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC;AACnC,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,OAAO,EAAE,OAAO;AAClB,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,SAAS,EAAEC,8BAAoB;AACnC,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,YAAY,EAAE,OAAO;AACvB,EAAE,kBAAkB,EAAE;AACtB,IAAI,IAAI,EAAEC,iBAAY;AACtB,GAAG;AACH,EAAE,gBAAgB,EAAE;AACpB,IAAI,IAAI,EAAEA,iBAAY;AACtB,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAEA,iBAAY;AACtB,GAAG;AACH,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAEA,iBAAY;AACtB,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC;AACnC,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC;AACnC,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAEC,sBAAc,CAAC,QAAQ,CAAC;AAClC,GAAG;AACH,EAAE,EAAE,EAAE,MAAM;AACZ,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,GAAG;AACH,EAAE,GAAGC,kBAAY,CAAC,CAAC,WAAW,CAAC,CAAC;AAChC,CAAC,EAAE;AACS,MAAC,WAAW,GAAG;AAC3B,EAAE,CAACC,wBAAkB,GAAG,CAAC,GAAG,KAAKC,eAAS,CAAC,GAAG,CAAC,IAAIC,eAAQ,CAAC,GAAG,CAAC,IAAIC,cAAQ,CAAC,GAAG,CAAC;AACjF,EAAE,CAACC,kBAAY,GAAG,CAAC,GAAG,KAAKH,eAAS,CAAC,GAAG,CAAC,IAAIC,eAAQ,CAAC,GAAG,CAAC,IAAIC,cAAQ,CAAC,GAAG,CAAC;AAC3E,EAAE,CAACE,iBAAW,GAAG,CAAC,GAAG,KAAKJ,eAAS,CAAC,GAAG,CAAC,IAAIC,eAAQ,CAAC,GAAG,CAAC,IAAIC,cAAQ,CAAC,GAAG,CAAC;AAC1E;;;;;"}
@@ -6,6 +6,6 @@ export declare const ElTable: SFCWithInstall<typeof Table> & {
6
6
  };
7
7
  export default ElTable;
8
8
  export declare const ElTableColumn: SFCWithInstall<typeof TableColumn>;
9
- export type TableInstance = InstanceType<typeof Table>;
10
- export type TableColumnInstance = InstanceType<typeof TableColumn>;
9
+ export type TableInstance = InstanceType<typeof Table> & unknown;
10
+ export type TableColumnInstance = InstanceType<typeof TableColumn> & unknown;
11
11
  export type { SummaryMethod, Table, TableProps, TableRefs, ColumnCls, ColumnStyle, CellCls, CellStyle, TreeNode, RenderRowData, Sort, Filter, TableColumnCtx, TableTooltipData, } from './src/table/defaults';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../packages/components/table/index.ts"],"sourcesContent":["import { withInstall, withNoopInstall } from '@element-plus/utils'\nimport Table from './src/table.vue'\nimport TableColumn from './src/tableColumn'\nimport type { SFCWithInstall } from '@element-plus/utils'\n\nexport const ElTable: SFCWithInstall<typeof Table> & {\n TableColumn: typeof TableColumn\n} = withInstall(Table, {\n TableColumn,\n})\nexport default ElTable\nexport const ElTableColumn: SFCWithInstall<typeof TableColumn> =\n withNoopInstall(TableColumn)\n\nexport type TableInstance = InstanceType<typeof Table>\n\nexport type TableColumnInstance = InstanceType<typeof TableColumn>\n\nexport type {\n SummaryMethod,\n Table,\n TableProps,\n TableRefs,\n ColumnCls,\n ColumnStyle,\n CellCls,\n CellStyle,\n TreeNode,\n RenderRowData,\n Sort,\n Filter,\n TableColumnCtx,\n TableTooltipData,\n} from './src/table/defaults'\n"],"names":["withInstall","Table","TableColumn","withNoopInstall"],"mappings":";;;;;;;;AAGY,MAAC,OAAO,GAAGA,mBAAW,CAACC,gBAAK,EAAE;AAC1C,eAAEC,gBAAW;AACb,CAAC,EAAE;AAES,MAAC,aAAa,GAAGC,uBAAe,CAACD,gBAAW;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../../packages/components/table/index.ts"],"sourcesContent":["import { withInstall, withNoopInstall } from '@element-plus/utils'\nimport Table from './src/table.vue'\nimport TableColumn from './src/tableColumn'\nimport type { SFCWithInstall } from '@element-plus/utils'\n\nexport const ElTable: SFCWithInstall<typeof Table> & {\n TableColumn: typeof TableColumn\n} = withInstall(Table, {\n TableColumn,\n})\nexport default ElTable\nexport const ElTableColumn: SFCWithInstall<typeof TableColumn> =\n withNoopInstall(TableColumn)\n\nexport type TableInstance = InstanceType<typeof Table> & unknown\n\nexport type TableColumnInstance = InstanceType<typeof TableColumn> & unknown\n\nexport type {\n SummaryMethod,\n Table,\n TableProps,\n TableRefs,\n ColumnCls,\n ColumnStyle,\n CellCls,\n CellStyle,\n TreeNode,\n RenderRowData,\n Sort,\n Filter,\n TableColumnCtx,\n TableTooltipData,\n} from './src/table/defaults'\n"],"names":["withInstall","Table","TableColumn","withNoopInstall"],"mappings":";;;;;;;;AAGY,MAAC,OAAO,GAAGA,mBAAW,CAACC,gBAAK,EAAE;AAC1C,eAAEC,gBAAW;AACb,CAAC,EAAE;AAES,MAAC,aAAa,GAAGC,uBAAe,CAACD,gBAAW;;;;;;"}