element-plus-secondary 0.2.8 → 0.2.9

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 (513) hide show
  1. package/dist/index.css +1 -1
  2. package/es/components/alert/index.mjs +2 -2
  3. package/es/components/alert/src/alert.mjs +96 -36
  4. package/es/components/alert/src/alert.mjs.map +1 -1
  5. package/es/components/alert/src/alert2.mjs +36 -96
  6. package/es/components/alert/src/alert2.mjs.map +1 -1
  7. package/es/components/autocomplete/index.mjs +2 -2
  8. package/es/components/autocomplete/src/autocomplete.mjs +353 -71
  9. package/es/components/autocomplete/src/autocomplete.mjs.map +1 -1
  10. package/es/components/autocomplete/src/autocomplete2.mjs +71 -353
  11. package/es/components/autocomplete/src/autocomplete2.mjs.map +1 -1
  12. package/es/components/avatar/index.mjs +2 -2
  13. package/es/components/avatar/src/avatar.mjs +67 -32
  14. package/es/components/avatar/src/avatar.mjs.map +1 -1
  15. package/es/components/avatar/src/avatar2.mjs +32 -67
  16. package/es/components/avatar/src/avatar2.mjs.map +1 -1
  17. package/es/components/backtop/index.mjs +2 -2
  18. package/es/components/backtop/src/backtop.mjs +54 -21
  19. package/es/components/backtop/src/backtop.mjs.map +1 -1
  20. package/es/components/backtop/src/backtop2.mjs +21 -54
  21. package/es/components/backtop/src/backtop2.mjs.map +1 -1
  22. package/es/components/badge/index.mjs +2 -2
  23. package/es/components/badge/src/badge.mjs +55 -17
  24. package/es/components/badge/src/badge.mjs.map +1 -1
  25. package/es/components/badge/src/badge2.mjs +17 -55
  26. package/es/components/badge/src/badge2.mjs.map +1 -1
  27. package/es/components/breadcrumb/index.mjs +2 -2
  28. package/es/components/breadcrumb/src/breadcrumb-item.mjs +57 -11
  29. package/es/components/breadcrumb/src/breadcrumb-item.mjs.map +1 -1
  30. package/es/components/breadcrumb/src/breadcrumb-item2.mjs +11 -57
  31. package/es/components/breadcrumb/src/breadcrumb-item2.mjs.map +1 -1
  32. package/es/components/button/index.mjs +3 -3
  33. package/es/components/button/src/button-group.mjs +31 -6
  34. package/es/components/button/src/button-group.mjs.map +1 -1
  35. package/es/components/button/src/button-group2.mjs +6 -31
  36. package/es/components/button/src/button-group2.mjs.map +1 -1
  37. package/es/components/button/src/button.mjs +54 -78
  38. package/es/components/button/src/button.mjs.map +1 -1
  39. package/es/components/button/src/button2.mjs +78 -54
  40. package/es/components/button/src/button2.mjs.map +1 -1
  41. package/es/components/calendar/src/calendar.mjs +1 -1
  42. package/es/components/calendar/src/date-table.mjs +87 -33
  43. package/es/components/calendar/src/date-table.mjs.map +1 -1
  44. package/es/components/calendar/src/date-table2.mjs +33 -87
  45. package/es/components/calendar/src/date-table2.mjs.map +1 -1
  46. package/es/components/calendar/src/use-date-table.mjs +1 -1
  47. package/es/components/cascader/src/index.mjs +1 -1
  48. package/es/components/cascader-panel/src/index.mjs +1 -1
  49. package/es/components/cascader-panel/src/menu.mjs +1 -1
  50. package/es/components/cascader-panel/src/node.mjs +209 -116
  51. package/es/components/cascader-panel/src/node.mjs.map +1 -1
  52. package/es/components/cascader-panel/src/node2.mjs +116 -209
  53. package/es/components/cascader-panel/src/node2.mjs.map +1 -1
  54. package/es/components/cascader-panel/src/store.mjs +1 -1
  55. package/es/components/check-tag/index.mjs +2 -2
  56. package/es/components/check-tag/src/check-tag.mjs +12 -30
  57. package/es/components/check-tag/src/check-tag.mjs.map +1 -1
  58. package/es/components/check-tag/src/check-tag2.mjs +30 -12
  59. package/es/components/check-tag/src/check-tag2.mjs.map +1 -1
  60. package/es/components/checkbox/index.mjs +4 -4
  61. package/es/components/checkbox/src/checkbox-button.mjs +1 -1
  62. package/es/components/checkbox/src/checkbox-group.mjs +28 -72
  63. package/es/components/checkbox/src/checkbox-group.mjs.map +1 -1
  64. package/es/components/checkbox/src/checkbox-group2.mjs +72 -28
  65. package/es/components/checkbox/src/checkbox-group2.mjs.map +1 -1
  66. package/es/components/checkbox/src/checkbox.mjs +117 -54
  67. package/es/components/checkbox/src/checkbox.mjs.map +1 -1
  68. package/es/components/checkbox/src/checkbox2.mjs +54 -117
  69. package/es/components/checkbox/src/checkbox2.mjs.map +1 -1
  70. package/es/components/color-picker/index.mjs +2 -2
  71. package/es/components/color-picker/src/color-picker.mjs +42 -372
  72. package/es/components/color-picker/src/color-picker.mjs.map +1 -1
  73. package/es/components/color-picker/src/color-picker2.mjs +380 -42
  74. package/es/components/color-picker/src/color-picker2.mjs.map +1 -1
  75. package/es/components/color-picker/src/components/predefine.mjs +1 -1
  76. package/es/components/dialog/index.mjs +2 -2
  77. package/es/components/dialog/src/dialog-content.mjs +37 -87
  78. package/es/components/dialog/src/dialog-content.mjs.map +1 -1
  79. package/es/components/dialog/src/dialog-content2.mjs +87 -37
  80. package/es/components/dialog/src/dialog-content2.mjs.map +1 -1
  81. package/es/components/dialog/src/dialog.mjs +70 -170
  82. package/es/components/dialog/src/dialog.mjs.map +1 -1
  83. package/es/components/dialog/src/dialog2.mjs +170 -70
  84. package/es/components/dialog/src/dialog2.mjs.map +1 -1
  85. package/es/components/drawer/index.mjs +2 -2
  86. package/es/components/drawer/src/drawer.mjs +22 -165
  87. package/es/components/drawer/src/drawer.mjs.map +1 -1
  88. package/es/components/drawer/src/drawer2.mjs +165 -22
  89. package/es/components/drawer/src/drawer2.mjs.map +1 -1
  90. package/es/components/dropdown/index.mjs +2 -2
  91. package/es/components/dropdown/src/dropdown-item-impl.mjs +1 -1
  92. package/es/components/dropdown/src/dropdown-item.mjs +1 -1
  93. package/es/components/dropdown/src/dropdown-menu.mjs +1 -1
  94. package/es/components/dropdown/src/dropdown.mjs +280 -101
  95. package/es/components/dropdown/src/dropdown.mjs.map +1 -1
  96. package/es/components/dropdown/src/dropdown2.mjs +101 -280
  97. package/es/components/dropdown/src/dropdown2.mjs.map +1 -1
  98. package/es/components/form/index.mjs +4 -4
  99. package/es/components/form/src/form-item.mjs +43 -316
  100. package/es/components/form/src/form-item.mjs.map +1 -1
  101. package/es/components/form/src/form-item2.mjs +316 -43
  102. package/es/components/form/src/form-item2.mjs.map +1 -1
  103. package/es/components/form/src/form.mjs +150 -53
  104. package/es/components/form/src/form.mjs.map +1 -1
  105. package/es/components/form/src/form2.mjs +53 -150
  106. package/es/components/form/src/form2.mjs.map +1 -1
  107. package/es/components/image/index.d.ts +1 -1
  108. package/es/components/image/src/image.vue.d.ts +1 -1
  109. package/es/components/image-viewer/index.d.ts +1 -1
  110. package/es/components/image-viewer/src/image-viewer.vue.d.ts +1 -1
  111. package/es/components/index.mjs +38 -38
  112. package/es/components/input/index.mjs +2 -2
  113. package/es/components/input/src/input.mjs +110 -442
  114. package/es/components/input/src/input.mjs.map +1 -1
  115. package/es/components/input/src/input2.mjs +442 -110
  116. package/es/components/input/src/input2.mjs.map +1 -1
  117. package/es/components/input-number/index.mjs +2 -2
  118. package/es/components/input-number/src/input-number.mjs +62 -300
  119. package/es/components/input-number/src/input-number.mjs.map +1 -1
  120. package/es/components/input-number/src/input-number2.mjs +300 -62
  121. package/es/components/input-number/src/input-number2.mjs.map +1 -1
  122. package/es/components/menu/index.mjs +2 -2
  123. package/es/components/menu/src/menu-item.mjs +100 -14
  124. package/es/components/menu/src/menu-item.mjs.map +1 -1
  125. package/es/components/menu/src/menu-item2.mjs +14 -100
  126. package/es/components/menu/src/menu-item2.mjs.map +1 -1
  127. package/es/components/pagination/src/components/jumper.mjs +9 -59
  128. package/es/components/pagination/src/components/jumper.mjs.map +1 -1
  129. package/es/components/pagination/src/components/jumper2.mjs +59 -9
  130. package/es/components/pagination/src/components/jumper2.mjs.map +1 -1
  131. package/es/components/pagination/src/components/next.mjs +34 -19
  132. package/es/components/pagination/src/components/next.mjs.map +1 -1
  133. package/es/components/pagination/src/components/next2.mjs +19 -34
  134. package/es/components/pagination/src/components/next2.mjs.map +1 -1
  135. package/es/components/pagination/src/components/pager.mjs +207 -17
  136. package/es/components/pagination/src/components/pager.mjs.map +1 -1
  137. package/es/components/pagination/src/components/pager2.mjs +17 -207
  138. package/es/components/pagination/src/components/pager2.mjs.map +1 -1
  139. package/es/components/pagination/src/components/prev.mjs +34 -18
  140. package/es/components/pagination/src/components/prev.mjs.map +1 -1
  141. package/es/components/pagination/src/components/prev2.mjs +18 -34
  142. package/es/components/pagination/src/components/prev2.mjs.map +1 -1
  143. package/es/components/pagination/src/pagination.mjs +4 -4
  144. package/es/components/popconfirm/src/popconfirm.mjs +2 -2
  145. package/es/components/popover/src/popover.mjs +3 -3
  146. package/es/components/popper/index.mjs +6 -6
  147. package/es/components/popper/src/content.mjs +212 -94
  148. package/es/components/popper/src/content.mjs.map +1 -1
  149. package/es/components/popper/src/content2.mjs +94 -212
  150. package/es/components/popper/src/content2.mjs.map +1 -1
  151. package/es/components/popper/src/popper.mjs +25 -33
  152. package/es/components/popper/src/popper.mjs.map +1 -1
  153. package/es/components/popper/src/popper2.mjs +33 -25
  154. package/es/components/popper/src/popper2.mjs.map +1 -1
  155. package/es/components/popper/src/trigger.mjs +120 -31
  156. package/es/components/popper/src/trigger.mjs.map +1 -1
  157. package/es/components/popper/src/trigger2.mjs +31 -120
  158. package/es/components/popper/src/trigger2.mjs.map +1 -1
  159. package/es/components/radio/index.mjs +4 -4
  160. package/es/components/radio/src/radio-button2.mjs +1 -1
  161. package/es/components/radio/src/radio-group.mjs +68 -36
  162. package/es/components/radio/src/radio-group.mjs.map +1 -1
  163. package/es/components/radio/src/radio-group2.mjs +36 -68
  164. package/es/components/radio/src/radio-group2.mjs.map +1 -1
  165. package/es/components/radio/src/radio.mjs +78 -34
  166. package/es/components/radio/src/radio.mjs.map +1 -1
  167. package/es/components/radio/src/radio2.mjs +34 -78
  168. package/es/components/radio/src/radio2.mjs.map +1 -1
  169. package/es/components/scrollbar/index.mjs +3 -3
  170. package/es/components/scrollbar/src/bar.mjs +1 -1
  171. package/es/components/scrollbar/src/scrollbar.mjs +47 -175
  172. package/es/components/scrollbar/src/scrollbar.mjs.map +1 -1
  173. package/es/components/scrollbar/src/scrollbar2.mjs +175 -47
  174. package/es/components/scrollbar/src/scrollbar2.mjs.map +1 -1
  175. package/es/components/scrollbar/src/thumb.mjs +11 -131
  176. package/es/components/scrollbar/src/thumb.mjs.map +1 -1
  177. package/es/components/scrollbar/src/thumb2.mjs +131 -11
  178. package/es/components/scrollbar/src/thumb2.mjs.map +1 -1
  179. package/es/components/select/src/select.mjs +1 -1
  180. package/es/components/select-v2/src/defaults.mjs +1 -1
  181. package/es/components/skeleton/index.mjs +2 -2
  182. package/es/components/skeleton/src/skeleton-item.mjs +18 -23
  183. package/es/components/skeleton/src/skeleton-item.mjs.map +1 -1
  184. package/es/components/skeleton/src/skeleton-item2.mjs +23 -18
  185. package/es/components/skeleton/src/skeleton-item2.mjs.map +1 -1
  186. package/es/components/skeleton/src/skeleton2.mjs +1 -1
  187. package/es/components/steps/index.mjs +2 -2
  188. package/es/components/steps/src/item.mjs +194 -20
  189. package/es/components/steps/src/item.mjs.map +1 -1
  190. package/es/components/steps/src/item2.mjs +20 -194
  191. package/es/components/steps/src/item2.mjs.map +1 -1
  192. package/es/components/tabs/index.mjs +2 -2
  193. package/es/components/tabs/src/tab-pane.mjs +13 -73
  194. package/es/components/tabs/src/tab-pane.mjs.map +1 -1
  195. package/es/components/tabs/src/tab-pane2.mjs +73 -13
  196. package/es/components/tabs/src/tab-pane2.mjs.map +1 -1
  197. package/es/components/time-select/index.mjs +1 -1
  198. package/es/components/time-select/src/time-select.mjs +117 -48
  199. package/es/components/time-select/src/time-select.mjs.map +1 -1
  200. package/es/components/time-select/src/time-select2.mjs +48 -117
  201. package/es/components/time-select/src/time-select2.mjs.map +1 -1
  202. package/es/components/timeline/index.mjs +2 -2
  203. package/es/components/timeline/src/timeline-item.mjs +70 -42
  204. package/es/components/timeline/src/timeline-item.mjs.map +1 -1
  205. package/es/components/timeline/src/timeline-item2.mjs +42 -70
  206. package/es/components/timeline/src/timeline-item2.mjs.map +1 -1
  207. package/es/components/tooltip/index.mjs +4 -4
  208. package/es/components/tooltip/src/content.mjs +39 -167
  209. package/es/components/tooltip/src/content.mjs.map +1 -1
  210. package/es/components/tooltip/src/content2.mjs +167 -39
  211. package/es/components/tooltip/src/content2.mjs.map +1 -1
  212. package/es/components/tooltip/src/tooltip.mjs +170 -31
  213. package/es/components/tooltip/src/tooltip.mjs.map +1 -1
  214. package/es/components/tooltip/src/tooltip2.mjs +31 -170
  215. package/es/components/tooltip/src/tooltip2.mjs.map +1 -1
  216. package/es/components/tooltip/src/trigger.mjs +16 -74
  217. package/es/components/tooltip/src/trigger.mjs.map +1 -1
  218. package/es/components/tooltip/src/trigger2.mjs +74 -16
  219. package/es/components/tooltip/src/trigger2.mjs.map +1 -1
  220. package/es/components/tooltip-v2/index.mjs +6 -6
  221. package/es/components/tooltip-v2/src/arrow.mjs +22 -38
  222. package/es/components/tooltip-v2/src/arrow.mjs.map +1 -1
  223. package/es/components/tooltip-v2/src/arrow2.mjs +38 -22
  224. package/es/components/tooltip-v2/src/arrow2.mjs.map +1 -1
  225. package/es/components/tooltip-v2/src/content.mjs +50 -113
  226. package/es/components/tooltip-v2/src/content.mjs.map +1 -1
  227. package/es/components/tooltip-v2/src/content2.mjs +113 -50
  228. package/es/components/tooltip-v2/src/content2.mjs.map +1 -1
  229. package/es/components/tooltip-v2/src/root.mjs +81 -17
  230. package/es/components/tooltip-v2/src/root.mjs.map +1 -1
  231. package/es/components/tooltip-v2/src/root2.mjs +17 -81
  232. package/es/components/tooltip-v2/src/root2.mjs.map +1 -1
  233. package/es/components/tooltip-v2/src/tooltip.mjs +75 -22
  234. package/es/components/tooltip-v2/src/tooltip.mjs.map +1 -1
  235. package/es/components/tooltip-v2/src/tooltip2.mjs +22 -75
  236. package/es/components/tooltip-v2/src/tooltip2.mjs.map +1 -1
  237. package/es/components/tooltip-v2/src/trigger.mjs +90 -12
  238. package/es/components/tooltip-v2/src/trigger.mjs.map +1 -1
  239. package/es/components/tooltip-v2/src/trigger2.mjs +12 -90
  240. package/es/components/tooltip-v2/src/trigger2.mjs.map +1 -1
  241. package/es/components/upload/index.mjs +4 -4
  242. package/es/components/upload/src/upload-content.mjs +170 -33
  243. package/es/components/upload/src/upload-content.mjs.map +1 -1
  244. package/es/components/upload/src/upload-content2.mjs +33 -170
  245. package/es/components/upload/src/upload-content2.mjs.map +1 -1
  246. package/es/components/upload/src/upload-list.mjs +26 -170
  247. package/es/components/upload/src/upload-list.mjs.map +1 -1
  248. package/es/components/upload/src/upload-list2.mjs +170 -26
  249. package/es/components/upload/src/upload-list2.mjs.map +1 -1
  250. package/es/components/upload/src/upload.mjs +120 -105
  251. package/es/components/upload/src/upload.mjs.map +1 -1
  252. package/es/components/upload/src/upload2.mjs +105 -120
  253. package/es/components/upload/src/upload2.mjs.map +1 -1
  254. package/es/components/upload/src/use-handlers.mjs +1 -1
  255. package/es/index.mjs +38 -38
  256. package/lib/components/alert/index.js +2 -2
  257. package/lib/components/alert/src/alert.js +95 -37
  258. package/lib/components/alert/src/alert.js.map +1 -1
  259. package/lib/components/alert/src/alert2.js +37 -95
  260. package/lib/components/alert/src/alert2.js.map +1 -1
  261. package/lib/components/autocomplete/index.js +2 -2
  262. package/lib/components/autocomplete/src/autocomplete.js +352 -71
  263. package/lib/components/autocomplete/src/autocomplete.js.map +1 -1
  264. package/lib/components/autocomplete/src/autocomplete2.js +71 -352
  265. package/lib/components/autocomplete/src/autocomplete2.js.map +1 -1
  266. package/lib/components/avatar/index.js +2 -2
  267. package/lib/components/avatar/src/avatar.js +67 -33
  268. package/lib/components/avatar/src/avatar.js.map +1 -1
  269. package/lib/components/avatar/src/avatar2.js +33 -67
  270. package/lib/components/avatar/src/avatar2.js.map +1 -1
  271. package/lib/components/backtop/index.js +2 -2
  272. package/lib/components/backtop/src/backtop.js +54 -22
  273. package/lib/components/backtop/src/backtop.js.map +1 -1
  274. package/lib/components/backtop/src/backtop2.js +22 -54
  275. package/lib/components/backtop/src/backtop2.js.map +1 -1
  276. package/lib/components/badge/index.js +2 -2
  277. package/lib/components/badge/src/badge.js +55 -17
  278. package/lib/components/badge/src/badge.js.map +1 -1
  279. package/lib/components/badge/src/badge2.js +17 -55
  280. package/lib/components/badge/src/badge2.js.map +1 -1
  281. package/lib/components/breadcrumb/index.js +2 -2
  282. package/lib/components/breadcrumb/src/breadcrumb-item.js +57 -11
  283. package/lib/components/breadcrumb/src/breadcrumb-item.js.map +1 -1
  284. package/lib/components/breadcrumb/src/breadcrumb-item2.js +11 -57
  285. package/lib/components/breadcrumb/src/breadcrumb-item2.js.map +1 -1
  286. package/lib/components/button/index.js +3 -3
  287. package/lib/components/button/src/button-group.js +31 -6
  288. package/lib/components/button/src/button-group.js.map +1 -1
  289. package/lib/components/button/src/button-group2.js +6 -31
  290. package/lib/components/button/src/button-group2.js.map +1 -1
  291. package/lib/components/button/src/button.js +57 -78
  292. package/lib/components/button/src/button.js.map +1 -1
  293. package/lib/components/button/src/button2.js +78 -57
  294. package/lib/components/button/src/button2.js.map +1 -1
  295. package/lib/components/calendar/src/calendar.js +1 -1
  296. package/lib/components/calendar/src/date-table.js +87 -37
  297. package/lib/components/calendar/src/date-table.js.map +1 -1
  298. package/lib/components/calendar/src/date-table2.js +37 -87
  299. package/lib/components/calendar/src/date-table2.js.map +1 -1
  300. package/lib/components/calendar/src/use-date-table.js +1 -1
  301. package/lib/components/cascader/src/index.js +1 -1
  302. package/lib/components/cascader-panel/src/index.js +1 -1
  303. package/lib/components/cascader-panel/src/menu.js +1 -1
  304. package/lib/components/cascader-panel/src/node.js +209 -116
  305. package/lib/components/cascader-panel/src/node.js.map +1 -1
  306. package/lib/components/cascader-panel/src/node2.js +116 -209
  307. package/lib/components/cascader-panel/src/node2.js.map +1 -1
  308. package/lib/components/cascader-panel/src/store.js +1 -1
  309. package/lib/components/check-tag/index.js +2 -2
  310. package/lib/components/check-tag/src/check-tag.js +13 -30
  311. package/lib/components/check-tag/src/check-tag.js.map +1 -1
  312. package/lib/components/check-tag/src/check-tag2.js +30 -13
  313. package/lib/components/check-tag/src/check-tag2.js.map +1 -1
  314. package/lib/components/checkbox/index.js +4 -4
  315. package/lib/components/checkbox/src/checkbox-button.js +1 -1
  316. package/lib/components/checkbox/src/checkbox-group.js +29 -72
  317. package/lib/components/checkbox/src/checkbox-group.js.map +1 -1
  318. package/lib/components/checkbox/src/checkbox-group2.js +72 -29
  319. package/lib/components/checkbox/src/checkbox-group2.js.map +1 -1
  320. package/lib/components/checkbox/src/checkbox.js +117 -55
  321. package/lib/components/checkbox/src/checkbox.js.map +1 -1
  322. package/lib/components/checkbox/src/checkbox2.js +55 -117
  323. package/lib/components/checkbox/src/checkbox2.js.map +1 -1
  324. package/lib/components/color-picker/index.js +2 -2
  325. package/lib/components/color-picker/src/color-picker.js +42 -370
  326. package/lib/components/color-picker/src/color-picker.js.map +1 -1
  327. package/lib/components/color-picker/src/color-picker2.js +378 -42
  328. package/lib/components/color-picker/src/color-picker2.js.map +1 -1
  329. package/lib/components/color-picker/src/components/predefine.js +1 -1
  330. package/lib/components/dialog/index.js +2 -2
  331. package/lib/components/dialog/src/dialog-content.js +37 -86
  332. package/lib/components/dialog/src/dialog-content.js.map +1 -1
  333. package/lib/components/dialog/src/dialog-content2.js +86 -37
  334. package/lib/components/dialog/src/dialog-content2.js.map +1 -1
  335. package/lib/components/dialog/src/dialog.js +70 -169
  336. package/lib/components/dialog/src/dialog.js.map +1 -1
  337. package/lib/components/dialog/src/dialog2.js +169 -70
  338. package/lib/components/dialog/src/dialog2.js.map +1 -1
  339. package/lib/components/drawer/index.js +2 -2
  340. package/lib/components/drawer/src/drawer.js +23 -165
  341. package/lib/components/drawer/src/drawer.js.map +1 -1
  342. package/lib/components/drawer/src/drawer2.js +165 -23
  343. package/lib/components/drawer/src/drawer2.js.map +1 -1
  344. package/lib/components/dropdown/index.js +2 -2
  345. package/lib/components/dropdown/src/dropdown-item-impl.js +1 -1
  346. package/lib/components/dropdown/src/dropdown-item.js +1 -1
  347. package/lib/components/dropdown/src/dropdown-menu.js +1 -1
  348. package/lib/components/dropdown/src/dropdown.js +280 -110
  349. package/lib/components/dropdown/src/dropdown.js.map +1 -1
  350. package/lib/components/dropdown/src/dropdown2.js +110 -280
  351. package/lib/components/dropdown/src/dropdown2.js.map +1 -1
  352. package/lib/components/form/index.js +4 -4
  353. package/lib/components/form/src/form-item.js +44 -320
  354. package/lib/components/form/src/form-item.js.map +1 -1
  355. package/lib/components/form/src/form-item2.js +320 -44
  356. package/lib/components/form/src/form-item2.js.map +1 -1
  357. package/lib/components/form/src/form.js +149 -53
  358. package/lib/components/form/src/form.js.map +1 -1
  359. package/lib/components/form/src/form2.js +53 -149
  360. package/lib/components/form/src/form2.js.map +1 -1
  361. package/lib/components/image/index.d.ts +1 -1
  362. package/lib/components/image/src/image.vue.d.ts +1 -1
  363. package/lib/components/image-viewer/index.d.ts +1 -1
  364. package/lib/components/image-viewer/src/image-viewer.vue.d.ts +1 -1
  365. package/lib/components/index.js +38 -38
  366. package/lib/components/input/index.js +2 -2
  367. package/lib/components/input/src/input.js +110 -441
  368. package/lib/components/input/src/input.js.map +1 -1
  369. package/lib/components/input/src/input2.js +441 -110
  370. package/lib/components/input/src/input2.js.map +1 -1
  371. package/lib/components/input-number/index.js +2 -2
  372. package/lib/components/input-number/src/input-number.js +62 -299
  373. package/lib/components/input-number/src/input-number.js.map +1 -1
  374. package/lib/components/input-number/src/input-number2.js +299 -62
  375. package/lib/components/input-number/src/input-number2.js.map +1 -1
  376. package/lib/components/menu/index.js +2 -2
  377. package/lib/components/menu/src/menu-item.js +100 -15
  378. package/lib/components/menu/src/menu-item.js.map +1 -1
  379. package/lib/components/menu/src/menu-item2.js +15 -100
  380. package/lib/components/menu/src/menu-item2.js.map +1 -1
  381. package/lib/components/pagination/src/components/jumper.js +9 -59
  382. package/lib/components/pagination/src/components/jumper.js.map +1 -1
  383. package/lib/components/pagination/src/components/jumper2.js +59 -9
  384. package/lib/components/pagination/src/components/jumper2.js.map +1 -1
  385. package/lib/components/pagination/src/components/next.js +34 -19
  386. package/lib/components/pagination/src/components/next.js.map +1 -1
  387. package/lib/components/pagination/src/components/next2.js +19 -34
  388. package/lib/components/pagination/src/components/next2.js.map +1 -1
  389. package/lib/components/pagination/src/components/pager.js +207 -17
  390. package/lib/components/pagination/src/components/pager.js.map +1 -1
  391. package/lib/components/pagination/src/components/pager2.js +17 -207
  392. package/lib/components/pagination/src/components/pager2.js.map +1 -1
  393. package/lib/components/pagination/src/components/prev.js +34 -19
  394. package/lib/components/pagination/src/components/prev.js.map +1 -1
  395. package/lib/components/pagination/src/components/prev2.js +19 -34
  396. package/lib/components/pagination/src/components/prev2.js.map +1 -1
  397. package/lib/components/pagination/src/pagination.js +4 -4
  398. package/lib/components/popconfirm/src/popconfirm.js +2 -2
  399. package/lib/components/popover/src/popover.js +3 -3
  400. package/lib/components/popper/index.js +6 -6
  401. package/lib/components/popper/src/content.js +212 -99
  402. package/lib/components/popper/src/content.js.map +1 -1
  403. package/lib/components/popper/src/content2.js +99 -212
  404. package/lib/components/popper/src/content2.js.map +1 -1
  405. package/lib/components/popper/src/popper.js +28 -33
  406. package/lib/components/popper/src/popper.js.map +1 -1
  407. package/lib/components/popper/src/popper2.js +33 -28
  408. package/lib/components/popper/src/popper2.js.map +1 -1
  409. package/lib/components/popper/src/trigger.js +120 -32
  410. package/lib/components/popper/src/trigger.js.map +1 -1
  411. package/lib/components/popper/src/trigger2.js +32 -120
  412. package/lib/components/popper/src/trigger2.js.map +1 -1
  413. package/lib/components/radio/index.js +4 -4
  414. package/lib/components/radio/src/radio-button2.js +1 -1
  415. package/lib/components/radio/src/radio-group.js +68 -37
  416. package/lib/components/radio/src/radio-group.js.map +1 -1
  417. package/lib/components/radio/src/radio-group2.js +37 -68
  418. package/lib/components/radio/src/radio-group2.js.map +1 -1
  419. package/lib/components/radio/src/radio.js +78 -36
  420. package/lib/components/radio/src/radio.js.map +1 -1
  421. package/lib/components/radio/src/radio2.js +36 -78
  422. package/lib/components/radio/src/radio2.js.map +1 -1
  423. package/lib/components/scrollbar/index.js +3 -3
  424. package/lib/components/scrollbar/src/bar.js +1 -1
  425. package/lib/components/scrollbar/src/scrollbar.js +48 -175
  426. package/lib/components/scrollbar/src/scrollbar.js.map +1 -1
  427. package/lib/components/scrollbar/src/scrollbar2.js +175 -48
  428. package/lib/components/scrollbar/src/scrollbar2.js.map +1 -1
  429. package/lib/components/scrollbar/src/thumb.js +11 -131
  430. package/lib/components/scrollbar/src/thumb.js.map +1 -1
  431. package/lib/components/scrollbar/src/thumb2.js +131 -11
  432. package/lib/components/scrollbar/src/thumb2.js.map +1 -1
  433. package/lib/components/select/src/select.js +1 -1
  434. package/lib/components/select-v2/src/defaults.js +1 -1
  435. package/lib/components/skeleton/index.js +2 -2
  436. package/lib/components/skeleton/src/skeleton-item.js +18 -23
  437. package/lib/components/skeleton/src/skeleton-item.js.map +1 -1
  438. package/lib/components/skeleton/src/skeleton-item2.js +23 -18
  439. package/lib/components/skeleton/src/skeleton-item2.js.map +1 -1
  440. package/lib/components/skeleton/src/skeleton2.js +1 -1
  441. package/lib/components/steps/index.js +2 -2
  442. package/lib/components/steps/src/item.js +194 -20
  443. package/lib/components/steps/src/item.js.map +1 -1
  444. package/lib/components/steps/src/item2.js +20 -194
  445. package/lib/components/steps/src/item2.js.map +1 -1
  446. package/lib/components/tabs/index.js +2 -2
  447. package/lib/components/tabs/src/tab-pane.js +13 -73
  448. package/lib/components/tabs/src/tab-pane.js.map +1 -1
  449. package/lib/components/tabs/src/tab-pane2.js +73 -13
  450. package/lib/components/tabs/src/tab-pane2.js.map +1 -1
  451. package/lib/components/time-select/index.js +1 -1
  452. package/lib/components/time-select/src/time-select.js +122 -48
  453. package/lib/components/time-select/src/time-select.js.map +1 -1
  454. package/lib/components/time-select/src/time-select2.js +48 -122
  455. package/lib/components/time-select/src/time-select2.js.map +1 -1
  456. package/lib/components/timeline/index.js +2 -2
  457. package/lib/components/timeline/src/timeline-item.js +70 -42
  458. package/lib/components/timeline/src/timeline-item.js.map +1 -1
  459. package/lib/components/timeline/src/timeline-item2.js +42 -70
  460. package/lib/components/timeline/src/timeline-item2.js.map +1 -1
  461. package/lib/components/tooltip/index.js +4 -4
  462. package/lib/components/tooltip/src/content.js +39 -167
  463. package/lib/components/tooltip/src/content.js.map +1 -1
  464. package/lib/components/tooltip/src/content2.js +167 -39
  465. package/lib/components/tooltip/src/content2.js.map +1 -1
  466. package/lib/components/tooltip/src/tooltip.js +169 -34
  467. package/lib/components/tooltip/src/tooltip.js.map +1 -1
  468. package/lib/components/tooltip/src/tooltip2.js +34 -169
  469. package/lib/components/tooltip/src/tooltip2.js.map +1 -1
  470. package/lib/components/tooltip/src/trigger.js +16 -74
  471. package/lib/components/tooltip/src/trigger.js.map +1 -1
  472. package/lib/components/tooltip/src/trigger2.js +74 -16
  473. package/lib/components/tooltip/src/trigger2.js.map +1 -1
  474. package/lib/components/tooltip-v2/index.js +6 -6
  475. package/lib/components/tooltip-v2/src/arrow.js +23 -38
  476. package/lib/components/tooltip-v2/src/arrow.js.map +1 -1
  477. package/lib/components/tooltip-v2/src/arrow2.js +38 -23
  478. package/lib/components/tooltip-v2/src/arrow2.js.map +1 -1
  479. package/lib/components/tooltip-v2/src/content.js +50 -113
  480. package/lib/components/tooltip-v2/src/content.js.map +1 -1
  481. package/lib/components/tooltip-v2/src/content2.js +113 -50
  482. package/lib/components/tooltip-v2/src/content2.js.map +1 -1
  483. package/lib/components/tooltip-v2/src/root.js +81 -17
  484. package/lib/components/tooltip-v2/src/root.js.map +1 -1
  485. package/lib/components/tooltip-v2/src/root2.js +17 -81
  486. package/lib/components/tooltip-v2/src/root2.js.map +1 -1
  487. package/lib/components/tooltip-v2/src/tooltip.js +75 -22
  488. package/lib/components/tooltip-v2/src/tooltip.js.map +1 -1
  489. package/lib/components/tooltip-v2/src/tooltip2.js +22 -75
  490. package/lib/components/tooltip-v2/src/tooltip2.js.map +1 -1
  491. package/lib/components/tooltip-v2/src/trigger.js +90 -12
  492. package/lib/components/tooltip-v2/src/trigger.js.map +1 -1
  493. package/lib/components/tooltip-v2/src/trigger2.js +12 -90
  494. package/lib/components/tooltip-v2/src/trigger2.js.map +1 -1
  495. package/lib/components/upload/index.js +4 -4
  496. package/lib/components/upload/src/upload-content.js +170 -33
  497. package/lib/components/upload/src/upload-content.js.map +1 -1
  498. package/lib/components/upload/src/upload-content2.js +33 -170
  499. package/lib/components/upload/src/upload-content2.js.map +1 -1
  500. package/lib/components/upload/src/upload-list.js +27 -170
  501. package/lib/components/upload/src/upload-list.js.map +1 -1
  502. package/lib/components/upload/src/upload-list2.js +170 -27
  503. package/lib/components/upload/src/upload-list2.js.map +1 -1
  504. package/lib/components/upload/src/upload.js +120 -108
  505. package/lib/components/upload/src/upload.js.map +1 -1
  506. package/lib/components/upload/src/upload2.js +108 -120
  507. package/lib/components/upload/src/upload2.js.map +1 -1
  508. package/lib/components/upload/src/use-handlers.js +1 -1
  509. package/lib/index.js +38 -38
  510. package/package.json +1 -1
  511. package/theme-chalk/el-button.css +1 -1
  512. package/theme-chalk/index.css +1 -1
  513. package/theme-chalk/src/button.scss +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"breadcrumb-item.mjs","sources":["../../../../../../packages/components/breadcrumb/src/breadcrumb-item.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\nimport type { RouteLocationRaw } from 'vue-router'\nimport type BreadcrumbItem from './breadcrumb-item.vue'\n\nexport const breadcrumbItemProps = buildProps({\n to: {\n type: definePropType<RouteLocationRaw>([String, Object]),\n default: '',\n },\n replace: {\n type: Boolean,\n default: false,\n },\n} as const)\nexport type BreadcrumbItemProps = ExtractPropTypes<typeof breadcrumbItemProps>\n\nexport type BreadcrumbItemInstance = InstanceType<typeof BreadcrumbItem>\n"],"names":[],"mappings":";;;AACY,MAAC,mBAAmB,GAAG,UAAU,CAAC;AAC9C,EAAE,EAAE,EAAE;AACN,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,CAAC;;;;"}
