element-pe 2.2.32 → 2.2.34

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 (760) hide show
  1. package/dist/index.full.js +8 -2
  2. package/dist/index.full.min.js +10 -10
  3. package/dist/index.full.min.js.map +1 -1
  4. package/dist/index.full.min.mjs +10 -10
  5. package/dist/index.full.min.mjs.map +1 -1
  6. package/dist/index.full.mjs +8 -2
  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.js +1 -1
  12. package/dist/locale/ar.min.js +1 -1
  13. package/dist/locale/ar.min.mjs +1 -1
  14. package/dist/locale/ar.mjs +1 -1
  15. package/dist/locale/az.js +1 -1
  16. package/dist/locale/az.min.js +1 -1
  17. package/dist/locale/az.min.mjs +1 -1
  18. package/dist/locale/az.mjs +1 -1
  19. package/dist/locale/bg.js +1 -1
  20. package/dist/locale/bg.min.js +1 -1
  21. package/dist/locale/bg.min.mjs +1 -1
  22. package/dist/locale/bg.mjs +1 -1
  23. package/dist/locale/bn.js +1 -1
  24. package/dist/locale/bn.min.js +1 -1
  25. package/dist/locale/bn.min.mjs +1 -1
  26. package/dist/locale/bn.mjs +1 -1
  27. package/dist/locale/ca.js +1 -1
  28. package/dist/locale/ca.min.js +1 -1
  29. package/dist/locale/ca.min.mjs +1 -1
  30. package/dist/locale/ca.mjs +1 -1
  31. package/dist/locale/ckb.js +1 -1
  32. package/dist/locale/ckb.min.js +1 -1
  33. package/dist/locale/ckb.min.mjs +1 -1
  34. package/dist/locale/ckb.mjs +1 -1
  35. package/dist/locale/cs.js +1 -1
  36. package/dist/locale/cs.min.js +1 -1
  37. package/dist/locale/cs.min.mjs +1 -1
  38. package/dist/locale/cs.mjs +1 -1
  39. package/dist/locale/da.js +1 -1
  40. package/dist/locale/da.min.js +1 -1
  41. package/dist/locale/da.min.mjs +1 -1
  42. package/dist/locale/da.mjs +1 -1
  43. package/dist/locale/de.js +1 -1
  44. package/dist/locale/de.min.js +1 -1
  45. package/dist/locale/de.min.mjs +1 -1
  46. package/dist/locale/de.mjs +1 -1
  47. package/dist/locale/el.js +1 -1
  48. package/dist/locale/el.min.js +1 -1
  49. package/dist/locale/el.min.mjs +1 -1
  50. package/dist/locale/el.mjs +1 -1
  51. package/dist/locale/en.js +1 -1
  52. package/dist/locale/en.min.js +1 -1
  53. package/dist/locale/en.min.mjs +1 -1
  54. package/dist/locale/en.mjs +1 -1
  55. package/dist/locale/eo.js +1 -1
  56. package/dist/locale/eo.min.js +1 -1
  57. package/dist/locale/eo.min.mjs +1 -1
  58. package/dist/locale/eo.mjs +1 -1
  59. package/dist/locale/es.js +1 -1
  60. package/dist/locale/es.min.js +1 -1
  61. package/dist/locale/es.min.mjs +1 -1
  62. package/dist/locale/es.mjs +1 -1
  63. package/dist/locale/et.js +1 -1
  64. package/dist/locale/et.min.js +1 -1
  65. package/dist/locale/et.min.mjs +1 -1
  66. package/dist/locale/et.mjs +1 -1
  67. package/dist/locale/eu.js +1 -1
  68. package/dist/locale/eu.min.js +1 -1
  69. package/dist/locale/eu.min.mjs +1 -1
  70. package/dist/locale/eu.mjs +1 -1
  71. package/dist/locale/fa.js +1 -1
  72. package/dist/locale/fa.min.js +1 -1
  73. package/dist/locale/fa.min.mjs +1 -1
  74. package/dist/locale/fa.mjs +1 -1
  75. package/dist/locale/fi.js +1 -1
  76. package/dist/locale/fi.min.js +1 -1
  77. package/dist/locale/fi.min.mjs +1 -1
  78. package/dist/locale/fi.mjs +1 -1
  79. package/dist/locale/fr.js +1 -1
  80. package/dist/locale/fr.min.js +1 -1
  81. package/dist/locale/fr.min.mjs +1 -1
  82. package/dist/locale/fr.mjs +1 -1
  83. package/dist/locale/he.js +1 -1
  84. package/dist/locale/he.min.js +1 -1
  85. package/dist/locale/he.min.mjs +1 -1
  86. package/dist/locale/he.mjs +1 -1
  87. package/dist/locale/hr.js +1 -1
  88. package/dist/locale/hr.min.js +1 -1
  89. package/dist/locale/hr.min.mjs +1 -1
  90. package/dist/locale/hr.mjs +1 -1
  91. package/dist/locale/hu.js +1 -1
  92. package/dist/locale/hu.min.js +1 -1
  93. package/dist/locale/hu.min.mjs +1 -1
  94. package/dist/locale/hu.mjs +1 -1
  95. package/dist/locale/hy-am.js +1 -1
  96. package/dist/locale/hy-am.min.js +1 -1
  97. package/dist/locale/hy-am.min.mjs +1 -1
  98. package/dist/locale/hy-am.mjs +1 -1
  99. package/dist/locale/id.js +1 -1
  100. package/dist/locale/id.min.js +1 -1
  101. package/dist/locale/id.min.mjs +1 -1
  102. package/dist/locale/id.mjs +1 -1
  103. package/dist/locale/it.js +1 -1
  104. package/dist/locale/it.min.js +1 -1
  105. package/dist/locale/it.min.mjs +1 -1
  106. package/dist/locale/it.mjs +1 -1
  107. package/dist/locale/ja.js +1 -1
  108. package/dist/locale/ja.min.js +1 -1
  109. package/dist/locale/ja.min.mjs +1 -1
  110. package/dist/locale/ja.mjs +1 -1
  111. package/dist/locale/kk.js +1 -1
  112. package/dist/locale/kk.min.js +1 -1
  113. package/dist/locale/kk.min.mjs +1 -1
  114. package/dist/locale/kk.mjs +1 -1
  115. package/dist/locale/km.js +1 -1
  116. package/dist/locale/km.min.js +1 -1
  117. package/dist/locale/km.min.mjs +1 -1
  118. package/dist/locale/km.mjs +1 -1
  119. package/dist/locale/ko.js +1 -1
  120. package/dist/locale/ko.min.js +1 -1
  121. package/dist/locale/ko.min.mjs +1 -1
  122. package/dist/locale/ko.mjs +1 -1
  123. package/dist/locale/ku.js +1 -1
  124. package/dist/locale/ku.min.js +1 -1
  125. package/dist/locale/ku.min.mjs +1 -1
  126. package/dist/locale/ku.mjs +1 -1
  127. package/dist/locale/ky.js +1 -1
  128. package/dist/locale/ky.min.js +1 -1
  129. package/dist/locale/ky.min.mjs +1 -1
  130. package/dist/locale/ky.mjs +1 -1
  131. package/dist/locale/lt.js +1 -1
  132. package/dist/locale/lt.min.js +1 -1
  133. package/dist/locale/lt.min.mjs +1 -1
  134. package/dist/locale/lt.mjs +1 -1
  135. package/dist/locale/lv.js +1 -1
  136. package/dist/locale/lv.min.js +1 -1
  137. package/dist/locale/lv.min.mjs +1 -1
  138. package/dist/locale/lv.mjs +1 -1
  139. package/dist/locale/mg.js +1 -1
  140. package/dist/locale/mg.min.js +1 -1
  141. package/dist/locale/mg.min.mjs +1 -1
  142. package/dist/locale/mg.mjs +1 -1
  143. package/dist/locale/mn.js +1 -1
  144. package/dist/locale/mn.min.js +1 -1
  145. package/dist/locale/mn.min.mjs +1 -1
  146. package/dist/locale/mn.mjs +1 -1
  147. package/dist/locale/nb-no.js +1 -1
  148. package/dist/locale/nb-no.min.js +1 -1
  149. package/dist/locale/nb-no.min.mjs +1 -1
  150. package/dist/locale/nb-no.mjs +1 -1
  151. package/dist/locale/nl.js +1 -1
  152. package/dist/locale/nl.min.js +1 -1
  153. package/dist/locale/nl.min.mjs +1 -1
  154. package/dist/locale/nl.mjs +1 -1
  155. package/dist/locale/pa.js +1 -1
  156. package/dist/locale/pa.min.js +1 -1
  157. package/dist/locale/pa.min.mjs +1 -1
  158. package/dist/locale/pa.mjs +1 -1
  159. package/dist/locale/pl.js +1 -1
  160. package/dist/locale/pl.min.js +1 -1
  161. package/dist/locale/pl.min.mjs +1 -1
  162. package/dist/locale/pl.mjs +1 -1
  163. package/dist/locale/pt-br.js +1 -1
  164. package/dist/locale/pt-br.min.js +1 -1
  165. package/dist/locale/pt-br.min.mjs +1 -1
  166. package/dist/locale/pt-br.mjs +1 -1
  167. package/dist/locale/pt.js +1 -1
  168. package/dist/locale/pt.min.js +1 -1
  169. package/dist/locale/pt.min.mjs +1 -1
  170. package/dist/locale/pt.mjs +1 -1
  171. package/dist/locale/ro.js +1 -1
  172. package/dist/locale/ro.min.js +1 -1
  173. package/dist/locale/ro.min.mjs +1 -1
  174. package/dist/locale/ro.mjs +1 -1
  175. package/dist/locale/ru.js +1 -1
  176. package/dist/locale/ru.min.js +1 -1
  177. package/dist/locale/ru.min.mjs +1 -1
  178. package/dist/locale/ru.mjs +1 -1
  179. package/dist/locale/sk.js +1 -1
  180. package/dist/locale/sk.min.js +1 -1
  181. package/dist/locale/sk.min.mjs +1 -1
  182. package/dist/locale/sk.mjs +1 -1
  183. package/dist/locale/sl.js +1 -1
  184. package/dist/locale/sl.min.js +1 -1
  185. package/dist/locale/sl.min.mjs +1 -1
  186. package/dist/locale/sl.mjs +1 -1
  187. package/dist/locale/sr.js +1 -1
  188. package/dist/locale/sr.min.js +1 -1
  189. package/dist/locale/sr.min.mjs +1 -1
  190. package/dist/locale/sr.mjs +1 -1
  191. package/dist/locale/sv.js +1 -1
  192. package/dist/locale/sv.min.js +1 -1
  193. package/dist/locale/sv.min.mjs +1 -1
  194. package/dist/locale/sv.mjs +1 -1
  195. package/dist/locale/ta.js +1 -1
  196. package/dist/locale/ta.min.js +1 -1
  197. package/dist/locale/ta.min.mjs +1 -1
  198. package/dist/locale/ta.mjs +1 -1
  199. package/dist/locale/th.js +1 -1
  200. package/dist/locale/th.min.js +1 -1
  201. package/dist/locale/th.min.mjs +1 -1
  202. package/dist/locale/th.mjs +1 -1
  203. package/dist/locale/tk.js +1 -1
  204. package/dist/locale/tk.min.js +1 -1
  205. package/dist/locale/tk.min.mjs +1 -1
  206. package/dist/locale/tk.mjs +1 -1
  207. package/dist/locale/tr.js +1 -1
  208. package/dist/locale/tr.min.js +1 -1
  209. package/dist/locale/tr.min.mjs +1 -1
  210. package/dist/locale/tr.mjs +1 -1
  211. package/dist/locale/ug-cn.js +1 -1
  212. package/dist/locale/ug-cn.min.js +1 -1
  213. package/dist/locale/ug-cn.min.mjs +1 -1
  214. package/dist/locale/ug-cn.mjs +1 -1
  215. package/dist/locale/uk.js +1 -1
  216. package/dist/locale/uk.min.js +1 -1
  217. package/dist/locale/uk.min.mjs +1 -1
  218. package/dist/locale/uk.mjs +1 -1
  219. package/dist/locale/uz-uz.js +1 -1
  220. package/dist/locale/uz-uz.min.js +1 -1
  221. package/dist/locale/uz-uz.min.mjs +1 -1
  222. package/dist/locale/uz-uz.mjs +1 -1
  223. package/dist/locale/vi.js +1 -1
  224. package/dist/locale/vi.min.js +1 -1
  225. package/dist/locale/vi.min.mjs +1 -1
  226. package/dist/locale/vi.mjs +1 -1
  227. package/dist/locale/zh-cn.js +1 -1
  228. package/dist/locale/zh-cn.min.js +1 -1
  229. package/dist/locale/zh-cn.min.mjs +1 -1
  230. package/dist/locale/zh-cn.mjs +1 -1
  231. package/dist/locale/zh-tw.js +1 -1
  232. package/dist/locale/zh-tw.min.js +1 -1
  233. package/dist/locale/zh-tw.min.mjs +1 -1
  234. package/dist/locale/zh-tw.mjs +1 -1
  235. package/es/components/affix/index.mjs +2 -2
  236. package/es/components/affix/src/affix.mjs +26 -117
  237. package/es/components/affix/src/affix.mjs.map +1 -1
  238. package/es/components/affix/src/affix2.mjs +117 -26
  239. package/es/components/affix/src/affix2.mjs.map +1 -1
  240. package/es/components/alert/index.mjs +2 -2
  241. package/es/components/alert/src/alert.mjs +36 -96
  242. package/es/components/alert/src/alert.mjs.map +1 -1
  243. package/es/components/alert/src/alert2.mjs +96 -36
  244. package/es/components/alert/src/alert2.mjs.map +1 -1
  245. package/es/components/button/index.mjs +2 -2
  246. package/es/components/button/src/button-group.mjs +1 -1
  247. package/es/components/button/src/button.mjs +76 -57
  248. package/es/components/button/src/button.mjs.map +1 -1
  249. package/es/components/button/src/button2.mjs +57 -76
  250. package/es/components/button/src/button2.mjs.map +1 -1
  251. package/es/components/button/src/use-button.mjs +2 -0
  252. package/es/components/button/src/use-button.mjs.map +1 -1
  253. package/es/components/carousel/index.mjs +4 -4
  254. package/es/components/carousel/src/carousel-item.mjs +63 -8
  255. package/es/components/carousel/src/carousel-item.mjs.map +1 -1
  256. package/es/components/carousel/src/carousel-item2.mjs +8 -63
  257. package/es/components/carousel/src/carousel-item2.mjs.map +1 -1
  258. package/es/components/carousel/src/carousel.mjs +159 -56
  259. package/es/components/carousel/src/carousel.mjs.map +1 -1
  260. package/es/components/carousel/src/carousel2.mjs +56 -159
  261. package/es/components/carousel/src/carousel2.mjs.map +1 -1
  262. package/es/components/cascader/src/cascader2.mjs +1 -1
  263. package/es/components/col/index.mjs +2 -2
  264. package/es/components/col/src/col.mjs +66 -43
  265. package/es/components/col/src/col.mjs.map +1 -1
  266. package/es/components/col/src/col2.mjs +43 -66
  267. package/es/components/col/src/col2.mjs.map +1 -1
  268. package/es/components/collapse/index.mjs +2 -2
  269. package/es/components/collapse/src/collapse.mjs +30 -17
  270. package/es/components/collapse/src/collapse.mjs.map +1 -1
  271. package/es/components/collapse/src/collapse2.mjs +17 -30
  272. package/es/components/collapse/src/collapse2.mjs.map +1 -1
  273. package/es/components/color-picker/index.mjs +2 -2
  274. package/es/components/color-picker/src/color-picker.mjs +44 -329
  275. package/es/components/color-picker/src/color-picker.mjs.map +1 -1
  276. package/es/components/color-picker/src/color-picker2.mjs +329 -44
  277. package/es/components/color-picker/src/color-picker2.mjs.map +1 -1
  278. package/es/components/color-picker/src/components/predefine.mjs +1 -1
  279. package/es/components/config-provider/index.d.ts +3 -0
  280. package/es/components/config-provider/src/config-provider-props.d.ts +1 -0
  281. package/es/components/config-provider/src/config-provider-props.mjs +4 -0
  282. package/es/components/config-provider/src/config-provider-props.mjs.map +1 -1
  283. package/es/components/config-provider/src/config-provider.d.ts +3 -0
  284. package/es/components/countdown/index.mjs +2 -2
  285. package/es/components/countdown/src/countdown.mjs +74 -23
  286. package/es/components/countdown/src/countdown.mjs.map +1 -1
  287. package/es/components/countdown/src/countdown2.mjs +23 -74
  288. package/es/components/countdown/src/countdown2.mjs.map +1 -1
  289. package/es/components/dialog/index.mjs +2 -2
  290. package/es/components/dialog/src/dialog-content.mjs +37 -86
  291. package/es/components/dialog/src/dialog-content.mjs.map +1 -1
  292. package/es/components/dialog/src/dialog-content2.mjs +86 -37
  293. package/es/components/dialog/src/dialog-content2.mjs.map +1 -1
  294. package/es/components/dialog/src/dialog.mjs +169 -70
  295. package/es/components/dialog/src/dialog.mjs.map +1 -1
  296. package/es/components/dialog/src/dialog2.mjs +70 -169
  297. package/es/components/dialog/src/dialog2.mjs.map +1 -1
  298. package/es/components/divider/index.mjs +2 -2
  299. package/es/components/divider/src/divider.mjs +35 -17
  300. package/es/components/divider/src/divider.mjs.map +1 -1
  301. package/es/components/divider/src/divider2.mjs +17 -35
  302. package/es/components/divider/src/divider2.mjs.map +1 -1
  303. package/es/components/drawer/src/drawer2.mjs +1 -1
  304. package/es/components/form/index.mjs +4 -4
  305. package/es/components/form/src/form-item.mjs +43 -317
  306. package/es/components/form/src/form-item.mjs.map +1 -1
  307. package/es/components/form/src/form-item2.mjs +317 -43
  308. package/es/components/form/src/form-item2.mjs.map +1 -1
  309. package/es/components/form/src/form.mjs +148 -57
  310. package/es/components/form/src/form.mjs.map +1 -1
  311. package/es/components/form/src/form2.mjs +57 -148
  312. package/es/components/form/src/form2.mjs.map +1 -1
  313. package/es/components/icon/index.mjs +2 -2
  314. package/es/components/icon/src/icon.mjs +36 -8
  315. package/es/components/icon/src/icon.mjs.map +1 -1
  316. package/es/components/icon/src/icon2.mjs +8 -36
  317. package/es/components/icon/src/icon2.mjs.map +1 -1
  318. package/es/components/image/index.d.ts +2 -2
  319. package/es/components/image/src/image.vue.d.ts +2 -2
  320. package/es/components/image-viewer/index.d.ts +1 -1
  321. package/es/components/image-viewer/src/image-viewer.vue.d.ts +1 -1
  322. package/es/components/index.mjs +41 -41
  323. package/es/components/link/index.mjs +2 -2
  324. package/es/components/link/src/link.mjs +50 -21
  325. package/es/components/link/src/link.mjs.map +1 -1
  326. package/es/components/link/src/link2.mjs +21 -50
  327. package/es/components/link/src/link2.mjs.map +1 -1
  328. package/es/components/menu/index.mjs +4 -4
  329. package/es/components/menu/src/menu-item-group.mjs +4 -35
  330. package/es/components/menu/src/menu-item-group.mjs.map +1 -1
  331. package/es/components/menu/src/menu-item-group2.mjs +35 -4
  332. package/es/components/menu/src/menu-item-group2.mjs.map +1 -1
  333. package/es/components/menu/src/menu-item.mjs +97 -14
  334. package/es/components/menu/src/menu-item.mjs.map +1 -1
  335. package/es/components/menu/src/menu-item2.mjs +14 -97
  336. package/es/components/menu/src/menu-item2.mjs.map +1 -1
  337. package/es/components/notification/index.mjs +1 -1
  338. package/es/components/notification/src/notification.mjs +69 -147
  339. package/es/components/notification/src/notification.mjs.map +1 -1
  340. package/es/components/notification/src/notification2.mjs +147 -69
  341. package/es/components/notification/src/notification2.mjs.map +1 -1
  342. package/es/components/notification/src/notify.mjs +2 -2
  343. package/es/components/pagination/src/components/jumper.mjs +9 -60
  344. package/es/components/pagination/src/components/jumper.mjs.map +1 -1
  345. package/es/components/pagination/src/components/jumper2.mjs +60 -9
  346. package/es/components/pagination/src/components/jumper2.mjs.map +1 -1
  347. package/es/components/pagination/src/components/next.mjs +19 -38
  348. package/es/components/pagination/src/components/next.mjs.map +1 -1
  349. package/es/components/pagination/src/components/next2.mjs +38 -19
  350. package/es/components/pagination/src/components/next2.mjs.map +1 -1
  351. package/es/components/pagination/src/components/pager.mjs +17 -214
  352. package/es/components/pagination/src/components/pager.mjs.map +1 -1
  353. package/es/components/pagination/src/components/pager2.mjs +214 -17
  354. package/es/components/pagination/src/components/pager2.mjs.map +1 -1
  355. package/es/components/pagination/src/components/sizes.mjs +68 -22
  356. package/es/components/pagination/src/components/sizes.mjs.map +1 -1
  357. package/es/components/pagination/src/components/sizes2.mjs +22 -68
  358. package/es/components/pagination/src/components/sizes2.mjs.map +1 -1
  359. package/es/components/pagination/src/pagination.mjs +4 -4
  360. package/es/components/popconfirm/index.mjs +2 -2
  361. package/es/components/popconfirm/src/popconfirm.mjs +47 -110
  362. package/es/components/popconfirm/src/popconfirm.mjs.map +1 -1
  363. package/es/components/popconfirm/src/popconfirm2.mjs +110 -47
  364. package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
  365. package/es/components/popover/index.mjs +2 -2
  366. package/es/components/popover/src/popover.mjs +111 -66
  367. package/es/components/popover/src/popover.mjs.map +1 -1
  368. package/es/components/popover/src/popover2.mjs +66 -111
  369. package/es/components/popover/src/popover2.mjs.map +1 -1
  370. package/es/components/popper/index.mjs +6 -6
  371. package/es/components/popper/src/arrow.mjs +37 -8
  372. package/es/components/popper/src/arrow.mjs.map +1 -1
  373. package/es/components/popper/src/arrow2.mjs +8 -37
  374. package/es/components/popper/src/arrow2.mjs.map +1 -1
  375. package/es/components/popper/src/content.mjs +137 -94
  376. package/es/components/popper/src/content.mjs.map +1 -1
  377. package/es/components/popper/src/content2.mjs +94 -137
  378. package/es/components/popper/src/content2.mjs.map +1 -1
  379. package/es/components/popper/src/trigger.mjs +119 -31
  380. package/es/components/popper/src/trigger.mjs.map +1 -1
  381. package/es/components/popper/src/trigger2.mjs +31 -119
  382. package/es/components/popper/src/trigger2.mjs.map +1 -1
  383. package/es/components/radio/index.mjs +4 -4
  384. package/es/components/radio/src/radio-button.mjs +1 -1
  385. package/es/components/radio/src/radio-group.mjs +68 -36
  386. package/es/components/radio/src/radio-group.mjs.map +1 -1
  387. package/es/components/radio/src/radio-group2.mjs +36 -68
  388. package/es/components/radio/src/radio-group2.mjs.map +1 -1
  389. package/es/components/radio/src/radio.mjs +71 -30
  390. package/es/components/radio/src/radio.mjs.map +1 -1
  391. package/es/components/radio/src/radio2.mjs +30 -71
  392. package/es/components/radio/src/radio2.mjs.map +1 -1
  393. package/es/components/rate/index.mjs +2 -2
  394. package/es/components/rate/src/rate.mjs +255 -87
  395. package/es/components/rate/src/rate.mjs.map +1 -1
  396. package/es/components/rate/src/rate2.mjs +87 -255
  397. package/es/components/rate/src/rate2.mjs.map +1 -1
  398. package/es/components/row/index.mjs +2 -2
  399. package/es/components/row/src/row.mjs +45 -30
  400. package/es/components/row/src/row.mjs.map +1 -1
  401. package/es/components/row/src/row2.mjs +30 -45
  402. package/es/components/row/src/row2.mjs.map +1 -1
  403. package/es/components/scrollbar/index.mjs +1 -1
  404. package/es/components/scrollbar/src/bar2.mjs +1 -1
  405. package/es/components/scrollbar/src/thumb.mjs +11 -130
  406. package/es/components/scrollbar/src/thumb.mjs.map +1 -1
  407. package/es/components/scrollbar/src/thumb2.mjs +130 -11
  408. package/es/components/scrollbar/src/thumb2.mjs.map +1 -1
  409. package/es/components/select/src/select.mjs +1 -1
  410. package/es/components/skeleton/index.mjs +2 -2
  411. package/es/components/skeleton/src/skeleton.mjs +22 -49
  412. package/es/components/skeleton/src/skeleton.mjs.map +1 -1
  413. package/es/components/skeleton/src/skeleton2.mjs +49 -22
  414. package/es/components/skeleton/src/skeleton2.mjs.map +1 -1
  415. package/es/components/statistic/index.mjs +2 -2
  416. package/es/components/statistic/src/statistic.mjs +25 -70
  417. package/es/components/statistic/src/statistic.mjs.map +1 -1
  418. package/es/components/statistic/src/statistic2.mjs +70 -25
  419. package/es/components/statistic/src/statistic2.mjs.map +1 -1
  420. package/es/components/tabs/index.mjs +1 -1
  421. package/es/components/tabs/src/tab-bar.mjs +75 -7
  422. package/es/components/tabs/src/tab-bar.mjs.map +1 -1
  423. package/es/components/tabs/src/tab-bar2.mjs +7 -75
  424. package/es/components/tabs/src/tab-bar2.mjs.map +1 -1
  425. package/es/components/tabs/src/tab-nav.mjs +1 -1
  426. package/es/components/tag/index.mjs +2 -2
  427. package/es/components/tag/src/tag.mjs +33 -94
  428. package/es/components/tag/src/tag.mjs.map +1 -1
  429. package/es/components/tag/src/tag2.mjs +94 -33
  430. package/es/components/tag/src/tag2.mjs.map +1 -1
  431. package/es/components/text/index.mjs +2 -2
  432. package/es/components/text/src/text.mjs +35 -22
  433. package/es/components/text/src/text.mjs.map +1 -1
  434. package/es/components/text/src/text2.mjs +22 -35
  435. package/es/components/text/src/text2.mjs.map +1 -1
  436. package/es/components/time-select/index.d.ts +2 -2
  437. package/es/components/time-select/index.mjs +1 -1
  438. package/es/components/time-select/src/time-select.mjs +48 -118
  439. package/es/components/time-select/src/time-select.mjs.map +1 -1
  440. package/es/components/time-select/src/time-select.vue.d.ts +1 -1
  441. package/es/components/time-select/src/time-select2.mjs +118 -48
  442. package/es/components/time-select/src/time-select2.mjs.map +1 -1
  443. package/es/components/timeline/index.mjs +2 -2
  444. package/es/components/timeline/src/timeline-item.mjs +70 -42
  445. package/es/components/timeline/src/timeline-item.mjs.map +1 -1
  446. package/es/components/timeline/src/timeline-item2.mjs +42 -70
  447. package/es/components/timeline/src/timeline-item2.mjs.map +1 -1
  448. package/es/components/tooltip/index.mjs +2 -2
  449. package/es/components/tooltip/src/content.mjs +1 -1
  450. package/es/components/tooltip/src/content2.mjs +1 -1
  451. package/es/components/tooltip/src/tooltip.mjs +169 -31
  452. package/es/components/tooltip/src/tooltip.mjs.map +1 -1
  453. package/es/components/tooltip/src/tooltip2.mjs +31 -169
  454. package/es/components/tooltip/src/tooltip2.mjs.map +1 -1
  455. package/es/components/tooltip/src/trigger.mjs +1 -1
  456. package/es/components/tooltip/src/trigger2.mjs +1 -1
  457. package/es/components/tooltip-v2/index.mjs +4 -4
  458. package/es/components/tooltip-v2/src/arrow.mjs +37 -22
  459. package/es/components/tooltip-v2/src/arrow.mjs.map +1 -1
  460. package/es/components/tooltip-v2/src/arrow2.mjs +22 -37
  461. package/es/components/tooltip-v2/src/arrow2.mjs.map +1 -1
  462. package/es/components/tooltip-v2/src/content.mjs +112 -50
  463. package/es/components/tooltip-v2/src/content.mjs.map +1 -1
  464. package/es/components/tooltip-v2/src/content2.mjs +50 -112
  465. package/es/components/tooltip-v2/src/content2.mjs.map +1 -1
  466. package/es/components/tooltip-v2/src/tooltip.mjs +73 -20
  467. package/es/components/tooltip-v2/src/tooltip.mjs.map +1 -1
  468. package/es/components/tooltip-v2/src/tooltip2.mjs +20 -73
  469. package/es/components/tooltip-v2/src/tooltip2.mjs.map +1 -1
  470. package/es/components/transfer/index.mjs +2 -2
  471. package/es/components/transfer/src/composables/use-check.mjs +1 -1
  472. package/es/components/transfer/src/composables/use-checked-change.mjs +1 -1
  473. package/es/components/transfer/src/transfer-panel.mjs +19 -128
  474. package/es/components/transfer/src/transfer-panel.mjs.map +1 -1
  475. package/es/components/transfer/src/transfer-panel2.mjs +128 -19
  476. package/es/components/transfer/src/transfer-panel2.mjs.map +1 -1
  477. package/es/components/transfer/src/transfer.mjs +69 -160
  478. package/es/components/transfer/src/transfer.mjs.map +1 -1
  479. package/es/components/transfer/src/transfer2.mjs +160 -69
  480. package/es/components/transfer/src/transfer2.mjs.map +1 -1
  481. package/es/components/upload/index.mjs +3 -3
  482. package/es/components/upload/src/upload-content.mjs +1 -1
  483. package/es/components/upload/src/upload-content2.mjs +1 -1
  484. package/es/components/upload/src/upload-list.mjs +26 -173
  485. package/es/components/upload/src/upload-list.mjs.map +1 -1
  486. package/es/components/upload/src/upload-list2.mjs +173 -26
  487. package/es/components/upload/src/upload-list2.mjs.map +1 -1
  488. package/es/components/upload/src/upload.mjs +119 -105
  489. package/es/components/upload/src/upload.mjs.map +1 -1
  490. package/es/components/upload/src/upload2.mjs +105 -119
  491. package/es/components/upload/src/upload2.mjs.map +1 -1
  492. package/es/components/upload/src/use-handlers.mjs +1 -1
  493. package/es/index.mjs +41 -41
  494. package/es/version.d.ts +1 -1
  495. package/es/version.mjs +1 -1
  496. package/es/version.mjs.map +1 -1
  497. package/lib/components/affix/index.js +2 -2
  498. package/lib/components/affix/src/affix.js +27 -117
  499. package/lib/components/affix/src/affix.js.map +1 -1
  500. package/lib/components/affix/src/affix2.js +117 -27
  501. package/lib/components/affix/src/affix2.js.map +1 -1
  502. package/lib/components/alert/index.js +2 -2
  503. package/lib/components/alert/src/alert.js +37 -95
  504. package/lib/components/alert/src/alert.js.map +1 -1
  505. package/lib/components/alert/src/alert2.js +95 -37
  506. package/lib/components/alert/src/alert2.js.map +1 -1
  507. package/lib/components/button/index.js +2 -2
  508. package/lib/components/button/src/button-group.js +1 -1
  509. package/lib/components/button/src/button.js +76 -60
  510. package/lib/components/button/src/button.js.map +1 -1
  511. package/lib/components/button/src/button2.js +60 -76
  512. package/lib/components/button/src/button2.js.map +1 -1
  513. package/lib/components/button/src/use-button.js +2 -0
  514. package/lib/components/button/src/use-button.js.map +1 -1
  515. package/lib/components/carousel/index.js +4 -4
  516. package/lib/components/carousel/src/carousel-item.js +63 -8
  517. package/lib/components/carousel/src/carousel-item.js.map +1 -1
  518. package/lib/components/carousel/src/carousel-item2.js +8 -63
  519. package/lib/components/carousel/src/carousel-item2.js.map +1 -1
  520. package/lib/components/carousel/src/carousel.js +159 -57
  521. package/lib/components/carousel/src/carousel.js.map +1 -1
  522. package/lib/components/carousel/src/carousel2.js +57 -159
  523. package/lib/components/carousel/src/carousel2.js.map +1 -1
  524. package/lib/components/cascader/src/cascader2.js +1 -1
  525. package/lib/components/col/index.js +2 -2
  526. package/lib/components/col/src/col.js +66 -43
  527. package/lib/components/col/src/col.js.map +1 -1
  528. package/lib/components/col/src/col2.js +43 -66
  529. package/lib/components/col/src/col2.js.map +1 -1
  530. package/lib/components/collapse/index.js +2 -2
  531. package/lib/components/collapse/src/collapse.js +30 -19
  532. package/lib/components/collapse/src/collapse.js.map +1 -1
  533. package/lib/components/collapse/src/collapse2.js +19 -30
  534. package/lib/components/collapse/src/collapse2.js.map +1 -1
  535. package/lib/components/color-picker/index.js +2 -2
  536. package/lib/components/color-picker/src/color-picker.js +44 -327
  537. package/lib/components/color-picker/src/color-picker.js.map +1 -1
  538. package/lib/components/color-picker/src/color-picker2.js +327 -44
  539. package/lib/components/color-picker/src/color-picker2.js.map +1 -1
  540. package/lib/components/color-picker/src/components/predefine.js +1 -1
  541. package/lib/components/config-provider/index.d.ts +3 -0
  542. package/lib/components/config-provider/src/config-provider-props.d.ts +1 -0
  543. package/lib/components/config-provider/src/config-provider-props.js +4 -0
  544. package/lib/components/config-provider/src/config-provider-props.js.map +1 -1
  545. package/lib/components/config-provider/src/config-provider.d.ts +3 -0
  546. package/lib/components/countdown/index.js +2 -2
  547. package/lib/components/countdown/src/countdown.js +74 -24
  548. package/lib/components/countdown/src/countdown.js.map +1 -1
  549. package/lib/components/countdown/src/countdown2.js +24 -74
  550. package/lib/components/countdown/src/countdown2.js.map +1 -1
  551. package/lib/components/dialog/index.js +2 -2
  552. package/lib/components/dialog/src/dialog-content.js +37 -85
  553. package/lib/components/dialog/src/dialog-content.js.map +1 -1
  554. package/lib/components/dialog/src/dialog-content2.js +85 -37
  555. package/lib/components/dialog/src/dialog-content2.js.map +1 -1
  556. package/lib/components/dialog/src/dialog.js +168 -70
  557. package/lib/components/dialog/src/dialog.js.map +1 -1
  558. package/lib/components/dialog/src/dialog2.js +70 -168
  559. package/lib/components/dialog/src/dialog2.js.map +1 -1
  560. package/lib/components/divider/index.js +2 -2
  561. package/lib/components/divider/src/divider.js +35 -17
  562. package/lib/components/divider/src/divider.js.map +1 -1
  563. package/lib/components/divider/src/divider2.js +17 -35
  564. package/lib/components/divider/src/divider2.js.map +1 -1
  565. package/lib/components/drawer/src/drawer2.js +1 -1
  566. package/lib/components/form/index.js +4 -4
  567. package/lib/components/form/src/form-item.js +44 -321
  568. package/lib/components/form/src/form-item.js.map +1 -1
  569. package/lib/components/form/src/form-item2.js +321 -44
  570. package/lib/components/form/src/form-item2.js.map +1 -1
  571. package/lib/components/form/src/form.js +147 -57
  572. package/lib/components/form/src/form.js.map +1 -1
  573. package/lib/components/form/src/form2.js +57 -147
  574. package/lib/components/form/src/form2.js.map +1 -1
  575. package/lib/components/icon/index.js +2 -2
  576. package/lib/components/icon/src/icon.js +36 -8
  577. package/lib/components/icon/src/icon.js.map +1 -1
  578. package/lib/components/icon/src/icon2.js +8 -36
  579. package/lib/components/icon/src/icon2.js.map +1 -1
  580. package/lib/components/image/index.d.ts +2 -2
  581. package/lib/components/image/src/image.vue.d.ts +2 -2
  582. package/lib/components/image-viewer/index.d.ts +1 -1
  583. package/lib/components/image-viewer/src/image-viewer.vue.d.ts +1 -1
  584. package/lib/components/index.js +41 -41
  585. package/lib/components/link/index.js +2 -2
  586. package/lib/components/link/src/link.js +50 -22
  587. package/lib/components/link/src/link.js.map +1 -1
  588. package/lib/components/link/src/link2.js +22 -50
  589. package/lib/components/link/src/link2.js.map +1 -1
  590. package/lib/components/menu/index.js +4 -4
  591. package/lib/components/menu/src/menu-item-group.js +4 -35
  592. package/lib/components/menu/src/menu-item-group.js.map +1 -1
  593. package/lib/components/menu/src/menu-item-group2.js +35 -4
  594. package/lib/components/menu/src/menu-item-group2.js.map +1 -1
  595. package/lib/components/menu/src/menu-item.js +97 -15
  596. package/lib/components/menu/src/menu-item.js.map +1 -1
  597. package/lib/components/menu/src/menu-item2.js +15 -97
  598. package/lib/components/menu/src/menu-item2.js.map +1 -1
  599. package/lib/components/notification/index.js +1 -1
  600. package/lib/components/notification/src/notification.js +70 -146
  601. package/lib/components/notification/src/notification.js.map +1 -1
  602. package/lib/components/notification/src/notification2.js +146 -70
  603. package/lib/components/notification/src/notification2.js.map +1 -1
  604. package/lib/components/notification/src/notify.js +2 -2
  605. package/lib/components/pagination/src/components/jumper.js +9 -60
  606. package/lib/components/pagination/src/components/jumper.js.map +1 -1
  607. package/lib/components/pagination/src/components/jumper2.js +60 -9
  608. package/lib/components/pagination/src/components/jumper2.js.map +1 -1
  609. package/lib/components/pagination/src/components/next.js +19 -38
  610. package/lib/components/pagination/src/components/next.js.map +1 -1
  611. package/lib/components/pagination/src/components/next2.js +38 -19
  612. package/lib/components/pagination/src/components/next2.js.map +1 -1
  613. package/lib/components/pagination/src/components/pager.js +17 -214
  614. package/lib/components/pagination/src/components/pager.js.map +1 -1
  615. package/lib/components/pagination/src/components/pager2.js +214 -17
  616. package/lib/components/pagination/src/components/pager2.js.map +1 -1
  617. package/lib/components/pagination/src/components/sizes.js +68 -22
  618. package/lib/components/pagination/src/components/sizes.js.map +1 -1
  619. package/lib/components/pagination/src/components/sizes2.js +22 -68
  620. package/lib/components/pagination/src/components/sizes2.js.map +1 -1
  621. package/lib/components/pagination/src/pagination.js +4 -4
  622. package/lib/components/popconfirm/index.js +2 -2
  623. package/lib/components/popconfirm/src/popconfirm.js +48 -110
  624. package/lib/components/popconfirm/src/popconfirm.js.map +1 -1
  625. package/lib/components/popconfirm/src/popconfirm2.js +110 -48
  626. package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
  627. package/lib/components/popover/index.js +2 -2
  628. package/lib/components/popover/src/popover.js +111 -67
  629. package/lib/components/popover/src/popover.js.map +1 -1
  630. package/lib/components/popover/src/popover2.js +67 -111
  631. package/lib/components/popover/src/popover2.js.map +1 -1
  632. package/lib/components/popper/index.js +6 -6
  633. package/lib/components/popper/src/arrow.js +37 -9
  634. package/lib/components/popper/src/arrow.js.map +1 -1
  635. package/lib/components/popper/src/arrow2.js +9 -37
  636. package/lib/components/popper/src/arrow2.js.map +1 -1
  637. package/lib/components/popper/src/content.js +137 -99
  638. package/lib/components/popper/src/content.js.map +1 -1
  639. package/lib/components/popper/src/content2.js +99 -137
  640. package/lib/components/popper/src/content2.js.map +1 -1
  641. package/lib/components/popper/src/trigger.js +119 -32
  642. package/lib/components/popper/src/trigger.js.map +1 -1
  643. package/lib/components/popper/src/trigger2.js +32 -119
  644. package/lib/components/popper/src/trigger2.js.map +1 -1
  645. package/lib/components/radio/index.js +4 -4
  646. package/lib/components/radio/src/radio-button.js +1 -1
  647. package/lib/components/radio/src/radio-group.js +68 -37
  648. package/lib/components/radio/src/radio-group.js.map +1 -1
  649. package/lib/components/radio/src/radio-group2.js +37 -68
  650. package/lib/components/radio/src/radio-group2.js.map +1 -1
  651. package/lib/components/radio/src/radio.js +71 -32
  652. package/lib/components/radio/src/radio.js.map +1 -1
  653. package/lib/components/radio/src/radio2.js +32 -71
  654. package/lib/components/radio/src/radio2.js.map +1 -1
  655. package/lib/components/rate/index.js +2 -2
  656. package/lib/components/rate/src/rate.js +254 -87
  657. package/lib/components/rate/src/rate.js.map +1 -1
  658. package/lib/components/rate/src/rate2.js +87 -254
  659. package/lib/components/rate/src/rate2.js.map +1 -1
  660. package/lib/components/row/index.js +2 -2
  661. package/lib/components/row/src/row.js +45 -32
  662. package/lib/components/row/src/row.js.map +1 -1
  663. package/lib/components/row/src/row2.js +32 -45
  664. package/lib/components/row/src/row2.js.map +1 -1
  665. package/lib/components/scrollbar/index.js +1 -1
  666. package/lib/components/scrollbar/src/bar2.js +1 -1
  667. package/lib/components/scrollbar/src/thumb.js +11 -130
  668. package/lib/components/scrollbar/src/thumb.js.map +1 -1
  669. package/lib/components/scrollbar/src/thumb2.js +130 -11
  670. package/lib/components/scrollbar/src/thumb2.js.map +1 -1
  671. package/lib/components/select/src/select.js +1 -1
  672. package/lib/components/skeleton/index.js +2 -2
  673. package/lib/components/skeleton/src/skeleton.js +22 -49
  674. package/lib/components/skeleton/src/skeleton.js.map +1 -1
  675. package/lib/components/skeleton/src/skeleton2.js +49 -22
  676. package/lib/components/skeleton/src/skeleton2.js.map +1 -1
  677. package/lib/components/statistic/index.js +2 -2
  678. package/lib/components/statistic/src/statistic.js +25 -70
  679. package/lib/components/statistic/src/statistic.js.map +1 -1
  680. package/lib/components/statistic/src/statistic2.js +70 -25
  681. package/lib/components/statistic/src/statistic2.js.map +1 -1
  682. package/lib/components/tabs/index.js +1 -1
  683. package/lib/components/tabs/src/tab-bar.js +75 -7
  684. package/lib/components/tabs/src/tab-bar.js.map +1 -1
  685. package/lib/components/tabs/src/tab-bar2.js +7 -75
  686. package/lib/components/tabs/src/tab-bar2.js.map +1 -1
  687. package/lib/components/tabs/src/tab-nav.js +1 -1
  688. package/lib/components/tag/index.js +2 -2
  689. package/lib/components/tag/src/tag.js +34 -94
  690. package/lib/components/tag/src/tag.js.map +1 -1
  691. package/lib/components/tag/src/tag2.js +94 -34
  692. package/lib/components/tag/src/tag2.js.map +1 -1
  693. package/lib/components/text/index.js +2 -2
  694. package/lib/components/text/src/text.js +35 -22
  695. package/lib/components/text/src/text.js.map +1 -1
  696. package/lib/components/text/src/text2.js +22 -35
  697. package/lib/components/text/src/text2.js.map +1 -1
  698. package/lib/components/time-select/index.d.ts +2 -2
  699. package/lib/components/time-select/index.js +1 -1
  700. package/lib/components/time-select/src/time-select.js +48 -123
  701. package/lib/components/time-select/src/time-select.js.map +1 -1
  702. package/lib/components/time-select/src/time-select.vue.d.ts +1 -1
  703. package/lib/components/time-select/src/time-select2.js +123 -48
  704. package/lib/components/time-select/src/time-select2.js.map +1 -1
  705. package/lib/components/timeline/index.js +2 -2
  706. package/lib/components/timeline/src/timeline-item.js +70 -42
  707. package/lib/components/timeline/src/timeline-item.js.map +1 -1
  708. package/lib/components/timeline/src/timeline-item2.js +42 -70
  709. package/lib/components/timeline/src/timeline-item2.js.map +1 -1
  710. package/lib/components/tooltip/index.js +2 -2
  711. package/lib/components/tooltip/src/content.js +1 -1
  712. package/lib/components/tooltip/src/content2.js +1 -1
  713. package/lib/components/tooltip/src/tooltip.js +168 -34
  714. package/lib/components/tooltip/src/tooltip.js.map +1 -1
  715. package/lib/components/tooltip/src/tooltip2.js +34 -168
  716. package/lib/components/tooltip/src/tooltip2.js.map +1 -1
  717. package/lib/components/tooltip/src/trigger.js +1 -1
  718. package/lib/components/tooltip/src/trigger2.js +1 -1
  719. package/lib/components/tooltip-v2/index.js +4 -4
  720. package/lib/components/tooltip-v2/src/arrow.js +37 -23
  721. package/lib/components/tooltip-v2/src/arrow.js.map +1 -1
  722. package/lib/components/tooltip-v2/src/arrow2.js +23 -37
  723. package/lib/components/tooltip-v2/src/arrow2.js.map +1 -1
  724. package/lib/components/tooltip-v2/src/content.js +112 -50
  725. package/lib/components/tooltip-v2/src/content.js.map +1 -1
  726. package/lib/components/tooltip-v2/src/content2.js +50 -112
  727. package/lib/components/tooltip-v2/src/content2.js.map +1 -1
  728. package/lib/components/tooltip-v2/src/tooltip.js +73 -20
  729. package/lib/components/tooltip-v2/src/tooltip.js.map +1 -1
  730. package/lib/components/tooltip-v2/src/tooltip2.js +20 -73
  731. package/lib/components/tooltip-v2/src/tooltip2.js.map +1 -1
  732. package/lib/components/transfer/index.js +2 -2
  733. package/lib/components/transfer/src/composables/use-check.js +1 -1
  734. package/lib/components/transfer/src/composables/use-checked-change.js +1 -1
  735. package/lib/components/transfer/src/transfer-panel.js +21 -128
  736. package/lib/components/transfer/src/transfer-panel.js.map +1 -1
  737. package/lib/components/transfer/src/transfer-panel2.js +128 -21
  738. package/lib/components/transfer/src/transfer-panel2.js.map +1 -1
  739. package/lib/components/transfer/src/transfer.js +73 -160
  740. package/lib/components/transfer/src/transfer.js.map +1 -1
  741. package/lib/components/transfer/src/transfer2.js +160 -73
  742. package/lib/components/transfer/src/transfer2.js.map +1 -1
  743. package/lib/components/upload/index.js +3 -3
  744. package/lib/components/upload/src/upload-content.js +1 -1
  745. package/lib/components/upload/src/upload-content2.js +1 -1
  746. package/lib/components/upload/src/upload-list.js +27 -173
  747. package/lib/components/upload/src/upload-list.js.map +1 -1
  748. package/lib/components/upload/src/upload-list2.js +173 -27
  749. package/lib/components/upload/src/upload-list2.js.map +1 -1
  750. package/lib/components/upload/src/upload.js +119 -108
  751. package/lib/components/upload/src/upload.js.map +1 -1
  752. package/lib/components/upload/src/upload2.js +108 -119
  753. package/lib/components/upload/src/upload2.js.map +1 -1
  754. package/lib/components/upload/src/use-handlers.js +1 -1
  755. package/lib/index.js +41 -41
  756. package/lib/version.d.ts +1 -1
  757. package/lib/version.js +1 -1
  758. package/lib/version.js.map +1 -1
  759. package/package.json +1 -1
  760. package/web-types.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"affix2.js","sources":["../../../../../../packages/components/affix/src/affix.ts"],"sourcesContent":["import {\n buildProps,\n definePropType,\n isBoolean,\n isNumber,\n} from '@element-plus/utils'\nimport { CHANGE_EVENT } from '@element-plus/constants'\nimport type { ExtractPropTypes } from 'vue'\nimport type { ZIndexProperty } from 'csstype'\nimport type Affix from './affix.vue'\n\nexport const affixProps = buildProps({\n /**\n * @description affix element zIndex value\n * */\n zIndex: {\n type: definePropType<ZIndexProperty>([Number, String]),\n default: 100,\n },\n /**\n * @description target container. (CSS selector)\n */\n target: {\n type: String,\n default: '',\n },\n /**\n * @description offset distance\n * */\n offset: {\n type: Number,\n default: 0,\n },\n /**\n * @description position of affix\n * */\n position: {\n type: String,\n values: ['top', 'bottom'],\n default: 'top',\n },\n} as const)\nexport type AffixProps = ExtractPropTypes<typeof affixProps>\n\nexport const affixEmits = {\n scroll: ({ scrollTop, fixed }: { scrollTop: number; fixed: boolean }) =>\n isNumber(scrollTop) && isBoolean(fixed),\n [CHANGE_EVENT]: (fixed: boolean) => isBoolean(fixed),\n}\nexport type AffixEmits = typeof affixEmits\n\nexport type AffixInstance = InstanceType<typeof Affix>\n"],"names":["buildProps","definePropType","isNumber","isBoolean","CHANGE_EVENT"],"mappings":";;;;;;;;;;AAOY,MAAC,UAAU,GAAGA,kBAAU,CAAC;AACrC,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAEC,sBAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC;AAC7B,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,UAAU,GAAG;AAC1B,EAAE,MAAM,EAAE,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,KAAKC,cAAQ,CAAC,SAAS,CAAC,IAAIC,eAAS,CAAC,KAAK,CAAC;AAC3E,EAAE,CAACC,kBAAY,GAAG,CAAC,KAAK,KAAKD,eAAS,CAAC,KAAK,CAAC;AAC7C;;;;;"}
1
+ {"version":3,"file":"affix2.js","sources":["../../../../../../packages/components/affix/src/affix.vue"],"sourcesContent":["<template>\n <div ref=\"root\" :class=\"ns.b()\" :style=\"rootStyle\">\n <div :class=\"{ [ns.m('fixed')]: fixed }\" :style=\"affixStyle\">\n <slot />\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, onMounted, ref, shallowRef, watch, watchEffect } from 'vue'\nimport {\n useElementBounding,\n useEventListener,\n useWindowSize,\n} from '@vueuse/core'\nimport { addUnit, getScrollContainer, throwError } from '@element-plus/utils'\nimport { useNamespace } from '@element-plus/hooks'\nimport { affixEmits, affixProps } from './affix'\nimport type { CSSProperties } from 'vue'\n\nconst COMPONENT_NAME = 'ElAffix'\ndefineOptions({\n name: COMPONENT_NAME,\n})\n\nconst props = defineProps(affixProps)\nconst emit = defineEmits(affixEmits)\n\nconst ns = useNamespace('affix')\n\nconst target = shallowRef<HTMLElement>()\nconst root = shallowRef<HTMLDivElement>()\nconst scrollContainer = shallowRef<HTMLElement | Window>()\nconst { height: windowHeight } = useWindowSize()\nconst {\n height: rootHeight,\n width: rootWidth,\n top: rootTop,\n bottom: rootBottom,\n update: updateRoot,\n} = useElementBounding(root, { windowScroll: false })\nconst targetRect = useElementBounding(target)\n\nconst fixed = ref(false)\nconst scrollTop = ref(0)\nconst transform = ref(0)\n\nconst rootStyle = computed<CSSProperties>(() => {\n return {\n height: fixed.value ? `${rootHeight.value}px` : '',\n width: fixed.value ? `${rootWidth.value}px` : '',\n }\n})\n\nconst affixStyle = computed<CSSProperties>(() => {\n if (!fixed.value) return {}\n\n const offset = props.offset ? addUnit(props.offset) : 0\n return {\n height: `${rootHeight.value}px`,\n width: `${rootWidth.value}px`,\n top: props.position === 'top' ? offset : '',\n bottom: props.position === 'bottom' ? offset : '',\n transform: transform.value ? `translateY(${transform.value}px)` : '',\n zIndex: props.zIndex,\n }\n})\n\nconst update = () => {\n if (!scrollContainer.value) return\n\n scrollTop.value =\n scrollContainer.value instanceof Window\n ? document.documentElement.scrollTop\n : scrollContainer.value.scrollTop || 0\n\n if (props.position === 'top') {\n if (props.target) {\n const difference =\n targetRect.bottom.value - props.offset - rootHeight.value\n fixed.value = props.offset > rootTop.value && targetRect.bottom.value > 0\n transform.value = difference < 0 ? difference : 0\n } else {\n fixed.value = props.offset > rootTop.value\n }\n } else if (props.target) {\n const difference =\n windowHeight.value -\n targetRect.top.value -\n props.offset -\n rootHeight.value\n fixed.value =\n windowHeight.value - props.offset < rootBottom.value &&\n windowHeight.value > targetRect.top.value\n transform.value = difference < 0 ? -difference : 0\n } else {\n fixed.value = windowHeight.value - props.offset < rootBottom.value\n }\n}\n\nconst handleScroll = () => {\n updateRoot()\n emit('scroll', {\n scrollTop: scrollTop.value,\n fixed: fixed.value,\n })\n}\n\nwatch(fixed, (val) => emit('change', val))\n\nonMounted(() => {\n if (props.target) {\n target.value =\n document.querySelector<HTMLElement>(props.target) ?? undefined\n if (!target.value)\n throwError(COMPONENT_NAME, `Target is not existed: ${props.target}`)\n } else {\n target.value = document.documentElement\n }\n scrollContainer.value = getScrollContainer(root.value!, true)\n updateRoot()\n})\n\nuseEventListener(scrollContainer, 'scroll', handleScroll)\nwatchEffect(update)\n\ndefineExpose({\n /** @description update affix status */\n update,\n /** @description update rootRect info */\n updateRoot,\n})\n</script>\n"],"names":["useNamespace","shallowRef","useWindowSize","useElementBounding","ref","computed","addUnit","watch","onMounted","throwError","getScrollContainer","useEventListener","watchEffect"],"mappings":"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"}
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  require('../../utils/index.js');
6
- var alert$1 = require('./src/alert.js');
7
- var alert = require('./src/alert2.js');
6
+ var alert$1 = require('./src/alert2.js');
7
+ var alert = require('./src/alert.js');
8
8
  var install = require('../../utils/vue/install.js');