1
+ {"version":3,"file":"breadcrumb-item.mjs","sources":["../../../../../../packages/components/breadcrumb/src/breadcrumb-item.vue"],"sourcesContent":["<template>\n <span :class=\"ns.e('item')\">\n <span\n ref=\"link\"\n :class=\"[ns.e('inner'), ns.is('link', !!to)]\"\n role=\"link\"\n @click=\"onClick\"\n >\n <slot />\n </span>\n <el-icon v-if=\"separatorIcon\" :class=\"ns.e('separator')\">\n <component :is=\"separatorIcon\" />\n </el-icon>\n <span v-else :class=\"ns.e('separator')\" role=\"presentation\">\n {{ separator }}\n </span>\n </span>\n</template>\n\n<script lang=\"ts\" setup>\nimport { getCurrentInstance, inject, ref, toRefs } from 'vue'\nimport ElIcon from '@element-plus/components/icon'\nimport { breadcrumbKey } from '@element-plus/tokens'\nimport { useNamespace } from '@element-plus/hooks'\nimport { breadcrumbItemProps } from './breadcrumb-item'\n\nimport type { Router } from 'vue-router'\n\ndefineOptions({\n name: 'ElBreadcrumbItem',\n})\n\nconst props = defineProps(breadcrumbItemProps)\n\nconst instance = getCurrentInstance()!\nconst breadcrumbContext = inject(breadcrumbKey, undefined)!\nconst ns = useNamespace('breadcrumb')\n\nconst { separator, separatorIcon } = toRefs(breadcrumbContext)\nconst router = instance.appContext.config.globalProperties.$router as Router\n\nconst link = ref<HTMLSpanElement>()\n\nconst onClick = () => {\n if (!props.to || !router) return\n props.replace ? router.replace(props.to) : router.push(props.to)\n}\n</script>\n"],"names":[],"mappings":";;;;;;;;;mCA4Bc,CAAA;AAAA,EACZ,IAAM,EAAA,kBAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAIA,IAAA,MAAM,WAAW,kBAAmB,EAAA,CAAA;AACpC,IAAM,MAAA,iBAAA,GAAoB,MAAO,CAAA,aAAA,EAAe,KAAS,CAAA,CAAA,CAAA;AACzD,IAAM,MAAA,EAAA,GAAK,aAAa,YAAY,CAAA,CAAA;AAEpC,IAAA,MAAM,EAAE,SAAA,EAAW,aAAkB,EAAA,GAAA,MAAA,CAAO,iBAAiB,CAAA,CAAA;AAC7D,IAAA,MAAM,MAAS,GAAA,QAAA,CAAS,UAAW,CAAA,MAAA,CAAO,gBAAiB,CAAA,OAAA,CAAA;AAE3D,IAAA,MAAM,OAAO,GAAqB,EAAA,CAAA;AAElC,IAAA,MAAM,UAAU,MAAM;AACpB,MAAI,IAAA,CAAC,KAAM,CAAA,EAAA,IAAM,CAAC,MAAA;AAAQ,QAAA,OAAA;AAC1B,MAAM,KAAA,CAAA,OAAA,GAAU,OAAO,OAAQ,CAAA,KAAA,CAAM,EAAE,CAAI,GAAA,MAAA,CAAO,IAAK,CAAA,KAAA,CAAM,EAAE,CAAA,CAAA;AAAA,KACjE,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,62 +1,16 @@
1
- import { defineComponent, getCurrentInstance, inject, toRefs, ref, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, renderSlot, createBlock, withCtx, resolveDynamicComponent, toDisplayString } from 'vue';
2
- import { ElIcon } from '../../icon/index.mjs';
3
- import '../../../tokens/index.mjs';
4
- import '../../../hooks/index.mjs';
5
- import { breadcrumbItemProps } from './breadcrumb-item.mjs';
6
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
7
- import { breadcrumbKey } from '../../../tokens/breadcrumb.mjs';
8
- import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
1
+ import '../../../utils/index.mjs';
2
+ import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
9
3
 
10
- const __default__ = defineComponent({
11
- name: "ElBreadcrumbItem"
12
- });
13
- const _sfc_main = /* @__PURE__ */ defineComponent({
14
- ...__default__,
15
- props: breadcrumbItemProps,
16
- setup(__props) {
17
- const props = __props;
18
- const instance = getCurrentInstance();
19
- const breadcrumbContext = inject(breadcrumbKey, void 0);
20
- const ns = useNamespace("breadcrumb");
21
- const { separator, separatorIcon } = toRefs(breadcrumbContext);
22
- const router = instance.appContext.config.globalProperties.$router;
23
- const link = ref();
24
- const onClick = () => {
25
- if (!props.to || !router)
26
- return;
27
- props.replace ? router.replace(props.to) : router.push(props.to);
28
- };
29
- return (_ctx, _cache) => {
30
- return openBlock(), createElementBlock("span", {
31
- class: normalizeClass(unref(ns).e("item"))
32
- }, [
33
- createElementVNode("span", {
34
- ref_key: "link",
35
- ref: link,
36
- class: normalizeClass([unref(ns).e("inner"), unref(ns).is("link", !!_ctx.to)]),
37
- role: "link",
38
- onClick
39
- }, [
40
- renderSlot(_ctx.$slots, "default")
41
- ], 2),
42
- unref(separatorIcon) ? (openBlock(), createBlock(unref(ElIcon), {
43
- key: 0,
44
- class: normalizeClass(unref(ns).e("separator"))
45
- }, {
46
- default: withCtx(() => [
47
- (openBlock(), createBlock(resolveDynamicComponent(unref(separatorIcon))))
48
- ]),
49
- _: 1
50
- }, 8, ["class"])) : (openBlock(), createElementBlock("span", {
51
- key: 1,
52
- class: normalizeClass(unref(ns).e("separator")),
53
- role: "presentation"
54
- }, toDisplayString(unref(separator)), 3))
55
- ], 2);
56
- };
4
+ const breadcrumbItemProps = buildProps({
5
+ to: {
6
+ type: definePropType([String, Object]),
7
+ default: ""
8
+ },
9
+ replace: {
10
+ type: Boolean,
11
+ default: false
57
12
  }
58
13
  });
59
- var BreadcrumbItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/Users/st/Desktop/vue/nxx-ui/packages/components/breadcrumb/src/breadcrumb-item.vue"]]);
60
14
 
61
- export { BreadcrumbItem as default };
15
+ export { breadcrumbItemProps };
62
16
  //# sourceMappingURL=breadcrumb-item2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"breadcrumb-item2.mjs","sources":["../../../../../../packages/components/breadcrumb/src/breadcrumb-item.vue"],"sourcesContent":["<template>\n <span :class=\"ns.e('item')\">\n <span\n ref=\"link\"\n :class=\"[ns.e('inner'), ns.is('link', !!to)]\"\n role=\"link\"\n @click=\"onClick\"\n >\n <slot />\n </span>\n <el-icon v-if=\"separatorIcon\" :class=\"ns.e('separator')\">\n <component :is=\"separatorIcon\" />\n </el-icon>\n <span v-else :class=\"ns.e('separator')\" role=\"presentation\">\n {{ separator }}\n </span>\n </span>\n</template>\n\n<script lang=\"ts\" setup>\nimport { getCurrentInstance, inject, ref, toRefs } from 'vue'\nimport ElIcon from '@element-plus/components/icon'\nimport { breadcrumbKey } from '@element-plus/tokens'\nimport { useNamespace } from '@element-plus/hooks'\nimport { breadcrumbItemProps } from './breadcrumb-item'\n\nimport type { Router } from 'vue-router'\n\ndefineOptions({\n name: 'ElBreadcrumbItem',\n})\n\nconst props = defineProps(breadcrumbItemProps)\n\nconst instance = getCurrentInstance()!\nconst breadcrumbContext = inject(breadcrumbKey, undefined)!\nconst ns = useNamespace('breadcrumb')\n\nconst { separator, separatorIcon } = toRefs(breadcrumbContext)\nconst router = instance.appContext.config.globalProperties.$router as Router\n\nconst link = ref<HTMLSpanElement>()\n\nconst onClick = () => {\n if (!props.to || !router) return\n props.replace ? router.replace(props.to) : router.push(props.to)\n}\n</script>\n"],"names":[],"mappings":";;;;;;;;;mCA4Bc,CAAA;AAAA,EACZ,IAAM,EAAA,kBAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAIA,IAAA,MAAM,WAAW,kBAAmB,EAAA,CAAA;AACpC,IAAM,MAAA,iBAAA,GAAoB,MAAO,CAAA,aAAA,EAAe,KAAS,CAAA,CAAA,CAAA;AACzD,IAAM,MAAA,EAAA,GAAK,aAAa,YAAY,CAAA,CAAA;AAEpC,IAAA,MAAM,EAAE,SAAA,EAAW,aAAkB,EAAA,GAAA,MAAA,CAAO,iBAAiB,CAAA,CAAA;AAC7D,IAAA,MAAM,MAAS,GAAA,QAAA,CAAS,UAAW,CAAA,MAAA,CAAO,gBAAiB,CAAA,OAAA,CAAA;AAE3D,IAAA,MAAM,OAAO,GAAqB,EAAA,CAAA;AAElC,IAAA,MAAM,UAAU,MAAM;AACpB,MAAI,IAAA,CAAC,KAAM,CAAA,EAAA,IAAM,CAAC,MAAA;AAAQ,QAAA,OAAA;AAC1B,MAAM,KAAA,CAAA,OAAA,GAAU,OAAO,OAAQ,CAAA,KAAA,CAAM,EAAE,CAAI,GAAA,MAAA,CAAO,IAAK,CAAA,KAAA,CAAM,EAAE,CAAA,CAAA;AAAA,KACjE,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"breadcrumb-item2.mjs","sources":["../../../../../../packages/components/breadcrumb/src/breadcrumb-item.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\nimport type { RouteLocationRaw } from 'vue-router'\nimport type BreadcrumbItem from './breadcrumb-item.vue'\n\nexport const breadcrumbItemProps = buildProps({\n to: {\n type: definePropType<RouteLocationRaw>([String, Object]),\n default: '',\n },\n replace: {\n type: Boolean,\n default: false,\n },\n} as const)\nexport type BreadcrumbItemProps = ExtractPropTypes<typeof breadcrumbItemProps>\n\nexport type BreadcrumbItemInstance = InstanceType<typeof BreadcrumbItem>\n"],"names":[],"mappings":";;;AACY,MAAC,mBAAmB,GAAG,UAAU,CAAC;AAC9C,EAAE,EAAE,EAAE;AACN,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,CAAC;;;;"}
@@ -1,7 +1,7 @@
1
1
  import '../../utils/index.mjs';
2
- import Button from './src/button.mjs';
3
- import ButtonGroup from './src/button-group2.mjs';
4
- export { buttonEmits, buttonNativeTypes, buttonProps, buttonTypes } from './src/button2.mjs';
2
+ import Button from './src/button2.mjs';
3
+ import ButtonGroup from './src/button-group.mjs';
4
+ export { buttonEmits, buttonNativeTypes, buttonProps, buttonTypes } from './src/button.mjs';
5
5
  import { withInstall, withNoopInstall } from '../../utils/vue/install.mjs';
6
6
 
7
7
  const ElButton = withInstall(Button, {
@@ -1,9 +1,34 @@
1
- import { buttonProps } from './button2.mjs';
1
+ import { defineComponent, provide, reactive, toRef, openBlock, createElementBlock, normalizeClass, unref, renderSlot } from 'vue';
2
+ import '../../../tokens/index.mjs';
3
+ import '../../../hooks/index.mjs';
4
+ import { buttonGroupProps } from './button-group2.mjs';
5
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
6
+ import { buttonGroupContextKey } from '../../../tokens/button.mjs';
7
+ import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
2
8
 
3
- const buttonGroupProps = {
4
- size: buttonProps.size,
5
- type: buttonProps.type
6
- };
9
+ const __default__ = defineComponent({
10
+ name: "ElButtonGroup"
11
+ });
12
+ const _sfc_main = /* @__PURE__ */ defineComponent({
13
+ ...__default__,
14
+ props: buttonGroupProps,
15
+ setup(__props) {
16
+ const props = __props;
17
+ provide(buttonGroupContextKey, reactive({
18
+ size: toRef(props, "size"),
19
+ type: toRef(props, "type")
20
+ }));
21
+ const ns = useNamespace("button");
22
+ return (_ctx, _cache) => {
23
+ return openBlock(), createElementBlock("div", {
24
+ class: normalizeClass(`${unref(ns).b("group")}`)
25
+ }, [
26
+ renderSlot(_ctx.$slots, "default")
27
+ ], 2);
28
+ };
29
+ }
30
+ });
31
+ var ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/Users/st/Desktop/vue/nxx-ui/packages/components/button/src/button-group.vue"]]);
7
32
 
8
- export { buttonGroupProps };
33
+ export { ButtonGroup as default };
9
34
  //# sourceMappingURL=button-group.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"button-group.mjs","sources":["../../../../../../packages/components/button/src/button-group.ts"],"sourcesContent":["import { buttonProps } from './button'\n\nimport type { ExtractPropTypes } from 'vue'\n\nexport const buttonGroupProps = {\n /**\n * @description control the size of buttons in this button-group\n */\n size: buttonProps.size,\n /**\n * @description control the type of buttons in this button-group\n */\n type: buttonProps.type,\n} as const\nexport type ButtonGroupProps = ExtractPropTypes<typeof buttonGroupProps>\n"],"names":[],"mappings":";;AACY,MAAC,gBAAgB,GAAG;AAChC,EAAE,IAAI,EAAE,WAAW,CAAC,IAAI;AACxB,EAAE,IAAI,EAAE,WAAW,CAAC,IAAI;AACxB;;;;"}
1
+ {"version":3,"file":"button-group.mjs","sources":["../../../../../../packages/components/button/src/button-group.vue"],"sourcesContent":["<template>\n <div :class=\"`${ns.b('group')}`\">\n <slot />\n </div>\n</template>\n<script lang=\"ts\" setup>\nimport { provide, reactive, toRef } from 'vue'\nimport { buttonGroupContextKey } from '@element-plus/tokens'\nimport { useNamespace } from '@element-plus/hooks'\nimport { buttonGroupProps } from './button-group'\n\ndefineOptions({\n name: 'ElButtonGroup',\n})\nconst props = defineProps(buttonGroupProps)\nprovide(\n buttonGroupContextKey,\n reactive({\n size: toRef(props, 'size'),\n type: toRef(props, 'type'),\n })\n)\nconst ns = useNamespace('button')\n</script>\n"],"names":[],"mappings":";;;;;;;;mCAWc,CAAA;AAAA,EACZ,IAAM,EAAA,eAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAEA,IAAA,OAAA,CACE,uBACA,QAAS,CAAA;AAAA,MACP,IAAA,EAAM,KAAM,CAAA,KAAA,EAAO,MAAM,CAAA;AAAA,MACzB,IAAA,EAAM,KAAM,CAAA,KAAA,EAAO,MAAM,CAAA;AAAA,KAC1B,CACH,CAAA,CAAA;AACA,IAAM,MAAA,EAAA,GAAK,aAAa,QAAQ,CAAA,CAAA;;;;;;;;;;;;;;"}
@@ -1,34 +1,9 @@
1
- import { defineComponent, provide, reactive, toRef, openBlock, createElementBlock, normalizeClass, unref, renderSlot } from 'vue';
2
- import '../../../tokens/index.mjs';
3
- import '../../../hooks/index.mjs';
4
- import { buttonGroupProps } from './button-group.mjs';
5
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
6
- import { buttonGroupContextKey } from '../../../tokens/button.mjs';
7
- import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
1
+ import { buttonProps } from './button.mjs';
8
2
 
9
- const __default__ = defineComponent({
10
- name: "ElButtonGroup"
11
- });
12
- const _sfc_main = /* @__PURE__ */ defineComponent({
13
- ...__default__,
14
- props: buttonGroupProps,
15
- setup(__props) {
16
- const props = __props;
17
- provide(buttonGroupContextKey, reactive({
18
- size: toRef(props, "size"),
19
- type: toRef(props, "type")
20
- }));
21
- const ns = useNamespace("button");
22
- return (_ctx, _cache) => {
23
- return openBlock(), createElementBlock("div", {
24
- class: normalizeClass(`${unref(ns).b("group")}`)
25
- }, [
26
- renderSlot(_ctx.$slots, "default")
27
- ], 2);
28
- };
29
- }
30
- });
31
- var ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/Users/st/Desktop/vue/nxx-ui/packages/components/button/src/button-group.vue"]]);
3
+ const buttonGroupProps = {
4
+ size: buttonProps.size,
5
+ type: buttonProps.type
6
+ };
32
7
 
33
- export { ButtonGroup as default };
8
+ export { buttonGroupProps };
34
9
  //# sourceMappingURL=button-group2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"button-group2.mjs","sources":["../../../../../../packages/components/button/src/button-group.vue"],"sourcesContent":["<template>\n <div :class=\"`${ns.b('group')}`\">\n <slot />\n </div>\n</template>\n<script lang=\"ts\" setup>\nimport { provide, reactive, toRef } from 'vue'\nimport { buttonGroupContextKey } from '@element-plus/tokens'\nimport { useNamespace } from '@element-plus/hooks'\nimport { buttonGroupProps } from './button-group'\n\ndefineOptions({\n name: 'ElButtonGroup',\n})\nconst props = defineProps(buttonGroupProps)\nprovide(\n buttonGroupContextKey,\n reactive({\n size: toRef(props, 'size'),\n type: toRef(props, 'type'),\n })\n)\nconst ns = useNamespace('button')\n</script>\n"],"names":[],"mappings":";;;;;;;;mCAWc,CAAA;AAAA,EACZ,IAAM,EAAA,eAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAEA,IAAA,OAAA,CACE,uBACA,QAAS,CAAA;AAAA,MACP,IAAA,EAAM,KAAM,CAAA,KAAA,EAAO,MAAM,CAAA;AAAA,MACzB,IAAA,EAAM,KAAM,CAAA,KAAA,EAAO,MAAM,CAAA;AAAA,KAC1B,CACH,CAAA,CAAA;AACA,IAAM,MAAA,EAAA,GAAK,aAAa,QAAQ,CAAA,CAAA;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"button-group2.mjs","sources":["../../../../../../packages/components/button/src/button-group.ts"],"sourcesContent":["import { buttonProps } from './button'\n\nimport type { ExtractPropTypes } from 'vue'\n\nexport const buttonGroupProps = {\n /**\n * @description control the size of buttons in this button-group\n */\n size: buttonProps.size,\n /**\n * @description control the type of buttons in this button-group\n */\n type: buttonProps.type,\n} as const\nexport type ButtonGroupProps = ExtractPropTypes<typeof buttonGroupProps>\n"],"names":[],"mappings":";;AACY,MAAC,gBAAgB,GAAG;AAChC,EAAE,IAAI,EAAE,WAAW,CAAC,IAAI;AACxB,EAAE,IAAI,EAAE,WAAW,CAAC,IAAI;AACxB;;;;"}
@@ -1,84 +1,60 @@
1
- import { defineComponent, openBlock, createElementBlock, normalizeClass, unref, normalizeStyle, Fragment, renderSlot, createBlock, withCtx, resolveDynamicComponent, createCommentVNode } from 'vue';
2
- import { ElIcon } from '../../icon/index.mjs';
3
1
  import '../../../hooks/index.mjs';
4
- import { useButton } from './use-button.mjs';
5
- import { buttonProps, buttonEmits } from './button2.mjs';
6
- import { useButtonCustomStyle } from './button-custom.mjs';
7
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
8
- import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
2
+ import '../../../utils/index.mjs';
3
+ import { Loading } from '@element-plus/icons-vue';
4
+ import { buildProps } from '../../../utils/vue/props/runtime.mjs';
5
+ import { useSizeProp } from '../../../hooks/use-size/index.mjs';
6
+ import { iconPropType } from '../../../utils/vue/icon.mjs';
9
7
 
10
- const _hoisted_1 = ["aria-disabled", "disabled", "autofocus", "type"];
11
- const __default__ = defineComponent({
12
- name: "ElButton"
13
- });
14
- const _sfc_main = /* @__PURE__ */ defineComponent({
15
- ...__default__,
16
- props: buttonProps,
17
- emits: buttonEmits,
18
- setup(__props, { expose, emit }) {
19
- const props = __props;
20
- const buttonStyle = useButtonCustomStyle(props);
21
- const ns = useNamespace("button");
22
- const { _ref, _size, _type, _disabled, shouldAddSpace, handleClick } = useButton(props, emit);
23
- expose({
24
- ref: _ref,
25
- size: _size,
26
- type: _type,
27
- disabled: _disabled,
28
- shouldAddSpace
29
- });
30
- return (_ctx, _cache) => {
31
- return openBlock(), createElementBlock("button", {
32
- ref_key: "_ref",
33
- ref: _ref,
34
- class: normalizeClass([
35
- unref(ns).b(),
36
- unref(ns).m(unref(_type)),
37
- unref(ns).m(unref(_size)),
38
- unref(ns).is("disabled", unref(_disabled)),
39
- unref(ns).is("loading", _ctx.loading),
40
- unref(ns).is("plain", _ctx.plain),
41
- unref(ns).is("secondary", _ctx.secondary),
42
- unref(ns).is("round", _ctx.round),
43
- unref(ns).is("circle", _ctx.circle),
44
- unref(ns).is("text", _ctx.text),
45
- unref(ns).is("link", _ctx.link),
46
- unref(ns).is("has-bg", _ctx.bg)
47
- ]),
48
- "aria-disabled": unref(_disabled) || _ctx.loading,
49
- disabled: unref(_disabled) || _ctx.loading,
50
- autofocus: _ctx.autofocus,
51
- type: _ctx.nativeType,
52
- style: normalizeStyle(unref(buttonStyle)),
53
- onClick: _cache[0] || (_cache[0] = (...args) => unref(handleClick) && unref(handleClick)(...args))
54
- }, [
55
- _ctx.loading ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
56
- _ctx.$slots.loading ? renderSlot(_ctx.$slots, "loading", { key: 0 }) : (openBlock(), createBlock(unref(ElIcon), {
57
- key: 1,
58
- class: normalizeClass(unref(ns).is("loading"))
59
- }, {
60
- default: withCtx(() => [
61
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.loadingIcon)))
62
- ]),
63
- _: 1
64
- }, 8, ["class"]))
65
- ], 64)) : _ctx.icon || _ctx.$slots.icon ? (openBlock(), createBlock(unref(ElIcon), { key: 1 }, {
66
- default: withCtx(() => [
67
- _ctx.icon ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon), { key: 0 })) : renderSlot(_ctx.$slots, "icon", { key: 1 })
68
- ]),
69
- _: 3
70
- })) : createCommentVNode("v-if", true),
71
- _ctx.$slots.default ? (openBlock(), createElementBlock("span", {
72
- key: 2,
73
- class: normalizeClass({ [unref(ns).em("text", "expand")]: unref(shouldAddSpace) })
74
- }, [
75
- renderSlot(_ctx.$slots, "default")
76
- ], 2)) : createCommentVNode("v-if", true)
77
- ], 14, _hoisted_1);
78
- };
8
+ const buttonTypes = [
9
+ "default",
10
+ "primary",
11
+ "success",
12
+ "warning",
13
+ "info",
14
+ "danger",
15
+ "text",
16
+ ""
17
+ ];
18
+ const buttonNativeTypes = ["button", "submit", "reset"];
19
+ const buttonProps = buildProps({
20
+ size: useSizeProp,
21
+ disabled: Boolean,
22
+ type: {
23
+ type: String,
24
+ values: buttonTypes,
25
+ default: ""
26
+ },
27
+ icon: {
28
+ type: iconPropType
29
+ },
30
+ nativeType: {
31
+ type: String,
32
+ values: buttonNativeTypes,
33
+ default: "button"
34
+ },
35
+ loading: Boolean,
36
+ loadingIcon: {
37
+ type: iconPropType,
38
+ default: () => Loading
39
+ },
40
+ plain: Boolean,
41
+ secondary: Boolean,
42
+ text: Boolean,
43
+ link: Boolean,
44
+ bg: Boolean,
45
+ autofocus: Boolean,
46
+ round: Boolean,
47
+ circle: Boolean,
48
+ color: String,
49
+ dark: Boolean,
50
+ autoInsertSpace: {
51
+ type: Boolean,
52
+ default: void 0
79
53
  }
80
54
  });