9
9
 
10
10
  const ElAlert = install.withInstall(alert$1["default"]);
@@ -2,105 +2,47 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var vue = require('vue');
6
- var index$1 = require('../../icon/index.js');
7
5
  require('../../../utils/index.js');
8
- require('../../../hooks/index.js');
9
- var alert = require('./alert2.js');
10
- var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
6
+ var runtime = require('../../../utils/vue/props/runtime.js');
7
+ var objects = require('../../../utils/objects.js');
11
8
  var icon = require('../../../utils/vue/icon.js');
12
- var index = require('../../../hooks/use-namespace/index.js');
13
9
 
14
- const __default__ = vue.defineComponent({
15
- name: "ElAlert"
16
- });
17
- const _sfc_main = /* @__PURE__ */ vue.defineComponent({
18
- ...__default__,
19
- props: alert.alertProps,
20
- emits: alert.alertEmits,
21
- setup(__props, { emit }) {
22
- const props = __props;
23
- const { Close } = icon.TypeComponents;
24
- const slots = vue.useSlots();
25
- const ns = index.useNamespace("alert");
26
- const visible = vue.ref(true);
27
- const iconComponent = vue.computed(() => icon.TypeComponentsMap[props.type]);
28
- const iconClass = vue.computed(() => [
29
- ns.e("icon"),
30
- { [ns.is("big")]: !!props.description || !!slots.default }
31
- ]);
32
- const isBoldTitle = vue.computed(() => {
33
- return { [ns.is("bold")]: props.description || slots.default };
34
- });
35
- const close = (evt) => {
36
- visible.value = false;
37
- emit("close", evt);
38
- };
39
- return (_ctx, _cache) => {
40
- return vue.openBlock(), vue.createBlock(vue.Transition, {
41
- name: vue.unref(ns).b("fade"),
42
- persisted: ""
43
- }, {
44
- default: vue.withCtx(() => [
45
- vue.withDirectives(vue.createElementVNode("div", {
46
- class: vue.normalizeClass([vue.unref(ns).b(), vue.unref(ns).m(_ctx.type), vue.unref(ns).is("center", _ctx.center), vue.unref(ns).is(_ctx.effect)]),
47
- role: "alert"
48
- }, [
49
- _ctx.showIcon && vue.unref(iconComponent) ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), {
50
- key: 0,
51
- class: vue.normalizeClass(vue.unref(iconClass))
52
- }, {
53
- default: vue.withCtx(() => [
54
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(iconComponent))))
55
- ]),
56
- _: 1
57
- }, 8, ["class"])) : vue.createCommentVNode("v-if", true),
58
- vue.createElementVNode("div", {
59
- class: vue.normalizeClass(vue.unref(ns).e("content"))
60
- }, [
61
- _ctx.title || _ctx.$slots.title ? (vue.openBlock(), vue.createElementBlock("span", {
62
- key: 0,
63
- class: vue.normalizeClass([vue.unref(ns).e("title"), vue.unref(isBoldTitle)])
64
- }, [
65
- vue.renderSlot(_ctx.$slots, "title", {}, () => [
66
- vue.createTextVNode(vue.toDisplayString(_ctx.title), 1)
67
- ])
68
- ], 2)) : vue.createCommentVNode("v-if", true),
69
- _ctx.$slots.default || _ctx.description ? (vue.openBlock(), vue.createElementBlock("p", {
70
- key: 1,
71
- class: vue.normalizeClass(vue.unref(ns).e("description"))
72
- }, [
73
- vue.renderSlot(_ctx.$slots, "default", {}, () => [
74
- vue.createTextVNode(vue.toDisplayString(_ctx.description), 1)
75
- ])
76
- ], 2)) : vue.createCommentVNode("v-if", true),
77
- _ctx.closable ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [
78
- _ctx.closeText ? (vue.openBlock(), vue.createElementBlock("div", {
79
- key: 0,
80
- class: vue.normalizeClass([vue.unref(ns).e("close-btn"), vue.unref(ns).is("customed")]),
81
- onClick: close
82
- }, vue.toDisplayString(_ctx.closeText), 3)) : (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), {
83
- key: 1,
84
- class: vue.normalizeClass(vue.unref(ns).e("close-btn")),
85
- onClick: close
86
- }, {
87
- default: vue.withCtx(() => [
88
- vue.createVNode(vue.unref(Close))
89
- ]),
90
- _: 1
91
- }, 8, ["class"]))
92
- ], 64)) : vue.createCommentVNode("v-if", true)
93
- ], 2)
94
- ], 2), [
95
- [vue.vShow, visible.value]
96
- ])
97
- ]),
98
- _: 3
99
- }, 8, ["name"]);
100
- };
10
+ const alertEffects = ["light", "dark"];
11
+ const alertProps = runtime.buildProps({
12
+ title: {
13
+ type: String,
14
+ default: ""
15
+ },
16
+ description: {
17
+ type: String,
18
+ default: ""
19
+ },
20
+ type: {
21
+ type: String,
22
+ values: objects.keysOf(icon.TypeComponentsMap),
23
+ default: "info"
24
+ },
25
+ closable: {
26
+ type: Boolean,
27
+ default: true
28
+ },
29
+ closeText: {
30
+ type: String,
31
+ default: ""
32
+ },
33
+ showIcon: Boolean,
34
+ center: Boolean,
35
+ effect: {
36
+ type: String,
37
+ values: alertEffects,
38
+ default: "light"
101
39
  }
102
40
  });
103
- var Alert = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "/Users/meng/workspace/element-pe/packages/components/alert/src/alert.vue"]]);
41
+ const alertEmits = {
42
+ close: (evt) => evt instanceof MouseEvent
43
+ };
104
44
 
105
- exports["default"] = Alert;
45
+ exports.alertEffects = alertEffects;
46
+ exports.alertEmits = alertEmits;
47
+ exports.alertProps = alertProps;
106
48
  //# sourceMappingURL=alert.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"alert.js","sources":["../../../../../../packages/components/alert/src/alert.vue"],"sourcesContent":["<template>\n <transition :name=\"ns.b('fade')\">\n <div\n v-show=\"visible\"\n :class=\"[ns.b(), ns.m(type), ns.is('center', center), ns.is(effect)]\"\n role=\"alert\"\n >\n <el-icon v-if=\"showIcon && iconComponent\" :class=\"iconClass\">\n <component :is=\"iconComponent\" />\n </el-icon>\n\n <div :class=\"ns.e('content')\">\n <span\n v-if=\"title || $slots.title\"\n :class=\"[ns.e('title'), isBoldTitle]\"\n >\n <slot name=\"title\">{{ title }}</slot>\n </span>\n <p v-if=\"$slots.default || description\" :class=\"ns.e('description')\">\n <slot>\n {{ description }}\n </slot>\n </p>\n <template v-if=\"closable\">\n <div\n v-if=\"closeText\"\n :class=\"[ns.e('close-btn'), ns.is('customed')]\"\n @click=\"close\"\n >\n {{ closeText }}\n </div>\n <el-icon v-else :class=\"ns.e('close-btn')\" @click=\"close\">\n <Close />\n </el-icon>\n </template>\n </div>\n </div>\n </transition>\n</template>\n<script lang=\"ts\" setup>\nimport { computed, ref, useSlots } from 'vue'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { TypeComponents, TypeComponentsMap } from '@element-plus/utils'\nimport { useNamespace } from '@element-plus/hooks'\nimport { alertEmits, alertProps } from './alert'\n\nconst { Close } = TypeComponents\n\ndefineOptions({\n name: 'ElAlert',\n})\n\nconst props = defineProps(alertProps)\nconst emit = defineEmits(alertEmits)\nconst slots = useSlots()\n\nconst ns = useNamespace('alert')\n\nconst visible = ref(true)\n\nconst iconComponent = computed(() => TypeComponentsMap[props.type])\n\nconst iconClass = computed(() => [\n ns.e('icon'),\n { [ns.is('big')]: !!props.description || !!slots.default },\n])\n\nconst isBoldTitle = computed(() => {\n return { [ns.is('bold')]: props.description || slots.default }\n})\n\nconst close = (evt: MouseEvent) => {\n visible.value = false\n emit('close', evt)\n}\n</script>\n"],"names":["TypeComponents","useSlots","useNamespace","ref","computed","TypeComponentsMap"],"mappings":";;;;;;;;;;;;;uCAgDc,CAAA;AAAA,EACZ,IAAM,EAAA,SAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAJA,IAAA,MAAM,EAAE,KAAU,EAAA,GAAAA,mBAAA,CAAA;AAQlB,IAAA,MAAM,QAAQC,YAAS,EAAA,CAAA;AAEvB,IAAM,MAAA,EAAA,GAAKC,mBAAa,OAAO,CAAA,CAAA;AAE/B,IAAM,MAAA,OAAA,GAAUC,QAAI,IAAI,CAAA,CAAA;AAExB,IAAA,MAAM,aAAgB,GAAAC,YAAA,CAAS,MAAMC,sBAAA,CAAkB,MAAM,IAAK,CAAA,CAAA,CAAA;AAElE,IAAM,MAAA,SAAA,GAAYD,aAAS,MAAM;AAAA,MAC/B,EAAA,CAAG,EAAE,MAAM,CAAA;AAAA,MACX,EAAE,CAAC,EAAG,CAAA,EAAA,CAAG,KAAK,CAAA,GAAI,CAAC,CAAC,KAAM,CAAA,WAAA,IAAe,CAAC,CAAC,MAAM,OAAQ,EAAA;AAAA,KAC1D,CAAA,CAAA;AAED,IAAM,MAAA,WAAA,GAAcA,aAAS,MAAM;AACjC,MAAO,OAAA,EAAE,CAAC,EAAG,CAAA,EAAA,CAAG,MAAM,CAAI,GAAA,KAAA,CAAM,WAAe,IAAA,KAAA,CAAM,OAAQ,EAAA,CAAA;AAAA,KAC9D,CAAA,CAAA;AAED,IAAM,MAAA,KAAA,GAAQ,CAAC,GAAoB,KAAA;AACjC,MAAA,OAAA,CAAQ,KAAQ,GAAA,KAAA,CAAA;AAChB,MAAA,IAAA,CAAK,SAAS,GAAG,CAAA,CAAA;AAAA,KACnB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"alert.js","sources":["../../../../../../packages/components/alert/src/alert.ts"],"sourcesContent":["import { TypeComponentsMap, buildProps, keysOf } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\n\nexport const alertEffects = ['light', 'dark'] as const\n\nexport const alertProps = buildProps({\n /**\n * @description alert title.\n */\n title: {\n type: String,\n default: '',\n },\n description: {\n type: String,\n default: '',\n },\n /**\n * @description alert type.\n */\n type: {\n type: String,\n values: keysOf(TypeComponentsMap),\n default: 'info',\n },\n /**\n * @description whether alert can be dismissed.\n */\n closable: {\n type: Boolean,\n default: true,\n },\n /**\n * @description text for replacing x button\n */\n closeText: {\n type: String,\n default: '',\n },\n /**\n * @description whether show icon\n */\n showIcon: Boolean,\n /**\n * @description should content be placed in center.\n */\n center: Boolean,\n effect: {\n type: String,\n values: alertEffects,\n default: 'light',\n },\n} as const)\nexport type AlertProps = ExtractPropTypes<typeof alertProps>\n\nexport const alertEmits = {\n close: (evt: MouseEvent) => evt instanceof MouseEvent,\n}\nexport type AlertEmits = typeof alertEmits\n"],"names":["buildProps","keysOf","TypeComponentsMap"],"mappings":";;;;;;;;;AACY,MAAC,YAAY,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE;AAClC,MAAC,UAAU,GAAGA,kBAAU,CAAC;AACrC,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAEC,cAAM,CAACC,sBAAiB,CAAC;AACrC,IAAI,OAAO,EAAE,MAAM;AACnB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,MAAM,EAAE,OAAO;AACjB,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,YAAY;AACxB,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,UAAU,GAAG;AAC1B,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC3C;;;;;;"}