81
- var Button = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/Users/st/Desktop/vue/nxx-ui/packages/components/button/src/button.vue"]]);
55
+ const buttonEmits = {
56
+ click: (evt) => evt instanceof MouseEvent
57
+ };
82
58
 
83
- export { Button as default };
59
+ export { buttonEmits, buttonNativeTypes, buttonProps, buttonTypes };
84
60
  //# sourceMappingURL=button.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"button.mjs","sources":["../../../../../../packages/components/button/src/button.vue"],"sourcesContent":["<template>\n <button\n ref=\"_ref\"\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('secondary', secondary),\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 :aria-disabled=\"_disabled || loading\"\n :disabled=\"_disabled || loading\"\n :autofocus=\"autofocus\"\n :type=\"nativeType\"\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 </button>\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, 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":[],"mappings":";;;;;;;;;;mCAkDc,CAAA;AAAA,EACZ,IAAM,EAAA,UAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAKA,IAAM,MAAA,WAAA,GAAc,qBAAqB,KAAK,CAAA,CAAA;AAC9C,IAAM,MAAA,EAAA,GAAK,aAAa,QAAQ,CAAA,CAAA;AAChC,IAAM,MAAA,EAAE,MAAM,KAAO,EAAA,KAAA,EAAO,WAAW,cAAgB,EAAA,WAAA,EAAA,GACrD,SAAU,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"button.mjs","sources":["../../../../../../packages/components/button/src/button.ts"],"sourcesContent":["import { useSizeProp } from '@element-plus/hooks'\nimport { buildProps, iconPropType } from '@element-plus/utils'\nimport { Loading } from '@element-plus/icons-vue'\nimport type { 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 secondary: 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} 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":[],"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,GAAG,UAAU,CAAC;AACtC,EAAE,IAAI,EAAE,WAAW;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,EAAE,YAAY;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,EAAE,YAAY;AACtB,IAAI,OAAO,EAAE,MAAM,OAAO;AAC1B,GAAG;AACH,EAAE,KAAK,EAAE,OAAO;AAChB,EAAE,SAAS,EAAE,OAAO;AACpB,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,CAAC,EAAE;AACS,MAAC,WAAW,GAAG;AAC3B,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC3C;;;;"}