@@ -2,47 +2,105 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var vue = require('vue');
6
+ var index$1 = require('../../icon/index.js');
5
7
  require('../../../utils/index.js');
6
- var runtime = require('../../../utils/vue/props/runtime.js');
7
- var objects = require('../../../utils/objects.js');
8
+ require('../../../hooks/index.js');
9
+ var alert = require('./alert.js');
10
+ var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
8
11
  var icon = require('../../../utils/vue/icon.js');
12
+ var index = require('../../../hooks/use-namespace/index.js');
9
13
 
10
- const alertEffects = ["light", "dark"];
11
- const alertProps = runtime.buildProps({
12
- title: {
13
- type: String,
14
- default: ""
15
- },
16
- description: {
17
- type: String,
18
- default: ""
19
- },
20
- type: {
21
- type: String,
22
- values: objects.keysOf(icon.TypeComponentsMap),
23
- default: "info"
24
- },
25
- closable: {
26
- type: Boolean,
27
- default: true
28
- },
29
- closeText: {
30
- type: String,
31
- default: ""
32
- },
33
- showIcon: Boolean,
34
- center: Boolean,
35
- effect: {
36
- type: String,
37
- values: alertEffects,
38
- default: "light"
14
+ const __default__ = vue.defineComponent({
15
+ name: "ElAlert"
16
+ });
17
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
18
+ ...__default__,
19
+ props: alert.alertProps,
20
+ emits: alert.alertEmits,
21
+ setup(__props, { emit }) {
22
+ const props = __props;
23
+ const { Close } = icon.TypeComponents;
24
+ const slots = vue.useSlots();
25
+ const ns = index.useNamespace("alert");
26
+ const visible = vue.ref(true);
27
+ const iconComponent = vue.computed(() => icon.TypeComponentsMap[props.type]);
28
+ const iconClass = vue.computed(() => [
29
+ ns.e("icon"),
30
+ { [ns.is("big")]: !!props.description || !!slots.default }
31
+ ]);
32
+ const isBoldTitle = vue.computed(() => {
33
+ return { [ns.is("bold")]: props.description || slots.default };
34
+ });
35
+ const close = (evt) => {
36
+ visible.value = false;
37
+ emit("close", evt);
38
+ };
39
+ return (_ctx, _cache) => {
40
+ return vue.openBlock(), vue.createBlock(vue.Transition, {
41
+ name: vue.unref(ns).b("fade"),
42
+ persisted: ""
43
+ }, {
44
+ default: vue.withCtx(() => [
45
+ vue.withDirectives(vue.createElementVNode("div", {
46
+ class: vue.normalizeClass([vue.unref(ns).b(), vue.unref(ns).m(_ctx.type), vue.unref(ns).is("center", _ctx.center), vue.unref(ns).is(_ctx.effect)]),
47
+ role: "alert"
48
+ }, [
49
+ _ctx.showIcon && vue.unref(iconComponent) ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), {
50
+ key: 0,
51
+ class: vue.normalizeClass(vue.unref(iconClass))
52
+ }, {
53
+ default: vue.withCtx(() => [
54
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(iconComponent))))
55
+ ]),
56
+ _: 1
57
+ }, 8, ["class"])) : vue.createCommentVNode("v-if", true),
58
+ vue.createElementVNode("div", {
59
+ class: vue.normalizeClass(vue.unref(ns).e("content"))
60
+ }, [
61
+ _ctx.title || _ctx.$slots.title ? (vue.openBlock(), vue.createElementBlock("span", {
62
+ key: 0,
63
+ class: vue.normalizeClass([vue.unref(ns).e("title"), vue.unref(isBoldTitle)])
64
+ }, [
65
+ vue.renderSlot(_ctx.$slots, "title", {}, () => [
66
+ vue.createTextVNode(vue.toDisplayString(_ctx.title), 1)
67
+ ])
68
+ ], 2)) : vue.createCommentVNode("v-if", true),
69
+ _ctx.$slots.default || _ctx.description ? (vue.openBlock(), vue.createElementBlock("p", {
70
+ key: 1,
71
+ class: vue.normalizeClass(vue.unref(ns).e("description"))
72
+ }, [
73
+ vue.renderSlot(_ctx.$slots, "default", {}, () => [
74
+ vue.createTextVNode(vue.toDisplayString(_ctx.description), 1)
75
+ ])
76
+ ], 2)) : vue.createCommentVNode("v-if", true),
77
+ _ctx.closable ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [
78
+ _ctx.closeText ? (vue.openBlock(), vue.createElementBlock("div", {
79
+ key: 0,
80
+ class: vue.normalizeClass([vue.unref(ns).e("close-btn"), vue.unref(ns).is("customed")]),
81
+ onClick: close
82
+ }, vue.toDisplayString(_ctx.closeText), 3)) : (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), {
83
+ key: 1,
84
+ class: vue.normalizeClass(vue.unref(ns).e("close-btn")),
85
+ onClick: close
86
+ }, {
87
+ default: vue.withCtx(() => [
88
+ vue.createVNode(vue.unref(Close))
89
+ ]),
90
+ _: 1
91
+ }, 8, ["class"]))
92
+ ], 64)) : vue.createCommentVNode("v-if", true)
93
+ ], 2)
94
+ ], 2), [
95
+ [vue.vShow, visible.value]
96
+ ])
97
+ ]),
98
+ _: 3
99
+ }, 8, ["name"]);
100
+ };
39
101
  }
40
102
  });
41
- const alertEmits = {
42
- close: (evt) => evt instanceof MouseEvent
43
- };
103
+ var Alert = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "/Users/meng/workspace/element-pe/packages/components/alert/src/alert.vue"]]);
44
104
 
45
- exports.alertEffects = alertEffects;
46
- exports.alertEmits = alertEmits;
47
- exports.alertProps = alertProps;
105
+ exports["default"] = Alert;
48
106
  //# sourceMappingURL=alert2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"alert2.js","sources":["../../../../../../packages/components/alert/src/alert.ts"],"sourcesContent":["import { TypeComponentsMap, buildProps, keysOf } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\n\nexport const alertEffects = ['light', 'dark'] as const\n\nexport const alertProps = buildProps({\n /**\n * @description alert title.\n */\n title: {\n type: String,\n default: '',\n },\n description: {\n type: String,\n default: '',\n },\n /**\n * @description alert type.\n */\n type: {\n type: String,\n values: keysOf(TypeComponentsMap),\n default: 'info',\n },\n /**\n * @description whether alert can be dismissed.\n */\n closable: {\n type: Boolean,\n default: true,\n },\n /**\n * @description text for replacing x button\n */\n closeText: {\n type: String,\n default: '',\n },\n /**\n * @description whether show icon\n */\n showIcon: Boolean,\n /**\n * @description should content be placed in center.\n */\n center: Boolean,\n effect: {\n type: String,\n values: alertEffects,\n default: 'light',\n },\n} as const)\nexport type AlertProps = ExtractPropTypes<typeof alertProps>\n\nexport const alertEmits = {\n close: (evt: MouseEvent) => evt instanceof MouseEvent,\n}\nexport type AlertEmits = typeof alertEmits\n"],"names":["buildProps","keysOf","TypeComponentsMap"],"mappings":";;;;;;;;;AACY,MAAC,YAAY,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE;AAClC,MAAC,UAAU,GAAGA,kBAAU,CAAC;AACrC,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAEC,cAAM,CAACC,sBAAiB,CAAC;AACrC,IAAI,OAAO,EAAE,MAAM;AACnB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,MAAM,EAAE,OAAO;AACjB,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,YAAY;AACxB,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,UAAU,GAAG;AAC1B,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC3C;;;;;;"}