@@ -1,60 +1,84 @@
1
+ import { defineComponent, openBlock, createElementBlock, normalizeClass, unref, normalizeStyle, Fragment, renderSlot, createBlock, withCtx, resolveDynamicComponent, createCommentVNode } from 'vue';
2
+ import { ElIcon } from '../../icon/index.mjs';
1
3
  import '../../../hooks/index.mjs';
2
- import '../../../utils/index.mjs';
3
- import { Loading } from '@element-plus/icons-vue';
4
- import { buildProps } from '../../../utils/vue/props/runtime.mjs';
5
- import { useSizeProp } from '../../../hooks/use-size/index.mjs';
6
- import { iconPropType } from '../../../utils/vue/icon.mjs';
4
+ import { useButton } from './use-button.mjs';
5
+ import { buttonProps, buttonEmits } from './button.mjs';
6
+ import { useButtonCustomStyle } from './button-custom.mjs';
7
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
8
+ import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
7
9
 
8
- const buttonTypes = [
9
- "default",
10
- "primary",
11
- "success",
12
- "warning",
13
- "info",
14
- "danger",
15
- "text",
16
- ""
17
- ];
18
- const buttonNativeTypes = ["button", "submit", "reset"];
19
- const buttonProps = buildProps({
20
- size: useSizeProp,
21
- disabled: Boolean,
22
- type: {
23
- type: String,
24
- values: buttonTypes,
25
- default: ""
26
- },
27
- icon: {
28
- type: iconPropType
29
- },
30
- nativeType: {
31
- type: String,
32
- values: buttonNativeTypes,
33
- default: "button"
34
- },
35
- loading: Boolean,
36
- loadingIcon: {
37
- type: iconPropType,
38
- default: () => Loading
39
- },
40
- plain: Boolean,
41
- secondary: Boolean,
42
- text: Boolean,
43
- link: Boolean,
44
- bg: Boolean,
45
- autofocus: Boolean,
46
- round: Boolean,
47
- circle: Boolean,
48
- color: String,
49
- dark: Boolean,
50
- autoInsertSpace: {
51
- type: Boolean,
52
- default: void 0
10
+ const _hoisted_1 = ["aria-disabled", "disabled", "autofocus", "type"];
11
+ const __default__ = defineComponent({
12
+ name: "ElButton"
13
+ });
14
+ const _sfc_main = /* @__PURE__ */ defineComponent({
15
+ ...__default__,
16
+ props: buttonProps,
17
+ emits: buttonEmits,
18
+ setup(__props, { expose, emit }) {
19
+ const props = __props;
20
+ const buttonStyle = useButtonCustomStyle(props);
21
+ const ns = useNamespace("button");
22
+ const { _ref, _size, _type, _disabled, shouldAddSpace, handleClick } = useButton(props, emit);
23
+ expose({
24
+ ref: _ref,
25
+ size: _size,
26
+ type: _type,
27
+ disabled: _disabled,
28
+ shouldAddSpace
29
+ });
30
+ return (_ctx, _cache) => {
31
+ return openBlock(), createElementBlock("button", {
32
+ ref_key: "_ref",
33
+ ref: _ref,
34
+ class: normalizeClass([
35
+ unref(ns).b(),
36
+ unref(ns).m(unref(_type)),
37
+ unref(ns).m(unref(_size)),
38
+ unref(ns).is("disabled", unref(_disabled)),
39
+ unref(ns).is("loading", _ctx.loading),
40
+ unref(ns).is("plain", _ctx.plain),
41
+ unref(ns).is("secondary", _ctx.secondary),
42
+ unref(ns).is("round", _ctx.round),
43
+ unref(ns).is("circle", _ctx.circle),
44
+ unref(ns).is("text", _ctx.text),
45
+ unref(ns).is("link", _ctx.link),
46
+ unref(ns).is("has-bg", _ctx.bg)
47
+ ]),
48
+ "aria-disabled": unref(_disabled) || _ctx.loading,
49
+ disabled: unref(_disabled) || _ctx.loading,
50
+ autofocus: _ctx.autofocus,
51
+ type: _ctx.nativeType,
52
+ style: normalizeStyle(unref(buttonStyle)),
53
+ onClick: _cache[0] || (_cache[0] = (...args) => unref(handleClick) && unref(handleClick)(...args))
54
+ }, [
55
+ _ctx.loading ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
56
+ _ctx.$slots.loading ? renderSlot(_ctx.$slots, "loading", { key: 0 }) : (openBlock(), createBlock(unref(ElIcon), {
57
+ key: 1,
58
+ class: normalizeClass(unref(ns).is("loading"))
59
+ }, {
60
+ default: withCtx(() => [
61
+ (openBlock(), createBlock(resolveDynamicComponent(_ctx.loadingIcon)))
62
+ ]),
63
+ _: 1
64
+ }, 8, ["class"]))
65
+ ], 64)) : _ctx.icon || _ctx.$slots.icon ? (openBlock(), createBlock(unref(ElIcon), { key: 1 }, {
66
+ default: withCtx(() => [
67
+ _ctx.icon ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon), { key: 0 })) : renderSlot(_ctx.$slots, "icon", { key: 1 })
68
+ ]),
69
+ _: 3
70
+ })) : createCommentVNode("v-if", true),
71
+ _ctx.$slots.default ? (openBlock(), createElementBlock("span", {
72
+ key: 2,
73
+ class: normalizeClass({ [unref(ns).em("text", "expand")]: unref(shouldAddSpace) })
74
+ }, [
75
+ renderSlot(_ctx.$slots, "default")
76
+ ], 2)) : createCommentVNode("v-if", true)
77
+ ], 14, _hoisted_1);
78
+ };
53
79
  }
54
80
  });
55
- const buttonEmits = {
56
- click: (evt) => evt instanceof MouseEvent
57
- };
81
+ var Button = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/Users/st/Desktop/vue/nxx-ui/packages/components/button/src/button.vue"]]);
58
82
 
59
- export { buttonEmits, buttonNativeTypes, buttonProps, buttonTypes };
83
+ export { Button as default };
60
84
  //# sourceMappingURL=button2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"button2.mjs","sources":["../../../../../../packages/components/button/src/button.ts"],"sourcesContent":["import { useSizeProp } from '@element-plus/hooks'\nimport { buildProps, iconPropType } from '@element-plus/utils'\nimport { Loading } from '@element-plus/icons-vue'\nimport type { 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 secondary: 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} 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":[],"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,GAAG,UAAU,CAAC;AACtC,EAAE,IAAI,EAAE,WAAW;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,EAAE,YAAY;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,EAAE,YAAY;AACtB,IAAI,OAAO,EAAE,MAAM,OAAO;AAC1B,GAAG;AACH,EAAE,KAAK,EAAE,OAAO;AAChB,EAAE,SAAS,EAAE,OAAO;AACpB,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,CAAC,EAAE;AACS,MAAC,WAAW,GAAG;AAC3B,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC3C;;;;"}