1
+ {"version":3,"file":"alert2.js","sources":["../../../../../../packages/components/alert/src/alert.vue"],"sourcesContent":["<template>\n <transition :name=\"ns.b('fade')\">\n <div\n v-show=\"visible\"\n :class=\"[ns.b(), ns.m(type), ns.is('center', center), ns.is(effect)]\"\n role=\"alert\"\n >\n <el-icon v-if=\"showIcon && iconComponent\" :class=\"iconClass\">\n <component :is=\"iconComponent\" />\n </el-icon>\n\n <div :class=\"ns.e('content')\">\n <span\n v-if=\"title || $slots.title\"\n :class=\"[ns.e('title'), isBoldTitle]\"\n >\n <slot name=\"title\">{{ title }}</slot>\n </span>\n <p v-if=\"$slots.default || description\" :class=\"ns.e('description')\">\n <slot>\n {{ description }}\n </slot>\n </p>\n <template v-if=\"closable\">\n <div\n v-if=\"closeText\"\n :class=\"[ns.e('close-btn'), ns.is('customed')]\"\n @click=\"close\"\n >\n {{ closeText }}\n </div>\n <el-icon v-else :class=\"ns.e('close-btn')\" @click=\"close\">\n <Close />\n </el-icon>\n </template>\n </div>\n </div>\n </transition>\n</template>\n<script lang=\"ts\" setup>\nimport { computed, ref, useSlots } from 'vue'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { TypeComponents, TypeComponentsMap } from '@element-plus/utils'\nimport { useNamespace } from '@element-plus/hooks'\nimport { alertEmits, alertProps } from './alert'\n\nconst { Close } = TypeComponents\n\ndefineOptions({\n name: 'ElAlert',\n})\n\nconst props = defineProps(alertProps)\nconst emit = defineEmits(alertEmits)\nconst slots = useSlots()\n\nconst ns = useNamespace('alert')\n\nconst visible = ref(true)\n\nconst iconComponent = computed(() => TypeComponentsMap[props.type])\n\nconst iconClass = computed(() => [\n ns.e('icon'),\n { [ns.is('big')]: !!props.description || !!slots.default },\n])\n\nconst isBoldTitle = computed(() => {\n return { [ns.is('bold')]: props.description || slots.default }\n})\n\nconst close = (evt: MouseEvent) => {\n visible.value = false\n emit('close', evt)\n}\n</script>\n"],"names":["TypeComponents","useSlots","useNamespace","ref","computed","TypeComponentsMap"],"mappings":";;;;;;;;;;;;;uCAgDc,CAAA;AAAA,EACZ,IAAM,EAAA,SAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAJA,IAAA,MAAM,EAAE,KAAU,EAAA,GAAAA,mBAAA,CAAA;AAQlB,IAAA,MAAM,QAAQC,YAAS,EAAA,CAAA;AAEvB,IAAM,MAAA,EAAA,GAAKC,mBAAa,OAAO,CAAA,CAAA;AAE/B,IAAM,MAAA,OAAA,GAAUC,QAAI,IAAI,CAAA,CAAA;AAExB,IAAA,MAAM,aAAgB,GAAAC,YAAA,CAAS,MAAMC,sBAAA,CAAkB,MAAM,IAAK,CAAA,CAAA,CAAA;AAElE,IAAM,MAAA,SAAA,GAAYD,aAAS,MAAM;AAAA,MAC/B,EAAA,CAAG,EAAE,MAAM,CAAA;AAAA,MACX,EAAE,CAAC,EAAG,CAAA,EAAA,CAAG,KAAK,CAAA,GAAI,CAAC,CAAC,KAAM,CAAA,WAAA,IAAe,CAAC,CAAC,MAAM,OAAQ,EAAA;AAAA,KAC1D,CAAA,CAAA;AAED,IAAM,MAAA,WAAA,GAAcA,aAAS,MAAM;AACjC,MAAO,OAAA,EAAE,CAAC,EAAG,CAAA,EAAA,CAAG,MAAM,CAAI,GAAA,KAAA,CAAM,WAAe,IAAA,KAAA,CAAM,OAAQ,EAAA,CAAA;AAAA,KAC9D,CAAA,CAAA;AAED,IAAM,MAAA,KAAA,GAAQ,CAAC,GAAoB,KAAA;AACjC,MAAA,OAAA,CAAQ,KAAQ,GAAA,KAAA,CAAA;AAChB,MAAA,IAAA,CAAK,SAAS,GAAG,CAAA,CAAA;AAAA,KACnB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -3,9 +3,9 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  require('../../utils/index.js');
6
- var button$1 = require('./src/button2.js');
6
+ var button$1 = require('./src/button.js');
7
7
  var buttonGroup = require('./src/button-group2.js');
8
- var button = require('./src/button.js');
8
+ var button = require('./src/button2.js');
9
9
  var constants = require('./src/constants.js');
10
10
  var install = require('../../utils/vue/install.js');
11
11
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var button = require('./button.js');
5
+ var button = require('./button2.js');
6
6
 
7
7
  const buttonGroupProps = {
8
8
  size: button.buttonProps.size,
@@ -2,69 +2,85 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var vue = require('vue');
6
+ var index$1 = require('../../icon/index.js');
5
7
  require('../../../hooks/index.js');
6
- require('../../../utils/index.js');
7
- var iconsVue = require('@element-plus/icons-vue');
8
- var runtime = require('../../../utils/vue/props/runtime.js');
9
- var index = require('../../../hooks/use-size/index.js');
10
- var icon = require('../../../utils/vue/icon.js');
8
+ var useButton = require('./use-button.js');
9
+ var button = require('./button2.js');
10
+ var buttonCustom = require('./button-custom.js');
11
+ var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
12
+ var index = require('../../../hooks/use-namespace/index.js');
11
13
 
12
- const buttonTypes = [
13
- "default",
14
- "primary",
15
- "success",
16
- "warning",
17
- "info",
18
- "danger",
19
- "text",
20
- ""
21
- ];
22
- const buttonNativeTypes = ["button", "submit", "reset"];
23
- const buttonProps = runtime.buildProps({
24
- size: index.useSizeProp,
25
- disabled: Boolean,
26
- type: {
27
- type: String,
28
- values: buttonTypes,
29
- default: ""
30
- },
31
- icon: {
32
- type: icon.iconPropType
33
- },
34
- nativeType: {
35
- type: String,
36
- values: buttonNativeTypes,
37
- default: "button"
38
- },
39
- loading: Boolean,
40
- loadingIcon: {
41
- type: icon.iconPropType,
42
- default: () => iconsVue.Loading
43
- },
44
- plain: Boolean,
45
- text: Boolean,
46
- link: Boolean,
47
- bg: Boolean,
48
- autofocus: Boolean,
49
- round: Boolean,
50
- circle: Boolean,
51
- color: String,
52
- dark: Boolean,
53
- autoInsertSpace: {
54
- type: Boolean,
55
- default: void 0
56
- },
57
- tag: {
58
- type: runtime.definePropType([String, Object]),
59
- default: "button"
14
+ const __default__ = vue.defineComponent({
15
+ name: "ElButton"
16
+ });
17
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
18
+ ...__default__,
19
+ props: button.buttonProps,
20
+ emits: button.buttonEmits,
21
+ setup(__props, { expose, emit }) {
22
+ const props = __props;
23
+ const buttonStyle = buttonCustom.useButtonCustomStyle(props);
24
+ const ns = index.useNamespace("button");
25
+ const { _ref, _size, _type, _disabled, _props, shouldAddSpace, handleClick } = useButton.useButton(props, emit);
26
+ expose({
27
+ ref: _ref,
28
+ size: _size,
29
+ type: _type,
30
+ disabled: _disabled,
31
+ shouldAddSpace
32
+ });
33
+ return (_ctx, _cache) => {
34
+ return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.tag), vue.mergeProps({
35
+ ref_key: "_ref",
36
+ ref: _ref
37
+ }, vue.unref(_props), {
38
+ class: [
39
+ vue.unref(ns).b(),
40
+ vue.unref(ns).m(vue.unref(_type)),
41
+ vue.unref(ns).m(vue.unref(_size)),
42
+ vue.unref(ns).is("disabled", vue.unref(_disabled)),
43
+ vue.unref(ns).is("loading", _ctx.loading),
44
+ vue.unref(ns).is("plain", _ctx.plain),
45
+ vue.unref(ns).is("round", _ctx.round),
46
+ vue.unref(ns).is("circle", _ctx.circle),
47
+ vue.unref(ns).is("text", _ctx.text),
48
+ vue.unref(ns).is("link", _ctx.link),
49
+ vue.unref(ns).is("has-bg", _ctx.bg)
50
+ ],
51
+ style: vue.unref(buttonStyle),
52
+ onClick: vue.unref(handleClick)
53
+ }), {
54
+ default: vue.withCtx(() => [
55
+ _ctx.loading ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
56
+ _ctx.$slots.loading ? vue.renderSlot(_ctx.$slots, "loading", { key: 0 }) : (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), {
57
+ key: 1,
58
+ class: vue.normalizeClass(vue.unref(ns).is("loading"))
59
+ }, {
60
+ default: vue.withCtx(() => [
61
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.loadingIcon)))
62
+ ]),
63
+ _: 1
64
+ }, 8, ["class"]))
65
+ ], 64)) : _ctx.icon || _ctx.$slots.icon ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), { key: 1 }, {
66
+ default: vue.withCtx(() => [
67
+ _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.icon), { key: 0 })) : vue.renderSlot(_ctx.$slots, "icon", { key: 1 })
68
+ ]),
69
+ _: 3
70
+ })) : vue.createCommentVNode("v-if", true),
71
+ _ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock("span", {
72
+ key: 2,
73
+ class: vue.normalizeClass({ [vue.unref(ns).em("text", "expand")]: vue.unref(shouldAddSpace) })
74
+ }, [
75
+ vue.renderSlot(_ctx.$slots, "default")
76
+ ], 2)) : vue.createCommentVNode("v-if", true)
77
+ ]),
78
+ _: 3
79
+ }, 16, ["class", "style", "onClick"]);
80
+ };
60
81
  }