1
+ {"version":3,"file":"button2.mjs","sources":["../../../../../../packages/components/button/src/button.vue"],"sourcesContent":["<template>\n <button\n ref=\"_ref\"\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('secondary', secondary),\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 :aria-disabled=\"_disabled || loading\"\n :disabled=\"_disabled || loading\"\n :autofocus=\"autofocus\"\n :type=\"nativeType\"\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 </button>\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, 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":[],"mappings":";;;;;;;;;;mCAkDc,CAAA;AAAA,EACZ,IAAM,EAAA,UAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAKA,IAAM,MAAA,WAAA,GAAc,qBAAqB,KAAK,CAAA,CAAA;AAC9C,IAAM,MAAA,EAAA,GAAK,aAAa,QAAQ,CAAA,CAAA;AAChC,IAAM,MAAA,EAAE,MAAM,KAAO,EAAA,KAAA,EAAO,WAAW,cAAgB,EAAA,WAAA,EAAA,GACrD,SAAU,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, renderSlot, toDisplayString, createVNode, withCtx, createTextVNode, createCommentVNode, createSlots, normalizeProps, mergeProps, Fragment, renderList, createBlock } from 'vue';
2
2
  import { ElButtonGroup, ElButton } from '../../button/index.mjs';
3
3
  import '../../../hooks/index.mjs';
4
- import DateTable from './date-table2.mjs';
4
+ import DateTable from './date-table.mjs';
5
5
  import { useCalendar } from './use-calendar.mjs';
6
6
  import { calendarProps, calendarEmits } from './calendar2.mjs';
7
7
  import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';