61
82
  });
62
- const buttonEmits = {
63
- click: (evt) => evt instanceof MouseEvent
64
- };
83
+ var Button = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "/Users/meng/workspace/element-pe/packages/components/button/src/button.vue"]]);
65
84
 
66
- exports.buttonEmits = buttonEmits;
67
- exports.buttonNativeTypes = buttonNativeTypes;
68
- exports.buttonProps = buttonProps;
69
- exports.buttonTypes = buttonTypes;
85
+ exports["default"] = Button;
70
86
  //# sourceMappingURL=button.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"button.js","sources":["../../../../../../packages/components/button/src/button.ts"],"sourcesContent":["import { useSizeProp } from '@element-plus/hooks'\nimport { buildProps, definePropType, iconPropType } from '@element-plus/utils'\nimport { Loading } from '@element-plus/icons-vue'\nimport type { Component, ExtractPropTypes } from 'vue'\n\nexport const buttonTypes = [\n 'default',\n 'primary',\n 'success',\n 'warning',\n 'info',\n 'danger',\n /**\n * @deprecated\n * Text type will be deprecated in the next major version (3.0.0)\n */\n 'text',\n '',\n] as const\nexport const buttonNativeTypes = ['button', 'submit', 'reset'] as const\n\nexport const buttonProps = buildProps({\n /**\n * @description button size\n */\n size: useSizeProp,\n /**\n * @description disable the button\n */\n disabled: Boolean,\n /**\n * @description button type\n */\n type: {\n type: String,\n values: buttonTypes,\n default: '',\n },\n /**\n * @description icon component\n */\n icon: {\n type: iconPropType,\n },\n /**\n * @description native button type\n */\n nativeType: {\n type: String,\n values: buttonNativeTypes,\n default: 'button',\n },\n /**\n * @description determine whether it's loading\n */\n loading: Boolean,\n /**\n * @description customize loading icon component\n */\n loadingIcon: {\n type: iconPropType,\n default: () => Loading,\n },\n /**\n * @description determine whether it's a plain button\n */\n plain: Boolean,\n /**\n * @description determine whether it's a text button\n */\n text: Boolean,\n /**\n * @description determine whether it's a link button\n */\n link: Boolean,\n /**\n * @description determine whether the text button background color is always on\n */\n bg: Boolean,\n /**\n * @description native button autofocus\n */\n autofocus: Boolean,\n /**\n * @description determine whether it's a round button\n */\n round: Boolean,\n /**\n * @description determine whether it's a circle button\n */\n circle: Boolean,\n /**\n * @description custom button color, automatically calculate `hover` and `active` color\n */\n color: String,\n /**\n * @description dark mode, which automatically converts `color` to dark mode colors\n */\n dark: Boolean,\n /**\n * @description automatically insert a space between two chinese characters\n */\n autoInsertSpace: {\n type: Boolean,\n default: undefined,\n },\n /**\n * @description custom element tag\n */\n tag: {\n type: definePropType<string | Component>([String, Object]),\n default: 'button',\n },\n} as const)\nexport const buttonEmits = {\n click: (evt: MouseEvent) => evt instanceof MouseEvent,\n}\n\nexport type ButtonProps = ExtractPropTypes<typeof buttonProps>\nexport type ButtonEmits = typeof buttonEmits\n\nexport type ButtonType = ButtonProps['type']\nexport type ButtonNativeType = ButtonProps['nativeType']\n\nexport interface ButtonConfigContext {\n autoInsertSpace?: boolean\n}\n"],"names":["buildProps","useSizeProp","iconPropType","Loading","definePropType"],"mappings":";;;;;;;;;;;AAGY,MAAC,WAAW,GAAG;AAC3B,EAAE,SAAS;AACX,EAAE,SAAS;AACX,EAAE,SAAS;AACX,EAAE,SAAS;AACX,EAAE,MAAM;AACR,EAAE,QAAQ;AACV,EAAE,MAAM;AACR,EAAE,EAAE;AACJ,EAAE;AACU,MAAC,iBAAiB,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE;AACnD,MAAC,WAAW,GAAGA,kBAAU,CAAC;AACtC,EAAE,IAAI,EAAEC,iBAAW;AACnB,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,WAAW;AACvB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAEC,iBAAY;AACtB,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,iBAAiB;AAC7B,IAAI,OAAO,EAAE,QAAQ;AACrB,GAAG;AACH,EAAE,OAAO,EAAE,OAAO;AAClB,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAEA,iBAAY;AACtB,IAAI,OAAO,EAAE,MAAMC,gBAAO;AAC1B,GAAG;AACH,EAAE,KAAK,EAAE,OAAO;AAChB,EAAE,IAAI,EAAE,OAAO;AACf,EAAE,IAAI,EAAE,OAAO;AACf,EAAE,EAAE,EAAE,OAAO;AACb,EAAE,SAAS,EAAE,OAAO;AACpB,EAAE,KAAK,EAAE,OAAO;AAChB,EAAE,MAAM,EAAE,OAAO;AACjB,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,IAAI,EAAE,OAAO;AACf,EAAE,eAAe,EAAE;AACnB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAEC,sBAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAE,QAAQ;AACrB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,WAAW,GAAG;AAC3B,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC3C;;;;;;;"}
1
+ {"version":3,"file":"button.js","sources":["../../../../../../packages/components/button/src/button.vue"],"sourcesContent":["<template>\n <component\n :is=\"tag\"\n ref=\"_ref\"\n v-bind=\"_props\"\n :class=\"[\n ns.b(),\n ns.m(_type),\n ns.m(_size),\n ns.is('disabled', _disabled),\n ns.is('loading', loading),\n ns.is('plain', plain),\n ns.is('round', round),\n ns.is('circle', circle),\n ns.is('text', text),\n ns.is('link', link),\n ns.is('has-bg', bg),\n ]\"\n :style=\"buttonStyle\"\n @click=\"handleClick\"\n >\n <template v-if=\"loading\">\n <slot v-if=\"$slots.loading\" name=\"loading\" />\n <el-icon v-else :class=\"ns.is('loading')\">\n <component :is=\"loadingIcon\" />\n </el-icon>\n </template>\n <el-icon v-else-if=\"icon || $slots.icon\">\n <component :is=\"icon\" v-if=\"icon\" />\n <slot v-else name=\"icon\" />\n </el-icon>\n <span\n v-if=\"$slots.default\"\n :class=\"{ [ns.em('text', 'expand')]: shouldAddSpace }\"\n >\n <slot />\n </span>\n </component>\n</template>\n\n<script lang=\"ts\" setup>\nimport { ElIcon } from '@element-plus/components/icon'\nimport { useNamespace } from '@element-plus/hooks'\nimport { useButton } from './use-button'\nimport { buttonEmits, buttonProps } from './button'\nimport { useButtonCustomStyle } from './button-custom'\n\ndefineOptions({\n name: 'ElButton',\n})\n\nconst props = defineProps(buttonProps)\nconst emit = defineEmits(buttonEmits)\n\nconst buttonStyle = useButtonCustomStyle(props)\nconst ns = useNamespace('button')\nconst { _ref, _size, _type, _disabled, _props, shouldAddSpace, handleClick } =\n useButton(props, emit)\n\ndefineExpose({\n /** @description button html element */\n ref: _ref,\n /** @description button size */\n size: _size,\n /** @description button type */\n type: _type,\n /** @description button disabled */\n disabled: _disabled,\n /** @description whether adding space */\n shouldAddSpace,\n})\n</script>\n"],"names":["useButtonCustomStyle","useNamespace","useButton"],"mappings":";;;;;;;;;;;;;uCA+Cc,CAAA;AAAA,EACZ,IAAM,EAAA,UAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAKA,IAAM,MAAA,WAAA,GAAcA,kCAAqB,KAAK,CAAA,CAAA;AAC9C,IAAM,MAAA,EAAA,GAAKC,mBAAa,QAAQ,CAAA,CAAA;AAChC,IAAM,MAAA,EAAE,IAAM,EAAA,KAAA,EAAO,KAAO,EAAA,SAAA,EAAW,QAAQ,cAAgB,EAAA,WAAA,EAAA,GAC7DC,mBAAU,CAAA,KAAA,EAAO,IAAI,CAAA,CAAA;AAEvB,IAAa,MAAA,CAAA;AAAA,MAEX,GAAK,EAAA,IAAA;AAAA,MAEL,IAAM,EAAA,KAAA;AAAA,MAEN,IAAM,EAAA,KAAA;AAAA,MAEN,QAAU,EAAA,SAAA;AAAA,MAEV,cAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}